@aurigma/axios-design-atoms-api-client 2.61.1 → 2.62.5

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.
@@ -97,13 +97,6 @@ export class BuildInfoApiClient extends ApiClientBase {
97
97
  const _responseText = response.data;
98
98
  return Promise.resolve(null);
99
99
  }
100
- else if (status === 500) {
101
- const _responseText = response.data;
102
- let result500 = null;
103
- let resultData500 = _responseText;
104
- result500 = JSON.parse(resultData500);
105
- return throwException("Internal server error", status, _responseText, _headers, result500);
106
- }
107
100
  else if (status !== 200 && status !== 204) {
108
101
  const _responseText = response.data;
109
102
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -155,13 +148,6 @@ export class BuildInfoApiClient extends ApiClientBase {
155
148
  result200 = JSON.parse(resultData200);
156
149
  return Promise.resolve(result200);
157
150
  }
158
- else if (status === 500) {
159
- const _responseText = response.data;
160
- let result500 = null;
161
- let resultData500 = _responseText;
162
- result500 = JSON.parse(resultData500);
163
- return throwException("Internal server error", status, _responseText, _headers, result500);
164
- }
165
151
  else if (status !== 200 && status !== 204) {
166
152
  const _responseText = response.data;
167
153
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -195,7 +181,7 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
195
181
  url: url_,
196
182
  headers: {
197
183
  "Content-Type": "application/json",
198
- "Accept": "application/json"
184
+ "Accept": "text/css"
199
185
  },
200
186
  cancelToken
201
187
  };
@@ -229,12 +215,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
229
215
  result200 = JSON.parse(resultData200);
230
216
  return Promise.resolve(result200);
231
217
  }
232
- else if (status === 500) {
218
+ else if (status === 401) {
219
+ const _responseText = response.data;
220
+ return throwException("Unauthorized", status, _responseText, _headers);
221
+ }
222
+ else if (status === 403) {
233
223
  const _responseText = response.data;
234
- let result500 = null;
235
- let resultData500 = _responseText;
236
- result500 = JSON.parse(resultData500);
237
- return throwException("Internal server error", status, _responseText, _headers, result500);
224
+ return throwException("Forbidden", status, _responseText, _headers);
238
225
  }
239
226
  else if (status !== 200 && status !== 204) {
240
227
  const _responseText = response.data;
@@ -299,12 +286,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
299
286
  result404 = JSON.parse(resultData404);
300
287
  return throwException("Not Found", status, _responseText, _headers, result404);
301
288
  }
302
- else if (status === 500) {
289
+ else if (status === 401) {
290
+ const _responseText = response.data;
291
+ return throwException("Unauthorized", status, _responseText, _headers);
292
+ }
293
+ else if (status === 403) {
303
294
  const _responseText = response.data;
304
- let result500 = null;
305
- let resultData500 = _responseText;
306
- result500 = JSON.parse(resultData500);
307
- return throwException("Internal server error", status, _responseText, _headers, result500);
295
+ return throwException("Forbidden", status, _responseText, _headers);
308
296
  }
309
297
  else if (status !== 200 && status !== 204) {
310
298
  const _responseText = response.data;
@@ -363,12 +351,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
363
351
  result200 = JSON.parse(resultData200);
364
352
  return Promise.resolve(result200);
365
353
  }
366
- else if (status === 500) {
354
+ else if (status === 401) {
355
+ const _responseText = response.data;
356
+ return throwException("Unauthorized", status, _responseText, _headers);
357
+ }
358
+ else if (status === 403) {
367
359
  const _responseText = response.data;
368
- let result500 = null;
369
- let resultData500 = _responseText;
370
- result500 = JSON.parse(resultData500);
371
- return throwException("Internal server error", status, _responseText, _headers, result500);
360
+ return throwException("Forbidden", status, _responseText, _headers);
372
361
  }
373
362
  else if (status !== 200 && status !== 204) {
374
363
  const _responseText = response.data;
@@ -427,12 +416,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
427
416
  result200 = JSON.parse(resultData200);
428
417
  return Promise.resolve(result200);
429
418
  }
430
- else if (status === 500) {
419
+ else if (status === 401) {
420
+ const _responseText = response.data;
421
+ return throwException("Unauthorized", status, _responseText, _headers);
422
+ }
423
+ else if (status === 403) {
431
424
  const _responseText = response.data;
432
- let result500 = null;
433
- let resultData500 = _responseText;
434
- result500 = JSON.parse(resultData500);
435
- return throwException("Internal server error", status, _responseText, _headers, result500);
425
+ return throwException("Forbidden", status, _responseText, _headers);
436
426
  }
437
427
  else if (status !== 200 && status !== 204) {
438
428
  const _responseText = response.data;
@@ -449,7 +439,9 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
449
439
  if (tenantId === undefined || tenantId === null)
450
440
  throw new Error("The parameter 'tenantId' must be defined.");
451
441
  url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
452
- if (fontKey !== undefined && fontKey !== null)
442
+ if (fontKey === null)
443
+ throw new Error("The parameter 'fontKey' cannot be null.");
444
+ else if (fontKey !== undefined)
453
445
  url_ += "fontKey=" + encodeURIComponent("" + fontKey) + "&";
454
446
  url_ = url_.replace(/[?&]$/, "");
455
447
  let options_ = {
@@ -497,12 +489,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
497
489
  result404 = JSON.parse(resultData404);
498
490
  return throwException("Not Found", status, _responseText, _headers, result404);
499
491
  }
500
- else if (status === 500) {
492
+ else if (status === 401) {
493
+ const _responseText = response.data;
494
+ return throwException("Unauthorized", status, _responseText, _headers);
495
+ }
496
+ else if (status === 403) {
501
497
  const _responseText = response.data;
502
- let result500 = null;
503
- let resultData500 = _responseText;
504
- result500 = JSON.parse(resultData500);
505
- return throwException("Internal server error", status, _responseText, _headers, result500);
498
+ return throwException("Forbidden", status, _responseText, _headers);
506
499
  }
507
500
  else if (status !== 200 && status !== 204) {
508
501
  const _responseText = response.data;
@@ -520,7 +513,6 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
520
513
  url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
521
514
  url_ = url_.replace(/[?&]$/, "");
522
515
  let options_ = {
523
- responseType: "blob",
524
516
  method: "GET",
525
517
  url: url_,
526
518
  headers: {
@@ -551,18 +543,20 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
551
543
  }
552
544
  }
553
545
  }
554
- if (status === 200 || status === 206) {
555
- const contentDisposition = response.headers ? response.headers["content-disposition"] : undefined;
556
- const fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
557
- const fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
558
- return Promise.resolve({ fileName: fileName, status: status, data: new Blob([response.data]), headers: _headers });
546
+ if (status === 200) {
547
+ const _responseText = response.data;
548
+ let result200 = null;
549
+ let resultData200 = _responseText;
550
+ result200 = JSON.parse(resultData200);
551
+ return Promise.resolve(result200);
552
+ }
553
+ else if (status === 401) {
554
+ const _responseText = response.data;
555
+ return throwException("Unauthorized", status, _responseText, _headers);
559
556
  }
560
- else if (status === 500) {
557
+ else if (status === 403) {
561
558
  const _responseText = response.data;
562
- let result500 = null;
563
- let resultData500 = _responseText;
564
- result500 = JSON.parse(resultData500);
565
- return throwException("Internal server error", status, _responseText, _headers, result500);
559
+ return throwException("Forbidden", status, _responseText, _headers);
566
560
  }
567
561
  else if (status !== 200 && status !== 204) {
568
562
  const _responseText = response.data;
@@ -621,12 +615,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
621
615
  result200 = JSON.parse(resultData200);
622
616
  return Promise.resolve(result200);
623
617
  }
624
- else if (status === 500) {
618
+ else if (status === 401) {
619
+ const _responseText = response.data;
620
+ return throwException("Unauthorized", status, _responseText, _headers);
621
+ }
622
+ else if (status === 403) {
625
623
  const _responseText = response.data;
626
- let result500 = null;
627
- let resultData500 = _responseText;
628
- result500 = JSON.parse(resultData500);
629
- return throwException("Internal server error", status, _responseText, _headers, result500);
624
+ return throwException("Forbidden", status, _responseText, _headers);
630
625
  }
631
626
  else if (status !== 200 && status !== 204) {
632
627
  const _responseText = response.data;
@@ -685,12 +680,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
685
680
  result200 = JSON.parse(resultData200);
686
681
  return Promise.resolve(result200);
687
682
  }
688
- else if (status === 500) {
683
+ else if (status === 401) {
689
684
  const _responseText = response.data;
690
- let result500 = null;
691
- let resultData500 = _responseText;
692
- result500 = JSON.parse(resultData500);
693
- return throwException("Internal server error", status, _responseText, _headers, result500);
685
+ return throwException("Unauthorized", status, _responseText, _headers);
686
+ }
687
+ else if (status === 403) {
688
+ const _responseText = response.data;
689
+ return throwException("Forbidden", status, _responseText, _headers);
694
690
  }
695
691
  else if (status !== 200 && status !== 204) {
696
692
  const _responseText = response.data;
@@ -749,12 +745,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
749
745
  result200 = JSON.parse(resultData200);
750
746
  return Promise.resolve(result200);
751
747
  }
752
- else if (status === 500) {
748
+ else if (status === 401) {
749
+ const _responseText = response.data;
750
+ return throwException("Unauthorized", status, _responseText, _headers);
751
+ }
752
+ else if (status === 403) {
753
753
  const _responseText = response.data;
754
- let result500 = null;
755
- let resultData500 = _responseText;
756
- result500 = JSON.parse(resultData500);
757
- return throwException("Internal server error", status, _responseText, _headers, result500);
754
+ return throwException("Forbidden", status, _responseText, _headers);
758
755
  }
759
756
  else if (status !== 200 && status !== 204) {
760
757
  const _responseText = response.data;
@@ -788,41 +785,77 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
788
785
  if (tenantId === undefined || tenantId === null)
789
786
  throw new Error("The parameter 'tenantId' must be defined.");
790
787
  url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
791
- if (f !== undefined && f !== null)
788
+ if (f === null)
789
+ throw new Error("The parameter 'f' cannot be null.");
790
+ else if (f !== undefined)
792
791
  url_ += "f=" + encodeURIComponent("" + f) + "&";
793
- if (w !== undefined && w !== null)
792
+ if (w === null)
793
+ throw new Error("The parameter 'w' cannot be null.");
794
+ else if (w !== undefined)
794
795
  url_ += "w=" + encodeURIComponent("" + w) + "&";
795
- if (h !== undefined && h !== null)
796
+ if (h === null)
797
+ throw new Error("The parameter 'h' cannot be null.");
798
+ else if (h !== undefined)
796
799
  url_ += "h=" + encodeURIComponent("" + h) + "&";
797
- if (cmyk !== undefined && cmyk !== null)
800
+ if (cmyk === null)
801
+ throw new Error("The parameter 'cmyk' cannot be null.");
802
+ else if (cmyk !== undefined)
798
803
  url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
799
- if (rgb !== undefined && rgb !== null)
804
+ if (rgb === null)
805
+ throw new Error("The parameter 'rgb' cannot be null.");
806
+ else if (rgb !== undefined)
800
807
  url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
801
- if (grayscale !== undefined && grayscale !== null)
808
+ if (grayscale === null)
809
+ throw new Error("The parameter 'grayscale' cannot be null.");
810
+ else if (grayscale !== undefined)
802
811
  url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
803
- if (target !== undefined && target !== null)
812
+ if (target === null)
813
+ throw new Error("The parameter 'target' cannot be null.");
814
+ else if (target !== undefined)
804
815
  url_ += "target=" + encodeURIComponent("" + target) + "&";
805
- if (sq !== undefined && sq !== null)
816
+ if (sq === null)
817
+ throw new Error("The parameter 'sq' cannot be null.");
818
+ else if (sq !== undefined)
806
819
  url_ += "sq=" + encodeURIComponent("" + sq) + "&";
807
- if (effect !== undefined && effect !== null)
820
+ if (effect === null)
821
+ throw new Error("The parameter 'effect' cannot be null.");
822
+ else if (effect !== undefined)
808
823
  url_ += "effect=" + encodeURIComponent("" + effect) + "&";
809
- if (kp !== undefined && kp !== null)
824
+ if (kp === null)
825
+ throw new Error("The parameter 'kp' cannot be null.");
826
+ else if (kp !== undefined)
810
827
  url_ += "kp=" + encodeURIComponent("" + kp) + "&";
811
- if (color !== undefined && color !== null)
828
+ if (color === null)
829
+ throw new Error("The parameter 'color' cannot be null.");
830
+ else if (color !== undefined)
812
831
  url_ += "color=" + encodeURIComponent("" + color) + "&";
813
- if (obm !== undefined && obm !== null)
832
+ if (obm === null)
833
+ throw new Error("The parameter 'obm' cannot be null.");
834
+ else if (obm !== undefined)
814
835
  url_ += "obm=" + encodeURIComponent("" + obm) + "&";
815
- if (oo !== undefined && oo !== null)
836
+ if (oo === null)
837
+ throw new Error("The parameter 'oo' cannot be null.");
838
+ else if (oo !== undefined)
816
839
  url_ += "oo=" + encodeURIComponent("" + oo) + "&";
817
- if (alphaMask !== undefined && alphaMask !== null)
840
+ if (alphaMask === null)
841
+ throw new Error("The parameter 'alphaMask' cannot be null.");
842
+ else if (alphaMask !== undefined)
818
843
  url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
819
- if (page !== undefined && page !== null)
844
+ if (page === null)
845
+ throw new Error("The parameter 'page' cannot be null.");
846
+ else if (page !== undefined)
820
847
  url_ += "page=" + encodeURIComponent("" + page) + "&";
821
- if (colorizeColor !== undefined && colorizeColor !== null)
848
+ if (colorizeColor === null)
849
+ throw new Error("The parameter 'colorizeColor' cannot be null.");
850
+ else if (colorizeColor !== undefined)
822
851
  url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
823
- if (rw !== undefined && rw !== null)
852
+ if (rw === null)
853
+ throw new Error("The parameter 'rw' cannot be null.");
854
+ else if (rw !== undefined)
824
855
  url_ += "rw=" + encodeURIComponent("" + rw) + "&";
825
- if (rh !== undefined && rh !== null)
856
+ if (rh === null)
857
+ throw new Error("The parameter 'rh' cannot be null.");
858
+ else if (rh !== undefined)
826
859
  url_ += "rh=" + encodeURIComponent("" + rh) + "&";
827
860
  url_ = url_.replace(/[?&]$/, "");
828
861
  let options_ = {
@@ -874,12 +907,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
874
907
  result404 = JSON.parse(resultData404);
875
908
  return throwException("Not Found", status, _responseText, _headers, result404);
876
909
  }
877
- else if (status === 500) {
910
+ else if (status === 401) {
911
+ const _responseText = response.data;
912
+ return throwException("Unauthorized", status, _responseText, _headers);
913
+ }
914
+ else if (status === 403) {
878
915
  const _responseText = response.data;
879
- let result500 = null;
880
- let resultData500 = _responseText;
881
- result500 = JSON.parse(resultData500);
882
- return throwException("Internal server error", status, _responseText, _headers, result500);
916
+ return throwException("Forbidden", status, _responseText, _headers);
883
917
  }
884
918
  else if (status !== 200 && status !== 204) {
885
919
  const _responseText = response.data;
@@ -934,12 +968,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
934
968
  result200 = JSON.parse(resultData200);
935
969
  return Promise.resolve(result200);
936
970
  }
937
- else if (status === 500) {
971
+ else if (status === 401) {
972
+ const _responseText = response.data;
973
+ return throwException("Unauthorized", status, _responseText, _headers);
974
+ }
975
+ else if (status === 403) {
938
976
  const _responseText = response.data;
939
- let result500 = null;
940
- let resultData500 = _responseText;
941
- result500 = JSON.parse(resultData500);
942
- return throwException("Internal server error", status, _responseText, _headers, result500);
977
+ return throwException("Forbidden", status, _responseText, _headers);
943
978
  }
944
979
  else if (status !== 200 && status !== 204) {
945
980
  const _responseText = response.data;
@@ -956,7 +991,9 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
956
991
  if (tenantId === undefined || tenantId === null)
957
992
  throw new Error("The parameter 'tenantId' must be defined.");
958
993
  url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
959
- if (f !== undefined && f !== null)
994
+ if (f === null)
995
+ throw new Error("The parameter 'f' cannot be null.");
996
+ else if (f !== undefined)
960
997
  url_ += "f=" + encodeURIComponent("" + f) + "&";
961
998
  url_ = url_.replace(/[?&]$/, "");
962
999
  let options_ = {
@@ -1008,12 +1045,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1008
1045
  result404 = JSON.parse(resultData404);
1009
1046
  return throwException("Not Found", status, _responseText, _headers, result404);
1010
1047
  }
1011
- else if (status === 500) {
1048
+ else if (status === 401) {
1049
+ const _responseText = response.data;
1050
+ return throwException("Unauthorized", status, _responseText, _headers);
1051
+ }
1052
+ else if (status === 403) {
1012
1053
  const _responseText = response.data;
1013
- let result500 = null;
1014
- let resultData500 = _responseText;
1015
- result500 = JSON.parse(resultData500);
1016
- return throwException("Internal server error", status, _responseText, _headers, result500);
1054
+ return throwException("Forbidden", status, _responseText, _headers);
1017
1055
  }
1018
1056
  else if (status !== 200 && status !== 204) {
1019
1057
  const _responseText = response.data;
@@ -1030,7 +1068,9 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1030
1068
  if (tenantId === undefined || tenantId === null)
1031
1069
  throw new Error("The parameter 'tenantId' must be defined.");
1032
1070
  url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
1033
- if (image !== undefined && image !== null)
1071
+ if (image === null)
1072
+ throw new Error("The parameter 'image' cannot be null.");
1073
+ else if (image !== undefined)
1034
1074
  url_ += "image=" + encodeURIComponent("" + image) + "&";
1035
1075
  url_ = url_.replace(/[?&]$/, "");
1036
1076
  let options_ = {
@@ -1078,12 +1118,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1078
1118
  result404 = JSON.parse(resultData404);
1079
1119
  return throwException("Not Found", status, _responseText, _headers, result404);
1080
1120
  }
1081
- else if (status === 500) {
1121
+ else if (status === 401) {
1122
+ const _responseText = response.data;
1123
+ return throwException("Unauthorized", status, _responseText, _headers);
1124
+ }
1125
+ else if (status === 403) {
1082
1126
  const _responseText = response.data;
1083
- let result500 = null;
1084
- let resultData500 = _responseText;
1085
- result500 = JSON.parse(resultData500);
1086
- return throwException("Internal server error", status, _responseText, _headers, result500);
1127
+ return throwException("Forbidden", status, _responseText, _headers);
1087
1128
  }
1088
1129
  else if (status !== 200 && status !== 204) {
1089
1130
  const _responseText = response.data;
@@ -1117,41 +1158,77 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1117
1158
  if (tenantId === undefined || tenantId === null)
1118
1159
  throw new Error("The parameter 'tenantId' must be defined.");
1119
1160
  url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
1120
- if (f !== undefined && f !== null)
1161
+ if (f === null)
1162
+ throw new Error("The parameter 'f' cannot be null.");
1163
+ else if (f !== undefined)
1121
1164
  url_ += "f=" + encodeURIComponent("" + f) + "&";
1122
- if (w !== undefined && w !== null)
1165
+ if (w === null)
1166
+ throw new Error("The parameter 'w' cannot be null.");
1167
+ else if (w !== undefined)
1123
1168
  url_ += "w=" + encodeURIComponent("" + w) + "&";
1124
- if (h !== undefined && h !== null)
1169
+ if (h === null)
1170
+ throw new Error("The parameter 'h' cannot be null.");
1171
+ else if (h !== undefined)
1125
1172
  url_ += "h=" + encodeURIComponent("" + h) + "&";
1126
- if (cmyk !== undefined && cmyk !== null)
1173
+ if (cmyk === null)
1174
+ throw new Error("The parameter 'cmyk' cannot be null.");
1175
+ else if (cmyk !== undefined)
1127
1176
  url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
1128
- if (rgb !== undefined && rgb !== null)
1177
+ if (rgb === null)
1178
+ throw new Error("The parameter 'rgb' cannot be null.");
1179
+ else if (rgb !== undefined)
1129
1180
  url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
1130
- if (grayscale !== undefined && grayscale !== null)
1181
+ if (grayscale === null)
1182
+ throw new Error("The parameter 'grayscale' cannot be null.");
1183
+ else if (grayscale !== undefined)
1131
1184
  url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
1132
- if (target !== undefined && target !== null)
1185
+ if (target === null)
1186
+ throw new Error("The parameter 'target' cannot be null.");
1187
+ else if (target !== undefined)
1133
1188
  url_ += "target=" + encodeURIComponent("" + target) + "&";
1134
- if (sq !== undefined && sq !== null)
1189
+ if (sq === null)
1190
+ throw new Error("The parameter 'sq' cannot be null.");
1191
+ else if (sq !== undefined)
1135
1192
  url_ += "sq=" + encodeURIComponent("" + sq) + "&";
1136
- if (effect !== undefined && effect !== null)
1193
+ if (effect === null)
1194
+ throw new Error("The parameter 'effect' cannot be null.");
1195
+ else if (effect !== undefined)
1137
1196
  url_ += "effect=" + encodeURIComponent("" + effect) + "&";
1138
- if (kp !== undefined && kp !== null)
1197
+ if (kp === null)
1198
+ throw new Error("The parameter 'kp' cannot be null.");
1199
+ else if (kp !== undefined)
1139
1200
  url_ += "kp=" + encodeURIComponent("" + kp) + "&";
1140
- if (color !== undefined && color !== null)
1201
+ if (color === null)
1202
+ throw new Error("The parameter 'color' cannot be null.");
1203
+ else if (color !== undefined)
1141
1204
  url_ += "color=" + encodeURIComponent("" + color) + "&";
1142
- if (obm !== undefined && obm !== null)
1205
+ if (obm === null)
1206
+ throw new Error("The parameter 'obm' cannot be null.");
1207
+ else if (obm !== undefined)
1143
1208
  url_ += "obm=" + encodeURIComponent("" + obm) + "&";
1144
- if (oo !== undefined && oo !== null)
1209
+ if (oo === null)
1210
+ throw new Error("The parameter 'oo' cannot be null.");
1211
+ else if (oo !== undefined)
1145
1212
  url_ += "oo=" + encodeURIComponent("" + oo) + "&";
1146
- if (alphaMask !== undefined && alphaMask !== null)
1213
+ if (alphaMask === null)
1214
+ throw new Error("The parameter 'alphaMask' cannot be null.");
1215
+ else if (alphaMask !== undefined)
1147
1216
  url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
1148
- if (page !== undefined && page !== null)
1217
+ if (page === null)
1218
+ throw new Error("The parameter 'page' cannot be null.");
1219
+ else if (page !== undefined)
1149
1220
  url_ += "page=" + encodeURIComponent("" + page) + "&";
1150
- if (colorizeColor !== undefined && colorizeColor !== null)
1221
+ if (colorizeColor === null)
1222
+ throw new Error("The parameter 'colorizeColor' cannot be null.");
1223
+ else if (colorizeColor !== undefined)
1151
1224
  url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
1152
- if (rw !== undefined && rw !== null)
1225
+ if (rw === null)
1226
+ throw new Error("The parameter 'rw' cannot be null.");
1227
+ else if (rw !== undefined)
1153
1228
  url_ += "rw=" + encodeURIComponent("" + rw) + "&";
1154
- if (rh !== undefined && rh !== null)
1229
+ if (rh === null)
1230
+ throw new Error("The parameter 'rh' cannot be null.");
1231
+ else if (rh !== undefined)
1155
1232
  url_ += "rh=" + encodeURIComponent("" + rh) + "&";
1156
1233
  url_ = url_.replace(/[?&]$/, "");
1157
1234
  let options_ = {
@@ -1203,12 +1280,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1203
1280
  result404 = JSON.parse(resultData404);
1204
1281
  return throwException("Not Found", status, _responseText, _headers, result404);
1205
1282
  }
1206
- else if (status === 500) {
1283
+ else if (status === 401) {
1207
1284
  const _responseText = response.data;
1208
- let result500 = null;
1209
- let resultData500 = _responseText;
1210
- result500 = JSON.parse(resultData500);
1211
- return throwException("Internal server error", status, _responseText, _headers, result500);
1285
+ return throwException("Unauthorized", status, _responseText, _headers);
1286
+ }
1287
+ else if (status === 403) {
1288
+ const _responseText = response.data;
1289
+ return throwException("Forbidden", status, _responseText, _headers);
1212
1290
  }
1213
1291
  else if (status !== 200 && status !== 204) {
1214
1292
  const _responseText = response.data;
@@ -1225,7 +1303,9 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1225
1303
  if (tenantId === undefined || tenantId === null)
1226
1304
  throw new Error("The parameter 'tenantId' must be defined.");
1227
1305
  url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
1228
- if (f !== undefined && f !== null)
1306
+ if (f === null)
1307
+ throw new Error("The parameter 'f' cannot be null.");
1308
+ else if (f !== undefined)
1229
1309
  url_ += "f=" + encodeURIComponent("" + f) + "&";
1230
1310
  url_ = url_.replace(/[?&]$/, "");
1231
1311
  let options_ = {
@@ -1277,12 +1357,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1277
1357
  result404 = JSON.parse(resultData404);
1278
1358
  return throwException("Not Found", status, _responseText, _headers, result404);
1279
1359
  }
1280
- else if (status === 500) {
1360
+ else if (status === 401) {
1361
+ const _responseText = response.data;
1362
+ return throwException("Unauthorized", status, _responseText, _headers);
1363
+ }
1364
+ else if (status === 403) {
1281
1365
  const _responseText = response.data;
1282
- let result500 = null;
1283
- let resultData500 = _responseText;
1284
- result500 = JSON.parse(resultData500);
1285
- return throwException("Internal server error", status, _responseText, _headers, result500);
1366
+ return throwException("Forbidden", status, _responseText, _headers);
1286
1367
  }
1287
1368
  else if (status !== 200 && status !== 204) {
1288
1369
  const _responseText = response.data;
@@ -1341,12 +1422,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1341
1422
  result200 = JSON.parse(resultData200);
1342
1423
  return Promise.resolve(result200);
1343
1424
  }
1344
- else if (status === 500) {
1425
+ else if (status === 401) {
1345
1426
  const _responseText = response.data;
1346
- let result500 = null;
1347
- let resultData500 = _responseText;
1348
- result500 = JSON.parse(resultData500);
1349
- return throwException("Internal server error", status, _responseText, _headers, result500);
1427
+ return throwException("Unauthorized", status, _responseText, _headers);
1428
+ }
1429
+ else if (status === 403) {
1430
+ const _responseText = response.data;
1431
+ return throwException("Forbidden", status, _responseText, _headers);
1350
1432
  }
1351
1433
  else if (status !== 200 && status !== 204) {
1352
1434
  const _responseText = response.data;
@@ -1405,12 +1487,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1405
1487
  result200 = JSON.parse(resultData200);
1406
1488
  return Promise.resolve(result200);
1407
1489
  }
1408
- else if (status === 500) {
1490
+ else if (status === 401) {
1491
+ const _responseText = response.data;
1492
+ return throwException("Unauthorized", status, _responseText, _headers);
1493
+ }
1494
+ else if (status === 403) {
1409
1495
  const _responseText = response.data;
1410
- let result500 = null;
1411
- let resultData500 = _responseText;
1412
- result500 = JSON.parse(resultData500);
1413
- return throwException("Internal server error", status, _responseText, _headers, result500);
1496
+ return throwException("Forbidden", status, _responseText, _headers);
1414
1497
  }
1415
1498
  else if (status !== 200 && status !== 204) {
1416
1499
  const _responseText = response.data;
@@ -1469,12 +1552,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1469
1552
  result200 = JSON.parse(resultData200);
1470
1553
  return Promise.resolve(result200);
1471
1554
  }
1472
- else if (status === 500) {
1555
+ else if (status === 401) {
1473
1556
  const _responseText = response.data;
1474
- let result500 = null;
1475
- let resultData500 = _responseText;
1476
- result500 = JSON.parse(resultData500);
1477
- return throwException("Internal server error", status, _responseText, _headers, result500);
1557
+ return throwException("Unauthorized", status, _responseText, _headers);
1558
+ }
1559
+ else if (status === 403) {
1560
+ const _responseText = response.data;
1561
+ return throwException("Forbidden", status, _responseText, _headers);
1478
1562
  }
1479
1563
  else if (status !== 200 && status !== 204) {
1480
1564
  const _responseText = response.data;
@@ -1533,12 +1617,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1533
1617
  result200 = JSON.parse(resultData200);
1534
1618
  return Promise.resolve(result200);
1535
1619
  }
1536
- else if (status === 500) {
1620
+ else if (status === 401) {
1621
+ const _responseText = response.data;
1622
+ return throwException("Unauthorized", status, _responseText, _headers);
1623
+ }
1624
+ else if (status === 403) {
1537
1625
  const _responseText = response.data;
1538
- let result500 = null;
1539
- let resultData500 = _responseText;
1540
- result500 = JSON.parse(resultData500);
1541
- return throwException("Internal server error", status, _responseText, _headers, result500);
1626
+ return throwException("Forbidden", status, _responseText, _headers);
1542
1627
  }
1543
1628
  else if (status !== 200 && status !== 204) {
1544
1629
  const _responseText = response.data;
@@ -1597,12 +1682,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1597
1682
  result200 = JSON.parse(resultData200);
1598
1683
  return Promise.resolve(result200);
1599
1684
  }
1600
- else if (status === 500) {
1685
+ else if (status === 401) {
1686
+ const _responseText = response.data;
1687
+ return throwException("Unauthorized", status, _responseText, _headers);
1688
+ }
1689
+ else if (status === 403) {
1601
1690
  const _responseText = response.data;
1602
- let result500 = null;
1603
- let resultData500 = _responseText;
1604
- result500 = JSON.parse(resultData500);
1605
- return throwException("Internal server error", status, _responseText, _headers, result500);
1691
+ return throwException("Forbidden", status, _responseText, _headers);
1606
1692
  }
1607
1693
  else if (status !== 200 && status !== 204) {
1608
1694
  const _responseText = response.data;
@@ -1661,12 +1747,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1661
1747
  result200 = JSON.parse(resultData200);
1662
1748
  return Promise.resolve(result200);
1663
1749
  }
1664
- else if (status === 500) {
1750
+ else if (status === 401) {
1751
+ const _responseText = response.data;
1752
+ return throwException("Unauthorized", status, _responseText, _headers);
1753
+ }
1754
+ else if (status === 403) {
1665
1755
  const _responseText = response.data;
1666
- let result500 = null;
1667
- let resultData500 = _responseText;
1668
- result500 = JSON.parse(resultData500);
1669
- return throwException("Internal server error", status, _responseText, _headers, result500);
1756
+ return throwException("Forbidden", status, _responseText, _headers);
1670
1757
  }
1671
1758
  else if (status !== 200 && status !== 204) {
1672
1759
  const _responseText = response.data;
@@ -1725,12 +1812,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1725
1812
  result200 = JSON.parse(resultData200);
1726
1813
  return Promise.resolve(result200);
1727
1814
  }
1728
- else if (status === 500) {
1815
+ else if (status === 401) {
1816
+ const _responseText = response.data;
1817
+ return throwException("Unauthorized", status, _responseText, _headers);
1818
+ }
1819
+ else if (status === 403) {
1729
1820
  const _responseText = response.data;
1730
- let result500 = null;
1731
- let resultData500 = _responseText;
1732
- result500 = JSON.parse(resultData500);
1733
- return throwException("Internal server error", status, _responseText, _headers, result500);
1821
+ return throwException("Forbidden", status, _responseText, _headers);
1734
1822
  }
1735
1823
  else if (status !== 200 && status !== 204) {
1736
1824
  const _responseText = response.data;
@@ -1789,12 +1877,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1789
1877
  result200 = JSON.parse(resultData200);
1790
1878
  return Promise.resolve(result200);
1791
1879
  }
1792
- else if (status === 500) {
1880
+ else if (status === 401) {
1881
+ const _responseText = response.data;
1882
+ return throwException("Unauthorized", status, _responseText, _headers);
1883
+ }
1884
+ else if (status === 403) {
1793
1885
  const _responseText = response.data;
1794
- let result500 = null;
1795
- let resultData500 = _responseText;
1796
- result500 = JSON.parse(resultData500);
1797
- return throwException("Internal server error", status, _responseText, _headers, result500);
1886
+ return throwException("Forbidden", status, _responseText, _headers);
1798
1887
  }
1799
1888
  else if (status !== 200 && status !== 204) {
1800
1889
  const _responseText = response.data;
@@ -1853,12 +1942,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1853
1942
  result200 = JSON.parse(resultData200);
1854
1943
  return Promise.resolve(result200);
1855
1944
  }
1856
- else if (status === 500) {
1945
+ else if (status === 401) {
1946
+ const _responseText = response.data;
1947
+ return throwException("Unauthorized", status, _responseText, _headers);
1948
+ }
1949
+ else if (status === 403) {
1857
1950
  const _responseText = response.data;
1858
- let result500 = null;
1859
- let resultData500 = _responseText;
1860
- result500 = JSON.parse(resultData500);
1861
- return throwException("Internal server error", status, _responseText, _headers, result500);
1951
+ return throwException("Forbidden", status, _responseText, _headers);
1862
1952
  }
1863
1953
  else if (status !== 200 && status !== 204) {
1864
1954
  const _responseText = response.data;
@@ -1917,12 +2007,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1917
2007
  result200 = JSON.parse(resultData200);
1918
2008
  return Promise.resolve(result200);
1919
2009
  }
1920
- else if (status === 500) {
2010
+ else if (status === 401) {
2011
+ const _responseText = response.data;
2012
+ return throwException("Unauthorized", status, _responseText, _headers);
2013
+ }
2014
+ else if (status === 403) {
1921
2015
  const _responseText = response.data;
1922
- let result500 = null;
1923
- let resultData500 = _responseText;
1924
- result500 = JSON.parse(resultData500);
1925
- return throwException("Internal server error", status, _responseText, _headers, result500);
2016
+ return throwException("Forbidden", status, _responseText, _headers);
1926
2017
  }
1927
2018
  else if (status !== 200 && status !== 204) {
1928
2019
  const _responseText = response.data;
@@ -1981,12 +2072,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1981
2072
  result200 = JSON.parse(resultData200);
1982
2073
  return Promise.resolve(result200);
1983
2074
  }
1984
- else if (status === 500) {
2075
+ else if (status === 401) {
2076
+ const _responseText = response.data;
2077
+ return throwException("Unauthorized", status, _responseText, _headers);
2078
+ }
2079
+ else if (status === 403) {
1985
2080
  const _responseText = response.data;
1986
- let result500 = null;
1987
- let resultData500 = _responseText;
1988
- result500 = JSON.parse(resultData500);
1989
- return throwException("Internal server error", status, _responseText, _headers, result500);
2081
+ return throwException("Forbidden", status, _responseText, _headers);
1990
2082
  }
1991
2083
  else if (status !== 200 && status !== 204) {
1992
2084
  const _responseText = response.data;
@@ -2014,7 +2106,9 @@ export class DesignAtomsImagesApiClient extends ApiClientBase {
2014
2106
  */
2015
2107
  renderImagePreview(attachment, tenantId, body, cancelToken) {
2016
2108
  let url_ = this.baseUrl + "/api/atoms/v1/images/render-preview?";
2017
- if (attachment !== undefined && attachment !== null)
2109
+ if (attachment === null)
2110
+ throw new Error("The parameter 'attachment' cannot be null.");
2111
+ else if (attachment !== undefined)
2018
2112
  url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
2019
2113
  if (tenantId === null)
2020
2114
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -2070,13 +2164,6 @@ export class DesignAtomsImagesApiClient extends ApiClientBase {
2070
2164
  const _responseText = response.data;
2071
2165
  return throwException("Forbidden", status, _responseText, _headers);
2072
2166
  }
2073
- else if (status === 500) {
2074
- const _responseText = response.data;
2075
- let result500 = null;
2076
- let resultData500 = _responseText;
2077
- result500 = JSON.parse(resultData500);
2078
- return throwException("Internal server error", status, _responseText, _headers, result500);
2079
- }
2080
2167
  else if (status !== 200 && status !== 204) {
2081
2168
  const _responseText = response.data;
2082
2169
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -2145,13 +2232,6 @@ export class DesignAtomsImagesApiClient extends ApiClientBase {
2145
2232
  const _responseText = response.data;
2146
2233
  return throwException("Forbidden", status, _responseText, _headers);
2147
2234
  }
2148
- else if (status === 500) {
2149
- const _responseText = response.data;
2150
- let result500 = null;
2151
- let resultData500 = _responseText;
2152
- result500 = JSON.parse(resultData500);
2153
- return throwException("Internal server error", status, _responseText, _headers, result500);
2154
- }
2155
2235
  else if (status !== 200 && status !== 204) {
2156
2236
  const _responseText = response.data;
2157
2237
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -2180,7 +2260,9 @@ export class DesignAtomsMockups3dApiClient extends ApiClientBase {
2180
2260
  if (id === undefined || id === null)
2181
2261
  throw new Error("The parameter 'id' must be defined.");
2182
2262
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
2183
- if (ownerId !== undefined && ownerId !== null)
2263
+ if (ownerId === null)
2264
+ throw new Error("The parameter 'ownerId' cannot be null.");
2265
+ else if (ownerId !== undefined)
2184
2266
  url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
2185
2267
  if (tenantId === null)
2186
2268
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -2247,13 +2329,6 @@ export class DesignAtomsMockups3dApiClient extends ApiClientBase {
2247
2329
  const _responseText = response.data;
2248
2330
  return throwException("Forbidden", status, _responseText, _headers);
2249
2331
  }
2250
- else if (status === 500) {
2251
- const _responseText = response.data;
2252
- let result500 = null;
2253
- let resultData500 = _responseText;
2254
- result500 = JSON.parse(resultData500);
2255
- return throwException("Internal server error", status, _responseText, _headers, result500);
2256
- }
2257
2332
  else if (status !== 200 && status !== 204) {
2258
2333
  const _responseText = response.data;
2259
2334
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -2272,7 +2347,9 @@ export class DesignAtomsMockups3dApiClient extends ApiClientBase {
2272
2347
  if (id === undefined || id === null)
2273
2348
  throw new Error("The parameter 'id' must be defined.");
2274
2349
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
2275
- if (ownerId !== undefined && ownerId !== null)
2350
+ if (ownerId === null)
2351
+ throw new Error("The parameter 'ownerId' cannot be null.");
2352
+ else if (ownerId !== undefined)
2276
2353
  url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
2277
2354
  if (tenantId === null)
2278
2355
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -2284,7 +2361,7 @@ export class DesignAtomsMockups3dApiClient extends ApiClientBase {
2284
2361
  method: "GET",
2285
2362
  url: url_,
2286
2363
  headers: {
2287
- "Accept": "application/octet-stream"
2364
+ "Accept": "application/json"
2288
2365
  },
2289
2366
  cancelToken
2290
2367
  };
@@ -2339,13 +2416,6 @@ export class DesignAtomsMockups3dApiClient extends ApiClientBase {
2339
2416
  const _responseText = response.data;
2340
2417
  return throwException("Forbidden", status, _responseText, _headers);
2341
2418
  }
2342
- else if (status === 500) {
2343
- const _responseText = response.data;
2344
- let result500 = null;
2345
- let resultData500 = _responseText;
2346
- result500 = JSON.parse(resultData500);
2347
- return throwException("Internal server error", status, _responseText, _headers, result500);
2348
- }
2349
2419
  else if (status !== 200 && status !== 204) {
2350
2420
  const _responseText = response.data;
2351
2421
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -2364,7 +2434,9 @@ export class DesignAtomsMockups3dApiClient extends ApiClientBase {
2364
2434
  if (id === undefined || id === null)
2365
2435
  throw new Error("The parameter 'id' must be defined.");
2366
2436
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
2367
- if (ownerId !== undefined && ownerId !== null)
2437
+ if (ownerId === null)
2438
+ throw new Error("The parameter 'ownerId' cannot be null.");
2439
+ else if (ownerId !== undefined)
2368
2440
  url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
2369
2441
  if (tenantId === null)
2370
2442
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -2376,7 +2448,7 @@ export class DesignAtomsMockups3dApiClient extends ApiClientBase {
2376
2448
  method: "GET",
2377
2449
  url: url_,
2378
2450
  headers: {
2379
- "Accept": "application/octet-stream"
2451
+ "Accept": "application/json"
2380
2452
  },
2381
2453
  cancelToken
2382
2454
  };
@@ -2431,13 +2503,6 @@ export class DesignAtomsMockups3dApiClient extends ApiClientBase {
2431
2503
  const _responseText = response.data;
2432
2504
  return throwException("Forbidden", status, _responseText, _headers);
2433
2505
  }
2434
- else if (status === 500) {
2435
- const _responseText = response.data;
2436
- let result500 = null;
2437
- let resultData500 = _responseText;
2438
- result500 = JSON.parse(resultData500);
2439
- return throwException("Internal server error", status, _responseText, _headers, result500);
2440
- }
2441
2506
  else if (status !== 200 && status !== 204) {
2442
2507
  const _responseText = response.data;
2443
2508
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -2456,14 +2521,16 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
2456
2521
  }
2457
2522
  /**
2458
2523
  * Creates new design file with specified parameters and saves it in storage.
2459
- * @param privateStorageOwner (optional) Private storage owner identifier
2524
+ * @param privateStorageOwner (optional) Private storage owner identifier.
2460
2525
  * @param tenantId (optional) Tenant identifier
2461
- * @param body (optional) Design creation parameters
2462
- * @return Success
2526
+ * @param body (optional) Design creation parameters.
2527
+ * @return Created
2463
2528
  */
2464
2529
  createDesign(privateStorageOwner, tenantId, body, cancelToken) {
2465
2530
  let url_ = this.baseUrl + "/api/atoms/v1/designs?";
2466
- if (privateStorageOwner !== undefined && privateStorageOwner !== null)
2531
+ if (privateStorageOwner === null)
2532
+ throw new Error("The parameter 'privateStorageOwner' cannot be null.");
2533
+ else if (privateStorageOwner !== undefined)
2467
2534
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
2468
2535
  if (tenantId === null)
2469
2536
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -2519,13 +2586,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
2519
2586
  const _responseText = response.data;
2520
2587
  return throwException("Forbidden", status, _responseText, _headers);
2521
2588
  }
2522
- else if (status === 500) {
2523
- const _responseText = response.data;
2524
- let result500 = null;
2525
- let resultData500 = _responseText;
2526
- result500 = JSON.parse(resultData500);
2527
- return throwException("Internal server error", status, _responseText, _headers, result500);
2528
- }
2529
2589
  else if (status !== 200 && status !== 204) {
2530
2590
  const _responseText = response.data;
2531
2591
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -2545,9 +2605,13 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
2545
2605
  if (id === undefined || id === null)
2546
2606
  throw new Error("The parameter 'id' must be defined.");
2547
2607
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
2548
- if (surfaceIndex !== undefined && surfaceIndex !== null)
2608
+ if (surfaceIndex === null)
2609
+ throw new Error("The parameter 'surfaceIndex' cannot be null.");
2610
+ else if (surfaceIndex !== undefined)
2549
2611
  url_ += "surfaceIndex=" + encodeURIComponent("" + surfaceIndex) + "&";
2550
- if (privateStorageOwner !== undefined && privateStorageOwner !== null)
2612
+ if (privateStorageOwner === null)
2613
+ throw new Error("The parameter 'privateStorageOwner' cannot be null.");
2614
+ else if (privateStorageOwner !== undefined)
2551
2615
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
2552
2616
  if (tenantId === null)
2553
2617
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -2614,13 +2678,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
2614
2678
  const _responseText = response.data;
2615
2679
  return throwException("Forbidden", status, _responseText, _headers);
2616
2680
  }
2617
- else if (status === 500) {
2618
- const _responseText = response.data;
2619
- let result500 = null;
2620
- let resultData500 = _responseText;
2621
- result500 = JSON.parse(resultData500);
2622
- return throwException("Internal server error", status, _responseText, _headers, result500);
2623
- }
2624
2681
  else if (status !== 200 && status !== 204) {
2625
2682
  const _responseText = response.data;
2626
2683
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -2628,9 +2685,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
2628
2685
  return Promise.resolve(null);
2629
2686
  }
2630
2687
  /**
2631
- * Loads product (design model) from design file taken from storage
2632
- * @param id Design identifier
2633
- * @param privateStorageOwner (optional) Private storage owner identifier
2688
+ * Loads product (design model) from design file taken from storage.
2689
+ * @param id Design identifier.
2690
+ * @param privateStorageOwner (optional) Private storage owner identifier.
2634
2691
  * @param tenantId (optional) Tenant identifier
2635
2692
  * @return Success
2636
2693
  */
@@ -2639,7 +2696,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
2639
2696
  if (id === undefined || id === null)
2640
2697
  throw new Error("The parameter 'id' must be defined.");
2641
2698
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
2642
- if (privateStorageOwner !== undefined && privateStorageOwner !== null)
2699
+ if (privateStorageOwner === null)
2700
+ throw new Error("The parameter 'privateStorageOwner' cannot be null.");
2701
+ else if (privateStorageOwner !== undefined)
2643
2702
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
2644
2703
  if (tenantId === null)
2645
2704
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -2699,13 +2758,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
2699
2758
  const _responseText = response.data;
2700
2759
  return throwException("Forbidden", status, _responseText, _headers);
2701
2760
  }
2702
- else if (status === 500) {
2703
- const _responseText = response.data;
2704
- let result500 = null;
2705
- let resultData500 = _responseText;
2706
- result500 = JSON.parse(resultData500);
2707
- return throwException("Internal server error", status, _responseText, _headers, result500);
2708
- }
2709
2761
  else if (status !== 200 && status !== 204) {
2710
2762
  const _responseText = response.data;
2711
2763
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -2714,10 +2766,10 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
2714
2766
  }
2715
2767
  /**
2716
2768
  * Saves product (design model) to design file and updates design in storage.
2717
- * @param id Design identifier
2718
- * @param privateStorageOwner (optional) Private storage owner identifier
2769
+ * @param id Design identifier.
2770
+ * @param privateStorageOwner (optional) Private storage owner identifier.
2719
2771
  * @param tenantId (optional) Tenant identifier
2720
- * @param body (optional) Serialized product description
2772
+ * @param body (optional) Serialized product description.
2721
2773
  * @return Success
2722
2774
  */
2723
2775
  saveProduct(id, privateStorageOwner, tenantId, body, cancelToken) {
@@ -2725,7 +2777,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
2725
2777
  if (id === undefined || id === null)
2726
2778
  throw new Error("The parameter 'id' must be defined.");
2727
2779
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
2728
- if (privateStorageOwner !== undefined && privateStorageOwner !== null)
2780
+ if (privateStorageOwner === null)
2781
+ throw new Error("The parameter 'privateStorageOwner' cannot be null.");
2782
+ else if (privateStorageOwner !== undefined)
2729
2783
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
2730
2784
  if (tenantId === null)
2731
2785
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -2784,13 +2838,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
2784
2838
  const _responseText = response.data;
2785
2839
  return throwException("Forbidden", status, _responseText, _headers);
2786
2840
  }
2787
- else if (status === 500) {
2788
- const _responseText = response.data;
2789
- let result500 = null;
2790
- let resultData500 = _responseText;
2791
- result500 = JSON.parse(resultData500);
2792
- return throwException("Internal server error", status, _responseText, _headers, result500);
2793
- }
2794
2841
  else if (status !== 200 && status !== 204) {
2795
2842
  const _responseText = response.data;
2796
2843
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -2815,7 +2862,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
2815
2862
  if (id === undefined || id === null)
2816
2863
  throw new Error("The parameter 'id' must be defined.");
2817
2864
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
2818
- if (privateStorageOwner !== undefined && privateStorageOwner !== null)
2865
+ if (privateStorageOwner === null)
2866
+ throw new Error("The parameter 'privateStorageOwner' cannot be null.");
2867
+ else if (privateStorageOwner !== undefined)
2819
2868
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
2820
2869
  if (tenantId === null)
2821
2870
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -2888,13 +2937,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
2888
2937
  const _responseText = response.data;
2889
2938
  return throwException("Forbidden", status, _responseText, _headers);
2890
2939
  }
2891
- else if (status === 500) {
2892
- const _responseText = response.data;
2893
- let result500 = null;
2894
- let resultData500 = _responseText;
2895
- result500 = JSON.parse(resultData500);
2896
- return throwException("Internal server error", status, _responseText, _headers, result500);
2897
- }
2898
2940
  else if (status !== 200 && status !== 204) {
2899
2941
  const _responseText = response.data;
2900
2942
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -2913,7 +2955,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
2913
2955
  if (id === undefined || id === null)
2914
2956
  throw new Error("The parameter 'id' must be defined.");
2915
2957
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
2916
- if (privateStorageOwner !== undefined && privateStorageOwner !== null)
2958
+ if (privateStorageOwner === null)
2959
+ throw new Error("The parameter 'privateStorageOwner' cannot be null.");
2960
+ else if (privateStorageOwner !== undefined)
2917
2961
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
2918
2962
  if (tenantId === null)
2919
2963
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -2973,13 +3017,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
2973
3017
  const _responseText = response.data;
2974
3018
  return throwException("Forbidden", status, _responseText, _headers);
2975
3019
  }
2976
- else if (status === 500) {
2977
- const _responseText = response.data;
2978
- let result500 = null;
2979
- let resultData500 = _responseText;
2980
- result500 = JSON.parse(resultData500);
2981
- return throwException("Internal server error", status, _responseText, _headers, result500);
2982
- }
2983
3020
  else if (status !== 200 && status !== 204) {
2984
3021
  const _responseText = response.data;
2985
3022
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -2987,9 +3024,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
2987
3024
  return Promise.resolve(null);
2988
3025
  }
2989
3026
  /**
2990
- * Loads data schema from design file taken from storage
2991
- * @param id Design identifier
2992
- * @param privateStorageOwner (optional) Private storage owner identifier
3027
+ * Loads data schema from design file taken from storage.
3028
+ * @param id Design identifier.
3029
+ * @param privateStorageOwner (optional) Private storage owner identifier.
2993
3030
  * @param tenantId (optional) Tenant identifier
2994
3031
  * @return Success
2995
3032
  */
@@ -2998,7 +3035,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
2998
3035
  if (id === undefined || id === null)
2999
3036
  throw new Error("The parameter 'id' must be defined.");
3000
3037
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3001
- if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3038
+ if (privateStorageOwner === null)
3039
+ throw new Error("The parameter 'privateStorageOwner' cannot be null.");
3040
+ else if (privateStorageOwner !== undefined)
3002
3041
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3003
3042
  if (tenantId === null)
3004
3043
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -3065,13 +3104,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
3065
3104
  const _responseText = response.data;
3066
3105
  return throwException("Forbidden", status, _responseText, _headers);
3067
3106
  }
3068
- else if (status === 500) {
3069
- const _responseText = response.data;
3070
- let result500 = null;
3071
- let resultData500 = _responseText;
3072
- result500 = JSON.parse(resultData500);
3073
- return throwException("Internal server error", status, _responseText, _headers, result500);
3074
- }
3075
3107
  else if (status !== 200 && status !== 204) {
3076
3108
  const _responseText = response.data;
3077
3109
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -3079,7 +3111,7 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
3079
3111
  return Promise.resolve(null);
3080
3112
  }
3081
3113
  /**
3082
- * Loads toggle set from design file taken from storage.
3114
+ * Loads a toggle set from design file taken from storage.
3083
3115
  * @param id Design identifier.
3084
3116
  * @param privateStorageOwner (optional) Private storage owner identifier.
3085
3117
  * @param tenantId (optional) Tenant identifier
@@ -3090,7 +3122,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
3090
3122
  if (id === undefined || id === null)
3091
3123
  throw new Error("The parameter 'id' must be defined.");
3092
3124
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3093
- if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3125
+ if (privateStorageOwner === null)
3126
+ throw new Error("The parameter 'privateStorageOwner' cannot be null.");
3127
+ else if (privateStorageOwner !== undefined)
3094
3128
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3095
3129
  if (tenantId === null)
3096
3130
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -3157,13 +3191,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
3157
3191
  const _responseText = response.data;
3158
3192
  return throwException("Forbidden", status, _responseText, _headers);
3159
3193
  }
3160
- else if (status === 500) {
3161
- const _responseText = response.data;
3162
- let result500 = null;
3163
- let resultData500 = _responseText;
3164
- result500 = JSON.parse(resultData500);
3165
- return throwException("Internal server error", status, _responseText, _headers, result500);
3166
- }
3167
3194
  else if (status !== 200 && status !== 204) {
3168
3195
  const _responseText = response.data;
3169
3196
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -3171,9 +3198,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
3171
3198
  return Promise.resolve(null);
3172
3199
  }
3173
3200
  /**
3174
- * Gets variable items information for design file taken from storage
3175
- * @param id Design identifier
3176
- * @param privateStorageOwner (optional) Private storage owner identifier
3201
+ * Gets variable items information for design file taken from storage.
3202
+ * @param id Design identifier.
3203
+ * @param privateStorageOwner (optional) Private storage owner identifier.
3177
3204
  * @param tenantId (optional) Tenant identifier
3178
3205
  * @return Success
3179
3206
  */
@@ -3182,7 +3209,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
3182
3209
  if (id === undefined || id === null)
3183
3210
  throw new Error("The parameter 'id' must be defined.");
3184
3211
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3185
- if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3212
+ if (privateStorageOwner === null)
3213
+ throw new Error("The parameter 'privateStorageOwner' cannot be null.");
3214
+ else if (privateStorageOwner !== undefined)
3186
3215
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3187
3216
  if (tenantId === null)
3188
3217
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -3242,13 +3271,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
3242
3271
  const _responseText = response.data;
3243
3272
  return throwException("Forbidden", status, _responseText, _headers);
3244
3273
  }
3245
- else if (status === 500) {
3246
- const _responseText = response.data;
3247
- let result500 = null;
3248
- let resultData500 = _responseText;
3249
- result500 = JSON.parse(resultData500);
3250
- return throwException("Internal server error", status, _responseText, _headers, result500);
3251
- }
3252
3274
  else if (status !== 200 && status !== 204) {
3253
3275
  const _responseText = response.data;
3254
3276
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -3256,11 +3278,11 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
3256
3278
  return Promise.resolve(null);
3257
3279
  }
3258
3280
  /**
3259
- * Sets variable items values for design file taken from storage
3260
- * @param id Design identifier
3261
- * @param privateStorageOwner (optional) Private storage owner identifier
3281
+ * Sets variable items values for design file taken from storage.
3282
+ * @param id Design identifier.
3283
+ * @param privateStorageOwner (optional) Private storage owner identifier.
3262
3284
  * @param tenantId (optional) Tenant identifier
3263
- * @param body (optional) Design variable values
3285
+ * @param body (optional) Design variable values.
3264
3286
  * @return Success
3265
3287
  */
3266
3288
  setVariables(id, privateStorageOwner, tenantId, body, cancelToken) {
@@ -3268,7 +3290,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
3268
3290
  if (id === undefined || id === null)
3269
3291
  throw new Error("The parameter 'id' must be defined.");
3270
3292
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3271
- if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3293
+ if (privateStorageOwner === null)
3294
+ throw new Error("The parameter 'privateStorageOwner' cannot be null.");
3295
+ else if (privateStorageOwner !== undefined)
3272
3296
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3273
3297
  if (tenantId === null)
3274
3298
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -3334,13 +3358,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
3334
3358
  const _responseText = response.data;
3335
3359
  return throwException("Forbidden", status, _responseText, _headers);
3336
3360
  }
3337
- else if (status === 500) {
3338
- const _responseText = response.data;
3339
- let result500 = null;
3340
- let resultData500 = _responseText;
3341
- result500 = JSON.parse(resultData500);
3342
- return throwException("Internal server error", status, _responseText, _headers, result500);
3343
- }
3344
3361
  else if (status !== 200 && status !== 204) {
3345
3362
  const _responseText = response.data;
3346
3363
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -3348,9 +3365,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
3348
3365
  return Promise.resolve(null);
3349
3366
  }
3350
3367
  /**
3351
- * Loads variable data printing information from design file taken from storage
3352
- * @param id Design identifier
3353
- * @param privateStorageOwner (optional) Private storage owner identifier
3368
+ * Loads variable data printing information from design file taken from storage.
3369
+ * @param id Design identifier.
3370
+ * @param privateStorageOwner (optional) Private storage owner identifier.
3354
3371
  * @param tenantId (optional) Tenant identifier
3355
3372
  * @return Success
3356
3373
  */
@@ -3359,7 +3376,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
3359
3376
  if (id === undefined || id === null)
3360
3377
  throw new Error("The parameter 'id' must be defined.");
3361
3378
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3362
- if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3379
+ if (privateStorageOwner === null)
3380
+ throw new Error("The parameter 'privateStorageOwner' cannot be null.");
3381
+ else if (privateStorageOwner !== undefined)
3363
3382
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3364
3383
  if (tenantId === null)
3365
3384
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -3426,13 +3445,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
3426
3445
  const _responseText = response.data;
3427
3446
  return throwException("Forbidden", status, _responseText, _headers);
3428
3447
  }
3429
- else if (status === 500) {
3430
- const _responseText = response.data;
3431
- let result500 = null;
3432
- let resultData500 = _responseText;
3433
- result500 = JSON.parse(resultData500);
3434
- return throwException("Internal server error", status, _responseText, _headers, result500);
3435
- }
3436
3448
  else if (status !== 200 && status !== 204) {
3437
3449
  const _responseText = response.data;
3438
3450
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -3441,10 +3453,10 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
3441
3453
  }
3442
3454
  /**
3443
3455
  * Saves variable data printing information to design file and updates design in storage.
3444
- * @param id Design identifier
3445
- * @param privateStorageOwner (optional) Private storage owner identifier
3456
+ * @param id Design identifier.
3457
+ * @param privateStorageOwner (optional) Private storage owner identifier.
3446
3458
  * @param tenantId (optional) Tenant identifier
3447
- * @param body (optional) Serialized vdp data
3459
+ * @param body (optional) Serialized vdp data.
3448
3460
  * @return Success
3449
3461
  */
3450
3462
  saveVdpData(id, privateStorageOwner, tenantId, body, cancelToken) {
@@ -3452,7 +3464,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
3452
3464
  if (id === undefined || id === null)
3453
3465
  throw new Error("The parameter 'id' must be defined.");
3454
3466
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3455
- if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3467
+ if (privateStorageOwner === null)
3468
+ throw new Error("The parameter 'privateStorageOwner' cannot be null.");
3469
+ else if (privateStorageOwner !== undefined)
3456
3470
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3457
3471
  if (tenantId === null)
3458
3472
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -3511,13 +3525,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
3511
3525
  const _responseText = response.data;
3512
3526
  return throwException("Forbidden", status, _responseText, _headers);
3513
3527
  }
3514
- else if (status === 500) {
3515
- const _responseText = response.data;
3516
- let result500 = null;
3517
- let resultData500 = _responseText;
3518
- result500 = JSON.parse(resultData500);
3519
- return throwException("Internal server error", status, _responseText, _headers, result500);
3520
- }
3521
3528
  else if (status !== 200 && status !== 204) {
3522
3529
  const _responseText = response.data;
3523
3530
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -3526,8 +3533,8 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
3526
3533
  }
3527
3534
  /**
3528
3535
  * Deletes variable data printing information from design file and updates design in storage.
3529
- * @param id Design identifier
3530
- * @param privateStorageOwner (optional) Private storage owner identifier
3536
+ * @param id Design identifier.
3537
+ * @param privateStorageOwner (optional) Private storage owner identifier.
3531
3538
  * @param tenantId (optional) Tenant identifier
3532
3539
  * @return Success
3533
3540
  */
@@ -3536,7 +3543,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
3536
3543
  if (id === undefined || id === null)
3537
3544
  throw new Error("The parameter 'id' must be defined.");
3538
3545
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3539
- if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3546
+ if (privateStorageOwner === null)
3547
+ throw new Error("The parameter 'privateStorageOwner' cannot be null.");
3548
+ else if (privateStorageOwner !== undefined)
3540
3549
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3541
3550
  if (tenantId === null)
3542
3551
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -3591,13 +3600,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
3591
3600
  const _responseText = response.data;
3592
3601
  return throwException("Forbidden", status, _responseText, _headers);
3593
3602
  }
3594
- else if (status === 500) {
3595
- const _responseText = response.data;
3596
- let result500 = null;
3597
- let resultData500 = _responseText;
3598
- result500 = JSON.parse(resultData500);
3599
- return throwException("Internal server error", status, _responseText, _headers, result500);
3600
- }
3601
3603
  else if (status !== 200 && status !== 204) {
3602
3604
  const _responseText = response.data;
3603
3605
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -3605,9 +3607,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
3605
3607
  return Promise.resolve(null);
3606
3608
  }
3607
3609
  /**
3608
- * Loads product (design model) from resource file taken from storage
3609
- * @param id Resource identifier
3610
- * @param privateStorageOwner (optional) Private storage owner identifier
3610
+ * Loads product (design model) from resource file taken from storage.
3611
+ * @param id Resource identifier.
3612
+ * @param privateStorageOwner (optional) Private storage owner identifier.
3611
3613
  * @param tenantId (optional) Tenant identifier
3612
3614
  * @return Success
3613
3615
  */
@@ -3616,7 +3618,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
3616
3618
  if (id === undefined || id === null)
3617
3619
  throw new Error("The parameter 'id' must be defined.");
3618
3620
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3619
- if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3621
+ if (privateStorageOwner === null)
3622
+ throw new Error("The parameter 'privateStorageOwner' cannot be null.");
3623
+ else if (privateStorageOwner !== undefined)
3620
3624
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3621
3625
  if (tenantId === null)
3622
3626
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -3683,13 +3687,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
3683
3687
  const _responseText = response.data;
3684
3688
  return throwException("Forbidden", status, _responseText, _headers);
3685
3689
  }
3686
- else if (status === 500) {
3687
- const _responseText = response.data;
3688
- let result500 = null;
3689
- let resultData500 = _responseText;
3690
- result500 = JSON.parse(resultData500);
3691
- return throwException("Internal server error", status, _responseText, _headers, result500);
3692
- }
3693
3690
  else if (status !== 200 && status !== 204) {
3694
3691
  const _responseText = response.data;
3695
3692
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -3697,9 +3694,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
3697
3694
  return Promise.resolve(null);
3698
3695
  }
3699
3696
  /**
3700
- * Converts colors
3697
+ * Converts colors.
3701
3698
  * @param tenantId (optional) Tenant identifier
3702
- * @param body (optional) Convert colors operation parameters
3699
+ * @param body (optional) Convert colors operation parameters.
3703
3700
  * @return Success
3704
3701
  */
3705
3702
  convertColors(tenantId, body, cancelToken) {
@@ -3765,13 +3762,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
3765
3762
  const _responseText = response.data;
3766
3763
  return throwException("Forbidden", status, _responseText, _headers);
3767
3764
  }
3768
- else if (status === 500) {
3769
- const _responseText = response.data;
3770
- let result500 = null;
3771
- let resultData500 = _responseText;
3772
- result500 = JSON.parse(resultData500);
3773
- return throwException("Internal server error", status, _responseText, _headers, result500);
3774
- }
3775
3765
  else if (status !== 200 && status !== 204) {
3776
3766
  const _responseText = response.data;
3777
3767
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -3779,8 +3769,8 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
3779
3769
  return Promise.resolve(null);
3780
3770
  }
3781
3771
  /**
3782
- * Creates product item
3783
- * @param itemType (optional) Desired item type
3772
+ * Creates product item.
3773
+ * @param itemType (optional) Desired item type.
3784
3774
  * @param tenantId (optional) Tenant identifier
3785
3775
  * @param sourceType (optional)
3786
3776
  * @param sourceId (optional)
@@ -3790,7 +3780,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
3790
3780
  */
3791
3781
  createItem(itemType, tenantId, sourceType, sourceId, sourceOwnerId, sourceFile, cancelToken) {
3792
3782
  let url_ = this.baseUrl + "/api/atoms/v1/designs/model/items?";
3793
- if (itemType !== undefined && itemType !== null)
3783
+ if (itemType === null)
3784
+ throw new Error("The parameter 'itemType' cannot be null.");
3785
+ else if (itemType !== undefined)
3794
3786
  url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
3795
3787
  if (tenantId === null)
3796
3788
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -3860,13 +3852,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
3860
3852
  const _responseText = response.data;
3861
3853
  return throwException("Forbidden", status, _responseText, _headers);
3862
3854
  }
3863
- else if (status === 500) {
3864
- const _responseText = response.data;
3865
- let result500 = null;
3866
- let resultData500 = _responseText;
3867
- result500 = JSON.parse(resultData500);
3868
- return throwException("Internal server error", status, _responseText, _headers, result500);
3869
- }
3870
3855
  else if (status !== 200 && status !== 204) {
3871
3856
  const _responseText = response.data;
3872
3857
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -3935,13 +3920,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
3935
3920
  const _responseText = response.data;
3936
3921
  return throwException("Forbidden", status, _responseText, _headers);
3937
3922
  }
3938
- else if (status === 500) {
3939
- const _responseText = response.data;
3940
- let result500 = null;
3941
- let resultData500 = _responseText;
3942
- result500 = JSON.parse(resultData500);
3943
- return throwException("Internal server error", status, _responseText, _headers, result500);
3944
- }
3945
3923
  else if (status !== 200 && status !== 204) {
3946
3924
  const _responseText = response.data;
3947
3925
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -4010,13 +3988,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
4010
3988
  const _responseText = response.data;
4011
3989
  return throwException("Forbidden", status, _responseText, _headers);
4012
3990
  }
4013
- else if (status === 500) {
4014
- const _responseText = response.data;
4015
- let result500 = null;
4016
- let resultData500 = _responseText;
4017
- result500 = JSON.parse(resultData500);
4018
- return throwException("Internal server error", status, _responseText, _headers, result500);
4019
- }
4020
3991
  else if (status !== 200 && status !== 204) {
4021
3992
  const _responseText = response.data;
4022
3993
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -4025,14 +3996,17 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
4025
3996
  }
4026
3997
  /**
4027
3998
  * Render product proof image with specified parameters.
4028
- * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied (default value is 'false').
3999
+ * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
4000
+ (default value is 'false').
4029
4001
  * @param tenantId (optional) Tenant identifier
4030
4002
  * @param body (optional) Preview parameters.
4031
4003
  * @return Success
4032
4004
  */
4033
4005
  renderProduct(attachment, tenantId, body, cancelToken) {
4034
4006
  let url_ = this.baseUrl + "/api/atoms/v1/designs/model/render-proof?";
4035
- if (attachment !== undefined && attachment !== null)
4007
+ if (attachment === null)
4008
+ throw new Error("The parameter 'attachment' cannot be null.");
4009
+ else if (attachment !== undefined)
4036
4010
  url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
4037
4011
  if (tenantId === null)
4038
4012
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -4088,13 +4062,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
4088
4062
  const _responseText = response.data;
4089
4063
  return throwException("Forbidden", status, _responseText, _headers);
4090
4064
  }
4091
- else if (status === 500) {
4092
- const _responseText = response.data;
4093
- let result500 = null;
4094
- let resultData500 = _responseText;
4095
- result500 = JSON.parse(resultData500);
4096
- return throwException("Internal server error", status, _responseText, _headers, result500);
4097
- }
4098
4065
  else if (status !== 200 && status !== 204) {
4099
4066
  const _responseText = response.data;
4100
4067
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -4111,7 +4078,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
4111
4078
  */
4112
4079
  renderDesignPreview(attachment, tenantId, body, cancelToken) {
4113
4080
  let url_ = this.baseUrl + "/api/atoms/v1/designs/render-preview?";
4114
- if (attachment !== undefined && attachment !== null)
4081
+ if (attachment === null)
4082
+ throw new Error("The parameter 'attachment' cannot be null.");
4083
+ else if (attachment !== undefined)
4115
4084
  url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
4116
4085
  if (tenantId === null)
4117
4086
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -4167,13 +4136,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
4167
4136
  const _responseText = response.data;
4168
4137
  return throwException("Forbidden", status, _responseText, _headers);
4169
4138
  }
4170
- else if (status === 500) {
4171
- const _responseText = response.data;
4172
- let result500 = null;
4173
- let resultData500 = _responseText;
4174
- result500 = JSON.parse(resultData500);
4175
- return throwException("Internal server error", status, _responseText, _headers, result500);
4176
- }
4177
4139
  else if (status !== 200 && status !== 204) {
4178
4140
  const _responseText = response.data;
4179
4141
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -4242,13 +4204,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
4242
4204
  const _responseText = response.data;
4243
4205
  return throwException("Forbidden", status, _responseText, _headers);
4244
4206
  }
4245
- else if (status === 500) {
4246
- const _responseText = response.data;
4247
- let result500 = null;
4248
- let resultData500 = _responseText;
4249
- result500 = JSON.parse(resultData500);
4250
- return throwException("Internal server error", status, _responseText, _headers, result500);
4251
- }
4252
4207
  else if (status !== 200 && status !== 204) {
4253
4208
  const _responseText = response.data;
4254
4209
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -4265,7 +4220,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
4265
4220
  */
4266
4221
  renderDesignProof(attachment, tenantId, body, cancelToken) {
4267
4222
  let url_ = this.baseUrl + "/api/atoms/v1/designs/render-proof?";
4268
- if (attachment !== undefined && attachment !== null)
4223
+ if (attachment === null)
4224
+ throw new Error("The parameter 'attachment' cannot be null.");
4225
+ else if (attachment !== undefined)
4269
4226
  url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
4270
4227
  if (tenantId === null)
4271
4228
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -4321,13 +4278,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
4321
4278
  const _responseText = response.data;
4322
4279
  return throwException("Forbidden", status, _responseText, _headers);
4323
4280
  }
4324
- else if (status === 500) {
4325
- const _responseText = response.data;
4326
- let result500 = null;
4327
- let resultData500 = _responseText;
4328
- result500 = JSON.parse(resultData500);
4329
- return throwException("Internal server error", status, _responseText, _headers, result500);
4330
- }
4331
4281
  else if (status !== 200 && status !== 204) {
4332
4282
  const _responseText = response.data;
4333
4283
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -4396,13 +4346,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
4396
4346
  const _responseText = response.data;
4397
4347
  return throwException("Forbidden", status, _responseText, _headers);
4398
4348
  }
4399
- else if (status === 500) {
4400
- const _responseText = response.data;
4401
- let result500 = null;
4402
- let resultData500 = _responseText;
4403
- result500 = JSON.parse(resultData500);
4404
- return throwException("Internal server error", status, _responseText, _headers, result500);
4405
- }
4406
4349
  else if (status !== 200 && status !== 204) {
4407
4350
  const _responseText = response.data;
4408
4351
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -4411,20 +4354,26 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
4411
4354
  }
4412
4355
  /**
4413
4356
  * Creates a private design from a public design.
4414
- * @param designId (optional) Public design ID.
4415
- * @param privateDesignId (optional) Private design ID.
4416
- * @param privateStorageOwner (optional) Private storage owner ID.
4357
+ * @param designId (optional) Public design identifier.
4358
+ * @param privateDesignId (optional) Private design identifier.
4359
+ * @param privateStorageOwner (optional) Private storage owner identifier.
4417
4360
  * @param tenantId (optional) Tenant identifier
4418
- * @return Success
4361
+ * @return Created
4419
4362
  * @deprecated
4420
4363
  */
4421
4364
  createPrivateDesignFromDesign(designId, privateDesignId, privateStorageOwner, tenantId, cancelToken) {
4422
4365
  let url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-design?";
4423
- if (designId !== undefined && designId !== null)
4366
+ if (designId === null)
4367
+ throw new Error("The parameter 'designId' cannot be null.");
4368
+ else if (designId !== undefined)
4424
4369
  url_ += "designId=" + encodeURIComponent("" + designId) + "&";
4425
- if (privateDesignId !== undefined && privateDesignId !== null)
4370
+ if (privateDesignId === null)
4371
+ throw new Error("The parameter 'privateDesignId' cannot be null.");
4372
+ else if (privateDesignId !== undefined)
4426
4373
  url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
4427
- if (privateStorageOwner !== undefined && privateStorageOwner !== null)
4374
+ if (privateStorageOwner === null)
4375
+ throw new Error("The parameter 'privateStorageOwner' cannot be null.");
4376
+ else if (privateStorageOwner !== undefined)
4428
4377
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
4429
4378
  if (tenantId === null)
4430
4379
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -4472,13 +4421,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
4472
4421
  const _responseText = response.data;
4473
4422
  return throwException("Forbidden", status, _responseText, _headers);
4474
4423
  }
4475
- else if (status === 500) {
4476
- const _responseText = response.data;
4477
- let result500 = null;
4478
- let resultData500 = _responseText;
4479
- result500 = JSON.parse(resultData500);
4480
- return throwException("Internal server error", status, _responseText, _headers, result500);
4481
- }
4482
4424
  else if (status !== 200 && status !== 204) {
4483
4425
  const _responseText = response.data;
4484
4426
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -4487,20 +4429,26 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
4487
4429
  }
4488
4430
  /**
4489
4431
  * Creates a private design from a public resource.
4490
- * @param resourceId (optional) Resource ID.
4491
- * @param privateDesignId (optional) Private design ID.
4492
- * @param privateStorageOwner (optional) Private storage owner ID.
4493
- * @param tenantId (optional) Tenant identifier
4494
- * @return Success
4432
+ * @param resourceId (optional) Resource identifier.
4433
+ * @param privateDesignId (optional) Private design identifier.
4434
+ * @param privateStorageOwner (optional) Private storage owner identifier.
4435
+ * @param tenantId (optional) Tenant identifier.
4436
+ * @return Created
4495
4437
  * @deprecated
4496
4438
  */
4497
4439
  createPrivateDesignFromResource(resourceId, privateDesignId, privateStorageOwner, tenantId, cancelToken) {
4498
4440
  let url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-resource?";
4499
- if (resourceId !== undefined && resourceId !== null)
4441
+ if (resourceId === null)
4442
+ throw new Error("The parameter 'resourceId' cannot be null.");
4443
+ else if (resourceId !== undefined)
4500
4444
  url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
4501
- if (privateDesignId !== undefined && privateDesignId !== null)
4445
+ if (privateDesignId === null)
4446
+ throw new Error("The parameter 'privateDesignId' cannot be null.");
4447
+ else if (privateDesignId !== undefined)
4502
4448
  url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
4503
- if (privateStorageOwner !== undefined && privateStorageOwner !== null)
4449
+ if (privateStorageOwner === null)
4450
+ throw new Error("The parameter 'privateStorageOwner' cannot be null.");
4451
+ else if (privateStorageOwner !== undefined)
4504
4452
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
4505
4453
  if (tenantId === null)
4506
4454
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -4548,13 +4496,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
4548
4496
  const _responseText = response.data;
4549
4497
  return throwException("Forbidden", status, _responseText, _headers);
4550
4498
  }
4551
- else if (status === 500) {
4552
- const _responseText = response.data;
4553
- let result500 = null;
4554
- let resultData500 = _responseText;
4555
- result500 = JSON.parse(resultData500);
4556
- return throwException("Internal server error", status, _responseText, _headers, result500);
4557
- }
4558
4499
  else if (status !== 200 && status !== 204) {
4559
4500
  const _responseText = response.data;
4560
4501
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -4590,7 +4531,7 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
4590
4531
  url: url_,
4591
4532
  headers: {
4592
4533
  "Content-Type": "application/json",
4593
- "Accept": "application/json"
4534
+ "Accept": "text/css"
4594
4535
  },
4595
4536
  cancelToken
4596
4537
  };
@@ -4624,12 +4565,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
4624
4565
  result200 = JSON.parse(resultData200);
4625
4566
  return Promise.resolve(result200);
4626
4567
  }
4627
- else if (status === 500) {
4568
+ else if (status === 401) {
4569
+ const _responseText = response.data;
4570
+ return throwException("Unauthorized", status, _responseText, _headers);
4571
+ }
4572
+ else if (status === 403) {
4628
4573
  const _responseText = response.data;
4629
- let result500 = null;
4630
- let resultData500 = _responseText;
4631
- result500 = JSON.parse(resultData500);
4632
- return throwException("Internal server error", status, _responseText, _headers, result500);
4574
+ return throwException("Forbidden", status, _responseText, _headers);
4633
4575
  }
4634
4576
  else if (status !== 200 && status !== 204) {
4635
4577
  const _responseText = response.data;
@@ -4696,12 +4638,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
4696
4638
  result404 = JSON.parse(resultData404);
4697
4639
  return throwException("Not Found", status, _responseText, _headers, result404);
4698
4640
  }
4699
- else if (status === 500) {
4641
+ else if (status === 401) {
4642
+ const _responseText = response.data;
4643
+ return throwException("Unauthorized", status, _responseText, _headers);
4644
+ }
4645
+ else if (status === 403) {
4700
4646
  const _responseText = response.data;
4701
- let result500 = null;
4702
- let resultData500 = _responseText;
4703
- result500 = JSON.parse(resultData500);
4704
- return throwException("Internal server error", status, _responseText, _headers, result500);
4647
+ return throwException("Forbidden", status, _responseText, _headers);
4705
4648
  }
4706
4649
  else if (status !== 200 && status !== 204) {
4707
4650
  const _responseText = response.data;
@@ -4762,12 +4705,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
4762
4705
  result200 = JSON.parse(resultData200);
4763
4706
  return Promise.resolve(result200);
4764
4707
  }
4765
- else if (status === 500) {
4708
+ else if (status === 401) {
4709
+ const _responseText = response.data;
4710
+ return throwException("Unauthorized", status, _responseText, _headers);
4711
+ }
4712
+ else if (status === 403) {
4766
4713
  const _responseText = response.data;
4767
- let result500 = null;
4768
- let resultData500 = _responseText;
4769
- result500 = JSON.parse(resultData500);
4770
- return throwException("Internal server error", status, _responseText, _headers, result500);
4714
+ return throwException("Forbidden", status, _responseText, _headers);
4771
4715
  }
4772
4716
  else if (status !== 200 && status !== 204) {
4773
4717
  const _responseText = response.data;
@@ -4828,12 +4772,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
4828
4772
  result200 = JSON.parse(resultData200);
4829
4773
  return Promise.resolve(result200);
4830
4774
  }
4831
- else if (status === 500) {
4775
+ else if (status === 401) {
4776
+ const _responseText = response.data;
4777
+ return throwException("Unauthorized", status, _responseText, _headers);
4778
+ }
4779
+ else if (status === 403) {
4832
4780
  const _responseText = response.data;
4833
- let result500 = null;
4834
- let resultData500 = _responseText;
4835
- result500 = JSON.parse(resultData500);
4836
- return throwException("Internal server error", status, _responseText, _headers, result500);
4781
+ return throwException("Forbidden", status, _responseText, _headers);
4837
4782
  }
4838
4783
  else if (status !== 200 && status !== 204) {
4839
4784
  const _responseText = response.data;
@@ -4848,7 +4793,9 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
4848
4793
  */
4849
4794
  getCssFont(fontKey, tenantId, cancelToken) {
4850
4795
  let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/GetCssFont?";
4851
- if (fontKey !== undefined && fontKey !== null)
4796
+ if (fontKey === null)
4797
+ throw new Error("The parameter 'fontKey' cannot be null.");
4798
+ else if (fontKey !== undefined)
4852
4799
  url_ += "fontKey=" + encodeURIComponent("" + fontKey) + "&";
4853
4800
  if (tenantId === null)
4854
4801
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -4900,12 +4847,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
4900
4847
  result404 = JSON.parse(resultData404);
4901
4848
  return throwException("Not Found", status, _responseText, _headers, result404);
4902
4849
  }
4903
- else if (status === 500) {
4850
+ else if (status === 401) {
4851
+ const _responseText = response.data;
4852
+ return throwException("Unauthorized", status, _responseText, _headers);
4853
+ }
4854
+ else if (status === 403) {
4904
4855
  const _responseText = response.data;
4905
- let result500 = null;
4906
- let resultData500 = _responseText;
4907
- result500 = JSON.parse(resultData500);
4908
- return throwException("Internal server error", status, _responseText, _headers, result500);
4856
+ return throwException("Forbidden", status, _responseText, _headers);
4909
4857
  }
4910
4858
  else if (status !== 200 && status !== 204) {
4911
4859
  const _responseText = response.data;
@@ -4925,7 +4873,6 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
4925
4873
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
4926
4874
  url_ = url_.replace(/[?&]$/, "");
4927
4875
  let options_ = {
4928
- responseType: "blob",
4929
4876
  method: "GET",
4930
4877
  url: url_,
4931
4878
  headers: {
@@ -4956,18 +4903,20 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
4956
4903
  }
4957
4904
  }
4958
4905
  }
4959
- if (status === 200 || status === 206) {
4960
- const contentDisposition = response.headers ? response.headers["content-disposition"] : undefined;
4961
- const fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
4962
- const fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
4963
- return Promise.resolve({ fileName: fileName, status: status, data: new Blob([response.data]), headers: _headers });
4906
+ if (status === 200) {
4907
+ const _responseText = response.data;
4908
+ let result200 = null;
4909
+ let resultData200 = _responseText;
4910
+ result200 = JSON.parse(resultData200);
4911
+ return Promise.resolve(result200);
4912
+ }
4913
+ else if (status === 401) {
4914
+ const _responseText = response.data;
4915
+ return throwException("Unauthorized", status, _responseText, _headers);
4964
4916
  }
4965
- else if (status === 500) {
4917
+ else if (status === 403) {
4966
4918
  const _responseText = response.data;
4967
- let result500 = null;
4968
- let resultData500 = _responseText;
4969
- result500 = JSON.parse(resultData500);
4970
- return throwException("Internal server error", status, _responseText, _headers, result500);
4919
+ return throwException("Forbidden", status, _responseText, _headers);
4971
4920
  }
4972
4921
  else if (status !== 200 && status !== 204) {
4973
4922
  const _responseText = response.data;
@@ -5028,12 +4977,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
5028
4977
  result200 = JSON.parse(resultData200);
5029
4978
  return Promise.resolve(result200);
5030
4979
  }
5031
- else if (status === 500) {
4980
+ else if (status === 401) {
4981
+ const _responseText = response.data;
4982
+ return throwException("Unauthorized", status, _responseText, _headers);
4983
+ }
4984
+ else if (status === 403) {
5032
4985
  const _responseText = response.data;
5033
- let result500 = null;
5034
- let resultData500 = _responseText;
5035
- result500 = JSON.parse(resultData500);
5036
- return throwException("Internal server error", status, _responseText, _headers, result500);
4986
+ return throwException("Forbidden", status, _responseText, _headers);
5037
4987
  }
5038
4988
  else if (status !== 200 && status !== 204) {
5039
4989
  const _responseText = response.data;
@@ -5094,12 +5044,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
5094
5044
  result200 = JSON.parse(resultData200);
5095
5045
  return Promise.resolve(result200);
5096
5046
  }
5097
- else if (status === 500) {
5047
+ else if (status === 401) {
5048
+ const _responseText = response.data;
5049
+ return throwException("Unauthorized", status, _responseText, _headers);
5050
+ }
5051
+ else if (status === 403) {
5098
5052
  const _responseText = response.data;
5099
- let result500 = null;
5100
- let resultData500 = _responseText;
5101
- result500 = JSON.parse(resultData500);
5102
- return throwException("Internal server error", status, _responseText, _headers, result500);
5053
+ return throwException("Forbidden", status, _responseText, _headers);
5103
5054
  }
5104
5055
  else if (status !== 200 && status !== 204) {
5105
5056
  const _responseText = response.data;
@@ -5160,12 +5111,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
5160
5111
  result200 = JSON.parse(resultData200);
5161
5112
  return Promise.resolve(result200);
5162
5113
  }
5163
- else if (status === 500) {
5114
+ else if (status === 401) {
5115
+ const _responseText = response.data;
5116
+ return throwException("Unauthorized", status, _responseText, _headers);
5117
+ }
5118
+ else if (status === 403) {
5164
5119
  const _responseText = response.data;
5165
- let result500 = null;
5166
- let resultData500 = _responseText;
5167
- result500 = JSON.parse(resultData500);
5168
- return throwException("Internal server error", status, _responseText, _headers, result500);
5120
+ return throwException("Forbidden", status, _responseText, _headers);
5169
5121
  }
5170
5122
  else if (status !== 200 && status !== 204) {
5171
5123
  const _responseText = response.data;
@@ -5197,41 +5149,77 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
5197
5149
  */
5198
5150
  img(f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId, cancelToken) {
5199
5151
  let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/img?";
5200
- if (f !== undefined && f !== null)
5152
+ if (f === null)
5153
+ throw new Error("The parameter 'f' cannot be null.");
5154
+ else if (f !== undefined)
5201
5155
  url_ += "f=" + encodeURIComponent("" + f) + "&";
5202
- if (w !== undefined && w !== null)
5156
+ if (w === null)
5157
+ throw new Error("The parameter 'w' cannot be null.");
5158
+ else if (w !== undefined)
5203
5159
  url_ += "w=" + encodeURIComponent("" + w) + "&";
5204
- if (h !== undefined && h !== null)
5160
+ if (h === null)
5161
+ throw new Error("The parameter 'h' cannot be null.");
5162
+ else if (h !== undefined)
5205
5163
  url_ += "h=" + encodeURIComponent("" + h) + "&";
5206
- if (cmyk !== undefined && cmyk !== null)
5164
+ if (cmyk === null)
5165
+ throw new Error("The parameter 'cmyk' cannot be null.");
5166
+ else if (cmyk !== undefined)
5207
5167
  url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
5208
- if (rgb !== undefined && rgb !== null)
5168
+ if (rgb === null)
5169
+ throw new Error("The parameter 'rgb' cannot be null.");
5170
+ else if (rgb !== undefined)
5209
5171
  url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
5210
- if (grayscale !== undefined && grayscale !== null)
5172
+ if (grayscale === null)
5173
+ throw new Error("The parameter 'grayscale' cannot be null.");
5174
+ else if (grayscale !== undefined)
5211
5175
  url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
5212
- if (target !== undefined && target !== null)
5176
+ if (target === null)
5177
+ throw new Error("The parameter 'target' cannot be null.");
5178
+ else if (target !== undefined)
5213
5179
  url_ += "target=" + encodeURIComponent("" + target) + "&";
5214
- if (sq !== undefined && sq !== null)
5180
+ if (sq === null)
5181
+ throw new Error("The parameter 'sq' cannot be null.");
5182
+ else if (sq !== undefined)
5215
5183
  url_ += "sq=" + encodeURIComponent("" + sq) + "&";
5216
- if (effect !== undefined && effect !== null)
5184
+ if (effect === null)
5185
+ throw new Error("The parameter 'effect' cannot be null.");
5186
+ else if (effect !== undefined)
5217
5187
  url_ += "effect=" + encodeURIComponent("" + effect) + "&";
5218
- if (kp !== undefined && kp !== null)
5188
+ if (kp === null)
5189
+ throw new Error("The parameter 'kp' cannot be null.");
5190
+ else if (kp !== undefined)
5219
5191
  url_ += "kp=" + encodeURIComponent("" + kp) + "&";
5220
- if (color !== undefined && color !== null)
5192
+ if (color === null)
5193
+ throw new Error("The parameter 'color' cannot be null.");
5194
+ else if (color !== undefined)
5221
5195
  url_ += "color=" + encodeURIComponent("" + color) + "&";
5222
- if (obm !== undefined && obm !== null)
5196
+ if (obm === null)
5197
+ throw new Error("The parameter 'obm' cannot be null.");
5198
+ else if (obm !== undefined)
5223
5199
  url_ += "obm=" + encodeURIComponent("" + obm) + "&";
5224
- if (oo !== undefined && oo !== null)
5200
+ if (oo === null)
5201
+ throw new Error("The parameter 'oo' cannot be null.");
5202
+ else if (oo !== undefined)
5225
5203
  url_ += "oo=" + encodeURIComponent("" + oo) + "&";
5226
- if (alphaMask !== undefined && alphaMask !== null)
5204
+ if (alphaMask === null)
5205
+ throw new Error("The parameter 'alphaMask' cannot be null.");
5206
+ else if (alphaMask !== undefined)
5227
5207
  url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
5228
- if (page !== undefined && page !== null)
5208
+ if (page === null)
5209
+ throw new Error("The parameter 'page' cannot be null.");
5210
+ else if (page !== undefined)
5229
5211
  url_ += "page=" + encodeURIComponent("" + page) + "&";
5230
- if (colorizeColor !== undefined && colorizeColor !== null)
5212
+ if (colorizeColor === null)
5213
+ throw new Error("The parameter 'colorizeColor' cannot be null.");
5214
+ else if (colorizeColor !== undefined)
5231
5215
  url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
5232
- if (rw !== undefined && rw !== null)
5216
+ if (rw === null)
5217
+ throw new Error("The parameter 'rw' cannot be null.");
5218
+ else if (rw !== undefined)
5233
5219
  url_ += "rw=" + encodeURIComponent("" + rw) + "&";
5234
- if (rh !== undefined && rh !== null)
5220
+ if (rh === null)
5221
+ throw new Error("The parameter 'rh' cannot be null.");
5222
+ else if (rh !== undefined)
5235
5223
  url_ += "rh=" + encodeURIComponent("" + rh) + "&";
5236
5224
  if (tenantId === null)
5237
5225
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -5287,12 +5275,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
5287
5275
  result404 = JSON.parse(resultData404);
5288
5276
  return throwException("Not Found", status, _responseText, _headers, result404);
5289
5277
  }
5290
- else if (status === 500) {
5278
+ else if (status === 401) {
5279
+ const _responseText = response.data;
5280
+ return throwException("Unauthorized", status, _responseText, _headers);
5281
+ }
5282
+ else if (status === 403) {
5291
5283
  const _responseText = response.data;
5292
- let result500 = null;
5293
- let resultData500 = _responseText;
5294
- result500 = JSON.parse(resultData500);
5295
- return throwException("Internal server error", status, _responseText, _headers, result500);
5284
+ return throwException("Forbidden", status, _responseText, _headers);
5296
5285
  }
5297
5286
  else if (status !== 200 && status !== 204) {
5298
5287
  const _responseText = response.data;
@@ -5349,12 +5338,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
5349
5338
  result200 = JSON.parse(resultData200);
5350
5339
  return Promise.resolve(result200);
5351
5340
  }
5352
- else if (status === 500) {
5341
+ else if (status === 401) {
5342
+ const _responseText = response.data;
5343
+ return throwException("Unauthorized", status, _responseText, _headers);
5344
+ }
5345
+ else if (status === 403) {
5353
5346
  const _responseText = response.data;
5354
- let result500 = null;
5355
- let resultData500 = _responseText;
5356
- result500 = JSON.parse(resultData500);
5357
- return throwException("Internal server error", status, _responseText, _headers, result500);
5347
+ return throwException("Forbidden", status, _responseText, _headers);
5358
5348
  }
5359
5349
  else if (status !== 200 && status !== 204) {
5360
5350
  const _responseText = response.data;
@@ -5369,7 +5359,9 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
5369
5359
  */
5370
5360
  pth(f, tenantId, cancelToken) {
5371
5361
  let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/pth?";
5372
- if (f !== undefined && f !== null)
5362
+ if (f === null)
5363
+ throw new Error("The parameter 'f' cannot be null.");
5364
+ else if (f !== undefined)
5373
5365
  url_ += "f=" + encodeURIComponent("" + f) + "&";
5374
5366
  if (tenantId === null)
5375
5367
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -5425,12 +5417,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
5425
5417
  result404 = JSON.parse(resultData404);
5426
5418
  return throwException("Not Found", status, _responseText, _headers, result404);
5427
5419
  }
5428
- else if (status === 500) {
5420
+ else if (status === 401) {
5421
+ const _responseText = response.data;
5422
+ return throwException("Unauthorized", status, _responseText, _headers);
5423
+ }
5424
+ else if (status === 403) {
5429
5425
  const _responseText = response.data;
5430
- let result500 = null;
5431
- let resultData500 = _responseText;
5432
- result500 = JSON.parse(resultData500);
5433
- return throwException("Internal server error", status, _responseText, _headers, result500);
5426
+ return throwException("Forbidden", status, _responseText, _headers);
5434
5427
  }
5435
5428
  else if (status !== 200 && status !== 204) {
5436
5429
  const _responseText = response.data;
@@ -5445,7 +5438,9 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
5445
5438
  */
5446
5439
  resource(image, tenantId, cancelToken) {
5447
5440
  let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/resource?";
5448
- if (image !== undefined && image !== null)
5441
+ if (image === null)
5442
+ throw new Error("The parameter 'image' cannot be null.");
5443
+ else if (image !== undefined)
5449
5444
  url_ += "image=" + encodeURIComponent("" + image) + "&";
5450
5445
  if (tenantId === null)
5451
5446
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -5497,12 +5492,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
5497
5492
  result404 = JSON.parse(resultData404);
5498
5493
  return throwException("Not Found", status, _responseText, _headers, result404);
5499
5494
  }
5500
- else if (status === 500) {
5495
+ else if (status === 401) {
5501
5496
  const _responseText = response.data;
5502
- let result500 = null;
5503
- let resultData500 = _responseText;
5504
- result500 = JSON.parse(resultData500);
5505
- return throwException("Internal server error", status, _responseText, _headers, result500);
5497
+ return throwException("Unauthorized", status, _responseText, _headers);
5498
+ }
5499
+ else if (status === 403) {
5500
+ const _responseText = response.data;
5501
+ return throwException("Forbidden", status, _responseText, _headers);
5506
5502
  }
5507
5503
  else if (status !== 200 && status !== 204) {
5508
5504
  const _responseText = response.data;
@@ -5534,41 +5530,77 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
5534
5530
  */
5535
5531
  svg(f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId, cancelToken) {
5536
5532
  let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/svg?";
5537
- if (f !== undefined && f !== null)
5533
+ if (f === null)
5534
+ throw new Error("The parameter 'f' cannot be null.");
5535
+ else if (f !== undefined)
5538
5536
  url_ += "f=" + encodeURIComponent("" + f) + "&";
5539
- if (w !== undefined && w !== null)
5537
+ if (w === null)
5538
+ throw new Error("The parameter 'w' cannot be null.");
5539
+ else if (w !== undefined)
5540
5540
  url_ += "w=" + encodeURIComponent("" + w) + "&";
5541
- if (h !== undefined && h !== null)
5541
+ if (h === null)
5542
+ throw new Error("The parameter 'h' cannot be null.");
5543
+ else if (h !== undefined)
5542
5544
  url_ += "h=" + encodeURIComponent("" + h) + "&";
5543
- if (cmyk !== undefined && cmyk !== null)
5545
+ if (cmyk === null)
5546
+ throw new Error("The parameter 'cmyk' cannot be null.");
5547
+ else if (cmyk !== undefined)
5544
5548
  url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
5545
- if (rgb !== undefined && rgb !== null)
5549
+ if (rgb === null)
5550
+ throw new Error("The parameter 'rgb' cannot be null.");
5551
+ else if (rgb !== undefined)
5546
5552
  url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
5547
- if (grayscale !== undefined && grayscale !== null)
5553
+ if (grayscale === null)
5554
+ throw new Error("The parameter 'grayscale' cannot be null.");
5555
+ else if (grayscale !== undefined)
5548
5556
  url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
5549
- if (target !== undefined && target !== null)
5557
+ if (target === null)
5558
+ throw new Error("The parameter 'target' cannot be null.");
5559
+ else if (target !== undefined)
5550
5560
  url_ += "target=" + encodeURIComponent("" + target) + "&";
5551
- if (sq !== undefined && sq !== null)
5561
+ if (sq === null)
5562
+ throw new Error("The parameter 'sq' cannot be null.");
5563
+ else if (sq !== undefined)
5552
5564
  url_ += "sq=" + encodeURIComponent("" + sq) + "&";
5553
- if (effect !== undefined && effect !== null)
5565
+ if (effect === null)
5566
+ throw new Error("The parameter 'effect' cannot be null.");
5567
+ else if (effect !== undefined)
5554
5568
  url_ += "effect=" + encodeURIComponent("" + effect) + "&";
5555
- if (kp !== undefined && kp !== null)
5569
+ if (kp === null)
5570
+ throw new Error("The parameter 'kp' cannot be null.");
5571
+ else if (kp !== undefined)
5556
5572
  url_ += "kp=" + encodeURIComponent("" + kp) + "&";
5557
- if (color !== undefined && color !== null)
5573
+ if (color === null)
5574
+ throw new Error("The parameter 'color' cannot be null.");
5575
+ else if (color !== undefined)
5558
5576
  url_ += "color=" + encodeURIComponent("" + color) + "&";
5559
- if (obm !== undefined && obm !== null)
5577
+ if (obm === null)
5578
+ throw new Error("The parameter 'obm' cannot be null.");
5579
+ else if (obm !== undefined)
5560
5580
  url_ += "obm=" + encodeURIComponent("" + obm) + "&";
5561
- if (oo !== undefined && oo !== null)
5581
+ if (oo === null)
5582
+ throw new Error("The parameter 'oo' cannot be null.");
5583
+ else if (oo !== undefined)
5562
5584
  url_ += "oo=" + encodeURIComponent("" + oo) + "&";
5563
- if (alphaMask !== undefined && alphaMask !== null)
5585
+ if (alphaMask === null)
5586
+ throw new Error("The parameter 'alphaMask' cannot be null.");
5587
+ else if (alphaMask !== undefined)
5564
5588
  url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
5565
- if (page !== undefined && page !== null)
5589
+ if (page === null)
5590
+ throw new Error("The parameter 'page' cannot be null.");
5591
+ else if (page !== undefined)
5566
5592
  url_ += "page=" + encodeURIComponent("" + page) + "&";
5567
- if (colorizeColor !== undefined && colorizeColor !== null)
5593
+ if (colorizeColor === null)
5594
+ throw new Error("The parameter 'colorizeColor' cannot be null.");
5595
+ else if (colorizeColor !== undefined)
5568
5596
  url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
5569
- if (rw !== undefined && rw !== null)
5597
+ if (rw === null)
5598
+ throw new Error("The parameter 'rw' cannot be null.");
5599
+ else if (rw !== undefined)
5570
5600
  url_ += "rw=" + encodeURIComponent("" + rw) + "&";
5571
- if (rh !== undefined && rh !== null)
5601
+ if (rh === null)
5602
+ throw new Error("The parameter 'rh' cannot be null.");
5603
+ else if (rh !== undefined)
5572
5604
  url_ += "rh=" + encodeURIComponent("" + rh) + "&";
5573
5605
  if (tenantId === null)
5574
5606
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -5624,12 +5656,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
5624
5656
  result404 = JSON.parse(resultData404);
5625
5657
  return throwException("Not Found", status, _responseText, _headers, result404);
5626
5658
  }
5627
- else if (status === 500) {
5659
+ else if (status === 401) {
5660
+ const _responseText = response.data;
5661
+ return throwException("Unauthorized", status, _responseText, _headers);
5662
+ }
5663
+ else if (status === 403) {
5628
5664
  const _responseText = response.data;
5629
- let result500 = null;
5630
- let resultData500 = _responseText;
5631
- result500 = JSON.parse(resultData500);
5632
- return throwException("Internal server error", status, _responseText, _headers, result500);
5665
+ return throwException("Forbidden", status, _responseText, _headers);
5633
5666
  }
5634
5667
  else if (status !== 200 && status !== 204) {
5635
5668
  const _responseText = response.data;
@@ -5644,7 +5677,9 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
5644
5677
  */
5645
5678
  txt(f, tenantId, cancelToken) {
5646
5679
  let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/txt?";
5647
- if (f !== undefined && f !== null)
5680
+ if (f === null)
5681
+ throw new Error("The parameter 'f' cannot be null.");
5682
+ else if (f !== undefined)
5648
5683
  url_ += "f=" + encodeURIComponent("" + f) + "&";
5649
5684
  if (tenantId === null)
5650
5685
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -5700,12 +5735,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
5700
5735
  result404 = JSON.parse(resultData404);
5701
5736
  return throwException("Not Found", status, _responseText, _headers, result404);
5702
5737
  }
5703
- else if (status === 500) {
5738
+ else if (status === 401) {
5739
+ const _responseText = response.data;
5740
+ return throwException("Unauthorized", status, _responseText, _headers);
5741
+ }
5742
+ else if (status === 403) {
5704
5743
  const _responseText = response.data;
5705
- let result500 = null;
5706
- let resultData500 = _responseText;
5707
- result500 = JSON.parse(resultData500);
5708
- return throwException("Internal server error", status, _responseText, _headers, result500);
5744
+ return throwException("Forbidden", status, _responseText, _headers);
5709
5745
  }
5710
5746
  else if (status !== 200 && status !== 204) {
5711
5747
  const _responseText = response.data;
@@ -5766,12 +5802,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
5766
5802
  result200 = JSON.parse(resultData200);
5767
5803
  return Promise.resolve(result200);
5768
5804
  }
5769
- else if (status === 500) {
5805
+ else if (status === 401) {
5806
+ const _responseText = response.data;
5807
+ return throwException("Unauthorized", status, _responseText, _headers);
5808
+ }
5809
+ else if (status === 403) {
5770
5810
  const _responseText = response.data;
5771
- let result500 = null;
5772
- let resultData500 = _responseText;
5773
- result500 = JSON.parse(resultData500);
5774
- return throwException("Internal server error", status, _responseText, _headers, result500);
5811
+ return throwException("Forbidden", status, _responseText, _headers);
5775
5812
  }
5776
5813
  else if (status !== 200 && status !== 204) {
5777
5814
  const _responseText = response.data;
@@ -5832,12 +5869,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
5832
5869
  result200 = JSON.parse(resultData200);
5833
5870
  return Promise.resolve(result200);
5834
5871
  }
5835
- else if (status === 500) {
5872
+ else if (status === 401) {
5836
5873
  const _responseText = response.data;
5837
- let result500 = null;
5838
- let resultData500 = _responseText;
5839
- result500 = JSON.parse(resultData500);
5840
- return throwException("Internal server error", status, _responseText, _headers, result500);
5874
+ return throwException("Unauthorized", status, _responseText, _headers);
5875
+ }
5876
+ else if (status === 403) {
5877
+ const _responseText = response.data;
5878
+ return throwException("Forbidden", status, _responseText, _headers);
5841
5879
  }
5842
5880
  else if (status !== 200 && status !== 204) {
5843
5881
  const _responseText = response.data;
@@ -5898,12 +5936,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
5898
5936
  result200 = JSON.parse(resultData200);
5899
5937
  return Promise.resolve(result200);
5900
5938
  }
5901
- else if (status === 500) {
5939
+ else if (status === 401) {
5940
+ const _responseText = response.data;
5941
+ return throwException("Unauthorized", status, _responseText, _headers);
5942
+ }
5943
+ else if (status === 403) {
5902
5944
  const _responseText = response.data;
5903
- let result500 = null;
5904
- let resultData500 = _responseText;
5905
- result500 = JSON.parse(resultData500);
5906
- return throwException("Internal server error", status, _responseText, _headers, result500);
5945
+ return throwException("Forbidden", status, _responseText, _headers);
5907
5946
  }
5908
5947
  else if (status !== 200 && status !== 204) {
5909
5948
  const _responseText = response.data;
@@ -5964,12 +6003,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
5964
6003
  result200 = JSON.parse(resultData200);
5965
6004
  return Promise.resolve(result200);
5966
6005
  }
5967
- else if (status === 500) {
6006
+ else if (status === 401) {
6007
+ const _responseText = response.data;
6008
+ return throwException("Unauthorized", status, _responseText, _headers);
6009
+ }
6010
+ else if (status === 403) {
5968
6011
  const _responseText = response.data;
5969
- let result500 = null;
5970
- let resultData500 = _responseText;
5971
- result500 = JSON.parse(resultData500);
5972
- return throwException("Internal server error", status, _responseText, _headers, result500);
6012
+ return throwException("Forbidden", status, _responseText, _headers);
5973
6013
  }
5974
6014
  else if (status !== 200 && status !== 204) {
5975
6015
  const _responseText = response.data;
@@ -6030,12 +6070,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
6030
6070
  result200 = JSON.parse(resultData200);
6031
6071
  return Promise.resolve(result200);
6032
6072
  }
6033
- else if (status === 500) {
6073
+ else if (status === 401) {
6074
+ const _responseText = response.data;
6075
+ return throwException("Unauthorized", status, _responseText, _headers);
6076
+ }
6077
+ else if (status === 403) {
6034
6078
  const _responseText = response.data;
6035
- let result500 = null;
6036
- let resultData500 = _responseText;
6037
- result500 = JSON.parse(resultData500);
6038
- return throwException("Internal server error", status, _responseText, _headers, result500);
6079
+ return throwException("Forbidden", status, _responseText, _headers);
6039
6080
  }
6040
6081
  else if (status !== 200 && status !== 204) {
6041
6082
  const _responseText = response.data;
@@ -6096,12 +6137,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
6096
6137
  result200 = JSON.parse(resultData200);
6097
6138
  return Promise.resolve(result200);
6098
6139
  }
6099
- else if (status === 500) {
6140
+ else if (status === 401) {
6141
+ const _responseText = response.data;
6142
+ return throwException("Unauthorized", status, _responseText, _headers);
6143
+ }
6144
+ else if (status === 403) {
6100
6145
  const _responseText = response.data;
6101
- let result500 = null;
6102
- let resultData500 = _responseText;
6103
- result500 = JSON.parse(resultData500);
6104
- return throwException("Internal server error", status, _responseText, _headers, result500);
6146
+ return throwException("Forbidden", status, _responseText, _headers);
6105
6147
  }
6106
6148
  else if (status !== 200 && status !== 204) {
6107
6149
  const _responseText = response.data;
@@ -6162,12 +6204,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
6162
6204
  result200 = JSON.parse(resultData200);
6163
6205
  return Promise.resolve(result200);
6164
6206
  }
6165
- else if (status === 500) {
6207
+ else if (status === 401) {
6208
+ const _responseText = response.data;
6209
+ return throwException("Unauthorized", status, _responseText, _headers);
6210
+ }
6211
+ else if (status === 403) {
6166
6212
  const _responseText = response.data;
6167
- let result500 = null;
6168
- let resultData500 = _responseText;
6169
- result500 = JSON.parse(resultData500);
6170
- return throwException("Internal server error", status, _responseText, _headers, result500);
6213
+ return throwException("Forbidden", status, _responseText, _headers);
6171
6214
  }
6172
6215
  else if (status !== 200 && status !== 204) {
6173
6216
  const _responseText = response.data;
@@ -6228,12 +6271,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
6228
6271
  result200 = JSON.parse(resultData200);
6229
6272
  return Promise.resolve(result200);
6230
6273
  }
6231
- else if (status === 500) {
6274
+ else if (status === 401) {
6275
+ const _responseText = response.data;
6276
+ return throwException("Unauthorized", status, _responseText, _headers);
6277
+ }
6278
+ else if (status === 403) {
6232
6279
  const _responseText = response.data;
6233
- let result500 = null;
6234
- let resultData500 = _responseText;
6235
- result500 = JSON.parse(resultData500);
6236
- return throwException("Internal server error", status, _responseText, _headers, result500);
6280
+ return throwException("Forbidden", status, _responseText, _headers);
6237
6281
  }
6238
6282
  else if (status !== 200 && status !== 204) {
6239
6283
  const _responseText = response.data;
@@ -6294,12 +6338,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
6294
6338
  result200 = JSON.parse(resultData200);
6295
6339
  return Promise.resolve(result200);
6296
6340
  }
6297
- else if (status === 500) {
6341
+ else if (status === 401) {
6342
+ const _responseText = response.data;
6343
+ return throwException("Unauthorized", status, _responseText, _headers);
6344
+ }
6345
+ else if (status === 403) {
6298
6346
  const _responseText = response.data;
6299
- let result500 = null;
6300
- let resultData500 = _responseText;
6301
- result500 = JSON.parse(resultData500);
6302
- return throwException("Internal server error", status, _responseText, _headers, result500);
6347
+ return throwException("Forbidden", status, _responseText, _headers);
6303
6348
  }
6304
6349
  else if (status !== 200 && status !== 204) {
6305
6350
  const _responseText = response.data;
@@ -6360,12 +6405,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
6360
6405
  result200 = JSON.parse(resultData200);
6361
6406
  return Promise.resolve(result200);
6362
6407
  }
6363
- else if (status === 500) {
6408
+ else if (status === 401) {
6409
+ const _responseText = response.data;
6410
+ return throwException("Unauthorized", status, _responseText, _headers);
6411
+ }
6412
+ else if (status === 403) {
6364
6413
  const _responseText = response.data;
6365
- let result500 = null;
6366
- let resultData500 = _responseText;
6367
- result500 = JSON.parse(resultData500);
6368
- return throwException("Internal server error", status, _responseText, _headers, result500);
6414
+ return throwException("Forbidden", status, _responseText, _headers);
6369
6415
  }
6370
6416
  else if (status !== 200 && status !== 204) {
6371
6417
  const _responseText = response.data;
@@ -6426,12 +6472,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
6426
6472
  result200 = JSON.parse(resultData200);
6427
6473
  return Promise.resolve(result200);
6428
6474
  }
6429
- else if (status === 500) {
6475
+ else if (status === 401) {
6476
+ const _responseText = response.data;
6477
+ return throwException("Unauthorized", status, _responseText, _headers);
6478
+ }
6479
+ else if (status === 403) {
6430
6480
  const _responseText = response.data;
6431
- let result500 = null;
6432
- let resultData500 = _responseText;
6433
- result500 = JSON.parse(resultData500);
6434
- return throwException("Internal server error", status, _responseText, _headers, result500);
6481
+ return throwException("Forbidden", status, _responseText, _headers);
6435
6482
  }
6436
6483
  else if (status !== 200 && status !== 204) {
6437
6484
  const _responseText = response.data;
@@ -6440,28 +6487,6 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
6440
6487
  return Promise.resolve(null);
6441
6488
  }
6442
6489
  }
6443
- export var ColorSpace;
6444
- (function (ColorSpace) {
6445
- ColorSpace["Rgb"] = "Rgb";
6446
- ColorSpace["Cmyk"] = "Cmyk";
6447
- ColorSpace["Grayscale"] = "Grayscale";
6448
- ColorSpace["Lab"] = "Lab";
6449
- ColorSpace["Spot"] = "Spot";
6450
- })(ColorSpace || (ColorSpace = {}));
6451
- /** Image preview file format. */
6452
- export var ImagePreviewFormat;
6453
- (function (ImagePreviewFormat) {
6454
- ImagePreviewFormat["Jpeg"] = "Jpeg";
6455
- ImagePreviewFormat["Png"] = "Png";
6456
- })(ImagePreviewFormat || (ImagePreviewFormat = {}));
6457
- /** Image preview fit mode. */
6458
- export var ImagePreviewFitMode;
6459
- (function (ImagePreviewFitMode) {
6460
- ImagePreviewFitMode["Fit"] = "Fit";
6461
- ImagePreviewFitMode["Shrink"] = "Shrink";
6462
- ImagePreviewFitMode["Resize"] = "Resize";
6463
- ImagePreviewFitMode["Fill"] = "Fill";
6464
- })(ImagePreviewFitMode || (ImagePreviewFitMode = {}));
6465
6490
  export var DesignElementType;
6466
6491
  (function (DesignElementType) {
6467
6492
  DesignElementType["Product"] = "Product";
@@ -6471,18 +6496,27 @@ export var DesignElementType;
6471
6496
  DesignElementType["PrintArea"] = "PrintArea";
6472
6497
  DesignElementType["Item"] = "Item";
6473
6498
  })(DesignElementType || (DesignElementType = {}));
6474
- /** Available patch type. */
6475
- export var ProductPatchType;
6476
- (function (ProductPatchType) {
6477
- ProductPatchType["Undefined"] = "Undefined";
6478
- ProductPatchType["ReplaceImageItemFile"] = "ReplaceImageItemFile";
6479
- ProductPatchType["ReplacePlaceholderItemContent"] = "ReplacePlaceholderItemContent";
6480
- })(ProductPatchType || (ProductPatchType = {}));
6481
- /** Placeholder item content type. */
6482
- export var PlaceholderItemContentType;
6483
- (function (PlaceholderItemContentType) {
6484
- PlaceholderItemContentType["Image"] = "Image";
6485
- })(PlaceholderItemContentType || (PlaceholderItemContentType = {}));
6499
+ /** Image preview fit mode. */
6500
+ export var ImagePreviewFitMode;
6501
+ (function (ImagePreviewFitMode) {
6502
+ ImagePreviewFitMode["Fit"] = "Fit";
6503
+ ImagePreviewFitMode["Shrink"] = "Shrink";
6504
+ ImagePreviewFitMode["Resize"] = "Resize";
6505
+ ImagePreviewFitMode["Fill"] = "Fill";
6506
+ })(ImagePreviewFitMode || (ImagePreviewFitMode = {}));
6507
+ /** Image preview file format. */
6508
+ export var ImagePreviewFormat;
6509
+ (function (ImagePreviewFormat) {
6510
+ ImagePreviewFormat["Jpeg"] = "Jpeg";
6511
+ ImagePreviewFormat["Png"] = "Png";
6512
+ })(ImagePreviewFormat || (ImagePreviewFormat = {}));
6513
+ /** Item source types. */
6514
+ export var ItemSourceType;
6515
+ (function (ItemSourceType) {
6516
+ ItemSourceType["File"] = "File";
6517
+ ItemSourceType["ImageStorage"] = "ImageStorage";
6518
+ ItemSourceType["PrivateImageStorage"] = "PrivateImageStorage";
6519
+ })(ItemSourceType || (ItemSourceType = {}));
6486
6520
  export var ItemType;
6487
6521
  (function (ItemType) {
6488
6522
  ItemType["Image"] = "Image";
@@ -6490,13 +6524,24 @@ export var ItemType;
6490
6524
  ItemType["Clipart"] = "Clipart";
6491
6525
  ItemType["Group"] = "Group";
6492
6526
  })(ItemType || (ItemType = {}));
6493
- /** Item souce types. */
6494
- export var ItemSourceType;
6495
- (function (ItemSourceType) {
6496
- ItemSourceType["File"] = "File";
6497
- ItemSourceType["ImageStorage"] = "ImageStorage";
6498
- ItemSourceType["PrivateImageStorage"] = "PrivateImageStorage";
6499
- })(ItemSourceType || (ItemSourceType = {}));
6527
+ /** Placeholder item content type. */
6528
+ export var PlaceholderItemContentType;
6529
+ (function (PlaceholderItemContentType) {
6530
+ PlaceholderItemContentType["Image"] = "Image";
6531
+ })(PlaceholderItemContentType || (PlaceholderItemContentType = {}));
6532
+ /** Available patch type. */
6533
+ export var ProductPatchType;
6534
+ (function (ProductPatchType) {
6535
+ ProductPatchType["Undefined"] = "Undefined";
6536
+ ProductPatchType["ReplaceImageItemFile"] = "ReplaceImageItemFile";
6537
+ ProductPatchType["ReplacePlaceholderItemContent"] = "ReplacePlaceholderItemContent";
6538
+ })(ProductPatchType || (ProductPatchType = {}));
6539
+ /** Product preview file format. */
6540
+ export var ProductPreviewFormat;
6541
+ (function (ProductPreviewFormat) {
6542
+ ProductPreviewFormat["Jpeg"] = "Jpeg";
6543
+ ProductPreviewFormat["Png"] = "Png";
6544
+ })(ProductPreviewFormat || (ProductPreviewFormat = {}));
6500
6545
  export var ProductProofFormat;
6501
6546
  (function (ProductProofFormat) {
6502
6547
  ProductProofFormat["Jpeg"] = "Jpeg";
@@ -6518,12 +6563,6 @@ export var ProductProofInterpolationMode;
6518
6563
  ProductProofInterpolationMode["Anisotropic9"] = "Anisotropic9";
6519
6564
  ProductProofInterpolationMode["Lanczos3"] = "Lanczos3";
6520
6565
  })(ProductProofInterpolationMode || (ProductProofInterpolationMode = {}));
6521
- /** Product preview file format. */
6522
- export var ProductPreviewFormat;
6523
- (function (ProductPreviewFormat) {
6524
- ProductPreviewFormat["Jpeg"] = "Jpeg";
6525
- ProductPreviewFormat["Png"] = "Png";
6526
- })(ProductPreviewFormat || (ProductPreviewFormat = {}));
6527
6566
  export class ApiException extends Error {
6528
6567
  message;
6529
6568
  status;