@aurigma/ng-design-atoms-api-client 2.60.1 → 2.62.3
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 +806 -652
- 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 +818 -657
- 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 +818 -657
- 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.");
|
|
@@ -3837,17 +3937,25 @@
|
|
|
3837
3937
|
throw new Error("The parameter 'patchType' cannot be null.");
|
|
3838
3938
|
else
|
|
3839
3939
|
content_.append("patchType", patchType.toString());
|
|
3840
|
-
if (replaceImageItemFileInfo_itemName
|
|
3940
|
+
if (replaceImageItemFileInfo_itemName === null || replaceImageItemFileInfo_itemName === undefined)
|
|
3941
|
+
throw new Error("The parameter 'replaceImageItemFileInfo_itemName' cannot be null.");
|
|
3942
|
+
else
|
|
3841
3943
|
content_.append("replaceImageItemFileInfo.itemName", replaceImageItemFileInfo_itemName.toString());
|
|
3842
|
-
if (replaceImageItemFileInfo_sourceFile
|
|
3944
|
+
if (replaceImageItemFileInfo_sourceFile === null || replaceImageItemFileInfo_sourceFile === undefined)
|
|
3945
|
+
throw new Error("The parameter 'replaceImageItemFileInfo_sourceFile' cannot be null.");
|
|
3946
|
+
else
|
|
3843
3947
|
content_.append("replaceImageItemFileInfo.sourceFile", replaceImageItemFileInfo_sourceFile.data, replaceImageItemFileInfo_sourceFile.fileName ? replaceImageItemFileInfo_sourceFile.fileName : "replaceImageItemFileInfo.sourceFile");
|
|
3844
|
-
if (replacePlaceholderItemContentInfo_placeholderItemName
|
|
3948
|
+
if (replacePlaceholderItemContentInfo_placeholderItemName === null || replacePlaceholderItemContentInfo_placeholderItemName === undefined)
|
|
3949
|
+
throw new Error("The parameter 'replacePlaceholderItemContentInfo_placeholderItemName' cannot be null.");
|
|
3950
|
+
else
|
|
3845
3951
|
content_.append("replacePlaceholderItemContentInfo.placeholderItemName", replacePlaceholderItemContentInfo_placeholderItemName.toString());
|
|
3846
3952
|
if (replacePlaceholderItemContentInfo_newContentType === null || replacePlaceholderItemContentInfo_newContentType === undefined)
|
|
3847
3953
|
throw new Error("The parameter 'replacePlaceholderItemContentInfo_newContentType' cannot be null.");
|
|
3848
3954
|
else
|
|
3849
3955
|
content_.append("replacePlaceholderItemContentInfo.newContentType", replacePlaceholderItemContentInfo_newContentType.toString());
|
|
3850
|
-
if (replacePlaceholderItemContentInfo_sourceFile
|
|
3956
|
+
if (replacePlaceholderItemContentInfo_sourceFile === null || replacePlaceholderItemContentInfo_sourceFile === undefined)
|
|
3957
|
+
throw new Error("The parameter 'replacePlaceholderItemContentInfo_sourceFile' cannot be null.");
|
|
3958
|
+
else
|
|
3851
3959
|
content_.append("replacePlaceholderItemContentInfo.sourceFile", replacePlaceholderItemContentInfo_sourceFile.data, replacePlaceholderItemContentInfo_sourceFile.fileName ? replacePlaceholderItemContentInfo_sourceFile.fileName : "replacePlaceholderItemContentInfo.sourceFile");
|
|
3852
3960
|
var options_ = {
|
|
3853
3961
|
body: content_,
|
|
@@ -3916,13 +4024,6 @@
|
|
|
3916
4024
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3917
4025
|
}));
|
|
3918
4026
|
}
|
|
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
4027
|
else if (status !== 200 && status !== 204) {
|
|
3927
4028
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3928
4029
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3943,7 +4044,9 @@
|
|
|
3943
4044
|
if (id === undefined || id === null)
|
|
3944
4045
|
throw new Error("The parameter 'id' must be defined.");
|
|
3945
4046
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3946
|
-
if (privateStorageOwner
|
|
4047
|
+
if (privateStorageOwner === null)
|
|
4048
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4049
|
+
else if (privateStorageOwner !== undefined)
|
|
3947
4050
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3948
4051
|
if (tenantId === null)
|
|
3949
4052
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4020,13 +4123,6 @@
|
|
|
4020
4123
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4021
4124
|
}));
|
|
4022
4125
|
}
|
|
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
4126
|
else if (status !== 200 && status !== 204) {
|
|
4031
4127
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4032
4128
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4035,9 +4131,9 @@
|
|
|
4035
4131
|
return rxjs.of(null);
|
|
4036
4132
|
};
|
|
4037
4133
|
/**
|
|
4038
|
-
* Loads data schema from design file taken from storage
|
|
4039
|
-
* @param id Design identifier
|
|
4040
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
4134
|
+
* Loads data schema from design file taken from storage.
|
|
4135
|
+
* @param id Design identifier.
|
|
4136
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4041
4137
|
* @param tenantId (optional) Tenant identifier
|
|
4042
4138
|
* @return Success
|
|
4043
4139
|
*/
|
|
@@ -4047,7 +4143,9 @@
|
|
|
4047
4143
|
if (id === undefined || id === null)
|
|
4048
4144
|
throw new Error("The parameter 'id' must be defined.");
|
|
4049
4145
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4050
|
-
if (privateStorageOwner
|
|
4146
|
+
if (privateStorageOwner === null)
|
|
4147
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4148
|
+
else if (privateStorageOwner !== undefined)
|
|
4051
4149
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4052
4150
|
if (tenantId === null)
|
|
4053
4151
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4130,13 +4228,6 @@
|
|
|
4130
4228
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4131
4229
|
}));
|
|
4132
4230
|
}
|
|
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
4231
|
else if (status !== 200 && status !== 204) {
|
|
4141
4232
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4142
4233
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4145,7 +4236,7 @@
|
|
|
4145
4236
|
return rxjs.of(null);
|
|
4146
4237
|
};
|
|
4147
4238
|
/**
|
|
4148
|
-
* Loads toggle set from design file taken from storage.
|
|
4239
|
+
* Loads a toggle set from design file taken from storage.
|
|
4149
4240
|
* @param id Design identifier.
|
|
4150
4241
|
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4151
4242
|
* @param tenantId (optional) Tenant identifier
|
|
@@ -4157,7 +4248,9 @@
|
|
|
4157
4248
|
if (id === undefined || id === null)
|
|
4158
4249
|
throw new Error("The parameter 'id' must be defined.");
|
|
4159
4250
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4160
|
-
if (privateStorageOwner
|
|
4251
|
+
if (privateStorageOwner === null)
|
|
4252
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4253
|
+
else if (privateStorageOwner !== undefined)
|
|
4161
4254
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4162
4255
|
if (tenantId === null)
|
|
4163
4256
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4240,24 +4333,17 @@
|
|
|
4240
4333
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4241
4334
|
}));
|
|
4242
4335
|
}
|
|
4243
|
-
else if (status
|
|
4336
|
+
else if (status !== 200 && status !== 204) {
|
|
4244
4337
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4245
|
-
|
|
4246
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4247
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4248
|
-
}));
|
|
4249
|
-
}
|
|
4250
|
-
else if (status !== 200 && status !== 204) {
|
|
4251
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4252
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4338
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4253
4339
|
}));
|
|
4254
4340
|
}
|
|
4255
4341
|
return rxjs.of(null);
|
|
4256
4342
|
};
|
|
4257
4343
|
/**
|
|
4258
|
-
* Gets variable items information for design file taken from storage
|
|
4259
|
-
* @param id Design identifier
|
|
4260
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
4344
|
+
* Gets variable items information for design file taken from storage.
|
|
4345
|
+
* @param id Design identifier.
|
|
4346
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4261
4347
|
* @param tenantId (optional) Tenant identifier
|
|
4262
4348
|
* @return Success
|
|
4263
4349
|
*/
|
|
@@ -4267,7 +4353,9 @@
|
|
|
4267
4353
|
if (id === undefined || id === null)
|
|
4268
4354
|
throw new Error("The parameter 'id' must be defined.");
|
|
4269
4355
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4270
|
-
if (privateStorageOwner
|
|
4356
|
+
if (privateStorageOwner === null)
|
|
4357
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4358
|
+
else if (privateStorageOwner !== undefined)
|
|
4271
4359
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4272
4360
|
if (tenantId === null)
|
|
4273
4361
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4344,13 +4432,6 @@
|
|
|
4344
4432
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4345
4433
|
}));
|
|
4346
4434
|
}
|
|
4347
|
-
else if (status === 500) {
|
|
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
4435
|
else if (status !== 200 && status !== 204) {
|
|
4355
4436
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4356
4437
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4359,11 +4440,11 @@
|
|
|
4359
4440
|
return rxjs.of(null);
|
|
4360
4441
|
};
|
|
4361
4442
|
/**
|
|
4362
|
-
* Sets variable items values for design file taken from storage
|
|
4363
|
-
* @param id Design identifier
|
|
4364
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
4443
|
+
* Sets variable items values for design file taken from storage.
|
|
4444
|
+
* @param id Design identifier.
|
|
4445
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4365
4446
|
* @param tenantId (optional) Tenant identifier
|
|
4366
|
-
* @param body (optional) Design variable values
|
|
4447
|
+
* @param body (optional) Design variable values.
|
|
4367
4448
|
* @return Success
|
|
4368
4449
|
*/
|
|
4369
4450
|
DesignAtomsServiceApiClient.prototype.setVariables = function (id, privateStorageOwner, tenantId, body) {
|
|
@@ -4372,7 +4453,9 @@
|
|
|
4372
4453
|
if (id === undefined || id === null)
|
|
4373
4454
|
throw new Error("The parameter 'id' must be defined.");
|
|
4374
4455
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4375
|
-
if (privateStorageOwner
|
|
4456
|
+
if (privateStorageOwner === null)
|
|
4457
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4458
|
+
else if (privateStorageOwner !== undefined)
|
|
4376
4459
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4377
4460
|
if (tenantId === null)
|
|
4378
4461
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4456,13 +4539,6 @@
|
|
|
4456
4539
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4457
4540
|
}));
|
|
4458
4541
|
}
|
|
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
4542
|
else if (status !== 200 && status !== 204) {
|
|
4467
4543
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4468
4544
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4471,9 +4547,9 @@
|
|
|
4471
4547
|
return rxjs.of(null);
|
|
4472
4548
|
};
|
|
4473
4549
|
/**
|
|
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
|
|
4550
|
+
* Loads variable data printing information from design file taken from storage.
|
|
4551
|
+
* @param id Design identifier.
|
|
4552
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4477
4553
|
* @param tenantId (optional) Tenant identifier
|
|
4478
4554
|
* @return Success
|
|
4479
4555
|
*/
|
|
@@ -4483,7 +4559,9 @@
|
|
|
4483
4559
|
if (id === undefined || id === null)
|
|
4484
4560
|
throw new Error("The parameter 'id' must be defined.");
|
|
4485
4561
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4486
|
-
if (privateStorageOwner
|
|
4562
|
+
if (privateStorageOwner === null)
|
|
4563
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4564
|
+
else if (privateStorageOwner !== undefined)
|
|
4487
4565
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4488
4566
|
if (tenantId === null)
|
|
4489
4567
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4567,13 +4645,6 @@
|
|
|
4567
4645
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4568
4646
|
}));
|
|
4569
4647
|
}
|
|
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
4648
|
else if (status !== 200 && status !== 204) {
|
|
4578
4649
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4579
4650
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4583,10 +4654,10 @@
|
|
|
4583
4654
|
};
|
|
4584
4655
|
/**
|
|
4585
4656
|
* 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
|
|
4657
|
+
* @param id Design identifier.
|
|
4658
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4588
4659
|
* @param tenantId (optional) Tenant identifier
|
|
4589
|
-
* @param body (optional) Serialized vdp data
|
|
4660
|
+
* @param body (optional) Serialized vdp data.
|
|
4590
4661
|
* @return Success
|
|
4591
4662
|
*/
|
|
4592
4663
|
DesignAtomsServiceApiClient.prototype.saveVdpData = function (id, privateStorageOwner, tenantId, body) {
|
|
@@ -4595,7 +4666,9 @@
|
|
|
4595
4666
|
if (id === undefined || id === null)
|
|
4596
4667
|
throw new Error("The parameter 'id' must be defined.");
|
|
4597
4668
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4598
|
-
if (privateStorageOwner
|
|
4669
|
+
if (privateStorageOwner === null)
|
|
4670
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4671
|
+
else if (privateStorageOwner !== undefined)
|
|
4599
4672
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4600
4673
|
if (tenantId === null)
|
|
4601
4674
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4672,13 +4745,6 @@
|
|
|
4672
4745
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4673
4746
|
}));
|
|
4674
4747
|
}
|
|
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
4748
|
else if (status !== 200 && status !== 204) {
|
|
4683
4749
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4684
4750
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4688,8 +4754,8 @@
|
|
|
4688
4754
|
};
|
|
4689
4755
|
/**
|
|
4690
4756
|
* 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
|
|
4757
|
+
* @param id Design identifier.
|
|
4758
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4693
4759
|
* @param tenantId (optional) Tenant identifier
|
|
4694
4760
|
* @return Success
|
|
4695
4761
|
*/
|
|
@@ -4699,7 +4765,9 @@
|
|
|
4699
4765
|
if (id === undefined || id === null)
|
|
4700
4766
|
throw new Error("The parameter 'id' must be defined.");
|
|
4701
4767
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4702
|
-
if (privateStorageOwner
|
|
4768
|
+
if (privateStorageOwner === null)
|
|
4769
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4770
|
+
else if (privateStorageOwner !== undefined)
|
|
4703
4771
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4704
4772
|
if (tenantId === null)
|
|
4705
4773
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4772,13 +4840,6 @@
|
|
|
4772
4840
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4773
4841
|
}));
|
|
4774
4842
|
}
|
|
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
4843
|
else if (status !== 200 && status !== 204) {
|
|
4783
4844
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4784
4845
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4787,9 +4848,9 @@
|
|
|
4787
4848
|
return rxjs.of(null);
|
|
4788
4849
|
};
|
|
4789
4850
|
/**
|
|
4790
|
-
* Loads product (design model) from resource file taken from storage
|
|
4791
|
-
* @param id Resource identifier
|
|
4792
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
4851
|
+
* Loads product (design model) from resource file taken from storage.
|
|
4852
|
+
* @param id Resource identifier.
|
|
4853
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4793
4854
|
* @param tenantId (optional) Tenant identifier
|
|
4794
4855
|
* @return Success
|
|
4795
4856
|
*/
|
|
@@ -4799,7 +4860,9 @@
|
|
|
4799
4860
|
if (id === undefined || id === null)
|
|
4800
4861
|
throw new Error("The parameter 'id' must be defined.");
|
|
4801
4862
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4802
|
-
if (privateStorageOwner
|
|
4863
|
+
if (privateStorageOwner === null)
|
|
4864
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4865
|
+
else if (privateStorageOwner !== undefined)
|
|
4803
4866
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4804
4867
|
if (tenantId === null)
|
|
4805
4868
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4883,13 +4946,6 @@
|
|
|
4883
4946
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4884
4947
|
}));
|
|
4885
4948
|
}
|
|
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
4949
|
else if (status !== 200 && status !== 204) {
|
|
4894
4950
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4895
4951
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4898,9 +4954,9 @@
|
|
|
4898
4954
|
return rxjs.of(null);
|
|
4899
4955
|
};
|
|
4900
4956
|
/**
|
|
4901
|
-
* Converts colors
|
|
4957
|
+
* Converts colors.
|
|
4902
4958
|
* @param tenantId (optional) Tenant identifier
|
|
4903
|
-
* @param body (optional) Convert colors operation parameters
|
|
4959
|
+
* @param body (optional) Convert colors operation parameters.
|
|
4904
4960
|
* @return Success
|
|
4905
4961
|
*/
|
|
4906
4962
|
DesignAtomsServiceApiClient.prototype.convertColors = function (tenantId, body) {
|
|
@@ -4984,13 +5040,6 @@
|
|
|
4984
5040
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4985
5041
|
}));
|
|
4986
5042
|
}
|
|
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
5043
|
else if (status !== 200 && status !== 204) {
|
|
4995
5044
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4996
5045
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4999,8 +5048,8 @@
|
|
|
4999
5048
|
return rxjs.of(null);
|
|
5000
5049
|
};
|
|
5001
5050
|
/**
|
|
5002
|
-
* Creates product item
|
|
5003
|
-
* @param itemType (optional) Desired item type
|
|
5051
|
+
* Creates product item.
|
|
5052
|
+
* @param itemType (optional) Desired item type.
|
|
5004
5053
|
* @param tenantId (optional) Tenant identifier
|
|
5005
5054
|
* @param sourceType (optional)
|
|
5006
5055
|
* @param sourceId (optional)
|
|
@@ -5011,7 +5060,9 @@
|
|
|
5011
5060
|
DesignAtomsServiceApiClient.prototype.createItem = function (itemType, tenantId, sourceType, sourceId, sourceOwnerId, sourceFile) {
|
|
5012
5061
|
var _this = this;
|
|
5013
5062
|
var url_ = this.baseUrl + "/api/atoms/v1/designs/model/items?";
|
|
5014
|
-
if (itemType
|
|
5063
|
+
if (itemType === null)
|
|
5064
|
+
throw new Error("The parameter 'itemType' cannot be null.");
|
|
5065
|
+
else if (itemType !== undefined)
|
|
5015
5066
|
url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
|
|
5016
5067
|
if (tenantId === null)
|
|
5017
5068
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5019,13 +5070,21 @@
|
|
|
5019
5070
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
5020
5071
|
url_ = url_.replace(/[?&]$/, "");
|
|
5021
5072
|
var content_ = new FormData();
|
|
5022
|
-
if (sourceType
|
|
5073
|
+
if (sourceType === null || sourceType === undefined)
|
|
5074
|
+
throw new Error("The parameter 'sourceType' cannot be null.");
|
|
5075
|
+
else
|
|
5023
5076
|
content_.append("sourceType", sourceType.toString());
|
|
5024
|
-
if (sourceId
|
|
5077
|
+
if (sourceId === null || sourceId === undefined)
|
|
5078
|
+
throw new Error("The parameter 'sourceId' cannot be null.");
|
|
5079
|
+
else
|
|
5025
5080
|
content_.append("sourceId", sourceId.toString());
|
|
5026
|
-
if (sourceOwnerId
|
|
5081
|
+
if (sourceOwnerId === null || sourceOwnerId === undefined)
|
|
5082
|
+
throw new Error("The parameter 'sourceOwnerId' cannot be null.");
|
|
5083
|
+
else
|
|
5027
5084
|
content_.append("sourceOwnerId", sourceOwnerId.toString());
|
|
5028
|
-
if (sourceFile
|
|
5085
|
+
if (sourceFile === null || sourceFile === undefined)
|
|
5086
|
+
throw new Error("The parameter 'sourceFile' cannot be null.");
|
|
5087
|
+
else
|
|
5029
5088
|
content_.append("sourceFile", sourceFile.data, sourceFile.fileName ? sourceFile.fileName : "sourceFile");
|
|
5030
5089
|
var options_ = {
|
|
5031
5090
|
body: content_,
|
|
@@ -5098,13 +5157,6 @@
|
|
|
5098
5157
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
5099
5158
|
}));
|
|
5100
5159
|
}
|
|
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
5160
|
else if (status !== 200 && status !== 204) {
|
|
5109
5161
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5110
5162
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -5155,7 +5207,6 @@
|
|
|
5155
5207
|
};
|
|
5156
5208
|
DesignAtomsServiceApiClient.prototype.processExtractItemImage = function (response) {
|
|
5157
5209
|
var e_50, _a;
|
|
5158
|
-
var _this = this;
|
|
5159
5210
|
var status = response.status;
|
|
5160
5211
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
5161
5212
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -5191,13 +5242,6 @@
|
|
|
5191
5242
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
5192
5243
|
}));
|
|
5193
5244
|
}
|
|
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
5245
|
else if (status !== 200 && status !== 204) {
|
|
5202
5246
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5203
5247
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -5285,13 +5329,6 @@
|
|
|
5285
5329
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
5286
5330
|
}));
|
|
5287
5331
|
}
|
|
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
5332
|
else if (status !== 200 && status !== 204) {
|
|
5296
5333
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5297
5334
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -5301,7 +5338,8 @@
|
|
|
5301
5338
|
};
|
|
5302
5339
|
/**
|
|
5303
5340
|
* 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
|
|
5341
|
+
* @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
|
|
5342
|
+
(default value is 'false').
|
|
5305
5343
|
* @param tenantId (optional) Tenant identifier
|
|
5306
5344
|
* @param body (optional) Preview parameters.
|
|
5307
5345
|
* @return Success
|
|
@@ -5309,7 +5347,9 @@
|
|
|
5309
5347
|
DesignAtomsServiceApiClient.prototype.renderProduct = function (attachment, tenantId, body) {
|
|
5310
5348
|
var _this = this;
|
|
5311
5349
|
var url_ = this.baseUrl + "/api/atoms/v1/designs/model/render-proof?";
|
|
5312
|
-
if (attachment
|
|
5350
|
+
if (attachment === null)
|
|
5351
|
+
throw new Error("The parameter 'attachment' cannot be null.");
|
|
5352
|
+
else if (attachment !== undefined)
|
|
5313
5353
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
5314
5354
|
if (tenantId === null)
|
|
5315
5355
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5345,7 +5385,6 @@
|
|
|
5345
5385
|
};
|
|
5346
5386
|
DesignAtomsServiceApiClient.prototype.processRenderProduct = function (response) {
|
|
5347
5387
|
var e_52, _a;
|
|
5348
|
-
var _this = this;
|
|
5349
5388
|
var status = response.status;
|
|
5350
5389
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
5351
5390
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -5381,13 +5420,6 @@
|
|
|
5381
5420
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
5382
5421
|
}));
|
|
5383
5422
|
}
|
|
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
5423
|
else if (status !== 200 && status !== 204) {
|
|
5392
5424
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5393
5425
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -5406,7 +5438,9 @@
|
|
|
5406
5438
|
DesignAtomsServiceApiClient.prototype.renderDesignPreview = function (attachment, tenantId, body) {
|
|
5407
5439
|
var _this = this;
|
|
5408
5440
|
var url_ = this.baseUrl + "/api/atoms/v1/designs/render-preview?";
|
|
5409
|
-
if (attachment
|
|
5441
|
+
if (attachment === null)
|
|
5442
|
+
throw new Error("The parameter 'attachment' cannot be null.");
|
|
5443
|
+
else if (attachment !== undefined)
|
|
5410
5444
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
5411
5445
|
if (tenantId === null)
|
|
5412
5446
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5442,7 +5476,6 @@
|
|
|
5442
5476
|
};
|
|
5443
5477
|
DesignAtomsServiceApiClient.prototype.processRenderDesignPreview = function (response) {
|
|
5444
5478
|
var e_53, _a;
|
|
5445
|
-
var _this = this;
|
|
5446
5479
|
var status = response.status;
|
|
5447
5480
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
5448
5481
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -5478,13 +5511,6 @@
|
|
|
5478
5511
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
5479
5512
|
}));
|
|
5480
5513
|
}
|
|
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
5514
|
else if (status !== 200 && status !== 204) {
|
|
5489
5515
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5490
5516
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -5572,13 +5598,6 @@
|
|
|
5572
5598
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
5573
5599
|
}));
|
|
5574
5600
|
}
|
|
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
5601
|
else if (status !== 200 && status !== 204) {
|
|
5583
5602
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5584
5603
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -5597,7 +5616,9 @@
|
|
|
5597
5616
|
DesignAtomsServiceApiClient.prototype.renderDesignProof = function (attachment, tenantId, body) {
|
|
5598
5617
|
var _this = this;
|
|
5599
5618
|
var url_ = this.baseUrl + "/api/atoms/v1/designs/render-proof?";
|
|
5600
|
-
if (attachment
|
|
5619
|
+
if (attachment === null)
|
|
5620
|
+
throw new Error("The parameter 'attachment' cannot be null.");
|
|
5621
|
+
else if (attachment !== undefined)
|
|
5601
5622
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
5602
5623
|
if (tenantId === null)
|
|
5603
5624
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5633,7 +5654,6 @@
|
|
|
5633
5654
|
};
|
|
5634
5655
|
DesignAtomsServiceApiClient.prototype.processRenderDesignProof = function (response) {
|
|
5635
5656
|
var e_55, _a;
|
|
5636
|
-
var _this = this;
|
|
5637
5657
|
var status = response.status;
|
|
5638
5658
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
5639
5659
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -5669,13 +5689,6 @@
|
|
|
5669
5689
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
5670
5690
|
}));
|
|
5671
5691
|
}
|
|
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
5692
|
else if (status !== 200 && status !== 204) {
|
|
5680
5693
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5681
5694
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -5763,13 +5776,6 @@
|
|
|
5763
5776
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
5764
5777
|
}));
|
|
5765
5778
|
}
|
|
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
5779
|
else if (status !== 200 && status !== 204) {
|
|
5774
5780
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5775
5781
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -5779,21 +5785,27 @@
|
|
|
5779
5785
|
};
|
|
5780
5786
|
/**
|
|
5781
5787
|
* 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
|
|
5788
|
+
* @param designId (optional) Public design identifier.
|
|
5789
|
+
* @param privateDesignId (optional) Private design identifier.
|
|
5790
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
5785
5791
|
* @param tenantId (optional) Tenant identifier
|
|
5786
|
-
* @return
|
|
5792
|
+
* @return Created
|
|
5787
5793
|
* @deprecated
|
|
5788
5794
|
*/
|
|
5789
5795
|
DesignAtomsServiceApiClient.prototype.createPrivateDesignFromDesign = function (designId, privateDesignId, privateStorageOwner, tenantId) {
|
|
5790
5796
|
var _this = this;
|
|
5791
5797
|
var url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-design?";
|
|
5792
|
-
if (designId
|
|
5798
|
+
if (designId === null)
|
|
5799
|
+
throw new Error("The parameter 'designId' cannot be null.");
|
|
5800
|
+
else if (designId !== undefined)
|
|
5793
5801
|
url_ += "designId=" + encodeURIComponent("" + designId) + "&";
|
|
5794
|
-
if (privateDesignId
|
|
5802
|
+
if (privateDesignId === null)
|
|
5803
|
+
throw new Error("The parameter 'privateDesignId' cannot be null.");
|
|
5804
|
+
else if (privateDesignId !== undefined)
|
|
5795
5805
|
url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
|
|
5796
|
-
if (privateStorageOwner
|
|
5806
|
+
if (privateStorageOwner === null)
|
|
5807
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
5808
|
+
else if (privateStorageOwner !== undefined)
|
|
5797
5809
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
5798
5810
|
if (tenantId === null)
|
|
5799
5811
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5824,7 +5836,6 @@
|
|
|
5824
5836
|
};
|
|
5825
5837
|
DesignAtomsServiceApiClient.prototype.processCreatePrivateDesignFromDesign = function (response) {
|
|
5826
5838
|
var e_57, _a;
|
|
5827
|
-
var _this = this;
|
|
5828
5839
|
var status = response.status;
|
|
5829
5840
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
5830
5841
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -5859,13 +5870,6 @@
|
|
|
5859
5870
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
5860
5871
|
}));
|
|
5861
5872
|
}
|
|
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
5873
|
else if (status !== 200 && status !== 204) {
|
|
5870
5874
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5871
5875
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -5875,21 +5879,27 @@
|
|
|
5875
5879
|
};
|
|
5876
5880
|
/**
|
|
5877
5881
|
* 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
|
|
5882
|
+
* @param resourceId (optional) Resource identifier.
|
|
5883
|
+
* @param privateDesignId (optional) Private design identifier.
|
|
5884
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
5885
|
+
* @param tenantId (optional) Tenant identifier.
|
|
5886
|
+
* @return Created
|
|
5883
5887
|
* @deprecated
|
|
5884
5888
|
*/
|
|
5885
5889
|
DesignAtomsServiceApiClient.prototype.createPrivateDesignFromResource = function (resourceId, privateDesignId, privateStorageOwner, tenantId) {
|
|
5886
5890
|
var _this = this;
|
|
5887
5891
|
var url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-resource?";
|
|
5888
|
-
if (resourceId
|
|
5892
|
+
if (resourceId === null)
|
|
5893
|
+
throw new Error("The parameter 'resourceId' cannot be null.");
|
|
5894
|
+
else if (resourceId !== undefined)
|
|
5889
5895
|
url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
|
|
5890
|
-
if (privateDesignId
|
|
5896
|
+
if (privateDesignId === null)
|
|
5897
|
+
throw new Error("The parameter 'privateDesignId' cannot be null.");
|
|
5898
|
+
else if (privateDesignId !== undefined)
|
|
5891
5899
|
url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
|
|
5892
|
-
if (privateStorageOwner
|
|
5900
|
+
if (privateStorageOwner === null)
|
|
5901
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
5902
|
+
else if (privateStorageOwner !== undefined)
|
|
5893
5903
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
5894
5904
|
if (tenantId === null)
|
|
5895
5905
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5920,7 +5930,6 @@
|
|
|
5920
5930
|
};
|
|
5921
5931
|
DesignAtomsServiceApiClient.prototype.processCreatePrivateDesignFromResource = function (response) {
|
|
5922
5932
|
var e_58, _a;
|
|
5923
|
-
var _this = this;
|
|
5924
5933
|
var status = response.status;
|
|
5925
5934
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
5926
5935
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -5955,13 +5964,6 @@
|
|
|
5955
5964
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
5956
5965
|
}));
|
|
5957
5966
|
}
|
|
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
5967
|
else if (status !== 200 && status !== 204) {
|
|
5966
5968
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5967
5969
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -6011,7 +6013,7 @@
|
|
|
6011
6013
|
responseType: "blob",
|
|
6012
6014
|
headers: new i1.HttpHeaders({
|
|
6013
6015
|
"Content-Type": "application/json",
|
|
6014
|
-
"Accept": "
|
|
6016
|
+
"Accept": "text/css"
|
|
6015
6017
|
})
|
|
6016
6018
|
};
|
|
6017
6019
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
@@ -6060,11 +6062,14 @@
|
|
|
6060
6062
|
return rxjs.of(result200);
|
|
6061
6063
|
}));
|
|
6062
6064
|
}
|
|
6063
|
-
else if (status ===
|
|
6065
|
+
else if (status === 401) {
|
|
6064
6066
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6067
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6068
|
+
}));
|
|
6069
|
+
}
|
|
6070
|
+
else if (status === 403) {
|
|
6071
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6072
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6068
6073
|
}));
|
|
6069
6074
|
}
|
|
6070
6075
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6148,11 +6153,14 @@
|
|
|
6148
6153
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
6149
6154
|
}));
|
|
6150
6155
|
}
|
|
6151
|
-
else if (status ===
|
|
6156
|
+
else if (status === 401) {
|
|
6152
6157
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6158
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6159
|
+
}));
|
|
6160
|
+
}
|
|
6161
|
+
else if (status === 403) {
|
|
6162
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6163
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6156
6164
|
}));
|
|
6157
6165
|
}
|
|
6158
6166
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6231,11 +6239,14 @@
|
|
|
6231
6239
|
return rxjs.of(result200);
|
|
6232
6240
|
}));
|
|
6233
6241
|
}
|
|
6234
|
-
else if (status ===
|
|
6242
|
+
else if (status === 401) {
|
|
6243
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6244
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6245
|
+
}));
|
|
6246
|
+
}
|
|
6247
|
+
else if (status === 403) {
|
|
6235
6248
|
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);
|
|
6249
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6239
6250
|
}));
|
|
6240
6251
|
}
|
|
6241
6252
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6314,11 +6325,14 @@
|
|
|
6314
6325
|
return rxjs.of(result200);
|
|
6315
6326
|
}));
|
|
6316
6327
|
}
|
|
6317
|
-
else if (status ===
|
|
6328
|
+
else if (status === 401) {
|
|
6318
6329
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6319
|
-
|
|
6320
|
-
|
|
6321
|
-
|
|
6330
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6331
|
+
}));
|
|
6332
|
+
}
|
|
6333
|
+
else if (status === 403) {
|
|
6334
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6335
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6322
6336
|
}));
|
|
6323
6337
|
}
|
|
6324
6338
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6336,7 +6350,9 @@
|
|
|
6336
6350
|
DesignAtomsViewerApiClient.prototype.getCssFont = function (fontKey, tenantId) {
|
|
6337
6351
|
var _this = this;
|
|
6338
6352
|
var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/GetCssFont?";
|
|
6339
|
-
if (fontKey
|
|
6353
|
+
if (fontKey === null)
|
|
6354
|
+
throw new Error("The parameter 'fontKey' cannot be null.");
|
|
6355
|
+
else if (fontKey !== undefined)
|
|
6340
6356
|
url_ += "fontKey=" + encodeURIComponent("" + fontKey) + "&";
|
|
6341
6357
|
if (tenantId === null)
|
|
6342
6358
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -6402,11 +6418,14 @@
|
|
|
6402
6418
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
6403
6419
|
}));
|
|
6404
6420
|
}
|
|
6405
|
-
else if (status ===
|
|
6421
|
+
else if (status === 401) {
|
|
6406
6422
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
|
|
6423
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6424
|
+
}));
|
|
6425
|
+
}
|
|
6426
|
+
else if (status === 403) {
|
|
6427
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6428
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6410
6429
|
}));
|
|
6411
6430
|
}
|
|
6412
6431
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6474,17 +6493,21 @@
|
|
|
6474
6493
|
finally { if (e_64) throw e_64.error; }
|
|
6475
6494
|
}
|
|
6476
6495
|
}
|
|
6477
|
-
if (status === 200
|
|
6478
|
-
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
|
|
6496
|
+
if (status === 200) {
|
|
6497
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6498
|
+
var result200 = null;
|
|
6499
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
6500
|
+
return rxjs.of(result200);
|
|
6501
|
+
}));
|
|
6482
6502
|
}
|
|
6483
|
-
else if (status ===
|
|
6503
|
+
else if (status === 401) {
|
|
6484
6504
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
|
|
6505
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6506
|
+
}));
|
|
6507
|
+
}
|
|
6508
|
+
else if (status === 403) {
|
|
6509
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6510
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6488
6511
|
}));
|
|
6489
6512
|
}
|
|
6490
6513
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6563,11 +6586,14 @@
|
|
|
6563
6586
|
return rxjs.of(result200);
|
|
6564
6587
|
}));
|
|
6565
6588
|
}
|
|
6566
|
-
else if (status ===
|
|
6589
|
+
else if (status === 401) {
|
|
6590
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6591
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6592
|
+
}));
|
|
6593
|
+
}
|
|
6594
|
+
else if (status === 403) {
|
|
6567
6595
|
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);
|
|
6596
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6571
6597
|
}));
|
|
6572
6598
|
}
|
|
6573
6599
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6646,11 +6672,14 @@
|
|
|
6646
6672
|
return rxjs.of(result200);
|
|
6647
6673
|
}));
|
|
6648
6674
|
}
|
|
6649
|
-
else if (status ===
|
|
6675
|
+
else if (status === 401) {
|
|
6650
6676
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6677
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6678
|
+
}));
|
|
6679
|
+
}
|
|
6680
|
+
else if (status === 403) {
|
|
6681
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6682
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6654
6683
|
}));
|
|
6655
6684
|
}
|
|
6656
6685
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6729,11 +6758,14 @@
|
|
|
6729
6758
|
return rxjs.of(result200);
|
|
6730
6759
|
}));
|
|
6731
6760
|
}
|
|
6732
|
-
else if (status ===
|
|
6761
|
+
else if (status === 401) {
|
|
6762
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6763
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6764
|
+
}));
|
|
6765
|
+
}
|
|
6766
|
+
else if (status === 403) {
|
|
6733
6767
|
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);
|
|
6768
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6737
6769
|
}));
|
|
6738
6770
|
}
|
|
6739
6771
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6768,41 +6800,77 @@
|
|
|
6768
6800
|
DesignAtomsViewerApiClient.prototype.img = function (f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId) {
|
|
6769
6801
|
var _this = this;
|
|
6770
6802
|
var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/img?";
|
|
6771
|
-
if (f
|
|
6803
|
+
if (f === null)
|
|
6804
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
6805
|
+
else if (f !== undefined)
|
|
6772
6806
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
6773
|
-
if (w
|
|
6807
|
+
if (w === null)
|
|
6808
|
+
throw new Error("The parameter 'w' cannot be null.");
|
|
6809
|
+
else if (w !== undefined)
|
|
6774
6810
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
6775
|
-
if (h
|
|
6811
|
+
if (h === null)
|
|
6812
|
+
throw new Error("The parameter 'h' cannot be null.");
|
|
6813
|
+
else if (h !== undefined)
|
|
6776
6814
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
6777
|
-
if (cmyk
|
|
6815
|
+
if (cmyk === null)
|
|
6816
|
+
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
6817
|
+
else if (cmyk !== undefined)
|
|
6778
6818
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
6779
|
-
if (rgb
|
|
6819
|
+
if (rgb === null)
|
|
6820
|
+
throw new Error("The parameter 'rgb' cannot be null.");
|
|
6821
|
+
else if (rgb !== undefined)
|
|
6780
6822
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
6781
|
-
if (grayscale
|
|
6823
|
+
if (grayscale === null)
|
|
6824
|
+
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
6825
|
+
else if (grayscale !== undefined)
|
|
6782
6826
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
6783
|
-
if (target
|
|
6827
|
+
if (target === null)
|
|
6828
|
+
throw new Error("The parameter 'target' cannot be null.");
|
|
6829
|
+
else if (target !== undefined)
|
|
6784
6830
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
6785
|
-
if (sq
|
|
6831
|
+
if (sq === null)
|
|
6832
|
+
throw new Error("The parameter 'sq' cannot be null.");
|
|
6833
|
+
else if (sq !== undefined)
|
|
6786
6834
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
6787
|
-
if (effect
|
|
6835
|
+
if (effect === null)
|
|
6836
|
+
throw new Error("The parameter 'effect' cannot be null.");
|
|
6837
|
+
else if (effect !== undefined)
|
|
6788
6838
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
6789
|
-
if (kp
|
|
6839
|
+
if (kp === null)
|
|
6840
|
+
throw new Error("The parameter 'kp' cannot be null.");
|
|
6841
|
+
else if (kp !== undefined)
|
|
6790
6842
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
6791
|
-
if (color
|
|
6843
|
+
if (color === null)
|
|
6844
|
+
throw new Error("The parameter 'color' cannot be null.");
|
|
6845
|
+
else if (color !== undefined)
|
|
6792
6846
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
6793
|
-
if (obm
|
|
6847
|
+
if (obm === null)
|
|
6848
|
+
throw new Error("The parameter 'obm' cannot be null.");
|
|
6849
|
+
else if (obm !== undefined)
|
|
6794
6850
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
6795
|
-
if (oo
|
|
6851
|
+
if (oo === null)
|
|
6852
|
+
throw new Error("The parameter 'oo' cannot be null.");
|
|
6853
|
+
else if (oo !== undefined)
|
|
6796
6854
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
6797
|
-
if (alphaMask
|
|
6855
|
+
if (alphaMask === null)
|
|
6856
|
+
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
6857
|
+
else if (alphaMask !== undefined)
|
|
6798
6858
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
6799
|
-
if (page
|
|
6859
|
+
if (page === null)
|
|
6860
|
+
throw new Error("The parameter 'page' cannot be null.");
|
|
6861
|
+
else if (page !== undefined)
|
|
6800
6862
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
6801
|
-
if (colorizeColor
|
|
6863
|
+
if (colorizeColor === null)
|
|
6864
|
+
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
6865
|
+
else if (colorizeColor !== undefined)
|
|
6802
6866
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
6803
|
-
if (rw
|
|
6867
|
+
if (rw === null)
|
|
6868
|
+
throw new Error("The parameter 'rw' cannot be null.");
|
|
6869
|
+
else if (rw !== undefined)
|
|
6804
6870
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
6805
|
-
if (rh
|
|
6871
|
+
if (rh === null)
|
|
6872
|
+
throw new Error("The parameter 'rh' cannot be null.");
|
|
6873
|
+
else if (rh !== undefined)
|
|
6806
6874
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
6807
6875
|
if (tenantId === null)
|
|
6808
6876
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -6873,11 +6941,14 @@
|
|
|
6873
6941
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
6874
6942
|
}));
|
|
6875
6943
|
}
|
|
6876
|
-
else if (status ===
|
|
6944
|
+
else if (status === 401) {
|
|
6945
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6946
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6947
|
+
}));
|
|
6948
|
+
}
|
|
6949
|
+
else if (status === 403) {
|
|
6877
6950
|
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);
|
|
6951
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6881
6952
|
}));
|
|
6882
6953
|
}
|
|
6883
6954
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6952,11 +7023,14 @@
|
|
|
6952
7023
|
return rxjs.of(result200);
|
|
6953
7024
|
}));
|
|
6954
7025
|
}
|
|
6955
|
-
else if (status ===
|
|
7026
|
+
else if (status === 401) {
|
|
6956
7027
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
7028
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
7029
|
+
}));
|
|
7030
|
+
}
|
|
7031
|
+
else if (status === 403) {
|
|
7032
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7033
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6960
7034
|
}));
|
|
6961
7035
|
}
|
|
6962
7036
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6974,7 +7048,9 @@
|
|
|
6974
7048
|
DesignAtomsViewerApiClient.prototype.pth = function (f, tenantId) {
|
|
6975
7049
|
var _this = this;
|
|
6976
7050
|
var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/pth?";
|
|
6977
|
-
if (f
|
|
7051
|
+
if (f === null)
|
|
7052
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
7053
|
+
else if (f !== undefined)
|
|
6978
7054
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
6979
7055
|
if (tenantId === null)
|
|
6980
7056
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -7045,11 +7121,14 @@
|
|
|
7045
7121
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
7046
7122
|
}));
|
|
7047
7123
|
}
|
|
7048
|
-
else if (status ===
|
|
7124
|
+
else if (status === 401) {
|
|
7049
7125
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7050
|
-
|
|
7051
|
-
|
|
7052
|
-
|
|
7126
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
7127
|
+
}));
|
|
7128
|
+
}
|
|
7129
|
+
else if (status === 403) {
|
|
7130
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7131
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
7053
7132
|
}));
|
|
7054
7133
|
}
|
|
7055
7134
|
else if (status !== 200 && status !== 204) {
|
|
@@ -7067,7 +7146,9 @@
|
|
|
7067
7146
|
DesignAtomsViewerApiClient.prototype.resource = function (image, tenantId) {
|
|
7068
7147
|
var _this = this;
|
|
7069
7148
|
var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/resource?";
|
|
7070
|
-
if (image
|
|
7149
|
+
if (image === null)
|
|
7150
|
+
throw new Error("The parameter 'image' cannot be null.");
|
|
7151
|
+
else if (image !== undefined)
|
|
7071
7152
|
url_ += "image=" + encodeURIComponent("" + image) + "&";
|
|
7072
7153
|
if (tenantId === null)
|
|
7073
7154
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -7133,11 +7214,14 @@
|
|
|
7133
7214
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
7134
7215
|
}));
|
|
7135
7216
|
}
|
|
7136
|
-
else if (status ===
|
|
7217
|
+
else if (status === 401) {
|
|
7218
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7219
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
7220
|
+
}));
|
|
7221
|
+
}
|
|
7222
|
+
else if (status === 403) {
|
|
7137
7223
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7138
|
-
|
|
7139
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
7140
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
7224
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
7141
7225
|
}));
|
|
7142
7226
|
}
|
|
7143
7227
|
else if (status !== 200 && status !== 204) {
|
|
@@ -7172,41 +7256,77 @@
|
|
|
7172
7256
|
DesignAtomsViewerApiClient.prototype.svg = function (f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId) {
|
|
7173
7257
|
var _this = this;
|
|
7174
7258
|
var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/svg?";
|
|
7175
|
-
if (f
|
|
7259
|
+
if (f === null)
|
|
7260
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
7261
|
+
else if (f !== undefined)
|
|
7176
7262
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
7177
|
-
if (w
|
|
7263
|
+
if (w === null)
|
|
7264
|
+
throw new Error("The parameter 'w' cannot be null.");
|
|
7265
|
+
else if (w !== undefined)
|
|
7178
7266
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
7179
|
-
if (h
|
|
7267
|
+
if (h === null)
|
|
7268
|
+
throw new Error("The parameter 'h' cannot be null.");
|
|
7269
|
+
else if (h !== undefined)
|
|
7180
7270
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
7181
|
-
if (cmyk
|
|
7271
|
+
if (cmyk === null)
|
|
7272
|
+
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
7273
|
+
else if (cmyk !== undefined)
|
|
7182
7274
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
7183
|
-
if (rgb
|
|
7275
|
+
if (rgb === null)
|
|
7276
|
+
throw new Error("The parameter 'rgb' cannot be null.");
|
|
7277
|
+
else if (rgb !== undefined)
|
|
7184
7278
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
7185
|
-
if (grayscale
|
|
7279
|
+
if (grayscale === null)
|
|
7280
|
+
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
7281
|
+
else if (grayscale !== undefined)
|
|
7186
7282
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
7187
|
-
if (target
|
|
7283
|
+
if (target === null)
|
|
7284
|
+
throw new Error("The parameter 'target' cannot be null.");
|
|
7285
|
+
else if (target !== undefined)
|
|
7188
7286
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
7189
|
-
if (sq
|
|
7287
|
+
if (sq === null)
|
|
7288
|
+
throw new Error("The parameter 'sq' cannot be null.");
|
|
7289
|
+
else if (sq !== undefined)
|
|
7190
7290
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
7191
|
-
if (effect
|
|
7291
|
+
if (effect === null)
|
|
7292
|
+
throw new Error("The parameter 'effect' cannot be null.");
|
|
7293
|
+
else if (effect !== undefined)
|
|
7192
7294
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
7193
|
-
if (kp
|
|
7295
|
+
if (kp === null)
|
|
7296
|
+
throw new Error("The parameter 'kp' cannot be null.");
|
|
7297
|
+
else if (kp !== undefined)
|
|
7194
7298
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
7195
|
-
if (color
|
|
7299
|
+
if (color === null)
|
|
7300
|
+
throw new Error("The parameter 'color' cannot be null.");
|
|
7301
|
+
else if (color !== undefined)
|
|
7196
7302
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
7197
|
-
if (obm
|
|
7303
|
+
if (obm === null)
|
|
7304
|
+
throw new Error("The parameter 'obm' cannot be null.");
|
|
7305
|
+
else if (obm !== undefined)
|
|
7198
7306
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
7199
|
-
if (oo
|
|
7307
|
+
if (oo === null)
|
|
7308
|
+
throw new Error("The parameter 'oo' cannot be null.");
|
|
7309
|
+
else if (oo !== undefined)
|
|
7200
7310
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
7201
|
-
if (alphaMask
|
|
7311
|
+
if (alphaMask === null)
|
|
7312
|
+
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
7313
|
+
else if (alphaMask !== undefined)
|
|
7202
7314
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
7203
|
-
if (page
|
|
7315
|
+
if (page === null)
|
|
7316
|
+
throw new Error("The parameter 'page' cannot be null.");
|
|
7317
|
+
else if (page !== undefined)
|
|
7204
7318
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
7205
|
-
if (colorizeColor
|
|
7319
|
+
if (colorizeColor === null)
|
|
7320
|
+
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
7321
|
+
else if (colorizeColor !== undefined)
|
|
7206
7322
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
7207
|
-
if (rw
|
|
7323
|
+
if (rw === null)
|
|
7324
|
+
throw new Error("The parameter 'rw' cannot be null.");
|
|
7325
|
+
else if (rw !== undefined)
|
|
7208
7326
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
7209
|
-
if (rh
|
|
7327
|
+
if (rh === null)
|
|
7328
|
+
throw new Error("The parameter 'rh' cannot be null.");
|
|
7329
|
+
else if (rh !== undefined)
|
|
7210
7330
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
7211
7331
|
if (tenantId === null)
|
|
7212
7332
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -7277,11 +7397,14 @@
|
|
|
7277
7397
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
7278
7398
|
}));
|
|
7279
7399
|
}
|
|
7280
|
-
else if (status ===
|
|
7400
|
+
else if (status === 401) {
|
|
7281
7401
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7282
|
-
|
|
7283
|
-
|
|
7284
|
-
|
|
7402
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
7403
|
+
}));
|
|
7404
|
+
}
|
|
7405
|
+
else if (status === 403) {
|
|
7406
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7407
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
7285
7408
|
}));
|
|
7286
7409
|
}
|
|
7287
7410
|
else if (status !== 200 && status !== 204) {
|
|
@@ -7299,7 +7422,9 @@
|
|
|
7299
7422
|
DesignAtomsViewerApiClient.prototype.txt = function (f, tenantId) {
|
|
7300
7423
|
var _this = this;
|
|
7301
7424
|
var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/txt?";
|
|
7302
|
-
if (f
|
|
7425
|
+
if (f === null)
|
|
7426
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
7427
|
+
else if (f !== undefined)
|
|
7303
7428
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
7304
7429
|
if (tenantId === null)
|
|
7305
7430
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -7370,11 +7495,14 @@
|
|
|
7370
7495
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
7371
7496
|
}));
|
|
7372
7497
|
}
|
|
7373
|
-
else if (status ===
|
|
7498
|
+
else if (status === 401) {
|
|
7374
7499
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7375
|
-
|
|
7376
|
-
|
|
7377
|
-
|
|
7500
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
7501
|
+
}));
|
|
7502
|
+
}
|
|
7503
|
+
else if (status === 403) {
|
|
7504
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7505
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
7378
7506
|
}));
|
|
7379
7507
|
}
|
|
7380
7508
|
else if (status !== 200 && status !== 204) {
|
|
@@ -7453,11 +7581,14 @@
|
|
|
7453
7581
|
return rxjs.of(result200);
|
|
7454
7582
|
}));
|
|
7455
7583
|
}
|
|
7456
|
-
else if (status ===
|
|
7584
|
+
else if (status === 401) {
|
|
7585
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7586
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
7587
|
+
}));
|
|
7588
|
+
}
|
|
7589
|
+
else if (status === 403) {
|
|
7457
7590
|
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);
|
|
7591
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
7461
7592
|
}));
|
|
7462
7593
|
}
|
|
7463
7594
|
else if (status !== 200 && status !== 204) {
|
|
@@ -7536,11 +7667,14 @@
|
|
|
7536
7667
|
return rxjs.of(result200);
|
|
7537
7668
|
}));
|
|
7538
7669
|
}
|
|
7539
|
-
else if (status ===
|
|
7670
|
+
else if (status === 401) {
|
|
7540
7671
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7541
|
-
|
|
7542
|
-
|
|
7543
|
-
|
|
7672
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
7673
|
+
}));
|
|
7674
|
+
}
|
|
7675
|
+
else if (status === 403) {
|
|
7676
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7677
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
7544
7678
|
}));
|
|
7545
7679
|
}
|
|
7546
7680
|
else if (status !== 200 && status !== 204) {
|
|
@@ -7619,11 +7753,14 @@
|
|
|
7619
7753
|
return rxjs.of(result200);
|
|
7620
7754
|
}));
|
|
7621
7755
|
}
|
|
7622
|
-
else if (status ===
|
|
7756
|
+
else if (status === 401) {
|
|
7623
7757
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7624
|
-
|
|
7625
|
-
|
|
7626
|
-
|
|
7758
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
7759
|
+
}));
|
|
7760
|
+
}
|
|
7761
|
+
else if (status === 403) {
|
|
7762
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7763
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
7627
7764
|
}));
|
|
7628
7765
|
}
|
|
7629
7766
|
else if (status !== 200 && status !== 204) {
|
|
@@ -7702,11 +7839,14 @@
|
|
|
7702
7839
|
return rxjs.of(result200);
|
|
7703
7840
|
}));
|
|
7704
7841
|
}
|
|
7705
|
-
else if (status ===
|
|
7842
|
+
else if (status === 401) {
|
|
7843
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7844
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
7845
|
+
}));
|
|
7846
|
+
}
|
|
7847
|
+
else if (status === 403) {
|
|
7706
7848
|
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);
|
|
7849
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
7710
7850
|
}));
|
|
7711
7851
|
}
|
|
7712
7852
|
else if (status !== 200 && status !== 204) {
|
|
@@ -7785,11 +7925,14 @@
|
|
|
7785
7925
|
return rxjs.of(result200);
|
|
7786
7926
|
}));
|
|
7787
7927
|
}
|
|
7788
|
-
else if (status ===
|
|
7928
|
+
else if (status === 401) {
|
|
7929
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7930
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
7931
|
+
}));
|
|
7932
|
+
}
|
|
7933
|
+
else if (status === 403) {
|
|
7789
7934
|
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);
|
|
7935
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
7793
7936
|
}));
|
|
7794
7937
|
}
|
|
7795
7938
|
else if (status !== 200 && status !== 204) {
|
|
@@ -7868,11 +8011,14 @@
|
|
|
7868
8011
|
return rxjs.of(result200);
|
|
7869
8012
|
}));
|
|
7870
8013
|
}
|
|
7871
|
-
else if (status ===
|
|
8014
|
+
else if (status === 401) {
|
|
8015
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
8016
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
8017
|
+
}));
|
|
8018
|
+
}
|
|
8019
|
+
else if (status === 403) {
|
|
7872
8020
|
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);
|
|
8021
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
7876
8022
|
}));
|
|
7877
8023
|
}
|
|
7878
8024
|
else if (status !== 200 && status !== 204) {
|
|
@@ -7951,11 +8097,14 @@
|
|
|
7951
8097
|
return rxjs.of(result200);
|
|
7952
8098
|
}));
|
|
7953
8099
|
}
|
|
7954
|
-
else if (status ===
|
|
8100
|
+
else if (status === 401) {
|
|
8101
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
8102
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
8103
|
+
}));
|
|
8104
|
+
}
|
|
8105
|
+
else if (status === 403) {
|
|
7955
8106
|
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);
|
|
8107
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
7959
8108
|
}));
|
|
7960
8109
|
}
|
|
7961
8110
|
else if (status !== 200 && status !== 204) {
|
|
@@ -8034,11 +8183,14 @@
|
|
|
8034
8183
|
return rxjs.of(result200);
|
|
8035
8184
|
}));
|
|
8036
8185
|
}
|
|
8037
|
-
else if (status ===
|
|
8186
|
+
else if (status === 401) {
|
|
8038
8187
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
8039
|
-
|
|
8040
|
-
|
|
8041
|
-
|
|
8188
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
8189
|
+
}));
|
|
8190
|
+
}
|
|
8191
|
+
else if (status === 403) {
|
|
8192
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
8193
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
8042
8194
|
}));
|
|
8043
8195
|
}
|
|
8044
8196
|
else if (status !== 200 && status !== 204) {
|
|
@@ -8117,11 +8269,14 @@
|
|
|
8117
8269
|
return rxjs.of(result200);
|
|
8118
8270
|
}));
|
|
8119
8271
|
}
|
|
8120
|
-
else if (status ===
|
|
8272
|
+
else if (status === 401) {
|
|
8121
8273
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
8122
|
-
|
|
8123
|
-
|
|
8124
|
-
|
|
8274
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
8275
|
+
}));
|
|
8276
|
+
}
|
|
8277
|
+
else if (status === 403) {
|
|
8278
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
8279
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
8125
8280
|
}));
|
|
8126
8281
|
}
|
|
8127
8282
|
else if (status !== 200 && status !== 204) {
|
|
@@ -8200,11 +8355,14 @@
|
|
|
8200
8355
|
return rxjs.of(result200);
|
|
8201
8356
|
}));
|
|
8202
8357
|
}
|
|
8203
|
-
else if (status ===
|
|
8358
|
+
else if (status === 401) {
|
|
8359
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
8360
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
8361
|
+
}));
|
|
8362
|
+
}
|
|
8363
|
+
else if (status === 403) {
|
|
8204
8364
|
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);
|
|
8365
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
8208
8366
|
}));
|
|
8209
8367
|
}
|
|
8210
8368
|
else if (status !== 200 && status !== 204) {
|
|
@@ -8283,11 +8441,14 @@
|
|
|
8283
8441
|
return rxjs.of(result200);
|
|
8284
8442
|
}));
|
|
8285
8443
|
}
|
|
8286
|
-
else if (status ===
|
|
8444
|
+
else if (status === 401) {
|
|
8287
8445
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
8288
|
-
|
|
8289
|
-
|
|
8290
|
-
|
|
8446
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
8447
|
+
}));
|
|
8448
|
+
}
|
|
8449
|
+
else if (status === 403) {
|
|
8450
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
8451
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
8291
8452
|
}));
|
|
8292
8453
|
}
|
|
8293
8454
|
else if (status !== 200 && status !== 204) {
|
|
@@ -8310,23 +8471,6 @@
|
|
|
8310
8471
|
{ type: i1.HttpClient, decorators: [{ type: i0.Inject, args: [i1.HttpClient,] }] },
|
|
8311
8472
|
{ type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [API_BASE_URL,] }] }
|
|
8312
8473
|
]; };
|
|
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
8474
|
(function (DesignElementType) {
|
|
8331
8475
|
DesignElementType["Product"] = "Product";
|
|
8332
8476
|
DesignElementType["Design"] = "Design";
|
|
@@ -8335,25 +8479,39 @@
|
|
|
8335
8479
|
DesignElementType["PrintArea"] = "PrintArea";
|
|
8336
8480
|
DesignElementType["Item"] = "Item";
|
|
8337
8481
|
})(exports.DesignElementType || (exports.DesignElementType = {}));
|
|
8338
|
-
(function (
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
(
|
|
8344
|
-
|
|
8345
|
-
|
|
8482
|
+
(function (ImagePreviewFitMode) {
|
|
8483
|
+
ImagePreviewFitMode["Fit"] = "Fit";
|
|
8484
|
+
ImagePreviewFitMode["Shrink"] = "Shrink";
|
|
8485
|
+
ImagePreviewFitMode["Resize"] = "Resize";
|
|
8486
|
+
ImagePreviewFitMode["Fill"] = "Fill";
|
|
8487
|
+
})(exports.ImagePreviewFitMode || (exports.ImagePreviewFitMode = {}));
|
|
8488
|
+
(function (ImagePreviewFormat) {
|
|
8489
|
+
ImagePreviewFormat["Jpeg"] = "Jpeg";
|
|
8490
|
+
ImagePreviewFormat["Png"] = "Png";
|
|
8491
|
+
})(exports.ImagePreviewFormat || (exports.ImagePreviewFormat = {}));
|
|
8492
|
+
(function (ItemSourceType) {
|
|
8493
|
+
ItemSourceType["File"] = "File";
|
|
8494
|
+
ItemSourceType["ImageStorage"] = "ImageStorage";
|
|
8495
|
+
ItemSourceType["PrivateImageStorage"] = "PrivateImageStorage";
|
|
8496
|
+
})(exports.ItemSourceType || (exports.ItemSourceType = {}));
|
|
8346
8497
|
(function (ItemType) {
|
|
8347
8498
|
ItemType["Image"] = "Image";
|
|
8348
8499
|
ItemType["Shape"] = "Shape";
|
|
8349
8500
|
ItemType["Clipart"] = "Clipart";
|
|
8350
8501
|
ItemType["Group"] = "Group";
|
|
8351
8502
|
})(exports.ItemType || (exports.ItemType = {}));
|
|
8352
|
-
(function (
|
|
8353
|
-
|
|
8354
|
-
|
|
8355
|
-
|
|
8356
|
-
|
|
8503
|
+
(function (PlaceholderItemContentType) {
|
|
8504
|
+
PlaceholderItemContentType["Image"] = "Image";
|
|
8505
|
+
})(exports.PlaceholderItemContentType || (exports.PlaceholderItemContentType = {}));
|
|
8506
|
+
(function (ProductPatchType) {
|
|
8507
|
+
ProductPatchType["Undefined"] = "Undefined";
|
|
8508
|
+
ProductPatchType["ReplaceImageItemFile"] = "ReplaceImageItemFile";
|
|
8509
|
+
ProductPatchType["ReplacePlaceholderItemContent"] = "ReplacePlaceholderItemContent";
|
|
8510
|
+
})(exports.ProductPatchType || (exports.ProductPatchType = {}));
|
|
8511
|
+
(function (ProductPreviewFormat) {
|
|
8512
|
+
ProductPreviewFormat["Jpeg"] = "Jpeg";
|
|
8513
|
+
ProductPreviewFormat["Png"] = "Png";
|
|
8514
|
+
})(exports.ProductPreviewFormat || (exports.ProductPreviewFormat = {}));
|
|
8357
8515
|
(function (ProductProofFormat) {
|
|
8358
8516
|
ProductProofFormat["Jpeg"] = "Jpeg";
|
|
8359
8517
|
ProductProofFormat["Png"] = "Png";
|
|
@@ -8373,10 +8531,6 @@
|
|
|
8373
8531
|
ProductProofInterpolationMode["Anisotropic9"] = "Anisotropic9";
|
|
8374
8532
|
ProductProofInterpolationMode["Lanczos3"] = "Lanczos3";
|
|
8375
8533
|
})(exports.ProductProofInterpolationMode || (exports.ProductProofInterpolationMode = {}));
|
|
8376
|
-
(function (ProductPreviewFormat) {
|
|
8377
|
-
ProductPreviewFormat["Jpeg"] = "Jpeg";
|
|
8378
|
-
ProductPreviewFormat["Png"] = "Png";
|
|
8379
|
-
})(exports.ProductPreviewFormat || (exports.ProductPreviewFormat = {}));
|
|
8380
8534
|
var ApiException = /** @class */ (function (_super) {
|
|
8381
8535
|
__extends(ApiException, _super);
|
|
8382
8536
|
function ApiException(message, status, response, headers, result) {
|