@aurigma/ng-design-atoms-api-client 2.62.6 → 2.63.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/aurigma-ng-design-atoms-api-client.metadata.json +1 -1
- package/bundles/aurigma-ng-design-atoms-api-client.umd.js +109 -327
- 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/lib/design-atoms-api-client.js +110 -328
- package/fesm2015/aurigma-ng-design-atoms-api-client.js +109 -327
- package/fesm2015/aurigma-ng-design-atoms-api-client.js.map +1 -1
- package/lib/design-atoms-api-client.d.ts +72 -72
- package/package.json +1 -1
|
@@ -881,9 +881,7 @@
|
|
|
881
881
|
if (tenantId === undefined || tenantId === null)
|
|
882
882
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
883
883
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
884
|
-
if (fontKey
|
|
885
|
-
throw new Error("The parameter 'fontKey' cannot be null.");
|
|
886
|
-
else if (fontKey !== undefined)
|
|
884
|
+
if (fontKey !== undefined && fontKey !== null)
|
|
887
885
|
url_ += "fontKey=" + encodeURIComponent("" + fontKey) + "&";
|
|
888
886
|
url_ = url_.replace(/[?&]$/, "");
|
|
889
887
|
var options_ = {
|
|
@@ -1321,77 +1319,41 @@
|
|
|
1321
1319
|
if (tenantId === undefined || tenantId === null)
|
|
1322
1320
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
1323
1321
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
1324
|
-
if (f
|
|
1325
|
-
throw new Error("The parameter 'f' cannot be null.");
|
|
1326
|
-
else if (f !== undefined)
|
|
1322
|
+
if (f !== undefined && f !== null)
|
|
1327
1323
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
1328
|
-
if (w
|
|
1329
|
-
throw new Error("The parameter 'w' cannot be null.");
|
|
1330
|
-
else if (w !== undefined)
|
|
1324
|
+
if (w !== undefined && w !== null)
|
|
1331
1325
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
1332
|
-
if (h
|
|
1333
|
-
throw new Error("The parameter 'h' cannot be null.");
|
|
1334
|
-
else if (h !== undefined)
|
|
1326
|
+
if (h !== undefined && h !== null)
|
|
1335
1327
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
1336
|
-
if (cmyk
|
|
1337
|
-
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
1338
|
-
else if (cmyk !== undefined)
|
|
1328
|
+
if (cmyk !== undefined && cmyk !== null)
|
|
1339
1329
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
1340
|
-
if (rgb
|
|
1341
|
-
throw new Error("The parameter 'rgb' cannot be null.");
|
|
1342
|
-
else if (rgb !== undefined)
|
|
1330
|
+
if (rgb !== undefined && rgb !== null)
|
|
1343
1331
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
1344
|
-
if (grayscale
|
|
1345
|
-
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
1346
|
-
else if (grayscale !== undefined)
|
|
1332
|
+
if (grayscale !== undefined && grayscale !== null)
|
|
1347
1333
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
1348
|
-
if (target
|
|
1349
|
-
throw new Error("The parameter 'target' cannot be null.");
|
|
1350
|
-
else if (target !== undefined)
|
|
1334
|
+
if (target !== undefined && target !== null)
|
|
1351
1335
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
1352
|
-
if (sq
|
|
1353
|
-
throw new Error("The parameter 'sq' cannot be null.");
|
|
1354
|
-
else if (sq !== undefined)
|
|
1336
|
+
if (sq !== undefined && sq !== null)
|
|
1355
1337
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
1356
|
-
if (effect
|
|
1357
|
-
throw new Error("The parameter 'effect' cannot be null.");
|
|
1358
|
-
else if (effect !== undefined)
|
|
1338
|
+
if (effect !== undefined && effect !== null)
|
|
1359
1339
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
1360
|
-
if (kp
|
|
1361
|
-
throw new Error("The parameter 'kp' cannot be null.");
|
|
1362
|
-
else if (kp !== undefined)
|
|
1340
|
+
if (kp !== undefined && kp !== null)
|
|
1363
1341
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
1364
|
-
if (color
|
|
1365
|
-
throw new Error("The parameter 'color' cannot be null.");
|
|
1366
|
-
else if (color !== undefined)
|
|
1342
|
+
if (color !== undefined && color !== null)
|
|
1367
1343
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
1368
|
-
if (obm
|
|
1369
|
-
throw new Error("The parameter 'obm' cannot be null.");
|
|
1370
|
-
else if (obm !== undefined)
|
|
1344
|
+
if (obm !== undefined && obm !== null)
|
|
1371
1345
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
1372
|
-
if (oo
|
|
1373
|
-
throw new Error("The parameter 'oo' cannot be null.");
|
|
1374
|
-
else if (oo !== undefined)
|
|
1346
|
+
if (oo !== undefined && oo !== null)
|
|
1375
1347
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
1376
|
-
if (alphaMask
|
|
1377
|
-
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
1378
|
-
else if (alphaMask !== undefined)
|
|
1348
|
+
if (alphaMask !== undefined && alphaMask !== null)
|
|
1379
1349
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
1380
|
-
if (page
|
|
1381
|
-
throw new Error("The parameter 'page' cannot be null.");
|
|
1382
|
-
else if (page !== undefined)
|
|
1350
|
+
if (page !== undefined && page !== null)
|
|
1383
1351
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
1384
|
-
if (colorizeColor
|
|
1385
|
-
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
1386
|
-
else if (colorizeColor !== undefined)
|
|
1352
|
+
if (colorizeColor !== undefined && colorizeColor !== null)
|
|
1387
1353
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
1388
|
-
if (rw
|
|
1389
|
-
throw new Error("The parameter 'rw' cannot be null.");
|
|
1390
|
-
else if (rw !== undefined)
|
|
1354
|
+
if (rw !== undefined && rw !== null)
|
|
1391
1355
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
1392
|
-
if (rh
|
|
1393
|
-
throw new Error("The parameter 'rh' cannot be null.");
|
|
1394
|
-
else if (rh !== undefined)
|
|
1356
|
+
if (rh !== undefined && rh !== null)
|
|
1395
1357
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
1396
1358
|
url_ = url_.replace(/[?&]$/, "");
|
|
1397
1359
|
var options_ = {
|
|
@@ -1565,9 +1527,7 @@
|
|
|
1565
1527
|
if (tenantId === undefined || tenantId === null)
|
|
1566
1528
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
1567
1529
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
1568
|
-
if (f
|
|
1569
|
-
throw new Error("The parameter 'f' cannot be null.");
|
|
1570
|
-
else if (f !== undefined)
|
|
1530
|
+
if (f !== undefined && f !== null)
|
|
1571
1531
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
1572
1532
|
url_ = url_.replace(/[?&]$/, "");
|
|
1573
1533
|
var options_ = {
|
|
@@ -1661,9 +1621,7 @@
|
|
|
1661
1621
|
if (tenantId === undefined || tenantId === null)
|
|
1662
1622
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
1663
1623
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
1664
|
-
if (image
|
|
1665
|
-
throw new Error("The parameter 'image' cannot be null.");
|
|
1666
|
-
else if (image !== undefined)
|
|
1624
|
+
if (image !== undefined && image !== null)
|
|
1667
1625
|
url_ += "image=" + encodeURIComponent("" + image) + "&";
|
|
1668
1626
|
url_ = url_.replace(/[?&]$/, "");
|
|
1669
1627
|
var options_ = {
|
|
@@ -1769,77 +1727,41 @@
|
|
|
1769
1727
|
if (tenantId === undefined || tenantId === null)
|
|
1770
1728
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
1771
1729
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
1772
|
-
if (f
|
|
1773
|
-
throw new Error("The parameter 'f' cannot be null.");
|
|
1774
|
-
else if (f !== undefined)
|
|
1730
|
+
if (f !== undefined && f !== null)
|
|
1775
1731
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
1776
|
-
if (w
|
|
1777
|
-
throw new Error("The parameter 'w' cannot be null.");
|
|
1778
|
-
else if (w !== undefined)
|
|
1732
|
+
if (w !== undefined && w !== null)
|
|
1779
1733
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
1780
|
-
if (h
|
|
1781
|
-
throw new Error("The parameter 'h' cannot be null.");
|
|
1782
|
-
else if (h !== undefined)
|
|
1734
|
+
if (h !== undefined && h !== null)
|
|
1783
1735
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
1784
|
-
if (cmyk
|
|
1785
|
-
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
1786
|
-
else if (cmyk !== undefined)
|
|
1736
|
+
if (cmyk !== undefined && cmyk !== null)
|
|
1787
1737
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
1788
|
-
if (rgb
|
|
1789
|
-
throw new Error("The parameter 'rgb' cannot be null.");
|
|
1790
|
-
else if (rgb !== undefined)
|
|
1738
|
+
if (rgb !== undefined && rgb !== null)
|
|
1791
1739
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
1792
|
-
if (grayscale
|
|
1793
|
-
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
1794
|
-
else if (grayscale !== undefined)
|
|
1740
|
+
if (grayscale !== undefined && grayscale !== null)
|
|
1795
1741
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
1796
|
-
if (target
|
|
1797
|
-
throw new Error("The parameter 'target' cannot be null.");
|
|
1798
|
-
else if (target !== undefined)
|
|
1742
|
+
if (target !== undefined && target !== null)
|
|
1799
1743
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
1800
|
-
if (sq
|
|
1801
|
-
throw new Error("The parameter 'sq' cannot be null.");
|
|
1802
|
-
else if (sq !== undefined)
|
|
1744
|
+
if (sq !== undefined && sq !== null)
|
|
1803
1745
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
1804
|
-
if (effect
|
|
1805
|
-
throw new Error("The parameter 'effect' cannot be null.");
|
|
1806
|
-
else if (effect !== undefined)
|
|
1746
|
+
if (effect !== undefined && effect !== null)
|
|
1807
1747
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
1808
|
-
if (kp
|
|
1809
|
-
throw new Error("The parameter 'kp' cannot be null.");
|
|
1810
|
-
else if (kp !== undefined)
|
|
1748
|
+
if (kp !== undefined && kp !== null)
|
|
1811
1749
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
1812
|
-
if (color
|
|
1813
|
-
throw new Error("The parameter 'color' cannot be null.");
|
|
1814
|
-
else if (color !== undefined)
|
|
1750
|
+
if (color !== undefined && color !== null)
|
|
1815
1751
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
1816
|
-
if (obm
|
|
1817
|
-
throw new Error("The parameter 'obm' cannot be null.");
|
|
1818
|
-
else if (obm !== undefined)
|
|
1752
|
+
if (obm !== undefined && obm !== null)
|
|
1819
1753
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
1820
|
-
if (oo
|
|
1821
|
-
throw new Error("The parameter 'oo' cannot be null.");
|
|
1822
|
-
else if (oo !== undefined)
|
|
1754
|
+
if (oo !== undefined && oo !== null)
|
|
1823
1755
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
1824
|
-
if (alphaMask
|
|
1825
|
-
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
1826
|
-
else if (alphaMask !== undefined)
|
|
1756
|
+
if (alphaMask !== undefined && alphaMask !== null)
|
|
1827
1757
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
1828
|
-
if (page
|
|
1829
|
-
throw new Error("The parameter 'page' cannot be null.");
|
|
1830
|
-
else if (page !== undefined)
|
|
1758
|
+
if (page !== undefined && page !== null)
|
|
1831
1759
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
1832
|
-
if (colorizeColor
|
|
1833
|
-
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
1834
|
-
else if (colorizeColor !== undefined)
|
|
1760
|
+
if (colorizeColor !== undefined && colorizeColor !== null)
|
|
1835
1761
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
1836
|
-
if (rw
|
|
1837
|
-
throw new Error("The parameter 'rw' cannot be null.");
|
|
1838
|
-
else if (rw !== undefined)
|
|
1762
|
+
if (rw !== undefined && rw !== null)
|
|
1839
1763
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
1840
|
-
if (rh
|
|
1841
|
-
throw new Error("The parameter 'rh' cannot be null.");
|
|
1842
|
-
else if (rh !== undefined)
|
|
1764
|
+
if (rh !== undefined && rh !== null)
|
|
1843
1765
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
1844
1766
|
url_ = url_.replace(/[?&]$/, "");
|
|
1845
1767
|
var options_ = {
|
|
@@ -1933,9 +1855,7 @@
|
|
|
1933
1855
|
if (tenantId === undefined || tenantId === null)
|
|
1934
1856
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
1935
1857
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
1936
|
-
if (f
|
|
1937
|
-
throw new Error("The parameter 'f' cannot be null.");
|
|
1938
|
-
else if (f !== undefined)
|
|
1858
|
+
if (f !== undefined && f !== null)
|
|
1939
1859
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
1940
1860
|
url_ = url_.replace(/[?&]$/, "");
|
|
1941
1861
|
var options_ = {
|
|
@@ -2976,9 +2896,7 @@
|
|
|
2976
2896
|
DesignAtomsImagesApiClient.prototype.renderImagePreview = function (attachment, tenantId, body) {
|
|
2977
2897
|
var _this = this;
|
|
2978
2898
|
var url_ = this.baseUrl + "/api/atoms/v1/images/render-preview?";
|
|
2979
|
-
if (attachment
|
|
2980
|
-
throw new Error("The parameter 'attachment' cannot be null.");
|
|
2981
|
-
else if (attachment !== undefined)
|
|
2899
|
+
if (attachment !== undefined && attachment !== null)
|
|
2982
2900
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
2983
2901
|
if (tenantId === null)
|
|
2984
2902
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3178,9 +3096,7 @@
|
|
|
3178
3096
|
if (id === undefined || id === null)
|
|
3179
3097
|
throw new Error("The parameter 'id' must be defined.");
|
|
3180
3098
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3181
|
-
if (ownerId
|
|
3182
|
-
throw new Error("The parameter 'ownerId' cannot be null.");
|
|
3183
|
-
else if (ownerId !== undefined)
|
|
3099
|
+
if (ownerId !== undefined && ownerId !== null)
|
|
3184
3100
|
url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
|
|
3185
3101
|
if (tenantId === null)
|
|
3186
3102
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3284,9 +3200,7 @@
|
|
|
3284
3200
|
if (id === undefined || id === null)
|
|
3285
3201
|
throw new Error("The parameter 'id' must be defined.");
|
|
3286
3202
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3287
|
-
if (ownerId
|
|
3288
|
-
throw new Error("The parameter 'ownerId' cannot be null.");
|
|
3289
|
-
else if (ownerId !== undefined)
|
|
3203
|
+
if (ownerId !== undefined && ownerId !== null)
|
|
3290
3204
|
url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
|
|
3291
3205
|
if (tenantId === null)
|
|
3292
3206
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3389,9 +3303,7 @@
|
|
|
3389
3303
|
if (id === undefined || id === null)
|
|
3390
3304
|
throw new Error("The parameter 'id' must be defined.");
|
|
3391
3305
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3392
|
-
if (ownerId
|
|
3393
|
-
throw new Error("The parameter 'ownerId' cannot be null.");
|
|
3394
|
-
else if (ownerId !== undefined)
|
|
3306
|
+
if (ownerId !== undefined && ownerId !== null)
|
|
3395
3307
|
url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
|
|
3396
3308
|
if (tenantId === null)
|
|
3397
3309
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3513,9 +3425,7 @@
|
|
|
3513
3425
|
DesignAtomsServiceApiClient.prototype.createDesign = function (privateStorageOwner, tenantId, body) {
|
|
3514
3426
|
var _this = this;
|
|
3515
3427
|
var url_ = this.baseUrl + "/api/atoms/v1/designs?";
|
|
3516
|
-
if (privateStorageOwner
|
|
3517
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3518
|
-
else if (privateStorageOwner !== undefined)
|
|
3428
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3519
3429
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3520
3430
|
if (tenantId === null)
|
|
3521
3431
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3609,13 +3519,9 @@
|
|
|
3609
3519
|
if (id === undefined || id === null)
|
|
3610
3520
|
throw new Error("The parameter 'id' must be defined.");
|
|
3611
3521
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3612
|
-
if (surfaceIndex
|
|
3613
|
-
throw new Error("The parameter 'surfaceIndex' cannot be null.");
|
|
3614
|
-
else if (surfaceIndex !== undefined)
|
|
3522
|
+
if (surfaceIndex !== undefined && surfaceIndex !== null)
|
|
3615
3523
|
url_ += "surfaceIndex=" + encodeURIComponent("" + surfaceIndex) + "&";
|
|
3616
|
-
if (privateStorageOwner
|
|
3617
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3618
|
-
else if (privateStorageOwner !== undefined)
|
|
3524
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3619
3525
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3620
3526
|
if (tenantId === null)
|
|
3621
3527
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3718,9 +3624,7 @@
|
|
|
3718
3624
|
if (id === undefined || id === null)
|
|
3719
3625
|
throw new Error("The parameter 'id' must be defined.");
|
|
3720
3626
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3721
|
-
if (privateStorageOwner
|
|
3722
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3723
|
-
else if (privateStorageOwner !== undefined)
|
|
3627
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3724
3628
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3725
3629
|
if (tenantId === null)
|
|
3726
3630
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3818,9 +3722,7 @@
|
|
|
3818
3722
|
if (id === undefined || id === null)
|
|
3819
3723
|
throw new Error("The parameter 'id' must be defined.");
|
|
3820
3724
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3821
|
-
if (privateStorageOwner
|
|
3822
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3823
|
-
else if (privateStorageOwner !== undefined)
|
|
3725
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3824
3726
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3825
3727
|
if (tenantId === null)
|
|
3826
3728
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3923,9 +3825,7 @@
|
|
|
3923
3825
|
if (id === undefined || id === null)
|
|
3924
3826
|
throw new Error("The parameter 'id' must be defined.");
|
|
3925
3827
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3926
|
-
if (privateStorageOwner
|
|
3927
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3928
|
-
else if (privateStorageOwner !== undefined)
|
|
3828
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3929
3829
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3930
3830
|
if (tenantId === null)
|
|
3931
3831
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4036,9 +3936,7 @@
|
|
|
4036
3936
|
if (id === undefined || id === null)
|
|
4037
3937
|
throw new Error("The parameter 'id' must be defined.");
|
|
4038
3938
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4039
|
-
if (privateStorageOwner
|
|
4040
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4041
|
-
else if (privateStorageOwner !== undefined)
|
|
3939
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
4042
3940
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4043
3941
|
if (tenantId === null)
|
|
4044
3942
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4135,9 +4033,7 @@
|
|
|
4135
4033
|
if (id === undefined || id === null)
|
|
4136
4034
|
throw new Error("The parameter 'id' must be defined.");
|
|
4137
4035
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4138
|
-
if (privateStorageOwner
|
|
4139
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4140
|
-
else if (privateStorageOwner !== undefined)
|
|
4036
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
4141
4037
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4142
4038
|
if (tenantId === null)
|
|
4143
4039
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4240,9 +4136,7 @@
|
|
|
4240
4136
|
if (id === undefined || id === null)
|
|
4241
4137
|
throw new Error("The parameter 'id' must be defined.");
|
|
4242
4138
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4243
|
-
if (privateStorageOwner
|
|
4244
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4245
|
-
else if (privateStorageOwner !== undefined)
|
|
4139
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
4246
4140
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4247
4141
|
if (tenantId === null)
|
|
4248
4142
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4345,9 +4239,7 @@
|
|
|
4345
4239
|
if (id === undefined || id === null)
|
|
4346
4240
|
throw new Error("The parameter 'id' must be defined.");
|
|
4347
4241
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4348
|
-
if (privateStorageOwner
|
|
4349
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4350
|
-
else if (privateStorageOwner !== undefined)
|
|
4242
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
4351
4243
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4352
4244
|
if (tenantId === null)
|
|
4353
4245
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4445,9 +4337,7 @@
|
|
|
4445
4337
|
if (id === undefined || id === null)
|
|
4446
4338
|
throw new Error("The parameter 'id' must be defined.");
|
|
4447
4339
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4448
|
-
if (privateStorageOwner
|
|
4449
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4450
|
-
else if (privateStorageOwner !== undefined)
|
|
4340
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
4451
4341
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4452
4342
|
if (tenantId === null)
|
|
4453
4343
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4551,9 +4441,7 @@
|
|
|
4551
4441
|
if (id === undefined || id === null)
|
|
4552
4442
|
throw new Error("The parameter 'id' must be defined.");
|
|
4553
4443
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4554
|
-
if (privateStorageOwner
|
|
4555
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4556
|
-
else if (privateStorageOwner !== undefined)
|
|
4444
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
4557
4445
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4558
4446
|
if (tenantId === null)
|
|
4559
4447
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4658,9 +4546,7 @@
|
|
|
4658
4546
|
if (id === undefined || id === null)
|
|
4659
4547
|
throw new Error("The parameter 'id' must be defined.");
|
|
4660
4548
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4661
|
-
if (privateStorageOwner
|
|
4662
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4663
|
-
else if (privateStorageOwner !== undefined)
|
|
4549
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
4664
4550
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4665
4551
|
if (tenantId === null)
|
|
4666
4552
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4757,9 +4643,7 @@
|
|
|
4757
4643
|
if (id === undefined || id === null)
|
|
4758
4644
|
throw new Error("The parameter 'id' must be defined.");
|
|
4759
4645
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4760
|
-
if (privateStorageOwner
|
|
4761
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4762
|
-
else if (privateStorageOwner !== undefined)
|
|
4646
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
4763
4647
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4764
4648
|
if (tenantId === null)
|
|
4765
4649
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4852,9 +4736,7 @@
|
|
|
4852
4736
|
if (id === undefined || id === null)
|
|
4853
4737
|
throw new Error("The parameter 'id' must be defined.");
|
|
4854
4738
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4855
|
-
if (privateStorageOwner
|
|
4856
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4857
|
-
else if (privateStorageOwner !== undefined)
|
|
4739
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
4858
4740
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4859
4741
|
if (tenantId === null)
|
|
4860
4742
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5052,9 +4934,7 @@
|
|
|
5052
4934
|
DesignAtomsServiceApiClient.prototype.createItem = function (itemType, tenantId, sourceType, sourceId, sourceOwnerId, sourceFile) {
|
|
5053
4935
|
var _this = this;
|
|
5054
4936
|
var url_ = this.baseUrl + "/api/atoms/v1/designs/model/items?";
|
|
5055
|
-
if (itemType
|
|
5056
|
-
throw new Error("The parameter 'itemType' cannot be null.");
|
|
5057
|
-
else if (itemType !== undefined)
|
|
4937
|
+
if (itemType !== undefined && itemType !== null)
|
|
5058
4938
|
url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
|
|
5059
4939
|
if (tenantId === null)
|
|
5060
4940
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5331,9 +5211,7 @@
|
|
|
5331
5211
|
DesignAtomsServiceApiClient.prototype.renderProduct = function (attachment, tenantId, body) {
|
|
5332
5212
|
var _this = this;
|
|
5333
5213
|
var url_ = this.baseUrl + "/api/atoms/v1/designs/model/render-proof?";
|
|
5334
|
-
if (attachment
|
|
5335
|
-
throw new Error("The parameter 'attachment' cannot be null.");
|
|
5336
|
-
else if (attachment !== undefined)
|
|
5214
|
+
if (attachment !== undefined && attachment !== null)
|
|
5337
5215
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
5338
5216
|
if (tenantId === null)
|
|
5339
5217
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5422,9 +5300,7 @@
|
|
|
5422
5300
|
DesignAtomsServiceApiClient.prototype.renderDesignPreview = function (attachment, tenantId, body) {
|
|
5423
5301
|
var _this = this;
|
|
5424
5302
|
var url_ = this.baseUrl + "/api/atoms/v1/designs/render-preview?";
|
|
5425
|
-
if (attachment
|
|
5426
|
-
throw new Error("The parameter 'attachment' cannot be null.");
|
|
5427
|
-
else if (attachment !== undefined)
|
|
5303
|
+
if (attachment !== undefined && attachment !== null)
|
|
5428
5304
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
5429
5305
|
if (tenantId === null)
|
|
5430
5306
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5600,9 +5476,7 @@
|
|
|
5600
5476
|
DesignAtomsServiceApiClient.prototype.renderDesignProof = function (attachment, tenantId, body) {
|
|
5601
5477
|
var _this = this;
|
|
5602
5478
|
var url_ = this.baseUrl + "/api/atoms/v1/designs/render-proof?";
|
|
5603
|
-
if (attachment
|
|
5604
|
-
throw new Error("The parameter 'attachment' cannot be null.");
|
|
5605
|
-
else if (attachment !== undefined)
|
|
5479
|
+
if (attachment !== undefined && attachment !== null)
|
|
5606
5480
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
5607
5481
|
if (tenantId === null)
|
|
5608
5482
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5779,17 +5653,11 @@
|
|
|
5779
5653
|
DesignAtomsServiceApiClient.prototype.createPrivateDesignFromDesign = function (designId, privateDesignId, privateStorageOwner, tenantId) {
|
|
5780
5654
|
var _this = this;
|
|
5781
5655
|
var url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-design?";
|
|
5782
|
-
if (designId
|
|
5783
|
-
throw new Error("The parameter 'designId' cannot be null.");
|
|
5784
|
-
else if (designId !== undefined)
|
|
5656
|
+
if (designId !== undefined && designId !== null)
|
|
5785
5657
|
url_ += "designId=" + encodeURIComponent("" + designId) + "&";
|
|
5786
|
-
if (privateDesignId
|
|
5787
|
-
throw new Error("The parameter 'privateDesignId' cannot be null.");
|
|
5788
|
-
else if (privateDesignId !== undefined)
|
|
5658
|
+
if (privateDesignId !== undefined && privateDesignId !== null)
|
|
5789
5659
|
url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
|
|
5790
|
-
if (privateStorageOwner
|
|
5791
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
5792
|
-
else if (privateStorageOwner !== undefined)
|
|
5660
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
5793
5661
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
5794
5662
|
if (tenantId === null)
|
|
5795
5663
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5873,17 +5741,11 @@
|
|
|
5873
5741
|
DesignAtomsServiceApiClient.prototype.createPrivateDesignFromResource = function (resourceId, privateDesignId, privateStorageOwner, tenantId) {
|
|
5874
5742
|
var _this = this;
|
|
5875
5743
|
var url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-resource?";
|
|
5876
|
-
if (resourceId
|
|
5877
|
-
throw new Error("The parameter 'resourceId' cannot be null.");
|
|
5878
|
-
else if (resourceId !== undefined)
|
|
5744
|
+
if (resourceId !== undefined && resourceId !== null)
|
|
5879
5745
|
url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
|
|
5880
|
-
if (privateDesignId
|
|
5881
|
-
throw new Error("The parameter 'privateDesignId' cannot be null.");
|
|
5882
|
-
else if (privateDesignId !== undefined)
|
|
5746
|
+
if (privateDesignId !== undefined && privateDesignId !== null)
|
|
5883
5747
|
url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
|
|
5884
|
-
if (privateStorageOwner
|
|
5885
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
5886
|
-
else if (privateStorageOwner !== undefined)
|
|
5748
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
5887
5749
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
5888
5750
|
if (tenantId === null)
|
|
5889
5751
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -6334,9 +6196,7 @@
|
|
|
6334
6196
|
DesignAtomsViewerApiClient.prototype.getCssFont = function (fontKey, tenantId) {
|
|
6335
6197
|
var _this = this;
|
|
6336
6198
|
var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/GetCssFont?";
|
|
6337
|
-
if (fontKey
|
|
6338
|
-
throw new Error("The parameter 'fontKey' cannot be null.");
|
|
6339
|
-
else if (fontKey !== undefined)
|
|
6199
|
+
if (fontKey !== undefined && fontKey !== null)
|
|
6340
6200
|
url_ += "fontKey=" + encodeURIComponent("" + fontKey) + "&";
|
|
6341
6201
|
if (tenantId === null)
|
|
6342
6202
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -6784,77 +6644,41 @@
|
|
|
6784
6644
|
DesignAtomsViewerApiClient.prototype.img = function (f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId) {
|
|
6785
6645
|
var _this = this;
|
|
6786
6646
|
var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/img?";
|
|
6787
|
-
if (f
|
|
6788
|
-
throw new Error("The parameter 'f' cannot be null.");
|
|
6789
|
-
else if (f !== undefined)
|
|
6647
|
+
if (f !== undefined && f !== null)
|
|
6790
6648
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
6791
|
-
if (w
|
|
6792
|
-
throw new Error("The parameter 'w' cannot be null.");
|
|
6793
|
-
else if (w !== undefined)
|
|
6649
|
+
if (w !== undefined && w !== null)
|
|
6794
6650
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
6795
|
-
if (h
|
|
6796
|
-
throw new Error("The parameter 'h' cannot be null.");
|
|
6797
|
-
else if (h !== undefined)
|
|
6651
|
+
if (h !== undefined && h !== null)
|
|
6798
6652
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
6799
|
-
if (cmyk
|
|
6800
|
-
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
6801
|
-
else if (cmyk !== undefined)
|
|
6653
|
+
if (cmyk !== undefined && cmyk !== null)
|
|
6802
6654
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
6803
|
-
if (rgb
|
|
6804
|
-
throw new Error("The parameter 'rgb' cannot be null.");
|
|
6805
|
-
else if (rgb !== undefined)
|
|
6655
|
+
if (rgb !== undefined && rgb !== null)
|
|
6806
6656
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
6807
|
-
if (grayscale
|
|
6808
|
-
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
6809
|
-
else if (grayscale !== undefined)
|
|
6657
|
+
if (grayscale !== undefined && grayscale !== null)
|
|
6810
6658
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
6811
|
-
if (target
|
|
6812
|
-
throw new Error("The parameter 'target' cannot be null.");
|
|
6813
|
-
else if (target !== undefined)
|
|
6659
|
+
if (target !== undefined && target !== null)
|
|
6814
6660
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
6815
|
-
if (sq
|
|
6816
|
-
throw new Error("The parameter 'sq' cannot be null.");
|
|
6817
|
-
else if (sq !== undefined)
|
|
6661
|
+
if (sq !== undefined && sq !== null)
|
|
6818
6662
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
6819
|
-
if (effect
|
|
6820
|
-
throw new Error("The parameter 'effect' cannot be null.");
|
|
6821
|
-
else if (effect !== undefined)
|
|
6663
|
+
if (effect !== undefined && effect !== null)
|
|
6822
6664
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
6823
|
-
if (kp
|
|
6824
|
-
throw new Error("The parameter 'kp' cannot be null.");
|
|
6825
|
-
else if (kp !== undefined)
|
|
6665
|
+
if (kp !== undefined && kp !== null)
|
|
6826
6666
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
6827
|
-
if (color
|
|
6828
|
-
throw new Error("The parameter 'color' cannot be null.");
|
|
6829
|
-
else if (color !== undefined)
|
|
6667
|
+
if (color !== undefined && color !== null)
|
|
6830
6668
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
6831
|
-
if (obm
|
|
6832
|
-
throw new Error("The parameter 'obm' cannot be null.");
|
|
6833
|
-
else if (obm !== undefined)
|
|
6669
|
+
if (obm !== undefined && obm !== null)
|
|
6834
6670
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
6835
|
-
if (oo
|
|
6836
|
-
throw new Error("The parameter 'oo' cannot be null.");
|
|
6837
|
-
else if (oo !== undefined)
|
|
6671
|
+
if (oo !== undefined && oo !== null)
|
|
6838
6672
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
6839
|
-
if (alphaMask
|
|
6840
|
-
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
6841
|
-
else if (alphaMask !== undefined)
|
|
6673
|
+
if (alphaMask !== undefined && alphaMask !== null)
|
|
6842
6674
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
6843
|
-
if (page
|
|
6844
|
-
throw new Error("The parameter 'page' cannot be null.");
|
|
6845
|
-
else if (page !== undefined)
|
|
6675
|
+
if (page !== undefined && page !== null)
|
|
6846
6676
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
6847
|
-
if (colorizeColor
|
|
6848
|
-
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
6849
|
-
else if (colorizeColor !== undefined)
|
|
6677
|
+
if (colorizeColor !== undefined && colorizeColor !== null)
|
|
6850
6678
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
6851
|
-
if (rw
|
|
6852
|
-
throw new Error("The parameter 'rw' cannot be null.");
|
|
6853
|
-
else if (rw !== undefined)
|
|
6679
|
+
if (rw !== undefined && rw !== null)
|
|
6854
6680
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
6855
|
-
if (rh
|
|
6856
|
-
throw new Error("The parameter 'rh' cannot be null.");
|
|
6857
|
-
else if (rh !== undefined)
|
|
6681
|
+
if (rh !== undefined && rh !== null)
|
|
6858
6682
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
6859
6683
|
if (tenantId === null)
|
|
6860
6684
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -7032,9 +6856,7 @@
|
|
|
7032
6856
|
DesignAtomsViewerApiClient.prototype.pth = function (f, tenantId) {
|
|
7033
6857
|
var _this = this;
|
|
7034
6858
|
var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/pth?";
|
|
7035
|
-
if (f
|
|
7036
|
-
throw new Error("The parameter 'f' cannot be null.");
|
|
7037
|
-
else if (f !== undefined)
|
|
6859
|
+
if (f !== undefined && f !== null)
|
|
7038
6860
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
7039
6861
|
if (tenantId === null)
|
|
7040
6862
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -7130,9 +6952,7 @@
|
|
|
7130
6952
|
DesignAtomsViewerApiClient.prototype.resource = function (image, tenantId) {
|
|
7131
6953
|
var _this = this;
|
|
7132
6954
|
var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/resource?";
|
|
7133
|
-
if (image
|
|
7134
|
-
throw new Error("The parameter 'image' cannot be null.");
|
|
7135
|
-
else if (image !== undefined)
|
|
6955
|
+
if (image !== undefined && image !== null)
|
|
7136
6956
|
url_ += "image=" + encodeURIComponent("" + image) + "&";
|
|
7137
6957
|
if (tenantId === null)
|
|
7138
6958
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -7240,77 +7060,41 @@
|
|
|
7240
7060
|
DesignAtomsViewerApiClient.prototype.svg = function (f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId) {
|
|
7241
7061
|
var _this = this;
|
|
7242
7062
|
var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/svg?";
|
|
7243
|
-
if (f
|
|
7244
|
-
throw new Error("The parameter 'f' cannot be null.");
|
|
7245
|
-
else if (f !== undefined)
|
|
7063
|
+
if (f !== undefined && f !== null)
|
|
7246
7064
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
7247
|
-
if (w
|
|
7248
|
-
throw new Error("The parameter 'w' cannot be null.");
|
|
7249
|
-
else if (w !== undefined)
|
|
7065
|
+
if (w !== undefined && w !== null)
|
|
7250
7066
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
7251
|
-
if (h
|
|
7252
|
-
throw new Error("The parameter 'h' cannot be null.");
|
|
7253
|
-
else if (h !== undefined)
|
|
7067
|
+
if (h !== undefined && h !== null)
|
|
7254
7068
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
7255
|
-
if (cmyk
|
|
7256
|
-
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
7257
|
-
else if (cmyk !== undefined)
|
|
7069
|
+
if (cmyk !== undefined && cmyk !== null)
|
|
7258
7070
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
7259
|
-
if (rgb
|
|
7260
|
-
throw new Error("The parameter 'rgb' cannot be null.");
|
|
7261
|
-
else if (rgb !== undefined)
|
|
7071
|
+
if (rgb !== undefined && rgb !== null)
|
|
7262
7072
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
7263
|
-
if (grayscale
|
|
7264
|
-
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
7265
|
-
else if (grayscale !== undefined)
|
|
7073
|
+
if (grayscale !== undefined && grayscale !== null)
|
|
7266
7074
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
7267
|
-
if (target
|
|
7268
|
-
throw new Error("The parameter 'target' cannot be null.");
|
|
7269
|
-
else if (target !== undefined)
|
|
7075
|
+
if (target !== undefined && target !== null)
|
|
7270
7076
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
7271
|
-
if (sq
|
|
7272
|
-
throw new Error("The parameter 'sq' cannot be null.");
|
|
7273
|
-
else if (sq !== undefined)
|
|
7077
|
+
if (sq !== undefined && sq !== null)
|
|
7274
7078
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
7275
|
-
if (effect
|
|
7276
|
-
throw new Error("The parameter 'effect' cannot be null.");
|
|
7277
|
-
else if (effect !== undefined)
|
|
7079
|
+
if (effect !== undefined && effect !== null)
|
|
7278
7080
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
7279
|
-
if (kp
|
|
7280
|
-
throw new Error("The parameter 'kp' cannot be null.");
|
|
7281
|
-
else if (kp !== undefined)
|
|
7081
|
+
if (kp !== undefined && kp !== null)
|
|
7282
7082
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
7283
|
-
if (color
|
|
7284
|
-
throw new Error("The parameter 'color' cannot be null.");
|
|
7285
|
-
else if (color !== undefined)
|
|
7083
|
+
if (color !== undefined && color !== null)
|
|
7286
7084
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
7287
|
-
if (obm
|
|
7288
|
-
throw new Error("The parameter 'obm' cannot be null.");
|
|
7289
|
-
else if (obm !== undefined)
|
|
7085
|
+
if (obm !== undefined && obm !== null)
|
|
7290
7086
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
7291
|
-
if (oo
|
|
7292
|
-
throw new Error("The parameter 'oo' cannot be null.");
|
|
7293
|
-
else if (oo !== undefined)
|
|
7087
|
+
if (oo !== undefined && oo !== null)
|
|
7294
7088
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
7295
|
-
if (alphaMask
|
|
7296
|
-
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
7297
|
-
else if (alphaMask !== undefined)
|
|
7089
|
+
if (alphaMask !== undefined && alphaMask !== null)
|
|
7298
7090
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
7299
|
-
if (page
|
|
7300
|
-
throw new Error("The parameter 'page' cannot be null.");
|
|
7301
|
-
else if (page !== undefined)
|
|
7091
|
+
if (page !== undefined && page !== null)
|
|
7302
7092
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
7303
|
-
if (colorizeColor
|
|
7304
|
-
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
7305
|
-
else if (colorizeColor !== undefined)
|
|
7093
|
+
if (colorizeColor !== undefined && colorizeColor !== null)
|
|
7306
7094
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
7307
|
-
if (rw
|
|
7308
|
-
throw new Error("The parameter 'rw' cannot be null.");
|
|
7309
|
-
else if (rw !== undefined)
|
|
7095
|
+
if (rw !== undefined && rw !== null)
|
|
7310
7096
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
7311
|
-
if (rh
|
|
7312
|
-
throw new Error("The parameter 'rh' cannot be null.");
|
|
7313
|
-
else if (rh !== undefined)
|
|
7097
|
+
if (rh !== undefined && rh !== null)
|
|
7314
7098
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
7315
7099
|
if (tenantId === null)
|
|
7316
7100
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -7406,9 +7190,7 @@
|
|
|
7406
7190
|
DesignAtomsViewerApiClient.prototype.txt = function (f, tenantId) {
|
|
7407
7191
|
var _this = this;
|
|
7408
7192
|
var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/txt?";
|
|
7409
|
-
if (f
|
|
7410
|
-
throw new Error("The parameter 'f' cannot be null.");
|
|
7411
|
-
else if (f !== undefined)
|
|
7193
|
+
if (f !== undefined && f !== null)
|
|
7412
7194
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
7413
7195
|
if (tenantId === null)
|
|
7414
7196
|
throw new Error("The parameter 'tenantId' cannot be null.");
|