@aurigma/ng-design-atoms-api-client 2.60.1 → 2.62.3
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 +806 -652
- 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 +818 -657
- 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 +818 -657
- 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.");
|
|
@@ -3018,17 +3120,25 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3018
3120
|
throw new Error("The parameter 'patchType' cannot be null.");
|
|
3019
3121
|
else
|
|
3020
3122
|
content_.append("patchType", patchType.toString());
|
|
3021
|
-
if (replaceImageItemFileInfo_itemName
|
|
3123
|
+
if (replaceImageItemFileInfo_itemName === null || replaceImageItemFileInfo_itemName === undefined)
|
|
3124
|
+
throw new Error("The parameter 'replaceImageItemFileInfo_itemName' cannot be null.");
|
|
3125
|
+
else
|
|
3022
3126
|
content_.append("replaceImageItemFileInfo.itemName", replaceImageItemFileInfo_itemName.toString());
|
|
3023
|
-
if (replaceImageItemFileInfo_sourceFile
|
|
3127
|
+
if (replaceImageItemFileInfo_sourceFile === null || replaceImageItemFileInfo_sourceFile === undefined)
|
|
3128
|
+
throw new Error("The parameter 'replaceImageItemFileInfo_sourceFile' cannot be null.");
|
|
3129
|
+
else
|
|
3024
3130
|
content_.append("replaceImageItemFileInfo.sourceFile", replaceImageItemFileInfo_sourceFile.data, replaceImageItemFileInfo_sourceFile.fileName ? replaceImageItemFileInfo_sourceFile.fileName : "replaceImageItemFileInfo.sourceFile");
|
|
3025
|
-
if (replacePlaceholderItemContentInfo_placeholderItemName
|
|
3131
|
+
if (replacePlaceholderItemContentInfo_placeholderItemName === null || replacePlaceholderItemContentInfo_placeholderItemName === undefined)
|
|
3132
|
+
throw new Error("The parameter 'replacePlaceholderItemContentInfo_placeholderItemName' cannot be null.");
|
|
3133
|
+
else
|
|
3026
3134
|
content_.append("replacePlaceholderItemContentInfo.placeholderItemName", replacePlaceholderItemContentInfo_placeholderItemName.toString());
|
|
3027
3135
|
if (replacePlaceholderItemContentInfo_newContentType === null || replacePlaceholderItemContentInfo_newContentType === undefined)
|
|
3028
3136
|
throw new Error("The parameter 'replacePlaceholderItemContentInfo_newContentType' cannot be null.");
|
|
3029
3137
|
else
|
|
3030
3138
|
content_.append("replacePlaceholderItemContentInfo.newContentType", replacePlaceholderItemContentInfo_newContentType.toString());
|
|
3031
|
-
if (replacePlaceholderItemContentInfo_sourceFile
|
|
3139
|
+
if (replacePlaceholderItemContentInfo_sourceFile === null || replacePlaceholderItemContentInfo_sourceFile === undefined)
|
|
3140
|
+
throw new Error("The parameter 'replacePlaceholderItemContentInfo_sourceFile' cannot be null.");
|
|
3141
|
+
else
|
|
3032
3142
|
content_.append("replacePlaceholderItemContentInfo.sourceFile", replacePlaceholderItemContentInfo_sourceFile.data, replacePlaceholderItemContentInfo_sourceFile.fileName ? replacePlaceholderItemContentInfo_sourceFile.fileName : "replacePlaceholderItemContentInfo.sourceFile");
|
|
3033
3143
|
let options_ = {
|
|
3034
3144
|
body: content_,
|
|
@@ -3085,13 +3195,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3085
3195
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3086
3196
|
}));
|
|
3087
3197
|
}
|
|
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
3198
|
else if (status !== 200 && status !== 204) {
|
|
3096
3199
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3097
3200
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3111,7 +3214,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3111
3214
|
if (id === undefined || id === null)
|
|
3112
3215
|
throw new Error("The parameter 'id' must be defined.");
|
|
3113
3216
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3114
|
-
if (privateStorageOwner
|
|
3217
|
+
if (privateStorageOwner === null)
|
|
3218
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3219
|
+
else if (privateStorageOwner !== undefined)
|
|
3115
3220
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3116
3221
|
if (tenantId === null)
|
|
3117
3222
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3176,13 +3281,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3176
3281
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3177
3282
|
}));
|
|
3178
3283
|
}
|
|
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
3284
|
else if (status !== 200 && status !== 204) {
|
|
3187
3285
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3188
3286
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3191,9 +3289,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3191
3289
|
return of(null);
|
|
3192
3290
|
}
|
|
3193
3291
|
/**
|
|
3194
|
-
* Loads data schema from design file taken from storage
|
|
3195
|
-
* @param id Design identifier
|
|
3196
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3292
|
+
* Loads data schema from design file taken from storage.
|
|
3293
|
+
* @param id Design identifier.
|
|
3294
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3197
3295
|
* @param tenantId (optional) Tenant identifier
|
|
3198
3296
|
* @return Success
|
|
3199
3297
|
*/
|
|
@@ -3202,7 +3300,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3202
3300
|
if (id === undefined || id === null)
|
|
3203
3301
|
throw new Error("The parameter 'id' must be defined.");
|
|
3204
3302
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3205
|
-
if (privateStorageOwner
|
|
3303
|
+
if (privateStorageOwner === null)
|
|
3304
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3305
|
+
else if (privateStorageOwner !== undefined)
|
|
3206
3306
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3207
3307
|
if (tenantId === null)
|
|
3208
3308
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3273,13 +3373,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3273
3373
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3274
3374
|
}));
|
|
3275
3375
|
}
|
|
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
3376
|
else if (status !== 200 && status !== 204) {
|
|
3284
3377
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3285
3378
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3288,7 +3381,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3288
3381
|
return of(null);
|
|
3289
3382
|
}
|
|
3290
3383
|
/**
|
|
3291
|
-
* Loads toggle set from design file taken from storage.
|
|
3384
|
+
* Loads a toggle set from design file taken from storage.
|
|
3292
3385
|
* @param id Design identifier.
|
|
3293
3386
|
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3294
3387
|
* @param tenantId (optional) Tenant identifier
|
|
@@ -3299,7 +3392,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3299
3392
|
if (id === undefined || id === null)
|
|
3300
3393
|
throw new Error("The parameter 'id' must be defined.");
|
|
3301
3394
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3302
|
-
if (privateStorageOwner
|
|
3395
|
+
if (privateStorageOwner === null)
|
|
3396
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3397
|
+
else if (privateStorageOwner !== undefined)
|
|
3303
3398
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3304
3399
|
if (tenantId === null)
|
|
3305
3400
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3370,13 +3465,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3370
3465
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3371
3466
|
}));
|
|
3372
3467
|
}
|
|
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
3468
|
else if (status !== 200 && status !== 204) {
|
|
3381
3469
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3382
3470
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3385,10 +3473,10 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3385
3473
|
return of(null);
|
|
3386
3474
|
}
|
|
3387
3475
|
/**
|
|
3388
|
-
* Gets variable items information for design file taken from storage
|
|
3389
|
-
* @param id Design identifier
|
|
3390
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3391
|
-
* @param tenantId (optional) Tenant identifier
|
|
3476
|
+
* Gets variable items information for design file taken from storage.
|
|
3477
|
+
* @param id Design identifier.
|
|
3478
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3479
|
+
* @param tenantId (optional) Tenant identifier
|
|
3392
3480
|
* @return Success
|
|
3393
3481
|
*/
|
|
3394
3482
|
getVariables(id, privateStorageOwner, tenantId) {
|
|
@@ -3396,7 +3484,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3396
3484
|
if (id === undefined || id === null)
|
|
3397
3485
|
throw new Error("The parameter 'id' must be defined.");
|
|
3398
3486
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3399
|
-
if (privateStorageOwner
|
|
3487
|
+
if (privateStorageOwner === null)
|
|
3488
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3489
|
+
else if (privateStorageOwner !== undefined)
|
|
3400
3490
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3401
3491
|
if (tenantId === null)
|
|
3402
3492
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3461,13 +3551,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3461
3551
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3462
3552
|
}));
|
|
3463
3553
|
}
|
|
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
3554
|
else if (status !== 200 && status !== 204) {
|
|
3472
3555
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3473
3556
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3476,11 +3559,11 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3476
3559
|
return of(null);
|
|
3477
3560
|
}
|
|
3478
3561
|
/**
|
|
3479
|
-
* Sets variable items values for design file taken from storage
|
|
3480
|
-
* @param id Design identifier
|
|
3481
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3562
|
+
* Sets variable items values for design file taken from storage.
|
|
3563
|
+
* @param id Design identifier.
|
|
3564
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3482
3565
|
* @param tenantId (optional) Tenant identifier
|
|
3483
|
-
* @param body (optional) Design variable values
|
|
3566
|
+
* @param body (optional) Design variable values.
|
|
3484
3567
|
* @return Success
|
|
3485
3568
|
*/
|
|
3486
3569
|
setVariables(id, privateStorageOwner, tenantId, body) {
|
|
@@ -3488,7 +3571,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3488
3571
|
if (id === undefined || id === null)
|
|
3489
3572
|
throw new Error("The parameter 'id' must be defined.");
|
|
3490
3573
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3491
|
-
if (privateStorageOwner
|
|
3574
|
+
if (privateStorageOwner === null)
|
|
3575
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3576
|
+
else if (privateStorageOwner !== undefined)
|
|
3492
3577
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3493
3578
|
if (tenantId === null)
|
|
3494
3579
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3560,13 +3645,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3560
3645
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3561
3646
|
}));
|
|
3562
3647
|
}
|
|
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
3648
|
else if (status !== 200 && status !== 204) {
|
|
3571
3649
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3572
3650
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3575,9 +3653,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3575
3653
|
return of(null);
|
|
3576
3654
|
}
|
|
3577
3655
|
/**
|
|
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
|
|
3656
|
+
* Loads variable data printing information from design file taken from storage.
|
|
3657
|
+
* @param id Design identifier.
|
|
3658
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3581
3659
|
* @param tenantId (optional) Tenant identifier
|
|
3582
3660
|
* @return Success
|
|
3583
3661
|
*/
|
|
@@ -3586,7 +3664,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3586
3664
|
if (id === undefined || id === null)
|
|
3587
3665
|
throw new Error("The parameter 'id' must be defined.");
|
|
3588
3666
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3589
|
-
if (privateStorageOwner
|
|
3667
|
+
if (privateStorageOwner === null)
|
|
3668
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3669
|
+
else if (privateStorageOwner !== undefined)
|
|
3590
3670
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3591
3671
|
if (tenantId === null)
|
|
3592
3672
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3658,13 +3738,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3658
3738
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3659
3739
|
}));
|
|
3660
3740
|
}
|
|
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
3741
|
else if (status !== 200 && status !== 204) {
|
|
3669
3742
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3670
3743
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3674,10 +3747,10 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3674
3747
|
}
|
|
3675
3748
|
/**
|
|
3676
3749
|
* 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
|
|
3750
|
+
* @param id Design identifier.
|
|
3751
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3679
3752
|
* @param tenantId (optional) Tenant identifier
|
|
3680
|
-
* @param body (optional) Serialized vdp data
|
|
3753
|
+
* @param body (optional) Serialized vdp data.
|
|
3681
3754
|
* @return Success
|
|
3682
3755
|
*/
|
|
3683
3756
|
saveVdpData(id, privateStorageOwner, tenantId, body) {
|
|
@@ -3685,7 +3758,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3685
3758
|
if (id === undefined || id === null)
|
|
3686
3759
|
throw new Error("The parameter 'id' must be defined.");
|
|
3687
3760
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3688
|
-
if (privateStorageOwner
|
|
3761
|
+
if (privateStorageOwner === null)
|
|
3762
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3763
|
+
else if (privateStorageOwner !== undefined)
|
|
3689
3764
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3690
3765
|
if (tenantId === null)
|
|
3691
3766
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3750,13 +3825,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3750
3825
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3751
3826
|
}));
|
|
3752
3827
|
}
|
|
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
3828
|
else if (status !== 200 && status !== 204) {
|
|
3761
3829
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3762
3830
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3766,8 +3834,8 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3766
3834
|
}
|
|
3767
3835
|
/**
|
|
3768
3836
|
* 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
|
|
3837
|
+
* @param id Design identifier.
|
|
3838
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3771
3839
|
* @param tenantId (optional) Tenant identifier
|
|
3772
3840
|
* @return Success
|
|
3773
3841
|
*/
|
|
@@ -3776,7 +3844,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3776
3844
|
if (id === undefined || id === null)
|
|
3777
3845
|
throw new Error("The parameter 'id' must be defined.");
|
|
3778
3846
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3779
|
-
if (privateStorageOwner
|
|
3847
|
+
if (privateStorageOwner === null)
|
|
3848
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3849
|
+
else if (privateStorageOwner !== undefined)
|
|
3780
3850
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3781
3851
|
if (tenantId === null)
|
|
3782
3852
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3837,13 +3907,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3837
3907
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3838
3908
|
}));
|
|
3839
3909
|
}
|
|
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
3910
|
else if (status !== 200 && status !== 204) {
|
|
3848
3911
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3849
3912
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3852,9 +3915,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3852
3915
|
return of(null);
|
|
3853
3916
|
}
|
|
3854
3917
|
/**
|
|
3855
|
-
* Loads product (design model) from resource file taken from storage
|
|
3856
|
-
* @param id Resource identifier
|
|
3857
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3918
|
+
* Loads product (design model) from resource file taken from storage.
|
|
3919
|
+
* @param id Resource identifier.
|
|
3920
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3858
3921
|
* @param tenantId (optional) Tenant identifier
|
|
3859
3922
|
* @return Success
|
|
3860
3923
|
*/
|
|
@@ -3863,7 +3926,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3863
3926
|
if (id === undefined || id === null)
|
|
3864
3927
|
throw new Error("The parameter 'id' must be defined.");
|
|
3865
3928
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3866
|
-
if (privateStorageOwner
|
|
3929
|
+
if (privateStorageOwner === null)
|
|
3930
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3931
|
+
else if (privateStorageOwner !== undefined)
|
|
3867
3932
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3868
3933
|
if (tenantId === null)
|
|
3869
3934
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3935,13 +4000,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3935
4000
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3936
4001
|
}));
|
|
3937
4002
|
}
|
|
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
4003
|
else if (status !== 200 && status !== 204) {
|
|
3946
4004
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3947
4005
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3950,9 +4008,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3950
4008
|
return of(null);
|
|
3951
4009
|
}
|
|
3952
4010
|
/**
|
|
3953
|
-
* Converts colors
|
|
4011
|
+
* Converts colors.
|
|
3954
4012
|
* @param tenantId (optional) Tenant identifier
|
|
3955
|
-
* @param body (optional) Convert colors operation parameters
|
|
4013
|
+
* @param body (optional) Convert colors operation parameters.
|
|
3956
4014
|
* @return Success
|
|
3957
4015
|
*/
|
|
3958
4016
|
convertColors(tenantId, body) {
|
|
@@ -4023,13 +4081,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4023
4081
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4024
4082
|
}));
|
|
4025
4083
|
}
|
|
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
4084
|
else if (status !== 200 && status !== 204) {
|
|
4034
4085
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4035
4086
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4038,8 +4089,8 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4038
4089
|
return of(null);
|
|
4039
4090
|
}
|
|
4040
4091
|
/**
|
|
4041
|
-
* Creates product item
|
|
4042
|
-
* @param itemType (optional) Desired item type
|
|
4092
|
+
* Creates product item.
|
|
4093
|
+
* @param itemType (optional) Desired item type.
|
|
4043
4094
|
* @param tenantId (optional) Tenant identifier
|
|
4044
4095
|
* @param sourceType (optional)
|
|
4045
4096
|
* @param sourceId (optional)
|
|
@@ -4049,7 +4100,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4049
4100
|
*/
|
|
4050
4101
|
createItem(itemType, tenantId, sourceType, sourceId, sourceOwnerId, sourceFile) {
|
|
4051
4102
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/model/items?";
|
|
4052
|
-
if (itemType
|
|
4103
|
+
if (itemType === null)
|
|
4104
|
+
throw new Error("The parameter 'itemType' cannot be null.");
|
|
4105
|
+
else if (itemType !== undefined)
|
|
4053
4106
|
url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
|
|
4054
4107
|
if (tenantId === null)
|
|
4055
4108
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4057,13 +4110,21 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4057
4110
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
4058
4111
|
url_ = url_.replace(/[?&]$/, "");
|
|
4059
4112
|
const content_ = new FormData();
|
|
4060
|
-
if (sourceType
|
|
4113
|
+
if (sourceType === null || sourceType === undefined)
|
|
4114
|
+
throw new Error("The parameter 'sourceType' cannot be null.");
|
|
4115
|
+
else
|
|
4061
4116
|
content_.append("sourceType", sourceType.toString());
|
|
4062
|
-
if (sourceId
|
|
4117
|
+
if (sourceId === null || sourceId === undefined)
|
|
4118
|
+
throw new Error("The parameter 'sourceId' cannot be null.");
|
|
4119
|
+
else
|
|
4063
4120
|
content_.append("sourceId", sourceId.toString());
|
|
4064
|
-
if (sourceOwnerId
|
|
4121
|
+
if (sourceOwnerId === null || sourceOwnerId === undefined)
|
|
4122
|
+
throw new Error("The parameter 'sourceOwnerId' cannot be null.");
|
|
4123
|
+
else
|
|
4065
4124
|
content_.append("sourceOwnerId", sourceOwnerId.toString());
|
|
4066
|
-
if (sourceFile
|
|
4125
|
+
if (sourceFile === null || sourceFile === undefined)
|
|
4126
|
+
throw new Error("The parameter 'sourceFile' cannot be null.");
|
|
4127
|
+
else
|
|
4067
4128
|
content_.append("sourceFile", sourceFile.data, sourceFile.fileName ? sourceFile.fileName : "sourceFile");
|
|
4068
4129
|
let options_ = {
|
|
4069
4130
|
body: content_,
|
|
@@ -4124,13 +4185,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4124
4185
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4125
4186
|
}));
|
|
4126
4187
|
}
|
|
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
4188
|
else if (status !== 200 && status !== 204) {
|
|
4135
4189
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4136
4190
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4204,13 +4258,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4204
4258
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4205
4259
|
}));
|
|
4206
4260
|
}
|
|
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
4261
|
else if (status !== 200 && status !== 204) {
|
|
4215
4262
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4216
4263
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4285,13 +4332,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4285
4332
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4286
4333
|
}));
|
|
4287
4334
|
}
|
|
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
4335
|
else if (status !== 200 && status !== 204) {
|
|
4296
4336
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4297
4337
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4301,14 +4341,17 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4301
4341
|
}
|
|
4302
4342
|
/**
|
|
4303
4343
|
* 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
|
|
4344
|
+
* @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
|
|
4345
|
+
(default value is 'false').
|
|
4305
4346
|
* @param tenantId (optional) Tenant identifier
|
|
4306
4347
|
* @param body (optional) Preview parameters.
|
|
4307
4348
|
* @return Success
|
|
4308
4349
|
*/
|
|
4309
4350
|
renderProduct(attachment, tenantId, body) {
|
|
4310
4351
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/model/render-proof?";
|
|
4311
|
-
if (attachment
|
|
4352
|
+
if (attachment === null)
|
|
4353
|
+
throw new Error("The parameter 'attachment' cannot be null.");
|
|
4354
|
+
else if (attachment !== undefined)
|
|
4312
4355
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
4313
4356
|
if (tenantId === null)
|
|
4314
4357
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4368,13 +4411,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4368
4411
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4369
4412
|
}));
|
|
4370
4413
|
}
|
|
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
4414
|
else if (status !== 200 && status !== 204) {
|
|
4379
4415
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4380
4416
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4392,7 +4428,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4392
4428
|
*/
|
|
4393
4429
|
renderDesignPreview(attachment, tenantId, body) {
|
|
4394
4430
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/render-preview?";
|
|
4395
|
-
if (attachment
|
|
4431
|
+
if (attachment === null)
|
|
4432
|
+
throw new Error("The parameter 'attachment' cannot be null.");
|
|
4433
|
+
else if (attachment !== undefined)
|
|
4396
4434
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
4397
4435
|
if (tenantId === null)
|
|
4398
4436
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4452,13 +4490,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4452
4490
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4453
4491
|
}));
|
|
4454
4492
|
}
|
|
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
4493
|
else if (status !== 200 && status !== 204) {
|
|
4463
4494
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4464
4495
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4533,13 +4564,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4533
4564
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4534
4565
|
}));
|
|
4535
4566
|
}
|
|
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
4567
|
else if (status !== 200 && status !== 204) {
|
|
4544
4568
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4545
4569
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4557,7 +4581,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4557
4581
|
*/
|
|
4558
4582
|
renderDesignProof(attachment, tenantId, body) {
|
|
4559
4583
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/render-proof?";
|
|
4560
|
-
if (attachment
|
|
4584
|
+
if (attachment === null)
|
|
4585
|
+
throw new Error("The parameter 'attachment' cannot be null.");
|
|
4586
|
+
else if (attachment !== undefined)
|
|
4561
4587
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
4562
4588
|
if (tenantId === null)
|
|
4563
4589
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4617,13 +4643,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4617
4643
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4618
4644
|
}));
|
|
4619
4645
|
}
|
|
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
4646
|
else if (status !== 200 && status !== 204) {
|
|
4628
4647
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4629
4648
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4698,13 +4717,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4698
4717
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4699
4718
|
}));
|
|
4700
4719
|
}
|
|
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
4720
|
else if (status !== 200 && status !== 204) {
|
|
4709
4721
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4710
4722
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4714,20 +4726,26 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4714
4726
|
}
|
|
4715
4727
|
/**
|
|
4716
4728
|
* 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
|
|
4729
|
+
* @param designId (optional) Public design identifier.
|
|
4730
|
+
* @param privateDesignId (optional) Private design identifier.
|
|
4731
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4720
4732
|
* @param tenantId (optional) Tenant identifier
|
|
4721
|
-
* @return
|
|
4733
|
+
* @return Created
|
|
4722
4734
|
* @deprecated
|
|
4723
4735
|
*/
|
|
4724
4736
|
createPrivateDesignFromDesign(designId, privateDesignId, privateStorageOwner, tenantId) {
|
|
4725
4737
|
let url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-design?";
|
|
4726
|
-
if (designId
|
|
4738
|
+
if (designId === null)
|
|
4739
|
+
throw new Error("The parameter 'designId' cannot be null.");
|
|
4740
|
+
else if (designId !== undefined)
|
|
4727
4741
|
url_ += "designId=" + encodeURIComponent("" + designId) + "&";
|
|
4728
|
-
if (privateDesignId
|
|
4742
|
+
if (privateDesignId === null)
|
|
4743
|
+
throw new Error("The parameter 'privateDesignId' cannot be null.");
|
|
4744
|
+
else if (privateDesignId !== undefined)
|
|
4729
4745
|
url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
|
|
4730
|
-
if (privateStorageOwner
|
|
4746
|
+
if (privateStorageOwner === null)
|
|
4747
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4748
|
+
else if (privateStorageOwner !== undefined)
|
|
4731
4749
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4732
4750
|
if (tenantId === null)
|
|
4733
4751
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4781,13 +4799,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4781
4799
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4782
4800
|
}));
|
|
4783
4801
|
}
|
|
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
4802
|
else if (status !== 200 && status !== 204) {
|
|
4792
4803
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4793
4804
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4797,20 +4808,26 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4797
4808
|
}
|
|
4798
4809
|
/**
|
|
4799
4810
|
* 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
|
|
4811
|
+
* @param resourceId (optional) Resource identifier.
|
|
4812
|
+
* @param privateDesignId (optional) Private design identifier.
|
|
4813
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4814
|
+
* @param tenantId (optional) Tenant identifier.
|
|
4815
|
+
* @return Created
|
|
4805
4816
|
* @deprecated
|
|
4806
4817
|
*/
|
|
4807
4818
|
createPrivateDesignFromResource(resourceId, privateDesignId, privateStorageOwner, tenantId) {
|
|
4808
4819
|
let url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-resource?";
|
|
4809
|
-
if (resourceId
|
|
4820
|
+
if (resourceId === null)
|
|
4821
|
+
throw new Error("The parameter 'resourceId' cannot be null.");
|
|
4822
|
+
else if (resourceId !== undefined)
|
|
4810
4823
|
url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
|
|
4811
|
-
if (privateDesignId
|
|
4824
|
+
if (privateDesignId === null)
|
|
4825
|
+
throw new Error("The parameter 'privateDesignId' cannot be null.");
|
|
4826
|
+
else if (privateDesignId !== undefined)
|
|
4812
4827
|
url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
|
|
4813
|
-
if (privateStorageOwner
|
|
4828
|
+
if (privateStorageOwner === null)
|
|
4829
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4830
|
+
else if (privateStorageOwner !== undefined)
|
|
4814
4831
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4815
4832
|
if (tenantId === null)
|
|
4816
4833
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4864,13 +4881,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4864
4881
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4865
4882
|
}));
|
|
4866
4883
|
}
|
|
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
4884
|
else if (status !== 200 && status !== 204) {
|
|
4875
4885
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4876
4886
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4916,7 +4926,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4916
4926
|
responseType: "blob",
|
|
4917
4927
|
headers: new HttpHeaders({
|
|
4918
4928
|
"Content-Type": "application/json",
|
|
4919
|
-
"Accept": "
|
|
4929
|
+
"Accept": "text/css"
|
|
4920
4930
|
})
|
|
4921
4931
|
};
|
|
4922
4932
|
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
@@ -4953,11 +4963,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4953
4963
|
return of(result200);
|
|
4954
4964
|
}));
|
|
4955
4965
|
}
|
|
4956
|
-
else if (status ===
|
|
4966
|
+
else if (status === 401) {
|
|
4957
4967
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4968
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4969
|
+
}));
|
|
4970
|
+
}
|
|
4971
|
+
else if (status === 403) {
|
|
4972
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4973
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4961
4974
|
}));
|
|
4962
4975
|
}
|
|
4963
4976
|
else if (status !== 200 && status !== 204) {
|
|
@@ -5028,11 +5041,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5028
5041
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5029
5042
|
}));
|
|
5030
5043
|
}
|
|
5031
|
-
else if (status ===
|
|
5044
|
+
else if (status === 401) {
|
|
5045
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5046
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5047
|
+
}));
|
|
5048
|
+
}
|
|
5049
|
+
else if (status === 403) {
|
|
5032
5050
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5033
|
-
|
|
5034
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5035
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5051
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5036
5052
|
}));
|
|
5037
5053
|
}
|
|
5038
5054
|
else if (status !== 200 && status !== 204) {
|
|
@@ -5098,11 +5114,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5098
5114
|
return of(result200);
|
|
5099
5115
|
}));
|
|
5100
5116
|
}
|
|
5101
|
-
else if (status ===
|
|
5117
|
+
else if (status === 401) {
|
|
5102
5118
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5119
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5120
|
+
}));
|
|
5121
|
+
}
|
|
5122
|
+
else if (status === 403) {
|
|
5123
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5124
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5106
5125
|
}));
|
|
5107
5126
|
}
|
|
5108
5127
|
else if (status !== 200 && status !== 204) {
|
|
@@ -5168,11 +5187,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5168
5187
|
return of(result200);
|
|
5169
5188
|
}));
|
|
5170
5189
|
}
|
|
5171
|
-
else if (status ===
|
|
5190
|
+
else if (status === 401) {
|
|
5191
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5192
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5193
|
+
}));
|
|
5194
|
+
}
|
|
5195
|
+
else if (status === 403) {
|
|
5172
5196
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5173
|
-
|
|
5174
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5175
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5197
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5176
5198
|
}));
|
|
5177
5199
|
}
|
|
5178
5200
|
else if (status !== 200 && status !== 204) {
|
|
@@ -5189,7 +5211,9 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5189
5211
|
*/
|
|
5190
5212
|
getCssFont(fontKey, tenantId) {
|
|
5191
5213
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/GetCssFont?";
|
|
5192
|
-
if (fontKey
|
|
5214
|
+
if (fontKey === null)
|
|
5215
|
+
throw new Error("The parameter 'fontKey' cannot be null.");
|
|
5216
|
+
else if (fontKey !== undefined)
|
|
5193
5217
|
url_ += "fontKey=" + encodeURIComponent("" + fontKey) + "&";
|
|
5194
5218
|
if (tenantId === null)
|
|
5195
5219
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5243,11 +5267,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5243
5267
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5244
5268
|
}));
|
|
5245
5269
|
}
|
|
5246
|
-
else if (status ===
|
|
5270
|
+
else if (status === 401) {
|
|
5247
5271
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5272
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5273
|
+
}));
|
|
5274
|
+
}
|
|
5275
|
+
else if (status === 403) {
|
|
5276
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5277
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5251
5278
|
}));
|
|
5252
5279
|
}
|
|
5253
5280
|
else if (status !== 200 && status !== 204) {
|
|
@@ -5302,17 +5329,21 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5302
5329
|
_headers[key] = response.headers.get(key);
|
|
5303
5330
|
}
|
|
5304
5331
|
}
|
|
5305
|
-
if (status === 200
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5332
|
+
if (status === 200) {
|
|
5333
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5334
|
+
let result200 = null;
|
|
5335
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5336
|
+
return of(result200);
|
|
5337
|
+
}));
|
|
5338
|
+
}
|
|
5339
|
+
else if (status === 401) {
|
|
5340
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5341
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5342
|
+
}));
|
|
5310
5343
|
}
|
|
5311
|
-
else if (status ===
|
|
5344
|
+
else if (status === 403) {
|
|
5312
5345
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5313
|
-
|
|
5314
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5315
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5346
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5316
5347
|
}));
|
|
5317
5348
|
}
|
|
5318
5349
|
else if (status !== 200 && status !== 204) {
|
|
@@ -5378,11 +5409,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5378
5409
|
return of(result200);
|
|
5379
5410
|
}));
|
|
5380
5411
|
}
|
|
5381
|
-
else if (status ===
|
|
5412
|
+
else if (status === 401) {
|
|
5413
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5414
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5415
|
+
}));
|
|
5416
|
+
}
|
|
5417
|
+
else if (status === 403) {
|
|
5382
5418
|
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);
|
|
5419
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5386
5420
|
}));
|
|
5387
5421
|
}
|
|
5388
5422
|
else if (status !== 200 && status !== 204) {
|
|
@@ -5448,11 +5482,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5448
5482
|
return of(result200);
|
|
5449
5483
|
}));
|
|
5450
5484
|
}
|
|
5451
|
-
else if (status ===
|
|
5485
|
+
else if (status === 401) {
|
|
5486
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5487
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5488
|
+
}));
|
|
5489
|
+
}
|
|
5490
|
+
else if (status === 403) {
|
|
5452
5491
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5453
|
-
|
|
5454
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5455
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5492
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5456
5493
|
}));
|
|
5457
5494
|
}
|
|
5458
5495
|
else if (status !== 200 && status !== 204) {
|
|
@@ -5518,11 +5555,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5518
5555
|
return of(result200);
|
|
5519
5556
|
}));
|
|
5520
5557
|
}
|
|
5521
|
-
else if (status ===
|
|
5558
|
+
else if (status === 401) {
|
|
5522
5559
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
|
|
5560
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5561
|
+
}));
|
|
5562
|
+
}
|
|
5563
|
+
else if (status === 403) {
|
|
5564
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5565
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5526
5566
|
}));
|
|
5527
5567
|
}
|
|
5528
5568
|
else if (status !== 200 && status !== 204) {
|
|
@@ -5556,41 +5596,77 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5556
5596
|
*/
|
|
5557
5597
|
img(f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId) {
|
|
5558
5598
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/img?";
|
|
5559
|
-
if (f
|
|
5599
|
+
if (f === null)
|
|
5600
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
5601
|
+
else if (f !== undefined)
|
|
5560
5602
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
5561
|
-
if (w
|
|
5603
|
+
if (w === null)
|
|
5604
|
+
throw new Error("The parameter 'w' cannot be null.");
|
|
5605
|
+
else if (w !== undefined)
|
|
5562
5606
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
5563
|
-
if (h
|
|
5607
|
+
if (h === null)
|
|
5608
|
+
throw new Error("The parameter 'h' cannot be null.");
|
|
5609
|
+
else if (h !== undefined)
|
|
5564
5610
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
5565
|
-
if (cmyk
|
|
5611
|
+
if (cmyk === null)
|
|
5612
|
+
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
5613
|
+
else if (cmyk !== undefined)
|
|
5566
5614
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
5567
|
-
if (rgb
|
|
5615
|
+
if (rgb === null)
|
|
5616
|
+
throw new Error("The parameter 'rgb' cannot be null.");
|
|
5617
|
+
else if (rgb !== undefined)
|
|
5568
5618
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
5569
|
-
if (grayscale
|
|
5619
|
+
if (grayscale === null)
|
|
5620
|
+
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
5621
|
+
else if (grayscale !== undefined)
|
|
5570
5622
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
5571
|
-
if (target
|
|
5623
|
+
if (target === null)
|
|
5624
|
+
throw new Error("The parameter 'target' cannot be null.");
|
|
5625
|
+
else if (target !== undefined)
|
|
5572
5626
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
5573
|
-
if (sq
|
|
5627
|
+
if (sq === null)
|
|
5628
|
+
throw new Error("The parameter 'sq' cannot be null.");
|
|
5629
|
+
else if (sq !== undefined)
|
|
5574
5630
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
5575
|
-
if (effect
|
|
5631
|
+
if (effect === null)
|
|
5632
|
+
throw new Error("The parameter 'effect' cannot be null.");
|
|
5633
|
+
else if (effect !== undefined)
|
|
5576
5634
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
5577
|
-
if (kp
|
|
5635
|
+
if (kp === null)
|
|
5636
|
+
throw new Error("The parameter 'kp' cannot be null.");
|
|
5637
|
+
else if (kp !== undefined)
|
|
5578
5638
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
5579
|
-
if (color
|
|
5639
|
+
if (color === null)
|
|
5640
|
+
throw new Error("The parameter 'color' cannot be null.");
|
|
5641
|
+
else if (color !== undefined)
|
|
5580
5642
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
5581
|
-
if (obm
|
|
5643
|
+
if (obm === null)
|
|
5644
|
+
throw new Error("The parameter 'obm' cannot be null.");
|
|
5645
|
+
else if (obm !== undefined)
|
|
5582
5646
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
5583
|
-
if (oo
|
|
5647
|
+
if (oo === null)
|
|
5648
|
+
throw new Error("The parameter 'oo' cannot be null.");
|
|
5649
|
+
else if (oo !== undefined)
|
|
5584
5650
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
5585
|
-
if (alphaMask
|
|
5651
|
+
if (alphaMask === null)
|
|
5652
|
+
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
5653
|
+
else if (alphaMask !== undefined)
|
|
5586
5654
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
5587
|
-
if (page
|
|
5655
|
+
if (page === null)
|
|
5656
|
+
throw new Error("The parameter 'page' cannot be null.");
|
|
5657
|
+
else if (page !== undefined)
|
|
5588
5658
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
5589
|
-
if (colorizeColor
|
|
5659
|
+
if (colorizeColor === null)
|
|
5660
|
+
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
5661
|
+
else if (colorizeColor !== undefined)
|
|
5590
5662
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
5591
|
-
if (rw
|
|
5663
|
+
if (rw === null)
|
|
5664
|
+
throw new Error("The parameter 'rw' cannot be null.");
|
|
5665
|
+
else if (rw !== undefined)
|
|
5592
5666
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
5593
|
-
if (rh
|
|
5667
|
+
if (rh === null)
|
|
5668
|
+
throw new Error("The parameter 'rh' cannot be null.");
|
|
5669
|
+
else if (rh !== undefined)
|
|
5594
5670
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
5595
5671
|
if (tenantId === null)
|
|
5596
5672
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5649,11 +5725,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5649
5725
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5650
5726
|
}));
|
|
5651
5727
|
}
|
|
5652
|
-
else if (status ===
|
|
5728
|
+
else if (status === 401) {
|
|
5653
5729
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5730
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5731
|
+
}));
|
|
5732
|
+
}
|
|
5733
|
+
else if (status === 403) {
|
|
5734
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5735
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5657
5736
|
}));
|
|
5658
5737
|
}
|
|
5659
5738
|
else if (status !== 200 && status !== 204) {
|
|
@@ -5715,11 +5794,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5715
5794
|
return of(result200);
|
|
5716
5795
|
}));
|
|
5717
5796
|
}
|
|
5718
|
-
else if (status ===
|
|
5797
|
+
else if (status === 401) {
|
|
5719
5798
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5799
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5800
|
+
}));
|
|
5801
|
+
}
|
|
5802
|
+
else if (status === 403) {
|
|
5803
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5804
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5723
5805
|
}));
|
|
5724
5806
|
}
|
|
5725
5807
|
else if (status !== 200 && status !== 204) {
|
|
@@ -5736,7 +5818,9 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5736
5818
|
*/
|
|
5737
5819
|
pth(f, tenantId) {
|
|
5738
5820
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/pth?";
|
|
5739
|
-
if (f
|
|
5821
|
+
if (f === null)
|
|
5822
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
5823
|
+
else if (f !== undefined)
|
|
5740
5824
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
5741
5825
|
if (tenantId === null)
|
|
5742
5826
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5795,11 +5879,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5795
5879
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5796
5880
|
}));
|
|
5797
5881
|
}
|
|
5798
|
-
else if (status ===
|
|
5882
|
+
else if (status === 401) {
|
|
5883
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5884
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5885
|
+
}));
|
|
5886
|
+
}
|
|
5887
|
+
else if (status === 403) {
|
|
5799
5888
|
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);
|
|
5889
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5803
5890
|
}));
|
|
5804
5891
|
}
|
|
5805
5892
|
else if (status !== 200 && status !== 204) {
|
|
@@ -5816,7 +5903,9 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5816
5903
|
*/
|
|
5817
5904
|
resource(image, tenantId) {
|
|
5818
5905
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/resource?";
|
|
5819
|
-
if (image
|
|
5906
|
+
if (image === null)
|
|
5907
|
+
throw new Error("The parameter 'image' cannot be null.");
|
|
5908
|
+
else if (image !== undefined)
|
|
5820
5909
|
url_ += "image=" + encodeURIComponent("" + image) + "&";
|
|
5821
5910
|
if (tenantId === null)
|
|
5822
5911
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5870,11 +5959,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5870
5959
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5871
5960
|
}));
|
|
5872
5961
|
}
|
|
5873
|
-
else if (status ===
|
|
5962
|
+
else if (status === 401) {
|
|
5963
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
5964
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5965
|
+
}));
|
|
5966
|
+
}
|
|
5967
|
+
else if (status === 403) {
|
|
5874
5968
|
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);
|
|
5969
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5878
5970
|
}));
|
|
5879
5971
|
}
|
|
5880
5972
|
else if (status !== 200 && status !== 204) {
|
|
@@ -5908,41 +6000,77 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5908
6000
|
*/
|
|
5909
6001
|
svg(f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId) {
|
|
5910
6002
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/svg?";
|
|
5911
|
-
if (f
|
|
6003
|
+
if (f === null)
|
|
6004
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
6005
|
+
else if (f !== undefined)
|
|
5912
6006
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
5913
|
-
if (w
|
|
6007
|
+
if (w === null)
|
|
6008
|
+
throw new Error("The parameter 'w' cannot be null.");
|
|
6009
|
+
else if (w !== undefined)
|
|
5914
6010
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
5915
|
-
if (h
|
|
6011
|
+
if (h === null)
|
|
6012
|
+
throw new Error("The parameter 'h' cannot be null.");
|
|
6013
|
+
else if (h !== undefined)
|
|
5916
6014
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
5917
|
-
if (cmyk
|
|
6015
|
+
if (cmyk === null)
|
|
6016
|
+
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
6017
|
+
else if (cmyk !== undefined)
|
|
5918
6018
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
5919
|
-
if (rgb
|
|
6019
|
+
if (rgb === null)
|
|
6020
|
+
throw new Error("The parameter 'rgb' cannot be null.");
|
|
6021
|
+
else if (rgb !== undefined)
|
|
5920
6022
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
5921
|
-
if (grayscale
|
|
6023
|
+
if (grayscale === null)
|
|
6024
|
+
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
6025
|
+
else if (grayscale !== undefined)
|
|
5922
6026
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
5923
|
-
if (target
|
|
6027
|
+
if (target === null)
|
|
6028
|
+
throw new Error("The parameter 'target' cannot be null.");
|
|
6029
|
+
else if (target !== undefined)
|
|
5924
6030
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
5925
|
-
if (sq
|
|
6031
|
+
if (sq === null)
|
|
6032
|
+
throw new Error("The parameter 'sq' cannot be null.");
|
|
6033
|
+
else if (sq !== undefined)
|
|
5926
6034
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
5927
|
-
if (effect
|
|
6035
|
+
if (effect === null)
|
|
6036
|
+
throw new Error("The parameter 'effect' cannot be null.");
|
|
6037
|
+
else if (effect !== undefined)
|
|
5928
6038
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
5929
|
-
if (kp
|
|
6039
|
+
if (kp === null)
|
|
6040
|
+
throw new Error("The parameter 'kp' cannot be null.");
|
|
6041
|
+
else if (kp !== undefined)
|
|
5930
6042
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
5931
|
-
if (color
|
|
6043
|
+
if (color === null)
|
|
6044
|
+
throw new Error("The parameter 'color' cannot be null.");
|
|
6045
|
+
else if (color !== undefined)
|
|
5932
6046
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
5933
|
-
if (obm
|
|
6047
|
+
if (obm === null)
|
|
6048
|
+
throw new Error("The parameter 'obm' cannot be null.");
|
|
6049
|
+
else if (obm !== undefined)
|
|
5934
6050
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
5935
|
-
if (oo
|
|
6051
|
+
if (oo === null)
|
|
6052
|
+
throw new Error("The parameter 'oo' cannot be null.");
|
|
6053
|
+
else if (oo !== undefined)
|
|
5936
6054
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
5937
|
-
if (alphaMask
|
|
6055
|
+
if (alphaMask === null)
|
|
6056
|
+
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
6057
|
+
else if (alphaMask !== undefined)
|
|
5938
6058
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
5939
|
-
if (page
|
|
6059
|
+
if (page === null)
|
|
6060
|
+
throw new Error("The parameter 'page' cannot be null.");
|
|
6061
|
+
else if (page !== undefined)
|
|
5940
6062
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
5941
|
-
if (colorizeColor
|
|
6063
|
+
if (colorizeColor === null)
|
|
6064
|
+
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
6065
|
+
else if (colorizeColor !== undefined)
|
|
5942
6066
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
5943
|
-
if (rw
|
|
6067
|
+
if (rw === null)
|
|
6068
|
+
throw new Error("The parameter 'rw' cannot be null.");
|
|
6069
|
+
else if (rw !== undefined)
|
|
5944
6070
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
5945
|
-
if (rh
|
|
6071
|
+
if (rh === null)
|
|
6072
|
+
throw new Error("The parameter 'rh' cannot be null.");
|
|
6073
|
+
else if (rh !== undefined)
|
|
5946
6074
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
5947
6075
|
if (tenantId === null)
|
|
5948
6076
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -6001,11 +6129,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6001
6129
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
6002
6130
|
}));
|
|
6003
6131
|
}
|
|
6004
|
-
else if (status ===
|
|
6132
|
+
else if (status === 401) {
|
|
6133
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6134
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6135
|
+
}));
|
|
6136
|
+
}
|
|
6137
|
+
else if (status === 403) {
|
|
6005
6138
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6006
|
-
|
|
6007
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6008
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6139
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6009
6140
|
}));
|
|
6010
6141
|
}
|
|
6011
6142
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6022,7 +6153,9 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6022
6153
|
*/
|
|
6023
6154
|
txt(f, tenantId) {
|
|
6024
6155
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/txt?";
|
|
6025
|
-
if (f
|
|
6156
|
+
if (f === null)
|
|
6157
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
6158
|
+
else if (f !== undefined)
|
|
6026
6159
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
6027
6160
|
if (tenantId === null)
|
|
6028
6161
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -6081,11 +6214,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6081
6214
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
6082
6215
|
}));
|
|
6083
6216
|
}
|
|
6084
|
-
else if (status ===
|
|
6217
|
+
else if (status === 401) {
|
|
6085
6218
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6219
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6220
|
+
}));
|
|
6221
|
+
}
|
|
6222
|
+
else if (status === 403) {
|
|
6223
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6224
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6089
6225
|
}));
|
|
6090
6226
|
}
|
|
6091
6227
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6151,11 +6287,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6151
6287
|
return of(result200);
|
|
6152
6288
|
}));
|
|
6153
6289
|
}
|
|
6154
|
-
else if (status ===
|
|
6290
|
+
else if (status === 401) {
|
|
6155
6291
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6292
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6293
|
+
}));
|
|
6294
|
+
}
|
|
6295
|
+
else if (status === 403) {
|
|
6296
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6297
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6159
6298
|
}));
|
|
6160
6299
|
}
|
|
6161
6300
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6221,11 +6360,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6221
6360
|
return of(result200);
|
|
6222
6361
|
}));
|
|
6223
6362
|
}
|
|
6224
|
-
else if (status ===
|
|
6363
|
+
else if (status === 401) {
|
|
6225
6364
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6365
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6366
|
+
}));
|
|
6367
|
+
}
|
|
6368
|
+
else if (status === 403) {
|
|
6369
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6370
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6229
6371
|
}));
|
|
6230
6372
|
}
|
|
6231
6373
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6291,11 +6433,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6291
6433
|
return of(result200);
|
|
6292
6434
|
}));
|
|
6293
6435
|
}
|
|
6294
|
-
else if (status ===
|
|
6436
|
+
else if (status === 401) {
|
|
6437
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6438
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6439
|
+
}));
|
|
6440
|
+
}
|
|
6441
|
+
else if (status === 403) {
|
|
6295
6442
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6296
|
-
|
|
6297
|
-
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6298
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6443
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6299
6444
|
}));
|
|
6300
6445
|
}
|
|
6301
6446
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6361,11 +6506,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6361
6506
|
return of(result200);
|
|
6362
6507
|
}));
|
|
6363
6508
|
}
|
|
6364
|
-
else if (status ===
|
|
6509
|
+
else if (status === 401) {
|
|
6510
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6511
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6512
|
+
}));
|
|
6513
|
+
}
|
|
6514
|
+
else if (status === 403) {
|
|
6365
6515
|
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);
|
|
6516
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6369
6517
|
}));
|
|
6370
6518
|
}
|
|
6371
6519
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6431,11 +6579,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6431
6579
|
return of(result200);
|
|
6432
6580
|
}));
|
|
6433
6581
|
}
|
|
6434
|
-
else if (status ===
|
|
6582
|
+
else if (status === 401) {
|
|
6435
6583
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6584
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6585
|
+
}));
|
|
6586
|
+
}
|
|
6587
|
+
else if (status === 403) {
|
|
6588
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6589
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6439
6590
|
}));
|
|
6440
6591
|
}
|
|
6441
6592
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6501,11 +6652,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6501
6652
|
return of(result200);
|
|
6502
6653
|
}));
|
|
6503
6654
|
}
|
|
6504
|
-
else if (status ===
|
|
6655
|
+
else if (status === 401) {
|
|
6505
6656
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6506
|
-
|
|
6507
|
-
|
|
6508
|
-
|
|
6657
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6658
|
+
}));
|
|
6659
|
+
}
|
|
6660
|
+
else if (status === 403) {
|
|
6661
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6662
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6509
6663
|
}));
|
|
6510
6664
|
}
|
|
6511
6665
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6571,11 +6725,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6571
6725
|
return of(result200);
|
|
6572
6726
|
}));
|
|
6573
6727
|
}
|
|
6574
|
-
else if (status ===
|
|
6728
|
+
else if (status === 401) {
|
|
6575
6729
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
|
|
6730
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6731
|
+
}));
|
|
6732
|
+
}
|
|
6733
|
+
else if (status === 403) {
|
|
6734
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6735
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6579
6736
|
}));
|
|
6580
6737
|
}
|
|
6581
6738
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6641,11 +6798,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6641
6798
|
return of(result200);
|
|
6642
6799
|
}));
|
|
6643
6800
|
}
|
|
6644
|
-
else if (status ===
|
|
6801
|
+
else if (status === 401) {
|
|
6645
6802
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6803
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6804
|
+
}));
|
|
6805
|
+
}
|
|
6806
|
+
else if (status === 403) {
|
|
6807
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6808
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6649
6809
|
}));
|
|
6650
6810
|
}
|
|
6651
6811
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6711,11 +6871,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6711
6871
|
return of(result200);
|
|
6712
6872
|
}));
|
|
6713
6873
|
}
|
|
6714
|
-
else if (status ===
|
|
6874
|
+
else if (status === 401) {
|
|
6715
6875
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6876
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6877
|
+
}));
|
|
6878
|
+
}
|
|
6879
|
+
else if (status === 403) {
|
|
6880
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6881
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6719
6882
|
}));
|
|
6720
6883
|
}
|
|
6721
6884
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6781,11 +6944,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6781
6944
|
return of(result200);
|
|
6782
6945
|
}));
|
|
6783
6946
|
}
|
|
6784
|
-
else if (status ===
|
|
6947
|
+
else if (status === 401) {
|
|
6948
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6949
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6950
|
+
}));
|
|
6951
|
+
}
|
|
6952
|
+
else if (status === 403) {
|
|
6785
6953
|
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);
|
|
6954
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6789
6955
|
}));
|
|
6790
6956
|
}
|
|
6791
6957
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6851,11 +7017,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6851
7017
|
return of(result200);
|
|
6852
7018
|
}));
|
|
6853
7019
|
}
|
|
6854
|
-
else if (status ===
|
|
7020
|
+
else if (status === 401) {
|
|
6855
7021
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
7022
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
7023
|
+
}));
|
|
7024
|
+
}
|
|
7025
|
+
else if (status === 403) {
|
|
7026
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
7027
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6859
7028
|
}));
|
|
6860
7029
|
}
|
|
6861
7030
|
else if (status !== 200 && status !== 204) {
|
|
@@ -6877,28 +7046,6 @@ DesignAtomsViewerApiClient.ctorParameters = () => [
|
|
|
6877
7046
|
{ type: HttpClient, decorators: [{ type: Inject, args: [HttpClient,] }] },
|
|
6878
7047
|
{ type: String, decorators: [{ type: Optional }, { type: Inject, args: [API_BASE_URL,] }] }
|
|
6879
7048
|
];
|
|
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
7049
|
var DesignElementType;
|
|
6903
7050
|
(function (DesignElementType) {
|
|
6904
7051
|
DesignElementType["Product"] = "Product";
|
|
@@ -6908,18 +7055,27 @@ var DesignElementType;
|
|
|
6908
7055
|
DesignElementType["PrintArea"] = "PrintArea";
|
|
6909
7056
|
DesignElementType["Item"] = "Item";
|
|
6910
7057
|
})(DesignElementType || (DesignElementType = {}));
|
|
6911
|
-
/**
|
|
6912
|
-
var
|
|
6913
|
-
(function (
|
|
6914
|
-
|
|
6915
|
-
|
|
6916
|
-
|
|
6917
|
-
|
|
6918
|
-
|
|
6919
|
-
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
|
|
7058
|
+
/** Image preview fit mode. */
|
|
7059
|
+
var ImagePreviewFitMode;
|
|
7060
|
+
(function (ImagePreviewFitMode) {
|
|
7061
|
+
ImagePreviewFitMode["Fit"] = "Fit";
|
|
7062
|
+
ImagePreviewFitMode["Shrink"] = "Shrink";
|
|
7063
|
+
ImagePreviewFitMode["Resize"] = "Resize";
|
|
7064
|
+
ImagePreviewFitMode["Fill"] = "Fill";
|
|
7065
|
+
})(ImagePreviewFitMode || (ImagePreviewFitMode = {}));
|
|
7066
|
+
/** Image preview file format. */
|
|
7067
|
+
var ImagePreviewFormat;
|
|
7068
|
+
(function (ImagePreviewFormat) {
|
|
7069
|
+
ImagePreviewFormat["Jpeg"] = "Jpeg";
|
|
7070
|
+
ImagePreviewFormat["Png"] = "Png";
|
|
7071
|
+
})(ImagePreviewFormat || (ImagePreviewFormat = {}));
|
|
7072
|
+
/** Item source types. */
|
|
7073
|
+
var ItemSourceType;
|
|
7074
|
+
(function (ItemSourceType) {
|
|
7075
|
+
ItemSourceType["File"] = "File";
|
|
7076
|
+
ItemSourceType["ImageStorage"] = "ImageStorage";
|
|
7077
|
+
ItemSourceType["PrivateImageStorage"] = "PrivateImageStorage";
|
|
7078
|
+
})(ItemSourceType || (ItemSourceType = {}));
|
|
6923
7079
|
var ItemType;
|
|
6924
7080
|
(function (ItemType) {
|
|
6925
7081
|
ItemType["Image"] = "Image";
|
|
@@ -6927,13 +7083,24 @@ var ItemType;
|
|
|
6927
7083
|
ItemType["Clipart"] = "Clipart";
|
|
6928
7084
|
ItemType["Group"] = "Group";
|
|
6929
7085
|
})(ItemType || (ItemType = {}));
|
|
6930
|
-
/**
|
|
6931
|
-
var
|
|
6932
|
-
(function (
|
|
6933
|
-
|
|
6934
|
-
|
|
6935
|
-
|
|
6936
|
-
|
|
7086
|
+
/** Placeholder item content type. */
|
|
7087
|
+
var PlaceholderItemContentType;
|
|
7088
|
+
(function (PlaceholderItemContentType) {
|
|
7089
|
+
PlaceholderItemContentType["Image"] = "Image";
|
|
7090
|
+
})(PlaceholderItemContentType || (PlaceholderItemContentType = {}));
|
|
7091
|
+
/** Available patch type. */
|
|
7092
|
+
var ProductPatchType;
|
|
7093
|
+
(function (ProductPatchType) {
|
|
7094
|
+
ProductPatchType["Undefined"] = "Undefined";
|
|
7095
|
+
ProductPatchType["ReplaceImageItemFile"] = "ReplaceImageItemFile";
|
|
7096
|
+
ProductPatchType["ReplacePlaceholderItemContent"] = "ReplacePlaceholderItemContent";
|
|
7097
|
+
})(ProductPatchType || (ProductPatchType = {}));
|
|
7098
|
+
/** Product preview file format. */
|
|
7099
|
+
var ProductPreviewFormat;
|
|
7100
|
+
(function (ProductPreviewFormat) {
|
|
7101
|
+
ProductPreviewFormat["Jpeg"] = "Jpeg";
|
|
7102
|
+
ProductPreviewFormat["Png"] = "Png";
|
|
7103
|
+
})(ProductPreviewFormat || (ProductPreviewFormat = {}));
|
|
6937
7104
|
var ProductProofFormat;
|
|
6938
7105
|
(function (ProductProofFormat) {
|
|
6939
7106
|
ProductProofFormat["Jpeg"] = "Jpeg";
|
|
@@ -6955,12 +7122,6 @@ var ProductProofInterpolationMode;
|
|
|
6955
7122
|
ProductProofInterpolationMode["Anisotropic9"] = "Anisotropic9";
|
|
6956
7123
|
ProductProofInterpolationMode["Lanczos3"] = "Lanczos3";
|
|
6957
7124
|
})(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
7125
|
class ApiException extends Error {
|
|
6965
7126
|
constructor(message, status, response, headers, result) {
|
|
6966
7127
|
super();
|
|
@@ -7039,5 +7200,5 @@ DesignAtomsApiModule.decorators = [
|
|
|
7039
7200
|
* Generated bundle index. Do not edit.
|
|
7040
7201
|
*/
|
|
7041
7202
|
|
|
7042
|
-
export { API_BASE_URL, ApiClientBase, ApiClientConfiguration, ApiException, BuildInfoApiClient,
|
|
7203
|
+
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
7204
|
//# sourceMappingURL=aurigma-ng-design-atoms-api-client.js.map
|