@aurigma/axios-design-atoms-api-client 2.62.5 → 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/dist/cjs/design-atoms-api-client.d.ts +72 -72
- package/dist/cjs/design-atoms-api-client.js +109 -327
- package/dist/cjs/design-atoms-api-client.js.map +1 -1
- package/dist/esm/design-atoms-api-client.d.ts +72 -72
- package/dist/esm/design-atoms-api-client.js +109 -327
- package/dist/esm/design-atoms-api-client.js.map +1 -1
- package/package.json +1 -1
|
@@ -445,9 +445,7 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
445
445
|
if (tenantId === undefined || tenantId === null)
|
|
446
446
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
447
447
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
448
|
-
if (fontKey
|
|
449
|
-
throw new Error("The parameter 'fontKey' cannot be null.");
|
|
450
|
-
else if (fontKey !== undefined)
|
|
448
|
+
if (fontKey !== undefined && fontKey !== null)
|
|
451
449
|
url_ += "fontKey=" + encodeURIComponent("" + fontKey) + "&";
|
|
452
450
|
url_ = url_.replace(/[?&]$/, "");
|
|
453
451
|
let options_ = {
|
|
@@ -791,77 +789,41 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
791
789
|
if (tenantId === undefined || tenantId === null)
|
|
792
790
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
793
791
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
794
|
-
if (f
|
|
795
|
-
throw new Error("The parameter 'f' cannot be null.");
|
|
796
|
-
else if (f !== undefined)
|
|
792
|
+
if (f !== undefined && f !== null)
|
|
797
793
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
798
|
-
if (w
|
|
799
|
-
throw new Error("The parameter 'w' cannot be null.");
|
|
800
|
-
else if (w !== undefined)
|
|
794
|
+
if (w !== undefined && w !== null)
|
|
801
795
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
802
|
-
if (h
|
|
803
|
-
throw new Error("The parameter 'h' cannot be null.");
|
|
804
|
-
else if (h !== undefined)
|
|
796
|
+
if (h !== undefined && h !== null)
|
|
805
797
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
806
|
-
if (cmyk
|
|
807
|
-
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
808
|
-
else if (cmyk !== undefined)
|
|
798
|
+
if (cmyk !== undefined && cmyk !== null)
|
|
809
799
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
810
|
-
if (rgb
|
|
811
|
-
throw new Error("The parameter 'rgb' cannot be null.");
|
|
812
|
-
else if (rgb !== undefined)
|
|
800
|
+
if (rgb !== undefined && rgb !== null)
|
|
813
801
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
814
|
-
if (grayscale
|
|
815
|
-
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
816
|
-
else if (grayscale !== undefined)
|
|
802
|
+
if (grayscale !== undefined && grayscale !== null)
|
|
817
803
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
818
|
-
if (target
|
|
819
|
-
throw new Error("The parameter 'target' cannot be null.");
|
|
820
|
-
else if (target !== undefined)
|
|
804
|
+
if (target !== undefined && target !== null)
|
|
821
805
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
822
|
-
if (sq
|
|
823
|
-
throw new Error("The parameter 'sq' cannot be null.");
|
|
824
|
-
else if (sq !== undefined)
|
|
806
|
+
if (sq !== undefined && sq !== null)
|
|
825
807
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
826
|
-
if (effect
|
|
827
|
-
throw new Error("The parameter 'effect' cannot be null.");
|
|
828
|
-
else if (effect !== undefined)
|
|
808
|
+
if (effect !== undefined && effect !== null)
|
|
829
809
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
830
|
-
if (kp
|
|
831
|
-
throw new Error("The parameter 'kp' cannot be null.");
|
|
832
|
-
else if (kp !== undefined)
|
|
810
|
+
if (kp !== undefined && kp !== null)
|
|
833
811
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
834
|
-
if (color
|
|
835
|
-
throw new Error("The parameter 'color' cannot be null.");
|
|
836
|
-
else if (color !== undefined)
|
|
812
|
+
if (color !== undefined && color !== null)
|
|
837
813
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
838
|
-
if (obm
|
|
839
|
-
throw new Error("The parameter 'obm' cannot be null.");
|
|
840
|
-
else if (obm !== undefined)
|
|
814
|
+
if (obm !== undefined && obm !== null)
|
|
841
815
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
842
|
-
if (oo
|
|
843
|
-
throw new Error("The parameter 'oo' cannot be null.");
|
|
844
|
-
else if (oo !== undefined)
|
|
816
|
+
if (oo !== undefined && oo !== null)
|
|
845
817
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
846
|
-
if (alphaMask
|
|
847
|
-
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
848
|
-
else if (alphaMask !== undefined)
|
|
818
|
+
if (alphaMask !== undefined && alphaMask !== null)
|
|
849
819
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
850
|
-
if (page
|
|
851
|
-
throw new Error("The parameter 'page' cannot be null.");
|
|
852
|
-
else if (page !== undefined)
|
|
820
|
+
if (page !== undefined && page !== null)
|
|
853
821
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
854
|
-
if (colorizeColor
|
|
855
|
-
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
856
|
-
else if (colorizeColor !== undefined)
|
|
822
|
+
if (colorizeColor !== undefined && colorizeColor !== null)
|
|
857
823
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
858
|
-
if (rw
|
|
859
|
-
throw new Error("The parameter 'rw' cannot be null.");
|
|
860
|
-
else if (rw !== undefined)
|
|
824
|
+
if (rw !== undefined && rw !== null)
|
|
861
825
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
862
|
-
if (rh
|
|
863
|
-
throw new Error("The parameter 'rh' cannot be null.");
|
|
864
|
-
else if (rh !== undefined)
|
|
826
|
+
if (rh !== undefined && rh !== null)
|
|
865
827
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
866
828
|
url_ = url_.replace(/[?&]$/, "");
|
|
867
829
|
let options_ = {
|
|
@@ -997,9 +959,7 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
997
959
|
if (tenantId === undefined || tenantId === null)
|
|
998
960
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
999
961
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
1000
|
-
if (f
|
|
1001
|
-
throw new Error("The parameter 'f' cannot be null.");
|
|
1002
|
-
else if (f !== undefined)
|
|
962
|
+
if (f !== undefined && f !== null)
|
|
1003
963
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
1004
964
|
url_ = url_.replace(/[?&]$/, "");
|
|
1005
965
|
let options_ = {
|
|
@@ -1074,9 +1034,7 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1074
1034
|
if (tenantId === undefined || tenantId === null)
|
|
1075
1035
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
1076
1036
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
1077
|
-
if (image
|
|
1078
|
-
throw new Error("The parameter 'image' cannot be null.");
|
|
1079
|
-
else if (image !== undefined)
|
|
1037
|
+
if (image !== undefined && image !== null)
|
|
1080
1038
|
url_ += "image=" + encodeURIComponent("" + image) + "&";
|
|
1081
1039
|
url_ = url_.replace(/[?&]$/, "");
|
|
1082
1040
|
let options_ = {
|
|
@@ -1164,77 +1122,41 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1164
1122
|
if (tenantId === undefined || tenantId === null)
|
|
1165
1123
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
1166
1124
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
1167
|
-
if (f
|
|
1168
|
-
throw new Error("The parameter 'f' cannot be null.");
|
|
1169
|
-
else if (f !== undefined)
|
|
1125
|
+
if (f !== undefined && f !== null)
|
|
1170
1126
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
1171
|
-
if (w
|
|
1172
|
-
throw new Error("The parameter 'w' cannot be null.");
|
|
1173
|
-
else if (w !== undefined)
|
|
1127
|
+
if (w !== undefined && w !== null)
|
|
1174
1128
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
1175
|
-
if (h
|
|
1176
|
-
throw new Error("The parameter 'h' cannot be null.");
|
|
1177
|
-
else if (h !== undefined)
|
|
1129
|
+
if (h !== undefined && h !== null)
|
|
1178
1130
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
1179
|
-
if (cmyk
|
|
1180
|
-
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
1181
|
-
else if (cmyk !== undefined)
|
|
1131
|
+
if (cmyk !== undefined && cmyk !== null)
|
|
1182
1132
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
1183
|
-
if (rgb
|
|
1184
|
-
throw new Error("The parameter 'rgb' cannot be null.");
|
|
1185
|
-
else if (rgb !== undefined)
|
|
1133
|
+
if (rgb !== undefined && rgb !== null)
|
|
1186
1134
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
1187
|
-
if (grayscale
|
|
1188
|
-
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
1189
|
-
else if (grayscale !== undefined)
|
|
1135
|
+
if (grayscale !== undefined && grayscale !== null)
|
|
1190
1136
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
1191
|
-
if (target
|
|
1192
|
-
throw new Error("The parameter 'target' cannot be null.");
|
|
1193
|
-
else if (target !== undefined)
|
|
1137
|
+
if (target !== undefined && target !== null)
|
|
1194
1138
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
1195
|
-
if (sq
|
|
1196
|
-
throw new Error("The parameter 'sq' cannot be null.");
|
|
1197
|
-
else if (sq !== undefined)
|
|
1139
|
+
if (sq !== undefined && sq !== null)
|
|
1198
1140
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
1199
|
-
if (effect
|
|
1200
|
-
throw new Error("The parameter 'effect' cannot be null.");
|
|
1201
|
-
else if (effect !== undefined)
|
|
1141
|
+
if (effect !== undefined && effect !== null)
|
|
1202
1142
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
1203
|
-
if (kp
|
|
1204
|
-
throw new Error("The parameter 'kp' cannot be null.");
|
|
1205
|
-
else if (kp !== undefined)
|
|
1143
|
+
if (kp !== undefined && kp !== null)
|
|
1206
1144
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
1207
|
-
if (color
|
|
1208
|
-
throw new Error("The parameter 'color' cannot be null.");
|
|
1209
|
-
else if (color !== undefined)
|
|
1145
|
+
if (color !== undefined && color !== null)
|
|
1210
1146
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
1211
|
-
if (obm
|
|
1212
|
-
throw new Error("The parameter 'obm' cannot be null.");
|
|
1213
|
-
else if (obm !== undefined)
|
|
1147
|
+
if (obm !== undefined && obm !== null)
|
|
1214
1148
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
1215
|
-
if (oo
|
|
1216
|
-
throw new Error("The parameter 'oo' cannot be null.");
|
|
1217
|
-
else if (oo !== undefined)
|
|
1149
|
+
if (oo !== undefined && oo !== null)
|
|
1218
1150
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
1219
|
-
if (alphaMask
|
|
1220
|
-
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
1221
|
-
else if (alphaMask !== undefined)
|
|
1151
|
+
if (alphaMask !== undefined && alphaMask !== null)
|
|
1222
1152
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
1223
|
-
if (page
|
|
1224
|
-
throw new Error("The parameter 'page' cannot be null.");
|
|
1225
|
-
else if (page !== undefined)
|
|
1153
|
+
if (page !== undefined && page !== null)
|
|
1226
1154
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
1227
|
-
if (colorizeColor
|
|
1228
|
-
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
1229
|
-
else if (colorizeColor !== undefined)
|
|
1155
|
+
if (colorizeColor !== undefined && colorizeColor !== null)
|
|
1230
1156
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
1231
|
-
if (rw
|
|
1232
|
-
throw new Error("The parameter 'rw' cannot be null.");
|
|
1233
|
-
else if (rw !== undefined)
|
|
1157
|
+
if (rw !== undefined && rw !== null)
|
|
1234
1158
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
1235
|
-
if (rh
|
|
1236
|
-
throw new Error("The parameter 'rh' cannot be null.");
|
|
1237
|
-
else if (rh !== undefined)
|
|
1159
|
+
if (rh !== undefined && rh !== null)
|
|
1238
1160
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
1239
1161
|
url_ = url_.replace(/[?&]$/, "");
|
|
1240
1162
|
let options_ = {
|
|
@@ -1309,9 +1231,7 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1309
1231
|
if (tenantId === undefined || tenantId === null)
|
|
1310
1232
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
1311
1233
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
1312
|
-
if (f
|
|
1313
|
-
throw new Error("The parameter 'f' cannot be null.");
|
|
1314
|
-
else if (f !== undefined)
|
|
1234
|
+
if (f !== undefined && f !== null)
|
|
1315
1235
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
1316
1236
|
url_ = url_.replace(/[?&]$/, "");
|
|
1317
1237
|
let options_ = {
|
|
@@ -2113,9 +2033,7 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2113
2033
|
*/
|
|
2114
2034
|
renderImagePreview(attachment, tenantId, body, cancelToken) {
|
|
2115
2035
|
let url_ = this.baseUrl + "/api/atoms/v1/images/render-preview?";
|
|
2116
|
-
if (attachment
|
|
2117
|
-
throw new Error("The parameter 'attachment' cannot be null.");
|
|
2118
|
-
else if (attachment !== undefined)
|
|
2036
|
+
if (attachment !== undefined && attachment !== null)
|
|
2119
2037
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
2120
2038
|
if (tenantId === null)
|
|
2121
2039
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2268,9 +2186,7 @@ class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2268
2186
|
if (id === undefined || id === null)
|
|
2269
2187
|
throw new Error("The parameter 'id' must be defined.");
|
|
2270
2188
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2271
|
-
if (ownerId
|
|
2272
|
-
throw new Error("The parameter 'ownerId' cannot be null.");
|
|
2273
|
-
else if (ownerId !== undefined)
|
|
2189
|
+
if (ownerId !== undefined && ownerId !== null)
|
|
2274
2190
|
url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
|
|
2275
2191
|
if (tenantId === null)
|
|
2276
2192
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2355,9 +2271,7 @@ class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2355
2271
|
if (id === undefined || id === null)
|
|
2356
2272
|
throw new Error("The parameter 'id' must be defined.");
|
|
2357
2273
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2358
|
-
if (ownerId
|
|
2359
|
-
throw new Error("The parameter 'ownerId' cannot be null.");
|
|
2360
|
-
else if (ownerId !== undefined)
|
|
2274
|
+
if (ownerId !== undefined && ownerId !== null)
|
|
2361
2275
|
url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
|
|
2362
2276
|
if (tenantId === null)
|
|
2363
2277
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2442,9 +2356,7 @@ class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2442
2356
|
if (id === undefined || id === null)
|
|
2443
2357
|
throw new Error("The parameter 'id' must be defined.");
|
|
2444
2358
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2445
|
-
if (ownerId
|
|
2446
|
-
throw new Error("The parameter 'ownerId' cannot be null.");
|
|
2447
|
-
else if (ownerId !== undefined)
|
|
2359
|
+
if (ownerId !== undefined && ownerId !== null)
|
|
2448
2360
|
url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
|
|
2449
2361
|
if (tenantId === null)
|
|
2450
2362
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2537,9 +2449,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2537
2449
|
*/
|
|
2538
2450
|
createDesign(privateStorageOwner, tenantId, body, cancelToken) {
|
|
2539
2451
|
let url_ = this.baseUrl + "/api/atoms/v1/designs?";
|
|
2540
|
-
if (privateStorageOwner
|
|
2541
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
2542
|
-
else if (privateStorageOwner !== undefined)
|
|
2452
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
2543
2453
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2544
2454
|
if (tenantId === null)
|
|
2545
2455
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2614,13 +2524,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2614
2524
|
if (id === undefined || id === null)
|
|
2615
2525
|
throw new Error("The parameter 'id' must be defined.");
|
|
2616
2526
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2617
|
-
if (surfaceIndex
|
|
2618
|
-
throw new Error("The parameter 'surfaceIndex' cannot be null.");
|
|
2619
|
-
else if (surfaceIndex !== undefined)
|
|
2527
|
+
if (surfaceIndex !== undefined && surfaceIndex !== null)
|
|
2620
2528
|
url_ += "surfaceIndex=" + encodeURIComponent("" + surfaceIndex) + "&";
|
|
2621
|
-
if (privateStorageOwner
|
|
2622
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
2623
|
-
else if (privateStorageOwner !== undefined)
|
|
2529
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
2624
2530
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2625
2531
|
if (tenantId === null)
|
|
2626
2532
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2705,9 +2611,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2705
2611
|
if (id === undefined || id === null)
|
|
2706
2612
|
throw new Error("The parameter 'id' must be defined.");
|
|
2707
2613
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2708
|
-
if (privateStorageOwner
|
|
2709
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
2710
|
-
else if (privateStorageOwner !== undefined)
|
|
2614
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
2711
2615
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2712
2616
|
if (tenantId === null)
|
|
2713
2617
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2786,9 +2690,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2786
2690
|
if (id === undefined || id === null)
|
|
2787
2691
|
throw new Error("The parameter 'id' must be defined.");
|
|
2788
2692
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2789
|
-
if (privateStorageOwner
|
|
2790
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
2791
|
-
else if (privateStorageOwner !== undefined)
|
|
2693
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
2792
2694
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2793
2695
|
if (tenantId === null)
|
|
2794
2696
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2871,9 +2773,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2871
2773
|
if (id === undefined || id === null)
|
|
2872
2774
|
throw new Error("The parameter 'id' must be defined.");
|
|
2873
2775
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2874
|
-
if (privateStorageOwner
|
|
2875
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
2876
|
-
else if (privateStorageOwner !== undefined)
|
|
2776
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
2877
2777
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2878
2778
|
if (tenantId === null)
|
|
2879
2779
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2964,9 +2864,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2964
2864
|
if (id === undefined || id === null)
|
|
2965
2865
|
throw new Error("The parameter 'id' must be defined.");
|
|
2966
2866
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2967
|
-
if (privateStorageOwner
|
|
2968
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
2969
|
-
else if (privateStorageOwner !== undefined)
|
|
2867
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
2970
2868
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2971
2869
|
if (tenantId === null)
|
|
2972
2870
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3044,9 +2942,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3044
2942
|
if (id === undefined || id === null)
|
|
3045
2943
|
throw new Error("The parameter 'id' must be defined.");
|
|
3046
2944
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3047
|
-
if (privateStorageOwner
|
|
3048
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3049
|
-
else if (privateStorageOwner !== undefined)
|
|
2945
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3050
2946
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3051
2947
|
if (tenantId === null)
|
|
3052
2948
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3131,9 +3027,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3131
3027
|
if (id === undefined || id === null)
|
|
3132
3028
|
throw new Error("The parameter 'id' must be defined.");
|
|
3133
3029
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3134
|
-
if (privateStorageOwner
|
|
3135
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3136
|
-
else if (privateStorageOwner !== undefined)
|
|
3030
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3137
3031
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3138
3032
|
if (tenantId === null)
|
|
3139
3033
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3218,9 +3112,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3218
3112
|
if (id === undefined || id === null)
|
|
3219
3113
|
throw new Error("The parameter 'id' must be defined.");
|
|
3220
3114
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3221
|
-
if (privateStorageOwner
|
|
3222
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3223
|
-
else if (privateStorageOwner !== undefined)
|
|
3115
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3224
3116
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3225
3117
|
if (tenantId === null)
|
|
3226
3118
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3299,9 +3191,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3299
3191
|
if (id === undefined || id === null)
|
|
3300
3192
|
throw new Error("The parameter 'id' must be defined.");
|
|
3301
3193
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3302
|
-
if (privateStorageOwner
|
|
3303
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3304
|
-
else if (privateStorageOwner !== undefined)
|
|
3194
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3305
3195
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3306
3196
|
if (tenantId === null)
|
|
3307
3197
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3385,9 +3275,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3385
3275
|
if (id === undefined || id === null)
|
|
3386
3276
|
throw new Error("The parameter 'id' must be defined.");
|
|
3387
3277
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3388
|
-
if (privateStorageOwner
|
|
3389
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3390
|
-
else if (privateStorageOwner !== undefined)
|
|
3278
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3391
3279
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3392
3280
|
if (tenantId === null)
|
|
3393
3281
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3473,9 +3361,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3473
3361
|
if (id === undefined || id === null)
|
|
3474
3362
|
throw new Error("The parameter 'id' must be defined.");
|
|
3475
3363
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3476
|
-
if (privateStorageOwner
|
|
3477
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3478
|
-
else if (privateStorageOwner !== undefined)
|
|
3364
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3479
3365
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3480
3366
|
if (tenantId === null)
|
|
3481
3367
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3552,9 +3438,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3552
3438
|
if (id === undefined || id === null)
|
|
3553
3439
|
throw new Error("The parameter 'id' must be defined.");
|
|
3554
3440
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3555
|
-
if (privateStorageOwner
|
|
3556
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3557
|
-
else if (privateStorageOwner !== undefined)
|
|
3441
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3558
3442
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3559
3443
|
if (tenantId === null)
|
|
3560
3444
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3627,9 +3511,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3627
3511
|
if (id === undefined || id === null)
|
|
3628
3512
|
throw new Error("The parameter 'id' must be defined.");
|
|
3629
3513
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3630
|
-
if (privateStorageOwner
|
|
3631
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3632
|
-
else if (privateStorageOwner !== undefined)
|
|
3514
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3633
3515
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3634
3516
|
if (tenantId === null)
|
|
3635
3517
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3789,9 +3671,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3789
3671
|
*/
|
|
3790
3672
|
createItem(itemType, tenantId, sourceType, sourceId, sourceOwnerId, sourceFile, cancelToken) {
|
|
3791
3673
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/model/items?";
|
|
3792
|
-
if (itemType
|
|
3793
|
-
throw new Error("The parameter 'itemType' cannot be null.");
|
|
3794
|
-
else if (itemType !== undefined)
|
|
3674
|
+
if (itemType !== undefined && itemType !== null)
|
|
3795
3675
|
url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
|
|
3796
3676
|
if (tenantId === null)
|
|
3797
3677
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4013,9 +3893,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4013
3893
|
*/
|
|
4014
3894
|
renderProduct(attachment, tenantId, body, cancelToken) {
|
|
4015
3895
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/model/render-proof?";
|
|
4016
|
-
if (attachment
|
|
4017
|
-
throw new Error("The parameter 'attachment' cannot be null.");
|
|
4018
|
-
else if (attachment !== undefined)
|
|
3896
|
+
if (attachment !== undefined && attachment !== null)
|
|
4019
3897
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
4020
3898
|
if (tenantId === null)
|
|
4021
3899
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4087,9 +3965,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4087
3965
|
*/
|
|
4088
3966
|
renderDesignPreview(attachment, tenantId, body, cancelToken) {
|
|
4089
3967
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/render-preview?";
|
|
4090
|
-
if (attachment
|
|
4091
|
-
throw new Error("The parameter 'attachment' cannot be null.");
|
|
4092
|
-
else if (attachment !== undefined)
|
|
3968
|
+
if (attachment !== undefined && attachment !== null)
|
|
4093
3969
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
4094
3970
|
if (tenantId === null)
|
|
4095
3971
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4229,9 +4105,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4229
4105
|
*/
|
|
4230
4106
|
renderDesignProof(attachment, tenantId, body, cancelToken) {
|
|
4231
4107
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/render-proof?";
|
|
4232
|
-
if (attachment
|
|
4233
|
-
throw new Error("The parameter 'attachment' cannot be null.");
|
|
4234
|
-
else if (attachment !== undefined)
|
|
4108
|
+
if (attachment !== undefined && attachment !== null)
|
|
4235
4109
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
4236
4110
|
if (tenantId === null)
|
|
4237
4111
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4372,17 +4246,11 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4372
4246
|
*/
|
|
4373
4247
|
createPrivateDesignFromDesign(designId, privateDesignId, privateStorageOwner, tenantId, cancelToken) {
|
|
4374
4248
|
let url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-design?";
|
|
4375
|
-
if (designId
|
|
4376
|
-
throw new Error("The parameter 'designId' cannot be null.");
|
|
4377
|
-
else if (designId !== undefined)
|
|
4249
|
+
if (designId !== undefined && designId !== null)
|
|
4378
4250
|
url_ += "designId=" + encodeURIComponent("" + designId) + "&";
|
|
4379
|
-
if (privateDesignId
|
|
4380
|
-
throw new Error("The parameter 'privateDesignId' cannot be null.");
|
|
4381
|
-
else if (privateDesignId !== undefined)
|
|
4251
|
+
if (privateDesignId !== undefined && privateDesignId !== null)
|
|
4382
4252
|
url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
|
|
4383
|
-
if (privateStorageOwner
|
|
4384
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4385
|
-
else if (privateStorageOwner !== undefined)
|
|
4253
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
4386
4254
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4387
4255
|
if (tenantId === null)
|
|
4388
4256
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4447,17 +4315,11 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4447
4315
|
*/
|
|
4448
4316
|
createPrivateDesignFromResource(resourceId, privateDesignId, privateStorageOwner, tenantId, cancelToken) {
|
|
4449
4317
|
let url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-resource?";
|
|
4450
|
-
if (resourceId
|
|
4451
|
-
throw new Error("The parameter 'resourceId' cannot be null.");
|
|
4452
|
-
else if (resourceId !== undefined)
|
|
4318
|
+
if (resourceId !== undefined && resourceId !== null)
|
|
4453
4319
|
url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
|
|
4454
|
-
if (privateDesignId
|
|
4455
|
-
throw new Error("The parameter 'privateDesignId' cannot be null.");
|
|
4456
|
-
else if (privateDesignId !== undefined)
|
|
4320
|
+
if (privateDesignId !== undefined && privateDesignId !== null)
|
|
4457
4321
|
url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
|
|
4458
|
-
if (privateStorageOwner
|
|
4459
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4460
|
-
else if (privateStorageOwner !== undefined)
|
|
4322
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
4461
4323
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4462
4324
|
if (tenantId === null)
|
|
4463
4325
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4803,9 +4665,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4803
4665
|
*/
|
|
4804
4666
|
getCssFont(fontKey, tenantId, cancelToken) {
|
|
4805
4667
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/GetCssFont?";
|
|
4806
|
-
if (fontKey
|
|
4807
|
-
throw new Error("The parameter 'fontKey' cannot be null.");
|
|
4808
|
-
else if (fontKey !== undefined)
|
|
4668
|
+
if (fontKey !== undefined && fontKey !== null)
|
|
4809
4669
|
url_ += "fontKey=" + encodeURIComponent("" + fontKey) + "&";
|
|
4810
4670
|
if (tenantId === null)
|
|
4811
4671
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5159,77 +5019,41 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5159
5019
|
*/
|
|
5160
5020
|
img(f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId, cancelToken) {
|
|
5161
5021
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/img?";
|
|
5162
|
-
if (f
|
|
5163
|
-
throw new Error("The parameter 'f' cannot be null.");
|
|
5164
|
-
else if (f !== undefined)
|
|
5022
|
+
if (f !== undefined && f !== null)
|
|
5165
5023
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
5166
|
-
if (w
|
|
5167
|
-
throw new Error("The parameter 'w' cannot be null.");
|
|
5168
|
-
else if (w !== undefined)
|
|
5024
|
+
if (w !== undefined && w !== null)
|
|
5169
5025
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
5170
|
-
if (h
|
|
5171
|
-
throw new Error("The parameter 'h' cannot be null.");
|
|
5172
|
-
else if (h !== undefined)
|
|
5026
|
+
if (h !== undefined && h !== null)
|
|
5173
5027
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
5174
|
-
if (cmyk
|
|
5175
|
-
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
5176
|
-
else if (cmyk !== undefined)
|
|
5028
|
+
if (cmyk !== undefined && cmyk !== null)
|
|
5177
5029
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
5178
|
-
if (rgb
|
|
5179
|
-
throw new Error("The parameter 'rgb' cannot be null.");
|
|
5180
|
-
else if (rgb !== undefined)
|
|
5030
|
+
if (rgb !== undefined && rgb !== null)
|
|
5181
5031
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
5182
|
-
if (grayscale
|
|
5183
|
-
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
5184
|
-
else if (grayscale !== undefined)
|
|
5032
|
+
if (grayscale !== undefined && grayscale !== null)
|
|
5185
5033
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
5186
|
-
if (target
|
|
5187
|
-
throw new Error("The parameter 'target' cannot be null.");
|
|
5188
|
-
else if (target !== undefined)
|
|
5034
|
+
if (target !== undefined && target !== null)
|
|
5189
5035
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
5190
|
-
if (sq
|
|
5191
|
-
throw new Error("The parameter 'sq' cannot be null.");
|
|
5192
|
-
else if (sq !== undefined)
|
|
5036
|
+
if (sq !== undefined && sq !== null)
|
|
5193
5037
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
5194
|
-
if (effect
|
|
5195
|
-
throw new Error("The parameter 'effect' cannot be null.");
|
|
5196
|
-
else if (effect !== undefined)
|
|
5038
|
+
if (effect !== undefined && effect !== null)
|
|
5197
5039
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
5198
|
-
if (kp
|
|
5199
|
-
throw new Error("The parameter 'kp' cannot be null.");
|
|
5200
|
-
else if (kp !== undefined)
|
|
5040
|
+
if (kp !== undefined && kp !== null)
|
|
5201
5041
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
5202
|
-
if (color
|
|
5203
|
-
throw new Error("The parameter 'color' cannot be null.");
|
|
5204
|
-
else if (color !== undefined)
|
|
5042
|
+
if (color !== undefined && color !== null)
|
|
5205
5043
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
5206
|
-
if (obm
|
|
5207
|
-
throw new Error("The parameter 'obm' cannot be null.");
|
|
5208
|
-
else if (obm !== undefined)
|
|
5044
|
+
if (obm !== undefined && obm !== null)
|
|
5209
5045
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
5210
|
-
if (oo
|
|
5211
|
-
throw new Error("The parameter 'oo' cannot be null.");
|
|
5212
|
-
else if (oo !== undefined)
|
|
5046
|
+
if (oo !== undefined && oo !== null)
|
|
5213
5047
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
5214
|
-
if (alphaMask
|
|
5215
|
-
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
5216
|
-
else if (alphaMask !== undefined)
|
|
5048
|
+
if (alphaMask !== undefined && alphaMask !== null)
|
|
5217
5049
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
5218
|
-
if (page
|
|
5219
|
-
throw new Error("The parameter 'page' cannot be null.");
|
|
5220
|
-
else if (page !== undefined)
|
|
5050
|
+
if (page !== undefined && page !== null)
|
|
5221
5051
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
5222
|
-
if (colorizeColor
|
|
5223
|
-
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
5224
|
-
else if (colorizeColor !== undefined)
|
|
5052
|
+
if (colorizeColor !== undefined && colorizeColor !== null)
|
|
5225
5053
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
5226
|
-
if (rw
|
|
5227
|
-
throw new Error("The parameter 'rw' cannot be null.");
|
|
5228
|
-
else if (rw !== undefined)
|
|
5054
|
+
if (rw !== undefined && rw !== null)
|
|
5229
5055
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
5230
|
-
if (rh
|
|
5231
|
-
throw new Error("The parameter 'rh' cannot be null.");
|
|
5232
|
-
else if (rh !== undefined)
|
|
5056
|
+
if (rh !== undefined && rh !== null)
|
|
5233
5057
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
5234
5058
|
if (tenantId === null)
|
|
5235
5059
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5369,9 +5193,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5369
5193
|
*/
|
|
5370
5194
|
pth(f, tenantId, cancelToken) {
|
|
5371
5195
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/pth?";
|
|
5372
|
-
if (f
|
|
5373
|
-
throw new Error("The parameter 'f' cannot be null.");
|
|
5374
|
-
else if (f !== undefined)
|
|
5196
|
+
if (f !== undefined && f !== null)
|
|
5375
5197
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
5376
5198
|
if (tenantId === null)
|
|
5377
5199
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5448,9 +5270,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5448
5270
|
*/
|
|
5449
5271
|
resource(image, tenantId, cancelToken) {
|
|
5450
5272
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/resource?";
|
|
5451
|
-
if (image
|
|
5452
|
-
throw new Error("The parameter 'image' cannot be null.");
|
|
5453
|
-
else if (image !== undefined)
|
|
5273
|
+
if (image !== undefined && image !== null)
|
|
5454
5274
|
url_ += "image=" + encodeURIComponent("" + image) + "&";
|
|
5455
5275
|
if (tenantId === null)
|
|
5456
5276
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5540,77 +5360,41 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5540
5360
|
*/
|
|
5541
5361
|
svg(f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId, cancelToken) {
|
|
5542
5362
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/svg?";
|
|
5543
|
-
if (f
|
|
5544
|
-
throw new Error("The parameter 'f' cannot be null.");
|
|
5545
|
-
else if (f !== undefined)
|
|
5363
|
+
if (f !== undefined && f !== null)
|
|
5546
5364
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
5547
|
-
if (w
|
|
5548
|
-
throw new Error("The parameter 'w' cannot be null.");
|
|
5549
|
-
else if (w !== undefined)
|
|
5365
|
+
if (w !== undefined && w !== null)
|
|
5550
5366
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
5551
|
-
if (h
|
|
5552
|
-
throw new Error("The parameter 'h' cannot be null.");
|
|
5553
|
-
else if (h !== undefined)
|
|
5367
|
+
if (h !== undefined && h !== null)
|
|
5554
5368
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
5555
|
-
if (cmyk
|
|
5556
|
-
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
5557
|
-
else if (cmyk !== undefined)
|
|
5369
|
+
if (cmyk !== undefined && cmyk !== null)
|
|
5558
5370
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
5559
|
-
if (rgb
|
|
5560
|
-
throw new Error("The parameter 'rgb' cannot be null.");
|
|
5561
|
-
else if (rgb !== undefined)
|
|
5371
|
+
if (rgb !== undefined && rgb !== null)
|
|
5562
5372
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
5563
|
-
if (grayscale
|
|
5564
|
-
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
5565
|
-
else if (grayscale !== undefined)
|
|
5373
|
+
if (grayscale !== undefined && grayscale !== null)
|
|
5566
5374
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
5567
|
-
if (target
|
|
5568
|
-
throw new Error("The parameter 'target' cannot be null.");
|
|
5569
|
-
else if (target !== undefined)
|
|
5375
|
+
if (target !== undefined && target !== null)
|
|
5570
5376
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
5571
|
-
if (sq
|
|
5572
|
-
throw new Error("The parameter 'sq' cannot be null.");
|
|
5573
|
-
else if (sq !== undefined)
|
|
5377
|
+
if (sq !== undefined && sq !== null)
|
|
5574
5378
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
5575
|
-
if (effect
|
|
5576
|
-
throw new Error("The parameter 'effect' cannot be null.");
|
|
5577
|
-
else if (effect !== undefined)
|
|
5379
|
+
if (effect !== undefined && effect !== null)
|
|
5578
5380
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
5579
|
-
if (kp
|
|
5580
|
-
throw new Error("The parameter 'kp' cannot be null.");
|
|
5581
|
-
else if (kp !== undefined)
|
|
5381
|
+
if (kp !== undefined && kp !== null)
|
|
5582
5382
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
5583
|
-
if (color
|
|
5584
|
-
throw new Error("The parameter 'color' cannot be null.");
|
|
5585
|
-
else if (color !== undefined)
|
|
5383
|
+
if (color !== undefined && color !== null)
|
|
5586
5384
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
5587
|
-
if (obm
|
|
5588
|
-
throw new Error("The parameter 'obm' cannot be null.");
|
|
5589
|
-
else if (obm !== undefined)
|
|
5385
|
+
if (obm !== undefined && obm !== null)
|
|
5590
5386
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
5591
|
-
if (oo
|
|
5592
|
-
throw new Error("The parameter 'oo' cannot be null.");
|
|
5593
|
-
else if (oo !== undefined)
|
|
5387
|
+
if (oo !== undefined && oo !== null)
|
|
5594
5388
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
5595
|
-
if (alphaMask
|
|
5596
|
-
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
5597
|
-
else if (alphaMask !== undefined)
|
|
5389
|
+
if (alphaMask !== undefined && alphaMask !== null)
|
|
5598
5390
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
5599
|
-
if (page
|
|
5600
|
-
throw new Error("The parameter 'page' cannot be null.");
|
|
5601
|
-
else if (page !== undefined)
|
|
5391
|
+
if (page !== undefined && page !== null)
|
|
5602
5392
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
5603
|
-
if (colorizeColor
|
|
5604
|
-
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
5605
|
-
else if (colorizeColor !== undefined)
|
|
5393
|
+
if (colorizeColor !== undefined && colorizeColor !== null)
|
|
5606
5394
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
5607
|
-
if (rw
|
|
5608
|
-
throw new Error("The parameter 'rw' cannot be null.");
|
|
5609
|
-
else if (rw !== undefined)
|
|
5395
|
+
if (rw !== undefined && rw !== null)
|
|
5610
5396
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
5611
|
-
if (rh
|
|
5612
|
-
throw new Error("The parameter 'rh' cannot be null.");
|
|
5613
|
-
else if (rh !== undefined)
|
|
5397
|
+
if (rh !== undefined && rh !== null)
|
|
5614
5398
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
5615
5399
|
if (tenantId === null)
|
|
5616
5400
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5687,9 +5471,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5687
5471
|
*/
|
|
5688
5472
|
txt(f, tenantId, cancelToken) {
|
|
5689
5473
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/txt?";
|
|
5690
|
-
if (f
|
|
5691
|
-
throw new Error("The parameter 'f' cannot be null.");
|
|
5692
|
-
else if (f !== undefined)
|
|
5474
|
+
if (f !== undefined && f !== null)
|
|
5693
5475
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
5694
5476
|
if (tenantId === null)
|
|
5695
5477
|
throw new Error("The parameter 'tenantId' cannot be null.");
|