@aurigma/ng-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.
- package/aurigma-ng-design-atoms-api-client.metadata.json +1 -1
- package/bundles/aurigma-ng-design-atoms-api-client.umd.js +781 -643
- package/bundles/aurigma-ng-design-atoms-api-client.umd.js.map +1 -1
- package/bundles/aurigma-ng-design-atoms-api-client.umd.min.js +1 -1
- package/bundles/aurigma-ng-design-atoms-api-client.umd.min.js.map +1 -1
- package/esm2015/aurigma-ng-design-atoms-api-client.js +1 -1
- package/esm2015/lib/design-atoms-api-client.js +793 -648
- package/esm2015/lib/design-atoms-api.module.js +1 -1
- package/esm2015/public-api.js +1 -1
- package/fesm2015/aurigma-ng-design-atoms-api-client.js +793 -648
- package/fesm2015/aurigma-ng-design-atoms-api-client.js.map +1 -1
- package/lib/design-atoms-api-client.d.ts +514 -531
- package/package.json +1 -1
|
@@ -96,13 +96,6 @@ class BuildInfoApiClient extends ApiClientBase {
|
|
|
96
96
|
return of(null);
|
|
97
97
|
}));
|
|
98
98
|
}
|
|
99
|
-
else if (status === 500) {
|
|
100
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101
|
-
let result500 = null;
|
|
102
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
103
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
104
|
-
}));
|
|
105
|
-
}
|
|
106
99
|
else if (status !== 200 && status !== 204) {
|
|
107
100
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
108
101
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -158,13 +151,6 @@ class BuildInfoApiClient extends ApiClientBase {
|
|
|
158
151
|
return of(result200);
|
|
159
152
|
}));
|
|
160
153
|
}
|
|
161
|
-
else if (status === 500) {
|
|
162
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
163
|
-
let result500 = null;
|
|
164
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
165
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
166
|
-
}));
|
|
167
|
-
}
|
|
168
154
|
else if (status !== 200 && status !== 204) {
|
|
169
155
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
170
156
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -208,7 +194,7 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
208
194
|
responseType: "blob",
|
|
209
195
|
headers: new HttpHeaders({
|
|
210
196
|
"Content-Type": "application/json",
|
|
211
|
-
"Accept": "
|
|
197
|
+
"Accept": "text/css"
|
|
212
198
|
})
|
|
213
199
|
};
|
|
214
200
|
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
@@ -245,11 +231,14 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
245
231
|
return of(result200);
|
|
246
232
|
}));
|
|
247
233
|
}
|
|
248
|
-
else if (status ===
|
|
234
|
+
else if (status === 401) {
|
|
235
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
236
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
237
|
+
}));
|
|
238
|
+
}
|
|
239
|
+
else if (status === 403) {
|
|
249
240
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
250
|
-
|
|
251
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
252
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
241
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
253
242
|
}));
|
|
254
243
|
}
|
|
255
244
|
else if (status !== 200 && status !== 204) {
|
|
@@ -318,11 +307,14 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
318
307
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
319
308
|
}));
|
|
320
309
|
}
|
|
321
|
-
else if (status ===
|
|
310
|
+
else if (status === 401) {
|
|
311
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
312
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
313
|
+
}));
|
|
314
|
+
}
|
|
315
|
+
else if (status === 403) {
|
|
322
316
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
323
|
-
|
|
324
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
325
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
317
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
326
318
|
}));
|
|
327
319
|
}
|
|
328
320
|
else if (status !== 200 && status !== 204) {
|
|
@@ -386,11 +378,14 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
386
378
|
return of(result200);
|
|
387
379
|
}));
|
|
388
380
|
}
|
|
389
|
-
else if (status ===
|
|
381
|
+
else if (status === 401) {
|
|
382
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
383
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
384
|
+
}));
|
|
385
|
+
}
|
|
386
|
+
else if (status === 403) {
|
|
390
387
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
391
|
-
|
|
392
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
393
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
388
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
394
389
|
}));
|
|
395
390
|
}
|
|
396
391
|
else if (status !== 200 && status !== 204) {
|
|
@@ -454,11 +449,14 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
454
449
|
return of(result200);
|
|
455
450
|
}));
|
|
456
451
|
}
|
|
457
|
-
else if (status ===
|
|
452
|
+
else if (status === 401) {
|
|
453
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
454
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
455
|
+
}));
|
|
456
|
+
}
|
|
457
|
+
else if (status === 403) {
|
|
458
458
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
459
|
-
|
|
460
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
461
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
459
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
462
460
|
}));
|
|
463
461
|
}
|
|
464
462
|
else if (status !== 200 && status !== 204) {
|
|
@@ -477,7 +475,9 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
477
475
|
if (tenantId === undefined || tenantId === null)
|
|
478
476
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
479
477
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
480
|
-
if (fontKey
|
|
478
|
+
if (fontKey === null)
|
|
479
|
+
throw new Error("The parameter 'fontKey' cannot be null.");
|
|
480
|
+
else if (fontKey !== undefined)
|
|
481
481
|
url_ += "fontKey=" + encodeURIComponent("" + fontKey) + "&";
|
|
482
482
|
url_ = url_.replace(/[?&]$/, "");
|
|
483
483
|
let options_ = {
|
|
@@ -527,11 +527,14 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
527
527
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
528
528
|
}));
|
|
529
529
|
}
|
|
530
|
-
else if (status ===
|
|
530
|
+
else if (status === 401) {
|
|
531
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
532
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
533
|
+
}));
|
|
534
|
+
}
|
|
535
|
+
else if (status === 403) {
|
|
531
536
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
532
|
-
|
|
533
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
534
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
537
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
535
538
|
}));
|
|
536
539
|
}
|
|
537
540
|
else if (status !== 200 && status !== 204) {
|
|
@@ -584,17 +587,21 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
584
587
|
_headers[key] = response.headers.get(key);
|
|
585
588
|
}
|
|
586
589
|
}
|
|
587
|
-
if (status === 200
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
590
|
+
if (status === 200) {
|
|
591
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
592
|
+
let result200 = null;
|
|
593
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
594
|
+
return of(result200);
|
|
595
|
+
}));
|
|
596
|
+
}
|
|
597
|
+
else if (status === 401) {
|
|
598
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
599
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
600
|
+
}));
|
|
592
601
|
}
|
|
593
|
-
else if (status ===
|
|
602
|
+
else if (status === 403) {
|
|
594
603
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
595
|
-
|
|
596
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
597
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
604
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
598
605
|
}));
|
|
599
606
|
}
|
|
600
607
|
else if (status !== 200 && status !== 204) {
|
|
@@ -658,11 +665,14 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
658
665
|
return of(result200);
|
|
659
666
|
}));
|
|
660
667
|
}
|
|
661
|
-
else if (status ===
|
|
668
|
+
else if (status === 401) {
|
|
669
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
670
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
671
|
+
}));
|
|
672
|
+
}
|
|
673
|
+
else if (status === 403) {
|
|
662
674
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
663
|
-
|
|
664
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
665
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
675
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
666
676
|
}));
|
|
667
677
|
}
|
|
668
678
|
else if (status !== 200 && status !== 204) {
|
|
@@ -726,11 +736,14 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
726
736
|
return of(result200);
|
|
727
737
|
}));
|
|
728
738
|
}
|
|
729
|
-
else if (status ===
|
|
739
|
+
else if (status === 401) {
|
|
740
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
741
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
742
|
+
}));
|
|
743
|
+
}
|
|
744
|
+
else if (status === 403) {
|
|
730
745
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
731
|
-
|
|
732
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
733
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
746
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
734
747
|
}));
|
|
735
748
|
}
|
|
736
749
|
else if (status !== 200 && status !== 204) {
|
|
@@ -794,11 +807,14 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
794
807
|
return of(result200);
|
|
795
808
|
}));
|
|
796
809
|
}
|
|
797
|
-
else if (status ===
|
|
810
|
+
else if (status === 401) {
|
|
811
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
812
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
813
|
+
}));
|
|
814
|
+
}
|
|
815
|
+
else if (status === 403) {
|
|
798
816
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
799
|
-
|
|
800
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
801
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
817
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
802
818
|
}));
|
|
803
819
|
}
|
|
804
820
|
else if (status !== 200 && status !== 204) {
|
|
@@ -834,41 +850,77 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
834
850
|
if (tenantId === undefined || tenantId === null)
|
|
835
851
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
836
852
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
837
|
-
if (f
|
|
853
|
+
if (f === null)
|
|
854
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
855
|
+
else if (f !== undefined)
|
|
838
856
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
839
|
-
if (w
|
|
857
|
+
if (w === null)
|
|
858
|
+
throw new Error("The parameter 'w' cannot be null.");
|
|
859
|
+
else if (w !== undefined)
|
|
840
860
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
841
|
-
if (h
|
|
861
|
+
if (h === null)
|
|
862
|
+
throw new Error("The parameter 'h' cannot be null.");
|
|
863
|
+
else if (h !== undefined)
|
|
842
864
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
843
|
-
if (cmyk
|
|
865
|
+
if (cmyk === null)
|
|
866
|
+
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
867
|
+
else if (cmyk !== undefined)
|
|
844
868
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
845
|
-
if (rgb
|
|
869
|
+
if (rgb === null)
|
|
870
|
+
throw new Error("The parameter 'rgb' cannot be null.");
|
|
871
|
+
else if (rgb !== undefined)
|
|
846
872
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
847
|
-
if (grayscale
|
|
873
|
+
if (grayscale === null)
|
|
874
|
+
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
875
|
+
else if (grayscale !== undefined)
|
|
848
876
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
849
|
-
if (target
|
|
877
|
+
if (target === null)
|
|
878
|
+
throw new Error("The parameter 'target' cannot be null.");
|
|
879
|
+
else if (target !== undefined)
|
|
850
880
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
851
|
-
if (sq
|
|
881
|
+
if (sq === null)
|
|
882
|
+
throw new Error("The parameter 'sq' cannot be null.");
|
|
883
|
+
else if (sq !== undefined)
|
|
852
884
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
853
|
-
if (effect
|
|
885
|
+
if (effect === null)
|
|
886
|
+
throw new Error("The parameter 'effect' cannot be null.");
|
|
887
|
+
else if (effect !== undefined)
|
|
854
888
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
855
|
-
if (kp
|
|
889
|
+
if (kp === null)
|
|
890
|
+
throw new Error("The parameter 'kp' cannot be null.");
|
|
891
|
+
else if (kp !== undefined)
|
|
856
892
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
857
|
-
if (color
|
|
893
|
+
if (color === null)
|
|
894
|
+
throw new Error("The parameter 'color' cannot be null.");
|
|
895
|
+
else if (color !== undefined)
|
|
858
896
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
859
|
-
if (obm
|
|
897
|
+
if (obm === null)
|
|
898
|
+
throw new Error("The parameter 'obm' cannot be null.");
|
|
899
|
+
else if (obm !== undefined)
|
|
860
900
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
861
|
-
if (oo
|
|
901
|
+
if (oo === null)
|
|
902
|
+
throw new Error("The parameter 'oo' cannot be null.");
|
|
903
|
+
else if (oo !== undefined)
|
|
862
904
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
863
|
-
if (alphaMask
|
|
905
|
+
if (alphaMask === null)
|
|
906
|
+
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
907
|
+
else if (alphaMask !== undefined)
|
|
864
908
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
865
|
-
if (page
|
|
909
|
+
if (page === null)
|
|
910
|
+
throw new Error("The parameter 'page' cannot be null.");
|
|
911
|
+
else if (page !== undefined)
|
|
866
912
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
867
|
-
if (colorizeColor
|
|
913
|
+
if (colorizeColor === null)
|
|
914
|
+
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
915
|
+
else if (colorizeColor !== undefined)
|
|
868
916
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
869
|
-
if (rw
|
|
917
|
+
if (rw === null)
|
|
918
|
+
throw new Error("The parameter 'rw' cannot be null.");
|
|
919
|
+
else if (rw !== undefined)
|
|
870
920
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
871
|
-
if (rh
|
|
921
|
+
if (rh === null)
|
|
922
|
+
throw new Error("The parameter 'rh' cannot be null.");
|
|
923
|
+
else if (rh !== undefined)
|
|
872
924
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
873
925
|
url_ = url_.replace(/[?&]$/, "");
|
|
874
926
|
let options_ = {
|
|
@@ -923,11 +975,14 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
923
975
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
924
976
|
}));
|
|
925
977
|
}
|
|
926
|
-
else if (status ===
|
|
978
|
+
else if (status === 401) {
|
|
979
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
980
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
981
|
+
}));
|
|
982
|
+
}
|
|
983
|
+
else if (status === 403) {
|
|
927
984
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
928
|
-
|
|
929
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
930
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
985
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
931
986
|
}));
|
|
932
987
|
}
|
|
933
988
|
else if (status !== 200 && status !== 204) {
|
|
@@ -987,11 +1042,14 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
987
1042
|
return of(result200);
|
|
988
1043
|
}));
|
|
989
1044
|
}
|
|
990
|
-
else if (status ===
|
|
1045
|
+
else if (status === 401) {
|
|
1046
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1047
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1048
|
+
}));
|
|
1049
|
+
}
|
|
1050
|
+
else if (status === 403) {
|
|
991
1051
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
992
|
-
|
|
993
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
994
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1052
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
995
1053
|
}));
|
|
996
1054
|
}
|
|
997
1055
|
else if (status !== 200 && status !== 204) {
|
|
@@ -1010,7 +1068,9 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1010
1068
|
if (tenantId === undefined || tenantId === null)
|
|
1011
1069
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
1012
1070
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
1013
|
-
if (f
|
|
1071
|
+
if (f === null)
|
|
1072
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
1073
|
+
else if (f !== undefined)
|
|
1014
1074
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
1015
1075
|
url_ = url_.replace(/[?&]$/, "");
|
|
1016
1076
|
let options_ = {
|
|
@@ -1065,11 +1125,14 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1065
1125
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1066
1126
|
}));
|
|
1067
1127
|
}
|
|
1068
|
-
else if (status ===
|
|
1128
|
+
else if (status === 401) {
|
|
1129
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1130
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1131
|
+
}));
|
|
1132
|
+
}
|
|
1133
|
+
else if (status === 403) {
|
|
1069
1134
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1070
|
-
|
|
1071
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1072
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1135
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1073
1136
|
}));
|
|
1074
1137
|
}
|
|
1075
1138
|
else if (status !== 200 && status !== 204) {
|
|
@@ -1088,7 +1151,9 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1088
1151
|
if (tenantId === undefined || tenantId === null)
|
|
1089
1152
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
1090
1153
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
1091
|
-
if (image
|
|
1154
|
+
if (image === null)
|
|
1155
|
+
throw new Error("The parameter 'image' cannot be null.");
|
|
1156
|
+
else if (image !== undefined)
|
|
1092
1157
|
url_ += "image=" + encodeURIComponent("" + image) + "&";
|
|
1093
1158
|
url_ = url_.replace(/[?&]$/, "");
|
|
1094
1159
|
let options_ = {
|
|
@@ -1138,11 +1203,14 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1138
1203
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1139
1204
|
}));
|
|
1140
1205
|
}
|
|
1141
|
-
else if (status ===
|
|
1206
|
+
else if (status === 401) {
|
|
1207
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1208
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1209
|
+
}));
|
|
1210
|
+
}
|
|
1211
|
+
else if (status === 403) {
|
|
1142
1212
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1143
|
-
|
|
1144
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1145
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1213
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1146
1214
|
}));
|
|
1147
1215
|
}
|
|
1148
1216
|
else if (status !== 200 && status !== 204) {
|
|
@@ -1178,41 +1246,77 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1178
1246
|
if (tenantId === undefined || tenantId === null)
|
|
1179
1247
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
1180
1248
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
1181
|
-
if (f
|
|
1249
|
+
if (f === null)
|
|
1250
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
1251
|
+
else if (f !== undefined)
|
|
1182
1252
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
1183
|
-
if (w
|
|
1253
|
+
if (w === null)
|
|
1254
|
+
throw new Error("The parameter 'w' cannot be null.");
|
|
1255
|
+
else if (w !== undefined)
|
|
1184
1256
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
1185
|
-
if (h
|
|
1257
|
+
if (h === null)
|
|
1258
|
+
throw new Error("The parameter 'h' cannot be null.");
|
|
1259
|
+
else if (h !== undefined)
|
|
1186
1260
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
1187
|
-
if (cmyk
|
|
1261
|
+
if (cmyk === null)
|
|
1262
|
+
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
1263
|
+
else if (cmyk !== undefined)
|
|
1188
1264
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
1189
|
-
if (rgb
|
|
1265
|
+
if (rgb === null)
|
|
1266
|
+
throw new Error("The parameter 'rgb' cannot be null.");
|
|
1267
|
+
else if (rgb !== undefined)
|
|
1190
1268
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
1191
|
-
if (grayscale
|
|
1269
|
+
if (grayscale === null)
|
|
1270
|
+
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
1271
|
+
else if (grayscale !== undefined)
|
|
1192
1272
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
1193
|
-
if (target
|
|
1273
|
+
if (target === null)
|
|
1274
|
+
throw new Error("The parameter 'target' cannot be null.");
|
|
1275
|
+
else if (target !== undefined)
|
|
1194
1276
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
1195
|
-
if (sq
|
|
1277
|
+
if (sq === null)
|
|
1278
|
+
throw new Error("The parameter 'sq' cannot be null.");
|
|
1279
|
+
else if (sq !== undefined)
|
|
1196
1280
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
1197
|
-
if (effect
|
|
1281
|
+
if (effect === null)
|
|
1282
|
+
throw new Error("The parameter 'effect' cannot be null.");
|
|
1283
|
+
else if (effect !== undefined)
|
|
1198
1284
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
1199
|
-
if (kp
|
|
1285
|
+
if (kp === null)
|
|
1286
|
+
throw new Error("The parameter 'kp' cannot be null.");
|
|
1287
|
+
else if (kp !== undefined)
|
|
1200
1288
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
1201
|
-
if (color
|
|
1289
|
+
if (color === null)
|
|
1290
|
+
throw new Error("The parameter 'color' cannot be null.");
|
|
1291
|
+
else if (color !== undefined)
|
|
1202
1292
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
1203
|
-
if (obm
|
|
1293
|
+
if (obm === null)
|
|
1294
|
+
throw new Error("The parameter 'obm' cannot be null.");
|
|
1295
|
+
else if (obm !== undefined)
|
|
1204
1296
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
1205
|
-
if (oo
|
|
1297
|
+
if (oo === null)
|
|
1298
|
+
throw new Error("The parameter 'oo' cannot be null.");
|
|
1299
|
+
else if (oo !== undefined)
|
|
1206
1300
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
1207
|
-
if (alphaMask
|
|
1301
|
+
if (alphaMask === null)
|
|
1302
|
+
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
1303
|
+
else if (alphaMask !== undefined)
|
|
1208
1304
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
1209
|
-
if (page
|
|
1305
|
+
if (page === null)
|
|
1306
|
+
throw new Error("The parameter 'page' cannot be null.");
|
|
1307
|
+
else if (page !== undefined)
|
|
1210
1308
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
1211
|
-
if (colorizeColor
|
|
1309
|
+
if (colorizeColor === null)
|
|
1310
|
+
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
1311
|
+
else if (colorizeColor !== undefined)
|
|
1212
1312
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
1213
|
-
if (rw
|
|
1313
|
+
if (rw === null)
|
|
1314
|
+
throw new Error("The parameter 'rw' cannot be null.");
|
|
1315
|
+
else if (rw !== undefined)
|
|
1214
1316
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
1215
|
-
if (rh
|
|
1317
|
+
if (rh === null)
|
|
1318
|
+
throw new Error("The parameter 'rh' cannot be null.");
|
|
1319
|
+
else if (rh !== undefined)
|
|
1216
1320
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
1217
1321
|
url_ = url_.replace(/[?&]$/, "");
|
|
1218
1322
|
let options_ = {
|
|
@@ -1267,11 +1371,14 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1267
1371
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1268
1372
|
}));
|
|
1269
1373
|
}
|
|
1270
|
-
else if (status ===
|
|
1374
|
+
else if (status === 401) {
|
|
1375
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1376
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1377
|
+
}));
|
|
1378
|
+
}
|
|
1379
|
+
else if (status === 403) {
|
|
1271
1380
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1272
|
-
|
|
1273
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1274
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1381
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1275
1382
|
}));
|
|
1276
1383
|
}
|
|
1277
1384
|
else if (status !== 200 && status !== 204) {
|
|
@@ -1290,7 +1397,9 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1290
1397
|
if (tenantId === undefined || tenantId === null)
|
|
1291
1398
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
1292
1399
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
1293
|
-
if (f
|
|
1400
|
+
if (f === null)
|
|
1401
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
1402
|
+
else if (f !== undefined)
|
|
1294
1403
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
1295
1404
|
url_ = url_.replace(/[?&]$/, "");
|
|
1296
1405
|
let options_ = {
|
|
@@ -1345,11 +1454,14 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1345
1454
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1346
1455
|
}));
|
|
1347
1456
|
}
|
|
1348
|
-
else if (status ===
|
|
1457
|
+
else if (status === 401) {
|
|
1458
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1459
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1460
|
+
}));
|
|
1461
|
+
}
|
|
1462
|
+
else if (status === 403) {
|
|
1349
1463
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1350
|
-
|
|
1351
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1352
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1464
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1353
1465
|
}));
|
|
1354
1466
|
}
|
|
1355
1467
|
else if (status !== 200 && status !== 204) {
|
|
@@ -1413,11 +1525,14 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1413
1525
|
return of(result200);
|
|
1414
1526
|
}));
|
|
1415
1527
|
}
|
|
1416
|
-
else if (status ===
|
|
1528
|
+
else if (status === 401) {
|
|
1529
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1530
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1531
|
+
}));
|
|
1532
|
+
}
|
|
1533
|
+
else if (status === 403) {
|
|
1417
1534
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1418
|
-
|
|
1419
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1420
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1535
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1421
1536
|
}));
|
|
1422
1537
|
}
|
|
1423
1538
|
else if (status !== 200 && status !== 204) {
|
|
@@ -1481,11 +1596,14 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1481
1596
|
return of(result200);
|
|
1482
1597
|
}));
|
|
1483
1598
|
}
|
|
1484
|
-
else if (status ===
|
|
1599
|
+
else if (status === 401) {
|
|
1600
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1601
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1602
|
+
}));
|
|
1603
|
+
}
|
|
1604
|
+
else if (status === 403) {
|
|
1485
1605
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1486
|
-
|
|
1487
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1488
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1606
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1489
1607
|
}));
|
|
1490
1608
|
}
|
|
1491
1609
|
else if (status !== 200 && status !== 204) {
|
|
@@ -1549,11 +1667,14 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1549
1667
|
return of(result200);
|
|
1550
1668
|
}));
|
|
1551
1669
|
}
|
|
1552
|
-
else if (status ===
|
|
1670
|
+
else if (status === 401) {
|
|
1671
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1672
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1673
|
+
}));
|
|
1674
|
+
}
|
|
1675
|
+
else if (status === 403) {
|
|
1553
1676
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1554
|
-
|
|
1555
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1556
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1677
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1557
1678
|
}));
|
|
1558
1679
|
}
|
|
1559
1680
|
else if (status !== 200 && status !== 204) {
|
|
@@ -1617,11 +1738,14 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1617
1738
|
return of(result200);
|
|
1618
1739
|
}));
|
|
1619
1740
|
}
|
|
1620
|
-
else if (status ===
|
|
1741
|
+
else if (status === 401) {
|
|
1742
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1743
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1744
|
+
}));
|
|
1745
|
+
}
|
|
1746
|
+
else if (status === 403) {
|
|
1621
1747
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1622
|
-
|
|
1623
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1624
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1748
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1625
1749
|
}));
|
|
1626
1750
|
}
|
|
1627
1751
|
else if (status !== 200 && status !== 204) {
|
|
@@ -1685,11 +1809,14 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1685
1809
|
return of(result200);
|
|
1686
1810
|
}));
|
|
1687
1811
|
}
|
|
1688
|
-
else if (status ===
|
|
1812
|
+
else if (status === 401) {
|
|
1813
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1814
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1815
|
+
}));
|
|
1816
|
+
}
|
|
1817
|
+
else if (status === 403) {
|
|
1689
1818
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1690
|
-
|
|
1691
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1692
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1819
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1693
1820
|
}));
|
|
1694
1821
|
}
|
|
1695
1822
|
else if (status !== 200 && status !== 204) {
|
|
@@ -1753,11 +1880,14 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1753
1880
|
return of(result200);
|
|
1754
1881
|
}));
|
|
1755
1882
|
}
|
|
1756
|
-
else if (status ===
|
|
1883
|
+
else if (status === 401) {
|
|
1884
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1885
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1886
|
+
}));
|
|
1887
|
+
}
|
|
1888
|
+
else if (status === 403) {
|
|
1757
1889
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1758
|
-
|
|
1759
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1760
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1890
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1761
1891
|
}));
|
|
1762
1892
|
}
|
|
1763
1893
|
else if (status !== 200 && status !== 204) {
|
|
@@ -1821,11 +1951,14 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1821
1951
|
return of(result200);
|
|
1822
1952
|
}));
|
|
1823
1953
|
}
|
|
1824
|
-
else if (status ===
|
|
1954
|
+
else if (status === 401) {
|
|
1955
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1956
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1957
|
+
}));
|
|
1958
|
+
}
|
|
1959
|
+
else if (status === 403) {
|
|
1825
1960
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1826
|
-
|
|
1827
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1828
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1961
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1829
1962
|
}));
|
|
1830
1963
|
}
|
|
1831
1964
|
else if (status !== 200 && status !== 204) {
|
|
@@ -1889,11 +2022,14 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1889
2022
|
return of(result200);
|
|
1890
2023
|
}));
|
|
1891
2024
|
}
|
|
1892
|
-
else if (status ===
|
|
2025
|
+
else if (status === 401) {
|
|
2026
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2027
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
2028
|
+
}));
|
|
2029
|
+
}
|
|
2030
|
+
else if (status === 403) {
|
|
1893
2031
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1894
|
-
|
|
1895
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1896
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2032
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1897
2033
|
}));
|
|
1898
2034
|
}
|
|
1899
2035
|
else if (status !== 200 && status !== 204) {
|
|
@@ -1957,11 +2093,14 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1957
2093
|
return of(result200);
|
|
1958
2094
|
}));
|
|
1959
2095
|
}
|
|
1960
|
-
else if (status ===
|
|
2096
|
+
else if (status === 401) {
|
|
2097
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2098
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
2099
|
+
}));
|
|
2100
|
+
}
|
|
2101
|
+
else if (status === 403) {
|
|
1961
2102
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1962
|
-
|
|
1963
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1964
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2103
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1965
2104
|
}));
|
|
1966
2105
|
}
|
|
1967
2106
|
else if (status !== 200 && status !== 204) {
|
|
@@ -2025,11 +2164,14 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
2025
2164
|
return of(result200);
|
|
2026
2165
|
}));
|
|
2027
2166
|
}
|
|
2028
|
-
else if (status ===
|
|
2167
|
+
else if (status === 401) {
|
|
2168
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2169
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
2170
|
+
}));
|
|
2171
|
+
}
|
|
2172
|
+
else if (status === 403) {
|
|
2029
2173
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2030
|
-
|
|
2031
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2032
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2174
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
2033
2175
|
}));
|
|
2034
2176
|
}
|
|
2035
2177
|
else if (status !== 200 && status !== 204) {
|
|
@@ -2093,11 +2235,14 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
2093
2235
|
return of(result200);
|
|
2094
2236
|
}));
|
|
2095
2237
|
}
|
|
2096
|
-
else if (status ===
|
|
2238
|
+
else if (status === 401) {
|
|
2239
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2240
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
2241
|
+
}));
|
|
2242
|
+
}
|
|
2243
|
+
else if (status === 403) {
|
|
2097
2244
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2098
|
-
|
|
2099
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2100
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2245
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
2101
2246
|
}));
|
|
2102
2247
|
}
|
|
2103
2248
|
else if (status !== 200 && status !== 204) {
|
|
@@ -2136,7 +2281,9 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2136
2281
|
*/
|
|
2137
2282
|
renderImagePreview(attachment, tenantId, body) {
|
|
2138
2283
|
let url_ = this.baseUrl + "/api/atoms/v1/images/render-preview?";
|
|
2139
|
-
if (attachment
|
|
2284
|
+
if (attachment === null)
|
|
2285
|
+
throw new Error("The parameter 'attachment' cannot be null.");
|
|
2286
|
+
else if (attachment !== undefined)
|
|
2140
2287
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
2141
2288
|
if (tenantId === null)
|
|
2142
2289
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2196,13 +2343,6 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2196
2343
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2197
2344
|
}));
|
|
2198
2345
|
}
|
|
2199
|
-
else if (status === 500) {
|
|
2200
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2201
|
-
let result500 = null;
|
|
2202
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2203
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2204
|
-
}));
|
|
2205
|
-
}
|
|
2206
2346
|
else if (status !== 200 && status !== 204) {
|
|
2207
2347
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2208
2348
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2277,13 +2417,6 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2277
2417
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2278
2418
|
}));
|
|
2279
2419
|
}
|
|
2280
|
-
else if (status === 500) {
|
|
2281
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2282
|
-
let result500 = null;
|
|
2283
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2284
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2285
|
-
}));
|
|
2286
|
-
}
|
|
2287
2420
|
else if (status !== 200 && status !== 204) {
|
|
2288
2421
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2289
2422
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2322,7 +2455,9 @@ class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2322
2455
|
if (id === undefined || id === null)
|
|
2323
2456
|
throw new Error("The parameter 'id' must be defined.");
|
|
2324
2457
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2325
|
-
if (ownerId
|
|
2458
|
+
if (ownerId === null)
|
|
2459
|
+
throw new Error("The parameter 'ownerId' cannot be null.");
|
|
2460
|
+
else if (ownerId !== undefined)
|
|
2326
2461
|
url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
|
|
2327
2462
|
if (tenantId === null)
|
|
2328
2463
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2394,13 +2529,6 @@ class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2394
2529
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2395
2530
|
}));
|
|
2396
2531
|
}
|
|
2397
|
-
else if (status === 500) {
|
|
2398
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2399
|
-
let result500 = null;
|
|
2400
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2401
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2402
|
-
}));
|
|
2403
|
-
}
|
|
2404
2532
|
else if (status !== 200 && status !== 204) {
|
|
2405
2533
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2406
2534
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2420,7 +2548,9 @@ class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2420
2548
|
if (id === undefined || id === null)
|
|
2421
2549
|
throw new Error("The parameter 'id' must be defined.");
|
|
2422
2550
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2423
|
-
if (ownerId
|
|
2551
|
+
if (ownerId === null)
|
|
2552
|
+
throw new Error("The parameter 'ownerId' cannot be null.");
|
|
2553
|
+
else if (ownerId !== undefined)
|
|
2424
2554
|
url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
|
|
2425
2555
|
if (tenantId === null)
|
|
2426
2556
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2431,7 +2561,7 @@ class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2431
2561
|
observe: "response",
|
|
2432
2562
|
responseType: "blob",
|
|
2433
2563
|
headers: new HttpHeaders({
|
|
2434
|
-
"Accept": "application/
|
|
2564
|
+
"Accept": "application/json"
|
|
2435
2565
|
})
|
|
2436
2566
|
};
|
|
2437
2567
|
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
@@ -2491,13 +2621,6 @@ class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2491
2621
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2492
2622
|
}));
|
|
2493
2623
|
}
|
|
2494
|
-
else if (status === 500) {
|
|
2495
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2496
|
-
let result500 = null;
|
|
2497
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2498
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2499
|
-
}));
|
|
2500
|
-
}
|
|
2501
2624
|
else if (status !== 200 && status !== 204) {
|
|
2502
2625
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2503
2626
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2517,7 +2640,9 @@ class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2517
2640
|
if (id === undefined || id === null)
|
|
2518
2641
|
throw new Error("The parameter 'id' must be defined.");
|
|
2519
2642
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2520
|
-
if (ownerId
|
|
2643
|
+
if (ownerId === null)
|
|
2644
|
+
throw new Error("The parameter 'ownerId' cannot be null.");
|
|
2645
|
+
else if (ownerId !== undefined)
|
|
2521
2646
|
url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
|
|
2522
2647
|
if (tenantId === null)
|
|
2523
2648
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2528,7 +2653,7 @@ class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2528
2653
|
observe: "response",
|
|
2529
2654
|
responseType: "blob",
|
|
2530
2655
|
headers: new HttpHeaders({
|
|
2531
|
-
"Accept": "application/
|
|
2656
|
+
"Accept": "application/json"
|
|
2532
2657
|
})
|
|
2533
2658
|
};
|
|
2534
2659
|
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
@@ -2588,13 +2713,6 @@ class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2588
2713
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2589
2714
|
}));
|
|
2590
2715
|
}
|
|
2591
|
-
else if (status === 500) {
|
|
2592
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2593
|
-
let result500 = null;
|
|
2594
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2595
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2596
|
-
}));
|
|
2597
|
-
}
|
|
2598
2716
|
else if (status !== 200 && status !== 204) {
|
|
2599
2717
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2600
2718
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2623,14 +2741,16 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2623
2741
|
}
|
|
2624
2742
|
/**
|
|
2625
2743
|
* Creates new design file with specified parameters and saves it in storage.
|
|
2626
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
2744
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
2627
2745
|
* @param tenantId (optional) Tenant identifier
|
|
2628
|
-
* @param body (optional) Design creation parameters
|
|
2629
|
-
* @return
|
|
2746
|
+
* @param body (optional) Design creation parameters.
|
|
2747
|
+
* @return Created
|
|
2630
2748
|
*/
|
|
2631
2749
|
createDesign(privateStorageOwner, tenantId, body) {
|
|
2632
2750
|
let url_ = this.baseUrl + "/api/atoms/v1/designs?";
|
|
2633
|
-
if (privateStorageOwner
|
|
2751
|
+
if (privateStorageOwner === null)
|
|
2752
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
2753
|
+
else if (privateStorageOwner !== undefined)
|
|
2634
2754
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2635
2755
|
if (tenantId === null)
|
|
2636
2756
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2691,13 +2811,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2691
2811
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2692
2812
|
}));
|
|
2693
2813
|
}
|
|
2694
|
-
else if (status === 500) {
|
|
2695
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2696
|
-
let result500 = null;
|
|
2697
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2698
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2699
|
-
}));
|
|
2700
|
-
}
|
|
2701
2814
|
else if (status !== 200 && status !== 204) {
|
|
2702
2815
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2703
2816
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2718,9 +2831,13 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2718
2831
|
if (id === undefined || id === null)
|
|
2719
2832
|
throw new Error("The parameter 'id' must be defined.");
|
|
2720
2833
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2721
|
-
if (surfaceIndex
|
|
2834
|
+
if (surfaceIndex === null)
|
|
2835
|
+
throw new Error("The parameter 'surfaceIndex' cannot be null.");
|
|
2836
|
+
else if (surfaceIndex !== undefined)
|
|
2722
2837
|
url_ += "surfaceIndex=" + encodeURIComponent("" + surfaceIndex) + "&";
|
|
2723
|
-
if (privateStorageOwner
|
|
2838
|
+
if (privateStorageOwner === null)
|
|
2839
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
2840
|
+
else if (privateStorageOwner !== undefined)
|
|
2724
2841
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2725
2842
|
if (tenantId === null)
|
|
2726
2843
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2791,13 +2908,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2791
2908
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2792
2909
|
}));
|
|
2793
2910
|
}
|
|
2794
|
-
else if (status === 500) {
|
|
2795
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2796
|
-
let result500 = null;
|
|
2797
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2798
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2799
|
-
}));
|
|
2800
|
-
}
|
|
2801
2911
|
else if (status !== 200 && status !== 204) {
|
|
2802
2912
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2803
2913
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2806,9 +2916,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2806
2916
|
return of(null);
|
|
2807
2917
|
}
|
|
2808
2918
|
/**
|
|
2809
|
-
* Loads product (design model) from design file taken from storage
|
|
2810
|
-
* @param id Design identifier
|
|
2811
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
2919
|
+
* Loads product (design model) from design file taken from storage.
|
|
2920
|
+
* @param id Design identifier.
|
|
2921
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
2812
2922
|
* @param tenantId (optional) Tenant identifier
|
|
2813
2923
|
* @return Success
|
|
2814
2924
|
*/
|
|
@@ -2817,7 +2927,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2817
2927
|
if (id === undefined || id === null)
|
|
2818
2928
|
throw new Error("The parameter 'id' must be defined.");
|
|
2819
2929
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2820
|
-
if (privateStorageOwner
|
|
2930
|
+
if (privateStorageOwner === null)
|
|
2931
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
2932
|
+
else if (privateStorageOwner !== undefined)
|
|
2821
2933
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2822
2934
|
if (tenantId === null)
|
|
2823
2935
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2882,13 +2994,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2882
2994
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2883
2995
|
}));
|
|
2884
2996
|
}
|
|
2885
|
-
else if (status === 500) {
|
|
2886
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2887
|
-
let result500 = null;
|
|
2888
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2889
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2890
|
-
}));
|
|
2891
|
-
}
|
|
2892
2997
|
else if (status !== 200 && status !== 204) {
|
|
2893
2998
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2894
2999
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2898,10 +3003,10 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2898
3003
|
}
|
|
2899
3004
|
/**
|
|
2900
3005
|
* Saves product (design model) to design file and updates design in storage.
|
|
2901
|
-
* @param id Design identifier
|
|
2902
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3006
|
+
* @param id Design identifier.
|
|
3007
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
2903
3008
|
* @param tenantId (optional) Tenant identifier
|
|
2904
|
-
* @param body (optional) Serialized product description
|
|
3009
|
+
* @param body (optional) Serialized product description.
|
|
2905
3010
|
* @return Success
|
|
2906
3011
|
*/
|
|
2907
3012
|
saveProduct(id, privateStorageOwner, tenantId, body) {
|
|
@@ -2909,7 +3014,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2909
3014
|
if (id === undefined || id === null)
|
|
2910
3015
|
throw new Error("The parameter 'id' must be defined.");
|
|
2911
3016
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2912
|
-
if (privateStorageOwner
|
|
3017
|
+
if (privateStorageOwner === null)
|
|
3018
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3019
|
+
else if (privateStorageOwner !== undefined)
|
|
2913
3020
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2914
3021
|
if (tenantId === null)
|
|
2915
3022
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2974,13 +3081,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2974
3081
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2975
3082
|
}));
|
|
2976
3083
|
}
|
|
2977
|
-
else if (status === 500) {
|
|
2978
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2979
|
-
let result500 = null;
|
|
2980
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2981
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2982
|
-
}));
|
|
2983
|
-
}
|
|
2984
3084
|
else if (status !== 200 && status !== 204) {
|
|
2985
3085
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2986
3086
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3006,7 +3106,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3006
3106
|
if (id === undefined || id === null)
|
|
3007
3107
|
throw new Error("The parameter 'id' must be defined.");
|
|
3008
3108
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3009
|
-
if (privateStorageOwner
|
|
3109
|
+
if (privateStorageOwner === null)
|
|
3110
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3111
|
+
else if (privateStorageOwner !== undefined)
|
|
3010
3112
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3011
3113
|
if (tenantId === null)
|
|
3012
3114
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3085,13 +3187,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3085
3187
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3086
3188
|
}));
|
|
3087
3189
|
}
|
|
3088
|
-
else if (status === 500) {
|
|
3089
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3090
|
-
let result500 = null;
|
|
3091
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3092
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3093
|
-
}));
|
|
3094
|
-
}
|
|
3095
3190
|
else if (status !== 200 && status !== 204) {
|
|
3096
3191
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3097
3192
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3111,7 +3206,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3111
3206
|
if (id === undefined || id === null)
|
|
3112
3207
|
throw new Error("The parameter 'id' must be defined.");
|
|
3113
3208
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3114
|
-
if (privateStorageOwner
|
|
3209
|
+
if (privateStorageOwner === null)
|
|
3210
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3211
|
+
else if (privateStorageOwner !== undefined)
|
|
3115
3212
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3116
3213
|
if (tenantId === null)
|
|
3117
3214
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3176,13 +3273,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3176
3273
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3177
3274
|
}));
|
|
3178
3275
|
}
|
|
3179
|
-
else if (status === 500) {
|
|
3180
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3181
|
-
let result500 = null;
|
|
3182
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3183
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3184
|
-
}));
|
|
3185
|
-
}
|
|
3186
3276
|
else if (status !== 200 && status !== 204) {
|
|
3187
3277
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3188
3278
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3191,9 +3281,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3191
3281
|
return of(null);
|
|
3192
3282
|
}
|
|
3193
3283
|
/**
|
|
3194
|
-
* Loads data schema from design file taken from storage
|
|
3195
|
-
* @param id Design identifier
|
|
3196
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3284
|
+
* Loads data schema from design file taken from storage.
|
|
3285
|
+
* @param id Design identifier.
|
|
3286
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3197
3287
|
* @param tenantId (optional) Tenant identifier
|
|
3198
3288
|
* @return Success
|
|
3199
3289
|
*/
|
|
@@ -3202,7 +3292,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3202
3292
|
if (id === undefined || id === null)
|
|
3203
3293
|
throw new Error("The parameter 'id' must be defined.");
|
|
3204
3294
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3205
|
-
if (privateStorageOwner
|
|
3295
|
+
if (privateStorageOwner === null)
|
|
3296
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3297
|
+
else if (privateStorageOwner !== undefined)
|
|
3206
3298
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3207
3299
|
if (tenantId === null)
|
|
3208
3300
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3273,13 +3365,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3273
3365
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3274
3366
|
}));
|
|
3275
3367
|
}
|
|
3276
|
-
else if (status === 500) {
|
|
3277
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3278
|
-
let result500 = null;
|
|
3279
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3280
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3281
|
-
}));
|
|
3282
|
-
}
|
|
3283
3368
|
else if (status !== 200 && status !== 204) {
|
|
3284
3369
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3285
3370
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3288,7 +3373,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3288
3373
|
return of(null);
|
|
3289
3374
|
}
|
|
3290
3375
|
/**
|
|
3291
|
-
* Loads toggle set from design file taken from storage.
|
|
3376
|
+
* Loads a toggle set from design file taken from storage.
|
|
3292
3377
|
* @param id Design identifier.
|
|
3293
3378
|
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3294
3379
|
* @param tenantId (optional) Tenant identifier
|
|
@@ -3299,7 +3384,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3299
3384
|
if (id === undefined || id === null)
|
|
3300
3385
|
throw new Error("The parameter 'id' must be defined.");
|
|
3301
3386
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3302
|
-
if (privateStorageOwner
|
|
3387
|
+
if (privateStorageOwner === null)
|
|
3388
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3389
|
+
else if (privateStorageOwner !== undefined)
|
|
3303
3390
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3304
3391
|
if (tenantId === null)
|
|
3305
3392
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3370,13 +3457,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3370
3457
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3371
3458
|
}));
|
|
3372
3459
|
}
|
|
3373
|
-
else if (status === 500) {
|
|
3374
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3375
|
-
let result500 = null;
|
|
3376
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3377
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3378
|
-
}));
|
|
3379
|
-
}
|
|
3380
3460
|
else if (status !== 200 && status !== 204) {
|
|
3381
3461
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3382
3462
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3385,9 +3465,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3385
3465
|
return of(null);
|
|
3386
3466
|
}
|
|
3387
3467
|
/**
|
|
3388
|
-
* Gets variable items information for design file taken from storage
|
|
3389
|
-
* @param id Design identifier
|
|
3390
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3468
|
+
* Gets variable items information for design file taken from storage.
|
|
3469
|
+
* @param id Design identifier.
|
|
3470
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3391
3471
|
* @param tenantId (optional) Tenant identifier
|
|
3392
3472
|
* @return Success
|
|
3393
3473
|
*/
|
|
@@ -3396,7 +3476,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3396
3476
|
if (id === undefined || id === null)
|
|
3397
3477
|
throw new Error("The parameter 'id' must be defined.");
|
|
3398
3478
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3399
|
-
if (privateStorageOwner
|
|
3479
|
+
if (privateStorageOwner === null)
|
|
3480
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3481
|
+
else if (privateStorageOwner !== undefined)
|
|
3400
3482
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3401
3483
|
if (tenantId === null)
|
|
3402
3484
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3461,13 +3543,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3461
3543
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3462
3544
|
}));
|
|
3463
3545
|
}
|
|
3464
|
-
else if (status === 500) {
|
|
3465
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3466
|
-
let result500 = null;
|
|
3467
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3468
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3469
|
-
}));
|
|
3470
|
-
}
|
|
3471
3546
|
else if (status !== 200 && status !== 204) {
|
|
3472
3547
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3473
3548
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3476,11 +3551,11 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3476
3551
|
return of(null);
|
|
3477
3552
|
}
|
|
3478
3553
|
/**
|
|
3479
|
-
* Sets variable items values for design file taken from storage
|
|
3480
|
-
* @param id Design identifier
|
|
3481
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3554
|
+
* Sets variable items values for design file taken from storage.
|
|
3555
|
+
* @param id Design identifier.
|
|
3556
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3482
3557
|
* @param tenantId (optional) Tenant identifier
|
|
3483
|
-
* @param body (optional) Design variable values
|
|
3558
|
+
* @param body (optional) Design variable values.
|
|
3484
3559
|
* @return Success
|
|
3485
3560
|
*/
|
|
3486
3561
|
setVariables(id, privateStorageOwner, tenantId, body) {
|
|
@@ -3488,7 +3563,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3488
3563
|
if (id === undefined || id === null)
|
|
3489
3564
|
throw new Error("The parameter 'id' must be defined.");
|
|
3490
3565
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3491
|
-
if (privateStorageOwner
|
|
3566
|
+
if (privateStorageOwner === null)
|
|
3567
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3568
|
+
else if (privateStorageOwner !== undefined)
|
|
3492
3569
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3493
3570
|
if (tenantId === null)
|
|
3494
3571
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3560,13 +3637,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3560
3637
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3561
3638
|
}));
|
|
3562
3639
|
}
|
|
3563
|
-
else if (status === 500) {
|
|
3564
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3565
|
-
let result500 = null;
|
|
3566
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3567
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3568
|
-
}));
|
|
3569
|
-
}
|
|
3570
3640
|
else if (status !== 200 && status !== 204) {
|
|
3571
3641
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3572
3642
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3575,9 +3645,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3575
3645
|
return of(null);
|
|
3576
3646
|
}
|
|
3577
3647
|
/**
|
|
3578
|
-
* Loads variable data printing information from design file taken from storage
|
|
3579
|
-
* @param id Design identifier
|
|
3580
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3648
|
+
* Loads variable data printing information from design file taken from storage.
|
|
3649
|
+
* @param id Design identifier.
|
|
3650
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3581
3651
|
* @param tenantId (optional) Tenant identifier
|
|
3582
3652
|
* @return Success
|
|
3583
3653
|
*/
|
|
@@ -3586,7 +3656,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3586
3656
|
if (id === undefined || id === null)
|
|
3587
3657
|
throw new Error("The parameter 'id' must be defined.");
|
|
3588
3658
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3589
|
-
if (privateStorageOwner
|
|
3659
|
+
if (privateStorageOwner === null)
|
|
3660
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3661
|
+
else if (privateStorageOwner !== undefined)
|
|
3590
3662
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3591
3663
|
if (tenantId === null)
|
|
3592
3664
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3658,13 +3730,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3658
3730
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3659
3731
|
}));
|
|
3660
3732
|
}
|
|
3661
|
-
else if (status === 500) {
|
|
3662
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3663
|
-
let result500 = null;
|
|
3664
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3665
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3666
|
-
}));
|
|
3667
|
-
}
|
|
3668
3733
|
else if (status !== 200 && status !== 204) {
|
|
3669
3734
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3670
3735
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3674,10 +3739,10 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3674
3739
|
}
|
|
3675
3740
|
/**
|
|
3676
3741
|
* Saves variable data printing information to design file and updates design in storage.
|
|
3677
|
-
* @param id Design identifier
|
|
3678
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3742
|
+
* @param id Design identifier.
|
|
3743
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3679
3744
|
* @param tenantId (optional) Tenant identifier
|
|
3680
|
-
* @param body (optional) Serialized vdp data
|
|
3745
|
+
* @param body (optional) Serialized vdp data.
|
|
3681
3746
|
* @return Success
|
|
3682
3747
|
*/
|
|
3683
3748
|
saveVdpData(id, privateStorageOwner, tenantId, body) {
|
|
@@ -3685,7 +3750,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3685
3750
|
if (id === undefined || id === null)
|
|
3686
3751
|
throw new Error("The parameter 'id' must be defined.");
|
|
3687
3752
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3688
|
-
if (privateStorageOwner
|
|
3753
|
+
if (privateStorageOwner === null)
|
|
3754
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3755
|
+
else if (privateStorageOwner !== undefined)
|
|
3689
3756
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3690
3757
|
if (tenantId === null)
|
|
3691
3758
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3750,13 +3817,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3750
3817
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3751
3818
|
}));
|
|
3752
3819
|
}
|
|
3753
|
-
else if (status === 500) {
|
|
3754
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3755
|
-
let result500 = null;
|
|
3756
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3757
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3758
|
-
}));
|
|
3759
|
-
}
|
|
3760
3820
|
else if (status !== 200 && status !== 204) {
|
|
3761
3821
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3762
3822
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3766,8 +3826,8 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3766
3826
|
}
|
|
3767
3827
|
/**
|
|
3768
3828
|
* Deletes variable data printing information from design file and updates design in storage.
|
|
3769
|
-
* @param id Design identifier
|
|
3770
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3829
|
+
* @param id Design identifier.
|
|
3830
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3771
3831
|
* @param tenantId (optional) Tenant identifier
|
|
3772
3832
|
* @return Success
|
|
3773
3833
|
*/
|
|
@@ -3776,7 +3836,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3776
3836
|
if (id === undefined || id === null)
|
|
3777
3837
|
throw new Error("The parameter 'id' must be defined.");
|
|
3778
3838
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3779
|
-
if (privateStorageOwner
|
|
3839
|
+
if (privateStorageOwner === null)
|
|
3840
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3841
|
+
else if (privateStorageOwner !== undefined)
|
|
3780
3842
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3781
3843
|
if (tenantId === null)
|
|
3782
3844
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3837,13 +3899,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3837
3899
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3838
3900
|
}));
|
|
3839
3901
|
}
|
|
3840
|
-
else if (status === 500) {
|
|
3841
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3842
|
-
let result500 = null;
|
|
3843
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3844
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3845
|
-
}));
|
|
3846
|
-
}
|
|
3847
3902
|
else if (status !== 200 && status !== 204) {
|
|
3848
3903
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3849
3904
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3852,9 +3907,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3852
3907
|
return of(null);
|
|
3853
3908
|
}
|
|
3854
3909
|
/**
|
|
3855
|
-
* Loads product (design model) from resource file taken from storage
|
|
3856
|
-
* @param id Resource identifier
|
|
3857
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3910
|
+
* Loads product (design model) from resource file taken from storage.
|
|
3911
|
+
* @param id Resource identifier.
|
|
3912
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3858
3913
|
* @param tenantId (optional) Tenant identifier
|
|
3859
3914
|
* @return Success
|
|
3860
3915
|
*/
|
|
@@ -3863,7 +3918,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3863
3918
|
if (id === undefined || id === null)
|
|
3864
3919
|
throw new Error("The parameter 'id' must be defined.");
|
|
3865
3920
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3866
|
-
if (privateStorageOwner
|
|
3921
|
+
if (privateStorageOwner === null)
|
|
3922
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3923
|
+
else if (privateStorageOwner !== undefined)
|
|
3867
3924
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3868
3925
|
if (tenantId === null)
|
|
3869
3926
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3935,13 +3992,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3935
3992
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3936
3993
|
}));
|
|
3937
3994
|
}
|
|
3938
|
-
else if (status === 500) {
|
|
3939
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3940
|
-
let result500 = null;
|
|
3941
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3942
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3943
|
-
}));
|
|
3944
|
-
}
|
|
3945
3995
|
else if (status !== 200 && status !== 204) {
|
|
3946
3996
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3947
3997
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3950,9 +4000,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3950
4000
|
return of(null);
|
|
3951
4001
|
}
|
|
3952
4002
|
/**
|
|
3953
|
-
* Converts colors
|
|
4003
|
+
* Converts colors.
|
|
3954
4004
|
* @param tenantId (optional) Tenant identifier
|
|
3955
|
-
* @param body (optional) Convert colors operation parameters
|
|
4005
|
+
* @param body (optional) Convert colors operation parameters.
|
|
3956
4006
|
* @return Success
|
|
3957
4007
|
*/
|
|
3958
4008
|
convertColors(tenantId, body) {
|
|
@@ -4023,13 +4073,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4023
4073
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4024
4074
|
}));
|
|
4025
4075
|
}
|
|
4026
|
-
else if (status === 500) {
|
|
4027
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4028
|
-
let result500 = null;
|
|
4029
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4030
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4031
|
-
}));
|
|
4032
|
-
}
|
|
4033
4076
|
else if (status !== 200 && status !== 204) {
|
|
4034
4077
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4035
4078
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4038,8 +4081,8 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4038
4081
|
return of(null);
|
|
4039
4082
|
}
|
|
4040
4083
|
/**
|
|
4041
|
-
* Creates product item
|
|
4042
|
-
* @param itemType (optional) Desired item type
|
|
4084
|
+
* Creates product item.
|
|
4085
|
+
* @param itemType (optional) Desired item type.
|
|
4043
4086
|
* @param tenantId (optional) Tenant identifier
|
|
4044
4087
|
* @param sourceType (optional)
|
|
4045
4088
|
* @param sourceId (optional)
|
|
@@ -4049,7 +4092,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4049
4092
|
*/
|
|
4050
4093
|
createItem(itemType, tenantId, sourceType, sourceId, sourceOwnerId, sourceFile) {
|
|
4051
4094
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/model/items?";
|
|
4052
|
-
if (itemType
|
|
4095
|
+
if (itemType === null)
|
|
4096
|
+
throw new Error("The parameter 'itemType' cannot be null.");
|
|
4097
|
+
else if (itemType !== undefined)
|
|
4053
4098
|
url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
|
|
4054
4099
|
if (tenantId === null)
|
|
4055
4100
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4124,13 +4169,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4124
4169
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4125
4170
|
}));
|
|
4126
4171
|
}
|
|
4127
|
-
else if (status === 500) {
|
|
4128
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4129
|
-
let result500 = null;
|
|
4130
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4131
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4132
|
-
}));
|
|
4133
|
-
}
|
|
4134
4172
|
else if (status !== 200 && status !== 204) {
|
|
4135
4173
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4136
4174
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4204,13 +4242,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4204
4242
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4205
4243
|
}));
|
|
4206
4244
|
}
|
|
4207
|
-
else if (status === 500) {
|
|
4208
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4209
|
-
let result500 = null;
|
|
4210
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4211
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4212
|
-
}));
|
|
4213
|
-
}
|
|
4214
4245
|
else if (status !== 200 && status !== 204) {
|
|
4215
4246
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4216
4247
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4285,13 +4316,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4285
4316
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4286
4317
|
}));
|
|
4287
4318
|
}
|
|
4288
|
-
else if (status === 500) {
|
|
4289
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4290
|
-
let result500 = null;
|
|
4291
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4292
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4293
|
-
}));
|
|
4294
|
-
}
|
|
4295
4319
|
else if (status !== 200 && status !== 204) {
|
|
4296
4320
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4297
4321
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4301,14 +4325,17 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4301
4325
|
}
|
|
4302
4326
|
/**
|
|
4303
4327
|
* Render product proof image with specified parameters.
|
|
4304
|
-
* @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
|
|
4328
|
+
* @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
|
|
4329
|
+
(default value is 'false').
|
|
4305
4330
|
* @param tenantId (optional) Tenant identifier
|
|
4306
4331
|
* @param body (optional) Preview parameters.
|
|
4307
4332
|
* @return Success
|
|
4308
4333
|
*/
|
|
4309
4334
|
renderProduct(attachment, tenantId, body) {
|
|
4310
4335
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/model/render-proof?";
|
|
4311
|
-
if (attachment
|
|
4336
|
+
if (attachment === null)
|
|
4337
|
+
throw new Error("The parameter 'attachment' cannot be null.");
|
|
4338
|
+
else if (attachment !== undefined)
|
|
4312
4339
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
4313
4340
|
if (tenantId === null)
|
|
4314
4341
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4368,13 +4395,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4368
4395
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4369
4396
|
}));
|
|
4370
4397
|
}
|
|
4371
|
-
else if (status === 500) {
|
|
4372
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4373
|
-
let result500 = null;
|
|
4374
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4375
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4376
|
-
}));
|
|
4377
|
-
}
|
|
4378
4398
|
else if (status !== 200 && status !== 204) {
|
|
4379
4399
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4380
4400
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4392,7 +4412,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4392
4412
|
*/
|
|
4393
4413
|
renderDesignPreview(attachment, tenantId, body) {
|
|
4394
4414
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/render-preview?";
|
|
4395
|
-
if (attachment
|
|
4415
|
+
if (attachment === null)
|
|
4416
|
+
throw new Error("The parameter 'attachment' cannot be null.");
|
|
4417
|
+
else if (attachment !== undefined)
|
|
4396
4418
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
4397
4419
|
if (tenantId === null)
|
|
4398
4420
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4452,13 +4474,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4452
4474
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4453
4475
|
}));
|
|
4454
4476
|
}
|
|
4455
|
-
else if (status === 500) {
|
|
4456
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4457
|
-
let result500 = null;
|
|
4458
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4459
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4460
|
-
}));
|
|
4461
|
-
}
|
|
4462
4477
|
else if (status !== 200 && status !== 204) {
|
|
4463
4478
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4464
4479
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4533,13 +4548,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4533
4548
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4534
4549
|
}));
|
|
4535
4550
|
}
|
|
4536
|
-
else if (status === 500) {
|
|
4537
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4538
|
-
let result500 = null;
|
|
4539
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4540
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4541
|
-
}));
|
|
4542
|
-
}
|
|
4543
4551
|
else if (status !== 200 && status !== 204) {
|
|
4544
4552
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4545
4553
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4557,7 +4565,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4557
4565
|
*/
|
|
4558
4566
|
renderDesignProof(attachment, tenantId, body) {
|
|
4559
4567
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/render-proof?";
|
|
4560
|
-
if (attachment
|
|
4568
|
+
if (attachment === null)
|
|
4569
|
+
throw new Error("The parameter 'attachment' cannot be null.");
|
|
4570
|
+
else if (attachment !== undefined)
|
|
4561
4571
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
4562
4572
|
if (tenantId === null)
|
|
4563
4573
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4617,13 +4627,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4617
4627
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4618
4628
|
}));
|
|
4619
4629
|
}
|
|
4620
|
-
else if (status === 500) {
|
|
4621
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4622
|
-
let result500 = null;
|
|
4623
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4624
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4625
|
-
}));
|
|
4626
|
-
}
|
|
4627
4630
|
else if (status !== 200 && status !== 204) {
|
|
4628
4631
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4629
4632
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4698,13 +4701,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4698
4701
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4699
4702
|
}));
|
|
4700
4703
|
}
|
|
4701
|
-
else if (status === 500) {
|
|
4702
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4703
|
-
let result500 = null;
|
|
4704
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4705
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4706
|
-
}));
|
|
4707
|
-
}
|
|
4708
4704
|
else if (status !== 200 && status !== 204) {
|
|
4709
4705
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4710
4706
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4714,20 +4710,26 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4714
4710
|
}
|
|
4715
4711
|
/**
|
|
4716
4712
|
* Creates a private design from a public design.
|
|
4717
|
-
* @param designId (optional) Public design
|
|
4718
|
-
* @param privateDesignId (optional) Private design
|
|
4719
|
-
* @param privateStorageOwner (optional) Private storage owner
|
|
4713
|
+
* @param designId (optional) Public design identifier.
|
|
4714
|
+
* @param privateDesignId (optional) Private design identifier.
|
|
4715
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4720
4716
|
* @param tenantId (optional) Tenant identifier
|
|
4721
|
-
* @return
|
|
4717
|
+
* @return Created
|
|
4722
4718
|
* @deprecated
|
|
4723
4719
|
*/
|
|
4724
4720
|
createPrivateDesignFromDesign(designId, privateDesignId, privateStorageOwner, tenantId) {
|
|
4725
4721
|
let url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-design?";
|
|
4726
|
-
if (designId
|
|
4722
|
+
if (designId === null)
|
|
4723
|
+
throw new Error("The parameter 'designId' cannot be null.");
|
|
4724
|
+
else if (designId !== undefined)
|
|
4727
4725
|
url_ += "designId=" + encodeURIComponent("" + designId) + "&";
|
|
4728
|
-
if (privateDesignId
|
|
4726
|
+
if (privateDesignId === null)
|
|
4727
|
+
throw new Error("The parameter 'privateDesignId' cannot be null.");
|
|
4728
|
+
else if (privateDesignId !== undefined)
|
|
4729
4729
|
url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
|
|
4730
|
-
if (privateStorageOwner
|
|
4730
|
+
if (privateStorageOwner === null)
|
|
4731
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4732
|
+
else if (privateStorageOwner !== undefined)
|
|
4731
4733
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4732
4734
|
if (tenantId === null)
|
|
4733
4735
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4781,13 +4783,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4781
4783
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4782
4784
|
}));
|
|
4783
4785
|
}
|
|
4784
|
-
else if (status === 500) {
|
|
4785
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4786
|
-
let result500 = null;
|
|
4787
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4788
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4789
|
-
}));
|
|
4790
|
-
}
|
|
4791
4786
|
else if (status !== 200 && status !== 204) {
|
|
4792
4787
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4793
4788
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4797,20 +4792,26 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4797
4792
|
}
|
|
4798
4793
|
/**
|
|
4799
4794
|
* Creates a private design from a public resource.
|
|
4800
|
-
* @param resourceId (optional) Resource
|
|
4801
|
-
* @param privateDesignId (optional) Private design
|
|
4802
|
-
* @param privateStorageOwner (optional) Private storage owner
|
|
4803
|
-
* @param tenantId (optional) Tenant identifier
|
|
4804
|
-
* @return
|
|
4795
|
+
* @param resourceId (optional) Resource identifier.
|
|
4796
|
+
* @param privateDesignId (optional) Private design identifier.
|
|
4797
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4798
|
+
* @param tenantId (optional) Tenant identifier.
|
|
4799
|
+
* @return Created
|
|
4805
4800
|
* @deprecated
|
|
4806
4801
|
*/
|
|
4807
4802
|
createPrivateDesignFromResource(resourceId, privateDesignId, privateStorageOwner, tenantId) {
|
|
4808
4803
|
let url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-resource?";
|
|
4809
|
-
if (resourceId
|
|
4804
|
+
if (resourceId === null)
|
|
4805
|
+
throw new Error("The parameter 'resourceId' cannot be null.");
|
|
4806
|
+
else if (resourceId !== undefined)
|
|
4810
4807
|
url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
|
|
4811
|
-
if (privateDesignId
|
|
4808
|
+
if (privateDesignId === null)
|
|
4809
|
+
throw new Error("The parameter 'privateDesignId' cannot be null.");
|
|
4810
|
+
else if (privateDesignId !== undefined)
|
|
4812
4811
|
url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
|
|
4813
|
-
if (privateStorageOwner
|
|
4812
|
+
if (privateStorageOwner === null)
|
|
4813
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4814
|
+
else if (privateStorageOwner !== undefined)
|
|
4814
4815
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4815
4816
|
if (tenantId === null)
|
|
4816
4817
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4864,13 +4865,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4864
4865
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4865
4866
|
}));
|
|
4866
4867
|
}
|
|
4867
|
-
else if (status === 500) {
|
|
4868
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4869
|
-
let result500 = null;
|
|
4870
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4871
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4872
|
-
}));
|
|
4873
|
-
}
|
|
4874
4868
|
else if (status !== 200 && status !== 204) {
|
|
4875
4869
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4876
4870
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4916,7 +4910,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4916
4910
|
responseType: "blob",
|
|
4917
4911
|
headers: new HttpHeaders({
|
|
4918
4912
|
"Content-Type": "application/json",
|
|
4919
|
-
"Accept": "
|
|
4913
|
+
"Accept": "text/css"
|
|
4920
4914
|
})
|
|
4921
4915
|
};
|
|
4922
4916
|
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
@@ -4953,11 +4947,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4953
4947
|
return of(result200);
|
|
4954
4948
|
}));
|
|
4955
4949
|
}
|
|
4956
|
-
else if (status ===
|
|
4950
|
+
else if (status === 401) {
|
|
4957
4951
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4952
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4953
|
+
}));
|
|
4954
|
+
}
|
|
4955
|
+
else if (status === 403) {
|
|
4956
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4957
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4961
4958
|
}));
|
|
4962
4959
|
}
|
|
4963
4960
|
else if (status !== 200 && status !== 204) {
|
|
@@ -5028,11 +5025,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5028
5025
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5029
5026
|
}));
|
|
5030
5027
|
}
|
|
5031
|
-
else if (status ===
|
|
5028
|
+
else if (status === 401) {
|
|
5032
5029
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5030
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5031
|
+
}));
|
|
5032
|
+
}
|
|
5033
|
+
else if (status === 403) {
|
|
5034
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5035
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5036
5036
|
}));
|
|
5037
5037
|
}
|
|
5038
5038
|
else if (status !== 200 && status !== 204) {
|
|
@@ -5098,11 +5098,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5098
5098
|
return of(result200);
|
|
5099
5099
|
}));
|
|
5100
5100
|
}
|
|
5101
|
-
else if (status ===
|
|
5101
|
+
else if (status === 401) {
|
|
5102
5102
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5103
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5104
|
+
}));
|
|
5105
|
+
}
|
|
5106
|
+
else if (status === 403) {
|
|
5107
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5108
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5106
5109
|
}));
|
|
5107
5110
|
}
|
|
5108
5111
|
else if (status !== 200 && status !== 204) {
|
|
@@ -5168,11 +5171,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5168
5171
|
return of(result200);
|
|
5169
5172
|
}));
|
|
5170
5173
|
}
|
|
5171
|
-
else if (status ===
|
|
5174
|
+
else if (status === 401) {
|
|
5172
5175
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5177
|
+
}));
|
|
5178
|
+
}
|
|
5179
|
+
else if (status === 403) {
|
|
5180
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5181
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5176
5182
|
}));
|
|
5177
5183
|
}
|
|
5178
5184
|
else if (status !== 200 && status !== 204) {
|
|
@@ -5189,7 +5195,9 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5189
5195
|
*/
|
|
5190
5196
|
getCssFont(fontKey, tenantId) {
|
|
5191
5197
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/GetCssFont?";
|
|
5192
|
-
if (fontKey
|
|
5198
|
+
if (fontKey === null)
|
|
5199
|
+
throw new Error("The parameter 'fontKey' cannot be null.");
|
|
5200
|
+
else if (fontKey !== undefined)
|
|
5193
5201
|
url_ += "fontKey=" + encodeURIComponent("" + fontKey) + "&";
|
|
5194
5202
|
if (tenantId === null)
|
|
5195
5203
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5243,11 +5251,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5243
5251
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5244
5252
|
}));
|
|
5245
5253
|
}
|
|
5246
|
-
else if (status ===
|
|
5254
|
+
else if (status === 401) {
|
|
5247
5255
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5256
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5257
|
+
}));
|
|
5258
|
+
}
|
|
5259
|
+
else if (status === 403) {
|
|
5260
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5261
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5251
5262
|
}));
|
|
5252
5263
|
}
|
|
5253
5264
|
else if (status !== 200 && status !== 204) {
|
|
@@ -5302,17 +5313,21 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5302
5313
|
_headers[key] = response.headers.get(key);
|
|
5303
5314
|
}
|
|
5304
5315
|
}
|
|
5305
|
-
if (status === 200
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5316
|
+
if (status === 200) {
|
|
5317
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5318
|
+
let result200 = null;
|
|
5319
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5320
|
+
return of(result200);
|
|
5321
|
+
}));
|
|
5310
5322
|
}
|
|
5311
|
-
else if (status ===
|
|
5323
|
+
else if (status === 401) {
|
|
5312
5324
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5325
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5326
|
+
}));
|
|
5327
|
+
}
|
|
5328
|
+
else if (status === 403) {
|
|
5329
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5330
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5316
5331
|
}));
|
|
5317
5332
|
}
|
|
5318
5333
|
else if (status !== 200 && status !== 204) {
|
|
@@ -5378,11 +5393,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5378
5393
|
return of(result200);
|
|
5379
5394
|
}));
|
|
5380
5395
|
}
|
|
5381
|
-
else if (status ===
|
|
5396
|
+
else if (status === 401) {
|
|
5397
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5398
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5399
|
+
}));
|
|
5400
|
+
}
|
|
5401
|
+
else if (status === 403) {
|
|
5382
5402
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5383
|
-
|
|
5384
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5385
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5403
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5386
5404
|
}));
|
|
5387
5405
|
}
|
|
5388
5406
|
else if (status !== 200 && status !== 204) {
|
|
@@ -5448,11 +5466,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5448
5466
|
return of(result200);
|
|
5449
5467
|
}));
|
|
5450
5468
|
}
|
|
5451
|
-
else if (status ===
|
|
5469
|
+
else if (status === 401) {
|
|
5452
5470
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5471
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5472
|
+
}));
|
|
5473
|
+
}
|
|
5474
|
+
else if (status === 403) {
|
|
5475
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5476
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5456
5477
|
}));
|
|
5457
5478
|
}
|
|
5458
5479
|
else if (status !== 200 && status !== 204) {
|
|
@@ -5518,11 +5539,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5518
5539
|
return of(result200);
|
|
5519
5540
|
}));
|
|
5520
5541
|
}
|
|
5521
|
-
else if (status ===
|
|
5542
|
+
else if (status === 401) {
|
|
5522
5543
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
|
|
5544
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5545
|
+
}));
|
|
5546
|
+
}
|
|
5547
|
+
else if (status === 403) {
|
|
5548
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5549
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5526
5550
|
}));
|
|
5527
5551
|
}
|
|
5528
5552
|
else if (status !== 200 && status !== 204) {
|
|
@@ -5556,41 +5580,77 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5556
5580
|
*/
|
|
5557
5581
|
img(f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId) {
|
|
5558
5582
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/img?";
|
|
5559
|
-
if (f
|
|
5583
|
+
if (f === null)
|
|
5584
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
5585
|
+
else if (f !== undefined)
|
|
5560
5586
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
5561
|
-
if (w
|
|
5587
|
+
if (w === null)
|
|
5588
|
+
throw new Error("The parameter 'w' cannot be null.");
|
|
5589
|
+
else if (w !== undefined)
|
|
5562
5590
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
5563
|
-
if (h
|
|
5591
|
+
if (h === null)
|
|
5592
|
+
throw new Error("The parameter 'h' cannot be null.");
|
|
5593
|
+
else if (h !== undefined)
|
|
5564
5594
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
5565
|
-
if (cmyk
|
|
5595
|
+
if (cmyk === null)
|
|
5596
|
+
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
5597
|
+
else if (cmyk !== undefined)
|
|
5566
5598
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
5567
|
-
if (rgb
|
|
5599
|
+
if (rgb === null)
|
|
5600
|
+
throw new Error("The parameter 'rgb' cannot be null.");
|
|
5601
|
+
else if (rgb !== undefined)
|
|
5568
5602
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
5569
|
-
if (grayscale
|
|
5603
|
+
if (grayscale === null)
|
|
5604
|
+
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
5605
|
+
else if (grayscale !== undefined)
|
|
5570
5606
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
5571
|
-
if (target
|
|
5607
|
+
if (target === null)
|
|
5608
|
+
throw new Error("The parameter 'target' cannot be null.");
|
|
5609
|
+
else if (target !== undefined)
|
|
5572
5610
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
5573
|
-
if (sq
|
|
5611
|
+
if (sq === null)
|
|
5612
|
+
throw new Error("The parameter 'sq' cannot be null.");
|
|
5613
|
+
else if (sq !== undefined)
|
|
5574
5614
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
5575
|
-
if (effect
|
|
5615
|
+
if (effect === null)
|
|
5616
|
+
throw new Error("The parameter 'effect' cannot be null.");
|
|
5617
|
+
else if (effect !== undefined)
|
|
5576
5618
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
5577
|
-
if (kp
|
|
5619
|
+
if (kp === null)
|
|
5620
|
+
throw new Error("The parameter 'kp' cannot be null.");
|
|
5621
|
+
else if (kp !== undefined)
|
|
5578
5622
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
5579
|
-
if (color
|
|
5623
|
+
if (color === null)
|
|
5624
|
+
throw new Error("The parameter 'color' cannot be null.");
|
|
5625
|
+
else if (color !== undefined)
|
|
5580
5626
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
5581
|
-
if (obm
|
|
5627
|
+
if (obm === null)
|
|
5628
|
+
throw new Error("The parameter 'obm' cannot be null.");
|
|
5629
|
+
else if (obm !== undefined)
|
|
5582
5630
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
5583
|
-
if (oo
|
|
5631
|
+
if (oo === null)
|
|
5632
|
+
throw new Error("The parameter 'oo' cannot be null.");
|
|
5633
|
+
else if (oo !== undefined)
|
|
5584
5634
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
5585
|
-
if (alphaMask
|
|
5635
|
+
if (alphaMask === null)
|
|
5636
|
+
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
5637
|
+
else if (alphaMask !== undefined)
|
|
5586
5638
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
5587
|
-
if (page
|
|
5639
|
+
if (page === null)
|
|
5640
|
+
throw new Error("The parameter 'page' cannot be null.");
|
|
5641
|
+
else if (page !== undefined)
|
|
5588
5642
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
5589
|
-
if (colorizeColor
|
|
5643
|
+
if (colorizeColor === null)
|
|
5644
|
+
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
5645
|
+
else if (colorizeColor !== undefined)
|
|
5590
5646
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
5591
|
-
if (rw
|
|
5647
|
+
if (rw === null)
|
|
5648
|
+
throw new Error("The parameter 'rw' cannot be null.");
|
|
5649
|
+
else if (rw !== undefined)
|
|
5592
5650
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
5593
|
-
if (rh
|
|
5651
|
+
if (rh === null)
|
|
5652
|
+
throw new Error("The parameter 'rh' cannot be null.");
|
|
5653
|
+
else if (rh !== undefined)
|
|
5594
5654
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
5595
5655
|
if (tenantId === null)
|
|
5596
5656
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5649,11 +5709,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5649
5709
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5650
5710
|
}));
|
|
5651
5711
|
}
|
|
5652
|
-
else if (status ===
|
|
5712
|
+
else if (status === 401) {
|
|
5713
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5714
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5715
|
+
}));
|
|
5716
|
+
}
|
|
5717
|
+
else if (status === 403) {
|
|
5653
5718
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5654
|
-
|
|
5655
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5656
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5719
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5657
5720
|
}));
|
|
5658
5721
|
}
|
|
5659
5722
|
else if (status !== 200 && status !== 204) {
|
|
@@ -5715,11 +5778,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5715
5778
|
return of(result200);
|
|
5716
5779
|
}));
|
|
5717
5780
|
}
|
|
5718
|
-
else if (status ===
|
|
5781
|
+
else if (status === 401) {
|
|
5719
5782
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5783
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5784
|
+
}));
|
|
5785
|
+
}
|
|
5786
|
+
else if (status === 403) {
|
|
5787
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5788
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5723
5789
|
}));
|
|
5724
5790
|
}
|
|
5725
5791
|
else if (status !== 200 && status !== 204) {
|
|
@@ -5736,7 +5802,9 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5736
5802
|
*/
|
|
5737
5803
|
pth(f, tenantId) {
|
|
5738
5804
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/pth?";
|
|
5739
|
-
if (f
|
|
5805
|
+
if (f === null)
|
|
5806
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
5807
|
+
else if (f !== undefined)
|
|
5740
5808
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
5741
5809
|
if (tenantId === null)
|
|
5742
5810
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5795,11 +5863,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5795
5863
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5796
5864
|
}));
|
|
5797
5865
|
}
|
|
5798
|
-
else if (status ===
|
|
5866
|
+
else if (status === 401) {
|
|
5867
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5868
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5869
|
+
}));
|
|
5870
|
+
}
|
|
5871
|
+
else if (status === 403) {
|
|
5799
5872
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5800
|
-
|
|
5801
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5802
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5873
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5803
5874
|
}));
|
|
5804
5875
|
}
|
|
5805
5876
|
else if (status !== 200 && status !== 204) {
|
|
@@ -5816,7 +5887,9 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5816
5887
|
*/
|
|
5817
5888
|
resource(image, tenantId) {
|
|
5818
5889
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/resource?";
|
|
5819
|
-
if (image
|
|
5890
|
+
if (image === null)
|
|
5891
|
+
throw new Error("The parameter 'image' cannot be null.");
|
|
5892
|
+
else if (image !== undefined)
|
|
5820
5893
|
url_ += "image=" + encodeURIComponent("" + image) + "&";
|
|
5821
5894
|
if (tenantId === null)
|
|
5822
5895
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5870,11 +5943,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5870
5943
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5871
5944
|
}));
|
|
5872
5945
|
}
|
|
5873
|
-
else if (status ===
|
|
5946
|
+
else if (status === 401) {
|
|
5947
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5948
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5949
|
+
}));
|
|
5950
|
+
}
|
|
5951
|
+
else if (status === 403) {
|
|
5874
5952
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5875
|
-
|
|
5876
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5877
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5953
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5878
5954
|
}));
|
|
5879
5955
|
}
|
|
5880
5956
|
else if (status !== 200 && status !== 204) {
|
|
@@ -5908,41 +5984,77 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5908
5984
|
*/
|
|
5909
5985
|
svg(f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId) {
|
|
5910
5986
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/svg?";
|
|
5911
|
-
if (f
|
|
5987
|
+
if (f === null)
|
|
5988
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
5989
|
+
else if (f !== undefined)
|
|
5912
5990
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
5913
|
-
if (w
|
|
5991
|
+
if (w === null)
|
|
5992
|
+
throw new Error("The parameter 'w' cannot be null.");
|
|
5993
|
+
else if (w !== undefined)
|
|
5914
5994
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
5915
|
-
if (h
|
|
5995
|
+
if (h === null)
|
|
5996
|
+
throw new Error("The parameter 'h' cannot be null.");
|
|
5997
|
+
else if (h !== undefined)
|
|
5916
5998
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
5917
|
-
if (cmyk
|
|
5999
|
+
if (cmyk === null)
|
|
6000
|
+
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
6001
|
+
else if (cmyk !== undefined)
|
|
5918
6002
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
5919
|
-
if (rgb
|
|
6003
|
+
if (rgb === null)
|
|
6004
|
+
throw new Error("The parameter 'rgb' cannot be null.");
|
|
6005
|
+
else if (rgb !== undefined)
|
|
5920
6006
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
5921
|
-
if (grayscale
|
|
6007
|
+
if (grayscale === null)
|
|
6008
|
+
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
6009
|
+
else if (grayscale !== undefined)
|
|
5922
6010
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
5923
|
-
if (target
|
|
6011
|
+
if (target === null)
|
|
6012
|
+
throw new Error("The parameter 'target' cannot be null.");
|
|
6013
|
+
else if (target !== undefined)
|
|
5924
6014
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
5925
|
-
if (sq
|
|
6015
|
+
if (sq === null)
|
|
6016
|
+
throw new Error("The parameter 'sq' cannot be null.");
|
|
6017
|
+
else if (sq !== undefined)
|
|
5926
6018
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
5927
|
-
if (effect
|
|
6019
|
+
if (effect === null)
|
|
6020
|
+
throw new Error("The parameter 'effect' cannot be null.");
|
|
6021
|
+
else if (effect !== undefined)
|
|
5928
6022
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
5929
|
-
if (kp
|
|
6023
|
+
if (kp === null)
|
|
6024
|
+
throw new Error("The parameter 'kp' cannot be null.");
|
|
6025
|
+
else if (kp !== undefined)
|
|
5930
6026
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
5931
|
-
if (color
|
|
6027
|
+
if (color === null)
|
|
6028
|
+
throw new Error("The parameter 'color' cannot be null.");
|
|
6029
|
+
else if (color !== undefined)
|
|
5932
6030
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
5933
|
-
if (obm
|
|
6031
|
+
if (obm === null)
|
|
6032
|
+
throw new Error("The parameter 'obm' cannot be null.");
|
|
6033
|
+
else if (obm !== undefined)
|
|
5934
6034
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
5935
|
-
if (oo
|
|
6035
|
+
if (oo === null)
|
|
6036
|
+
throw new Error("The parameter 'oo' cannot be null.");
|
|
6037
|
+
else if (oo !== undefined)
|
|
5936
6038
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
5937
|
-
if (alphaMask
|
|
6039
|
+
if (alphaMask === null)
|
|
6040
|
+
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
6041
|
+
else if (alphaMask !== undefined)
|
|
5938
6042
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
5939
|
-
if (page
|
|
6043
|
+
if (page === null)
|
|
6044
|
+
throw new Error("The parameter 'page' cannot be null.");
|
|
6045
|
+
else if (page !== undefined)
|
|
5940
6046
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
5941
|
-
if (colorizeColor
|
|
6047
|
+
if (colorizeColor === null)
|
|
6048
|
+
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
6049
|
+
else if (colorizeColor !== undefined)
|
|
5942
6050
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
5943
|
-
if (rw
|
|
6051
|
+
if (rw === null)
|
|
6052
|
+
throw new Error("The parameter 'rw' cannot be null.");
|
|
6053
|
+
else if (rw !== undefined)
|
|
5944
6054
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
5945
|
-
if (rh
|
|
6055
|
+
if (rh === null)
|
|
6056
|
+
throw new Error("The parameter 'rh' cannot be null.");
|
|
6057
|
+
else if (rh !== undefined)
|
|
5946
6058
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
5947
6059
|
if (tenantId === null)
|
|
5948
6060
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -6001,11 +6113,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6001
6113
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
6002
6114
|
}));
|
|
6003
6115
|
}
|
|
6004
|
-
else if (status ===
|
|
6116
|
+
else if (status === 401) {
|
|
6005
6117
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6118
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6119
|
+
}));
|
|
6120
|
+
}
|
|
6121
|
+
else if (status === 403) {
|
|
6122
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6123
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6009
6124
|
}));
|
|
6010
6125
|
}
|
|
6011
6126
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6022,7 +6137,9 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6022
6137
|
*/
|
|
6023
6138
|
txt(f, tenantId) {
|
|
6024
6139
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/txt?";
|
|
6025
|
-
if (f
|
|
6140
|
+
if (f === null)
|
|
6141
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
6142
|
+
else if (f !== undefined)
|
|
6026
6143
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
6027
6144
|
if (tenantId === null)
|
|
6028
6145
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -6081,11 +6198,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6081
6198
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
6082
6199
|
}));
|
|
6083
6200
|
}
|
|
6084
|
-
else if (status ===
|
|
6201
|
+
else if (status === 401) {
|
|
6085
6202
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6203
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6204
|
+
}));
|
|
6205
|
+
}
|
|
6206
|
+
else if (status === 403) {
|
|
6207
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6208
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6089
6209
|
}));
|
|
6090
6210
|
}
|
|
6091
6211
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6151,11 +6271,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6151
6271
|
return of(result200);
|
|
6152
6272
|
}));
|
|
6153
6273
|
}
|
|
6154
|
-
else if (status ===
|
|
6274
|
+
else if (status === 401) {
|
|
6275
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6276
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6277
|
+
}));
|
|
6278
|
+
}
|
|
6279
|
+
else if (status === 403) {
|
|
6155
6280
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6156
|
-
|
|
6157
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6158
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6281
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6159
6282
|
}));
|
|
6160
6283
|
}
|
|
6161
6284
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6221,11 +6344,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6221
6344
|
return of(result200);
|
|
6222
6345
|
}));
|
|
6223
6346
|
}
|
|
6224
|
-
else if (status ===
|
|
6347
|
+
else if (status === 401) {
|
|
6225
6348
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6349
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6350
|
+
}));
|
|
6351
|
+
}
|
|
6352
|
+
else if (status === 403) {
|
|
6353
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6354
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6229
6355
|
}));
|
|
6230
6356
|
}
|
|
6231
6357
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6291,11 +6417,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6291
6417
|
return of(result200);
|
|
6292
6418
|
}));
|
|
6293
6419
|
}
|
|
6294
|
-
else if (status ===
|
|
6420
|
+
else if (status === 401) {
|
|
6295
6421
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
-
|
|
6422
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6423
|
+
}));
|
|
6424
|
+
}
|
|
6425
|
+
else if (status === 403) {
|
|
6426
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6427
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6299
6428
|
}));
|
|
6300
6429
|
}
|
|
6301
6430
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6361,11 +6490,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6361
6490
|
return of(result200);
|
|
6362
6491
|
}));
|
|
6363
6492
|
}
|
|
6364
|
-
else if (status ===
|
|
6493
|
+
else if (status === 401) {
|
|
6494
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6495
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6496
|
+
}));
|
|
6497
|
+
}
|
|
6498
|
+
else if (status === 403) {
|
|
6365
6499
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6366
|
-
|
|
6367
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6368
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6500
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6369
6501
|
}));
|
|
6370
6502
|
}
|
|
6371
6503
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6431,11 +6563,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6431
6563
|
return of(result200);
|
|
6432
6564
|
}));
|
|
6433
6565
|
}
|
|
6434
|
-
else if (status ===
|
|
6566
|
+
else if (status === 401) {
|
|
6435
6567
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6568
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6569
|
+
}));
|
|
6570
|
+
}
|
|
6571
|
+
else if (status === 403) {
|
|
6572
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6573
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6439
6574
|
}));
|
|
6440
6575
|
}
|
|
6441
6576
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6501,11 +6636,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6501
6636
|
return of(result200);
|
|
6502
6637
|
}));
|
|
6503
6638
|
}
|
|
6504
|
-
else if (status ===
|
|
6639
|
+
else if (status === 401) {
|
|
6505
6640
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6506
|
-
|
|
6507
|
-
|
|
6508
|
-
|
|
6641
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6642
|
+
}));
|
|
6643
|
+
}
|
|
6644
|
+
else if (status === 403) {
|
|
6645
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6646
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6509
6647
|
}));
|
|
6510
6648
|
}
|
|
6511
6649
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6571,11 +6709,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6571
6709
|
return of(result200);
|
|
6572
6710
|
}));
|
|
6573
6711
|
}
|
|
6574
|
-
else if (status ===
|
|
6712
|
+
else if (status === 401) {
|
|
6713
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6714
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6715
|
+
}));
|
|
6716
|
+
}
|
|
6717
|
+
else if (status === 403) {
|
|
6575
6718
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6576
|
-
|
|
6577
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6578
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6719
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6579
6720
|
}));
|
|
6580
6721
|
}
|
|
6581
6722
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6641,11 +6782,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6641
6782
|
return of(result200);
|
|
6642
6783
|
}));
|
|
6643
6784
|
}
|
|
6644
|
-
else if (status ===
|
|
6785
|
+
else if (status === 401) {
|
|
6645
6786
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6787
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6788
|
+
}));
|
|
6789
|
+
}
|
|
6790
|
+
else if (status === 403) {
|
|
6791
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6792
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6649
6793
|
}));
|
|
6650
6794
|
}
|
|
6651
6795
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6711,11 +6855,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6711
6855
|
return of(result200);
|
|
6712
6856
|
}));
|
|
6713
6857
|
}
|
|
6714
|
-
else if (status ===
|
|
6858
|
+
else if (status === 401) {
|
|
6715
6859
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6860
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6861
|
+
}));
|
|
6862
|
+
}
|
|
6863
|
+
else if (status === 403) {
|
|
6864
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6865
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6719
6866
|
}));
|
|
6720
6867
|
}
|
|
6721
6868
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6781,11 +6928,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6781
6928
|
return of(result200);
|
|
6782
6929
|
}));
|
|
6783
6930
|
}
|
|
6784
|
-
else if (status ===
|
|
6931
|
+
else if (status === 401) {
|
|
6932
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6933
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6934
|
+
}));
|
|
6935
|
+
}
|
|
6936
|
+
else if (status === 403) {
|
|
6785
6937
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6786
|
-
|
|
6787
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6788
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6938
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6789
6939
|
}));
|
|
6790
6940
|
}
|
|
6791
6941
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6851,11 +7001,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6851
7001
|
return of(result200);
|
|
6852
7002
|
}));
|
|
6853
7003
|
}
|
|
6854
|
-
else if (status ===
|
|
7004
|
+
else if (status === 401) {
|
|
6855
7005
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
7006
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
7007
|
+
}));
|
|
7008
|
+
}
|
|
7009
|
+
else if (status === 403) {
|
|
7010
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
7011
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6859
7012
|
}));
|
|
6860
7013
|
}
|
|
6861
7014
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6877,28 +7030,6 @@ DesignAtomsViewerApiClient.ctorParameters = () => [
|
|
|
6877
7030
|
{ type: HttpClient, decorators: [{ type: Inject, args: [HttpClient,] }] },
|
|
6878
7031
|
{ type: String, decorators: [{ type: Optional }, { type: Inject, args: [API_BASE_URL,] }] }
|
|
6879
7032
|
];
|
|
6880
|
-
var ColorSpace;
|
|
6881
|
-
(function (ColorSpace) {
|
|
6882
|
-
ColorSpace["Rgb"] = "Rgb";
|
|
6883
|
-
ColorSpace["Cmyk"] = "Cmyk";
|
|
6884
|
-
ColorSpace["Grayscale"] = "Grayscale";
|
|
6885
|
-
ColorSpace["Lab"] = "Lab";
|
|
6886
|
-
ColorSpace["Spot"] = "Spot";
|
|
6887
|
-
})(ColorSpace || (ColorSpace = {}));
|
|
6888
|
-
/** Image preview file format. */
|
|
6889
|
-
var ImagePreviewFormat;
|
|
6890
|
-
(function (ImagePreviewFormat) {
|
|
6891
|
-
ImagePreviewFormat["Jpeg"] = "Jpeg";
|
|
6892
|
-
ImagePreviewFormat["Png"] = "Png";
|
|
6893
|
-
})(ImagePreviewFormat || (ImagePreviewFormat = {}));
|
|
6894
|
-
/** Image preview fit mode. */
|
|
6895
|
-
var ImagePreviewFitMode;
|
|
6896
|
-
(function (ImagePreviewFitMode) {
|
|
6897
|
-
ImagePreviewFitMode["Fit"] = "Fit";
|
|
6898
|
-
ImagePreviewFitMode["Shrink"] = "Shrink";
|
|
6899
|
-
ImagePreviewFitMode["Resize"] = "Resize";
|
|
6900
|
-
ImagePreviewFitMode["Fill"] = "Fill";
|
|
6901
|
-
})(ImagePreviewFitMode || (ImagePreviewFitMode = {}));
|
|
6902
7033
|
var DesignElementType;
|
|
6903
7034
|
(function (DesignElementType) {
|
|
6904
7035
|
DesignElementType["Product"] = "Product";
|
|
@@ -6908,18 +7039,27 @@ var DesignElementType;
|
|
|
6908
7039
|
DesignElementType["PrintArea"] = "PrintArea";
|
|
6909
7040
|
DesignElementType["Item"] = "Item";
|
|
6910
7041
|
})(DesignElementType || (DesignElementType = {}));
|
|
6911
|
-
/**
|
|
6912
|
-
var
|
|
6913
|
-
(function (
|
|
6914
|
-
|
|
6915
|
-
|
|
6916
|
-
|
|
6917
|
-
|
|
6918
|
-
|
|
6919
|
-
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
|
|
7042
|
+
/** Image preview fit mode. */
|
|
7043
|
+
var ImagePreviewFitMode;
|
|
7044
|
+
(function (ImagePreviewFitMode) {
|
|
7045
|
+
ImagePreviewFitMode["Fit"] = "Fit";
|
|
7046
|
+
ImagePreviewFitMode["Shrink"] = "Shrink";
|
|
7047
|
+
ImagePreviewFitMode["Resize"] = "Resize";
|
|
7048
|
+
ImagePreviewFitMode["Fill"] = "Fill";
|
|
7049
|
+
})(ImagePreviewFitMode || (ImagePreviewFitMode = {}));
|
|
7050
|
+
/** Image preview file format. */
|
|
7051
|
+
var ImagePreviewFormat;
|
|
7052
|
+
(function (ImagePreviewFormat) {
|
|
7053
|
+
ImagePreviewFormat["Jpeg"] = "Jpeg";
|
|
7054
|
+
ImagePreviewFormat["Png"] = "Png";
|
|
7055
|
+
})(ImagePreviewFormat || (ImagePreviewFormat = {}));
|
|
7056
|
+
/** Item source types. */
|
|
7057
|
+
var ItemSourceType;
|
|
7058
|
+
(function (ItemSourceType) {
|
|
7059
|
+
ItemSourceType["File"] = "File";
|
|
7060
|
+
ItemSourceType["ImageStorage"] = "ImageStorage";
|
|
7061
|
+
ItemSourceType["PrivateImageStorage"] = "PrivateImageStorage";
|
|
7062
|
+
})(ItemSourceType || (ItemSourceType = {}));
|
|
6923
7063
|
var ItemType;
|
|
6924
7064
|
(function (ItemType) {
|
|
6925
7065
|
ItemType["Image"] = "Image";
|
|
@@ -6927,13 +7067,24 @@ var ItemType;
|
|
|
6927
7067
|
ItemType["Clipart"] = "Clipart";
|
|
6928
7068
|
ItemType["Group"] = "Group";
|
|
6929
7069
|
})(ItemType || (ItemType = {}));
|
|
6930
|
-
/**
|
|
6931
|
-
var
|
|
6932
|
-
(function (
|
|
6933
|
-
|
|
6934
|
-
|
|
6935
|
-
|
|
6936
|
-
|
|
7070
|
+
/** Placeholder item content type. */
|
|
7071
|
+
var PlaceholderItemContentType;
|
|
7072
|
+
(function (PlaceholderItemContentType) {
|
|
7073
|
+
PlaceholderItemContentType["Image"] = "Image";
|
|
7074
|
+
})(PlaceholderItemContentType || (PlaceholderItemContentType = {}));
|
|
7075
|
+
/** Available patch type. */
|
|
7076
|
+
var ProductPatchType;
|
|
7077
|
+
(function (ProductPatchType) {
|
|
7078
|
+
ProductPatchType["Undefined"] = "Undefined";
|
|
7079
|
+
ProductPatchType["ReplaceImageItemFile"] = "ReplaceImageItemFile";
|
|
7080
|
+
ProductPatchType["ReplacePlaceholderItemContent"] = "ReplacePlaceholderItemContent";
|
|
7081
|
+
})(ProductPatchType || (ProductPatchType = {}));
|
|
7082
|
+
/** Product preview file format. */
|
|
7083
|
+
var ProductPreviewFormat;
|
|
7084
|
+
(function (ProductPreviewFormat) {
|
|
7085
|
+
ProductPreviewFormat["Jpeg"] = "Jpeg";
|
|
7086
|
+
ProductPreviewFormat["Png"] = "Png";
|
|
7087
|
+
})(ProductPreviewFormat || (ProductPreviewFormat = {}));
|
|
6937
7088
|
var ProductProofFormat;
|
|
6938
7089
|
(function (ProductProofFormat) {
|
|
6939
7090
|
ProductProofFormat["Jpeg"] = "Jpeg";
|
|
@@ -6955,12 +7106,6 @@ var ProductProofInterpolationMode;
|
|
|
6955
7106
|
ProductProofInterpolationMode["Anisotropic9"] = "Anisotropic9";
|
|
6956
7107
|
ProductProofInterpolationMode["Lanczos3"] = "Lanczos3";
|
|
6957
7108
|
})(ProductProofInterpolationMode || (ProductProofInterpolationMode = {}));
|
|
6958
|
-
/** Product preview file format. */
|
|
6959
|
-
var ProductPreviewFormat;
|
|
6960
|
-
(function (ProductPreviewFormat) {
|
|
6961
|
-
ProductPreviewFormat["Jpeg"] = "Jpeg";
|
|
6962
|
-
ProductPreviewFormat["Png"] = "Png";
|
|
6963
|
-
})(ProductPreviewFormat || (ProductPreviewFormat = {}));
|
|
6964
7109
|
class ApiException extends Error {
|
|
6965
7110
|
constructor(message, status, response, headers, result) {
|
|
6966
7111
|
super();
|
|
@@ -7039,5 +7184,5 @@ DesignAtomsApiModule.decorators = [
|
|
|
7039
7184
|
* Generated bundle index. Do not edit.
|
|
7040
7185
|
*/
|
|
7041
7186
|
|
|
7042
|
-
export { API_BASE_URL, ApiClientBase, ApiClientConfiguration, ApiException, BuildInfoApiClient,
|
|
7187
|
+
export { API_BASE_URL, ApiClientBase, ApiClientConfiguration, ApiException, BuildInfoApiClient, CreateApiClientConfiguration, DesignAtomsApiModule, DesignAtomsCompatibilityApiClient, DesignAtomsImagesApiClient, DesignAtomsMockups3dApiClient, DesignAtomsServiceApiClient, DesignAtomsViewerApiClient, DesignElementType, ImagePreviewFitMode, ImagePreviewFormat, ItemSourceType, ItemType, PlaceholderItemContentType, ProductPatchType, ProductPreviewFormat, ProductProofFormat, ProductProofInterpolationMode };
|
|
7043
7188
|
//# sourceMappingURL=aurigma-ng-design-atoms-api-client.js.map
|