@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
|
@@ -439,9 +439,7 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
439
439
|
if (tenantId === undefined || tenantId === null)
|
|
440
440
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
441
441
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
442
|
-
if (fontKey
|
|
443
|
-
throw new Error("The parameter 'fontKey' cannot be null.");
|
|
444
|
-
else if (fontKey !== undefined)
|
|
442
|
+
if (fontKey !== undefined && fontKey !== null)
|
|
445
443
|
url_ += "fontKey=" + encodeURIComponent("" + fontKey) + "&";
|
|
446
444
|
url_ = url_.replace(/[?&]$/, "");
|
|
447
445
|
let options_ = {
|
|
@@ -785,77 +783,41 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
785
783
|
if (tenantId === undefined || tenantId === null)
|
|
786
784
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
787
785
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
788
|
-
if (f
|
|
789
|
-
throw new Error("The parameter 'f' cannot be null.");
|
|
790
|
-
else if (f !== undefined)
|
|
786
|
+
if (f !== undefined && f !== null)
|
|
791
787
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
792
|
-
if (w
|
|
793
|
-
throw new Error("The parameter 'w' cannot be null.");
|
|
794
|
-
else if (w !== undefined)
|
|
788
|
+
if (w !== undefined && w !== null)
|
|
795
789
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
796
|
-
if (h
|
|
797
|
-
throw new Error("The parameter 'h' cannot be null.");
|
|
798
|
-
else if (h !== undefined)
|
|
790
|
+
if (h !== undefined && h !== null)
|
|
799
791
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
800
|
-
if (cmyk
|
|
801
|
-
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
802
|
-
else if (cmyk !== undefined)
|
|
792
|
+
if (cmyk !== undefined && cmyk !== null)
|
|
803
793
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
804
|
-
if (rgb
|
|
805
|
-
throw new Error("The parameter 'rgb' cannot be null.");
|
|
806
|
-
else if (rgb !== undefined)
|
|
794
|
+
if (rgb !== undefined && rgb !== null)
|
|
807
795
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
808
|
-
if (grayscale
|
|
809
|
-
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
810
|
-
else if (grayscale !== undefined)
|
|
796
|
+
if (grayscale !== undefined && grayscale !== null)
|
|
811
797
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
812
|
-
if (target
|
|
813
|
-
throw new Error("The parameter 'target' cannot be null.");
|
|
814
|
-
else if (target !== undefined)
|
|
798
|
+
if (target !== undefined && target !== null)
|
|
815
799
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
816
|
-
if (sq
|
|
817
|
-
throw new Error("The parameter 'sq' cannot be null.");
|
|
818
|
-
else if (sq !== undefined)
|
|
800
|
+
if (sq !== undefined && sq !== null)
|
|
819
801
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
820
|
-
if (effect
|
|
821
|
-
throw new Error("The parameter 'effect' cannot be null.");
|
|
822
|
-
else if (effect !== undefined)
|
|
802
|
+
if (effect !== undefined && effect !== null)
|
|
823
803
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
824
|
-
if (kp
|
|
825
|
-
throw new Error("The parameter 'kp' cannot be null.");
|
|
826
|
-
else if (kp !== undefined)
|
|
804
|
+
if (kp !== undefined && kp !== null)
|
|
827
805
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
828
|
-
if (color
|
|
829
|
-
throw new Error("The parameter 'color' cannot be null.");
|
|
830
|
-
else if (color !== undefined)
|
|
806
|
+
if (color !== undefined && color !== null)
|
|
831
807
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
832
|
-
if (obm
|
|
833
|
-
throw new Error("The parameter 'obm' cannot be null.");
|
|
834
|
-
else if (obm !== undefined)
|
|
808
|
+
if (obm !== undefined && obm !== null)
|
|
835
809
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
836
|
-
if (oo
|
|
837
|
-
throw new Error("The parameter 'oo' cannot be null.");
|
|
838
|
-
else if (oo !== undefined)
|
|
810
|
+
if (oo !== undefined && oo !== null)
|
|
839
811
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
840
|
-
if (alphaMask
|
|
841
|
-
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
842
|
-
else if (alphaMask !== undefined)
|
|
812
|
+
if (alphaMask !== undefined && alphaMask !== null)
|
|
843
813
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
844
|
-
if (page
|
|
845
|
-
throw new Error("The parameter 'page' cannot be null.");
|
|
846
|
-
else if (page !== undefined)
|
|
814
|
+
if (page !== undefined && page !== null)
|
|
847
815
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
848
|
-
if (colorizeColor
|
|
849
|
-
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
850
|
-
else if (colorizeColor !== undefined)
|
|
816
|
+
if (colorizeColor !== undefined && colorizeColor !== null)
|
|
851
817
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
852
|
-
if (rw
|
|
853
|
-
throw new Error("The parameter 'rw' cannot be null.");
|
|
854
|
-
else if (rw !== undefined)
|
|
818
|
+
if (rw !== undefined && rw !== null)
|
|
855
819
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
856
|
-
if (rh
|
|
857
|
-
throw new Error("The parameter 'rh' cannot be null.");
|
|
858
|
-
else if (rh !== undefined)
|
|
820
|
+
if (rh !== undefined && rh !== null)
|
|
859
821
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
860
822
|
url_ = url_.replace(/[?&]$/, "");
|
|
861
823
|
let options_ = {
|
|
@@ -991,9 +953,7 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
991
953
|
if (tenantId === undefined || tenantId === null)
|
|
992
954
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
993
955
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
994
|
-
if (f
|
|
995
|
-
throw new Error("The parameter 'f' cannot be null.");
|
|
996
|
-
else if (f !== undefined)
|
|
956
|
+
if (f !== undefined && f !== null)
|
|
997
957
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
998
958
|
url_ = url_.replace(/[?&]$/, "");
|
|
999
959
|
let options_ = {
|
|
@@ -1068,9 +1028,7 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1068
1028
|
if (tenantId === undefined || tenantId === null)
|
|
1069
1029
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
1070
1030
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
1071
|
-
if (image
|
|
1072
|
-
throw new Error("The parameter 'image' cannot be null.");
|
|
1073
|
-
else if (image !== undefined)
|
|
1031
|
+
if (image !== undefined && image !== null)
|
|
1074
1032
|
url_ += "image=" + encodeURIComponent("" + image) + "&";
|
|
1075
1033
|
url_ = url_.replace(/[?&]$/, "");
|
|
1076
1034
|
let options_ = {
|
|
@@ -1158,77 +1116,41 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1158
1116
|
if (tenantId === undefined || tenantId === null)
|
|
1159
1117
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
1160
1118
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
1161
|
-
if (f
|
|
1162
|
-
throw new Error("The parameter 'f' cannot be null.");
|
|
1163
|
-
else if (f !== undefined)
|
|
1119
|
+
if (f !== undefined && f !== null)
|
|
1164
1120
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
1165
|
-
if (w
|
|
1166
|
-
throw new Error("The parameter 'w' cannot be null.");
|
|
1167
|
-
else if (w !== undefined)
|
|
1121
|
+
if (w !== undefined && w !== null)
|
|
1168
1122
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
1169
|
-
if (h
|
|
1170
|
-
throw new Error("The parameter 'h' cannot be null.");
|
|
1171
|
-
else if (h !== undefined)
|
|
1123
|
+
if (h !== undefined && h !== null)
|
|
1172
1124
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
1173
|
-
if (cmyk
|
|
1174
|
-
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
1175
|
-
else if (cmyk !== undefined)
|
|
1125
|
+
if (cmyk !== undefined && cmyk !== null)
|
|
1176
1126
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
1177
|
-
if (rgb
|
|
1178
|
-
throw new Error("The parameter 'rgb' cannot be null.");
|
|
1179
|
-
else if (rgb !== undefined)
|
|
1127
|
+
if (rgb !== undefined && rgb !== null)
|
|
1180
1128
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
1181
|
-
if (grayscale
|
|
1182
|
-
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
1183
|
-
else if (grayscale !== undefined)
|
|
1129
|
+
if (grayscale !== undefined && grayscale !== null)
|
|
1184
1130
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
1185
|
-
if (target
|
|
1186
|
-
throw new Error("The parameter 'target' cannot be null.");
|
|
1187
|
-
else if (target !== undefined)
|
|
1131
|
+
if (target !== undefined && target !== null)
|
|
1188
1132
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
1189
|
-
if (sq
|
|
1190
|
-
throw new Error("The parameter 'sq' cannot be null.");
|
|
1191
|
-
else if (sq !== undefined)
|
|
1133
|
+
if (sq !== undefined && sq !== null)
|
|
1192
1134
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
1193
|
-
if (effect
|
|
1194
|
-
throw new Error("The parameter 'effect' cannot be null.");
|
|
1195
|
-
else if (effect !== undefined)
|
|
1135
|
+
if (effect !== undefined && effect !== null)
|
|
1196
1136
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
1197
|
-
if (kp
|
|
1198
|
-
throw new Error("The parameter 'kp' cannot be null.");
|
|
1199
|
-
else if (kp !== undefined)
|
|
1137
|
+
if (kp !== undefined && kp !== null)
|
|
1200
1138
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
1201
|
-
if (color
|
|
1202
|
-
throw new Error("The parameter 'color' cannot be null.");
|
|
1203
|
-
else if (color !== undefined)
|
|
1139
|
+
if (color !== undefined && color !== null)
|
|
1204
1140
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
1205
|
-
if (obm
|
|
1206
|
-
throw new Error("The parameter 'obm' cannot be null.");
|
|
1207
|
-
else if (obm !== undefined)
|
|
1141
|
+
if (obm !== undefined && obm !== null)
|
|
1208
1142
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
1209
|
-
if (oo
|
|
1210
|
-
throw new Error("The parameter 'oo' cannot be null.");
|
|
1211
|
-
else if (oo !== undefined)
|
|
1143
|
+
if (oo !== undefined && oo !== null)
|
|
1212
1144
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
1213
|
-
if (alphaMask
|
|
1214
|
-
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
1215
|
-
else if (alphaMask !== undefined)
|
|
1145
|
+
if (alphaMask !== undefined && alphaMask !== null)
|
|
1216
1146
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
1217
|
-
if (page
|
|
1218
|
-
throw new Error("The parameter 'page' cannot be null.");
|
|
1219
|
-
else if (page !== undefined)
|
|
1147
|
+
if (page !== undefined && page !== null)
|
|
1220
1148
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
1221
|
-
if (colorizeColor
|
|
1222
|
-
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
1223
|
-
else if (colorizeColor !== undefined)
|
|
1149
|
+
if (colorizeColor !== undefined && colorizeColor !== null)
|
|
1224
1150
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
1225
|
-
if (rw
|
|
1226
|
-
throw new Error("The parameter 'rw' cannot be null.");
|
|
1227
|
-
else if (rw !== undefined)
|
|
1151
|
+
if (rw !== undefined && rw !== null)
|
|
1228
1152
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
1229
|
-
if (rh
|
|
1230
|
-
throw new Error("The parameter 'rh' cannot be null.");
|
|
1231
|
-
else if (rh !== undefined)
|
|
1153
|
+
if (rh !== undefined && rh !== null)
|
|
1232
1154
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
1233
1155
|
url_ = url_.replace(/[?&]$/, "");
|
|
1234
1156
|
let options_ = {
|
|
@@ -1303,9 +1225,7 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1303
1225
|
if (tenantId === undefined || tenantId === null)
|
|
1304
1226
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
1305
1227
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
1306
|
-
if (f
|
|
1307
|
-
throw new Error("The parameter 'f' cannot be null.");
|
|
1308
|
-
else if (f !== undefined)
|
|
1228
|
+
if (f !== undefined && f !== null)
|
|
1309
1229
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
1310
1230
|
url_ = url_.replace(/[?&]$/, "");
|
|
1311
1231
|
let options_ = {
|
|
@@ -2106,9 +2026,7 @@ export class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2106
2026
|
*/
|
|
2107
2027
|
renderImagePreview(attachment, tenantId, body, cancelToken) {
|
|
2108
2028
|
let url_ = this.baseUrl + "/api/atoms/v1/images/render-preview?";
|
|
2109
|
-
if (attachment
|
|
2110
|
-
throw new Error("The parameter 'attachment' cannot be null.");
|
|
2111
|
-
else if (attachment !== undefined)
|
|
2029
|
+
if (attachment !== undefined && attachment !== null)
|
|
2112
2030
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
2113
2031
|
if (tenantId === null)
|
|
2114
2032
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2260,9 +2178,7 @@ export class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2260
2178
|
if (id === undefined || id === null)
|
|
2261
2179
|
throw new Error("The parameter 'id' must be defined.");
|
|
2262
2180
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2263
|
-
if (ownerId
|
|
2264
|
-
throw new Error("The parameter 'ownerId' cannot be null.");
|
|
2265
|
-
else if (ownerId !== undefined)
|
|
2181
|
+
if (ownerId !== undefined && ownerId !== null)
|
|
2266
2182
|
url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
|
|
2267
2183
|
if (tenantId === null)
|
|
2268
2184
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2347,9 +2263,7 @@ export class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2347
2263
|
if (id === undefined || id === null)
|
|
2348
2264
|
throw new Error("The parameter 'id' must be defined.");
|
|
2349
2265
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2350
|
-
if (ownerId
|
|
2351
|
-
throw new Error("The parameter 'ownerId' cannot be null.");
|
|
2352
|
-
else if (ownerId !== undefined)
|
|
2266
|
+
if (ownerId !== undefined && ownerId !== null)
|
|
2353
2267
|
url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
|
|
2354
2268
|
if (tenantId === null)
|
|
2355
2269
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2434,9 +2348,7 @@ export class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2434
2348
|
if (id === undefined || id === null)
|
|
2435
2349
|
throw new Error("The parameter 'id' must be defined.");
|
|
2436
2350
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2437
|
-
if (ownerId
|
|
2438
|
-
throw new Error("The parameter 'ownerId' cannot be null.");
|
|
2439
|
-
else if (ownerId !== undefined)
|
|
2351
|
+
if (ownerId !== undefined && ownerId !== null)
|
|
2440
2352
|
url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
|
|
2441
2353
|
if (tenantId === null)
|
|
2442
2354
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2528,9 +2440,7 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2528
2440
|
*/
|
|
2529
2441
|
createDesign(privateStorageOwner, tenantId, body, cancelToken) {
|
|
2530
2442
|
let url_ = this.baseUrl + "/api/atoms/v1/designs?";
|
|
2531
|
-
if (privateStorageOwner
|
|
2532
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
2533
|
-
else if (privateStorageOwner !== undefined)
|
|
2443
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
2534
2444
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2535
2445
|
if (tenantId === null)
|
|
2536
2446
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2605,13 +2515,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2605
2515
|
if (id === undefined || id === null)
|
|
2606
2516
|
throw new Error("The parameter 'id' must be defined.");
|
|
2607
2517
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2608
|
-
if (surfaceIndex
|
|
2609
|
-
throw new Error("The parameter 'surfaceIndex' cannot be null.");
|
|
2610
|
-
else if (surfaceIndex !== undefined)
|
|
2518
|
+
if (surfaceIndex !== undefined && surfaceIndex !== null)
|
|
2611
2519
|
url_ += "surfaceIndex=" + encodeURIComponent("" + surfaceIndex) + "&";
|
|
2612
|
-
if (privateStorageOwner
|
|
2613
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
2614
|
-
else if (privateStorageOwner !== undefined)
|
|
2520
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
2615
2521
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2616
2522
|
if (tenantId === null)
|
|
2617
2523
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2696,9 +2602,7 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2696
2602
|
if (id === undefined || id === null)
|
|
2697
2603
|
throw new Error("The parameter 'id' must be defined.");
|
|
2698
2604
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2699
|
-
if (privateStorageOwner
|
|
2700
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
2701
|
-
else if (privateStorageOwner !== undefined)
|
|
2605
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
2702
2606
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2703
2607
|
if (tenantId === null)
|
|
2704
2608
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2777,9 +2681,7 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2777
2681
|
if (id === undefined || id === null)
|
|
2778
2682
|
throw new Error("The parameter 'id' must be defined.");
|
|
2779
2683
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2780
|
-
if (privateStorageOwner
|
|
2781
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
2782
|
-
else if (privateStorageOwner !== undefined)
|
|
2684
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
2783
2685
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2784
2686
|
if (tenantId === null)
|
|
2785
2687
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2862,9 +2764,7 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2862
2764
|
if (id === undefined || id === null)
|
|
2863
2765
|
throw new Error("The parameter 'id' must be defined.");
|
|
2864
2766
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2865
|
-
if (privateStorageOwner
|
|
2866
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
2867
|
-
else if (privateStorageOwner !== undefined)
|
|
2767
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
2868
2768
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2869
2769
|
if (tenantId === null)
|
|
2870
2770
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2955,9 +2855,7 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2955
2855
|
if (id === undefined || id === null)
|
|
2956
2856
|
throw new Error("The parameter 'id' must be defined.");
|
|
2957
2857
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2958
|
-
if (privateStorageOwner
|
|
2959
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
2960
|
-
else if (privateStorageOwner !== undefined)
|
|
2858
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
2961
2859
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2962
2860
|
if (tenantId === null)
|
|
2963
2861
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3035,9 +2933,7 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3035
2933
|
if (id === undefined || id === null)
|
|
3036
2934
|
throw new Error("The parameter 'id' must be defined.");
|
|
3037
2935
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3038
|
-
if (privateStorageOwner
|
|
3039
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3040
|
-
else if (privateStorageOwner !== undefined)
|
|
2936
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3041
2937
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3042
2938
|
if (tenantId === null)
|
|
3043
2939
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3122,9 +3018,7 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3122
3018
|
if (id === undefined || id === null)
|
|
3123
3019
|
throw new Error("The parameter 'id' must be defined.");
|
|
3124
3020
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3125
|
-
if (privateStorageOwner
|
|
3126
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3127
|
-
else if (privateStorageOwner !== undefined)
|
|
3021
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3128
3022
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3129
3023
|
if (tenantId === null)
|
|
3130
3024
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3209,9 +3103,7 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3209
3103
|
if (id === undefined || id === null)
|
|
3210
3104
|
throw new Error("The parameter 'id' must be defined.");
|
|
3211
3105
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3212
|
-
if (privateStorageOwner
|
|
3213
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3214
|
-
else if (privateStorageOwner !== undefined)
|
|
3106
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3215
3107
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3216
3108
|
if (tenantId === null)
|
|
3217
3109
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3290,9 +3182,7 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3290
3182
|
if (id === undefined || id === null)
|
|
3291
3183
|
throw new Error("The parameter 'id' must be defined.");
|
|
3292
3184
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3293
|
-
if (privateStorageOwner
|
|
3294
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3295
|
-
else if (privateStorageOwner !== undefined)
|
|
3185
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3296
3186
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3297
3187
|
if (tenantId === null)
|
|
3298
3188
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3376,9 +3266,7 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3376
3266
|
if (id === undefined || id === null)
|
|
3377
3267
|
throw new Error("The parameter 'id' must be defined.");
|
|
3378
3268
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3379
|
-
if (privateStorageOwner
|
|
3380
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3381
|
-
else if (privateStorageOwner !== undefined)
|
|
3269
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3382
3270
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3383
3271
|
if (tenantId === null)
|
|
3384
3272
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3464,9 +3352,7 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3464
3352
|
if (id === undefined || id === null)
|
|
3465
3353
|
throw new Error("The parameter 'id' must be defined.");
|
|
3466
3354
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3467
|
-
if (privateStorageOwner
|
|
3468
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3469
|
-
else if (privateStorageOwner !== undefined)
|
|
3355
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3470
3356
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3471
3357
|
if (tenantId === null)
|
|
3472
3358
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3543,9 +3429,7 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3543
3429
|
if (id === undefined || id === null)
|
|
3544
3430
|
throw new Error("The parameter 'id' must be defined.");
|
|
3545
3431
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3546
|
-
if (privateStorageOwner
|
|
3547
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3548
|
-
else if (privateStorageOwner !== undefined)
|
|
3432
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3549
3433
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3550
3434
|
if (tenantId === null)
|
|
3551
3435
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3618,9 +3502,7 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3618
3502
|
if (id === undefined || id === null)
|
|
3619
3503
|
throw new Error("The parameter 'id' must be defined.");
|
|
3620
3504
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3621
|
-
if (privateStorageOwner
|
|
3622
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3623
|
-
else if (privateStorageOwner !== undefined)
|
|
3505
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3624
3506
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3625
3507
|
if (tenantId === null)
|
|
3626
3508
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3780,9 +3662,7 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3780
3662
|
*/
|
|
3781
3663
|
createItem(itemType, tenantId, sourceType, sourceId, sourceOwnerId, sourceFile, cancelToken) {
|
|
3782
3664
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/model/items?";
|
|
3783
|
-
if (itemType
|
|
3784
|
-
throw new Error("The parameter 'itemType' cannot be null.");
|
|
3785
|
-
else if (itemType !== undefined)
|
|
3665
|
+
if (itemType !== undefined && itemType !== null)
|
|
3786
3666
|
url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
|
|
3787
3667
|
if (tenantId === null)
|
|
3788
3668
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4004,9 +3884,7 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4004
3884
|
*/
|
|
4005
3885
|
renderProduct(attachment, tenantId, body, cancelToken) {
|
|
4006
3886
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/model/render-proof?";
|
|
4007
|
-
if (attachment
|
|
4008
|
-
throw new Error("The parameter 'attachment' cannot be null.");
|
|
4009
|
-
else if (attachment !== undefined)
|
|
3887
|
+
if (attachment !== undefined && attachment !== null)
|
|
4010
3888
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
4011
3889
|
if (tenantId === null)
|
|
4012
3890
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4078,9 +3956,7 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4078
3956
|
*/
|
|
4079
3957
|
renderDesignPreview(attachment, tenantId, body, cancelToken) {
|
|
4080
3958
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/render-preview?";
|
|
4081
|
-
if (attachment
|
|
4082
|
-
throw new Error("The parameter 'attachment' cannot be null.");
|
|
4083
|
-
else if (attachment !== undefined)
|
|
3959
|
+
if (attachment !== undefined && attachment !== null)
|
|
4084
3960
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
4085
3961
|
if (tenantId === null)
|
|
4086
3962
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4220,9 +4096,7 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4220
4096
|
*/
|
|
4221
4097
|
renderDesignProof(attachment, tenantId, body, cancelToken) {
|
|
4222
4098
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/render-proof?";
|
|
4223
|
-
if (attachment
|
|
4224
|
-
throw new Error("The parameter 'attachment' cannot be null.");
|
|
4225
|
-
else if (attachment !== undefined)
|
|
4099
|
+
if (attachment !== undefined && attachment !== null)
|
|
4226
4100
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
4227
4101
|
if (tenantId === null)
|
|
4228
4102
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4363,17 +4237,11 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4363
4237
|
*/
|
|
4364
4238
|
createPrivateDesignFromDesign(designId, privateDesignId, privateStorageOwner, tenantId, cancelToken) {
|
|
4365
4239
|
let url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-design?";
|
|
4366
|
-
if (designId
|
|
4367
|
-
throw new Error("The parameter 'designId' cannot be null.");
|
|
4368
|
-
else if (designId !== undefined)
|
|
4240
|
+
if (designId !== undefined && designId !== null)
|
|
4369
4241
|
url_ += "designId=" + encodeURIComponent("" + designId) + "&";
|
|
4370
|
-
if (privateDesignId
|
|
4371
|
-
throw new Error("The parameter 'privateDesignId' cannot be null.");
|
|
4372
|
-
else if (privateDesignId !== undefined)
|
|
4242
|
+
if (privateDesignId !== undefined && privateDesignId !== null)
|
|
4373
4243
|
url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
|
|
4374
|
-
if (privateStorageOwner
|
|
4375
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4376
|
-
else if (privateStorageOwner !== undefined)
|
|
4244
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
4377
4245
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4378
4246
|
if (tenantId === null)
|
|
4379
4247
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4438,17 +4306,11 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4438
4306
|
*/
|
|
4439
4307
|
createPrivateDesignFromResource(resourceId, privateDesignId, privateStorageOwner, tenantId, cancelToken) {
|
|
4440
4308
|
let url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-resource?";
|
|
4441
|
-
if (resourceId
|
|
4442
|
-
throw new Error("The parameter 'resourceId' cannot be null.");
|
|
4443
|
-
else if (resourceId !== undefined)
|
|
4309
|
+
if (resourceId !== undefined && resourceId !== null)
|
|
4444
4310
|
url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
|
|
4445
|
-
if (privateDesignId
|
|
4446
|
-
throw new Error("The parameter 'privateDesignId' cannot be null.");
|
|
4447
|
-
else if (privateDesignId !== undefined)
|
|
4311
|
+
if (privateDesignId !== undefined && privateDesignId !== null)
|
|
4448
4312
|
url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
|
|
4449
|
-
if (privateStorageOwner
|
|
4450
|
-
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4451
|
-
else if (privateStorageOwner !== undefined)
|
|
4313
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
4452
4314
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4453
4315
|
if (tenantId === null)
|
|
4454
4316
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4793,9 +4655,7 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4793
4655
|
*/
|
|
4794
4656
|
getCssFont(fontKey, tenantId, cancelToken) {
|
|
4795
4657
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/GetCssFont?";
|
|
4796
|
-
if (fontKey
|
|
4797
|
-
throw new Error("The parameter 'fontKey' cannot be null.");
|
|
4798
|
-
else if (fontKey !== undefined)
|
|
4658
|
+
if (fontKey !== undefined && fontKey !== null)
|
|
4799
4659
|
url_ += "fontKey=" + encodeURIComponent("" + fontKey) + "&";
|
|
4800
4660
|
if (tenantId === null)
|
|
4801
4661
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5149,77 +5009,41 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5149
5009
|
*/
|
|
5150
5010
|
img(f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId, cancelToken) {
|
|
5151
5011
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/img?";
|
|
5152
|
-
if (f
|
|
5153
|
-
throw new Error("The parameter 'f' cannot be null.");
|
|
5154
|
-
else if (f !== undefined)
|
|
5012
|
+
if (f !== undefined && f !== null)
|
|
5155
5013
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
5156
|
-
if (w
|
|
5157
|
-
throw new Error("The parameter 'w' cannot be null.");
|
|
5158
|
-
else if (w !== undefined)
|
|
5014
|
+
if (w !== undefined && w !== null)
|
|
5159
5015
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
5160
|
-
if (h
|
|
5161
|
-
throw new Error("The parameter 'h' cannot be null.");
|
|
5162
|
-
else if (h !== undefined)
|
|
5016
|
+
if (h !== undefined && h !== null)
|
|
5163
5017
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
5164
|
-
if (cmyk
|
|
5165
|
-
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
5166
|
-
else if (cmyk !== undefined)
|
|
5018
|
+
if (cmyk !== undefined && cmyk !== null)
|
|
5167
5019
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
5168
|
-
if (rgb
|
|
5169
|
-
throw new Error("The parameter 'rgb' cannot be null.");
|
|
5170
|
-
else if (rgb !== undefined)
|
|
5020
|
+
if (rgb !== undefined && rgb !== null)
|
|
5171
5021
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
5172
|
-
if (grayscale
|
|
5173
|
-
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
5174
|
-
else if (grayscale !== undefined)
|
|
5022
|
+
if (grayscale !== undefined && grayscale !== null)
|
|
5175
5023
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
5176
|
-
if (target
|
|
5177
|
-
throw new Error("The parameter 'target' cannot be null.");
|
|
5178
|
-
else if (target !== undefined)
|
|
5024
|
+
if (target !== undefined && target !== null)
|
|
5179
5025
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
5180
|
-
if (sq
|
|
5181
|
-
throw new Error("The parameter 'sq' cannot be null.");
|
|
5182
|
-
else if (sq !== undefined)
|
|
5026
|
+
if (sq !== undefined && sq !== null)
|
|
5183
5027
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
5184
|
-
if (effect
|
|
5185
|
-
throw new Error("The parameter 'effect' cannot be null.");
|
|
5186
|
-
else if (effect !== undefined)
|
|
5028
|
+
if (effect !== undefined && effect !== null)
|
|
5187
5029
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
5188
|
-
if (kp
|
|
5189
|
-
throw new Error("The parameter 'kp' cannot be null.");
|
|
5190
|
-
else if (kp !== undefined)
|
|
5030
|
+
if (kp !== undefined && kp !== null)
|
|
5191
5031
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
5192
|
-
if (color
|
|
5193
|
-
throw new Error("The parameter 'color' cannot be null.");
|
|
5194
|
-
else if (color !== undefined)
|
|
5032
|
+
if (color !== undefined && color !== null)
|
|
5195
5033
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
5196
|
-
if (obm
|
|
5197
|
-
throw new Error("The parameter 'obm' cannot be null.");
|
|
5198
|
-
else if (obm !== undefined)
|
|
5034
|
+
if (obm !== undefined && obm !== null)
|
|
5199
5035
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
5200
|
-
if (oo
|
|
5201
|
-
throw new Error("The parameter 'oo' cannot be null.");
|
|
5202
|
-
else if (oo !== undefined)
|
|
5036
|
+
if (oo !== undefined && oo !== null)
|
|
5203
5037
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
5204
|
-
if (alphaMask
|
|
5205
|
-
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
5206
|
-
else if (alphaMask !== undefined)
|
|
5038
|
+
if (alphaMask !== undefined && alphaMask !== null)
|
|
5207
5039
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
5208
|
-
if (page
|
|
5209
|
-
throw new Error("The parameter 'page' cannot be null.");
|
|
5210
|
-
else if (page !== undefined)
|
|
5040
|
+
if (page !== undefined && page !== null)
|
|
5211
5041
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
5212
|
-
if (colorizeColor
|
|
5213
|
-
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
5214
|
-
else if (colorizeColor !== undefined)
|
|
5042
|
+
if (colorizeColor !== undefined && colorizeColor !== null)
|
|
5215
5043
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
5216
|
-
if (rw
|
|
5217
|
-
throw new Error("The parameter 'rw' cannot be null.");
|
|
5218
|
-
else if (rw !== undefined)
|
|
5044
|
+
if (rw !== undefined && rw !== null)
|
|
5219
5045
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
5220
|
-
if (rh
|
|
5221
|
-
throw new Error("The parameter 'rh' cannot be null.");
|
|
5222
|
-
else if (rh !== undefined)
|
|
5046
|
+
if (rh !== undefined && rh !== null)
|
|
5223
5047
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
5224
5048
|
if (tenantId === null)
|
|
5225
5049
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5359,9 +5183,7 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5359
5183
|
*/
|
|
5360
5184
|
pth(f, tenantId, cancelToken) {
|
|
5361
5185
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/pth?";
|
|
5362
|
-
if (f
|
|
5363
|
-
throw new Error("The parameter 'f' cannot be null.");
|
|
5364
|
-
else if (f !== undefined)
|
|
5186
|
+
if (f !== undefined && f !== null)
|
|
5365
5187
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
5366
5188
|
if (tenantId === null)
|
|
5367
5189
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5438,9 +5260,7 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5438
5260
|
*/
|
|
5439
5261
|
resource(image, tenantId, cancelToken) {
|
|
5440
5262
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/resource?";
|
|
5441
|
-
if (image
|
|
5442
|
-
throw new Error("The parameter 'image' cannot be null.");
|
|
5443
|
-
else if (image !== undefined)
|
|
5263
|
+
if (image !== undefined && image !== null)
|
|
5444
5264
|
url_ += "image=" + encodeURIComponent("" + image) + "&";
|
|
5445
5265
|
if (tenantId === null)
|
|
5446
5266
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5530,77 +5350,41 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5530
5350
|
*/
|
|
5531
5351
|
svg(f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId, cancelToken) {
|
|
5532
5352
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/svg?";
|
|
5533
|
-
if (f
|
|
5534
|
-
throw new Error("The parameter 'f' cannot be null.");
|
|
5535
|
-
else if (f !== undefined)
|
|
5353
|
+
if (f !== undefined && f !== null)
|
|
5536
5354
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
5537
|
-
if (w
|
|
5538
|
-
throw new Error("The parameter 'w' cannot be null.");
|
|
5539
|
-
else if (w !== undefined)
|
|
5355
|
+
if (w !== undefined && w !== null)
|
|
5540
5356
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
5541
|
-
if (h
|
|
5542
|
-
throw new Error("The parameter 'h' cannot be null.");
|
|
5543
|
-
else if (h !== undefined)
|
|
5357
|
+
if (h !== undefined && h !== null)
|
|
5544
5358
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
5545
|
-
if (cmyk
|
|
5546
|
-
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
5547
|
-
else if (cmyk !== undefined)
|
|
5359
|
+
if (cmyk !== undefined && cmyk !== null)
|
|
5548
5360
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
5549
|
-
if (rgb
|
|
5550
|
-
throw new Error("The parameter 'rgb' cannot be null.");
|
|
5551
|
-
else if (rgb !== undefined)
|
|
5361
|
+
if (rgb !== undefined && rgb !== null)
|
|
5552
5362
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
5553
|
-
if (grayscale
|
|
5554
|
-
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
5555
|
-
else if (grayscale !== undefined)
|
|
5363
|
+
if (grayscale !== undefined && grayscale !== null)
|
|
5556
5364
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
5557
|
-
if (target
|
|
5558
|
-
throw new Error("The parameter 'target' cannot be null.");
|
|
5559
|
-
else if (target !== undefined)
|
|
5365
|
+
if (target !== undefined && target !== null)
|
|
5560
5366
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
5561
|
-
if (sq
|
|
5562
|
-
throw new Error("The parameter 'sq' cannot be null.");
|
|
5563
|
-
else if (sq !== undefined)
|
|
5367
|
+
if (sq !== undefined && sq !== null)
|
|
5564
5368
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
5565
|
-
if (effect
|
|
5566
|
-
throw new Error("The parameter 'effect' cannot be null.");
|
|
5567
|
-
else if (effect !== undefined)
|
|
5369
|
+
if (effect !== undefined && effect !== null)
|
|
5568
5370
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
5569
|
-
if (kp
|
|
5570
|
-
throw new Error("The parameter 'kp' cannot be null.");
|
|
5571
|
-
else if (kp !== undefined)
|
|
5371
|
+
if (kp !== undefined && kp !== null)
|
|
5572
5372
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
5573
|
-
if (color
|
|
5574
|
-
throw new Error("The parameter 'color' cannot be null.");
|
|
5575
|
-
else if (color !== undefined)
|
|
5373
|
+
if (color !== undefined && color !== null)
|
|
5576
5374
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
5577
|
-
if (obm
|
|
5578
|
-
throw new Error("The parameter 'obm' cannot be null.");
|
|
5579
|
-
else if (obm !== undefined)
|
|
5375
|
+
if (obm !== undefined && obm !== null)
|
|
5580
5376
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
5581
|
-
if (oo
|
|
5582
|
-
throw new Error("The parameter 'oo' cannot be null.");
|
|
5583
|
-
else if (oo !== undefined)
|
|
5377
|
+
if (oo !== undefined && oo !== null)
|
|
5584
5378
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
5585
|
-
if (alphaMask
|
|
5586
|
-
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
5587
|
-
else if (alphaMask !== undefined)
|
|
5379
|
+
if (alphaMask !== undefined && alphaMask !== null)
|
|
5588
5380
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
5589
|
-
if (page
|
|
5590
|
-
throw new Error("The parameter 'page' cannot be null.");
|
|
5591
|
-
else if (page !== undefined)
|
|
5381
|
+
if (page !== undefined && page !== null)
|
|
5592
5382
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
5593
|
-
if (colorizeColor
|
|
5594
|
-
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
5595
|
-
else if (colorizeColor !== undefined)
|
|
5383
|
+
if (colorizeColor !== undefined && colorizeColor !== null)
|
|
5596
5384
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
5597
|
-
if (rw
|
|
5598
|
-
throw new Error("The parameter 'rw' cannot be null.");
|
|
5599
|
-
else if (rw !== undefined)
|
|
5385
|
+
if (rw !== undefined && rw !== null)
|
|
5600
5386
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
5601
|
-
if (rh
|
|
5602
|
-
throw new Error("The parameter 'rh' cannot be null.");
|
|
5603
|
-
else if (rh !== undefined)
|
|
5387
|
+
if (rh !== undefined && rh !== null)
|
|
5604
5388
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
5605
5389
|
if (tenantId === null)
|
|
5606
5390
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5677,9 +5461,7 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5677
5461
|
*/
|
|
5678
5462
|
txt(f, tenantId, cancelToken) {
|
|
5679
5463
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/txt?";
|
|
5680
|
-
if (f
|
|
5681
|
-
throw new Error("The parameter 'f' cannot be null.");
|
|
5682
|
-
else if (f !== undefined)
|
|
5464
|
+
if (f !== undefined && f !== null)
|
|
5683
5465
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
5684
5466
|
if (tenantId === null)
|
|
5685
5467
|
throw new Error("The parameter 'tenantId' cannot be null.");
|