@aurigma/axios-design-atoms-api-client 2.61.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/dist/cjs/design-atoms-api-client.d.ts +514 -531
- package/dist/cjs/design-atoms-api-client.js +765 -710
- package/dist/cjs/design-atoms-api-client.js.map +1 -1
- package/dist/esm/design-atoms-api-client.d.ts +514 -531
- package/dist/esm/design-atoms-api-client.js +764 -709
- package/dist/esm/design-atoms-api-client.js.map +1 -1
- package/package.json +1 -1
|
@@ -97,13 +97,6 @@ export class BuildInfoApiClient extends ApiClientBase {
|
|
|
97
97
|
const _responseText = response.data;
|
|
98
98
|
return Promise.resolve(null);
|
|
99
99
|
}
|
|
100
|
-
else if (status === 500) {
|
|
101
|
-
const _responseText = response.data;
|
|
102
|
-
let result500 = null;
|
|
103
|
-
let resultData500 = _responseText;
|
|
104
|
-
result500 = JSON.parse(resultData500);
|
|
105
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
106
|
-
}
|
|
107
100
|
else if (status !== 200 && status !== 204) {
|
|
108
101
|
const _responseText = response.data;
|
|
109
102
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -155,13 +148,6 @@ export class BuildInfoApiClient extends ApiClientBase {
|
|
|
155
148
|
result200 = JSON.parse(resultData200);
|
|
156
149
|
return Promise.resolve(result200);
|
|
157
150
|
}
|
|
158
|
-
else if (status === 500) {
|
|
159
|
-
const _responseText = response.data;
|
|
160
|
-
let result500 = null;
|
|
161
|
-
let resultData500 = _responseText;
|
|
162
|
-
result500 = JSON.parse(resultData500);
|
|
163
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
164
|
-
}
|
|
165
151
|
else if (status !== 200 && status !== 204) {
|
|
166
152
|
const _responseText = response.data;
|
|
167
153
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -195,7 +181,7 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
195
181
|
url: url_,
|
|
196
182
|
headers: {
|
|
197
183
|
"Content-Type": "application/json",
|
|
198
|
-
"Accept": "
|
|
184
|
+
"Accept": "text/css"
|
|
199
185
|
},
|
|
200
186
|
cancelToken
|
|
201
187
|
};
|
|
@@ -229,12 +215,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
229
215
|
result200 = JSON.parse(resultData200);
|
|
230
216
|
return Promise.resolve(result200);
|
|
231
217
|
}
|
|
232
|
-
else if (status ===
|
|
218
|
+
else if (status === 401) {
|
|
219
|
+
const _responseText = response.data;
|
|
220
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
221
|
+
}
|
|
222
|
+
else if (status === 403) {
|
|
233
223
|
const _responseText = response.data;
|
|
234
|
-
|
|
235
|
-
let resultData500 = _responseText;
|
|
236
|
-
result500 = JSON.parse(resultData500);
|
|
237
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
224
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
238
225
|
}
|
|
239
226
|
else if (status !== 200 && status !== 204) {
|
|
240
227
|
const _responseText = response.data;
|
|
@@ -299,12 +286,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
299
286
|
result404 = JSON.parse(resultData404);
|
|
300
287
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
301
288
|
}
|
|
302
|
-
else if (status ===
|
|
289
|
+
else if (status === 401) {
|
|
290
|
+
const _responseText = response.data;
|
|
291
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
292
|
+
}
|
|
293
|
+
else if (status === 403) {
|
|
303
294
|
const _responseText = response.data;
|
|
304
|
-
|
|
305
|
-
let resultData500 = _responseText;
|
|
306
|
-
result500 = JSON.parse(resultData500);
|
|
307
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
295
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
308
296
|
}
|
|
309
297
|
else if (status !== 200 && status !== 204) {
|
|
310
298
|
const _responseText = response.data;
|
|
@@ -363,12 +351,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
363
351
|
result200 = JSON.parse(resultData200);
|
|
364
352
|
return Promise.resolve(result200);
|
|
365
353
|
}
|
|
366
|
-
else if (status ===
|
|
354
|
+
else if (status === 401) {
|
|
355
|
+
const _responseText = response.data;
|
|
356
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
357
|
+
}
|
|
358
|
+
else if (status === 403) {
|
|
367
359
|
const _responseText = response.data;
|
|
368
|
-
|
|
369
|
-
let resultData500 = _responseText;
|
|
370
|
-
result500 = JSON.parse(resultData500);
|
|
371
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
360
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
372
361
|
}
|
|
373
362
|
else if (status !== 200 && status !== 204) {
|
|
374
363
|
const _responseText = response.data;
|
|
@@ -427,12 +416,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
427
416
|
result200 = JSON.parse(resultData200);
|
|
428
417
|
return Promise.resolve(result200);
|
|
429
418
|
}
|
|
430
|
-
else if (status ===
|
|
419
|
+
else if (status === 401) {
|
|
420
|
+
const _responseText = response.data;
|
|
421
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
422
|
+
}
|
|
423
|
+
else if (status === 403) {
|
|
431
424
|
const _responseText = response.data;
|
|
432
|
-
|
|
433
|
-
let resultData500 = _responseText;
|
|
434
|
-
result500 = JSON.parse(resultData500);
|
|
435
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
425
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
436
426
|
}
|
|
437
427
|
else if (status !== 200 && status !== 204) {
|
|
438
428
|
const _responseText = response.data;
|
|
@@ -449,7 +439,9 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
449
439
|
if (tenantId === undefined || tenantId === null)
|
|
450
440
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
451
441
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
452
|
-
if (fontKey
|
|
442
|
+
if (fontKey === null)
|
|
443
|
+
throw new Error("The parameter 'fontKey' cannot be null.");
|
|
444
|
+
else if (fontKey !== undefined)
|
|
453
445
|
url_ += "fontKey=" + encodeURIComponent("" + fontKey) + "&";
|
|
454
446
|
url_ = url_.replace(/[?&]$/, "");
|
|
455
447
|
let options_ = {
|
|
@@ -497,12 +489,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
497
489
|
result404 = JSON.parse(resultData404);
|
|
498
490
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
499
491
|
}
|
|
500
|
-
else if (status ===
|
|
492
|
+
else if (status === 401) {
|
|
493
|
+
const _responseText = response.data;
|
|
494
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
495
|
+
}
|
|
496
|
+
else if (status === 403) {
|
|
501
497
|
const _responseText = response.data;
|
|
502
|
-
|
|
503
|
-
let resultData500 = _responseText;
|
|
504
|
-
result500 = JSON.parse(resultData500);
|
|
505
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
498
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
506
499
|
}
|
|
507
500
|
else if (status !== 200 && status !== 204) {
|
|
508
501
|
const _responseText = response.data;
|
|
@@ -520,7 +513,6 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
520
513
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
521
514
|
url_ = url_.replace(/[?&]$/, "");
|
|
522
515
|
let options_ = {
|
|
523
|
-
responseType: "blob",
|
|
524
516
|
method: "GET",
|
|
525
517
|
url: url_,
|
|
526
518
|
headers: {
|
|
@@ -551,18 +543,20 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
551
543
|
}
|
|
552
544
|
}
|
|
553
545
|
}
|
|
554
|
-
if (status === 200
|
|
555
|
-
const
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
546
|
+
if (status === 200) {
|
|
547
|
+
const _responseText = response.data;
|
|
548
|
+
let result200 = null;
|
|
549
|
+
let resultData200 = _responseText;
|
|
550
|
+
result200 = JSON.parse(resultData200);
|
|
551
|
+
return Promise.resolve(result200);
|
|
552
|
+
}
|
|
553
|
+
else if (status === 401) {
|
|
554
|
+
const _responseText = response.data;
|
|
555
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
559
556
|
}
|
|
560
|
-
else if (status ===
|
|
557
|
+
else if (status === 403) {
|
|
561
558
|
const _responseText = response.data;
|
|
562
|
-
|
|
563
|
-
let resultData500 = _responseText;
|
|
564
|
-
result500 = JSON.parse(resultData500);
|
|
565
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
559
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
566
560
|
}
|
|
567
561
|
else if (status !== 200 && status !== 204) {
|
|
568
562
|
const _responseText = response.data;
|
|
@@ -621,12 +615,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
621
615
|
result200 = JSON.parse(resultData200);
|
|
622
616
|
return Promise.resolve(result200);
|
|
623
617
|
}
|
|
624
|
-
else if (status ===
|
|
618
|
+
else if (status === 401) {
|
|
619
|
+
const _responseText = response.data;
|
|
620
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
621
|
+
}
|
|
622
|
+
else if (status === 403) {
|
|
625
623
|
const _responseText = response.data;
|
|
626
|
-
|
|
627
|
-
let resultData500 = _responseText;
|
|
628
|
-
result500 = JSON.parse(resultData500);
|
|
629
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
624
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
630
625
|
}
|
|
631
626
|
else if (status !== 200 && status !== 204) {
|
|
632
627
|
const _responseText = response.data;
|
|
@@ -685,12 +680,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
685
680
|
result200 = JSON.parse(resultData200);
|
|
686
681
|
return Promise.resolve(result200);
|
|
687
682
|
}
|
|
688
|
-
else if (status ===
|
|
683
|
+
else if (status === 401) {
|
|
684
|
+
const _responseText = response.data;
|
|
685
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
686
|
+
}
|
|
687
|
+
else if (status === 403) {
|
|
689
688
|
const _responseText = response.data;
|
|
690
|
-
|
|
691
|
-
let resultData500 = _responseText;
|
|
692
|
-
result500 = JSON.parse(resultData500);
|
|
693
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
689
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
694
690
|
}
|
|
695
691
|
else if (status !== 200 && status !== 204) {
|
|
696
692
|
const _responseText = response.data;
|
|
@@ -749,12 +745,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
749
745
|
result200 = JSON.parse(resultData200);
|
|
750
746
|
return Promise.resolve(result200);
|
|
751
747
|
}
|
|
752
|
-
else if (status ===
|
|
748
|
+
else if (status === 401) {
|
|
749
|
+
const _responseText = response.data;
|
|
750
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
751
|
+
}
|
|
752
|
+
else if (status === 403) {
|
|
753
753
|
const _responseText = response.data;
|
|
754
|
-
|
|
755
|
-
let resultData500 = _responseText;
|
|
756
|
-
result500 = JSON.parse(resultData500);
|
|
757
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
754
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
758
755
|
}
|
|
759
756
|
else if (status !== 200 && status !== 204) {
|
|
760
757
|
const _responseText = response.data;
|
|
@@ -788,41 +785,77 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
788
785
|
if (tenantId === undefined || tenantId === null)
|
|
789
786
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
790
787
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
791
|
-
if (f
|
|
788
|
+
if (f === null)
|
|
789
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
790
|
+
else if (f !== undefined)
|
|
792
791
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
793
|
-
if (w
|
|
792
|
+
if (w === null)
|
|
793
|
+
throw new Error("The parameter 'w' cannot be null.");
|
|
794
|
+
else if (w !== undefined)
|
|
794
795
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
795
|
-
if (h
|
|
796
|
+
if (h === null)
|
|
797
|
+
throw new Error("The parameter 'h' cannot be null.");
|
|
798
|
+
else if (h !== undefined)
|
|
796
799
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
797
|
-
if (cmyk
|
|
800
|
+
if (cmyk === null)
|
|
801
|
+
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
802
|
+
else if (cmyk !== undefined)
|
|
798
803
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
799
|
-
if (rgb
|
|
804
|
+
if (rgb === null)
|
|
805
|
+
throw new Error("The parameter 'rgb' cannot be null.");
|
|
806
|
+
else if (rgb !== undefined)
|
|
800
807
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
801
|
-
if (grayscale
|
|
808
|
+
if (grayscale === null)
|
|
809
|
+
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
810
|
+
else if (grayscale !== undefined)
|
|
802
811
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
803
|
-
if (target
|
|
812
|
+
if (target === null)
|
|
813
|
+
throw new Error("The parameter 'target' cannot be null.");
|
|
814
|
+
else if (target !== undefined)
|
|
804
815
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
805
|
-
if (sq
|
|
816
|
+
if (sq === null)
|
|
817
|
+
throw new Error("The parameter 'sq' cannot be null.");
|
|
818
|
+
else if (sq !== undefined)
|
|
806
819
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
807
|
-
if (effect
|
|
820
|
+
if (effect === null)
|
|
821
|
+
throw new Error("The parameter 'effect' cannot be null.");
|
|
822
|
+
else if (effect !== undefined)
|
|
808
823
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
809
|
-
if (kp
|
|
824
|
+
if (kp === null)
|
|
825
|
+
throw new Error("The parameter 'kp' cannot be null.");
|
|
826
|
+
else if (kp !== undefined)
|
|
810
827
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
811
|
-
if (color
|
|
828
|
+
if (color === null)
|
|
829
|
+
throw new Error("The parameter 'color' cannot be null.");
|
|
830
|
+
else if (color !== undefined)
|
|
812
831
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
813
|
-
if (obm
|
|
832
|
+
if (obm === null)
|
|
833
|
+
throw new Error("The parameter 'obm' cannot be null.");
|
|
834
|
+
else if (obm !== undefined)
|
|
814
835
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
815
|
-
if (oo
|
|
836
|
+
if (oo === null)
|
|
837
|
+
throw new Error("The parameter 'oo' cannot be null.");
|
|
838
|
+
else if (oo !== undefined)
|
|
816
839
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
817
|
-
if (alphaMask
|
|
840
|
+
if (alphaMask === null)
|
|
841
|
+
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
842
|
+
else if (alphaMask !== undefined)
|
|
818
843
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
819
|
-
if (page
|
|
844
|
+
if (page === null)
|
|
845
|
+
throw new Error("The parameter 'page' cannot be null.");
|
|
846
|
+
else if (page !== undefined)
|
|
820
847
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
821
|
-
if (colorizeColor
|
|
848
|
+
if (colorizeColor === null)
|
|
849
|
+
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
850
|
+
else if (colorizeColor !== undefined)
|
|
822
851
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
823
|
-
if (rw
|
|
852
|
+
if (rw === null)
|
|
853
|
+
throw new Error("The parameter 'rw' cannot be null.");
|
|
854
|
+
else if (rw !== undefined)
|
|
824
855
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
825
|
-
if (rh
|
|
856
|
+
if (rh === null)
|
|
857
|
+
throw new Error("The parameter 'rh' cannot be null.");
|
|
858
|
+
else if (rh !== undefined)
|
|
826
859
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
827
860
|
url_ = url_.replace(/[?&]$/, "");
|
|
828
861
|
let options_ = {
|
|
@@ -874,12 +907,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
874
907
|
result404 = JSON.parse(resultData404);
|
|
875
908
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
876
909
|
}
|
|
877
|
-
else if (status ===
|
|
910
|
+
else if (status === 401) {
|
|
911
|
+
const _responseText = response.data;
|
|
912
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
913
|
+
}
|
|
914
|
+
else if (status === 403) {
|
|
878
915
|
const _responseText = response.data;
|
|
879
|
-
|
|
880
|
-
let resultData500 = _responseText;
|
|
881
|
-
result500 = JSON.parse(resultData500);
|
|
882
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
916
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
883
917
|
}
|
|
884
918
|
else if (status !== 200 && status !== 204) {
|
|
885
919
|
const _responseText = response.data;
|
|
@@ -934,12 +968,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
934
968
|
result200 = JSON.parse(resultData200);
|
|
935
969
|
return Promise.resolve(result200);
|
|
936
970
|
}
|
|
937
|
-
else if (status ===
|
|
971
|
+
else if (status === 401) {
|
|
972
|
+
const _responseText = response.data;
|
|
973
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
974
|
+
}
|
|
975
|
+
else if (status === 403) {
|
|
938
976
|
const _responseText = response.data;
|
|
939
|
-
|
|
940
|
-
let resultData500 = _responseText;
|
|
941
|
-
result500 = JSON.parse(resultData500);
|
|
942
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
977
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
943
978
|
}
|
|
944
979
|
else if (status !== 200 && status !== 204) {
|
|
945
980
|
const _responseText = response.data;
|
|
@@ -956,7 +991,9 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
956
991
|
if (tenantId === undefined || tenantId === null)
|
|
957
992
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
958
993
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
959
|
-
if (f
|
|
994
|
+
if (f === null)
|
|
995
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
996
|
+
else if (f !== undefined)
|
|
960
997
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
961
998
|
url_ = url_.replace(/[?&]$/, "");
|
|
962
999
|
let options_ = {
|
|
@@ -1008,12 +1045,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1008
1045
|
result404 = JSON.parse(resultData404);
|
|
1009
1046
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1010
1047
|
}
|
|
1011
|
-
else if (status ===
|
|
1048
|
+
else if (status === 401) {
|
|
1049
|
+
const _responseText = response.data;
|
|
1050
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1051
|
+
}
|
|
1052
|
+
else if (status === 403) {
|
|
1012
1053
|
const _responseText = response.data;
|
|
1013
|
-
|
|
1014
|
-
let resultData500 = _responseText;
|
|
1015
|
-
result500 = JSON.parse(resultData500);
|
|
1016
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1054
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1017
1055
|
}
|
|
1018
1056
|
else if (status !== 200 && status !== 204) {
|
|
1019
1057
|
const _responseText = response.data;
|
|
@@ -1030,7 +1068,9 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1030
1068
|
if (tenantId === undefined || tenantId === null)
|
|
1031
1069
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
1032
1070
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
1033
|
-
if (image
|
|
1071
|
+
if (image === null)
|
|
1072
|
+
throw new Error("The parameter 'image' cannot be null.");
|
|
1073
|
+
else if (image !== undefined)
|
|
1034
1074
|
url_ += "image=" + encodeURIComponent("" + image) + "&";
|
|
1035
1075
|
url_ = url_.replace(/[?&]$/, "");
|
|
1036
1076
|
let options_ = {
|
|
@@ -1078,12 +1118,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1078
1118
|
result404 = JSON.parse(resultData404);
|
|
1079
1119
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1080
1120
|
}
|
|
1081
|
-
else if (status ===
|
|
1121
|
+
else if (status === 401) {
|
|
1122
|
+
const _responseText = response.data;
|
|
1123
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1124
|
+
}
|
|
1125
|
+
else if (status === 403) {
|
|
1082
1126
|
const _responseText = response.data;
|
|
1083
|
-
|
|
1084
|
-
let resultData500 = _responseText;
|
|
1085
|
-
result500 = JSON.parse(resultData500);
|
|
1086
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1127
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1087
1128
|
}
|
|
1088
1129
|
else if (status !== 200 && status !== 204) {
|
|
1089
1130
|
const _responseText = response.data;
|
|
@@ -1117,41 +1158,77 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1117
1158
|
if (tenantId === undefined || tenantId === null)
|
|
1118
1159
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
1119
1160
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
1120
|
-
if (f
|
|
1161
|
+
if (f === null)
|
|
1162
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
1163
|
+
else if (f !== undefined)
|
|
1121
1164
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
1122
|
-
if (w
|
|
1165
|
+
if (w === null)
|
|
1166
|
+
throw new Error("The parameter 'w' cannot be null.");
|
|
1167
|
+
else if (w !== undefined)
|
|
1123
1168
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
1124
|
-
if (h
|
|
1169
|
+
if (h === null)
|
|
1170
|
+
throw new Error("The parameter 'h' cannot be null.");
|
|
1171
|
+
else if (h !== undefined)
|
|
1125
1172
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
1126
|
-
if (cmyk
|
|
1173
|
+
if (cmyk === null)
|
|
1174
|
+
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
1175
|
+
else if (cmyk !== undefined)
|
|
1127
1176
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
1128
|
-
if (rgb
|
|
1177
|
+
if (rgb === null)
|
|
1178
|
+
throw new Error("The parameter 'rgb' cannot be null.");
|
|
1179
|
+
else if (rgb !== undefined)
|
|
1129
1180
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
1130
|
-
if (grayscale
|
|
1181
|
+
if (grayscale === null)
|
|
1182
|
+
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
1183
|
+
else if (grayscale !== undefined)
|
|
1131
1184
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
1132
|
-
if (target
|
|
1185
|
+
if (target === null)
|
|
1186
|
+
throw new Error("The parameter 'target' cannot be null.");
|
|
1187
|
+
else if (target !== undefined)
|
|
1133
1188
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
1134
|
-
if (sq
|
|
1189
|
+
if (sq === null)
|
|
1190
|
+
throw new Error("The parameter 'sq' cannot be null.");
|
|
1191
|
+
else if (sq !== undefined)
|
|
1135
1192
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
1136
|
-
if (effect
|
|
1193
|
+
if (effect === null)
|
|
1194
|
+
throw new Error("The parameter 'effect' cannot be null.");
|
|
1195
|
+
else if (effect !== undefined)
|
|
1137
1196
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
1138
|
-
if (kp
|
|
1197
|
+
if (kp === null)
|
|
1198
|
+
throw new Error("The parameter 'kp' cannot be null.");
|
|
1199
|
+
else if (kp !== undefined)
|
|
1139
1200
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
1140
|
-
if (color
|
|
1201
|
+
if (color === null)
|
|
1202
|
+
throw new Error("The parameter 'color' cannot be null.");
|
|
1203
|
+
else if (color !== undefined)
|
|
1141
1204
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
1142
|
-
if (obm
|
|
1205
|
+
if (obm === null)
|
|
1206
|
+
throw new Error("The parameter 'obm' cannot be null.");
|
|
1207
|
+
else if (obm !== undefined)
|
|
1143
1208
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
1144
|
-
if (oo
|
|
1209
|
+
if (oo === null)
|
|
1210
|
+
throw new Error("The parameter 'oo' cannot be null.");
|
|
1211
|
+
else if (oo !== undefined)
|
|
1145
1212
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
1146
|
-
if (alphaMask
|
|
1213
|
+
if (alphaMask === null)
|
|
1214
|
+
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
1215
|
+
else if (alphaMask !== undefined)
|
|
1147
1216
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
1148
|
-
if (page
|
|
1217
|
+
if (page === null)
|
|
1218
|
+
throw new Error("The parameter 'page' cannot be null.");
|
|
1219
|
+
else if (page !== undefined)
|
|
1149
1220
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
1150
|
-
if (colorizeColor
|
|
1221
|
+
if (colorizeColor === null)
|
|
1222
|
+
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
1223
|
+
else if (colorizeColor !== undefined)
|
|
1151
1224
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
1152
|
-
if (rw
|
|
1225
|
+
if (rw === null)
|
|
1226
|
+
throw new Error("The parameter 'rw' cannot be null.");
|
|
1227
|
+
else if (rw !== undefined)
|
|
1153
1228
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
1154
|
-
if (rh
|
|
1229
|
+
if (rh === null)
|
|
1230
|
+
throw new Error("The parameter 'rh' cannot be null.");
|
|
1231
|
+
else if (rh !== undefined)
|
|
1155
1232
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
1156
1233
|
url_ = url_.replace(/[?&]$/, "");
|
|
1157
1234
|
let options_ = {
|
|
@@ -1203,12 +1280,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1203
1280
|
result404 = JSON.parse(resultData404);
|
|
1204
1281
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1205
1282
|
}
|
|
1206
|
-
else if (status ===
|
|
1283
|
+
else if (status === 401) {
|
|
1284
|
+
const _responseText = response.data;
|
|
1285
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1286
|
+
}
|
|
1287
|
+
else if (status === 403) {
|
|
1207
1288
|
const _responseText = response.data;
|
|
1208
|
-
|
|
1209
|
-
let resultData500 = _responseText;
|
|
1210
|
-
result500 = JSON.parse(resultData500);
|
|
1211
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1289
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1212
1290
|
}
|
|
1213
1291
|
else if (status !== 200 && status !== 204) {
|
|
1214
1292
|
const _responseText = response.data;
|
|
@@ -1225,7 +1303,9 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1225
1303
|
if (tenantId === undefined || tenantId === null)
|
|
1226
1304
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
1227
1305
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
1228
|
-
if (f
|
|
1306
|
+
if (f === null)
|
|
1307
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
1308
|
+
else if (f !== undefined)
|
|
1229
1309
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
1230
1310
|
url_ = url_.replace(/[?&]$/, "");
|
|
1231
1311
|
let options_ = {
|
|
@@ -1277,12 +1357,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1277
1357
|
result404 = JSON.parse(resultData404);
|
|
1278
1358
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1279
1359
|
}
|
|
1280
|
-
else if (status ===
|
|
1360
|
+
else if (status === 401) {
|
|
1361
|
+
const _responseText = response.data;
|
|
1362
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1363
|
+
}
|
|
1364
|
+
else if (status === 403) {
|
|
1281
1365
|
const _responseText = response.data;
|
|
1282
|
-
|
|
1283
|
-
let resultData500 = _responseText;
|
|
1284
|
-
result500 = JSON.parse(resultData500);
|
|
1285
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1366
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1286
1367
|
}
|
|
1287
1368
|
else if (status !== 200 && status !== 204) {
|
|
1288
1369
|
const _responseText = response.data;
|
|
@@ -1341,12 +1422,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1341
1422
|
result200 = JSON.parse(resultData200);
|
|
1342
1423
|
return Promise.resolve(result200);
|
|
1343
1424
|
}
|
|
1344
|
-
else if (status ===
|
|
1425
|
+
else if (status === 401) {
|
|
1426
|
+
const _responseText = response.data;
|
|
1427
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1428
|
+
}
|
|
1429
|
+
else if (status === 403) {
|
|
1345
1430
|
const _responseText = response.data;
|
|
1346
|
-
|
|
1347
|
-
let resultData500 = _responseText;
|
|
1348
|
-
result500 = JSON.parse(resultData500);
|
|
1349
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1431
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1350
1432
|
}
|
|
1351
1433
|
else if (status !== 200 && status !== 204) {
|
|
1352
1434
|
const _responseText = response.data;
|
|
@@ -1405,12 +1487,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1405
1487
|
result200 = JSON.parse(resultData200);
|
|
1406
1488
|
return Promise.resolve(result200);
|
|
1407
1489
|
}
|
|
1408
|
-
else if (status ===
|
|
1490
|
+
else if (status === 401) {
|
|
1491
|
+
const _responseText = response.data;
|
|
1492
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1493
|
+
}
|
|
1494
|
+
else if (status === 403) {
|
|
1409
1495
|
const _responseText = response.data;
|
|
1410
|
-
|
|
1411
|
-
let resultData500 = _responseText;
|
|
1412
|
-
result500 = JSON.parse(resultData500);
|
|
1413
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1496
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1414
1497
|
}
|
|
1415
1498
|
else if (status !== 200 && status !== 204) {
|
|
1416
1499
|
const _responseText = response.data;
|
|
@@ -1469,12 +1552,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1469
1552
|
result200 = JSON.parse(resultData200);
|
|
1470
1553
|
return Promise.resolve(result200);
|
|
1471
1554
|
}
|
|
1472
|
-
else if (status ===
|
|
1555
|
+
else if (status === 401) {
|
|
1556
|
+
const _responseText = response.data;
|
|
1557
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1558
|
+
}
|
|
1559
|
+
else if (status === 403) {
|
|
1473
1560
|
const _responseText = response.data;
|
|
1474
|
-
|
|
1475
|
-
let resultData500 = _responseText;
|
|
1476
|
-
result500 = JSON.parse(resultData500);
|
|
1477
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1561
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1478
1562
|
}
|
|
1479
1563
|
else if (status !== 200 && status !== 204) {
|
|
1480
1564
|
const _responseText = response.data;
|
|
@@ -1533,12 +1617,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1533
1617
|
result200 = JSON.parse(resultData200);
|
|
1534
1618
|
return Promise.resolve(result200);
|
|
1535
1619
|
}
|
|
1536
|
-
else if (status ===
|
|
1620
|
+
else if (status === 401) {
|
|
1621
|
+
const _responseText = response.data;
|
|
1622
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1623
|
+
}
|
|
1624
|
+
else if (status === 403) {
|
|
1537
1625
|
const _responseText = response.data;
|
|
1538
|
-
|
|
1539
|
-
let resultData500 = _responseText;
|
|
1540
|
-
result500 = JSON.parse(resultData500);
|
|
1541
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1626
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1542
1627
|
}
|
|
1543
1628
|
else if (status !== 200 && status !== 204) {
|
|
1544
1629
|
const _responseText = response.data;
|
|
@@ -1597,12 +1682,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1597
1682
|
result200 = JSON.parse(resultData200);
|
|
1598
1683
|
return Promise.resolve(result200);
|
|
1599
1684
|
}
|
|
1600
|
-
else if (status ===
|
|
1685
|
+
else if (status === 401) {
|
|
1686
|
+
const _responseText = response.data;
|
|
1687
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1688
|
+
}
|
|
1689
|
+
else if (status === 403) {
|
|
1601
1690
|
const _responseText = response.data;
|
|
1602
|
-
|
|
1603
|
-
let resultData500 = _responseText;
|
|
1604
|
-
result500 = JSON.parse(resultData500);
|
|
1605
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1691
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1606
1692
|
}
|
|
1607
1693
|
else if (status !== 200 && status !== 204) {
|
|
1608
1694
|
const _responseText = response.data;
|
|
@@ -1661,12 +1747,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1661
1747
|
result200 = JSON.parse(resultData200);
|
|
1662
1748
|
return Promise.resolve(result200);
|
|
1663
1749
|
}
|
|
1664
|
-
else if (status ===
|
|
1750
|
+
else if (status === 401) {
|
|
1751
|
+
const _responseText = response.data;
|
|
1752
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1753
|
+
}
|
|
1754
|
+
else if (status === 403) {
|
|
1665
1755
|
const _responseText = response.data;
|
|
1666
|
-
|
|
1667
|
-
let resultData500 = _responseText;
|
|
1668
|
-
result500 = JSON.parse(resultData500);
|
|
1669
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1756
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1670
1757
|
}
|
|
1671
1758
|
else if (status !== 200 && status !== 204) {
|
|
1672
1759
|
const _responseText = response.data;
|
|
@@ -1725,12 +1812,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1725
1812
|
result200 = JSON.parse(resultData200);
|
|
1726
1813
|
return Promise.resolve(result200);
|
|
1727
1814
|
}
|
|
1728
|
-
else if (status ===
|
|
1815
|
+
else if (status === 401) {
|
|
1816
|
+
const _responseText = response.data;
|
|
1817
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1818
|
+
}
|
|
1819
|
+
else if (status === 403) {
|
|
1729
1820
|
const _responseText = response.data;
|
|
1730
|
-
|
|
1731
|
-
let resultData500 = _responseText;
|
|
1732
|
-
result500 = JSON.parse(resultData500);
|
|
1733
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1821
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1734
1822
|
}
|
|
1735
1823
|
else if (status !== 200 && status !== 204) {
|
|
1736
1824
|
const _responseText = response.data;
|
|
@@ -1789,12 +1877,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1789
1877
|
result200 = JSON.parse(resultData200);
|
|
1790
1878
|
return Promise.resolve(result200);
|
|
1791
1879
|
}
|
|
1792
|
-
else if (status ===
|
|
1880
|
+
else if (status === 401) {
|
|
1881
|
+
const _responseText = response.data;
|
|
1882
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1883
|
+
}
|
|
1884
|
+
else if (status === 403) {
|
|
1793
1885
|
const _responseText = response.data;
|
|
1794
|
-
|
|
1795
|
-
let resultData500 = _responseText;
|
|
1796
|
-
result500 = JSON.parse(resultData500);
|
|
1797
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1886
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1798
1887
|
}
|
|
1799
1888
|
else if (status !== 200 && status !== 204) {
|
|
1800
1889
|
const _responseText = response.data;
|
|
@@ -1853,12 +1942,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1853
1942
|
result200 = JSON.parse(resultData200);
|
|
1854
1943
|
return Promise.resolve(result200);
|
|
1855
1944
|
}
|
|
1856
|
-
else if (status ===
|
|
1945
|
+
else if (status === 401) {
|
|
1946
|
+
const _responseText = response.data;
|
|
1947
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1948
|
+
}
|
|
1949
|
+
else if (status === 403) {
|
|
1857
1950
|
const _responseText = response.data;
|
|
1858
|
-
|
|
1859
|
-
let resultData500 = _responseText;
|
|
1860
|
-
result500 = JSON.parse(resultData500);
|
|
1861
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1951
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1862
1952
|
}
|
|
1863
1953
|
else if (status !== 200 && status !== 204) {
|
|
1864
1954
|
const _responseText = response.data;
|
|
@@ -1917,12 +2007,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1917
2007
|
result200 = JSON.parse(resultData200);
|
|
1918
2008
|
return Promise.resolve(result200);
|
|
1919
2009
|
}
|
|
1920
|
-
else if (status ===
|
|
2010
|
+
else if (status === 401) {
|
|
2011
|
+
const _responseText = response.data;
|
|
2012
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
2013
|
+
}
|
|
2014
|
+
else if (status === 403) {
|
|
1921
2015
|
const _responseText = response.data;
|
|
1922
|
-
|
|
1923
|
-
let resultData500 = _responseText;
|
|
1924
|
-
result500 = JSON.parse(resultData500);
|
|
1925
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2016
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1926
2017
|
}
|
|
1927
2018
|
else if (status !== 200 && status !== 204) {
|
|
1928
2019
|
const _responseText = response.data;
|
|
@@ -1981,12 +2072,13 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1981
2072
|
result200 = JSON.parse(resultData200);
|
|
1982
2073
|
return Promise.resolve(result200);
|
|
1983
2074
|
}
|
|
1984
|
-
else if (status ===
|
|
2075
|
+
else if (status === 401) {
|
|
2076
|
+
const _responseText = response.data;
|
|
2077
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
2078
|
+
}
|
|
2079
|
+
else if (status === 403) {
|
|
1985
2080
|
const _responseText = response.data;
|
|
1986
|
-
|
|
1987
|
-
let resultData500 = _responseText;
|
|
1988
|
-
result500 = JSON.parse(resultData500);
|
|
1989
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2081
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1990
2082
|
}
|
|
1991
2083
|
else if (status !== 200 && status !== 204) {
|
|
1992
2084
|
const _responseText = response.data;
|
|
@@ -2014,7 +2106,9 @@ export class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2014
2106
|
*/
|
|
2015
2107
|
renderImagePreview(attachment, tenantId, body, cancelToken) {
|
|
2016
2108
|
let url_ = this.baseUrl + "/api/atoms/v1/images/render-preview?";
|
|
2017
|
-
if (attachment
|
|
2109
|
+
if (attachment === null)
|
|
2110
|
+
throw new Error("The parameter 'attachment' cannot be null.");
|
|
2111
|
+
else if (attachment !== undefined)
|
|
2018
2112
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
2019
2113
|
if (tenantId === null)
|
|
2020
2114
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2070,13 +2164,6 @@ export class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2070
2164
|
const _responseText = response.data;
|
|
2071
2165
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2072
2166
|
}
|
|
2073
|
-
else if (status === 500) {
|
|
2074
|
-
const _responseText = response.data;
|
|
2075
|
-
let result500 = null;
|
|
2076
|
-
let resultData500 = _responseText;
|
|
2077
|
-
result500 = JSON.parse(resultData500);
|
|
2078
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2079
|
-
}
|
|
2080
2167
|
else if (status !== 200 && status !== 204) {
|
|
2081
2168
|
const _responseText = response.data;
|
|
2082
2169
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2145,13 +2232,6 @@ export class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2145
2232
|
const _responseText = response.data;
|
|
2146
2233
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2147
2234
|
}
|
|
2148
|
-
else if (status === 500) {
|
|
2149
|
-
const _responseText = response.data;
|
|
2150
|
-
let result500 = null;
|
|
2151
|
-
let resultData500 = _responseText;
|
|
2152
|
-
result500 = JSON.parse(resultData500);
|
|
2153
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2154
|
-
}
|
|
2155
2235
|
else if (status !== 200 && status !== 204) {
|
|
2156
2236
|
const _responseText = response.data;
|
|
2157
2237
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2180,7 +2260,9 @@ export class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2180
2260
|
if (id === undefined || id === null)
|
|
2181
2261
|
throw new Error("The parameter 'id' must be defined.");
|
|
2182
2262
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2183
|
-
if (ownerId
|
|
2263
|
+
if (ownerId === null)
|
|
2264
|
+
throw new Error("The parameter 'ownerId' cannot be null.");
|
|
2265
|
+
else if (ownerId !== undefined)
|
|
2184
2266
|
url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
|
|
2185
2267
|
if (tenantId === null)
|
|
2186
2268
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2247,13 +2329,6 @@ export class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2247
2329
|
const _responseText = response.data;
|
|
2248
2330
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2249
2331
|
}
|
|
2250
|
-
else if (status === 500) {
|
|
2251
|
-
const _responseText = response.data;
|
|
2252
|
-
let result500 = null;
|
|
2253
|
-
let resultData500 = _responseText;
|
|
2254
|
-
result500 = JSON.parse(resultData500);
|
|
2255
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2256
|
-
}
|
|
2257
2332
|
else if (status !== 200 && status !== 204) {
|
|
2258
2333
|
const _responseText = response.data;
|
|
2259
2334
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2272,7 +2347,9 @@ export class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2272
2347
|
if (id === undefined || id === null)
|
|
2273
2348
|
throw new Error("The parameter 'id' must be defined.");
|
|
2274
2349
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2275
|
-
if (ownerId
|
|
2350
|
+
if (ownerId === null)
|
|
2351
|
+
throw new Error("The parameter 'ownerId' cannot be null.");
|
|
2352
|
+
else if (ownerId !== undefined)
|
|
2276
2353
|
url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
|
|
2277
2354
|
if (tenantId === null)
|
|
2278
2355
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2284,7 +2361,7 @@ export class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2284
2361
|
method: "GET",
|
|
2285
2362
|
url: url_,
|
|
2286
2363
|
headers: {
|
|
2287
|
-
"Accept": "application/
|
|
2364
|
+
"Accept": "application/json"
|
|
2288
2365
|
},
|
|
2289
2366
|
cancelToken
|
|
2290
2367
|
};
|
|
@@ -2339,13 +2416,6 @@ export class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2339
2416
|
const _responseText = response.data;
|
|
2340
2417
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2341
2418
|
}
|
|
2342
|
-
else if (status === 500) {
|
|
2343
|
-
const _responseText = response.data;
|
|
2344
|
-
let result500 = null;
|
|
2345
|
-
let resultData500 = _responseText;
|
|
2346
|
-
result500 = JSON.parse(resultData500);
|
|
2347
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2348
|
-
}
|
|
2349
2419
|
else if (status !== 200 && status !== 204) {
|
|
2350
2420
|
const _responseText = response.data;
|
|
2351
2421
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2364,7 +2434,9 @@ export class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2364
2434
|
if (id === undefined || id === null)
|
|
2365
2435
|
throw new Error("The parameter 'id' must be defined.");
|
|
2366
2436
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2367
|
-
if (ownerId
|
|
2437
|
+
if (ownerId === null)
|
|
2438
|
+
throw new Error("The parameter 'ownerId' cannot be null.");
|
|
2439
|
+
else if (ownerId !== undefined)
|
|
2368
2440
|
url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
|
|
2369
2441
|
if (tenantId === null)
|
|
2370
2442
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2376,7 +2448,7 @@ export class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2376
2448
|
method: "GET",
|
|
2377
2449
|
url: url_,
|
|
2378
2450
|
headers: {
|
|
2379
|
-
"Accept": "application/
|
|
2451
|
+
"Accept": "application/json"
|
|
2380
2452
|
},
|
|
2381
2453
|
cancelToken
|
|
2382
2454
|
};
|
|
@@ -2431,13 +2503,6 @@ export class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2431
2503
|
const _responseText = response.data;
|
|
2432
2504
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2433
2505
|
}
|
|
2434
|
-
else if (status === 500) {
|
|
2435
|
-
const _responseText = response.data;
|
|
2436
|
-
let result500 = null;
|
|
2437
|
-
let resultData500 = _responseText;
|
|
2438
|
-
result500 = JSON.parse(resultData500);
|
|
2439
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2440
|
-
}
|
|
2441
2506
|
else if (status !== 200 && status !== 204) {
|
|
2442
2507
|
const _responseText = response.data;
|
|
2443
2508
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2456,14 +2521,16 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2456
2521
|
}
|
|
2457
2522
|
/**
|
|
2458
2523
|
* Creates new design file with specified parameters and saves it in storage.
|
|
2459
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
2524
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
2460
2525
|
* @param tenantId (optional) Tenant identifier
|
|
2461
|
-
* @param body (optional) Design creation parameters
|
|
2462
|
-
* @return
|
|
2526
|
+
* @param body (optional) Design creation parameters.
|
|
2527
|
+
* @return Created
|
|
2463
2528
|
*/
|
|
2464
2529
|
createDesign(privateStorageOwner, tenantId, body, cancelToken) {
|
|
2465
2530
|
let url_ = this.baseUrl + "/api/atoms/v1/designs?";
|
|
2466
|
-
if (privateStorageOwner
|
|
2531
|
+
if (privateStorageOwner === null)
|
|
2532
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
2533
|
+
else if (privateStorageOwner !== undefined)
|
|
2467
2534
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2468
2535
|
if (tenantId === null)
|
|
2469
2536
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2519,13 +2586,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2519
2586
|
const _responseText = response.data;
|
|
2520
2587
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2521
2588
|
}
|
|
2522
|
-
else if (status === 500) {
|
|
2523
|
-
const _responseText = response.data;
|
|
2524
|
-
let result500 = null;
|
|
2525
|
-
let resultData500 = _responseText;
|
|
2526
|
-
result500 = JSON.parse(resultData500);
|
|
2527
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2528
|
-
}
|
|
2529
2589
|
else if (status !== 200 && status !== 204) {
|
|
2530
2590
|
const _responseText = response.data;
|
|
2531
2591
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2545,9 +2605,13 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2545
2605
|
if (id === undefined || id === null)
|
|
2546
2606
|
throw new Error("The parameter 'id' must be defined.");
|
|
2547
2607
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2548
|
-
if (surfaceIndex
|
|
2608
|
+
if (surfaceIndex === null)
|
|
2609
|
+
throw new Error("The parameter 'surfaceIndex' cannot be null.");
|
|
2610
|
+
else if (surfaceIndex !== undefined)
|
|
2549
2611
|
url_ += "surfaceIndex=" + encodeURIComponent("" + surfaceIndex) + "&";
|
|
2550
|
-
if (privateStorageOwner
|
|
2612
|
+
if (privateStorageOwner === null)
|
|
2613
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
2614
|
+
else if (privateStorageOwner !== undefined)
|
|
2551
2615
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2552
2616
|
if (tenantId === null)
|
|
2553
2617
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2614,13 +2678,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2614
2678
|
const _responseText = response.data;
|
|
2615
2679
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2616
2680
|
}
|
|
2617
|
-
else if (status === 500) {
|
|
2618
|
-
const _responseText = response.data;
|
|
2619
|
-
let result500 = null;
|
|
2620
|
-
let resultData500 = _responseText;
|
|
2621
|
-
result500 = JSON.parse(resultData500);
|
|
2622
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2623
|
-
}
|
|
2624
2681
|
else if (status !== 200 && status !== 204) {
|
|
2625
2682
|
const _responseText = response.data;
|
|
2626
2683
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2628,9 +2685,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2628
2685
|
return Promise.resolve(null);
|
|
2629
2686
|
}
|
|
2630
2687
|
/**
|
|
2631
|
-
* Loads product (design model) from design file taken from storage
|
|
2632
|
-
* @param id Design identifier
|
|
2633
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
2688
|
+
* Loads product (design model) from design file taken from storage.
|
|
2689
|
+
* @param id Design identifier.
|
|
2690
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
2634
2691
|
* @param tenantId (optional) Tenant identifier
|
|
2635
2692
|
* @return Success
|
|
2636
2693
|
*/
|
|
@@ -2639,7 +2696,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2639
2696
|
if (id === undefined || id === null)
|
|
2640
2697
|
throw new Error("The parameter 'id' must be defined.");
|
|
2641
2698
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2642
|
-
if (privateStorageOwner
|
|
2699
|
+
if (privateStorageOwner === null)
|
|
2700
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
2701
|
+
else if (privateStorageOwner !== undefined)
|
|
2643
2702
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2644
2703
|
if (tenantId === null)
|
|
2645
2704
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2699,13 +2758,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2699
2758
|
const _responseText = response.data;
|
|
2700
2759
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2701
2760
|
}
|
|
2702
|
-
else if (status === 500) {
|
|
2703
|
-
const _responseText = response.data;
|
|
2704
|
-
let result500 = null;
|
|
2705
|
-
let resultData500 = _responseText;
|
|
2706
|
-
result500 = JSON.parse(resultData500);
|
|
2707
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2708
|
-
}
|
|
2709
2761
|
else if (status !== 200 && status !== 204) {
|
|
2710
2762
|
const _responseText = response.data;
|
|
2711
2763
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2714,10 +2766,10 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2714
2766
|
}
|
|
2715
2767
|
/**
|
|
2716
2768
|
* Saves product (design model) to design file and updates design in storage.
|
|
2717
|
-
* @param id Design identifier
|
|
2718
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
2769
|
+
* @param id Design identifier.
|
|
2770
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
2719
2771
|
* @param tenantId (optional) Tenant identifier
|
|
2720
|
-
* @param body (optional) Serialized product description
|
|
2772
|
+
* @param body (optional) Serialized product description.
|
|
2721
2773
|
* @return Success
|
|
2722
2774
|
*/
|
|
2723
2775
|
saveProduct(id, privateStorageOwner, tenantId, body, cancelToken) {
|
|
@@ -2725,7 +2777,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2725
2777
|
if (id === undefined || id === null)
|
|
2726
2778
|
throw new Error("The parameter 'id' must be defined.");
|
|
2727
2779
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2728
|
-
if (privateStorageOwner
|
|
2780
|
+
if (privateStorageOwner === null)
|
|
2781
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
2782
|
+
else if (privateStorageOwner !== undefined)
|
|
2729
2783
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2730
2784
|
if (tenantId === null)
|
|
2731
2785
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2784,13 +2838,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2784
2838
|
const _responseText = response.data;
|
|
2785
2839
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2786
2840
|
}
|
|
2787
|
-
else if (status === 500) {
|
|
2788
|
-
const _responseText = response.data;
|
|
2789
|
-
let result500 = null;
|
|
2790
|
-
let resultData500 = _responseText;
|
|
2791
|
-
result500 = JSON.parse(resultData500);
|
|
2792
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2793
|
-
}
|
|
2794
2841
|
else if (status !== 200 && status !== 204) {
|
|
2795
2842
|
const _responseText = response.data;
|
|
2796
2843
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2815,7 +2862,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2815
2862
|
if (id === undefined || id === null)
|
|
2816
2863
|
throw new Error("The parameter 'id' must be defined.");
|
|
2817
2864
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2818
|
-
if (privateStorageOwner
|
|
2865
|
+
if (privateStorageOwner === null)
|
|
2866
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
2867
|
+
else if (privateStorageOwner !== undefined)
|
|
2819
2868
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2820
2869
|
if (tenantId === null)
|
|
2821
2870
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2827,17 +2876,25 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2827
2876
|
throw new Error("The parameter 'patchType' cannot be null.");
|
|
2828
2877
|
else
|
|
2829
2878
|
content_.append("patchType", patchType.toString());
|
|
2830
|
-
if (replaceImageItemFileInfo_itemName
|
|
2879
|
+
if (replaceImageItemFileInfo_itemName === null || replaceImageItemFileInfo_itemName === undefined)
|
|
2880
|
+
throw new Error("The parameter 'replaceImageItemFileInfo_itemName' cannot be null.");
|
|
2881
|
+
else
|
|
2831
2882
|
content_.append("replaceImageItemFileInfo.itemName", replaceImageItemFileInfo_itemName.toString());
|
|
2832
|
-
if (replaceImageItemFileInfo_sourceFile
|
|
2883
|
+
if (replaceImageItemFileInfo_sourceFile === null || replaceImageItemFileInfo_sourceFile === undefined)
|
|
2884
|
+
throw new Error("The parameter 'replaceImageItemFileInfo_sourceFile' cannot be null.");
|
|
2885
|
+
else
|
|
2833
2886
|
content_.append("replaceImageItemFileInfo.sourceFile", replaceImageItemFileInfo_sourceFile.data, replaceImageItemFileInfo_sourceFile.fileName ? replaceImageItemFileInfo_sourceFile.fileName : "replaceImageItemFileInfo.sourceFile");
|
|
2834
|
-
if (replacePlaceholderItemContentInfo_placeholderItemName
|
|
2887
|
+
if (replacePlaceholderItemContentInfo_placeholderItemName === null || replacePlaceholderItemContentInfo_placeholderItemName === undefined)
|
|
2888
|
+
throw new Error("The parameter 'replacePlaceholderItemContentInfo_placeholderItemName' cannot be null.");
|
|
2889
|
+
else
|
|
2835
2890
|
content_.append("replacePlaceholderItemContentInfo.placeholderItemName", replacePlaceholderItemContentInfo_placeholderItemName.toString());
|
|
2836
2891
|
if (replacePlaceholderItemContentInfo_newContentType === null || replacePlaceholderItemContentInfo_newContentType === undefined)
|
|
2837
2892
|
throw new Error("The parameter 'replacePlaceholderItemContentInfo_newContentType' cannot be null.");
|
|
2838
2893
|
else
|
|
2839
2894
|
content_.append("replacePlaceholderItemContentInfo.newContentType", replacePlaceholderItemContentInfo_newContentType.toString());
|
|
2840
|
-
if (replacePlaceholderItemContentInfo_sourceFile
|
|
2895
|
+
if (replacePlaceholderItemContentInfo_sourceFile === null || replacePlaceholderItemContentInfo_sourceFile === undefined)
|
|
2896
|
+
throw new Error("The parameter 'replacePlaceholderItemContentInfo_sourceFile' cannot be null.");
|
|
2897
|
+
else
|
|
2841
2898
|
content_.append("replacePlaceholderItemContentInfo.sourceFile", replacePlaceholderItemContentInfo_sourceFile.data, replacePlaceholderItemContentInfo_sourceFile.fileName ? replacePlaceholderItemContentInfo_sourceFile.fileName : "replacePlaceholderItemContentInfo.sourceFile");
|
|
2842
2899
|
let options_ = {
|
|
2843
2900
|
data: content_,
|
|
@@ -2888,13 +2945,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2888
2945
|
const _responseText = response.data;
|
|
2889
2946
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2890
2947
|
}
|
|
2891
|
-
else if (status === 500) {
|
|
2892
|
-
const _responseText = response.data;
|
|
2893
|
-
let result500 = null;
|
|
2894
|
-
let resultData500 = _responseText;
|
|
2895
|
-
result500 = JSON.parse(resultData500);
|
|
2896
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2897
|
-
}
|
|
2898
2948
|
else if (status !== 200 && status !== 204) {
|
|
2899
2949
|
const _responseText = response.data;
|
|
2900
2950
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2913,7 +2963,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2913
2963
|
if (id === undefined || id === null)
|
|
2914
2964
|
throw new Error("The parameter 'id' must be defined.");
|
|
2915
2965
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2916
|
-
if (privateStorageOwner
|
|
2966
|
+
if (privateStorageOwner === null)
|
|
2967
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
2968
|
+
else if (privateStorageOwner !== undefined)
|
|
2917
2969
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2918
2970
|
if (tenantId === null)
|
|
2919
2971
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2973,13 +3025,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2973
3025
|
const _responseText = response.data;
|
|
2974
3026
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2975
3027
|
}
|
|
2976
|
-
else if (status === 500) {
|
|
2977
|
-
const _responseText = response.data;
|
|
2978
|
-
let result500 = null;
|
|
2979
|
-
let resultData500 = _responseText;
|
|
2980
|
-
result500 = JSON.parse(resultData500);
|
|
2981
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2982
|
-
}
|
|
2983
3028
|
else if (status !== 200 && status !== 204) {
|
|
2984
3029
|
const _responseText = response.data;
|
|
2985
3030
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2987,9 +3032,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2987
3032
|
return Promise.resolve(null);
|
|
2988
3033
|
}
|
|
2989
3034
|
/**
|
|
2990
|
-
* Loads data schema from design file taken from storage
|
|
2991
|
-
* @param id Design identifier
|
|
2992
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3035
|
+
* Loads data schema from design file taken from storage.
|
|
3036
|
+
* @param id Design identifier.
|
|
3037
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
2993
3038
|
* @param tenantId (optional) Tenant identifier
|
|
2994
3039
|
* @return Success
|
|
2995
3040
|
*/
|
|
@@ -2998,7 +3043,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2998
3043
|
if (id === undefined || id === null)
|
|
2999
3044
|
throw new Error("The parameter 'id' must be defined.");
|
|
3000
3045
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3001
|
-
if (privateStorageOwner
|
|
3046
|
+
if (privateStorageOwner === null)
|
|
3047
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3048
|
+
else if (privateStorageOwner !== undefined)
|
|
3002
3049
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3003
3050
|
if (tenantId === null)
|
|
3004
3051
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3065,13 +3112,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3065
3112
|
const _responseText = response.data;
|
|
3066
3113
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3067
3114
|
}
|
|
3068
|
-
else if (status === 500) {
|
|
3069
|
-
const _responseText = response.data;
|
|
3070
|
-
let result500 = null;
|
|
3071
|
-
let resultData500 = _responseText;
|
|
3072
|
-
result500 = JSON.parse(resultData500);
|
|
3073
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3074
|
-
}
|
|
3075
3115
|
else if (status !== 200 && status !== 204) {
|
|
3076
3116
|
const _responseText = response.data;
|
|
3077
3117
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3079,7 +3119,7 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3079
3119
|
return Promise.resolve(null);
|
|
3080
3120
|
}
|
|
3081
3121
|
/**
|
|
3082
|
-
* Loads toggle set from design file taken from storage.
|
|
3122
|
+
* Loads a toggle set from design file taken from storage.
|
|
3083
3123
|
* @param id Design identifier.
|
|
3084
3124
|
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3085
3125
|
* @param tenantId (optional) Tenant identifier
|
|
@@ -3090,7 +3130,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3090
3130
|
if (id === undefined || id === null)
|
|
3091
3131
|
throw new Error("The parameter 'id' must be defined.");
|
|
3092
3132
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3093
|
-
if (privateStorageOwner
|
|
3133
|
+
if (privateStorageOwner === null)
|
|
3134
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3135
|
+
else if (privateStorageOwner !== undefined)
|
|
3094
3136
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3095
3137
|
if (tenantId === null)
|
|
3096
3138
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3157,13 +3199,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3157
3199
|
const _responseText = response.data;
|
|
3158
3200
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3159
3201
|
}
|
|
3160
|
-
else if (status === 500) {
|
|
3161
|
-
const _responseText = response.data;
|
|
3162
|
-
let result500 = null;
|
|
3163
|
-
let resultData500 = _responseText;
|
|
3164
|
-
result500 = JSON.parse(resultData500);
|
|
3165
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3166
|
-
}
|
|
3167
3202
|
else if (status !== 200 && status !== 204) {
|
|
3168
3203
|
const _responseText = response.data;
|
|
3169
3204
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3171,9 +3206,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3171
3206
|
return Promise.resolve(null);
|
|
3172
3207
|
}
|
|
3173
3208
|
/**
|
|
3174
|
-
* Gets variable items information for design file taken from storage
|
|
3175
|
-
* @param id Design identifier
|
|
3176
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3209
|
+
* Gets variable items information for design file taken from storage.
|
|
3210
|
+
* @param id Design identifier.
|
|
3211
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3177
3212
|
* @param tenantId (optional) Tenant identifier
|
|
3178
3213
|
* @return Success
|
|
3179
3214
|
*/
|
|
@@ -3182,7 +3217,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3182
3217
|
if (id === undefined || id === null)
|
|
3183
3218
|
throw new Error("The parameter 'id' must be defined.");
|
|
3184
3219
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3185
|
-
if (privateStorageOwner
|
|
3220
|
+
if (privateStorageOwner === null)
|
|
3221
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3222
|
+
else if (privateStorageOwner !== undefined)
|
|
3186
3223
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3187
3224
|
if (tenantId === null)
|
|
3188
3225
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3242,13 +3279,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3242
3279
|
const _responseText = response.data;
|
|
3243
3280
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3244
3281
|
}
|
|
3245
|
-
else if (status === 500) {
|
|
3246
|
-
const _responseText = response.data;
|
|
3247
|
-
let result500 = null;
|
|
3248
|
-
let resultData500 = _responseText;
|
|
3249
|
-
result500 = JSON.parse(resultData500);
|
|
3250
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3251
|
-
}
|
|
3252
3282
|
else if (status !== 200 && status !== 204) {
|
|
3253
3283
|
const _responseText = response.data;
|
|
3254
3284
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3256,11 +3286,11 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3256
3286
|
return Promise.resolve(null);
|
|
3257
3287
|
}
|
|
3258
3288
|
/**
|
|
3259
|
-
* Sets variable items values for design file taken from storage
|
|
3260
|
-
* @param id Design identifier
|
|
3261
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3289
|
+
* Sets variable items values for design file taken from storage.
|
|
3290
|
+
* @param id Design identifier.
|
|
3291
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3262
3292
|
* @param tenantId (optional) Tenant identifier
|
|
3263
|
-
* @param body (optional) Design variable values
|
|
3293
|
+
* @param body (optional) Design variable values.
|
|
3264
3294
|
* @return Success
|
|
3265
3295
|
*/
|
|
3266
3296
|
setVariables(id, privateStorageOwner, tenantId, body, cancelToken) {
|
|
@@ -3268,7 +3298,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3268
3298
|
if (id === undefined || id === null)
|
|
3269
3299
|
throw new Error("The parameter 'id' must be defined.");
|
|
3270
3300
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3271
|
-
if (privateStorageOwner
|
|
3301
|
+
if (privateStorageOwner === null)
|
|
3302
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3303
|
+
else if (privateStorageOwner !== undefined)
|
|
3272
3304
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3273
3305
|
if (tenantId === null)
|
|
3274
3306
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3334,13 +3366,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3334
3366
|
const _responseText = response.data;
|
|
3335
3367
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3336
3368
|
}
|
|
3337
|
-
else if (status === 500) {
|
|
3338
|
-
const _responseText = response.data;
|
|
3339
|
-
let result500 = null;
|
|
3340
|
-
let resultData500 = _responseText;
|
|
3341
|
-
result500 = JSON.parse(resultData500);
|
|
3342
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3343
|
-
}
|
|
3344
3369
|
else if (status !== 200 && status !== 204) {
|
|
3345
3370
|
const _responseText = response.data;
|
|
3346
3371
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3348,9 +3373,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3348
3373
|
return Promise.resolve(null);
|
|
3349
3374
|
}
|
|
3350
3375
|
/**
|
|
3351
|
-
* Loads variable data printing information from design file taken from storage
|
|
3352
|
-
* @param id Design identifier
|
|
3353
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3376
|
+
* Loads variable data printing information from design file taken from storage.
|
|
3377
|
+
* @param id Design identifier.
|
|
3378
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3354
3379
|
* @param tenantId (optional) Tenant identifier
|
|
3355
3380
|
* @return Success
|
|
3356
3381
|
*/
|
|
@@ -3359,7 +3384,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3359
3384
|
if (id === undefined || id === null)
|
|
3360
3385
|
throw new Error("The parameter 'id' must be defined.");
|
|
3361
3386
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3362
|
-
if (privateStorageOwner
|
|
3387
|
+
if (privateStorageOwner === null)
|
|
3388
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3389
|
+
else if (privateStorageOwner !== undefined)
|
|
3363
3390
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3364
3391
|
if (tenantId === null)
|
|
3365
3392
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3426,13 +3453,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3426
3453
|
const _responseText = response.data;
|
|
3427
3454
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3428
3455
|
}
|
|
3429
|
-
else if (status === 500) {
|
|
3430
|
-
const _responseText = response.data;
|
|
3431
|
-
let result500 = null;
|
|
3432
|
-
let resultData500 = _responseText;
|
|
3433
|
-
result500 = JSON.parse(resultData500);
|
|
3434
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3435
|
-
}
|
|
3436
3456
|
else if (status !== 200 && status !== 204) {
|
|
3437
3457
|
const _responseText = response.data;
|
|
3438
3458
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3441,10 +3461,10 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3441
3461
|
}
|
|
3442
3462
|
/**
|
|
3443
3463
|
* Saves variable data printing information to design file and updates design in storage.
|
|
3444
|
-
* @param id Design identifier
|
|
3445
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3464
|
+
* @param id Design identifier.
|
|
3465
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3446
3466
|
* @param tenantId (optional) Tenant identifier
|
|
3447
|
-
* @param body (optional) Serialized vdp data
|
|
3467
|
+
* @param body (optional) Serialized vdp data.
|
|
3448
3468
|
* @return Success
|
|
3449
3469
|
*/
|
|
3450
3470
|
saveVdpData(id, privateStorageOwner, tenantId, body, cancelToken) {
|
|
@@ -3452,7 +3472,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3452
3472
|
if (id === undefined || id === null)
|
|
3453
3473
|
throw new Error("The parameter 'id' must be defined.");
|
|
3454
3474
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3455
|
-
if (privateStorageOwner
|
|
3475
|
+
if (privateStorageOwner === null)
|
|
3476
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3477
|
+
else if (privateStorageOwner !== undefined)
|
|
3456
3478
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3457
3479
|
if (tenantId === null)
|
|
3458
3480
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3511,13 +3533,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3511
3533
|
const _responseText = response.data;
|
|
3512
3534
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3513
3535
|
}
|
|
3514
|
-
else if (status === 500) {
|
|
3515
|
-
const _responseText = response.data;
|
|
3516
|
-
let result500 = null;
|
|
3517
|
-
let resultData500 = _responseText;
|
|
3518
|
-
result500 = JSON.parse(resultData500);
|
|
3519
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3520
|
-
}
|
|
3521
3536
|
else if (status !== 200 && status !== 204) {
|
|
3522
3537
|
const _responseText = response.data;
|
|
3523
3538
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3526,8 +3541,8 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3526
3541
|
}
|
|
3527
3542
|
/**
|
|
3528
3543
|
* Deletes variable data printing information from design file and updates design in storage.
|
|
3529
|
-
* @param id Design identifier
|
|
3530
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3544
|
+
* @param id Design identifier.
|
|
3545
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3531
3546
|
* @param tenantId (optional) Tenant identifier
|
|
3532
3547
|
* @return Success
|
|
3533
3548
|
*/
|
|
@@ -3536,7 +3551,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3536
3551
|
if (id === undefined || id === null)
|
|
3537
3552
|
throw new Error("The parameter 'id' must be defined.");
|
|
3538
3553
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3539
|
-
if (privateStorageOwner
|
|
3554
|
+
if (privateStorageOwner === null)
|
|
3555
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3556
|
+
else if (privateStorageOwner !== undefined)
|
|
3540
3557
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3541
3558
|
if (tenantId === null)
|
|
3542
3559
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3591,13 +3608,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3591
3608
|
const _responseText = response.data;
|
|
3592
3609
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3593
3610
|
}
|
|
3594
|
-
else if (status === 500) {
|
|
3595
|
-
const _responseText = response.data;
|
|
3596
|
-
let result500 = null;
|
|
3597
|
-
let resultData500 = _responseText;
|
|
3598
|
-
result500 = JSON.parse(resultData500);
|
|
3599
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3600
|
-
}
|
|
3601
3611
|
else if (status !== 200 && status !== 204) {
|
|
3602
3612
|
const _responseText = response.data;
|
|
3603
3613
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3605,9 +3615,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3605
3615
|
return Promise.resolve(null);
|
|
3606
3616
|
}
|
|
3607
3617
|
/**
|
|
3608
|
-
* Loads product (design model) from resource file taken from storage
|
|
3609
|
-
* @param id Resource identifier
|
|
3610
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3618
|
+
* Loads product (design model) from resource file taken from storage.
|
|
3619
|
+
* @param id Resource identifier.
|
|
3620
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3611
3621
|
* @param tenantId (optional) Tenant identifier
|
|
3612
3622
|
* @return Success
|
|
3613
3623
|
*/
|
|
@@ -3616,7 +3626,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3616
3626
|
if (id === undefined || id === null)
|
|
3617
3627
|
throw new Error("The parameter 'id' must be defined.");
|
|
3618
3628
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3619
|
-
if (privateStorageOwner
|
|
3629
|
+
if (privateStorageOwner === null)
|
|
3630
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3631
|
+
else if (privateStorageOwner !== undefined)
|
|
3620
3632
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3621
3633
|
if (tenantId === null)
|
|
3622
3634
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3683,13 +3695,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3683
3695
|
const _responseText = response.data;
|
|
3684
3696
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3685
3697
|
}
|
|
3686
|
-
else if (status === 500) {
|
|
3687
|
-
const _responseText = response.data;
|
|
3688
|
-
let result500 = null;
|
|
3689
|
-
let resultData500 = _responseText;
|
|
3690
|
-
result500 = JSON.parse(resultData500);
|
|
3691
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3692
|
-
}
|
|
3693
3698
|
else if (status !== 200 && status !== 204) {
|
|
3694
3699
|
const _responseText = response.data;
|
|
3695
3700
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3697,9 +3702,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3697
3702
|
return Promise.resolve(null);
|
|
3698
3703
|
}
|
|
3699
3704
|
/**
|
|
3700
|
-
* Converts colors
|
|
3705
|
+
* Converts colors.
|
|
3701
3706
|
* @param tenantId (optional) Tenant identifier
|
|
3702
|
-
* @param body (optional) Convert colors operation parameters
|
|
3707
|
+
* @param body (optional) Convert colors operation parameters.
|
|
3703
3708
|
* @return Success
|
|
3704
3709
|
*/
|
|
3705
3710
|
convertColors(tenantId, body, cancelToken) {
|
|
@@ -3765,13 +3770,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3765
3770
|
const _responseText = response.data;
|
|
3766
3771
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3767
3772
|
}
|
|
3768
|
-
else if (status === 500) {
|
|
3769
|
-
const _responseText = response.data;
|
|
3770
|
-
let result500 = null;
|
|
3771
|
-
let resultData500 = _responseText;
|
|
3772
|
-
result500 = JSON.parse(resultData500);
|
|
3773
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3774
|
-
}
|
|
3775
3773
|
else if (status !== 200 && status !== 204) {
|
|
3776
3774
|
const _responseText = response.data;
|
|
3777
3775
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3779,8 +3777,8 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3779
3777
|
return Promise.resolve(null);
|
|
3780
3778
|
}
|
|
3781
3779
|
/**
|
|
3782
|
-
* Creates product item
|
|
3783
|
-
* @param itemType (optional) Desired item type
|
|
3780
|
+
* Creates product item.
|
|
3781
|
+
* @param itemType (optional) Desired item type.
|
|
3784
3782
|
* @param tenantId (optional) Tenant identifier
|
|
3785
3783
|
* @param sourceType (optional)
|
|
3786
3784
|
* @param sourceId (optional)
|
|
@@ -3790,7 +3788,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3790
3788
|
*/
|
|
3791
3789
|
createItem(itemType, tenantId, sourceType, sourceId, sourceOwnerId, sourceFile, cancelToken) {
|
|
3792
3790
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/model/items?";
|
|
3793
|
-
if (itemType
|
|
3791
|
+
if (itemType === null)
|
|
3792
|
+
throw new Error("The parameter 'itemType' cannot be null.");
|
|
3793
|
+
else if (itemType !== undefined)
|
|
3794
3794
|
url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
|
|
3795
3795
|
if (tenantId === null)
|
|
3796
3796
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3798,13 +3798,21 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3798
3798
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
3799
3799
|
url_ = url_.replace(/[?&]$/, "");
|
|
3800
3800
|
const content_ = new FormData();
|
|
3801
|
-
if (sourceType
|
|
3801
|
+
if (sourceType === null || sourceType === undefined)
|
|
3802
|
+
throw new Error("The parameter 'sourceType' cannot be null.");
|
|
3803
|
+
else
|
|
3802
3804
|
content_.append("sourceType", sourceType.toString());
|
|
3803
|
-
if (sourceId
|
|
3805
|
+
if (sourceId === null || sourceId === undefined)
|
|
3806
|
+
throw new Error("The parameter 'sourceId' cannot be null.");
|
|
3807
|
+
else
|
|
3804
3808
|
content_.append("sourceId", sourceId.toString());
|
|
3805
|
-
if (sourceOwnerId
|
|
3809
|
+
if (sourceOwnerId === null || sourceOwnerId === undefined)
|
|
3810
|
+
throw new Error("The parameter 'sourceOwnerId' cannot be null.");
|
|
3811
|
+
else
|
|
3806
3812
|
content_.append("sourceOwnerId", sourceOwnerId.toString());
|
|
3807
|
-
if (sourceFile
|
|
3813
|
+
if (sourceFile === null || sourceFile === undefined)
|
|
3814
|
+
throw new Error("The parameter 'sourceFile' cannot be null.");
|
|
3815
|
+
else
|
|
3808
3816
|
content_.append("sourceFile", sourceFile.data, sourceFile.fileName ? sourceFile.fileName : "sourceFile");
|
|
3809
3817
|
let options_ = {
|
|
3810
3818
|
data: content_,
|
|
@@ -3860,13 +3868,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3860
3868
|
const _responseText = response.data;
|
|
3861
3869
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3862
3870
|
}
|
|
3863
|
-
else if (status === 500) {
|
|
3864
|
-
const _responseText = response.data;
|
|
3865
|
-
let result500 = null;
|
|
3866
|
-
let resultData500 = _responseText;
|
|
3867
|
-
result500 = JSON.parse(resultData500);
|
|
3868
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3869
|
-
}
|
|
3870
3871
|
else if (status !== 200 && status !== 204) {
|
|
3871
3872
|
const _responseText = response.data;
|
|
3872
3873
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3935,13 +3936,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3935
3936
|
const _responseText = response.data;
|
|
3936
3937
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3937
3938
|
}
|
|
3938
|
-
else if (status === 500) {
|
|
3939
|
-
const _responseText = response.data;
|
|
3940
|
-
let result500 = null;
|
|
3941
|
-
let resultData500 = _responseText;
|
|
3942
|
-
result500 = JSON.parse(resultData500);
|
|
3943
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3944
|
-
}
|
|
3945
3939
|
else if (status !== 200 && status !== 204) {
|
|
3946
3940
|
const _responseText = response.data;
|
|
3947
3941
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4010,13 +4004,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4010
4004
|
const _responseText = response.data;
|
|
4011
4005
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4012
4006
|
}
|
|
4013
|
-
else if (status === 500) {
|
|
4014
|
-
const _responseText = response.data;
|
|
4015
|
-
let result500 = null;
|
|
4016
|
-
let resultData500 = _responseText;
|
|
4017
|
-
result500 = JSON.parse(resultData500);
|
|
4018
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4019
|
-
}
|
|
4020
4007
|
else if (status !== 200 && status !== 204) {
|
|
4021
4008
|
const _responseText = response.data;
|
|
4022
4009
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4025,14 +4012,17 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4025
4012
|
}
|
|
4026
4013
|
/**
|
|
4027
4014
|
* Render product proof image with specified parameters.
|
|
4028
|
-
* @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
|
|
4015
|
+
* @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
|
|
4016
|
+
(default value is 'false').
|
|
4029
4017
|
* @param tenantId (optional) Tenant identifier
|
|
4030
4018
|
* @param body (optional) Preview parameters.
|
|
4031
4019
|
* @return Success
|
|
4032
4020
|
*/
|
|
4033
4021
|
renderProduct(attachment, tenantId, body, cancelToken) {
|
|
4034
4022
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/model/render-proof?";
|
|
4035
|
-
if (attachment
|
|
4023
|
+
if (attachment === null)
|
|
4024
|
+
throw new Error("The parameter 'attachment' cannot be null.");
|
|
4025
|
+
else if (attachment !== undefined)
|
|
4036
4026
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
4037
4027
|
if (tenantId === null)
|
|
4038
4028
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4088,13 +4078,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4088
4078
|
const _responseText = response.data;
|
|
4089
4079
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4090
4080
|
}
|
|
4091
|
-
else if (status === 500) {
|
|
4092
|
-
const _responseText = response.data;
|
|
4093
|
-
let result500 = null;
|
|
4094
|
-
let resultData500 = _responseText;
|
|
4095
|
-
result500 = JSON.parse(resultData500);
|
|
4096
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4097
|
-
}
|
|
4098
4081
|
else if (status !== 200 && status !== 204) {
|
|
4099
4082
|
const _responseText = response.data;
|
|
4100
4083
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4111,7 +4094,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4111
4094
|
*/
|
|
4112
4095
|
renderDesignPreview(attachment, tenantId, body, cancelToken) {
|
|
4113
4096
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/render-preview?";
|
|
4114
|
-
if (attachment
|
|
4097
|
+
if (attachment === null)
|
|
4098
|
+
throw new Error("The parameter 'attachment' cannot be null.");
|
|
4099
|
+
else if (attachment !== undefined)
|
|
4115
4100
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
4116
4101
|
if (tenantId === null)
|
|
4117
4102
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4167,13 +4152,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4167
4152
|
const _responseText = response.data;
|
|
4168
4153
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4169
4154
|
}
|
|
4170
|
-
else if (status === 500) {
|
|
4171
|
-
const _responseText = response.data;
|
|
4172
|
-
let result500 = null;
|
|
4173
|
-
let resultData500 = _responseText;
|
|
4174
|
-
result500 = JSON.parse(resultData500);
|
|
4175
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4176
|
-
}
|
|
4177
4155
|
else if (status !== 200 && status !== 204) {
|
|
4178
4156
|
const _responseText = response.data;
|
|
4179
4157
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4242,13 +4220,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4242
4220
|
const _responseText = response.data;
|
|
4243
4221
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4244
4222
|
}
|
|
4245
|
-
else if (status === 500) {
|
|
4246
|
-
const _responseText = response.data;
|
|
4247
|
-
let result500 = null;
|
|
4248
|
-
let resultData500 = _responseText;
|
|
4249
|
-
result500 = JSON.parse(resultData500);
|
|
4250
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4251
|
-
}
|
|
4252
4223
|
else if (status !== 200 && status !== 204) {
|
|
4253
4224
|
const _responseText = response.data;
|
|
4254
4225
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4265,7 +4236,9 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4265
4236
|
*/
|
|
4266
4237
|
renderDesignProof(attachment, tenantId, body, cancelToken) {
|
|
4267
4238
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/render-proof?";
|
|
4268
|
-
if (attachment
|
|
4239
|
+
if (attachment === null)
|
|
4240
|
+
throw new Error("The parameter 'attachment' cannot be null.");
|
|
4241
|
+
else if (attachment !== undefined)
|
|
4269
4242
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
4270
4243
|
if (tenantId === null)
|
|
4271
4244
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4321,13 +4294,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4321
4294
|
const _responseText = response.data;
|
|
4322
4295
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4323
4296
|
}
|
|
4324
|
-
else if (status === 500) {
|
|
4325
|
-
const _responseText = response.data;
|
|
4326
|
-
let result500 = null;
|
|
4327
|
-
let resultData500 = _responseText;
|
|
4328
|
-
result500 = JSON.parse(resultData500);
|
|
4329
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4330
|
-
}
|
|
4331
4297
|
else if (status !== 200 && status !== 204) {
|
|
4332
4298
|
const _responseText = response.data;
|
|
4333
4299
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4396,13 +4362,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4396
4362
|
const _responseText = response.data;
|
|
4397
4363
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4398
4364
|
}
|
|
4399
|
-
else if (status === 500) {
|
|
4400
|
-
const _responseText = response.data;
|
|
4401
|
-
let result500 = null;
|
|
4402
|
-
let resultData500 = _responseText;
|
|
4403
|
-
result500 = JSON.parse(resultData500);
|
|
4404
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4405
|
-
}
|
|
4406
4365
|
else if (status !== 200 && status !== 204) {
|
|
4407
4366
|
const _responseText = response.data;
|
|
4408
4367
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4411,20 +4370,26 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4411
4370
|
}
|
|
4412
4371
|
/**
|
|
4413
4372
|
* Creates a private design from a public design.
|
|
4414
|
-
* @param designId (optional) Public design
|
|
4415
|
-
* @param privateDesignId (optional) Private design
|
|
4416
|
-
* @param privateStorageOwner (optional) Private storage owner
|
|
4373
|
+
* @param designId (optional) Public design identifier.
|
|
4374
|
+
* @param privateDesignId (optional) Private design identifier.
|
|
4375
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4417
4376
|
* @param tenantId (optional) Tenant identifier
|
|
4418
|
-
* @return
|
|
4377
|
+
* @return Created
|
|
4419
4378
|
* @deprecated
|
|
4420
4379
|
*/
|
|
4421
4380
|
createPrivateDesignFromDesign(designId, privateDesignId, privateStorageOwner, tenantId, cancelToken) {
|
|
4422
4381
|
let url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-design?";
|
|
4423
|
-
if (designId
|
|
4382
|
+
if (designId === null)
|
|
4383
|
+
throw new Error("The parameter 'designId' cannot be null.");
|
|
4384
|
+
else if (designId !== undefined)
|
|
4424
4385
|
url_ += "designId=" + encodeURIComponent("" + designId) + "&";
|
|
4425
|
-
if (privateDesignId
|
|
4386
|
+
if (privateDesignId === null)
|
|
4387
|
+
throw new Error("The parameter 'privateDesignId' cannot be null.");
|
|
4388
|
+
else if (privateDesignId !== undefined)
|
|
4426
4389
|
url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
|
|
4427
|
-
if (privateStorageOwner
|
|
4390
|
+
if (privateStorageOwner === null)
|
|
4391
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4392
|
+
else if (privateStorageOwner !== undefined)
|
|
4428
4393
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4429
4394
|
if (tenantId === null)
|
|
4430
4395
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4472,13 +4437,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4472
4437
|
const _responseText = response.data;
|
|
4473
4438
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4474
4439
|
}
|
|
4475
|
-
else if (status === 500) {
|
|
4476
|
-
const _responseText = response.data;
|
|
4477
|
-
let result500 = null;
|
|
4478
|
-
let resultData500 = _responseText;
|
|
4479
|
-
result500 = JSON.parse(resultData500);
|
|
4480
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4481
|
-
}
|
|
4482
4440
|
else if (status !== 200 && status !== 204) {
|
|
4483
4441
|
const _responseText = response.data;
|
|
4484
4442
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4487,20 +4445,26 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4487
4445
|
}
|
|
4488
4446
|
/**
|
|
4489
4447
|
* Creates a private design from a public resource.
|
|
4490
|
-
* @param resourceId (optional) Resource
|
|
4491
|
-
* @param privateDesignId (optional) Private design
|
|
4492
|
-
* @param privateStorageOwner (optional) Private storage owner
|
|
4493
|
-
* @param tenantId (optional) Tenant identifier
|
|
4494
|
-
* @return
|
|
4448
|
+
* @param resourceId (optional) Resource identifier.
|
|
4449
|
+
* @param privateDesignId (optional) Private design identifier.
|
|
4450
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4451
|
+
* @param tenantId (optional) Tenant identifier.
|
|
4452
|
+
* @return Created
|
|
4495
4453
|
* @deprecated
|
|
4496
4454
|
*/
|
|
4497
4455
|
createPrivateDesignFromResource(resourceId, privateDesignId, privateStorageOwner, tenantId, cancelToken) {
|
|
4498
4456
|
let url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-resource?";
|
|
4499
|
-
if (resourceId
|
|
4457
|
+
if (resourceId === null)
|
|
4458
|
+
throw new Error("The parameter 'resourceId' cannot be null.");
|
|
4459
|
+
else if (resourceId !== undefined)
|
|
4500
4460
|
url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
|
|
4501
|
-
if (privateDesignId
|
|
4461
|
+
if (privateDesignId === null)
|
|
4462
|
+
throw new Error("The parameter 'privateDesignId' cannot be null.");
|
|
4463
|
+
else if (privateDesignId !== undefined)
|
|
4502
4464
|
url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
|
|
4503
|
-
if (privateStorageOwner
|
|
4465
|
+
if (privateStorageOwner === null)
|
|
4466
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4467
|
+
else if (privateStorageOwner !== undefined)
|
|
4504
4468
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4505
4469
|
if (tenantId === null)
|
|
4506
4470
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4548,13 +4512,6 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4548
4512
|
const _responseText = response.data;
|
|
4549
4513
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4550
4514
|
}
|
|
4551
|
-
else if (status === 500) {
|
|
4552
|
-
const _responseText = response.data;
|
|
4553
|
-
let result500 = null;
|
|
4554
|
-
let resultData500 = _responseText;
|
|
4555
|
-
result500 = JSON.parse(resultData500);
|
|
4556
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4557
|
-
}
|
|
4558
4515
|
else if (status !== 200 && status !== 204) {
|
|
4559
4516
|
const _responseText = response.data;
|
|
4560
4517
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4590,7 +4547,7 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4590
4547
|
url: url_,
|
|
4591
4548
|
headers: {
|
|
4592
4549
|
"Content-Type": "application/json",
|
|
4593
|
-
"Accept": "
|
|
4550
|
+
"Accept": "text/css"
|
|
4594
4551
|
},
|
|
4595
4552
|
cancelToken
|
|
4596
4553
|
};
|
|
@@ -4624,12 +4581,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4624
4581
|
result200 = JSON.parse(resultData200);
|
|
4625
4582
|
return Promise.resolve(result200);
|
|
4626
4583
|
}
|
|
4627
|
-
else if (status ===
|
|
4584
|
+
else if (status === 401) {
|
|
4628
4585
|
const _responseText = response.data;
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4586
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4587
|
+
}
|
|
4588
|
+
else if (status === 403) {
|
|
4589
|
+
const _responseText = response.data;
|
|
4590
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4633
4591
|
}
|
|
4634
4592
|
else if (status !== 200 && status !== 204) {
|
|
4635
4593
|
const _responseText = response.data;
|
|
@@ -4696,12 +4654,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4696
4654
|
result404 = JSON.parse(resultData404);
|
|
4697
4655
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
4698
4656
|
}
|
|
4699
|
-
else if (status ===
|
|
4657
|
+
else if (status === 401) {
|
|
4658
|
+
const _responseText = response.data;
|
|
4659
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4660
|
+
}
|
|
4661
|
+
else if (status === 403) {
|
|
4700
4662
|
const _responseText = response.data;
|
|
4701
|
-
|
|
4702
|
-
let resultData500 = _responseText;
|
|
4703
|
-
result500 = JSON.parse(resultData500);
|
|
4704
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4663
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4705
4664
|
}
|
|
4706
4665
|
else if (status !== 200 && status !== 204) {
|
|
4707
4666
|
const _responseText = response.data;
|
|
@@ -4762,12 +4721,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4762
4721
|
result200 = JSON.parse(resultData200);
|
|
4763
4722
|
return Promise.resolve(result200);
|
|
4764
4723
|
}
|
|
4765
|
-
else if (status ===
|
|
4724
|
+
else if (status === 401) {
|
|
4766
4725
|
const _responseText = response.data;
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4726
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4727
|
+
}
|
|
4728
|
+
else if (status === 403) {
|
|
4729
|
+
const _responseText = response.data;
|
|
4730
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4771
4731
|
}
|
|
4772
4732
|
else if (status !== 200 && status !== 204) {
|
|
4773
4733
|
const _responseText = response.data;
|
|
@@ -4828,12 +4788,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4828
4788
|
result200 = JSON.parse(resultData200);
|
|
4829
4789
|
return Promise.resolve(result200);
|
|
4830
4790
|
}
|
|
4831
|
-
else if (status ===
|
|
4791
|
+
else if (status === 401) {
|
|
4792
|
+
const _responseText = response.data;
|
|
4793
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4794
|
+
}
|
|
4795
|
+
else if (status === 403) {
|
|
4832
4796
|
const _responseText = response.data;
|
|
4833
|
-
|
|
4834
|
-
let resultData500 = _responseText;
|
|
4835
|
-
result500 = JSON.parse(resultData500);
|
|
4836
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4797
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4837
4798
|
}
|
|
4838
4799
|
else if (status !== 200 && status !== 204) {
|
|
4839
4800
|
const _responseText = response.data;
|
|
@@ -4848,7 +4809,9 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4848
4809
|
*/
|
|
4849
4810
|
getCssFont(fontKey, tenantId, cancelToken) {
|
|
4850
4811
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/GetCssFont?";
|
|
4851
|
-
if (fontKey
|
|
4812
|
+
if (fontKey === null)
|
|
4813
|
+
throw new Error("The parameter 'fontKey' cannot be null.");
|
|
4814
|
+
else if (fontKey !== undefined)
|
|
4852
4815
|
url_ += "fontKey=" + encodeURIComponent("" + fontKey) + "&";
|
|
4853
4816
|
if (tenantId === null)
|
|
4854
4817
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4900,12 +4863,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4900
4863
|
result404 = JSON.parse(resultData404);
|
|
4901
4864
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
4902
4865
|
}
|
|
4903
|
-
else if (status ===
|
|
4866
|
+
else if (status === 401) {
|
|
4867
|
+
const _responseText = response.data;
|
|
4868
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4869
|
+
}
|
|
4870
|
+
else if (status === 403) {
|
|
4904
4871
|
const _responseText = response.data;
|
|
4905
|
-
|
|
4906
|
-
let resultData500 = _responseText;
|
|
4907
|
-
result500 = JSON.parse(resultData500);
|
|
4908
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4872
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4909
4873
|
}
|
|
4910
4874
|
else if (status !== 200 && status !== 204) {
|
|
4911
4875
|
const _responseText = response.data;
|
|
@@ -4925,7 +4889,6 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4925
4889
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
4926
4890
|
url_ = url_.replace(/[?&]$/, "");
|
|
4927
4891
|
let options_ = {
|
|
4928
|
-
responseType: "blob",
|
|
4929
4892
|
method: "GET",
|
|
4930
4893
|
url: url_,
|
|
4931
4894
|
headers: {
|
|
@@ -4956,18 +4919,20 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4956
4919
|
}
|
|
4957
4920
|
}
|
|
4958
4921
|
}
|
|
4959
|
-
if (status === 200
|
|
4960
|
-
const
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4922
|
+
if (status === 200) {
|
|
4923
|
+
const _responseText = response.data;
|
|
4924
|
+
let result200 = null;
|
|
4925
|
+
let resultData200 = _responseText;
|
|
4926
|
+
result200 = JSON.parse(resultData200);
|
|
4927
|
+
return Promise.resolve(result200);
|
|
4928
|
+
}
|
|
4929
|
+
else if (status === 401) {
|
|
4930
|
+
const _responseText = response.data;
|
|
4931
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4964
4932
|
}
|
|
4965
|
-
else if (status ===
|
|
4933
|
+
else if (status === 403) {
|
|
4966
4934
|
const _responseText = response.data;
|
|
4967
|
-
|
|
4968
|
-
let resultData500 = _responseText;
|
|
4969
|
-
result500 = JSON.parse(resultData500);
|
|
4970
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4935
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4971
4936
|
}
|
|
4972
4937
|
else if (status !== 200 && status !== 204) {
|
|
4973
4938
|
const _responseText = response.data;
|
|
@@ -5028,12 +4993,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5028
4993
|
result200 = JSON.parse(resultData200);
|
|
5029
4994
|
return Promise.resolve(result200);
|
|
5030
4995
|
}
|
|
5031
|
-
else if (status ===
|
|
4996
|
+
else if (status === 401) {
|
|
4997
|
+
const _responseText = response.data;
|
|
4998
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4999
|
+
}
|
|
5000
|
+
else if (status === 403) {
|
|
5032
5001
|
const _responseText = response.data;
|
|
5033
|
-
|
|
5034
|
-
let resultData500 = _responseText;
|
|
5035
|
-
result500 = JSON.parse(resultData500);
|
|
5036
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5002
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5037
5003
|
}
|
|
5038
5004
|
else if (status !== 200 && status !== 204) {
|
|
5039
5005
|
const _responseText = response.data;
|
|
@@ -5094,12 +5060,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5094
5060
|
result200 = JSON.parse(resultData200);
|
|
5095
5061
|
return Promise.resolve(result200);
|
|
5096
5062
|
}
|
|
5097
|
-
else if (status ===
|
|
5063
|
+
else if (status === 401) {
|
|
5098
5064
|
const _responseText = response.data;
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5065
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5066
|
+
}
|
|
5067
|
+
else if (status === 403) {
|
|
5068
|
+
const _responseText = response.data;
|
|
5069
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5103
5070
|
}
|
|
5104
5071
|
else if (status !== 200 && status !== 204) {
|
|
5105
5072
|
const _responseText = response.data;
|
|
@@ -5160,12 +5127,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5160
5127
|
result200 = JSON.parse(resultData200);
|
|
5161
5128
|
return Promise.resolve(result200);
|
|
5162
5129
|
}
|
|
5163
|
-
else if (status ===
|
|
5130
|
+
else if (status === 401) {
|
|
5131
|
+
const _responseText = response.data;
|
|
5132
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5133
|
+
}
|
|
5134
|
+
else if (status === 403) {
|
|
5164
5135
|
const _responseText = response.data;
|
|
5165
|
-
|
|
5166
|
-
let resultData500 = _responseText;
|
|
5167
|
-
result500 = JSON.parse(resultData500);
|
|
5168
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5136
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5169
5137
|
}
|
|
5170
5138
|
else if (status !== 200 && status !== 204) {
|
|
5171
5139
|
const _responseText = response.data;
|
|
@@ -5197,41 +5165,77 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5197
5165
|
*/
|
|
5198
5166
|
img(f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId, cancelToken) {
|
|
5199
5167
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/img?";
|
|
5200
|
-
if (f
|
|
5168
|
+
if (f === null)
|
|
5169
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
5170
|
+
else if (f !== undefined)
|
|
5201
5171
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
5202
|
-
if (w
|
|
5172
|
+
if (w === null)
|
|
5173
|
+
throw new Error("The parameter 'w' cannot be null.");
|
|
5174
|
+
else if (w !== undefined)
|
|
5203
5175
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
5204
|
-
if (h
|
|
5176
|
+
if (h === null)
|
|
5177
|
+
throw new Error("The parameter 'h' cannot be null.");
|
|
5178
|
+
else if (h !== undefined)
|
|
5205
5179
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
5206
|
-
if (cmyk
|
|
5180
|
+
if (cmyk === null)
|
|
5181
|
+
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
5182
|
+
else if (cmyk !== undefined)
|
|
5207
5183
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
5208
|
-
if (rgb
|
|
5184
|
+
if (rgb === null)
|
|
5185
|
+
throw new Error("The parameter 'rgb' cannot be null.");
|
|
5186
|
+
else if (rgb !== undefined)
|
|
5209
5187
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
5210
|
-
if (grayscale
|
|
5188
|
+
if (grayscale === null)
|
|
5189
|
+
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
5190
|
+
else if (grayscale !== undefined)
|
|
5211
5191
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
5212
|
-
if (target
|
|
5192
|
+
if (target === null)
|
|
5193
|
+
throw new Error("The parameter 'target' cannot be null.");
|
|
5194
|
+
else if (target !== undefined)
|
|
5213
5195
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
5214
|
-
if (sq
|
|
5196
|
+
if (sq === null)
|
|
5197
|
+
throw new Error("The parameter 'sq' cannot be null.");
|
|
5198
|
+
else if (sq !== undefined)
|
|
5215
5199
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
5216
|
-
if (effect
|
|
5200
|
+
if (effect === null)
|
|
5201
|
+
throw new Error("The parameter 'effect' cannot be null.");
|
|
5202
|
+
else if (effect !== undefined)
|
|
5217
5203
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
5218
|
-
if (kp
|
|
5204
|
+
if (kp === null)
|
|
5205
|
+
throw new Error("The parameter 'kp' cannot be null.");
|
|
5206
|
+
else if (kp !== undefined)
|
|
5219
5207
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
5220
|
-
if (color
|
|
5208
|
+
if (color === null)
|
|
5209
|
+
throw new Error("The parameter 'color' cannot be null.");
|
|
5210
|
+
else if (color !== undefined)
|
|
5221
5211
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
5222
|
-
if (obm
|
|
5212
|
+
if (obm === null)
|
|
5213
|
+
throw new Error("The parameter 'obm' cannot be null.");
|
|
5214
|
+
else if (obm !== undefined)
|
|
5223
5215
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
5224
|
-
if (oo
|
|
5216
|
+
if (oo === null)
|
|
5217
|
+
throw new Error("The parameter 'oo' cannot be null.");
|
|
5218
|
+
else if (oo !== undefined)
|
|
5225
5219
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
5226
|
-
if (alphaMask
|
|
5220
|
+
if (alphaMask === null)
|
|
5221
|
+
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
5222
|
+
else if (alphaMask !== undefined)
|
|
5227
5223
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
5228
|
-
if (page
|
|
5224
|
+
if (page === null)
|
|
5225
|
+
throw new Error("The parameter 'page' cannot be null.");
|
|
5226
|
+
else if (page !== undefined)
|
|
5229
5227
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
5230
|
-
if (colorizeColor
|
|
5228
|
+
if (colorizeColor === null)
|
|
5229
|
+
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
5230
|
+
else if (colorizeColor !== undefined)
|
|
5231
5231
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
5232
|
-
if (rw
|
|
5232
|
+
if (rw === null)
|
|
5233
|
+
throw new Error("The parameter 'rw' cannot be null.");
|
|
5234
|
+
else if (rw !== undefined)
|
|
5233
5235
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
5234
|
-
if (rh
|
|
5236
|
+
if (rh === null)
|
|
5237
|
+
throw new Error("The parameter 'rh' cannot be null.");
|
|
5238
|
+
else if (rh !== undefined)
|
|
5235
5239
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
5236
5240
|
if (tenantId === null)
|
|
5237
5241
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5287,12 +5291,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5287
5291
|
result404 = JSON.parse(resultData404);
|
|
5288
5292
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5289
5293
|
}
|
|
5290
|
-
else if (status ===
|
|
5294
|
+
else if (status === 401) {
|
|
5295
|
+
const _responseText = response.data;
|
|
5296
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5297
|
+
}
|
|
5298
|
+
else if (status === 403) {
|
|
5291
5299
|
const _responseText = response.data;
|
|
5292
|
-
|
|
5293
|
-
let resultData500 = _responseText;
|
|
5294
|
-
result500 = JSON.parse(resultData500);
|
|
5295
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5300
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5296
5301
|
}
|
|
5297
5302
|
else if (status !== 200 && status !== 204) {
|
|
5298
5303
|
const _responseText = response.data;
|
|
@@ -5349,12 +5354,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5349
5354
|
result200 = JSON.parse(resultData200);
|
|
5350
5355
|
return Promise.resolve(result200);
|
|
5351
5356
|
}
|
|
5352
|
-
else if (status ===
|
|
5357
|
+
else if (status === 401) {
|
|
5358
|
+
const _responseText = response.data;
|
|
5359
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5360
|
+
}
|
|
5361
|
+
else if (status === 403) {
|
|
5353
5362
|
const _responseText = response.data;
|
|
5354
|
-
|
|
5355
|
-
let resultData500 = _responseText;
|
|
5356
|
-
result500 = JSON.parse(resultData500);
|
|
5357
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5363
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5358
5364
|
}
|
|
5359
5365
|
else if (status !== 200 && status !== 204) {
|
|
5360
5366
|
const _responseText = response.data;
|
|
@@ -5369,7 +5375,9 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5369
5375
|
*/
|
|
5370
5376
|
pth(f, tenantId, cancelToken) {
|
|
5371
5377
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/pth?";
|
|
5372
|
-
if (f
|
|
5378
|
+
if (f === null)
|
|
5379
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
5380
|
+
else if (f !== undefined)
|
|
5373
5381
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
5374
5382
|
if (tenantId === null)
|
|
5375
5383
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5425,12 +5433,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5425
5433
|
result404 = JSON.parse(resultData404);
|
|
5426
5434
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5427
5435
|
}
|
|
5428
|
-
else if (status ===
|
|
5436
|
+
else if (status === 401) {
|
|
5429
5437
|
const _responseText = response.data;
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5438
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5439
|
+
}
|
|
5440
|
+
else if (status === 403) {
|
|
5441
|
+
const _responseText = response.data;
|
|
5442
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5434
5443
|
}
|
|
5435
5444
|
else if (status !== 200 && status !== 204) {
|
|
5436
5445
|
const _responseText = response.data;
|
|
@@ -5445,7 +5454,9 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5445
5454
|
*/
|
|
5446
5455
|
resource(image, tenantId, cancelToken) {
|
|
5447
5456
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/resource?";
|
|
5448
|
-
if (image
|
|
5457
|
+
if (image === null)
|
|
5458
|
+
throw new Error("The parameter 'image' cannot be null.");
|
|
5459
|
+
else if (image !== undefined)
|
|
5449
5460
|
url_ += "image=" + encodeURIComponent("" + image) + "&";
|
|
5450
5461
|
if (tenantId === null)
|
|
5451
5462
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5497,12 +5508,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5497
5508
|
result404 = JSON.parse(resultData404);
|
|
5498
5509
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5499
5510
|
}
|
|
5500
|
-
else if (status ===
|
|
5511
|
+
else if (status === 401) {
|
|
5512
|
+
const _responseText = response.data;
|
|
5513
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5514
|
+
}
|
|
5515
|
+
else if (status === 403) {
|
|
5501
5516
|
const _responseText = response.data;
|
|
5502
|
-
|
|
5503
|
-
let resultData500 = _responseText;
|
|
5504
|
-
result500 = JSON.parse(resultData500);
|
|
5505
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5517
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5506
5518
|
}
|
|
5507
5519
|
else if (status !== 200 && status !== 204) {
|
|
5508
5520
|
const _responseText = response.data;
|
|
@@ -5534,41 +5546,77 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5534
5546
|
*/
|
|
5535
5547
|
svg(f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId, cancelToken) {
|
|
5536
5548
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/svg?";
|
|
5537
|
-
if (f
|
|
5549
|
+
if (f === null)
|
|
5550
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
5551
|
+
else if (f !== undefined)
|
|
5538
5552
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
5539
|
-
if (w
|
|
5553
|
+
if (w === null)
|
|
5554
|
+
throw new Error("The parameter 'w' cannot be null.");
|
|
5555
|
+
else if (w !== undefined)
|
|
5540
5556
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
5541
|
-
if (h
|
|
5557
|
+
if (h === null)
|
|
5558
|
+
throw new Error("The parameter 'h' cannot be null.");
|
|
5559
|
+
else if (h !== undefined)
|
|
5542
5560
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
5543
|
-
if (cmyk
|
|
5561
|
+
if (cmyk === null)
|
|
5562
|
+
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
5563
|
+
else if (cmyk !== undefined)
|
|
5544
5564
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
5545
|
-
if (rgb
|
|
5565
|
+
if (rgb === null)
|
|
5566
|
+
throw new Error("The parameter 'rgb' cannot be null.");
|
|
5567
|
+
else if (rgb !== undefined)
|
|
5546
5568
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
5547
|
-
if (grayscale
|
|
5569
|
+
if (grayscale === null)
|
|
5570
|
+
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
5571
|
+
else if (grayscale !== undefined)
|
|
5548
5572
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
5549
|
-
if (target
|
|
5573
|
+
if (target === null)
|
|
5574
|
+
throw new Error("The parameter 'target' cannot be null.");
|
|
5575
|
+
else if (target !== undefined)
|
|
5550
5576
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
5551
|
-
if (sq
|
|
5577
|
+
if (sq === null)
|
|
5578
|
+
throw new Error("The parameter 'sq' cannot be null.");
|
|
5579
|
+
else if (sq !== undefined)
|
|
5552
5580
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
5553
|
-
if (effect
|
|
5581
|
+
if (effect === null)
|
|
5582
|
+
throw new Error("The parameter 'effect' cannot be null.");
|
|
5583
|
+
else if (effect !== undefined)
|
|
5554
5584
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
5555
|
-
if (kp
|
|
5585
|
+
if (kp === null)
|
|
5586
|
+
throw new Error("The parameter 'kp' cannot be null.");
|
|
5587
|
+
else if (kp !== undefined)
|
|
5556
5588
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
5557
|
-
if (color
|
|
5589
|
+
if (color === null)
|
|
5590
|
+
throw new Error("The parameter 'color' cannot be null.");
|
|
5591
|
+
else if (color !== undefined)
|
|
5558
5592
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
5559
|
-
if (obm
|
|
5593
|
+
if (obm === null)
|
|
5594
|
+
throw new Error("The parameter 'obm' cannot be null.");
|
|
5595
|
+
else if (obm !== undefined)
|
|
5560
5596
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
5561
|
-
if (oo
|
|
5597
|
+
if (oo === null)
|
|
5598
|
+
throw new Error("The parameter 'oo' cannot be null.");
|
|
5599
|
+
else if (oo !== undefined)
|
|
5562
5600
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
5563
|
-
if (alphaMask
|
|
5601
|
+
if (alphaMask === null)
|
|
5602
|
+
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
5603
|
+
else if (alphaMask !== undefined)
|
|
5564
5604
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
5565
|
-
if (page
|
|
5605
|
+
if (page === null)
|
|
5606
|
+
throw new Error("The parameter 'page' cannot be null.");
|
|
5607
|
+
else if (page !== undefined)
|
|
5566
5608
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
5567
|
-
if (colorizeColor
|
|
5609
|
+
if (colorizeColor === null)
|
|
5610
|
+
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
5611
|
+
else if (colorizeColor !== undefined)
|
|
5568
5612
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
5569
|
-
if (rw
|
|
5613
|
+
if (rw === null)
|
|
5614
|
+
throw new Error("The parameter 'rw' cannot be null.");
|
|
5615
|
+
else if (rw !== undefined)
|
|
5570
5616
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
5571
|
-
if (rh
|
|
5617
|
+
if (rh === null)
|
|
5618
|
+
throw new Error("The parameter 'rh' cannot be null.");
|
|
5619
|
+
else if (rh !== undefined)
|
|
5572
5620
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
5573
5621
|
if (tenantId === null)
|
|
5574
5622
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5624,12 +5672,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5624
5672
|
result404 = JSON.parse(resultData404);
|
|
5625
5673
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5626
5674
|
}
|
|
5627
|
-
else if (status ===
|
|
5675
|
+
else if (status === 401) {
|
|
5676
|
+
const _responseText = response.data;
|
|
5677
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5678
|
+
}
|
|
5679
|
+
else if (status === 403) {
|
|
5628
5680
|
const _responseText = response.data;
|
|
5629
|
-
|
|
5630
|
-
let resultData500 = _responseText;
|
|
5631
|
-
result500 = JSON.parse(resultData500);
|
|
5632
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5681
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5633
5682
|
}
|
|
5634
5683
|
else if (status !== 200 && status !== 204) {
|
|
5635
5684
|
const _responseText = response.data;
|
|
@@ -5644,7 +5693,9 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5644
5693
|
*/
|
|
5645
5694
|
txt(f, tenantId, cancelToken) {
|
|
5646
5695
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/txt?";
|
|
5647
|
-
if (f
|
|
5696
|
+
if (f === null)
|
|
5697
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
5698
|
+
else if (f !== undefined)
|
|
5648
5699
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
5649
5700
|
if (tenantId === null)
|
|
5650
5701
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5700,12 +5751,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5700
5751
|
result404 = JSON.parse(resultData404);
|
|
5701
5752
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5702
5753
|
}
|
|
5703
|
-
else if (status ===
|
|
5754
|
+
else if (status === 401) {
|
|
5755
|
+
const _responseText = response.data;
|
|
5756
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5757
|
+
}
|
|
5758
|
+
else if (status === 403) {
|
|
5704
5759
|
const _responseText = response.data;
|
|
5705
|
-
|
|
5706
|
-
let resultData500 = _responseText;
|
|
5707
|
-
result500 = JSON.parse(resultData500);
|
|
5708
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5760
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5709
5761
|
}
|
|
5710
5762
|
else if (status !== 200 && status !== 204) {
|
|
5711
5763
|
const _responseText = response.data;
|
|
@@ -5766,12 +5818,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5766
5818
|
result200 = JSON.parse(resultData200);
|
|
5767
5819
|
return Promise.resolve(result200);
|
|
5768
5820
|
}
|
|
5769
|
-
else if (status ===
|
|
5821
|
+
else if (status === 401) {
|
|
5822
|
+
const _responseText = response.data;
|
|
5823
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5824
|
+
}
|
|
5825
|
+
else if (status === 403) {
|
|
5770
5826
|
const _responseText = response.data;
|
|
5771
|
-
|
|
5772
|
-
let resultData500 = _responseText;
|
|
5773
|
-
result500 = JSON.parse(resultData500);
|
|
5774
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5827
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5775
5828
|
}
|
|
5776
5829
|
else if (status !== 200 && status !== 204) {
|
|
5777
5830
|
const _responseText = response.data;
|
|
@@ -5832,12 +5885,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5832
5885
|
result200 = JSON.parse(resultData200);
|
|
5833
5886
|
return Promise.resolve(result200);
|
|
5834
5887
|
}
|
|
5835
|
-
else if (status ===
|
|
5888
|
+
else if (status === 401) {
|
|
5889
|
+
const _responseText = response.data;
|
|
5890
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5891
|
+
}
|
|
5892
|
+
else if (status === 403) {
|
|
5836
5893
|
const _responseText = response.data;
|
|
5837
|
-
|
|
5838
|
-
let resultData500 = _responseText;
|
|
5839
|
-
result500 = JSON.parse(resultData500);
|
|
5840
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5894
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5841
5895
|
}
|
|
5842
5896
|
else if (status !== 200 && status !== 204) {
|
|
5843
5897
|
const _responseText = response.data;
|
|
@@ -5898,12 +5952,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5898
5952
|
result200 = JSON.parse(resultData200);
|
|
5899
5953
|
return Promise.resolve(result200);
|
|
5900
5954
|
}
|
|
5901
|
-
else if (status ===
|
|
5955
|
+
else if (status === 401) {
|
|
5902
5956
|
const _responseText = response.data;
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
|
|
5957
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5958
|
+
}
|
|
5959
|
+
else if (status === 403) {
|
|
5960
|
+
const _responseText = response.data;
|
|
5961
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5907
5962
|
}
|
|
5908
5963
|
else if (status !== 200 && status !== 204) {
|
|
5909
5964
|
const _responseText = response.data;
|
|
@@ -5964,12 +6019,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5964
6019
|
result200 = JSON.parse(resultData200);
|
|
5965
6020
|
return Promise.resolve(result200);
|
|
5966
6021
|
}
|
|
5967
|
-
else if (status ===
|
|
6022
|
+
else if (status === 401) {
|
|
5968
6023
|
const _responseText = response.data;
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
6024
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6025
|
+
}
|
|
6026
|
+
else if (status === 403) {
|
|
6027
|
+
const _responseText = response.data;
|
|
6028
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5973
6029
|
}
|
|
5974
6030
|
else if (status !== 200 && status !== 204) {
|
|
5975
6031
|
const _responseText = response.data;
|
|
@@ -6030,12 +6086,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6030
6086
|
result200 = JSON.parse(resultData200);
|
|
6031
6087
|
return Promise.resolve(result200);
|
|
6032
6088
|
}
|
|
6033
|
-
else if (status ===
|
|
6089
|
+
else if (status === 401) {
|
|
6034
6090
|
const _responseText = response.data;
|
|
6035
|
-
|
|
6036
|
-
|
|
6037
|
-
|
|
6038
|
-
|
|
6091
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6092
|
+
}
|
|
6093
|
+
else if (status === 403) {
|
|
6094
|
+
const _responseText = response.data;
|
|
6095
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6039
6096
|
}
|
|
6040
6097
|
else if (status !== 200 && status !== 204) {
|
|
6041
6098
|
const _responseText = response.data;
|
|
@@ -6096,12 +6153,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6096
6153
|
result200 = JSON.parse(resultData200);
|
|
6097
6154
|
return Promise.resolve(result200);
|
|
6098
6155
|
}
|
|
6099
|
-
else if (status ===
|
|
6156
|
+
else if (status === 401) {
|
|
6157
|
+
const _responseText = response.data;
|
|
6158
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6159
|
+
}
|
|
6160
|
+
else if (status === 403) {
|
|
6100
6161
|
const _responseText = response.data;
|
|
6101
|
-
|
|
6102
|
-
let resultData500 = _responseText;
|
|
6103
|
-
result500 = JSON.parse(resultData500);
|
|
6104
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6162
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6105
6163
|
}
|
|
6106
6164
|
else if (status !== 200 && status !== 204) {
|
|
6107
6165
|
const _responseText = response.data;
|
|
@@ -6162,12 +6220,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6162
6220
|
result200 = JSON.parse(resultData200);
|
|
6163
6221
|
return Promise.resolve(result200);
|
|
6164
6222
|
}
|
|
6165
|
-
else if (status ===
|
|
6223
|
+
else if (status === 401) {
|
|
6224
|
+
const _responseText = response.data;
|
|
6225
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6226
|
+
}
|
|
6227
|
+
else if (status === 403) {
|
|
6166
6228
|
const _responseText = response.data;
|
|
6167
|
-
|
|
6168
|
-
let resultData500 = _responseText;
|
|
6169
|
-
result500 = JSON.parse(resultData500);
|
|
6170
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6229
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6171
6230
|
}
|
|
6172
6231
|
else if (status !== 200 && status !== 204) {
|
|
6173
6232
|
const _responseText = response.data;
|
|
@@ -6228,12 +6287,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6228
6287
|
result200 = JSON.parse(resultData200);
|
|
6229
6288
|
return Promise.resolve(result200);
|
|
6230
6289
|
}
|
|
6231
|
-
else if (status ===
|
|
6290
|
+
else if (status === 401) {
|
|
6232
6291
|
const _responseText = response.data;
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6292
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6293
|
+
}
|
|
6294
|
+
else if (status === 403) {
|
|
6295
|
+
const _responseText = response.data;
|
|
6296
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6237
6297
|
}
|
|
6238
6298
|
else if (status !== 200 && status !== 204) {
|
|
6239
6299
|
const _responseText = response.data;
|
|
@@ -6294,12 +6354,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6294
6354
|
result200 = JSON.parse(resultData200);
|
|
6295
6355
|
return Promise.resolve(result200);
|
|
6296
6356
|
}
|
|
6297
|
-
else if (status ===
|
|
6357
|
+
else if (status === 401) {
|
|
6358
|
+
const _responseText = response.data;
|
|
6359
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6360
|
+
}
|
|
6361
|
+
else if (status === 403) {
|
|
6298
6362
|
const _responseText = response.data;
|
|
6299
|
-
|
|
6300
|
-
let resultData500 = _responseText;
|
|
6301
|
-
result500 = JSON.parse(resultData500);
|
|
6302
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6363
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6303
6364
|
}
|
|
6304
6365
|
else if (status !== 200 && status !== 204) {
|
|
6305
6366
|
const _responseText = response.data;
|
|
@@ -6360,12 +6421,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6360
6421
|
result200 = JSON.parse(resultData200);
|
|
6361
6422
|
return Promise.resolve(result200);
|
|
6362
6423
|
}
|
|
6363
|
-
else if (status ===
|
|
6424
|
+
else if (status === 401) {
|
|
6425
|
+
const _responseText = response.data;
|
|
6426
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6427
|
+
}
|
|
6428
|
+
else if (status === 403) {
|
|
6364
6429
|
const _responseText = response.data;
|
|
6365
|
-
|
|
6366
|
-
let resultData500 = _responseText;
|
|
6367
|
-
result500 = JSON.parse(resultData500);
|
|
6368
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6430
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6369
6431
|
}
|
|
6370
6432
|
else if (status !== 200 && status !== 204) {
|
|
6371
6433
|
const _responseText = response.data;
|
|
@@ -6426,12 +6488,13 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6426
6488
|
result200 = JSON.parse(resultData200);
|
|
6427
6489
|
return Promise.resolve(result200);
|
|
6428
6490
|
}
|
|
6429
|
-
else if (status ===
|
|
6491
|
+
else if (status === 401) {
|
|
6492
|
+
const _responseText = response.data;
|
|
6493
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6494
|
+
}
|
|
6495
|
+
else if (status === 403) {
|
|
6430
6496
|
const _responseText = response.data;
|
|
6431
|
-
|
|
6432
|
-
let resultData500 = _responseText;
|
|
6433
|
-
result500 = JSON.parse(resultData500);
|
|
6434
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6497
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6435
6498
|
}
|
|
6436
6499
|
else if (status !== 200 && status !== 204) {
|
|
6437
6500
|
const _responseText = response.data;
|
|
@@ -6440,28 +6503,6 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6440
6503
|
return Promise.resolve(null);
|
|
6441
6504
|
}
|
|
6442
6505
|
}
|
|
6443
|
-
export var ColorSpace;
|
|
6444
|
-
(function (ColorSpace) {
|
|
6445
|
-
ColorSpace["Rgb"] = "Rgb";
|
|
6446
|
-
ColorSpace["Cmyk"] = "Cmyk";
|
|
6447
|
-
ColorSpace["Grayscale"] = "Grayscale";
|
|
6448
|
-
ColorSpace["Lab"] = "Lab";
|
|
6449
|
-
ColorSpace["Spot"] = "Spot";
|
|
6450
|
-
})(ColorSpace || (ColorSpace = {}));
|
|
6451
|
-
/** Image preview file format. */
|
|
6452
|
-
export var ImagePreviewFormat;
|
|
6453
|
-
(function (ImagePreviewFormat) {
|
|
6454
|
-
ImagePreviewFormat["Jpeg"] = "Jpeg";
|
|
6455
|
-
ImagePreviewFormat["Png"] = "Png";
|
|
6456
|
-
})(ImagePreviewFormat || (ImagePreviewFormat = {}));
|
|
6457
|
-
/** Image preview fit mode. */
|
|
6458
|
-
export var ImagePreviewFitMode;
|
|
6459
|
-
(function (ImagePreviewFitMode) {
|
|
6460
|
-
ImagePreviewFitMode["Fit"] = "Fit";
|
|
6461
|
-
ImagePreviewFitMode["Shrink"] = "Shrink";
|
|
6462
|
-
ImagePreviewFitMode["Resize"] = "Resize";
|
|
6463
|
-
ImagePreviewFitMode["Fill"] = "Fill";
|
|
6464
|
-
})(ImagePreviewFitMode || (ImagePreviewFitMode = {}));
|
|
6465
6506
|
export var DesignElementType;
|
|
6466
6507
|
(function (DesignElementType) {
|
|
6467
6508
|
DesignElementType["Product"] = "Product";
|
|
@@ -6471,18 +6512,27 @@ export var DesignElementType;
|
|
|
6471
6512
|
DesignElementType["PrintArea"] = "PrintArea";
|
|
6472
6513
|
DesignElementType["Item"] = "Item";
|
|
6473
6514
|
})(DesignElementType || (DesignElementType = {}));
|
|
6474
|
-
/**
|
|
6475
|
-
export var
|
|
6476
|
-
(function (
|
|
6477
|
-
|
|
6478
|
-
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
|
|
6515
|
+
/** Image preview fit mode. */
|
|
6516
|
+
export var ImagePreviewFitMode;
|
|
6517
|
+
(function (ImagePreviewFitMode) {
|
|
6518
|
+
ImagePreviewFitMode["Fit"] = "Fit";
|
|
6519
|
+
ImagePreviewFitMode["Shrink"] = "Shrink";
|
|
6520
|
+
ImagePreviewFitMode["Resize"] = "Resize";
|
|
6521
|
+
ImagePreviewFitMode["Fill"] = "Fill";
|
|
6522
|
+
})(ImagePreviewFitMode || (ImagePreviewFitMode = {}));
|
|
6523
|
+
/** Image preview file format. */
|
|
6524
|
+
export var ImagePreviewFormat;
|
|
6525
|
+
(function (ImagePreviewFormat) {
|
|
6526
|
+
ImagePreviewFormat["Jpeg"] = "Jpeg";
|
|
6527
|
+
ImagePreviewFormat["Png"] = "Png";
|
|
6528
|
+
})(ImagePreviewFormat || (ImagePreviewFormat = {}));
|
|
6529
|
+
/** Item source types. */
|
|
6530
|
+
export var ItemSourceType;
|
|
6531
|
+
(function (ItemSourceType) {
|
|
6532
|
+
ItemSourceType["File"] = "File";
|
|
6533
|
+
ItemSourceType["ImageStorage"] = "ImageStorage";
|
|
6534
|
+
ItemSourceType["PrivateImageStorage"] = "PrivateImageStorage";
|
|
6535
|
+
})(ItemSourceType || (ItemSourceType = {}));
|
|
6486
6536
|
export var ItemType;
|
|
6487
6537
|
(function (ItemType) {
|
|
6488
6538
|
ItemType["Image"] = "Image";
|
|
@@ -6490,13 +6540,24 @@ export var ItemType;
|
|
|
6490
6540
|
ItemType["Clipart"] = "Clipart";
|
|
6491
6541
|
ItemType["Group"] = "Group";
|
|
6492
6542
|
})(ItemType || (ItemType = {}));
|
|
6493
|
-
/**
|
|
6494
|
-
export var
|
|
6495
|
-
(function (
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
|
|
6543
|
+
/** Placeholder item content type. */
|
|
6544
|
+
export var PlaceholderItemContentType;
|
|
6545
|
+
(function (PlaceholderItemContentType) {
|
|
6546
|
+
PlaceholderItemContentType["Image"] = "Image";
|
|
6547
|
+
})(PlaceholderItemContentType || (PlaceholderItemContentType = {}));
|
|
6548
|
+
/** Available patch type. */
|
|
6549
|
+
export var ProductPatchType;
|
|
6550
|
+
(function (ProductPatchType) {
|
|
6551
|
+
ProductPatchType["Undefined"] = "Undefined";
|
|
6552
|
+
ProductPatchType["ReplaceImageItemFile"] = "ReplaceImageItemFile";
|
|
6553
|
+
ProductPatchType["ReplacePlaceholderItemContent"] = "ReplacePlaceholderItemContent";
|
|
6554
|
+
})(ProductPatchType || (ProductPatchType = {}));
|
|
6555
|
+
/** Product preview file format. */
|
|
6556
|
+
export var ProductPreviewFormat;
|
|
6557
|
+
(function (ProductPreviewFormat) {
|
|
6558
|
+
ProductPreviewFormat["Jpeg"] = "Jpeg";
|
|
6559
|
+
ProductPreviewFormat["Png"] = "Png";
|
|
6560
|
+
})(ProductPreviewFormat || (ProductPreviewFormat = {}));
|
|
6500
6561
|
export var ProductProofFormat;
|
|
6501
6562
|
(function (ProductProofFormat) {
|
|
6502
6563
|
ProductProofFormat["Jpeg"] = "Jpeg";
|
|
@@ -6518,12 +6579,6 @@ export var ProductProofInterpolationMode;
|
|
|
6518
6579
|
ProductProofInterpolationMode["Anisotropic9"] = "Anisotropic9";
|
|
6519
6580
|
ProductProofInterpolationMode["Lanczos3"] = "Lanczos3";
|
|
6520
6581
|
})(ProductProofInterpolationMode || (ProductProofInterpolationMode = {}));
|
|
6521
|
-
/** Product preview file format. */
|
|
6522
|
-
export var ProductPreviewFormat;
|
|
6523
|
-
(function (ProductPreviewFormat) {
|
|
6524
|
-
ProductPreviewFormat["Jpeg"] = "Jpeg";
|
|
6525
|
-
ProductPreviewFormat["Png"] = "Png";
|
|
6526
|
-
})(ProductPreviewFormat || (ProductPreviewFormat = {}));
|
|
6527
6582
|
export class ApiException extends Error {
|
|
6528
6583
|
message;
|
|
6529
6584
|
status;
|