@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.
@@ -475,9 +475,7 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
475
475
  if (tenantId === undefined || tenantId === null)
476
476
  throw new Error("The parameter 'tenantId' must be defined.");
477
477
  url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
478
- if (fontKey === null)
479
- throw new Error("The parameter 'fontKey' cannot be null.");
480
- else if (fontKey !== undefined)
478
+ if (fontKey !== undefined && fontKey !== null)
481
479
  url_ += "fontKey=" + encodeURIComponent("" + fontKey) + "&";
482
480
  url_ = url_.replace(/[?&]$/, "");
483
481
  let options_ = {
@@ -850,77 +848,41 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
850
848
  if (tenantId === undefined || tenantId === null)
851
849
  throw new Error("The parameter 'tenantId' must be defined.");
852
850
  url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
853
- if (f === null)
854
- throw new Error("The parameter 'f' cannot be null.");
855
- else if (f !== undefined)
851
+ if (f !== undefined && f !== null)
856
852
  url_ += "f=" + encodeURIComponent("" + f) + "&";
857
- if (w === null)
858
- throw new Error("The parameter 'w' cannot be null.");
859
- else if (w !== undefined)
853
+ if (w !== undefined && w !== null)
860
854
  url_ += "w=" + encodeURIComponent("" + w) + "&";
861
- if (h === null)
862
- throw new Error("The parameter 'h' cannot be null.");
863
- else if (h !== undefined)
855
+ if (h !== undefined && h !== null)
864
856
  url_ += "h=" + encodeURIComponent("" + h) + "&";
865
- if (cmyk === null)
866
- throw new Error("The parameter 'cmyk' cannot be null.");
867
- else if (cmyk !== undefined)
857
+ if (cmyk !== undefined && cmyk !== null)
868
858
  url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
869
- if (rgb === null)
870
- throw new Error("The parameter 'rgb' cannot be null.");
871
- else if (rgb !== undefined)
859
+ if (rgb !== undefined && rgb !== null)
872
860
  url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
873
- if (grayscale === null)
874
- throw new Error("The parameter 'grayscale' cannot be null.");
875
- else if (grayscale !== undefined)
861
+ if (grayscale !== undefined && grayscale !== null)
876
862
  url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
877
- if (target === null)
878
- throw new Error("The parameter 'target' cannot be null.");
879
- else if (target !== undefined)
863
+ if (target !== undefined && target !== null)
880
864
  url_ += "target=" + encodeURIComponent("" + target) + "&";
881
- if (sq === null)
882
- throw new Error("The parameter 'sq' cannot be null.");
883
- else if (sq !== undefined)
865
+ if (sq !== undefined && sq !== null)
884
866
  url_ += "sq=" + encodeURIComponent("" + sq) + "&";
885
- if (effect === null)
886
- throw new Error("The parameter 'effect' cannot be null.");
887
- else if (effect !== undefined)
867
+ if (effect !== undefined && effect !== null)
888
868
  url_ += "effect=" + encodeURIComponent("" + effect) + "&";
889
- if (kp === null)
890
- throw new Error("The parameter 'kp' cannot be null.");
891
- else if (kp !== undefined)
869
+ if (kp !== undefined && kp !== null)
892
870
  url_ += "kp=" + encodeURIComponent("" + kp) + "&";
893
- if (color === null)
894
- throw new Error("The parameter 'color' cannot be null.");
895
- else if (color !== undefined)
871
+ if (color !== undefined && color !== null)
896
872
  url_ += "color=" + encodeURIComponent("" + color) + "&";
897
- if (obm === null)
898
- throw new Error("The parameter 'obm' cannot be null.");
899
- else if (obm !== undefined)
873
+ if (obm !== undefined && obm !== null)
900
874
  url_ += "obm=" + encodeURIComponent("" + obm) + "&";
901
- if (oo === null)
902
- throw new Error("The parameter 'oo' cannot be null.");
903
- else if (oo !== undefined)
875
+ if (oo !== undefined && oo !== null)
904
876
  url_ += "oo=" + encodeURIComponent("" + oo) + "&";
905
- if (alphaMask === null)
906
- throw new Error("The parameter 'alphaMask' cannot be null.");
907
- else if (alphaMask !== undefined)
877
+ if (alphaMask !== undefined && alphaMask !== null)
908
878
  url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
909
- if (page === null)
910
- throw new Error("The parameter 'page' cannot be null.");
911
- else if (page !== undefined)
879
+ if (page !== undefined && page !== null)
912
880
  url_ += "page=" + encodeURIComponent("" + page) + "&";
913
- if (colorizeColor === null)
914
- throw new Error("The parameter 'colorizeColor' cannot be null.");
915
- else if (colorizeColor !== undefined)
881
+ if (colorizeColor !== undefined && colorizeColor !== null)
916
882
  url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
917
- if (rw === null)
918
- throw new Error("The parameter 'rw' cannot be null.");
919
- else if (rw !== undefined)
883
+ if (rw !== undefined && rw !== null)
920
884
  url_ += "rw=" + encodeURIComponent("" + rw) + "&";
921
- if (rh === null)
922
- throw new Error("The parameter 'rh' cannot be null.");
923
- else if (rh !== undefined)
885
+ if (rh !== undefined && rh !== null)
924
886
  url_ += "rh=" + encodeURIComponent("" + rh) + "&";
925
887
  url_ = url_.replace(/[?&]$/, "");
926
888
  let options_ = {
@@ -1068,9 +1030,7 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1068
1030
  if (tenantId === undefined || tenantId === null)
1069
1031
  throw new Error("The parameter 'tenantId' must be defined.");
1070
1032
  url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
1071
- if (f === null)
1072
- throw new Error("The parameter 'f' cannot be null.");
1073
- else if (f !== undefined)
1033
+ if (f !== undefined && f !== null)
1074
1034
  url_ += "f=" + encodeURIComponent("" + f) + "&";
1075
1035
  url_ = url_.replace(/[?&]$/, "");
1076
1036
  let options_ = {
@@ -1151,9 +1111,7 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1151
1111
  if (tenantId === undefined || tenantId === null)
1152
1112
  throw new Error("The parameter 'tenantId' must be defined.");
1153
1113
  url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
1154
- if (image === null)
1155
- throw new Error("The parameter 'image' cannot be null.");
1156
- else if (image !== undefined)
1114
+ if (image !== undefined && image !== null)
1157
1115
  url_ += "image=" + encodeURIComponent("" + image) + "&";
1158
1116
  url_ = url_.replace(/[?&]$/, "");
1159
1117
  let options_ = {
@@ -1246,77 +1204,41 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1246
1204
  if (tenantId === undefined || tenantId === null)
1247
1205
  throw new Error("The parameter 'tenantId' must be defined.");
1248
1206
  url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
1249
- if (f === null)
1250
- throw new Error("The parameter 'f' cannot be null.");
1251
- else if (f !== undefined)
1207
+ if (f !== undefined && f !== null)
1252
1208
  url_ += "f=" + encodeURIComponent("" + f) + "&";
1253
- if (w === null)
1254
- throw new Error("The parameter 'w' cannot be null.");
1255
- else if (w !== undefined)
1209
+ if (w !== undefined && w !== null)
1256
1210
  url_ += "w=" + encodeURIComponent("" + w) + "&";
1257
- if (h === null)
1258
- throw new Error("The parameter 'h' cannot be null.");
1259
- else if (h !== undefined)
1211
+ if (h !== undefined && h !== null)
1260
1212
  url_ += "h=" + encodeURIComponent("" + h) + "&";
1261
- if (cmyk === null)
1262
- throw new Error("The parameter 'cmyk' cannot be null.");
1263
- else if (cmyk !== undefined)
1213
+ if (cmyk !== undefined && cmyk !== null)
1264
1214
  url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
1265
- if (rgb === null)
1266
- throw new Error("The parameter 'rgb' cannot be null.");
1267
- else if (rgb !== undefined)
1215
+ if (rgb !== undefined && rgb !== null)
1268
1216
  url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
1269
- if (grayscale === null)
1270
- throw new Error("The parameter 'grayscale' cannot be null.");
1271
- else if (grayscale !== undefined)
1217
+ if (grayscale !== undefined && grayscale !== null)
1272
1218
  url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
1273
- if (target === null)
1274
- throw new Error("The parameter 'target' cannot be null.");
1275
- else if (target !== undefined)
1219
+ if (target !== undefined && target !== null)
1276
1220
  url_ += "target=" + encodeURIComponent("" + target) + "&";
1277
- if (sq === null)
1278
- throw new Error("The parameter 'sq' cannot be null.");
1279
- else if (sq !== undefined)
1221
+ if (sq !== undefined && sq !== null)
1280
1222
  url_ += "sq=" + encodeURIComponent("" + sq) + "&";
1281
- if (effect === null)
1282
- throw new Error("The parameter 'effect' cannot be null.");
1283
- else if (effect !== undefined)
1223
+ if (effect !== undefined && effect !== null)
1284
1224
  url_ += "effect=" + encodeURIComponent("" + effect) + "&";
1285
- if (kp === null)
1286
- throw new Error("The parameter 'kp' cannot be null.");
1287
- else if (kp !== undefined)
1225
+ if (kp !== undefined && kp !== null)
1288
1226
  url_ += "kp=" + encodeURIComponent("" + kp) + "&";
1289
- if (color === null)
1290
- throw new Error("The parameter 'color' cannot be null.");
1291
- else if (color !== undefined)
1227
+ if (color !== undefined && color !== null)
1292
1228
  url_ += "color=" + encodeURIComponent("" + color) + "&";
1293
- if (obm === null)
1294
- throw new Error("The parameter 'obm' cannot be null.");
1295
- else if (obm !== undefined)
1229
+ if (obm !== undefined && obm !== null)
1296
1230
  url_ += "obm=" + encodeURIComponent("" + obm) + "&";
1297
- if (oo === null)
1298
- throw new Error("The parameter 'oo' cannot be null.");
1299
- else if (oo !== undefined)
1231
+ if (oo !== undefined && oo !== null)
1300
1232
  url_ += "oo=" + encodeURIComponent("" + oo) + "&";
1301
- if (alphaMask === null)
1302
- throw new Error("The parameter 'alphaMask' cannot be null.");
1303
- else if (alphaMask !== undefined)
1233
+ if (alphaMask !== undefined && alphaMask !== null)
1304
1234
  url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
1305
- if (page === null)
1306
- throw new Error("The parameter 'page' cannot be null.");
1307
- else if (page !== undefined)
1235
+ if (page !== undefined && page !== null)
1308
1236
  url_ += "page=" + encodeURIComponent("" + page) + "&";
1309
- if (colorizeColor === null)
1310
- throw new Error("The parameter 'colorizeColor' cannot be null.");
1311
- else if (colorizeColor !== undefined)
1237
+ if (colorizeColor !== undefined && colorizeColor !== null)
1312
1238
  url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
1313
- if (rw === null)
1314
- throw new Error("The parameter 'rw' cannot be null.");
1315
- else if (rw !== undefined)
1239
+ if (rw !== undefined && rw !== null)
1316
1240
  url_ += "rw=" + encodeURIComponent("" + rw) + "&";
1317
- if (rh === null)
1318
- throw new Error("The parameter 'rh' cannot be null.");
1319
- else if (rh !== undefined)
1241
+ if (rh !== undefined && rh !== null)
1320
1242
  url_ += "rh=" + encodeURIComponent("" + rh) + "&";
1321
1243
  url_ = url_.replace(/[?&]$/, "");
1322
1244
  let options_ = {
@@ -1397,9 +1319,7 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1397
1319
  if (tenantId === undefined || tenantId === null)
1398
1320
  throw new Error("The parameter 'tenantId' must be defined.");
1399
1321
  url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
1400
- if (f === null)
1401
- throw new Error("The parameter 'f' cannot be null.");
1402
- else if (f !== undefined)
1322
+ if (f !== undefined && f !== null)
1403
1323
  url_ += "f=" + encodeURIComponent("" + f) + "&";
1404
1324
  url_ = url_.replace(/[?&]$/, "");
1405
1325
  let options_ = {
@@ -2281,9 +2201,7 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
2281
2201
  */
2282
2202
  renderImagePreview(attachment, tenantId, body) {
2283
2203
  let url_ = this.baseUrl + "/api/atoms/v1/images/render-preview?";
2284
- if (attachment === null)
2285
- throw new Error("The parameter 'attachment' cannot be null.");
2286
- else if (attachment !== undefined)
2204
+ if (attachment !== undefined && attachment !== null)
2287
2205
  url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
2288
2206
  if (tenantId === null)
2289
2207
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -2455,9 +2373,7 @@ class DesignAtomsMockups3dApiClient extends ApiClientBase {
2455
2373
  if (id === undefined || id === null)
2456
2374
  throw new Error("The parameter 'id' must be defined.");
2457
2375
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
2458
- if (ownerId === null)
2459
- throw new Error("The parameter 'ownerId' cannot be null.");
2460
- else if (ownerId !== undefined)
2376
+ if (ownerId !== undefined && ownerId !== null)
2461
2377
  url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
2462
2378
  if (tenantId === null)
2463
2379
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -2548,9 +2464,7 @@ class DesignAtomsMockups3dApiClient extends ApiClientBase {
2548
2464
  if (id === undefined || id === null)
2549
2465
  throw new Error("The parameter 'id' must be defined.");
2550
2466
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
2551
- if (ownerId === null)
2552
- throw new Error("The parameter 'ownerId' cannot be null.");
2553
- else if (ownerId !== undefined)
2467
+ if (ownerId !== undefined && ownerId !== null)
2554
2468
  url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
2555
2469
  if (tenantId === null)
2556
2470
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -2640,9 +2554,7 @@ class DesignAtomsMockups3dApiClient extends ApiClientBase {
2640
2554
  if (id === undefined || id === null)
2641
2555
  throw new Error("The parameter 'id' must be defined.");
2642
2556
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
2643
- if (ownerId === null)
2644
- throw new Error("The parameter 'ownerId' cannot be null.");
2645
- else if (ownerId !== undefined)
2557
+ if (ownerId !== undefined && ownerId !== null)
2646
2558
  url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
2647
2559
  if (tenantId === null)
2648
2560
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -2748,9 +2660,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
2748
2660
  */
2749
2661
  createDesign(privateStorageOwner, tenantId, body) {
2750
2662
  let url_ = this.baseUrl + "/api/atoms/v1/designs?";
2751
- if (privateStorageOwner === null)
2752
- throw new Error("The parameter 'privateStorageOwner' cannot be null.");
2753
- else if (privateStorageOwner !== undefined)
2663
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
2754
2664
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
2755
2665
  if (tenantId === null)
2756
2666
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -2831,13 +2741,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
2831
2741
  if (id === undefined || id === null)
2832
2742
  throw new Error("The parameter 'id' must be defined.");
2833
2743
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
2834
- if (surfaceIndex === null)
2835
- throw new Error("The parameter 'surfaceIndex' cannot be null.");
2836
- else if (surfaceIndex !== undefined)
2744
+ if (surfaceIndex !== undefined && surfaceIndex !== null)
2837
2745
  url_ += "surfaceIndex=" + encodeURIComponent("" + surfaceIndex) + "&";
2838
- if (privateStorageOwner === null)
2839
- throw new Error("The parameter 'privateStorageOwner' cannot be null.");
2840
- else if (privateStorageOwner !== undefined)
2746
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
2841
2747
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
2842
2748
  if (tenantId === null)
2843
2749
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -2927,9 +2833,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
2927
2833
  if (id === undefined || id === null)
2928
2834
  throw new Error("The parameter 'id' must be defined.");
2929
2835
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
2930
- if (privateStorageOwner === null)
2931
- throw new Error("The parameter 'privateStorageOwner' cannot be null.");
2932
- else if (privateStorageOwner !== undefined)
2836
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
2933
2837
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
2934
2838
  if (tenantId === null)
2935
2839
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -3014,9 +2918,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
3014
2918
  if (id === undefined || id === null)
3015
2919
  throw new Error("The parameter 'id' must be defined.");
3016
2920
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3017
- if (privateStorageOwner === null)
3018
- throw new Error("The parameter 'privateStorageOwner' cannot be null.");
3019
- else if (privateStorageOwner !== undefined)
2921
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3020
2922
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3021
2923
  if (tenantId === null)
3022
2924
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -3106,9 +3008,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
3106
3008
  if (id === undefined || id === null)
3107
3009
  throw new Error("The parameter 'id' must be defined.");
3108
3010
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3109
- if (privateStorageOwner === null)
3110
- throw new Error("The parameter 'privateStorageOwner' cannot be null.");
3111
- else if (privateStorageOwner !== undefined)
3011
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3112
3012
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3113
3013
  if (tenantId === null)
3114
3014
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -3206,9 +3106,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
3206
3106
  if (id === undefined || id === null)
3207
3107
  throw new Error("The parameter 'id' must be defined.");
3208
3108
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3209
- if (privateStorageOwner === null)
3210
- throw new Error("The parameter 'privateStorageOwner' cannot be null.");
3211
- else if (privateStorageOwner !== undefined)
3109
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3212
3110
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3213
3111
  if (tenantId === null)
3214
3112
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -3292,9 +3190,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
3292
3190
  if (id === undefined || id === null)
3293
3191
  throw new Error("The parameter 'id' must be defined.");
3294
3192
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3295
- if (privateStorageOwner === null)
3296
- throw new Error("The parameter 'privateStorageOwner' cannot be null.");
3297
- else if (privateStorageOwner !== undefined)
3193
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3298
3194
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3299
3195
  if (tenantId === null)
3300
3196
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -3384,9 +3280,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
3384
3280
  if (id === undefined || id === null)
3385
3281
  throw new Error("The parameter 'id' must be defined.");
3386
3282
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3387
- if (privateStorageOwner === null)
3388
- throw new Error("The parameter 'privateStorageOwner' cannot be null.");
3389
- else if (privateStorageOwner !== undefined)
3283
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3390
3284
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3391
3285
  if (tenantId === null)
3392
3286
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -3476,9 +3370,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
3476
3370
  if (id === undefined || id === null)
3477
3371
  throw new Error("The parameter 'id' must be defined.");
3478
3372
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3479
- if (privateStorageOwner === null)
3480
- throw new Error("The parameter 'privateStorageOwner' cannot be null.");
3481
- else if (privateStorageOwner !== undefined)
3373
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3482
3374
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3483
3375
  if (tenantId === null)
3484
3376
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -3563,9 +3455,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
3563
3455
  if (id === undefined || id === null)
3564
3456
  throw new Error("The parameter 'id' must be defined.");
3565
3457
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3566
- if (privateStorageOwner === null)
3567
- throw new Error("The parameter 'privateStorageOwner' cannot be null.");
3568
- else if (privateStorageOwner !== undefined)
3458
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3569
3459
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3570
3460
  if (tenantId === null)
3571
3461
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -3656,9 +3546,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
3656
3546
  if (id === undefined || id === null)
3657
3547
  throw new Error("The parameter 'id' must be defined.");
3658
3548
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3659
- if (privateStorageOwner === null)
3660
- throw new Error("The parameter 'privateStorageOwner' cannot be null.");
3661
- else if (privateStorageOwner !== undefined)
3549
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3662
3550
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3663
3551
  if (tenantId === null)
3664
3552
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -3750,9 +3638,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
3750
3638
  if (id === undefined || id === null)
3751
3639
  throw new Error("The parameter 'id' must be defined.");
3752
3640
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3753
- if (privateStorageOwner === null)
3754
- throw new Error("The parameter 'privateStorageOwner' cannot be null.");
3755
- else if (privateStorageOwner !== undefined)
3641
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3756
3642
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3757
3643
  if (tenantId === null)
3758
3644
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -3836,9 +3722,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
3836
3722
  if (id === undefined || id === null)
3837
3723
  throw new Error("The parameter 'id' must be defined.");
3838
3724
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3839
- if (privateStorageOwner === null)
3840
- throw new Error("The parameter 'privateStorageOwner' cannot be null.");
3841
- else if (privateStorageOwner !== undefined)
3725
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3842
3726
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3843
3727
  if (tenantId === null)
3844
3728
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -3918,9 +3802,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
3918
3802
  if (id === undefined || id === null)
3919
3803
  throw new Error("The parameter 'id' must be defined.");
3920
3804
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3921
- if (privateStorageOwner === null)
3922
- throw new Error("The parameter 'privateStorageOwner' cannot be null.");
3923
- else if (privateStorageOwner !== undefined)
3805
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3924
3806
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3925
3807
  if (tenantId === null)
3926
3808
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -4092,9 +3974,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
4092
3974
  */
4093
3975
  createItem(itemType, tenantId, sourceType, sourceId, sourceOwnerId, sourceFile) {
4094
3976
  let url_ = this.baseUrl + "/api/atoms/v1/designs/model/items?";
4095
- if (itemType === null)
4096
- throw new Error("The parameter 'itemType' cannot be null.");
4097
- else if (itemType !== undefined)
3977
+ if (itemType !== undefined && itemType !== null)
4098
3978
  url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
4099
3979
  if (tenantId === null)
4100
3980
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -4333,9 +4213,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
4333
4213
  */
4334
4214
  renderProduct(attachment, tenantId, body) {
4335
4215
  let url_ = this.baseUrl + "/api/atoms/v1/designs/model/render-proof?";
4336
- if (attachment === null)
4337
- throw new Error("The parameter 'attachment' cannot be null.");
4338
- else if (attachment !== undefined)
4216
+ if (attachment !== undefined && attachment !== null)
4339
4217
  url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
4340
4218
  if (tenantId === null)
4341
4219
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -4412,9 +4290,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
4412
4290
  */
4413
4291
  renderDesignPreview(attachment, tenantId, body) {
4414
4292
  let url_ = this.baseUrl + "/api/atoms/v1/designs/render-preview?";
4415
- if (attachment === null)
4416
- throw new Error("The parameter 'attachment' cannot be null.");
4417
- else if (attachment !== undefined)
4293
+ if (attachment !== undefined && attachment !== null)
4418
4294
  url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
4419
4295
  if (tenantId === null)
4420
4296
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -4565,9 +4441,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
4565
4441
  */
4566
4442
  renderDesignProof(attachment, tenantId, body) {
4567
4443
  let url_ = this.baseUrl + "/api/atoms/v1/designs/render-proof?";
4568
- if (attachment === null)
4569
- throw new Error("The parameter 'attachment' cannot be null.");
4570
- else if (attachment !== undefined)
4444
+ if (attachment !== undefined && attachment !== null)
4571
4445
  url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
4572
4446
  if (tenantId === null)
4573
4447
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -4719,17 +4593,11 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
4719
4593
  */
4720
4594
  createPrivateDesignFromDesign(designId, privateDesignId, privateStorageOwner, tenantId) {
4721
4595
  let url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-design?";
4722
- if (designId === null)
4723
- throw new Error("The parameter 'designId' cannot be null.");
4724
- else if (designId !== undefined)
4596
+ if (designId !== undefined && designId !== null)
4725
4597
  url_ += "designId=" + encodeURIComponent("" + designId) + "&";
4726
- if (privateDesignId === null)
4727
- throw new Error("The parameter 'privateDesignId' cannot be null.");
4728
- else if (privateDesignId !== undefined)
4598
+ if (privateDesignId !== undefined && privateDesignId !== null)
4729
4599
  url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
4730
- if (privateStorageOwner === null)
4731
- throw new Error("The parameter 'privateStorageOwner' cannot be null.");
4732
- else if (privateStorageOwner !== undefined)
4600
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
4733
4601
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
4734
4602
  if (tenantId === null)
4735
4603
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -4801,17 +4669,11 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
4801
4669
  */
4802
4670
  createPrivateDesignFromResource(resourceId, privateDesignId, privateStorageOwner, tenantId) {
4803
4671
  let url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-resource?";
4804
- if (resourceId === null)
4805
- throw new Error("The parameter 'resourceId' cannot be null.");
4806
- else if (resourceId !== undefined)
4672
+ if (resourceId !== undefined && resourceId !== null)
4807
4673
  url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
4808
- if (privateDesignId === null)
4809
- throw new Error("The parameter 'privateDesignId' cannot be null.");
4810
- else if (privateDesignId !== undefined)
4674
+ if (privateDesignId !== undefined && privateDesignId !== null)
4811
4675
  url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
4812
- if (privateStorageOwner === null)
4813
- throw new Error("The parameter 'privateStorageOwner' cannot be null.");
4814
- else if (privateStorageOwner !== undefined)
4676
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
4815
4677
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
4816
4678
  if (tenantId === null)
4817
4679
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -5195,9 +5057,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
5195
5057
  */
5196
5058
  getCssFont(fontKey, tenantId) {
5197
5059
  let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/GetCssFont?";
5198
- if (fontKey === null)
5199
- throw new Error("The parameter 'fontKey' cannot be null.");
5200
- else if (fontKey !== undefined)
5060
+ if (fontKey !== undefined && fontKey !== null)
5201
5061
  url_ += "fontKey=" + encodeURIComponent("" + fontKey) + "&";
5202
5062
  if (tenantId === null)
5203
5063
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -5580,77 +5440,41 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
5580
5440
  */
5581
5441
  img(f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId) {
5582
5442
  let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/img?";
5583
- if (f === null)
5584
- throw new Error("The parameter 'f' cannot be null.");
5585
- else if (f !== undefined)
5443
+ if (f !== undefined && f !== null)
5586
5444
  url_ += "f=" + encodeURIComponent("" + f) + "&";
5587
- if (w === null)
5588
- throw new Error("The parameter 'w' cannot be null.");
5589
- else if (w !== undefined)
5445
+ if (w !== undefined && w !== null)
5590
5446
  url_ += "w=" + encodeURIComponent("" + w) + "&";
5591
- if (h === null)
5592
- throw new Error("The parameter 'h' cannot be null.");
5593
- else if (h !== undefined)
5447
+ if (h !== undefined && h !== null)
5594
5448
  url_ += "h=" + encodeURIComponent("" + h) + "&";
5595
- if (cmyk === null)
5596
- throw new Error("The parameter 'cmyk' cannot be null.");
5597
- else if (cmyk !== undefined)
5449
+ if (cmyk !== undefined && cmyk !== null)
5598
5450
  url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
5599
- if (rgb === null)
5600
- throw new Error("The parameter 'rgb' cannot be null.");
5601
- else if (rgb !== undefined)
5451
+ if (rgb !== undefined && rgb !== null)
5602
5452
  url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
5603
- if (grayscale === null)
5604
- throw new Error("The parameter 'grayscale' cannot be null.");
5605
- else if (grayscale !== undefined)
5453
+ if (grayscale !== undefined && grayscale !== null)
5606
5454
  url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
5607
- if (target === null)
5608
- throw new Error("The parameter 'target' cannot be null.");
5609
- else if (target !== undefined)
5455
+ if (target !== undefined && target !== null)
5610
5456
  url_ += "target=" + encodeURIComponent("" + target) + "&";
5611
- if (sq === null)
5612
- throw new Error("The parameter 'sq' cannot be null.");
5613
- else if (sq !== undefined)
5457
+ if (sq !== undefined && sq !== null)
5614
5458
  url_ += "sq=" + encodeURIComponent("" + sq) + "&";
5615
- if (effect === null)
5616
- throw new Error("The parameter 'effect' cannot be null.");
5617
- else if (effect !== undefined)
5459
+ if (effect !== undefined && effect !== null)
5618
5460
  url_ += "effect=" + encodeURIComponent("" + effect) + "&";
5619
- if (kp === null)
5620
- throw new Error("The parameter 'kp' cannot be null.");
5621
- else if (kp !== undefined)
5461
+ if (kp !== undefined && kp !== null)
5622
5462
  url_ += "kp=" + encodeURIComponent("" + kp) + "&";
5623
- if (color === null)
5624
- throw new Error("The parameter 'color' cannot be null.");
5625
- else if (color !== undefined)
5463
+ if (color !== undefined && color !== null)
5626
5464
  url_ += "color=" + encodeURIComponent("" + color) + "&";
5627
- if (obm === null)
5628
- throw new Error("The parameter 'obm' cannot be null.");
5629
- else if (obm !== undefined)
5465
+ if (obm !== undefined && obm !== null)
5630
5466
  url_ += "obm=" + encodeURIComponent("" + obm) + "&";
5631
- if (oo === null)
5632
- throw new Error("The parameter 'oo' cannot be null.");
5633
- else if (oo !== undefined)
5467
+ if (oo !== undefined && oo !== null)
5634
5468
  url_ += "oo=" + encodeURIComponent("" + oo) + "&";
5635
- if (alphaMask === null)
5636
- throw new Error("The parameter 'alphaMask' cannot be null.");
5637
- else if (alphaMask !== undefined)
5469
+ if (alphaMask !== undefined && alphaMask !== null)
5638
5470
  url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
5639
- if (page === null)
5640
- throw new Error("The parameter 'page' cannot be null.");
5641
- else if (page !== undefined)
5471
+ if (page !== undefined && page !== null)
5642
5472
  url_ += "page=" + encodeURIComponent("" + page) + "&";
5643
- if (colorizeColor === null)
5644
- throw new Error("The parameter 'colorizeColor' cannot be null.");
5645
- else if (colorizeColor !== undefined)
5473
+ if (colorizeColor !== undefined && colorizeColor !== null)
5646
5474
  url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
5647
- if (rw === null)
5648
- throw new Error("The parameter 'rw' cannot be null.");
5649
- else if (rw !== undefined)
5475
+ if (rw !== undefined && rw !== null)
5650
5476
  url_ += "rw=" + encodeURIComponent("" + rw) + "&";
5651
- if (rh === null)
5652
- throw new Error("The parameter 'rh' cannot be null.");
5653
- else if (rh !== undefined)
5477
+ if (rh !== undefined && rh !== null)
5654
5478
  url_ += "rh=" + encodeURIComponent("" + rh) + "&";
5655
5479
  if (tenantId === null)
5656
5480
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -5802,9 +5626,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
5802
5626
  */
5803
5627
  pth(f, tenantId) {
5804
5628
  let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/pth?";
5805
- if (f === null)
5806
- throw new Error("The parameter 'f' cannot be null.");
5807
- else if (f !== undefined)
5629
+ if (f !== undefined && f !== null)
5808
5630
  url_ += "f=" + encodeURIComponent("" + f) + "&";
5809
5631
  if (tenantId === null)
5810
5632
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -5887,9 +5709,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
5887
5709
  */
5888
5710
  resource(image, tenantId) {
5889
5711
  let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/resource?";
5890
- if (image === null)
5891
- throw new Error("The parameter 'image' cannot be null.");
5892
- else if (image !== undefined)
5712
+ if (image !== undefined && image !== null)
5893
5713
  url_ += "image=" + encodeURIComponent("" + image) + "&";
5894
5714
  if (tenantId === null)
5895
5715
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -5984,77 +5804,41 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
5984
5804
  */
5985
5805
  svg(f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId) {
5986
5806
  let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/svg?";
5987
- if (f === null)
5988
- throw new Error("The parameter 'f' cannot be null.");
5989
- else if (f !== undefined)
5807
+ if (f !== undefined && f !== null)
5990
5808
  url_ += "f=" + encodeURIComponent("" + f) + "&";
5991
- if (w === null)
5992
- throw new Error("The parameter 'w' cannot be null.");
5993
- else if (w !== undefined)
5809
+ if (w !== undefined && w !== null)
5994
5810
  url_ += "w=" + encodeURIComponent("" + w) + "&";
5995
- if (h === null)
5996
- throw new Error("The parameter 'h' cannot be null.");
5997
- else if (h !== undefined)
5811
+ if (h !== undefined && h !== null)
5998
5812
  url_ += "h=" + encodeURIComponent("" + h) + "&";
5999
- if (cmyk === null)
6000
- throw new Error("The parameter 'cmyk' cannot be null.");
6001
- else if (cmyk !== undefined)
5813
+ if (cmyk !== undefined && cmyk !== null)
6002
5814
  url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
6003
- if (rgb === null)
6004
- throw new Error("The parameter 'rgb' cannot be null.");
6005
- else if (rgb !== undefined)
5815
+ if (rgb !== undefined && rgb !== null)
6006
5816
  url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
6007
- if (grayscale === null)
6008
- throw new Error("The parameter 'grayscale' cannot be null.");
6009
- else if (grayscale !== undefined)
5817
+ if (grayscale !== undefined && grayscale !== null)
6010
5818
  url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
6011
- if (target === null)
6012
- throw new Error("The parameter 'target' cannot be null.");
6013
- else if (target !== undefined)
5819
+ if (target !== undefined && target !== null)
6014
5820
  url_ += "target=" + encodeURIComponent("" + target) + "&";
6015
- if (sq === null)
6016
- throw new Error("The parameter 'sq' cannot be null.");
6017
- else if (sq !== undefined)
5821
+ if (sq !== undefined && sq !== null)
6018
5822
  url_ += "sq=" + encodeURIComponent("" + sq) + "&";
6019
- if (effect === null)
6020
- throw new Error("The parameter 'effect' cannot be null.");
6021
- else if (effect !== undefined)
5823
+ if (effect !== undefined && effect !== null)
6022
5824
  url_ += "effect=" + encodeURIComponent("" + effect) + "&";
6023
- if (kp === null)
6024
- throw new Error("The parameter 'kp' cannot be null.");
6025
- else if (kp !== undefined)
5825
+ if (kp !== undefined && kp !== null)
6026
5826
  url_ += "kp=" + encodeURIComponent("" + kp) + "&";
6027
- if (color === null)
6028
- throw new Error("The parameter 'color' cannot be null.");
6029
- else if (color !== undefined)
5827
+ if (color !== undefined && color !== null)
6030
5828
  url_ += "color=" + encodeURIComponent("" + color) + "&";
6031
- if (obm === null)
6032
- throw new Error("The parameter 'obm' cannot be null.");
6033
- else if (obm !== undefined)
5829
+ if (obm !== undefined && obm !== null)
6034
5830
  url_ += "obm=" + encodeURIComponent("" + obm) + "&";
6035
- if (oo === null)
6036
- throw new Error("The parameter 'oo' cannot be null.");
6037
- else if (oo !== undefined)
5831
+ if (oo !== undefined && oo !== null)
6038
5832
  url_ += "oo=" + encodeURIComponent("" + oo) + "&";
6039
- if (alphaMask === null)
6040
- throw new Error("The parameter 'alphaMask' cannot be null.");
6041
- else if (alphaMask !== undefined)
5833
+ if (alphaMask !== undefined && alphaMask !== null)
6042
5834
  url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
6043
- if (page === null)
6044
- throw new Error("The parameter 'page' cannot be null.");
6045
- else if (page !== undefined)
5835
+ if (page !== undefined && page !== null)
6046
5836
  url_ += "page=" + encodeURIComponent("" + page) + "&";
6047
- if (colorizeColor === null)
6048
- throw new Error("The parameter 'colorizeColor' cannot be null.");
6049
- else if (colorizeColor !== undefined)
5837
+ if (colorizeColor !== undefined && colorizeColor !== null)
6050
5838
  url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
6051
- if (rw === null)
6052
- throw new Error("The parameter 'rw' cannot be null.");
6053
- else if (rw !== undefined)
5839
+ if (rw !== undefined && rw !== null)
6054
5840
  url_ += "rw=" + encodeURIComponent("" + rw) + "&";
6055
- if (rh === null)
6056
- throw new Error("The parameter 'rh' cannot be null.");
6057
- else if (rh !== undefined)
5841
+ if (rh !== undefined && rh !== null)
6058
5842
  url_ += "rh=" + encodeURIComponent("" + rh) + "&";
6059
5843
  if (tenantId === null)
6060
5844
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -6137,9 +5921,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
6137
5921
  */
6138
5922
  txt(f, tenantId) {
6139
5923
  let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/txt?";
6140
- if (f === null)
6141
- throw new Error("The parameter 'f' cannot be null.");
6142
- else if (f !== undefined)
5924
+ if (f !== undefined && f !== null)
6143
5925
  url_ += "f=" + encodeURIComponent("" + f) + "&";
6144
5926
  if (tenantId === null)
6145
5927
  throw new Error("The parameter 'tenantId' cannot be null.");