@aurigma/axios-design-atoms-api-client 2.61.1 → 2.62.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/design-atoms-api-client.d.ts +514 -531
- package/dist/cjs/design-atoms-api-client.js +741 -702
- 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 +740 -701
- package/dist/esm/design-atoms-api-client.js.map +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
//----------------------
|
|
9
9
|
// ReSharper disable InconsistentNaming
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.ApiException = exports.
|
|
11
|
+
exports.ApiException = exports.ProductProofInterpolationMode = exports.ProductProofFormat = exports.ProductPreviewFormat = exports.ProductPatchType = exports.PlaceholderItemContentType = exports.ItemType = exports.ItemSourceType = exports.ImagePreviewFormat = exports.ImagePreviewFitMode = exports.DesignElementType = exports.DesignAtomsViewerApiClient = exports.DesignAtomsServiceApiClient = exports.DesignAtomsMockups3dApiClient = exports.DesignAtomsImagesApiClient = exports.DesignAtomsCompatibilityApiClient = exports.BuildInfoApiClient = exports.ApiClientBase = exports.ApiClientConfiguration = void 0;
|
|
12
12
|
const axios_1 = require("axios");
|
|
13
13
|
class ApiClientConfiguration {
|
|
14
14
|
apiUrl;
|
|
@@ -102,13 +102,6 @@ class BuildInfoApiClient extends ApiClientBase {
|
|
|
102
102
|
const _responseText = response.data;
|
|
103
103
|
return Promise.resolve(null);
|
|
104
104
|
}
|
|
105
|
-
else if (status === 500) {
|
|
106
|
-
const _responseText = response.data;
|
|
107
|
-
let result500 = null;
|
|
108
|
-
let resultData500 = _responseText;
|
|
109
|
-
result500 = JSON.parse(resultData500);
|
|
110
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
111
|
-
}
|
|
112
105
|
else if (status !== 200 && status !== 204) {
|
|
113
106
|
const _responseText = response.data;
|
|
114
107
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -160,13 +153,6 @@ class BuildInfoApiClient extends ApiClientBase {
|
|
|
160
153
|
result200 = JSON.parse(resultData200);
|
|
161
154
|
return Promise.resolve(result200);
|
|
162
155
|
}
|
|
163
|
-
else if (status === 500) {
|
|
164
|
-
const _responseText = response.data;
|
|
165
|
-
let result500 = null;
|
|
166
|
-
let resultData500 = _responseText;
|
|
167
|
-
result500 = JSON.parse(resultData500);
|
|
168
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
169
|
-
}
|
|
170
156
|
else if (status !== 200 && status !== 204) {
|
|
171
157
|
const _responseText = response.data;
|
|
172
158
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -201,7 +187,7 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
201
187
|
url: url_,
|
|
202
188
|
headers: {
|
|
203
189
|
"Content-Type": "application/json",
|
|
204
|
-
"Accept": "
|
|
190
|
+
"Accept": "text/css"
|
|
205
191
|
},
|
|
206
192
|
cancelToken
|
|
207
193
|
};
|
|
@@ -235,12 +221,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
235
221
|
result200 = JSON.parse(resultData200);
|
|
236
222
|
return Promise.resolve(result200);
|
|
237
223
|
}
|
|
238
|
-
else if (status ===
|
|
224
|
+
else if (status === 401) {
|
|
225
|
+
const _responseText = response.data;
|
|
226
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
227
|
+
}
|
|
228
|
+
else if (status === 403) {
|
|
239
229
|
const _responseText = response.data;
|
|
240
|
-
|
|
241
|
-
let resultData500 = _responseText;
|
|
242
|
-
result500 = JSON.parse(resultData500);
|
|
243
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
230
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
244
231
|
}
|
|
245
232
|
else if (status !== 200 && status !== 204) {
|
|
246
233
|
const _responseText = response.data;
|
|
@@ -305,12 +292,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
305
292
|
result404 = JSON.parse(resultData404);
|
|
306
293
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
307
294
|
}
|
|
308
|
-
else if (status ===
|
|
295
|
+
else if (status === 401) {
|
|
296
|
+
const _responseText = response.data;
|
|
297
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
298
|
+
}
|
|
299
|
+
else if (status === 403) {
|
|
309
300
|
const _responseText = response.data;
|
|
310
|
-
|
|
311
|
-
let resultData500 = _responseText;
|
|
312
|
-
result500 = JSON.parse(resultData500);
|
|
313
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
301
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
314
302
|
}
|
|
315
303
|
else if (status !== 200 && status !== 204) {
|
|
316
304
|
const _responseText = response.data;
|
|
@@ -369,12 +357,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
369
357
|
result200 = JSON.parse(resultData200);
|
|
370
358
|
return Promise.resolve(result200);
|
|
371
359
|
}
|
|
372
|
-
else if (status ===
|
|
360
|
+
else if (status === 401) {
|
|
361
|
+
const _responseText = response.data;
|
|
362
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
363
|
+
}
|
|
364
|
+
else if (status === 403) {
|
|
373
365
|
const _responseText = response.data;
|
|
374
|
-
|
|
375
|
-
let resultData500 = _responseText;
|
|
376
|
-
result500 = JSON.parse(resultData500);
|
|
377
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
366
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
378
367
|
}
|
|
379
368
|
else if (status !== 200 && status !== 204) {
|
|
380
369
|
const _responseText = response.data;
|
|
@@ -433,12 +422,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
433
422
|
result200 = JSON.parse(resultData200);
|
|
434
423
|
return Promise.resolve(result200);
|
|
435
424
|
}
|
|
436
|
-
else if (status ===
|
|
425
|
+
else if (status === 401) {
|
|
426
|
+
const _responseText = response.data;
|
|
427
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
428
|
+
}
|
|
429
|
+
else if (status === 403) {
|
|
437
430
|
const _responseText = response.data;
|
|
438
|
-
|
|
439
|
-
let resultData500 = _responseText;
|
|
440
|
-
result500 = JSON.parse(resultData500);
|
|
441
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
431
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
442
432
|
}
|
|
443
433
|
else if (status !== 200 && status !== 204) {
|
|
444
434
|
const _responseText = response.data;
|
|
@@ -455,7 +445,9 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
455
445
|
if (tenantId === undefined || tenantId === null)
|
|
456
446
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
457
447
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
458
|
-
if (fontKey
|
|
448
|
+
if (fontKey === null)
|
|
449
|
+
throw new Error("The parameter 'fontKey' cannot be null.");
|
|
450
|
+
else if (fontKey !== undefined)
|
|
459
451
|
url_ += "fontKey=" + encodeURIComponent("" + fontKey) + "&";
|
|
460
452
|
url_ = url_.replace(/[?&]$/, "");
|
|
461
453
|
let options_ = {
|
|
@@ -503,12 +495,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
503
495
|
result404 = JSON.parse(resultData404);
|
|
504
496
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
505
497
|
}
|
|
506
|
-
else if (status ===
|
|
498
|
+
else if (status === 401) {
|
|
499
|
+
const _responseText = response.data;
|
|
500
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
501
|
+
}
|
|
502
|
+
else if (status === 403) {
|
|
507
503
|
const _responseText = response.data;
|
|
508
|
-
|
|
509
|
-
let resultData500 = _responseText;
|
|
510
|
-
result500 = JSON.parse(resultData500);
|
|
511
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
504
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
512
505
|
}
|
|
513
506
|
else if (status !== 200 && status !== 204) {
|
|
514
507
|
const _responseText = response.data;
|
|
@@ -526,7 +519,6 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
526
519
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
527
520
|
url_ = url_.replace(/[?&]$/, "");
|
|
528
521
|
let options_ = {
|
|
529
|
-
responseType: "blob",
|
|
530
522
|
method: "GET",
|
|
531
523
|
url: url_,
|
|
532
524
|
headers: {
|
|
@@ -557,18 +549,20 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
557
549
|
}
|
|
558
550
|
}
|
|
559
551
|
}
|
|
560
|
-
if (status === 200
|
|
561
|
-
const
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
552
|
+
if (status === 200) {
|
|
553
|
+
const _responseText = response.data;
|
|
554
|
+
let result200 = null;
|
|
555
|
+
let resultData200 = _responseText;
|
|
556
|
+
result200 = JSON.parse(resultData200);
|
|
557
|
+
return Promise.resolve(result200);
|
|
558
|
+
}
|
|
559
|
+
else if (status === 401) {
|
|
560
|
+
const _responseText = response.data;
|
|
561
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
565
562
|
}
|
|
566
|
-
else if (status ===
|
|
563
|
+
else if (status === 403) {
|
|
567
564
|
const _responseText = response.data;
|
|
568
|
-
|
|
569
|
-
let resultData500 = _responseText;
|
|
570
|
-
result500 = JSON.parse(resultData500);
|
|
571
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
565
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
572
566
|
}
|
|
573
567
|
else if (status !== 200 && status !== 204) {
|
|
574
568
|
const _responseText = response.data;
|
|
@@ -627,12 +621,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
627
621
|
result200 = JSON.parse(resultData200);
|
|
628
622
|
return Promise.resolve(result200);
|
|
629
623
|
}
|
|
630
|
-
else if (status ===
|
|
624
|
+
else if (status === 401) {
|
|
625
|
+
const _responseText = response.data;
|
|
626
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
627
|
+
}
|
|
628
|
+
else if (status === 403) {
|
|
631
629
|
const _responseText = response.data;
|
|
632
|
-
|
|
633
|
-
let resultData500 = _responseText;
|
|
634
|
-
result500 = JSON.parse(resultData500);
|
|
635
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
630
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
636
631
|
}
|
|
637
632
|
else if (status !== 200 && status !== 204) {
|
|
638
633
|
const _responseText = response.data;
|
|
@@ -691,12 +686,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
691
686
|
result200 = JSON.parse(resultData200);
|
|
692
687
|
return Promise.resolve(result200);
|
|
693
688
|
}
|
|
694
|
-
else if (status ===
|
|
689
|
+
else if (status === 401) {
|
|
695
690
|
const _responseText = response.data;
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
691
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
692
|
+
}
|
|
693
|
+
else if (status === 403) {
|
|
694
|
+
const _responseText = response.data;
|
|
695
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
700
696
|
}
|
|
701
697
|
else if (status !== 200 && status !== 204) {
|
|
702
698
|
const _responseText = response.data;
|
|
@@ -755,12 +751,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
755
751
|
result200 = JSON.parse(resultData200);
|
|
756
752
|
return Promise.resolve(result200);
|
|
757
753
|
}
|
|
758
|
-
else if (status ===
|
|
754
|
+
else if (status === 401) {
|
|
755
|
+
const _responseText = response.data;
|
|
756
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
757
|
+
}
|
|
758
|
+
else if (status === 403) {
|
|
759
759
|
const _responseText = response.data;
|
|
760
|
-
|
|
761
|
-
let resultData500 = _responseText;
|
|
762
|
-
result500 = JSON.parse(resultData500);
|
|
763
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
760
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
764
761
|
}
|
|
765
762
|
else if (status !== 200 && status !== 204) {
|
|
766
763
|
const _responseText = response.data;
|
|
@@ -794,41 +791,77 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
794
791
|
if (tenantId === undefined || tenantId === null)
|
|
795
792
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
796
793
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
797
|
-
if (f
|
|
794
|
+
if (f === null)
|
|
795
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
796
|
+
else if (f !== undefined)
|
|
798
797
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
799
|
-
if (w
|
|
798
|
+
if (w === null)
|
|
799
|
+
throw new Error("The parameter 'w' cannot be null.");
|
|
800
|
+
else if (w !== undefined)
|
|
800
801
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
801
|
-
if (h
|
|
802
|
+
if (h === null)
|
|
803
|
+
throw new Error("The parameter 'h' cannot be null.");
|
|
804
|
+
else if (h !== undefined)
|
|
802
805
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
803
|
-
if (cmyk
|
|
806
|
+
if (cmyk === null)
|
|
807
|
+
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
808
|
+
else if (cmyk !== undefined)
|
|
804
809
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
805
|
-
if (rgb
|
|
810
|
+
if (rgb === null)
|
|
811
|
+
throw new Error("The parameter 'rgb' cannot be null.");
|
|
812
|
+
else if (rgb !== undefined)
|
|
806
813
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
807
|
-
if (grayscale
|
|
814
|
+
if (grayscale === null)
|
|
815
|
+
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
816
|
+
else if (grayscale !== undefined)
|
|
808
817
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
809
|
-
if (target
|
|
818
|
+
if (target === null)
|
|
819
|
+
throw new Error("The parameter 'target' cannot be null.");
|
|
820
|
+
else if (target !== undefined)
|
|
810
821
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
811
|
-
if (sq
|
|
822
|
+
if (sq === null)
|
|
823
|
+
throw new Error("The parameter 'sq' cannot be null.");
|
|
824
|
+
else if (sq !== undefined)
|
|
812
825
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
813
|
-
if (effect
|
|
826
|
+
if (effect === null)
|
|
827
|
+
throw new Error("The parameter 'effect' cannot be null.");
|
|
828
|
+
else if (effect !== undefined)
|
|
814
829
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
815
|
-
if (kp
|
|
830
|
+
if (kp === null)
|
|
831
|
+
throw new Error("The parameter 'kp' cannot be null.");
|
|
832
|
+
else if (kp !== undefined)
|
|
816
833
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
817
|
-
if (color
|
|
834
|
+
if (color === null)
|
|
835
|
+
throw new Error("The parameter 'color' cannot be null.");
|
|
836
|
+
else if (color !== undefined)
|
|
818
837
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
819
|
-
if (obm
|
|
838
|
+
if (obm === null)
|
|
839
|
+
throw new Error("The parameter 'obm' cannot be null.");
|
|
840
|
+
else if (obm !== undefined)
|
|
820
841
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
821
|
-
if (oo
|
|
842
|
+
if (oo === null)
|
|
843
|
+
throw new Error("The parameter 'oo' cannot be null.");
|
|
844
|
+
else if (oo !== undefined)
|
|
822
845
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
823
|
-
if (alphaMask
|
|
846
|
+
if (alphaMask === null)
|
|
847
|
+
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
848
|
+
else if (alphaMask !== undefined)
|
|
824
849
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
825
|
-
if (page
|
|
850
|
+
if (page === null)
|
|
851
|
+
throw new Error("The parameter 'page' cannot be null.");
|
|
852
|
+
else if (page !== undefined)
|
|
826
853
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
827
|
-
if (colorizeColor
|
|
854
|
+
if (colorizeColor === null)
|
|
855
|
+
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
856
|
+
else if (colorizeColor !== undefined)
|
|
828
857
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
829
|
-
if (rw
|
|
858
|
+
if (rw === null)
|
|
859
|
+
throw new Error("The parameter 'rw' cannot be null.");
|
|
860
|
+
else if (rw !== undefined)
|
|
830
861
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
831
|
-
if (rh
|
|
862
|
+
if (rh === null)
|
|
863
|
+
throw new Error("The parameter 'rh' cannot be null.");
|
|
864
|
+
else if (rh !== undefined)
|
|
832
865
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
833
866
|
url_ = url_.replace(/[?&]$/, "");
|
|
834
867
|
let options_ = {
|
|
@@ -880,12 +913,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
880
913
|
result404 = JSON.parse(resultData404);
|
|
881
914
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
882
915
|
}
|
|
883
|
-
else if (status ===
|
|
916
|
+
else if (status === 401) {
|
|
917
|
+
const _responseText = response.data;
|
|
918
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
919
|
+
}
|
|
920
|
+
else if (status === 403) {
|
|
884
921
|
const _responseText = response.data;
|
|
885
|
-
|
|
886
|
-
let resultData500 = _responseText;
|
|
887
|
-
result500 = JSON.parse(resultData500);
|
|
888
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
922
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
889
923
|
}
|
|
890
924
|
else if (status !== 200 && status !== 204) {
|
|
891
925
|
const _responseText = response.data;
|
|
@@ -940,12 +974,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
940
974
|
result200 = JSON.parse(resultData200);
|
|
941
975
|
return Promise.resolve(result200);
|
|
942
976
|
}
|
|
943
|
-
else if (status ===
|
|
977
|
+
else if (status === 401) {
|
|
978
|
+
const _responseText = response.data;
|
|
979
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
980
|
+
}
|
|
981
|
+
else if (status === 403) {
|
|
944
982
|
const _responseText = response.data;
|
|
945
|
-
|
|
946
|
-
let resultData500 = _responseText;
|
|
947
|
-
result500 = JSON.parse(resultData500);
|
|
948
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
983
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
949
984
|
}
|
|
950
985
|
else if (status !== 200 && status !== 204) {
|
|
951
986
|
const _responseText = response.data;
|
|
@@ -962,7 +997,9 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
962
997
|
if (tenantId === undefined || tenantId === null)
|
|
963
998
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
964
999
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
965
|
-
if (f
|
|
1000
|
+
if (f === null)
|
|
1001
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
1002
|
+
else if (f !== undefined)
|
|
966
1003
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
967
1004
|
url_ = url_.replace(/[?&]$/, "");
|
|
968
1005
|
let options_ = {
|
|
@@ -1014,12 +1051,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1014
1051
|
result404 = JSON.parse(resultData404);
|
|
1015
1052
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1016
1053
|
}
|
|
1017
|
-
else if (status ===
|
|
1054
|
+
else if (status === 401) {
|
|
1055
|
+
const _responseText = response.data;
|
|
1056
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1057
|
+
}
|
|
1058
|
+
else if (status === 403) {
|
|
1018
1059
|
const _responseText = response.data;
|
|
1019
|
-
|
|
1020
|
-
let resultData500 = _responseText;
|
|
1021
|
-
result500 = JSON.parse(resultData500);
|
|
1022
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1060
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1023
1061
|
}
|
|
1024
1062
|
else if (status !== 200 && status !== 204) {
|
|
1025
1063
|
const _responseText = response.data;
|
|
@@ -1036,7 +1074,9 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1036
1074
|
if (tenantId === undefined || tenantId === null)
|
|
1037
1075
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
1038
1076
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
1039
|
-
if (image
|
|
1077
|
+
if (image === null)
|
|
1078
|
+
throw new Error("The parameter 'image' cannot be null.");
|
|
1079
|
+
else if (image !== undefined)
|
|
1040
1080
|
url_ += "image=" + encodeURIComponent("" + image) + "&";
|
|
1041
1081
|
url_ = url_.replace(/[?&]$/, "");
|
|
1042
1082
|
let options_ = {
|
|
@@ -1084,12 +1124,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1084
1124
|
result404 = JSON.parse(resultData404);
|
|
1085
1125
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1086
1126
|
}
|
|
1087
|
-
else if (status ===
|
|
1127
|
+
else if (status === 401) {
|
|
1128
|
+
const _responseText = response.data;
|
|
1129
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1130
|
+
}
|
|
1131
|
+
else if (status === 403) {
|
|
1088
1132
|
const _responseText = response.data;
|
|
1089
|
-
|
|
1090
|
-
let resultData500 = _responseText;
|
|
1091
|
-
result500 = JSON.parse(resultData500);
|
|
1092
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1133
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1093
1134
|
}
|
|
1094
1135
|
else if (status !== 200 && status !== 204) {
|
|
1095
1136
|
const _responseText = response.data;
|
|
@@ -1123,41 +1164,77 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1123
1164
|
if (tenantId === undefined || tenantId === null)
|
|
1124
1165
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
1125
1166
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
1126
|
-
if (f
|
|
1167
|
+
if (f === null)
|
|
1168
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
1169
|
+
else if (f !== undefined)
|
|
1127
1170
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
1128
|
-
if (w
|
|
1171
|
+
if (w === null)
|
|
1172
|
+
throw new Error("The parameter 'w' cannot be null.");
|
|
1173
|
+
else if (w !== undefined)
|
|
1129
1174
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
1130
|
-
if (h
|
|
1175
|
+
if (h === null)
|
|
1176
|
+
throw new Error("The parameter 'h' cannot be null.");
|
|
1177
|
+
else if (h !== undefined)
|
|
1131
1178
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
1132
|
-
if (cmyk
|
|
1179
|
+
if (cmyk === null)
|
|
1180
|
+
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
1181
|
+
else if (cmyk !== undefined)
|
|
1133
1182
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
1134
|
-
if (rgb
|
|
1183
|
+
if (rgb === null)
|
|
1184
|
+
throw new Error("The parameter 'rgb' cannot be null.");
|
|
1185
|
+
else if (rgb !== undefined)
|
|
1135
1186
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
1136
|
-
if (grayscale
|
|
1187
|
+
if (grayscale === null)
|
|
1188
|
+
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
1189
|
+
else if (grayscale !== undefined)
|
|
1137
1190
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
1138
|
-
if (target
|
|
1191
|
+
if (target === null)
|
|
1192
|
+
throw new Error("The parameter 'target' cannot be null.");
|
|
1193
|
+
else if (target !== undefined)
|
|
1139
1194
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
1140
|
-
if (sq
|
|
1195
|
+
if (sq === null)
|
|
1196
|
+
throw new Error("The parameter 'sq' cannot be null.");
|
|
1197
|
+
else if (sq !== undefined)
|
|
1141
1198
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
1142
|
-
if (effect
|
|
1199
|
+
if (effect === null)
|
|
1200
|
+
throw new Error("The parameter 'effect' cannot be null.");
|
|
1201
|
+
else if (effect !== undefined)
|
|
1143
1202
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
1144
|
-
if (kp
|
|
1203
|
+
if (kp === null)
|
|
1204
|
+
throw new Error("The parameter 'kp' cannot be null.");
|
|
1205
|
+
else if (kp !== undefined)
|
|
1145
1206
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
1146
|
-
if (color
|
|
1207
|
+
if (color === null)
|
|
1208
|
+
throw new Error("The parameter 'color' cannot be null.");
|
|
1209
|
+
else if (color !== undefined)
|
|
1147
1210
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
1148
|
-
if (obm
|
|
1211
|
+
if (obm === null)
|
|
1212
|
+
throw new Error("The parameter 'obm' cannot be null.");
|
|
1213
|
+
else if (obm !== undefined)
|
|
1149
1214
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
1150
|
-
if (oo
|
|
1215
|
+
if (oo === null)
|
|
1216
|
+
throw new Error("The parameter 'oo' cannot be null.");
|
|
1217
|
+
else if (oo !== undefined)
|
|
1151
1218
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
1152
|
-
if (alphaMask
|
|
1219
|
+
if (alphaMask === null)
|
|
1220
|
+
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
1221
|
+
else if (alphaMask !== undefined)
|
|
1153
1222
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
1154
|
-
if (page
|
|
1223
|
+
if (page === null)
|
|
1224
|
+
throw new Error("The parameter 'page' cannot be null.");
|
|
1225
|
+
else if (page !== undefined)
|
|
1155
1226
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
1156
|
-
if (colorizeColor
|
|
1227
|
+
if (colorizeColor === null)
|
|
1228
|
+
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
1229
|
+
else if (colorizeColor !== undefined)
|
|
1157
1230
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
1158
|
-
if (rw
|
|
1231
|
+
if (rw === null)
|
|
1232
|
+
throw new Error("The parameter 'rw' cannot be null.");
|
|
1233
|
+
else if (rw !== undefined)
|
|
1159
1234
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
1160
|
-
if (rh
|
|
1235
|
+
if (rh === null)
|
|
1236
|
+
throw new Error("The parameter 'rh' cannot be null.");
|
|
1237
|
+
else if (rh !== undefined)
|
|
1161
1238
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
1162
1239
|
url_ = url_.replace(/[?&]$/, "");
|
|
1163
1240
|
let options_ = {
|
|
@@ -1209,12 +1286,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1209
1286
|
result404 = JSON.parse(resultData404);
|
|
1210
1287
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1211
1288
|
}
|
|
1212
|
-
else if (status ===
|
|
1289
|
+
else if (status === 401) {
|
|
1213
1290
|
const _responseText = response.data;
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1291
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1292
|
+
}
|
|
1293
|
+
else if (status === 403) {
|
|
1294
|
+
const _responseText = response.data;
|
|
1295
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1218
1296
|
}
|
|
1219
1297
|
else if (status !== 200 && status !== 204) {
|
|
1220
1298
|
const _responseText = response.data;
|
|
@@ -1231,7 +1309,9 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1231
1309
|
if (tenantId === undefined || tenantId === null)
|
|
1232
1310
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
1233
1311
|
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
1234
|
-
if (f
|
|
1312
|
+
if (f === null)
|
|
1313
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
1314
|
+
else if (f !== undefined)
|
|
1235
1315
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
1236
1316
|
url_ = url_.replace(/[?&]$/, "");
|
|
1237
1317
|
let options_ = {
|
|
@@ -1283,12 +1363,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1283
1363
|
result404 = JSON.parse(resultData404);
|
|
1284
1364
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1285
1365
|
}
|
|
1286
|
-
else if (status ===
|
|
1366
|
+
else if (status === 401) {
|
|
1367
|
+
const _responseText = response.data;
|
|
1368
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1369
|
+
}
|
|
1370
|
+
else if (status === 403) {
|
|
1287
1371
|
const _responseText = response.data;
|
|
1288
|
-
|
|
1289
|
-
let resultData500 = _responseText;
|
|
1290
|
-
result500 = JSON.parse(resultData500);
|
|
1291
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1372
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1292
1373
|
}
|
|
1293
1374
|
else if (status !== 200 && status !== 204) {
|
|
1294
1375
|
const _responseText = response.data;
|
|
@@ -1347,12 +1428,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1347
1428
|
result200 = JSON.parse(resultData200);
|
|
1348
1429
|
return Promise.resolve(result200);
|
|
1349
1430
|
}
|
|
1350
|
-
else if (status ===
|
|
1431
|
+
else if (status === 401) {
|
|
1351
1432
|
const _responseText = response.data;
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1433
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1434
|
+
}
|
|
1435
|
+
else if (status === 403) {
|
|
1436
|
+
const _responseText = response.data;
|
|
1437
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1356
1438
|
}
|
|
1357
1439
|
else if (status !== 200 && status !== 204) {
|
|
1358
1440
|
const _responseText = response.data;
|
|
@@ -1411,12 +1493,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1411
1493
|
result200 = JSON.parse(resultData200);
|
|
1412
1494
|
return Promise.resolve(result200);
|
|
1413
1495
|
}
|
|
1414
|
-
else if (status ===
|
|
1496
|
+
else if (status === 401) {
|
|
1497
|
+
const _responseText = response.data;
|
|
1498
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1499
|
+
}
|
|
1500
|
+
else if (status === 403) {
|
|
1415
1501
|
const _responseText = response.data;
|
|
1416
|
-
|
|
1417
|
-
let resultData500 = _responseText;
|
|
1418
|
-
result500 = JSON.parse(resultData500);
|
|
1419
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1502
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1420
1503
|
}
|
|
1421
1504
|
else if (status !== 200 && status !== 204) {
|
|
1422
1505
|
const _responseText = response.data;
|
|
@@ -1475,12 +1558,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1475
1558
|
result200 = JSON.parse(resultData200);
|
|
1476
1559
|
return Promise.resolve(result200);
|
|
1477
1560
|
}
|
|
1478
|
-
else if (status ===
|
|
1561
|
+
else if (status === 401) {
|
|
1479
1562
|
const _responseText = response.data;
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1563
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1564
|
+
}
|
|
1565
|
+
else if (status === 403) {
|
|
1566
|
+
const _responseText = response.data;
|
|
1567
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1484
1568
|
}
|
|
1485
1569
|
else if (status !== 200 && status !== 204) {
|
|
1486
1570
|
const _responseText = response.data;
|
|
@@ -1539,12 +1623,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1539
1623
|
result200 = JSON.parse(resultData200);
|
|
1540
1624
|
return Promise.resolve(result200);
|
|
1541
1625
|
}
|
|
1542
|
-
else if (status ===
|
|
1626
|
+
else if (status === 401) {
|
|
1627
|
+
const _responseText = response.data;
|
|
1628
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1629
|
+
}
|
|
1630
|
+
else if (status === 403) {
|
|
1543
1631
|
const _responseText = response.data;
|
|
1544
|
-
|
|
1545
|
-
let resultData500 = _responseText;
|
|
1546
|
-
result500 = JSON.parse(resultData500);
|
|
1547
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1632
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1548
1633
|
}
|
|
1549
1634
|
else if (status !== 200 && status !== 204) {
|
|
1550
1635
|
const _responseText = response.data;
|
|
@@ -1603,12 +1688,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1603
1688
|
result200 = JSON.parse(resultData200);
|
|
1604
1689
|
return Promise.resolve(result200);
|
|
1605
1690
|
}
|
|
1606
|
-
else if (status ===
|
|
1691
|
+
else if (status === 401) {
|
|
1692
|
+
const _responseText = response.data;
|
|
1693
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1694
|
+
}
|
|
1695
|
+
else if (status === 403) {
|
|
1607
1696
|
const _responseText = response.data;
|
|
1608
|
-
|
|
1609
|
-
let resultData500 = _responseText;
|
|
1610
|
-
result500 = JSON.parse(resultData500);
|
|
1611
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1697
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1612
1698
|
}
|
|
1613
1699
|
else if (status !== 200 && status !== 204) {
|
|
1614
1700
|
const _responseText = response.data;
|
|
@@ -1667,12 +1753,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1667
1753
|
result200 = JSON.parse(resultData200);
|
|
1668
1754
|
return Promise.resolve(result200);
|
|
1669
1755
|
}
|
|
1670
|
-
else if (status ===
|
|
1756
|
+
else if (status === 401) {
|
|
1757
|
+
const _responseText = response.data;
|
|
1758
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1759
|
+
}
|
|
1760
|
+
else if (status === 403) {
|
|
1671
1761
|
const _responseText = response.data;
|
|
1672
|
-
|
|
1673
|
-
let resultData500 = _responseText;
|
|
1674
|
-
result500 = JSON.parse(resultData500);
|
|
1675
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1762
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1676
1763
|
}
|
|
1677
1764
|
else if (status !== 200 && status !== 204) {
|
|
1678
1765
|
const _responseText = response.data;
|
|
@@ -1731,12 +1818,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1731
1818
|
result200 = JSON.parse(resultData200);
|
|
1732
1819
|
return Promise.resolve(result200);
|
|
1733
1820
|
}
|
|
1734
|
-
else if (status ===
|
|
1821
|
+
else if (status === 401) {
|
|
1822
|
+
const _responseText = response.data;
|
|
1823
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1824
|
+
}
|
|
1825
|
+
else if (status === 403) {
|
|
1735
1826
|
const _responseText = response.data;
|
|
1736
|
-
|
|
1737
|
-
let resultData500 = _responseText;
|
|
1738
|
-
result500 = JSON.parse(resultData500);
|
|
1739
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1827
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1740
1828
|
}
|
|
1741
1829
|
else if (status !== 200 && status !== 204) {
|
|
1742
1830
|
const _responseText = response.data;
|
|
@@ -1795,12 +1883,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1795
1883
|
result200 = JSON.parse(resultData200);
|
|
1796
1884
|
return Promise.resolve(result200);
|
|
1797
1885
|
}
|
|
1798
|
-
else if (status ===
|
|
1886
|
+
else if (status === 401) {
|
|
1887
|
+
const _responseText = response.data;
|
|
1888
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1889
|
+
}
|
|
1890
|
+
else if (status === 403) {
|
|
1799
1891
|
const _responseText = response.data;
|
|
1800
|
-
|
|
1801
|
-
let resultData500 = _responseText;
|
|
1802
|
-
result500 = JSON.parse(resultData500);
|
|
1803
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1892
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1804
1893
|
}
|
|
1805
1894
|
else if (status !== 200 && status !== 204) {
|
|
1806
1895
|
const _responseText = response.data;
|
|
@@ -1859,12 +1948,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1859
1948
|
result200 = JSON.parse(resultData200);
|
|
1860
1949
|
return Promise.resolve(result200);
|
|
1861
1950
|
}
|
|
1862
|
-
else if (status ===
|
|
1951
|
+
else if (status === 401) {
|
|
1952
|
+
const _responseText = response.data;
|
|
1953
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1954
|
+
}
|
|
1955
|
+
else if (status === 403) {
|
|
1863
1956
|
const _responseText = response.data;
|
|
1864
|
-
|
|
1865
|
-
let resultData500 = _responseText;
|
|
1866
|
-
result500 = JSON.parse(resultData500);
|
|
1867
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1957
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1868
1958
|
}
|
|
1869
1959
|
else if (status !== 200 && status !== 204) {
|
|
1870
1960
|
const _responseText = response.data;
|
|
@@ -1923,12 +2013,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1923
2013
|
result200 = JSON.parse(resultData200);
|
|
1924
2014
|
return Promise.resolve(result200);
|
|
1925
2015
|
}
|
|
1926
|
-
else if (status ===
|
|
2016
|
+
else if (status === 401) {
|
|
2017
|
+
const _responseText = response.data;
|
|
2018
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
2019
|
+
}
|
|
2020
|
+
else if (status === 403) {
|
|
1927
2021
|
const _responseText = response.data;
|
|
1928
|
-
|
|
1929
|
-
let resultData500 = _responseText;
|
|
1930
|
-
result500 = JSON.parse(resultData500);
|
|
1931
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2022
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1932
2023
|
}
|
|
1933
2024
|
else if (status !== 200 && status !== 204) {
|
|
1934
2025
|
const _responseText = response.data;
|
|
@@ -1987,12 +2078,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1987
2078
|
result200 = JSON.parse(resultData200);
|
|
1988
2079
|
return Promise.resolve(result200);
|
|
1989
2080
|
}
|
|
1990
|
-
else if (status ===
|
|
2081
|
+
else if (status === 401) {
|
|
2082
|
+
const _responseText = response.data;
|
|
2083
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
2084
|
+
}
|
|
2085
|
+
else if (status === 403) {
|
|
1991
2086
|
const _responseText = response.data;
|
|
1992
|
-
|
|
1993
|
-
let resultData500 = _responseText;
|
|
1994
|
-
result500 = JSON.parse(resultData500);
|
|
1995
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2087
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1996
2088
|
}
|
|
1997
2089
|
else if (status !== 200 && status !== 204) {
|
|
1998
2090
|
const _responseText = response.data;
|
|
@@ -2021,7 +2113,9 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2021
2113
|
*/
|
|
2022
2114
|
renderImagePreview(attachment, tenantId, body, cancelToken) {
|
|
2023
2115
|
let url_ = this.baseUrl + "/api/atoms/v1/images/render-preview?";
|
|
2024
|
-
if (attachment
|
|
2116
|
+
if (attachment === null)
|
|
2117
|
+
throw new Error("The parameter 'attachment' cannot be null.");
|
|
2118
|
+
else if (attachment !== undefined)
|
|
2025
2119
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
2026
2120
|
if (tenantId === null)
|
|
2027
2121
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2077,13 +2171,6 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2077
2171
|
const _responseText = response.data;
|
|
2078
2172
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2079
2173
|
}
|
|
2080
|
-
else if (status === 500) {
|
|
2081
|
-
const _responseText = response.data;
|
|
2082
|
-
let result500 = null;
|
|
2083
|
-
let resultData500 = _responseText;
|
|
2084
|
-
result500 = JSON.parse(resultData500);
|
|
2085
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2086
|
-
}
|
|
2087
2174
|
else if (status !== 200 && status !== 204) {
|
|
2088
2175
|
const _responseText = response.data;
|
|
2089
2176
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2152,13 +2239,6 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2152
2239
|
const _responseText = response.data;
|
|
2153
2240
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2154
2241
|
}
|
|
2155
|
-
else if (status === 500) {
|
|
2156
|
-
const _responseText = response.data;
|
|
2157
|
-
let result500 = null;
|
|
2158
|
-
let resultData500 = _responseText;
|
|
2159
|
-
result500 = JSON.parse(resultData500);
|
|
2160
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2161
|
-
}
|
|
2162
2242
|
else if (status !== 200 && status !== 204) {
|
|
2163
2243
|
const _responseText = response.data;
|
|
2164
2244
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2188,7 +2268,9 @@ class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2188
2268
|
if (id === undefined || id === null)
|
|
2189
2269
|
throw new Error("The parameter 'id' must be defined.");
|
|
2190
2270
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2191
|
-
if (ownerId
|
|
2271
|
+
if (ownerId === null)
|
|
2272
|
+
throw new Error("The parameter 'ownerId' cannot be null.");
|
|
2273
|
+
else if (ownerId !== undefined)
|
|
2192
2274
|
url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
|
|
2193
2275
|
if (tenantId === null)
|
|
2194
2276
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2255,13 +2337,6 @@ class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2255
2337
|
const _responseText = response.data;
|
|
2256
2338
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2257
2339
|
}
|
|
2258
|
-
else if (status === 500) {
|
|
2259
|
-
const _responseText = response.data;
|
|
2260
|
-
let result500 = null;
|
|
2261
|
-
let resultData500 = _responseText;
|
|
2262
|
-
result500 = JSON.parse(resultData500);
|
|
2263
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2264
|
-
}
|
|
2265
2340
|
else if (status !== 200 && status !== 204) {
|
|
2266
2341
|
const _responseText = response.data;
|
|
2267
2342
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2280,7 +2355,9 @@ class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2280
2355
|
if (id === undefined || id === null)
|
|
2281
2356
|
throw new Error("The parameter 'id' must be defined.");
|
|
2282
2357
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2283
|
-
if (ownerId
|
|
2358
|
+
if (ownerId === null)
|
|
2359
|
+
throw new Error("The parameter 'ownerId' cannot be null.");
|
|
2360
|
+
else if (ownerId !== undefined)
|
|
2284
2361
|
url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
|
|
2285
2362
|
if (tenantId === null)
|
|
2286
2363
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2292,7 +2369,7 @@ class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2292
2369
|
method: "GET",
|
|
2293
2370
|
url: url_,
|
|
2294
2371
|
headers: {
|
|
2295
|
-
"Accept": "application/
|
|
2372
|
+
"Accept": "application/json"
|
|
2296
2373
|
},
|
|
2297
2374
|
cancelToken
|
|
2298
2375
|
};
|
|
@@ -2347,13 +2424,6 @@ class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2347
2424
|
const _responseText = response.data;
|
|
2348
2425
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2349
2426
|
}
|
|
2350
|
-
else if (status === 500) {
|
|
2351
|
-
const _responseText = response.data;
|
|
2352
|
-
let result500 = null;
|
|
2353
|
-
let resultData500 = _responseText;
|
|
2354
|
-
result500 = JSON.parse(resultData500);
|
|
2355
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2356
|
-
}
|
|
2357
2427
|
else if (status !== 200 && status !== 204) {
|
|
2358
2428
|
const _responseText = response.data;
|
|
2359
2429
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2372,7 +2442,9 @@ class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2372
2442
|
if (id === undefined || id === null)
|
|
2373
2443
|
throw new Error("The parameter 'id' must be defined.");
|
|
2374
2444
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2375
|
-
if (ownerId
|
|
2445
|
+
if (ownerId === null)
|
|
2446
|
+
throw new Error("The parameter 'ownerId' cannot be null.");
|
|
2447
|
+
else if (ownerId !== undefined)
|
|
2376
2448
|
url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
|
|
2377
2449
|
if (tenantId === null)
|
|
2378
2450
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2384,7 +2456,7 @@ class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2384
2456
|
method: "GET",
|
|
2385
2457
|
url: url_,
|
|
2386
2458
|
headers: {
|
|
2387
|
-
"Accept": "application/
|
|
2459
|
+
"Accept": "application/json"
|
|
2388
2460
|
},
|
|
2389
2461
|
cancelToken
|
|
2390
2462
|
};
|
|
@@ -2439,13 +2511,6 @@ class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2439
2511
|
const _responseText = response.data;
|
|
2440
2512
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2441
2513
|
}
|
|
2442
|
-
else if (status === 500) {
|
|
2443
|
-
const _responseText = response.data;
|
|
2444
|
-
let result500 = null;
|
|
2445
|
-
let resultData500 = _responseText;
|
|
2446
|
-
result500 = JSON.parse(resultData500);
|
|
2447
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2448
|
-
}
|
|
2449
2514
|
else if (status !== 200 && status !== 204) {
|
|
2450
2515
|
const _responseText = response.data;
|
|
2451
2516
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2465,14 +2530,16 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2465
2530
|
}
|
|
2466
2531
|
/**
|
|
2467
2532
|
* Creates new design file with specified parameters and saves it in storage.
|
|
2468
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
2533
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
2469
2534
|
* @param tenantId (optional) Tenant identifier
|
|
2470
|
-
* @param body (optional) Design creation parameters
|
|
2471
|
-
* @return
|
|
2535
|
+
* @param body (optional) Design creation parameters.
|
|
2536
|
+
* @return Created
|
|
2472
2537
|
*/
|
|
2473
2538
|
createDesign(privateStorageOwner, tenantId, body, cancelToken) {
|
|
2474
2539
|
let url_ = this.baseUrl + "/api/atoms/v1/designs?";
|
|
2475
|
-
if (privateStorageOwner
|
|
2540
|
+
if (privateStorageOwner === null)
|
|
2541
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
2542
|
+
else if (privateStorageOwner !== undefined)
|
|
2476
2543
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2477
2544
|
if (tenantId === null)
|
|
2478
2545
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2528,13 +2595,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2528
2595
|
const _responseText = response.data;
|
|
2529
2596
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2530
2597
|
}
|
|
2531
|
-
else if (status === 500) {
|
|
2532
|
-
const _responseText = response.data;
|
|
2533
|
-
let result500 = null;
|
|
2534
|
-
let resultData500 = _responseText;
|
|
2535
|
-
result500 = JSON.parse(resultData500);
|
|
2536
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2537
|
-
}
|
|
2538
2598
|
else if (status !== 200 && status !== 204) {
|
|
2539
2599
|
const _responseText = response.data;
|
|
2540
2600
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2554,9 +2614,13 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2554
2614
|
if (id === undefined || id === null)
|
|
2555
2615
|
throw new Error("The parameter 'id' must be defined.");
|
|
2556
2616
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2557
|
-
if (surfaceIndex
|
|
2617
|
+
if (surfaceIndex === null)
|
|
2618
|
+
throw new Error("The parameter 'surfaceIndex' cannot be null.");
|
|
2619
|
+
else if (surfaceIndex !== undefined)
|
|
2558
2620
|
url_ += "surfaceIndex=" + encodeURIComponent("" + surfaceIndex) + "&";
|
|
2559
|
-
if (privateStorageOwner
|
|
2621
|
+
if (privateStorageOwner === null)
|
|
2622
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
2623
|
+
else if (privateStorageOwner !== undefined)
|
|
2560
2624
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2561
2625
|
if (tenantId === null)
|
|
2562
2626
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2623,13 +2687,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2623
2687
|
const _responseText = response.data;
|
|
2624
2688
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2625
2689
|
}
|
|
2626
|
-
else if (status === 500) {
|
|
2627
|
-
const _responseText = response.data;
|
|
2628
|
-
let result500 = null;
|
|
2629
|
-
let resultData500 = _responseText;
|
|
2630
|
-
result500 = JSON.parse(resultData500);
|
|
2631
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2632
|
-
}
|
|
2633
2690
|
else if (status !== 200 && status !== 204) {
|
|
2634
2691
|
const _responseText = response.data;
|
|
2635
2692
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2637,9 +2694,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2637
2694
|
return Promise.resolve(null);
|
|
2638
2695
|
}
|
|
2639
2696
|
/**
|
|
2640
|
-
* Loads product (design model) from design file taken from storage
|
|
2641
|
-
* @param id Design identifier
|
|
2642
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
2697
|
+
* Loads product (design model) from design file taken from storage.
|
|
2698
|
+
* @param id Design identifier.
|
|
2699
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
2643
2700
|
* @param tenantId (optional) Tenant identifier
|
|
2644
2701
|
* @return Success
|
|
2645
2702
|
*/
|
|
@@ -2648,7 +2705,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2648
2705
|
if (id === undefined || id === null)
|
|
2649
2706
|
throw new Error("The parameter 'id' must be defined.");
|
|
2650
2707
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2651
|
-
if (privateStorageOwner
|
|
2708
|
+
if (privateStorageOwner === null)
|
|
2709
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
2710
|
+
else if (privateStorageOwner !== undefined)
|
|
2652
2711
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2653
2712
|
if (tenantId === null)
|
|
2654
2713
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2708,13 +2767,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2708
2767
|
const _responseText = response.data;
|
|
2709
2768
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2710
2769
|
}
|
|
2711
|
-
else if (status === 500) {
|
|
2712
|
-
const _responseText = response.data;
|
|
2713
|
-
let result500 = null;
|
|
2714
|
-
let resultData500 = _responseText;
|
|
2715
|
-
result500 = JSON.parse(resultData500);
|
|
2716
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2717
|
-
}
|
|
2718
2770
|
else if (status !== 200 && status !== 204) {
|
|
2719
2771
|
const _responseText = response.data;
|
|
2720
2772
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2723,10 +2775,10 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2723
2775
|
}
|
|
2724
2776
|
/**
|
|
2725
2777
|
* Saves product (design model) to design file and updates design in storage.
|
|
2726
|
-
* @param id Design identifier
|
|
2727
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
2778
|
+
* @param id Design identifier.
|
|
2779
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
2728
2780
|
* @param tenantId (optional) Tenant identifier
|
|
2729
|
-
* @param body (optional) Serialized product description
|
|
2781
|
+
* @param body (optional) Serialized product description.
|
|
2730
2782
|
* @return Success
|
|
2731
2783
|
*/
|
|
2732
2784
|
saveProduct(id, privateStorageOwner, tenantId, body, cancelToken) {
|
|
@@ -2734,7 +2786,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2734
2786
|
if (id === undefined || id === null)
|
|
2735
2787
|
throw new Error("The parameter 'id' must be defined.");
|
|
2736
2788
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2737
|
-
if (privateStorageOwner
|
|
2789
|
+
if (privateStorageOwner === null)
|
|
2790
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
2791
|
+
else if (privateStorageOwner !== undefined)
|
|
2738
2792
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2739
2793
|
if (tenantId === null)
|
|
2740
2794
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2793,13 +2847,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2793
2847
|
const _responseText = response.data;
|
|
2794
2848
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2795
2849
|
}
|
|
2796
|
-
else if (status === 500) {
|
|
2797
|
-
const _responseText = response.data;
|
|
2798
|
-
let result500 = null;
|
|
2799
|
-
let resultData500 = _responseText;
|
|
2800
|
-
result500 = JSON.parse(resultData500);
|
|
2801
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2802
|
-
}
|
|
2803
2850
|
else if (status !== 200 && status !== 204) {
|
|
2804
2851
|
const _responseText = response.data;
|
|
2805
2852
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2824,7 +2871,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2824
2871
|
if (id === undefined || id === null)
|
|
2825
2872
|
throw new Error("The parameter 'id' must be defined.");
|
|
2826
2873
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2827
|
-
if (privateStorageOwner
|
|
2874
|
+
if (privateStorageOwner === null)
|
|
2875
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
2876
|
+
else if (privateStorageOwner !== undefined)
|
|
2828
2877
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2829
2878
|
if (tenantId === null)
|
|
2830
2879
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2897,13 +2946,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2897
2946
|
const _responseText = response.data;
|
|
2898
2947
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2899
2948
|
}
|
|
2900
|
-
else if (status === 500) {
|
|
2901
|
-
const _responseText = response.data;
|
|
2902
|
-
let result500 = null;
|
|
2903
|
-
let resultData500 = _responseText;
|
|
2904
|
-
result500 = JSON.parse(resultData500);
|
|
2905
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2906
|
-
}
|
|
2907
2949
|
else if (status !== 200 && status !== 204) {
|
|
2908
2950
|
const _responseText = response.data;
|
|
2909
2951
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2922,7 +2964,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2922
2964
|
if (id === undefined || id === null)
|
|
2923
2965
|
throw new Error("The parameter 'id' must be defined.");
|
|
2924
2966
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2925
|
-
if (privateStorageOwner
|
|
2967
|
+
if (privateStorageOwner === null)
|
|
2968
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
2969
|
+
else if (privateStorageOwner !== undefined)
|
|
2926
2970
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2927
2971
|
if (tenantId === null)
|
|
2928
2972
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2982,13 +3026,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2982
3026
|
const _responseText = response.data;
|
|
2983
3027
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2984
3028
|
}
|
|
2985
|
-
else if (status === 500) {
|
|
2986
|
-
const _responseText = response.data;
|
|
2987
|
-
let result500 = null;
|
|
2988
|
-
let resultData500 = _responseText;
|
|
2989
|
-
result500 = JSON.parse(resultData500);
|
|
2990
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2991
|
-
}
|
|
2992
3029
|
else if (status !== 200 && status !== 204) {
|
|
2993
3030
|
const _responseText = response.data;
|
|
2994
3031
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2996,9 +3033,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2996
3033
|
return Promise.resolve(null);
|
|
2997
3034
|
}
|
|
2998
3035
|
/**
|
|
2999
|
-
* Loads data schema from design file taken from storage
|
|
3000
|
-
* @param id Design identifier
|
|
3001
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3036
|
+
* Loads data schema from design file taken from storage.
|
|
3037
|
+
* @param id Design identifier.
|
|
3038
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3002
3039
|
* @param tenantId (optional) Tenant identifier
|
|
3003
3040
|
* @return Success
|
|
3004
3041
|
*/
|
|
@@ -3007,7 +3044,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3007
3044
|
if (id === undefined || id === null)
|
|
3008
3045
|
throw new Error("The parameter 'id' must be defined.");
|
|
3009
3046
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3010
|
-
if (privateStorageOwner
|
|
3047
|
+
if (privateStorageOwner === null)
|
|
3048
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3049
|
+
else if (privateStorageOwner !== undefined)
|
|
3011
3050
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3012
3051
|
if (tenantId === null)
|
|
3013
3052
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3074,13 +3113,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3074
3113
|
const _responseText = response.data;
|
|
3075
3114
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3076
3115
|
}
|
|
3077
|
-
else if (status === 500) {
|
|
3078
|
-
const _responseText = response.data;
|
|
3079
|
-
let result500 = null;
|
|
3080
|
-
let resultData500 = _responseText;
|
|
3081
|
-
result500 = JSON.parse(resultData500);
|
|
3082
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3083
|
-
}
|
|
3084
3116
|
else if (status !== 200 && status !== 204) {
|
|
3085
3117
|
const _responseText = response.data;
|
|
3086
3118
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3088,7 +3120,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3088
3120
|
return Promise.resolve(null);
|
|
3089
3121
|
}
|
|
3090
3122
|
/**
|
|
3091
|
-
* Loads toggle set from design file taken from storage.
|
|
3123
|
+
* Loads a toggle set from design file taken from storage.
|
|
3092
3124
|
* @param id Design identifier.
|
|
3093
3125
|
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3094
3126
|
* @param tenantId (optional) Tenant identifier
|
|
@@ -3099,7 +3131,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3099
3131
|
if (id === undefined || id === null)
|
|
3100
3132
|
throw new Error("The parameter 'id' must be defined.");
|
|
3101
3133
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3102
|
-
if (privateStorageOwner
|
|
3134
|
+
if (privateStorageOwner === null)
|
|
3135
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3136
|
+
else if (privateStorageOwner !== undefined)
|
|
3103
3137
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3104
3138
|
if (tenantId === null)
|
|
3105
3139
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3166,13 +3200,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3166
3200
|
const _responseText = response.data;
|
|
3167
3201
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3168
3202
|
}
|
|
3169
|
-
else if (status === 500) {
|
|
3170
|
-
const _responseText = response.data;
|
|
3171
|
-
let result500 = null;
|
|
3172
|
-
let resultData500 = _responseText;
|
|
3173
|
-
result500 = JSON.parse(resultData500);
|
|
3174
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3175
|
-
}
|
|
3176
3203
|
else if (status !== 200 && status !== 204) {
|
|
3177
3204
|
const _responseText = response.data;
|
|
3178
3205
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3180,9 +3207,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3180
3207
|
return Promise.resolve(null);
|
|
3181
3208
|
}
|
|
3182
3209
|
/**
|
|
3183
|
-
* Gets variable items information for design file taken from storage
|
|
3184
|
-
* @param id Design identifier
|
|
3185
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3210
|
+
* Gets variable items information for design file taken from storage.
|
|
3211
|
+
* @param id Design identifier.
|
|
3212
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3186
3213
|
* @param tenantId (optional) Tenant identifier
|
|
3187
3214
|
* @return Success
|
|
3188
3215
|
*/
|
|
@@ -3191,7 +3218,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3191
3218
|
if (id === undefined || id === null)
|
|
3192
3219
|
throw new Error("The parameter 'id' must be defined.");
|
|
3193
3220
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3194
|
-
if (privateStorageOwner
|
|
3221
|
+
if (privateStorageOwner === null)
|
|
3222
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3223
|
+
else if (privateStorageOwner !== undefined)
|
|
3195
3224
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3196
3225
|
if (tenantId === null)
|
|
3197
3226
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3251,13 +3280,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3251
3280
|
const _responseText = response.data;
|
|
3252
3281
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3253
3282
|
}
|
|
3254
|
-
else if (status === 500) {
|
|
3255
|
-
const _responseText = response.data;
|
|
3256
|
-
let result500 = null;
|
|
3257
|
-
let resultData500 = _responseText;
|
|
3258
|
-
result500 = JSON.parse(resultData500);
|
|
3259
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3260
|
-
}
|
|
3261
3283
|
else if (status !== 200 && status !== 204) {
|
|
3262
3284
|
const _responseText = response.data;
|
|
3263
3285
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3265,11 +3287,11 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3265
3287
|
return Promise.resolve(null);
|
|
3266
3288
|
}
|
|
3267
3289
|
/**
|
|
3268
|
-
* Sets variable items values for design file taken from storage
|
|
3269
|
-
* @param id Design identifier
|
|
3270
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3290
|
+
* Sets variable items values for design file taken from storage.
|
|
3291
|
+
* @param id Design identifier.
|
|
3292
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3271
3293
|
* @param tenantId (optional) Tenant identifier
|
|
3272
|
-
* @param body (optional) Design variable values
|
|
3294
|
+
* @param body (optional) Design variable values.
|
|
3273
3295
|
* @return Success
|
|
3274
3296
|
*/
|
|
3275
3297
|
setVariables(id, privateStorageOwner, tenantId, body, cancelToken) {
|
|
@@ -3277,7 +3299,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3277
3299
|
if (id === undefined || id === null)
|
|
3278
3300
|
throw new Error("The parameter 'id' must be defined.");
|
|
3279
3301
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3280
|
-
if (privateStorageOwner
|
|
3302
|
+
if (privateStorageOwner === null)
|
|
3303
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3304
|
+
else if (privateStorageOwner !== undefined)
|
|
3281
3305
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3282
3306
|
if (tenantId === null)
|
|
3283
3307
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3343,13 +3367,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3343
3367
|
const _responseText = response.data;
|
|
3344
3368
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3345
3369
|
}
|
|
3346
|
-
else if (status === 500) {
|
|
3347
|
-
const _responseText = response.data;
|
|
3348
|
-
let result500 = null;
|
|
3349
|
-
let resultData500 = _responseText;
|
|
3350
|
-
result500 = JSON.parse(resultData500);
|
|
3351
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3352
|
-
}
|
|
3353
3370
|
else if (status !== 200 && status !== 204) {
|
|
3354
3371
|
const _responseText = response.data;
|
|
3355
3372
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3357,9 +3374,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3357
3374
|
return Promise.resolve(null);
|
|
3358
3375
|
}
|
|
3359
3376
|
/**
|
|
3360
|
-
* Loads variable data printing information from design file taken from storage
|
|
3361
|
-
* @param id Design identifier
|
|
3362
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3377
|
+
* Loads variable data printing information from design file taken from storage.
|
|
3378
|
+
* @param id Design identifier.
|
|
3379
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3363
3380
|
* @param tenantId (optional) Tenant identifier
|
|
3364
3381
|
* @return Success
|
|
3365
3382
|
*/
|
|
@@ -3368,7 +3385,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3368
3385
|
if (id === undefined || id === null)
|
|
3369
3386
|
throw new Error("The parameter 'id' must be defined.");
|
|
3370
3387
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3371
|
-
if (privateStorageOwner
|
|
3388
|
+
if (privateStorageOwner === null)
|
|
3389
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3390
|
+
else if (privateStorageOwner !== undefined)
|
|
3372
3391
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3373
3392
|
if (tenantId === null)
|
|
3374
3393
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3435,13 +3454,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3435
3454
|
const _responseText = response.data;
|
|
3436
3455
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3437
3456
|
}
|
|
3438
|
-
else if (status === 500) {
|
|
3439
|
-
const _responseText = response.data;
|
|
3440
|
-
let result500 = null;
|
|
3441
|
-
let resultData500 = _responseText;
|
|
3442
|
-
result500 = JSON.parse(resultData500);
|
|
3443
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3444
|
-
}
|
|
3445
3457
|
else if (status !== 200 && status !== 204) {
|
|
3446
3458
|
const _responseText = response.data;
|
|
3447
3459
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3450,10 +3462,10 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3450
3462
|
}
|
|
3451
3463
|
/**
|
|
3452
3464
|
* Saves variable data printing information to design file and updates design in storage.
|
|
3453
|
-
* @param id Design identifier
|
|
3454
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3465
|
+
* @param id Design identifier.
|
|
3466
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3455
3467
|
* @param tenantId (optional) Tenant identifier
|
|
3456
|
-
* @param body (optional) Serialized vdp data
|
|
3468
|
+
* @param body (optional) Serialized vdp data.
|
|
3457
3469
|
* @return Success
|
|
3458
3470
|
*/
|
|
3459
3471
|
saveVdpData(id, privateStorageOwner, tenantId, body, cancelToken) {
|
|
@@ -3461,7 +3473,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3461
3473
|
if (id === undefined || id === null)
|
|
3462
3474
|
throw new Error("The parameter 'id' must be defined.");
|
|
3463
3475
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3464
|
-
if (privateStorageOwner
|
|
3476
|
+
if (privateStorageOwner === null)
|
|
3477
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3478
|
+
else if (privateStorageOwner !== undefined)
|
|
3465
3479
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3466
3480
|
if (tenantId === null)
|
|
3467
3481
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3520,13 +3534,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3520
3534
|
const _responseText = response.data;
|
|
3521
3535
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3522
3536
|
}
|
|
3523
|
-
else if (status === 500) {
|
|
3524
|
-
const _responseText = response.data;
|
|
3525
|
-
let result500 = null;
|
|
3526
|
-
let resultData500 = _responseText;
|
|
3527
|
-
result500 = JSON.parse(resultData500);
|
|
3528
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3529
|
-
}
|
|
3530
3537
|
else if (status !== 200 && status !== 204) {
|
|
3531
3538
|
const _responseText = response.data;
|
|
3532
3539
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3535,8 +3542,8 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3535
3542
|
}
|
|
3536
3543
|
/**
|
|
3537
3544
|
* Deletes variable data printing information from design file and updates design in storage.
|
|
3538
|
-
* @param id Design identifier
|
|
3539
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3545
|
+
* @param id Design identifier.
|
|
3546
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3540
3547
|
* @param tenantId (optional) Tenant identifier
|
|
3541
3548
|
* @return Success
|
|
3542
3549
|
*/
|
|
@@ -3545,7 +3552,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3545
3552
|
if (id === undefined || id === null)
|
|
3546
3553
|
throw new Error("The parameter 'id' must be defined.");
|
|
3547
3554
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3548
|
-
if (privateStorageOwner
|
|
3555
|
+
if (privateStorageOwner === null)
|
|
3556
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3557
|
+
else if (privateStorageOwner !== undefined)
|
|
3549
3558
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3550
3559
|
if (tenantId === null)
|
|
3551
3560
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3600,13 +3609,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3600
3609
|
const _responseText = response.data;
|
|
3601
3610
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3602
3611
|
}
|
|
3603
|
-
else if (status === 500) {
|
|
3604
|
-
const _responseText = response.data;
|
|
3605
|
-
let result500 = null;
|
|
3606
|
-
let resultData500 = _responseText;
|
|
3607
|
-
result500 = JSON.parse(resultData500);
|
|
3608
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3609
|
-
}
|
|
3610
3612
|
else if (status !== 200 && status !== 204) {
|
|
3611
3613
|
const _responseText = response.data;
|
|
3612
3614
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3614,9 +3616,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3614
3616
|
return Promise.resolve(null);
|
|
3615
3617
|
}
|
|
3616
3618
|
/**
|
|
3617
|
-
* Loads product (design model) from resource file taken from storage
|
|
3618
|
-
* @param id Resource identifier
|
|
3619
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3619
|
+
* Loads product (design model) from resource file taken from storage.
|
|
3620
|
+
* @param id Resource identifier.
|
|
3621
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3620
3622
|
* @param tenantId (optional) Tenant identifier
|
|
3621
3623
|
* @return Success
|
|
3622
3624
|
*/
|
|
@@ -3625,7 +3627,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3625
3627
|
if (id === undefined || id === null)
|
|
3626
3628
|
throw new Error("The parameter 'id' must be defined.");
|
|
3627
3629
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3628
|
-
if (privateStorageOwner
|
|
3630
|
+
if (privateStorageOwner === null)
|
|
3631
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3632
|
+
else if (privateStorageOwner !== undefined)
|
|
3629
3633
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3630
3634
|
if (tenantId === null)
|
|
3631
3635
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3692,13 +3696,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3692
3696
|
const _responseText = response.data;
|
|
3693
3697
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3694
3698
|
}
|
|
3695
|
-
else if (status === 500) {
|
|
3696
|
-
const _responseText = response.data;
|
|
3697
|
-
let result500 = null;
|
|
3698
|
-
let resultData500 = _responseText;
|
|
3699
|
-
result500 = JSON.parse(resultData500);
|
|
3700
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3701
|
-
}
|
|
3702
3699
|
else if (status !== 200 && status !== 204) {
|
|
3703
3700
|
const _responseText = response.data;
|
|
3704
3701
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3706,9 +3703,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3706
3703
|
return Promise.resolve(null);
|
|
3707
3704
|
}
|
|
3708
3705
|
/**
|
|
3709
|
-
* Converts colors
|
|
3706
|
+
* Converts colors.
|
|
3710
3707
|
* @param tenantId (optional) Tenant identifier
|
|
3711
|
-
* @param body (optional) Convert colors operation parameters
|
|
3708
|
+
* @param body (optional) Convert colors operation parameters.
|
|
3712
3709
|
* @return Success
|
|
3713
3710
|
*/
|
|
3714
3711
|
convertColors(tenantId, body, cancelToken) {
|
|
@@ -3774,13 +3771,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3774
3771
|
const _responseText = response.data;
|
|
3775
3772
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3776
3773
|
}
|
|
3777
|
-
else if (status === 500) {
|
|
3778
|
-
const _responseText = response.data;
|
|
3779
|
-
let result500 = null;
|
|
3780
|
-
let resultData500 = _responseText;
|
|
3781
|
-
result500 = JSON.parse(resultData500);
|
|
3782
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3783
|
-
}
|
|
3784
3774
|
else if (status !== 200 && status !== 204) {
|
|
3785
3775
|
const _responseText = response.data;
|
|
3786
3776
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3788,8 +3778,8 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3788
3778
|
return Promise.resolve(null);
|
|
3789
3779
|
}
|
|
3790
3780
|
/**
|
|
3791
|
-
* Creates product item
|
|
3792
|
-
* @param itemType (optional) Desired item type
|
|
3781
|
+
* Creates product item.
|
|
3782
|
+
* @param itemType (optional) Desired item type.
|
|
3793
3783
|
* @param tenantId (optional) Tenant identifier
|
|
3794
3784
|
* @param sourceType (optional)
|
|
3795
3785
|
* @param sourceId (optional)
|
|
@@ -3799,7 +3789,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3799
3789
|
*/
|
|
3800
3790
|
createItem(itemType, tenantId, sourceType, sourceId, sourceOwnerId, sourceFile, cancelToken) {
|
|
3801
3791
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/model/items?";
|
|
3802
|
-
if (itemType
|
|
3792
|
+
if (itemType === null)
|
|
3793
|
+
throw new Error("The parameter 'itemType' cannot be null.");
|
|
3794
|
+
else if (itemType !== undefined)
|
|
3803
3795
|
url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
|
|
3804
3796
|
if (tenantId === null)
|
|
3805
3797
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3869,13 +3861,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3869
3861
|
const _responseText = response.data;
|
|
3870
3862
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3871
3863
|
}
|
|
3872
|
-
else if (status === 500) {
|
|
3873
|
-
const _responseText = response.data;
|
|
3874
|
-
let result500 = null;
|
|
3875
|
-
let resultData500 = _responseText;
|
|
3876
|
-
result500 = JSON.parse(resultData500);
|
|
3877
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3878
|
-
}
|
|
3879
3864
|
else if (status !== 200 && status !== 204) {
|
|
3880
3865
|
const _responseText = response.data;
|
|
3881
3866
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3944,13 +3929,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3944
3929
|
const _responseText = response.data;
|
|
3945
3930
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3946
3931
|
}
|
|
3947
|
-
else if (status === 500) {
|
|
3948
|
-
const _responseText = response.data;
|
|
3949
|
-
let result500 = null;
|
|
3950
|
-
let resultData500 = _responseText;
|
|
3951
|
-
result500 = JSON.parse(resultData500);
|
|
3952
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
3953
|
-
}
|
|
3954
3932
|
else if (status !== 200 && status !== 204) {
|
|
3955
3933
|
const _responseText = response.data;
|
|
3956
3934
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4019,13 +3997,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4019
3997
|
const _responseText = response.data;
|
|
4020
3998
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4021
3999
|
}
|
|
4022
|
-
else if (status === 500) {
|
|
4023
|
-
const _responseText = response.data;
|
|
4024
|
-
let result500 = null;
|
|
4025
|
-
let resultData500 = _responseText;
|
|
4026
|
-
result500 = JSON.parse(resultData500);
|
|
4027
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4028
|
-
}
|
|
4029
4000
|
else if (status !== 200 && status !== 204) {
|
|
4030
4001
|
const _responseText = response.data;
|
|
4031
4002
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4034,14 +4005,17 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4034
4005
|
}
|
|
4035
4006
|
/**
|
|
4036
4007
|
* Render product proof image with specified parameters.
|
|
4037
|
-
* @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
|
|
4008
|
+
* @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
|
|
4009
|
+
(default value is 'false').
|
|
4038
4010
|
* @param tenantId (optional) Tenant identifier
|
|
4039
4011
|
* @param body (optional) Preview parameters.
|
|
4040
4012
|
* @return Success
|
|
4041
4013
|
*/
|
|
4042
4014
|
renderProduct(attachment, tenantId, body, cancelToken) {
|
|
4043
4015
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/model/render-proof?";
|
|
4044
|
-
if (attachment
|
|
4016
|
+
if (attachment === null)
|
|
4017
|
+
throw new Error("The parameter 'attachment' cannot be null.");
|
|
4018
|
+
else if (attachment !== undefined)
|
|
4045
4019
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
4046
4020
|
if (tenantId === null)
|
|
4047
4021
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4097,13 +4071,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4097
4071
|
const _responseText = response.data;
|
|
4098
4072
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4099
4073
|
}
|
|
4100
|
-
else if (status === 500) {
|
|
4101
|
-
const _responseText = response.data;
|
|
4102
|
-
let result500 = null;
|
|
4103
|
-
let resultData500 = _responseText;
|
|
4104
|
-
result500 = JSON.parse(resultData500);
|
|
4105
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4106
|
-
}
|
|
4107
4074
|
else if (status !== 200 && status !== 204) {
|
|
4108
4075
|
const _responseText = response.data;
|
|
4109
4076
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4120,7 +4087,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4120
4087
|
*/
|
|
4121
4088
|
renderDesignPreview(attachment, tenantId, body, cancelToken) {
|
|
4122
4089
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/render-preview?";
|
|
4123
|
-
if (attachment
|
|
4090
|
+
if (attachment === null)
|
|
4091
|
+
throw new Error("The parameter 'attachment' cannot be null.");
|
|
4092
|
+
else if (attachment !== undefined)
|
|
4124
4093
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
4125
4094
|
if (tenantId === null)
|
|
4126
4095
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4176,13 +4145,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4176
4145
|
const _responseText = response.data;
|
|
4177
4146
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4178
4147
|
}
|
|
4179
|
-
else if (status === 500) {
|
|
4180
|
-
const _responseText = response.data;
|
|
4181
|
-
let result500 = null;
|
|
4182
|
-
let resultData500 = _responseText;
|
|
4183
|
-
result500 = JSON.parse(resultData500);
|
|
4184
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4185
|
-
}
|
|
4186
4148
|
else if (status !== 200 && status !== 204) {
|
|
4187
4149
|
const _responseText = response.data;
|
|
4188
4150
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4251,13 +4213,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4251
4213
|
const _responseText = response.data;
|
|
4252
4214
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4253
4215
|
}
|
|
4254
|
-
else if (status === 500) {
|
|
4255
|
-
const _responseText = response.data;
|
|
4256
|
-
let result500 = null;
|
|
4257
|
-
let resultData500 = _responseText;
|
|
4258
|
-
result500 = JSON.parse(resultData500);
|
|
4259
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4260
|
-
}
|
|
4261
4216
|
else if (status !== 200 && status !== 204) {
|
|
4262
4217
|
const _responseText = response.data;
|
|
4263
4218
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4274,7 +4229,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4274
4229
|
*/
|
|
4275
4230
|
renderDesignProof(attachment, tenantId, body, cancelToken) {
|
|
4276
4231
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/render-proof?";
|
|
4277
|
-
if (attachment
|
|
4232
|
+
if (attachment === null)
|
|
4233
|
+
throw new Error("The parameter 'attachment' cannot be null.");
|
|
4234
|
+
else if (attachment !== undefined)
|
|
4278
4235
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
4279
4236
|
if (tenantId === null)
|
|
4280
4237
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4330,13 +4287,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4330
4287
|
const _responseText = response.data;
|
|
4331
4288
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4332
4289
|
}
|
|
4333
|
-
else if (status === 500) {
|
|
4334
|
-
const _responseText = response.data;
|
|
4335
|
-
let result500 = null;
|
|
4336
|
-
let resultData500 = _responseText;
|
|
4337
|
-
result500 = JSON.parse(resultData500);
|
|
4338
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4339
|
-
}
|
|
4340
4290
|
else if (status !== 200 && status !== 204) {
|
|
4341
4291
|
const _responseText = response.data;
|
|
4342
4292
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4405,13 +4355,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4405
4355
|
const _responseText = response.data;
|
|
4406
4356
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4407
4357
|
}
|
|
4408
|
-
else if (status === 500) {
|
|
4409
|
-
const _responseText = response.data;
|
|
4410
|
-
let result500 = null;
|
|
4411
|
-
let resultData500 = _responseText;
|
|
4412
|
-
result500 = JSON.parse(resultData500);
|
|
4413
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4414
|
-
}
|
|
4415
4358
|
else if (status !== 200 && status !== 204) {
|
|
4416
4359
|
const _responseText = response.data;
|
|
4417
4360
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4420,20 +4363,26 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4420
4363
|
}
|
|
4421
4364
|
/**
|
|
4422
4365
|
* Creates a private design from a public design.
|
|
4423
|
-
* @param designId (optional) Public design
|
|
4424
|
-
* @param privateDesignId (optional) Private design
|
|
4425
|
-
* @param privateStorageOwner (optional) Private storage owner
|
|
4366
|
+
* @param designId (optional) Public design identifier.
|
|
4367
|
+
* @param privateDesignId (optional) Private design identifier.
|
|
4368
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4426
4369
|
* @param tenantId (optional) Tenant identifier
|
|
4427
|
-
* @return
|
|
4370
|
+
* @return Created
|
|
4428
4371
|
* @deprecated
|
|
4429
4372
|
*/
|
|
4430
4373
|
createPrivateDesignFromDesign(designId, privateDesignId, privateStorageOwner, tenantId, cancelToken) {
|
|
4431
4374
|
let url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-design?";
|
|
4432
|
-
if (designId
|
|
4375
|
+
if (designId === null)
|
|
4376
|
+
throw new Error("The parameter 'designId' cannot be null.");
|
|
4377
|
+
else if (designId !== undefined)
|
|
4433
4378
|
url_ += "designId=" + encodeURIComponent("" + designId) + "&";
|
|
4434
|
-
if (privateDesignId
|
|
4379
|
+
if (privateDesignId === null)
|
|
4380
|
+
throw new Error("The parameter 'privateDesignId' cannot be null.");
|
|
4381
|
+
else if (privateDesignId !== undefined)
|
|
4435
4382
|
url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
|
|
4436
|
-
if (privateStorageOwner
|
|
4383
|
+
if (privateStorageOwner === null)
|
|
4384
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4385
|
+
else if (privateStorageOwner !== undefined)
|
|
4437
4386
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4438
4387
|
if (tenantId === null)
|
|
4439
4388
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4481,13 +4430,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4481
4430
|
const _responseText = response.data;
|
|
4482
4431
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4483
4432
|
}
|
|
4484
|
-
else if (status === 500) {
|
|
4485
|
-
const _responseText = response.data;
|
|
4486
|
-
let result500 = null;
|
|
4487
|
-
let resultData500 = _responseText;
|
|
4488
|
-
result500 = JSON.parse(resultData500);
|
|
4489
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4490
|
-
}
|
|
4491
4433
|
else if (status !== 200 && status !== 204) {
|
|
4492
4434
|
const _responseText = response.data;
|
|
4493
4435
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4496,20 +4438,26 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4496
4438
|
}
|
|
4497
4439
|
/**
|
|
4498
4440
|
* Creates a private design from a public resource.
|
|
4499
|
-
* @param resourceId (optional) Resource
|
|
4500
|
-
* @param privateDesignId (optional) Private design
|
|
4501
|
-
* @param privateStorageOwner (optional) Private storage owner
|
|
4502
|
-
* @param tenantId (optional) Tenant identifier
|
|
4503
|
-
* @return
|
|
4441
|
+
* @param resourceId (optional) Resource identifier.
|
|
4442
|
+
* @param privateDesignId (optional) Private design identifier.
|
|
4443
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4444
|
+
* @param tenantId (optional) Tenant identifier.
|
|
4445
|
+
* @return Created
|
|
4504
4446
|
* @deprecated
|
|
4505
4447
|
*/
|
|
4506
4448
|
createPrivateDesignFromResource(resourceId, privateDesignId, privateStorageOwner, tenantId, cancelToken) {
|
|
4507
4449
|
let url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-resource?";
|
|
4508
|
-
if (resourceId
|
|
4450
|
+
if (resourceId === null)
|
|
4451
|
+
throw new Error("The parameter 'resourceId' cannot be null.");
|
|
4452
|
+
else if (resourceId !== undefined)
|
|
4509
4453
|
url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
|
|
4510
|
-
if (privateDesignId
|
|
4454
|
+
if (privateDesignId === null)
|
|
4455
|
+
throw new Error("The parameter 'privateDesignId' cannot be null.");
|
|
4456
|
+
else if (privateDesignId !== undefined)
|
|
4511
4457
|
url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
|
|
4512
|
-
if (privateStorageOwner
|
|
4458
|
+
if (privateStorageOwner === null)
|
|
4459
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4460
|
+
else if (privateStorageOwner !== undefined)
|
|
4513
4461
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4514
4462
|
if (tenantId === null)
|
|
4515
4463
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4557,13 +4505,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4557
4505
|
const _responseText = response.data;
|
|
4558
4506
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4559
4507
|
}
|
|
4560
|
-
else if (status === 500) {
|
|
4561
|
-
const _responseText = response.data;
|
|
4562
|
-
let result500 = null;
|
|
4563
|
-
let resultData500 = _responseText;
|
|
4564
|
-
result500 = JSON.parse(resultData500);
|
|
4565
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4566
|
-
}
|
|
4567
4508
|
else if (status !== 200 && status !== 204) {
|
|
4568
4509
|
const _responseText = response.data;
|
|
4569
4510
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4600,7 +4541,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4600
4541
|
url: url_,
|
|
4601
4542
|
headers: {
|
|
4602
4543
|
"Content-Type": "application/json",
|
|
4603
|
-
"Accept": "
|
|
4544
|
+
"Accept": "text/css"
|
|
4604
4545
|
},
|
|
4605
4546
|
cancelToken
|
|
4606
4547
|
};
|
|
@@ -4634,12 +4575,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4634
4575
|
result200 = JSON.parse(resultData200);
|
|
4635
4576
|
return Promise.resolve(result200);
|
|
4636
4577
|
}
|
|
4637
|
-
else if (status ===
|
|
4578
|
+
else if (status === 401) {
|
|
4579
|
+
const _responseText = response.data;
|
|
4580
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4581
|
+
}
|
|
4582
|
+
else if (status === 403) {
|
|
4638
4583
|
const _responseText = response.data;
|
|
4639
|
-
|
|
4640
|
-
let resultData500 = _responseText;
|
|
4641
|
-
result500 = JSON.parse(resultData500);
|
|
4642
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4584
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4643
4585
|
}
|
|
4644
4586
|
else if (status !== 200 && status !== 204) {
|
|
4645
4587
|
const _responseText = response.data;
|
|
@@ -4706,12 +4648,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4706
4648
|
result404 = JSON.parse(resultData404);
|
|
4707
4649
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
4708
4650
|
}
|
|
4709
|
-
else if (status ===
|
|
4651
|
+
else if (status === 401) {
|
|
4652
|
+
const _responseText = response.data;
|
|
4653
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4654
|
+
}
|
|
4655
|
+
else if (status === 403) {
|
|
4710
4656
|
const _responseText = response.data;
|
|
4711
|
-
|
|
4712
|
-
let resultData500 = _responseText;
|
|
4713
|
-
result500 = JSON.parse(resultData500);
|
|
4714
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4657
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4715
4658
|
}
|
|
4716
4659
|
else if (status !== 200 && status !== 204) {
|
|
4717
4660
|
const _responseText = response.data;
|
|
@@ -4772,12 +4715,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4772
4715
|
result200 = JSON.parse(resultData200);
|
|
4773
4716
|
return Promise.resolve(result200);
|
|
4774
4717
|
}
|
|
4775
|
-
else if (status ===
|
|
4718
|
+
else if (status === 401) {
|
|
4719
|
+
const _responseText = response.data;
|
|
4720
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4721
|
+
}
|
|
4722
|
+
else if (status === 403) {
|
|
4776
4723
|
const _responseText = response.data;
|
|
4777
|
-
|
|
4778
|
-
let resultData500 = _responseText;
|
|
4779
|
-
result500 = JSON.parse(resultData500);
|
|
4780
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4724
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4781
4725
|
}
|
|
4782
4726
|
else if (status !== 200 && status !== 204) {
|
|
4783
4727
|
const _responseText = response.data;
|
|
@@ -4838,12 +4782,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4838
4782
|
result200 = JSON.parse(resultData200);
|
|
4839
4783
|
return Promise.resolve(result200);
|
|
4840
4784
|
}
|
|
4841
|
-
else if (status ===
|
|
4785
|
+
else if (status === 401) {
|
|
4786
|
+
const _responseText = response.data;
|
|
4787
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4788
|
+
}
|
|
4789
|
+
else if (status === 403) {
|
|
4842
4790
|
const _responseText = response.data;
|
|
4843
|
-
|
|
4844
|
-
let resultData500 = _responseText;
|
|
4845
|
-
result500 = JSON.parse(resultData500);
|
|
4846
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4791
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4847
4792
|
}
|
|
4848
4793
|
else if (status !== 200 && status !== 204) {
|
|
4849
4794
|
const _responseText = response.data;
|
|
@@ -4858,7 +4803,9 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4858
4803
|
*/
|
|
4859
4804
|
getCssFont(fontKey, tenantId, cancelToken) {
|
|
4860
4805
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/GetCssFont?";
|
|
4861
|
-
if (fontKey
|
|
4806
|
+
if (fontKey === null)
|
|
4807
|
+
throw new Error("The parameter 'fontKey' cannot be null.");
|
|
4808
|
+
else if (fontKey !== undefined)
|
|
4862
4809
|
url_ += "fontKey=" + encodeURIComponent("" + fontKey) + "&";
|
|
4863
4810
|
if (tenantId === null)
|
|
4864
4811
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4910,12 +4857,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4910
4857
|
result404 = JSON.parse(resultData404);
|
|
4911
4858
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
4912
4859
|
}
|
|
4913
|
-
else if (status ===
|
|
4860
|
+
else if (status === 401) {
|
|
4861
|
+
const _responseText = response.data;
|
|
4862
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4863
|
+
}
|
|
4864
|
+
else if (status === 403) {
|
|
4914
4865
|
const _responseText = response.data;
|
|
4915
|
-
|
|
4916
|
-
let resultData500 = _responseText;
|
|
4917
|
-
result500 = JSON.parse(resultData500);
|
|
4918
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4866
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4919
4867
|
}
|
|
4920
4868
|
else if (status !== 200 && status !== 204) {
|
|
4921
4869
|
const _responseText = response.data;
|
|
@@ -4935,7 +4883,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4935
4883
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
4936
4884
|
url_ = url_.replace(/[?&]$/, "");
|
|
4937
4885
|
let options_ = {
|
|
4938
|
-
responseType: "blob",
|
|
4939
4886
|
method: "GET",
|
|
4940
4887
|
url: url_,
|
|
4941
4888
|
headers: {
|
|
@@ -4966,18 +4913,20 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4966
4913
|
}
|
|
4967
4914
|
}
|
|
4968
4915
|
}
|
|
4969
|
-
if (status === 200
|
|
4970
|
-
const
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4916
|
+
if (status === 200) {
|
|
4917
|
+
const _responseText = response.data;
|
|
4918
|
+
let result200 = null;
|
|
4919
|
+
let resultData200 = _responseText;
|
|
4920
|
+
result200 = JSON.parse(resultData200);
|
|
4921
|
+
return Promise.resolve(result200);
|
|
4922
|
+
}
|
|
4923
|
+
else if (status === 401) {
|
|
4924
|
+
const _responseText = response.data;
|
|
4925
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4974
4926
|
}
|
|
4975
|
-
else if (status ===
|
|
4927
|
+
else if (status === 403) {
|
|
4976
4928
|
const _responseText = response.data;
|
|
4977
|
-
|
|
4978
|
-
let resultData500 = _responseText;
|
|
4979
|
-
result500 = JSON.parse(resultData500);
|
|
4980
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4929
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4981
4930
|
}
|
|
4982
4931
|
else if (status !== 200 && status !== 204) {
|
|
4983
4932
|
const _responseText = response.data;
|
|
@@ -5038,12 +4987,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5038
4987
|
result200 = JSON.parse(resultData200);
|
|
5039
4988
|
return Promise.resolve(result200);
|
|
5040
4989
|
}
|
|
5041
|
-
else if (status ===
|
|
4990
|
+
else if (status === 401) {
|
|
4991
|
+
const _responseText = response.data;
|
|
4992
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4993
|
+
}
|
|
4994
|
+
else if (status === 403) {
|
|
5042
4995
|
const _responseText = response.data;
|
|
5043
|
-
|
|
5044
|
-
let resultData500 = _responseText;
|
|
5045
|
-
result500 = JSON.parse(resultData500);
|
|
5046
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4996
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5047
4997
|
}
|
|
5048
4998
|
else if (status !== 200 && status !== 204) {
|
|
5049
4999
|
const _responseText = response.data;
|
|
@@ -5104,12 +5054,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5104
5054
|
result200 = JSON.parse(resultData200);
|
|
5105
5055
|
return Promise.resolve(result200);
|
|
5106
5056
|
}
|
|
5107
|
-
else if (status ===
|
|
5057
|
+
else if (status === 401) {
|
|
5058
|
+
const _responseText = response.data;
|
|
5059
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5060
|
+
}
|
|
5061
|
+
else if (status === 403) {
|
|
5108
5062
|
const _responseText = response.data;
|
|
5109
|
-
|
|
5110
|
-
let resultData500 = _responseText;
|
|
5111
|
-
result500 = JSON.parse(resultData500);
|
|
5112
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5063
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5113
5064
|
}
|
|
5114
5065
|
else if (status !== 200 && status !== 204) {
|
|
5115
5066
|
const _responseText = response.data;
|
|
@@ -5170,12 +5121,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5170
5121
|
result200 = JSON.parse(resultData200);
|
|
5171
5122
|
return Promise.resolve(result200);
|
|
5172
5123
|
}
|
|
5173
|
-
else if (status ===
|
|
5124
|
+
else if (status === 401) {
|
|
5125
|
+
const _responseText = response.data;
|
|
5126
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5127
|
+
}
|
|
5128
|
+
else if (status === 403) {
|
|
5174
5129
|
const _responseText = response.data;
|
|
5175
|
-
|
|
5176
|
-
let resultData500 = _responseText;
|
|
5177
|
-
result500 = JSON.parse(resultData500);
|
|
5178
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5130
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5179
5131
|
}
|
|
5180
5132
|
else if (status !== 200 && status !== 204) {
|
|
5181
5133
|
const _responseText = response.data;
|
|
@@ -5207,41 +5159,77 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5207
5159
|
*/
|
|
5208
5160
|
img(f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId, cancelToken) {
|
|
5209
5161
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/img?";
|
|
5210
|
-
if (f
|
|
5162
|
+
if (f === null)
|
|
5163
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
5164
|
+
else if (f !== undefined)
|
|
5211
5165
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
5212
|
-
if (w
|
|
5166
|
+
if (w === null)
|
|
5167
|
+
throw new Error("The parameter 'w' cannot be null.");
|
|
5168
|
+
else if (w !== undefined)
|
|
5213
5169
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
5214
|
-
if (h
|
|
5170
|
+
if (h === null)
|
|
5171
|
+
throw new Error("The parameter 'h' cannot be null.");
|
|
5172
|
+
else if (h !== undefined)
|
|
5215
5173
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
5216
|
-
if (cmyk
|
|
5174
|
+
if (cmyk === null)
|
|
5175
|
+
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
5176
|
+
else if (cmyk !== undefined)
|
|
5217
5177
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
5218
|
-
if (rgb
|
|
5178
|
+
if (rgb === null)
|
|
5179
|
+
throw new Error("The parameter 'rgb' cannot be null.");
|
|
5180
|
+
else if (rgb !== undefined)
|
|
5219
5181
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
5220
|
-
if (grayscale
|
|
5182
|
+
if (grayscale === null)
|
|
5183
|
+
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
5184
|
+
else if (grayscale !== undefined)
|
|
5221
5185
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
5222
|
-
if (target
|
|
5186
|
+
if (target === null)
|
|
5187
|
+
throw new Error("The parameter 'target' cannot be null.");
|
|
5188
|
+
else if (target !== undefined)
|
|
5223
5189
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
5224
|
-
if (sq
|
|
5190
|
+
if (sq === null)
|
|
5191
|
+
throw new Error("The parameter 'sq' cannot be null.");
|
|
5192
|
+
else if (sq !== undefined)
|
|
5225
5193
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
5226
|
-
if (effect
|
|
5194
|
+
if (effect === null)
|
|
5195
|
+
throw new Error("The parameter 'effect' cannot be null.");
|
|
5196
|
+
else if (effect !== undefined)
|
|
5227
5197
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
5228
|
-
if (kp
|
|
5198
|
+
if (kp === null)
|
|
5199
|
+
throw new Error("The parameter 'kp' cannot be null.");
|
|
5200
|
+
else if (kp !== undefined)
|
|
5229
5201
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
5230
|
-
if (color
|
|
5202
|
+
if (color === null)
|
|
5203
|
+
throw new Error("The parameter 'color' cannot be null.");
|
|
5204
|
+
else if (color !== undefined)
|
|
5231
5205
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
5232
|
-
if (obm
|
|
5206
|
+
if (obm === null)
|
|
5207
|
+
throw new Error("The parameter 'obm' cannot be null.");
|
|
5208
|
+
else if (obm !== undefined)
|
|
5233
5209
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
5234
|
-
if (oo
|
|
5210
|
+
if (oo === null)
|
|
5211
|
+
throw new Error("The parameter 'oo' cannot be null.");
|
|
5212
|
+
else if (oo !== undefined)
|
|
5235
5213
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
5236
|
-
if (alphaMask
|
|
5214
|
+
if (alphaMask === null)
|
|
5215
|
+
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
5216
|
+
else if (alphaMask !== undefined)
|
|
5237
5217
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
5238
|
-
if (page
|
|
5218
|
+
if (page === null)
|
|
5219
|
+
throw new Error("The parameter 'page' cannot be null.");
|
|
5220
|
+
else if (page !== undefined)
|
|
5239
5221
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
5240
|
-
if (colorizeColor
|
|
5222
|
+
if (colorizeColor === null)
|
|
5223
|
+
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
5224
|
+
else if (colorizeColor !== undefined)
|
|
5241
5225
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
5242
|
-
if (rw
|
|
5226
|
+
if (rw === null)
|
|
5227
|
+
throw new Error("The parameter 'rw' cannot be null.");
|
|
5228
|
+
else if (rw !== undefined)
|
|
5243
5229
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
5244
|
-
if (rh
|
|
5230
|
+
if (rh === null)
|
|
5231
|
+
throw new Error("The parameter 'rh' cannot be null.");
|
|
5232
|
+
else if (rh !== undefined)
|
|
5245
5233
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
5246
5234
|
if (tenantId === null)
|
|
5247
5235
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5297,12 +5285,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5297
5285
|
result404 = JSON.parse(resultData404);
|
|
5298
5286
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5299
5287
|
}
|
|
5300
|
-
else if (status ===
|
|
5288
|
+
else if (status === 401) {
|
|
5289
|
+
const _responseText = response.data;
|
|
5290
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5291
|
+
}
|
|
5292
|
+
else if (status === 403) {
|
|
5301
5293
|
const _responseText = response.data;
|
|
5302
|
-
|
|
5303
|
-
let resultData500 = _responseText;
|
|
5304
|
-
result500 = JSON.parse(resultData500);
|
|
5305
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5294
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5306
5295
|
}
|
|
5307
5296
|
else if (status !== 200 && status !== 204) {
|
|
5308
5297
|
const _responseText = response.data;
|
|
@@ -5359,12 +5348,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5359
5348
|
result200 = JSON.parse(resultData200);
|
|
5360
5349
|
return Promise.resolve(result200);
|
|
5361
5350
|
}
|
|
5362
|
-
else if (status ===
|
|
5351
|
+
else if (status === 401) {
|
|
5352
|
+
const _responseText = response.data;
|
|
5353
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5354
|
+
}
|
|
5355
|
+
else if (status === 403) {
|
|
5363
5356
|
const _responseText = response.data;
|
|
5364
|
-
|
|
5365
|
-
let resultData500 = _responseText;
|
|
5366
|
-
result500 = JSON.parse(resultData500);
|
|
5367
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5357
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5368
5358
|
}
|
|
5369
5359
|
else if (status !== 200 && status !== 204) {
|
|
5370
5360
|
const _responseText = response.data;
|
|
@@ -5379,7 +5369,9 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5379
5369
|
*/
|
|
5380
5370
|
pth(f, tenantId, cancelToken) {
|
|
5381
5371
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/pth?";
|
|
5382
|
-
if (f
|
|
5372
|
+
if (f === null)
|
|
5373
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
5374
|
+
else if (f !== undefined)
|
|
5383
5375
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
5384
5376
|
if (tenantId === null)
|
|
5385
5377
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5435,12 +5427,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5435
5427
|
result404 = JSON.parse(resultData404);
|
|
5436
5428
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5437
5429
|
}
|
|
5438
|
-
else if (status ===
|
|
5430
|
+
else if (status === 401) {
|
|
5431
|
+
const _responseText = response.data;
|
|
5432
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5433
|
+
}
|
|
5434
|
+
else if (status === 403) {
|
|
5439
5435
|
const _responseText = response.data;
|
|
5440
|
-
|
|
5441
|
-
let resultData500 = _responseText;
|
|
5442
|
-
result500 = JSON.parse(resultData500);
|
|
5443
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5436
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5444
5437
|
}
|
|
5445
5438
|
else if (status !== 200 && status !== 204) {
|
|
5446
5439
|
const _responseText = response.data;
|
|
@@ -5455,7 +5448,9 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5455
5448
|
*/
|
|
5456
5449
|
resource(image, tenantId, cancelToken) {
|
|
5457
5450
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/resource?";
|
|
5458
|
-
if (image
|
|
5451
|
+
if (image === null)
|
|
5452
|
+
throw new Error("The parameter 'image' cannot be null.");
|
|
5453
|
+
else if (image !== undefined)
|
|
5459
5454
|
url_ += "image=" + encodeURIComponent("" + image) + "&";
|
|
5460
5455
|
if (tenantId === null)
|
|
5461
5456
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5507,12 +5502,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5507
5502
|
result404 = JSON.parse(resultData404);
|
|
5508
5503
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5509
5504
|
}
|
|
5510
|
-
else if (status ===
|
|
5505
|
+
else if (status === 401) {
|
|
5511
5506
|
const _responseText = response.data;
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5507
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5508
|
+
}
|
|
5509
|
+
else if (status === 403) {
|
|
5510
|
+
const _responseText = response.data;
|
|
5511
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5516
5512
|
}
|
|
5517
5513
|
else if (status !== 200 && status !== 204) {
|
|
5518
5514
|
const _responseText = response.data;
|
|
@@ -5544,41 +5540,77 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5544
5540
|
*/
|
|
5545
5541
|
svg(f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId, cancelToken) {
|
|
5546
5542
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/svg?";
|
|
5547
|
-
if (f
|
|
5543
|
+
if (f === null)
|
|
5544
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
5545
|
+
else if (f !== undefined)
|
|
5548
5546
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
5549
|
-
if (w
|
|
5547
|
+
if (w === null)
|
|
5548
|
+
throw new Error("The parameter 'w' cannot be null.");
|
|
5549
|
+
else if (w !== undefined)
|
|
5550
5550
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
5551
|
-
if (h
|
|
5551
|
+
if (h === null)
|
|
5552
|
+
throw new Error("The parameter 'h' cannot be null.");
|
|
5553
|
+
else if (h !== undefined)
|
|
5552
5554
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
5553
|
-
if (cmyk
|
|
5555
|
+
if (cmyk === null)
|
|
5556
|
+
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
5557
|
+
else if (cmyk !== undefined)
|
|
5554
5558
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
5555
|
-
if (rgb
|
|
5559
|
+
if (rgb === null)
|
|
5560
|
+
throw new Error("The parameter 'rgb' cannot be null.");
|
|
5561
|
+
else if (rgb !== undefined)
|
|
5556
5562
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
5557
|
-
if (grayscale
|
|
5563
|
+
if (grayscale === null)
|
|
5564
|
+
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
5565
|
+
else if (grayscale !== undefined)
|
|
5558
5566
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
5559
|
-
if (target
|
|
5567
|
+
if (target === null)
|
|
5568
|
+
throw new Error("The parameter 'target' cannot be null.");
|
|
5569
|
+
else if (target !== undefined)
|
|
5560
5570
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
5561
|
-
if (sq
|
|
5571
|
+
if (sq === null)
|
|
5572
|
+
throw new Error("The parameter 'sq' cannot be null.");
|
|
5573
|
+
else if (sq !== undefined)
|
|
5562
5574
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
5563
|
-
if (effect
|
|
5575
|
+
if (effect === null)
|
|
5576
|
+
throw new Error("The parameter 'effect' cannot be null.");
|
|
5577
|
+
else if (effect !== undefined)
|
|
5564
5578
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
5565
|
-
if (kp
|
|
5579
|
+
if (kp === null)
|
|
5580
|
+
throw new Error("The parameter 'kp' cannot be null.");
|
|
5581
|
+
else if (kp !== undefined)
|
|
5566
5582
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
5567
|
-
if (color
|
|
5583
|
+
if (color === null)
|
|
5584
|
+
throw new Error("The parameter 'color' cannot be null.");
|
|
5585
|
+
else if (color !== undefined)
|
|
5568
5586
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
5569
|
-
if (obm
|
|
5587
|
+
if (obm === null)
|
|
5588
|
+
throw new Error("The parameter 'obm' cannot be null.");
|
|
5589
|
+
else if (obm !== undefined)
|
|
5570
5590
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
5571
|
-
if (oo
|
|
5591
|
+
if (oo === null)
|
|
5592
|
+
throw new Error("The parameter 'oo' cannot be null.");
|
|
5593
|
+
else if (oo !== undefined)
|
|
5572
5594
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
5573
|
-
if (alphaMask
|
|
5595
|
+
if (alphaMask === null)
|
|
5596
|
+
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
5597
|
+
else if (alphaMask !== undefined)
|
|
5574
5598
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
5575
|
-
if (page
|
|
5599
|
+
if (page === null)
|
|
5600
|
+
throw new Error("The parameter 'page' cannot be null.");
|
|
5601
|
+
else if (page !== undefined)
|
|
5576
5602
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
5577
|
-
if (colorizeColor
|
|
5603
|
+
if (colorizeColor === null)
|
|
5604
|
+
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
5605
|
+
else if (colorizeColor !== undefined)
|
|
5578
5606
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
5579
|
-
if (rw
|
|
5607
|
+
if (rw === null)
|
|
5608
|
+
throw new Error("The parameter 'rw' cannot be null.");
|
|
5609
|
+
else if (rw !== undefined)
|
|
5580
5610
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
5581
|
-
if (rh
|
|
5611
|
+
if (rh === null)
|
|
5612
|
+
throw new Error("The parameter 'rh' cannot be null.");
|
|
5613
|
+
else if (rh !== undefined)
|
|
5582
5614
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
5583
5615
|
if (tenantId === null)
|
|
5584
5616
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5634,12 +5666,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5634
5666
|
result404 = JSON.parse(resultData404);
|
|
5635
5667
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5636
5668
|
}
|
|
5637
|
-
else if (status ===
|
|
5669
|
+
else if (status === 401) {
|
|
5670
|
+
const _responseText = response.data;
|
|
5671
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5672
|
+
}
|
|
5673
|
+
else if (status === 403) {
|
|
5638
5674
|
const _responseText = response.data;
|
|
5639
|
-
|
|
5640
|
-
let resultData500 = _responseText;
|
|
5641
|
-
result500 = JSON.parse(resultData500);
|
|
5642
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5675
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5643
5676
|
}
|
|
5644
5677
|
else if (status !== 200 && status !== 204) {
|
|
5645
5678
|
const _responseText = response.data;
|
|
@@ -5654,7 +5687,9 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5654
5687
|
*/
|
|
5655
5688
|
txt(f, tenantId, cancelToken) {
|
|
5656
5689
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/txt?";
|
|
5657
|
-
if (f
|
|
5690
|
+
if (f === null)
|
|
5691
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
5692
|
+
else if (f !== undefined)
|
|
5658
5693
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
5659
5694
|
if (tenantId === null)
|
|
5660
5695
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5710,12 +5745,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5710
5745
|
result404 = JSON.parse(resultData404);
|
|
5711
5746
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5712
5747
|
}
|
|
5713
|
-
else if (status ===
|
|
5748
|
+
else if (status === 401) {
|
|
5749
|
+
const _responseText = response.data;
|
|
5750
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5751
|
+
}
|
|
5752
|
+
else if (status === 403) {
|
|
5714
5753
|
const _responseText = response.data;
|
|
5715
|
-
|
|
5716
|
-
let resultData500 = _responseText;
|
|
5717
|
-
result500 = JSON.parse(resultData500);
|
|
5718
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5754
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5719
5755
|
}
|
|
5720
5756
|
else if (status !== 200 && status !== 204) {
|
|
5721
5757
|
const _responseText = response.data;
|
|
@@ -5776,12 +5812,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5776
5812
|
result200 = JSON.parse(resultData200);
|
|
5777
5813
|
return Promise.resolve(result200);
|
|
5778
5814
|
}
|
|
5779
|
-
else if (status ===
|
|
5815
|
+
else if (status === 401) {
|
|
5816
|
+
const _responseText = response.data;
|
|
5817
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5818
|
+
}
|
|
5819
|
+
else if (status === 403) {
|
|
5780
5820
|
const _responseText = response.data;
|
|
5781
|
-
|
|
5782
|
-
let resultData500 = _responseText;
|
|
5783
|
-
result500 = JSON.parse(resultData500);
|
|
5784
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5821
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5785
5822
|
}
|
|
5786
5823
|
else if (status !== 200 && status !== 204) {
|
|
5787
5824
|
const _responseText = response.data;
|
|
@@ -5842,12 +5879,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5842
5879
|
result200 = JSON.parse(resultData200);
|
|
5843
5880
|
return Promise.resolve(result200);
|
|
5844
5881
|
}
|
|
5845
|
-
else if (status ===
|
|
5882
|
+
else if (status === 401) {
|
|
5846
5883
|
const _responseText = response.data;
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5884
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5885
|
+
}
|
|
5886
|
+
else if (status === 403) {
|
|
5887
|
+
const _responseText = response.data;
|
|
5888
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5851
5889
|
}
|
|
5852
5890
|
else if (status !== 200 && status !== 204) {
|
|
5853
5891
|
const _responseText = response.data;
|
|
@@ -5908,12 +5946,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5908
5946
|
result200 = JSON.parse(resultData200);
|
|
5909
5947
|
return Promise.resolve(result200);
|
|
5910
5948
|
}
|
|
5911
|
-
else if (status ===
|
|
5949
|
+
else if (status === 401) {
|
|
5950
|
+
const _responseText = response.data;
|
|
5951
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5952
|
+
}
|
|
5953
|
+
else if (status === 403) {
|
|
5912
5954
|
const _responseText = response.data;
|
|
5913
|
-
|
|
5914
|
-
let resultData500 = _responseText;
|
|
5915
|
-
result500 = JSON.parse(resultData500);
|
|
5916
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5955
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5917
5956
|
}
|
|
5918
5957
|
else if (status !== 200 && status !== 204) {
|
|
5919
5958
|
const _responseText = response.data;
|
|
@@ -5974,12 +6013,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5974
6013
|
result200 = JSON.parse(resultData200);
|
|
5975
6014
|
return Promise.resolve(result200);
|
|
5976
6015
|
}
|
|
5977
|
-
else if (status ===
|
|
6016
|
+
else if (status === 401) {
|
|
6017
|
+
const _responseText = response.data;
|
|
6018
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6019
|
+
}
|
|
6020
|
+
else if (status === 403) {
|
|
5978
6021
|
const _responseText = response.data;
|
|
5979
|
-
|
|
5980
|
-
let resultData500 = _responseText;
|
|
5981
|
-
result500 = JSON.parse(resultData500);
|
|
5982
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6022
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5983
6023
|
}
|
|
5984
6024
|
else if (status !== 200 && status !== 204) {
|
|
5985
6025
|
const _responseText = response.data;
|
|
@@ -6040,12 +6080,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6040
6080
|
result200 = JSON.parse(resultData200);
|
|
6041
6081
|
return Promise.resolve(result200);
|
|
6042
6082
|
}
|
|
6043
|
-
else if (status ===
|
|
6083
|
+
else if (status === 401) {
|
|
6084
|
+
const _responseText = response.data;
|
|
6085
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6086
|
+
}
|
|
6087
|
+
else if (status === 403) {
|
|
6044
6088
|
const _responseText = response.data;
|
|
6045
|
-
|
|
6046
|
-
let resultData500 = _responseText;
|
|
6047
|
-
result500 = JSON.parse(resultData500);
|
|
6048
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6089
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6049
6090
|
}
|
|
6050
6091
|
else if (status !== 200 && status !== 204) {
|
|
6051
6092
|
const _responseText = response.data;
|
|
@@ -6106,12 +6147,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6106
6147
|
result200 = JSON.parse(resultData200);
|
|
6107
6148
|
return Promise.resolve(result200);
|
|
6108
6149
|
}
|
|
6109
|
-
else if (status ===
|
|
6150
|
+
else if (status === 401) {
|
|
6151
|
+
const _responseText = response.data;
|
|
6152
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6153
|
+
}
|
|
6154
|
+
else if (status === 403) {
|
|
6110
6155
|
const _responseText = response.data;
|
|
6111
|
-
|
|
6112
|
-
let resultData500 = _responseText;
|
|
6113
|
-
result500 = JSON.parse(resultData500);
|
|
6114
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6156
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6115
6157
|
}
|
|
6116
6158
|
else if (status !== 200 && status !== 204) {
|
|
6117
6159
|
const _responseText = response.data;
|
|
@@ -6172,12 +6214,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6172
6214
|
result200 = JSON.parse(resultData200);
|
|
6173
6215
|
return Promise.resolve(result200);
|
|
6174
6216
|
}
|
|
6175
|
-
else if (status ===
|
|
6217
|
+
else if (status === 401) {
|
|
6218
|
+
const _responseText = response.data;
|
|
6219
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6220
|
+
}
|
|
6221
|
+
else if (status === 403) {
|
|
6176
6222
|
const _responseText = response.data;
|
|
6177
|
-
|
|
6178
|
-
let resultData500 = _responseText;
|
|
6179
|
-
result500 = JSON.parse(resultData500);
|
|
6180
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6223
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6181
6224
|
}
|
|
6182
6225
|
else if (status !== 200 && status !== 204) {
|
|
6183
6226
|
const _responseText = response.data;
|
|
@@ -6238,12 +6281,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6238
6281
|
result200 = JSON.parse(resultData200);
|
|
6239
6282
|
return Promise.resolve(result200);
|
|
6240
6283
|
}
|
|
6241
|
-
else if (status ===
|
|
6284
|
+
else if (status === 401) {
|
|
6285
|
+
const _responseText = response.data;
|
|
6286
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6287
|
+
}
|
|
6288
|
+
else if (status === 403) {
|
|
6242
6289
|
const _responseText = response.data;
|
|
6243
|
-
|
|
6244
|
-
let resultData500 = _responseText;
|
|
6245
|
-
result500 = JSON.parse(resultData500);
|
|
6246
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6290
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6247
6291
|
}
|
|
6248
6292
|
else if (status !== 200 && status !== 204) {
|
|
6249
6293
|
const _responseText = response.data;
|
|
@@ -6304,12 +6348,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6304
6348
|
result200 = JSON.parse(resultData200);
|
|
6305
6349
|
return Promise.resolve(result200);
|
|
6306
6350
|
}
|
|
6307
|
-
else if (status ===
|
|
6351
|
+
else if (status === 401) {
|
|
6352
|
+
const _responseText = response.data;
|
|
6353
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6354
|
+
}
|
|
6355
|
+
else if (status === 403) {
|
|
6308
6356
|
const _responseText = response.data;
|
|
6309
|
-
|
|
6310
|
-
let resultData500 = _responseText;
|
|
6311
|
-
result500 = JSON.parse(resultData500);
|
|
6312
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6357
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6313
6358
|
}
|
|
6314
6359
|
else if (status !== 200 && status !== 204) {
|
|
6315
6360
|
const _responseText = response.data;
|
|
@@ -6370,12 +6415,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6370
6415
|
result200 = JSON.parse(resultData200);
|
|
6371
6416
|
return Promise.resolve(result200);
|
|
6372
6417
|
}
|
|
6373
|
-
else if (status ===
|
|
6418
|
+
else if (status === 401) {
|
|
6419
|
+
const _responseText = response.data;
|
|
6420
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6421
|
+
}
|
|
6422
|
+
else if (status === 403) {
|
|
6374
6423
|
const _responseText = response.data;
|
|
6375
|
-
|
|
6376
|
-
let resultData500 = _responseText;
|
|
6377
|
-
result500 = JSON.parse(resultData500);
|
|
6378
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6424
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6379
6425
|
}
|
|
6380
6426
|
else if (status !== 200 && status !== 204) {
|
|
6381
6427
|
const _responseText = response.data;
|
|
@@ -6436,12 +6482,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6436
6482
|
result200 = JSON.parse(resultData200);
|
|
6437
6483
|
return Promise.resolve(result200);
|
|
6438
6484
|
}
|
|
6439
|
-
else if (status ===
|
|
6485
|
+
else if (status === 401) {
|
|
6486
|
+
const _responseText = response.data;
|
|
6487
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6488
|
+
}
|
|
6489
|
+
else if (status === 403) {
|
|
6440
6490
|
const _responseText = response.data;
|
|
6441
|
-
|
|
6442
|
-
let resultData500 = _responseText;
|
|
6443
|
-
result500 = JSON.parse(resultData500);
|
|
6444
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6491
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6445
6492
|
}
|
|
6446
6493
|
else if (status !== 200 && status !== 204) {
|
|
6447
6494
|
const _responseText = response.data;
|
|
@@ -6451,28 +6498,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6451
6498
|
}
|
|
6452
6499
|
}
|
|
6453
6500
|
exports.DesignAtomsViewerApiClient = DesignAtomsViewerApiClient;
|
|
6454
|
-
var ColorSpace;
|
|
6455
|
-
(function (ColorSpace) {
|
|
6456
|
-
ColorSpace["Rgb"] = "Rgb";
|
|
6457
|
-
ColorSpace["Cmyk"] = "Cmyk";
|
|
6458
|
-
ColorSpace["Grayscale"] = "Grayscale";
|
|
6459
|
-
ColorSpace["Lab"] = "Lab";
|
|
6460
|
-
ColorSpace["Spot"] = "Spot";
|
|
6461
|
-
})(ColorSpace = exports.ColorSpace || (exports.ColorSpace = {}));
|
|
6462
|
-
/** Image preview file format. */
|
|
6463
|
-
var ImagePreviewFormat;
|
|
6464
|
-
(function (ImagePreviewFormat) {
|
|
6465
|
-
ImagePreviewFormat["Jpeg"] = "Jpeg";
|
|
6466
|
-
ImagePreviewFormat["Png"] = "Png";
|
|
6467
|
-
})(ImagePreviewFormat = exports.ImagePreviewFormat || (exports.ImagePreviewFormat = {}));
|
|
6468
|
-
/** Image preview fit mode. */
|
|
6469
|
-
var ImagePreviewFitMode;
|
|
6470
|
-
(function (ImagePreviewFitMode) {
|
|
6471
|
-
ImagePreviewFitMode["Fit"] = "Fit";
|
|
6472
|
-
ImagePreviewFitMode["Shrink"] = "Shrink";
|
|
6473
|
-
ImagePreviewFitMode["Resize"] = "Resize";
|
|
6474
|
-
ImagePreviewFitMode["Fill"] = "Fill";
|
|
6475
|
-
})(ImagePreviewFitMode = exports.ImagePreviewFitMode || (exports.ImagePreviewFitMode = {}));
|
|
6476
6501
|
var DesignElementType;
|
|
6477
6502
|
(function (DesignElementType) {
|
|
6478
6503
|
DesignElementType["Product"] = "Product";
|
|
@@ -6482,18 +6507,27 @@ var DesignElementType;
|
|
|
6482
6507
|
DesignElementType["PrintArea"] = "PrintArea";
|
|
6483
6508
|
DesignElementType["Item"] = "Item";
|
|
6484
6509
|
})(DesignElementType = exports.DesignElementType || (exports.DesignElementType = {}));
|
|
6485
|
-
/**
|
|
6486
|
-
var
|
|
6487
|
-
(function (
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6510
|
+
/** Image preview fit mode. */
|
|
6511
|
+
var ImagePreviewFitMode;
|
|
6512
|
+
(function (ImagePreviewFitMode) {
|
|
6513
|
+
ImagePreviewFitMode["Fit"] = "Fit";
|
|
6514
|
+
ImagePreviewFitMode["Shrink"] = "Shrink";
|
|
6515
|
+
ImagePreviewFitMode["Resize"] = "Resize";
|
|
6516
|
+
ImagePreviewFitMode["Fill"] = "Fill";
|
|
6517
|
+
})(ImagePreviewFitMode = exports.ImagePreviewFitMode || (exports.ImagePreviewFitMode = {}));
|
|
6518
|
+
/** Image preview file format. */
|
|
6519
|
+
var ImagePreviewFormat;
|
|
6520
|
+
(function (ImagePreviewFormat) {
|
|
6521
|
+
ImagePreviewFormat["Jpeg"] = "Jpeg";
|
|
6522
|
+
ImagePreviewFormat["Png"] = "Png";
|
|
6523
|
+
})(ImagePreviewFormat = exports.ImagePreviewFormat || (exports.ImagePreviewFormat = {}));
|
|
6524
|
+
/** Item source types. */
|
|
6525
|
+
var ItemSourceType;
|
|
6526
|
+
(function (ItemSourceType) {
|
|
6527
|
+
ItemSourceType["File"] = "File";
|
|
6528
|
+
ItemSourceType["ImageStorage"] = "ImageStorage";
|
|
6529
|
+
ItemSourceType["PrivateImageStorage"] = "PrivateImageStorage";
|
|
6530
|
+
})(ItemSourceType = exports.ItemSourceType || (exports.ItemSourceType = {}));
|
|
6497
6531
|
var ItemType;
|
|
6498
6532
|
(function (ItemType) {
|
|
6499
6533
|
ItemType["Image"] = "Image";
|
|
@@ -6501,13 +6535,24 @@ var ItemType;
|
|
|
6501
6535
|
ItemType["Clipart"] = "Clipart";
|
|
6502
6536
|
ItemType["Group"] = "Group";
|
|
6503
6537
|
})(ItemType = exports.ItemType || (exports.ItemType = {}));
|
|
6504
|
-
/**
|
|
6505
|
-
var
|
|
6506
|
-
(function (
|
|
6507
|
-
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
|
|
6538
|
+
/** Placeholder item content type. */
|
|
6539
|
+
var PlaceholderItemContentType;
|
|
6540
|
+
(function (PlaceholderItemContentType) {
|
|
6541
|
+
PlaceholderItemContentType["Image"] = "Image";
|
|
6542
|
+
})(PlaceholderItemContentType = exports.PlaceholderItemContentType || (exports.PlaceholderItemContentType = {}));
|
|
6543
|
+
/** Available patch type. */
|
|
6544
|
+
var ProductPatchType;
|
|
6545
|
+
(function (ProductPatchType) {
|
|
6546
|
+
ProductPatchType["Undefined"] = "Undefined";
|
|
6547
|
+
ProductPatchType["ReplaceImageItemFile"] = "ReplaceImageItemFile";
|
|
6548
|
+
ProductPatchType["ReplacePlaceholderItemContent"] = "ReplacePlaceholderItemContent";
|
|
6549
|
+
})(ProductPatchType = exports.ProductPatchType || (exports.ProductPatchType = {}));
|
|
6550
|
+
/** Product preview file format. */
|
|
6551
|
+
var ProductPreviewFormat;
|
|
6552
|
+
(function (ProductPreviewFormat) {
|
|
6553
|
+
ProductPreviewFormat["Jpeg"] = "Jpeg";
|
|
6554
|
+
ProductPreviewFormat["Png"] = "Png";
|
|
6555
|
+
})(ProductPreviewFormat = exports.ProductPreviewFormat || (exports.ProductPreviewFormat = {}));
|
|
6511
6556
|
var ProductProofFormat;
|
|
6512
6557
|
(function (ProductProofFormat) {
|
|
6513
6558
|
ProductProofFormat["Jpeg"] = "Jpeg";
|
|
@@ -6529,12 +6574,6 @@ var ProductProofInterpolationMode;
|
|
|
6529
6574
|
ProductProofInterpolationMode["Anisotropic9"] = "Anisotropic9";
|
|
6530
6575
|
ProductProofInterpolationMode["Lanczos3"] = "Lanczos3";
|
|
6531
6576
|
})(ProductProofInterpolationMode = exports.ProductProofInterpolationMode || (exports.ProductProofInterpolationMode = {}));
|
|
6532
|
-
/** Product preview file format. */
|
|
6533
|
-
var ProductPreviewFormat;
|
|
6534
|
-
(function (ProductPreviewFormat) {
|
|
6535
|
-
ProductPreviewFormat["Jpeg"] = "Jpeg";
|
|
6536
|
-
ProductPreviewFormat["Png"] = "Png";
|
|
6537
|
-
})(ProductPreviewFormat = exports.ProductPreviewFormat || (exports.ProductPreviewFormat = {}));
|
|
6538
6577
|
class ApiException extends Error {
|
|
6539
6578
|
message;
|
|
6540
6579
|
status;
|