@aurigma/axios-design-atoms-api-client 2.61.1 → 2.62.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/design-atoms-api-client.d.ts +514 -531
- package/dist/cjs/design-atoms-api-client.js +765 -710
- package/dist/cjs/design-atoms-api-client.js.map +1 -1
- package/dist/esm/design-atoms-api-client.d.ts +514 -531
- package/dist/esm/design-atoms-api-client.js +764 -709
- package/dist/esm/design-atoms-api-client.js.map +1 -1
- package/package.json +1 -1
|
@@ -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) {
|
|
690
|
+
const _responseText = response.data;
|
|
691
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
692
|
+
}
|
|
693
|
+
else if (status === 403) {
|
|
695
694
|
const _responseText = response.data;
|
|
696
|
-
|
|
697
|
-
let resultData500 = _responseText;
|
|
698
|
-
result500 = JSON.parse(resultData500);
|
|
699
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
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) {
|
|
1290
|
+
const _responseText = response.data;
|
|
1291
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1292
|
+
}
|
|
1293
|
+
else if (status === 403) {
|
|
1213
1294
|
const _responseText = response.data;
|
|
1214
|
-
|
|
1215
|
-
let resultData500 = _responseText;
|
|
1216
|
-
result500 = JSON.parse(resultData500);
|
|
1217
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
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) {
|
|
1432
|
+
const _responseText = response.data;
|
|
1433
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1434
|
+
}
|
|
1435
|
+
else if (status === 403) {
|
|
1351
1436
|
const _responseText = response.data;
|
|
1352
|
-
|
|
1353
|
-
let resultData500 = _responseText;
|
|
1354
|
-
result500 = JSON.parse(resultData500);
|
|
1355
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
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) {
|
|
1562
|
+
const _responseText = response.data;
|
|
1563
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1564
|
+
}
|
|
1565
|
+
else if (status === 403) {
|
|
1479
1566
|
const _responseText = response.data;
|
|
1480
|
-
|
|
1481
|
-
let resultData500 = _responseText;
|
|
1482
|
-
result500 = JSON.parse(resultData500);
|
|
1483
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
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.");
|
|
@@ -2836,17 +2885,25 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2836
2885
|
throw new Error("The parameter 'patchType' cannot be null.");
|
|
2837
2886
|
else
|
|
2838
2887
|
content_.append("patchType", patchType.toString());
|
|
2839
|
-
if (replaceImageItemFileInfo_itemName
|
|
2888
|
+
if (replaceImageItemFileInfo_itemName === null || replaceImageItemFileInfo_itemName === undefined)
|
|
2889
|
+
throw new Error("The parameter 'replaceImageItemFileInfo_itemName' cannot be null.");
|
|
2890
|
+
else
|
|
2840
2891
|
content_.append("replaceImageItemFileInfo.itemName", replaceImageItemFileInfo_itemName.toString());
|
|
2841
|
-
if (replaceImageItemFileInfo_sourceFile
|
|
2892
|
+
if (replaceImageItemFileInfo_sourceFile === null || replaceImageItemFileInfo_sourceFile === undefined)
|
|
2893
|
+
throw new Error("The parameter 'replaceImageItemFileInfo_sourceFile' cannot be null.");
|
|
2894
|
+
else
|
|
2842
2895
|
content_.append("replaceImageItemFileInfo.sourceFile", replaceImageItemFileInfo_sourceFile.data, replaceImageItemFileInfo_sourceFile.fileName ? replaceImageItemFileInfo_sourceFile.fileName : "replaceImageItemFileInfo.sourceFile");
|
|
2843
|
-
if (replacePlaceholderItemContentInfo_placeholderItemName
|
|
2896
|
+
if (replacePlaceholderItemContentInfo_placeholderItemName === null || replacePlaceholderItemContentInfo_placeholderItemName === undefined)
|
|
2897
|
+
throw new Error("The parameter 'replacePlaceholderItemContentInfo_placeholderItemName' cannot be null.");
|
|
2898
|
+
else
|
|
2844
2899
|
content_.append("replacePlaceholderItemContentInfo.placeholderItemName", replacePlaceholderItemContentInfo_placeholderItemName.toString());
|
|
2845
2900
|
if (replacePlaceholderItemContentInfo_newContentType === null || replacePlaceholderItemContentInfo_newContentType === undefined)
|
|
2846
2901
|
throw new Error("The parameter 'replacePlaceholderItemContentInfo_newContentType' cannot be null.");
|
|
2847
2902
|
else
|
|
2848
2903
|
content_.append("replacePlaceholderItemContentInfo.newContentType", replacePlaceholderItemContentInfo_newContentType.toString());
|
|
2849
|
-
if (replacePlaceholderItemContentInfo_sourceFile
|
|
2904
|
+
if (replacePlaceholderItemContentInfo_sourceFile === null || replacePlaceholderItemContentInfo_sourceFile === undefined)
|
|
2905
|
+
throw new Error("The parameter 'replacePlaceholderItemContentInfo_sourceFile' cannot be null.");
|
|
2906
|
+
else
|
|
2850
2907
|
content_.append("replacePlaceholderItemContentInfo.sourceFile", replacePlaceholderItemContentInfo_sourceFile.data, replacePlaceholderItemContentInfo_sourceFile.fileName ? replacePlaceholderItemContentInfo_sourceFile.fileName : "replacePlaceholderItemContentInfo.sourceFile");
|
|
2851
2908
|
let options_ = {
|
|
2852
2909
|
data: content_,
|
|
@@ -2897,13 +2954,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2897
2954
|
const _responseText = response.data;
|
|
2898
2955
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2899
2956
|
}
|
|
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
2957
|
else if (status !== 200 && status !== 204) {
|
|
2908
2958
|
const _responseText = response.data;
|
|
2909
2959
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2922,7 +2972,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2922
2972
|
if (id === undefined || id === null)
|
|
2923
2973
|
throw new Error("The parameter 'id' must be defined.");
|
|
2924
2974
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2925
|
-
if (privateStorageOwner
|
|
2975
|
+
if (privateStorageOwner === null)
|
|
2976
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
2977
|
+
else if (privateStorageOwner !== undefined)
|
|
2926
2978
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2927
2979
|
if (tenantId === null)
|
|
2928
2980
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2982,13 +3034,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2982
3034
|
const _responseText = response.data;
|
|
2983
3035
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
2984
3036
|
}
|
|
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
3037
|
else if (status !== 200 && status !== 204) {
|
|
2993
3038
|
const _responseText = response.data;
|
|
2994
3039
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -2996,9 +3041,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2996
3041
|
return Promise.resolve(null);
|
|
2997
3042
|
}
|
|
2998
3043
|
/**
|
|
2999
|
-
* Loads data schema from design file taken from storage
|
|
3000
|
-
* @param id Design identifier
|
|
3001
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3044
|
+
* Loads data schema from design file taken from storage.
|
|
3045
|
+
* @param id Design identifier.
|
|
3046
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3002
3047
|
* @param tenantId (optional) Tenant identifier
|
|
3003
3048
|
* @return Success
|
|
3004
3049
|
*/
|
|
@@ -3007,7 +3052,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3007
3052
|
if (id === undefined || id === null)
|
|
3008
3053
|
throw new Error("The parameter 'id' must be defined.");
|
|
3009
3054
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3010
|
-
if (privateStorageOwner
|
|
3055
|
+
if (privateStorageOwner === null)
|
|
3056
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3057
|
+
else if (privateStorageOwner !== undefined)
|
|
3011
3058
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3012
3059
|
if (tenantId === null)
|
|
3013
3060
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3074,13 +3121,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3074
3121
|
const _responseText = response.data;
|
|
3075
3122
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3076
3123
|
}
|
|
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
3124
|
else if (status !== 200 && status !== 204) {
|
|
3085
3125
|
const _responseText = response.data;
|
|
3086
3126
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3088,7 +3128,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3088
3128
|
return Promise.resolve(null);
|
|
3089
3129
|
}
|
|
3090
3130
|
/**
|
|
3091
|
-
* Loads toggle set from design file taken from storage.
|
|
3131
|
+
* Loads a toggle set from design file taken from storage.
|
|
3092
3132
|
* @param id Design identifier.
|
|
3093
3133
|
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3094
3134
|
* @param tenantId (optional) Tenant identifier
|
|
@@ -3099,7 +3139,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3099
3139
|
if (id === undefined || id === null)
|
|
3100
3140
|
throw new Error("The parameter 'id' must be defined.");
|
|
3101
3141
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3102
|
-
if (privateStorageOwner
|
|
3142
|
+
if (privateStorageOwner === null)
|
|
3143
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3144
|
+
else if (privateStorageOwner !== undefined)
|
|
3103
3145
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3104
3146
|
if (tenantId === null)
|
|
3105
3147
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3166,13 +3208,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3166
3208
|
const _responseText = response.data;
|
|
3167
3209
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3168
3210
|
}
|
|
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
3211
|
else if (status !== 200 && status !== 204) {
|
|
3177
3212
|
const _responseText = response.data;
|
|
3178
3213
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3180,9 +3215,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3180
3215
|
return Promise.resolve(null);
|
|
3181
3216
|
}
|
|
3182
3217
|
/**
|
|
3183
|
-
* Gets variable items information for design file taken from storage
|
|
3184
|
-
* @param id Design identifier
|
|
3185
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3218
|
+
* Gets variable items information for design file taken from storage.
|
|
3219
|
+
* @param id Design identifier.
|
|
3220
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3186
3221
|
* @param tenantId (optional) Tenant identifier
|
|
3187
3222
|
* @return Success
|
|
3188
3223
|
*/
|
|
@@ -3191,7 +3226,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3191
3226
|
if (id === undefined || id === null)
|
|
3192
3227
|
throw new Error("The parameter 'id' must be defined.");
|
|
3193
3228
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3194
|
-
if (privateStorageOwner
|
|
3229
|
+
if (privateStorageOwner === null)
|
|
3230
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3231
|
+
else if (privateStorageOwner !== undefined)
|
|
3195
3232
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3196
3233
|
if (tenantId === null)
|
|
3197
3234
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3251,13 +3288,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3251
3288
|
const _responseText = response.data;
|
|
3252
3289
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3253
3290
|
}
|
|
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
3291
|
else if (status !== 200 && status !== 204) {
|
|
3262
3292
|
const _responseText = response.data;
|
|
3263
3293
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3265,11 +3295,11 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3265
3295
|
return Promise.resolve(null);
|
|
3266
3296
|
}
|
|
3267
3297
|
/**
|
|
3268
|
-
* Sets variable items values for design file taken from storage
|
|
3269
|
-
* @param id Design identifier
|
|
3270
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3298
|
+
* Sets variable items values for design file taken from storage.
|
|
3299
|
+
* @param id Design identifier.
|
|
3300
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3271
3301
|
* @param tenantId (optional) Tenant identifier
|
|
3272
|
-
* @param body (optional) Design variable values
|
|
3302
|
+
* @param body (optional) Design variable values.
|
|
3273
3303
|
* @return Success
|
|
3274
3304
|
*/
|
|
3275
3305
|
setVariables(id, privateStorageOwner, tenantId, body, cancelToken) {
|
|
@@ -3277,7 +3307,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3277
3307
|
if (id === undefined || id === null)
|
|
3278
3308
|
throw new Error("The parameter 'id' must be defined.");
|
|
3279
3309
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3280
|
-
if (privateStorageOwner
|
|
3310
|
+
if (privateStorageOwner === null)
|
|
3311
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3312
|
+
else if (privateStorageOwner !== undefined)
|
|
3281
3313
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3282
3314
|
if (tenantId === null)
|
|
3283
3315
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3343,13 +3375,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3343
3375
|
const _responseText = response.data;
|
|
3344
3376
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3345
3377
|
}
|
|
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
3378
|
else if (status !== 200 && status !== 204) {
|
|
3354
3379
|
const _responseText = response.data;
|
|
3355
3380
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3357,9 +3382,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3357
3382
|
return Promise.resolve(null);
|
|
3358
3383
|
}
|
|
3359
3384
|
/**
|
|
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
|
|
3385
|
+
* Loads variable data printing information from design file taken from storage.
|
|
3386
|
+
* @param id Design identifier.
|
|
3387
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3363
3388
|
* @param tenantId (optional) Tenant identifier
|
|
3364
3389
|
* @return Success
|
|
3365
3390
|
*/
|
|
@@ -3368,7 +3393,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3368
3393
|
if (id === undefined || id === null)
|
|
3369
3394
|
throw new Error("The parameter 'id' must be defined.");
|
|
3370
3395
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3371
|
-
if (privateStorageOwner
|
|
3396
|
+
if (privateStorageOwner === null)
|
|
3397
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3398
|
+
else if (privateStorageOwner !== undefined)
|
|
3372
3399
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3373
3400
|
if (tenantId === null)
|
|
3374
3401
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3435,13 +3462,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3435
3462
|
const _responseText = response.data;
|
|
3436
3463
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3437
3464
|
}
|
|
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
3465
|
else if (status !== 200 && status !== 204) {
|
|
3446
3466
|
const _responseText = response.data;
|
|
3447
3467
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3450,10 +3470,10 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3450
3470
|
}
|
|
3451
3471
|
/**
|
|
3452
3472
|
* 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
|
|
3473
|
+
* @param id Design identifier.
|
|
3474
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3455
3475
|
* @param tenantId (optional) Tenant identifier
|
|
3456
|
-
* @param body (optional) Serialized vdp data
|
|
3476
|
+
* @param body (optional) Serialized vdp data.
|
|
3457
3477
|
* @return Success
|
|
3458
3478
|
*/
|
|
3459
3479
|
saveVdpData(id, privateStorageOwner, tenantId, body, cancelToken) {
|
|
@@ -3461,7 +3481,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3461
3481
|
if (id === undefined || id === null)
|
|
3462
3482
|
throw new Error("The parameter 'id' must be defined.");
|
|
3463
3483
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3464
|
-
if (privateStorageOwner
|
|
3484
|
+
if (privateStorageOwner === null)
|
|
3485
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3486
|
+
else if (privateStorageOwner !== undefined)
|
|
3465
3487
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3466
3488
|
if (tenantId === null)
|
|
3467
3489
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3520,13 +3542,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3520
3542
|
const _responseText = response.data;
|
|
3521
3543
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3522
3544
|
}
|
|
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
3545
|
else if (status !== 200 && status !== 204) {
|
|
3531
3546
|
const _responseText = response.data;
|
|
3532
3547
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3535,8 +3550,8 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3535
3550
|
}
|
|
3536
3551
|
/**
|
|
3537
3552
|
* 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
|
|
3553
|
+
* @param id Design identifier.
|
|
3554
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3540
3555
|
* @param tenantId (optional) Tenant identifier
|
|
3541
3556
|
* @return Success
|
|
3542
3557
|
*/
|
|
@@ -3545,7 +3560,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3545
3560
|
if (id === undefined || id === null)
|
|
3546
3561
|
throw new Error("The parameter 'id' must be defined.");
|
|
3547
3562
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3548
|
-
if (privateStorageOwner
|
|
3563
|
+
if (privateStorageOwner === null)
|
|
3564
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3565
|
+
else if (privateStorageOwner !== undefined)
|
|
3549
3566
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3550
3567
|
if (tenantId === null)
|
|
3551
3568
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3600,13 +3617,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3600
3617
|
const _responseText = response.data;
|
|
3601
3618
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3602
3619
|
}
|
|
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
3620
|
else if (status !== 200 && status !== 204) {
|
|
3611
3621
|
const _responseText = response.data;
|
|
3612
3622
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3614,9 +3624,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3614
3624
|
return Promise.resolve(null);
|
|
3615
3625
|
}
|
|
3616
3626
|
/**
|
|
3617
|
-
* Loads product (design model) from resource file taken from storage
|
|
3618
|
-
* @param id Resource identifier
|
|
3619
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
3627
|
+
* Loads product (design model) from resource file taken from storage.
|
|
3628
|
+
* @param id Resource identifier.
|
|
3629
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3620
3630
|
* @param tenantId (optional) Tenant identifier
|
|
3621
3631
|
* @return Success
|
|
3622
3632
|
*/
|
|
@@ -3625,7 +3635,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3625
3635
|
if (id === undefined || id === null)
|
|
3626
3636
|
throw new Error("The parameter 'id' must be defined.");
|
|
3627
3637
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3628
|
-
if (privateStorageOwner
|
|
3638
|
+
if (privateStorageOwner === null)
|
|
3639
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
3640
|
+
else if (privateStorageOwner !== undefined)
|
|
3629
3641
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3630
3642
|
if (tenantId === null)
|
|
3631
3643
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3692,13 +3704,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3692
3704
|
const _responseText = response.data;
|
|
3693
3705
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3694
3706
|
}
|
|
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
3707
|
else if (status !== 200 && status !== 204) {
|
|
3703
3708
|
const _responseText = response.data;
|
|
3704
3709
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3706,9 +3711,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3706
3711
|
return Promise.resolve(null);
|
|
3707
3712
|
}
|
|
3708
3713
|
/**
|
|
3709
|
-
* Converts colors
|
|
3714
|
+
* Converts colors.
|
|
3710
3715
|
* @param tenantId (optional) Tenant identifier
|
|
3711
|
-
* @param body (optional) Convert colors operation parameters
|
|
3716
|
+
* @param body (optional) Convert colors operation parameters.
|
|
3712
3717
|
* @return Success
|
|
3713
3718
|
*/
|
|
3714
3719
|
convertColors(tenantId, body, cancelToken) {
|
|
@@ -3774,13 +3779,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3774
3779
|
const _responseText = response.data;
|
|
3775
3780
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3776
3781
|
}
|
|
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
3782
|
else if (status !== 200 && status !== 204) {
|
|
3785
3783
|
const _responseText = response.data;
|
|
3786
3784
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3788,8 +3786,8 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3788
3786
|
return Promise.resolve(null);
|
|
3789
3787
|
}
|
|
3790
3788
|
/**
|
|
3791
|
-
* Creates product item
|
|
3792
|
-
* @param itemType (optional) Desired item type
|
|
3789
|
+
* Creates product item.
|
|
3790
|
+
* @param itemType (optional) Desired item type.
|
|
3793
3791
|
* @param tenantId (optional) Tenant identifier
|
|
3794
3792
|
* @param sourceType (optional)
|
|
3795
3793
|
* @param sourceId (optional)
|
|
@@ -3799,7 +3797,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3799
3797
|
*/
|
|
3800
3798
|
createItem(itemType, tenantId, sourceType, sourceId, sourceOwnerId, sourceFile, cancelToken) {
|
|
3801
3799
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/model/items?";
|
|
3802
|
-
if (itemType
|
|
3800
|
+
if (itemType === null)
|
|
3801
|
+
throw new Error("The parameter 'itemType' cannot be null.");
|
|
3802
|
+
else if (itemType !== undefined)
|
|
3803
3803
|
url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
|
|
3804
3804
|
if (tenantId === null)
|
|
3805
3805
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -3807,13 +3807,21 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3807
3807
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
3808
3808
|
url_ = url_.replace(/[?&]$/, "");
|
|
3809
3809
|
const content_ = new FormData();
|
|
3810
|
-
if (sourceType
|
|
3810
|
+
if (sourceType === null || sourceType === undefined)
|
|
3811
|
+
throw new Error("The parameter 'sourceType' cannot be null.");
|
|
3812
|
+
else
|
|
3811
3813
|
content_.append("sourceType", sourceType.toString());
|
|
3812
|
-
if (sourceId
|
|
3814
|
+
if (sourceId === null || sourceId === undefined)
|
|
3815
|
+
throw new Error("The parameter 'sourceId' cannot be null.");
|
|
3816
|
+
else
|
|
3813
3817
|
content_.append("sourceId", sourceId.toString());
|
|
3814
|
-
if (sourceOwnerId
|
|
3818
|
+
if (sourceOwnerId === null || sourceOwnerId === undefined)
|
|
3819
|
+
throw new Error("The parameter 'sourceOwnerId' cannot be null.");
|
|
3820
|
+
else
|
|
3815
3821
|
content_.append("sourceOwnerId", sourceOwnerId.toString());
|
|
3816
|
-
if (sourceFile
|
|
3822
|
+
if (sourceFile === null || sourceFile === undefined)
|
|
3823
|
+
throw new Error("The parameter 'sourceFile' cannot be null.");
|
|
3824
|
+
else
|
|
3817
3825
|
content_.append("sourceFile", sourceFile.data, sourceFile.fileName ? sourceFile.fileName : "sourceFile");
|
|
3818
3826
|
let options_ = {
|
|
3819
3827
|
data: content_,
|
|
@@ -3869,13 +3877,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3869
3877
|
const _responseText = response.data;
|
|
3870
3878
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3871
3879
|
}
|
|
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
3880
|
else if (status !== 200 && status !== 204) {
|
|
3880
3881
|
const _responseText = response.data;
|
|
3881
3882
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -3944,13 +3945,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
3944
3945
|
const _responseText = response.data;
|
|
3945
3946
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
3946
3947
|
}
|
|
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
3948
|
else if (status !== 200 && status !== 204) {
|
|
3955
3949
|
const _responseText = response.data;
|
|
3956
3950
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4019,13 +4013,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4019
4013
|
const _responseText = response.data;
|
|
4020
4014
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4021
4015
|
}
|
|
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
4016
|
else if (status !== 200 && status !== 204) {
|
|
4030
4017
|
const _responseText = response.data;
|
|
4031
4018
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4034,14 +4021,17 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4034
4021
|
}
|
|
4035
4022
|
/**
|
|
4036
4023
|
* 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
|
|
4024
|
+
* @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
|
|
4025
|
+
(default value is 'false').
|
|
4038
4026
|
* @param tenantId (optional) Tenant identifier
|
|
4039
4027
|
* @param body (optional) Preview parameters.
|
|
4040
4028
|
* @return Success
|
|
4041
4029
|
*/
|
|
4042
4030
|
renderProduct(attachment, tenantId, body, cancelToken) {
|
|
4043
4031
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/model/render-proof?";
|
|
4044
|
-
if (attachment
|
|
4032
|
+
if (attachment === null)
|
|
4033
|
+
throw new Error("The parameter 'attachment' cannot be null.");
|
|
4034
|
+
else if (attachment !== undefined)
|
|
4045
4035
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
4046
4036
|
if (tenantId === null)
|
|
4047
4037
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4097,13 +4087,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4097
4087
|
const _responseText = response.data;
|
|
4098
4088
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4099
4089
|
}
|
|
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
4090
|
else if (status !== 200 && status !== 204) {
|
|
4108
4091
|
const _responseText = response.data;
|
|
4109
4092
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4120,7 +4103,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4120
4103
|
*/
|
|
4121
4104
|
renderDesignPreview(attachment, tenantId, body, cancelToken) {
|
|
4122
4105
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/render-preview?";
|
|
4123
|
-
if (attachment
|
|
4106
|
+
if (attachment === null)
|
|
4107
|
+
throw new Error("The parameter 'attachment' cannot be null.");
|
|
4108
|
+
else if (attachment !== undefined)
|
|
4124
4109
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
4125
4110
|
if (tenantId === null)
|
|
4126
4111
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4176,13 +4161,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4176
4161
|
const _responseText = response.data;
|
|
4177
4162
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4178
4163
|
}
|
|
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
4164
|
else if (status !== 200 && status !== 204) {
|
|
4187
4165
|
const _responseText = response.data;
|
|
4188
4166
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4251,13 +4229,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4251
4229
|
const _responseText = response.data;
|
|
4252
4230
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4253
4231
|
}
|
|
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
4232
|
else if (status !== 200 && status !== 204) {
|
|
4262
4233
|
const _responseText = response.data;
|
|
4263
4234
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4274,7 +4245,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4274
4245
|
*/
|
|
4275
4246
|
renderDesignProof(attachment, tenantId, body, cancelToken) {
|
|
4276
4247
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/render-proof?";
|
|
4277
|
-
if (attachment
|
|
4248
|
+
if (attachment === null)
|
|
4249
|
+
throw new Error("The parameter 'attachment' cannot be null.");
|
|
4250
|
+
else if (attachment !== undefined)
|
|
4278
4251
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
4279
4252
|
if (tenantId === null)
|
|
4280
4253
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4330,13 +4303,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4330
4303
|
const _responseText = response.data;
|
|
4331
4304
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4332
4305
|
}
|
|
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
4306
|
else if (status !== 200 && status !== 204) {
|
|
4341
4307
|
const _responseText = response.data;
|
|
4342
4308
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4405,13 +4371,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4405
4371
|
const _responseText = response.data;
|
|
4406
4372
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4407
4373
|
}
|
|
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
4374
|
else if (status !== 200 && status !== 204) {
|
|
4416
4375
|
const _responseText = response.data;
|
|
4417
4376
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4420,20 +4379,26 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4420
4379
|
}
|
|
4421
4380
|
/**
|
|
4422
4381
|
* 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
|
|
4382
|
+
* @param designId (optional) Public design identifier.
|
|
4383
|
+
* @param privateDesignId (optional) Private design identifier.
|
|
4384
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4426
4385
|
* @param tenantId (optional) Tenant identifier
|
|
4427
|
-
* @return
|
|
4386
|
+
* @return Created
|
|
4428
4387
|
* @deprecated
|
|
4429
4388
|
*/
|
|
4430
4389
|
createPrivateDesignFromDesign(designId, privateDesignId, privateStorageOwner, tenantId, cancelToken) {
|
|
4431
4390
|
let url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-design?";
|
|
4432
|
-
if (designId
|
|
4391
|
+
if (designId === null)
|
|
4392
|
+
throw new Error("The parameter 'designId' cannot be null.");
|
|
4393
|
+
else if (designId !== undefined)
|
|
4433
4394
|
url_ += "designId=" + encodeURIComponent("" + designId) + "&";
|
|
4434
|
-
if (privateDesignId
|
|
4395
|
+
if (privateDesignId === null)
|
|
4396
|
+
throw new Error("The parameter 'privateDesignId' cannot be null.");
|
|
4397
|
+
else if (privateDesignId !== undefined)
|
|
4435
4398
|
url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
|
|
4436
|
-
if (privateStorageOwner
|
|
4399
|
+
if (privateStorageOwner === null)
|
|
4400
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4401
|
+
else if (privateStorageOwner !== undefined)
|
|
4437
4402
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4438
4403
|
if (tenantId === null)
|
|
4439
4404
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4481,13 +4446,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4481
4446
|
const _responseText = response.data;
|
|
4482
4447
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4483
4448
|
}
|
|
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
4449
|
else if (status !== 200 && status !== 204) {
|
|
4492
4450
|
const _responseText = response.data;
|
|
4493
4451
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4496,20 +4454,26 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4496
4454
|
}
|
|
4497
4455
|
/**
|
|
4498
4456
|
* 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
|
|
4457
|
+
* @param resourceId (optional) Resource identifier.
|
|
4458
|
+
* @param privateDesignId (optional) Private design identifier.
|
|
4459
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4460
|
+
* @param tenantId (optional) Tenant identifier.
|
|
4461
|
+
* @return Created
|
|
4504
4462
|
* @deprecated
|
|
4505
4463
|
*/
|
|
4506
4464
|
createPrivateDesignFromResource(resourceId, privateDesignId, privateStorageOwner, tenantId, cancelToken) {
|
|
4507
4465
|
let url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-resource?";
|
|
4508
|
-
if (resourceId
|
|
4466
|
+
if (resourceId === null)
|
|
4467
|
+
throw new Error("The parameter 'resourceId' cannot be null.");
|
|
4468
|
+
else if (resourceId !== undefined)
|
|
4509
4469
|
url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
|
|
4510
|
-
if (privateDesignId
|
|
4470
|
+
if (privateDesignId === null)
|
|
4471
|
+
throw new Error("The parameter 'privateDesignId' cannot be null.");
|
|
4472
|
+
else if (privateDesignId !== undefined)
|
|
4511
4473
|
url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
|
|
4512
|
-
if (privateStorageOwner
|
|
4474
|
+
if (privateStorageOwner === null)
|
|
4475
|
+
throw new Error("The parameter 'privateStorageOwner' cannot be null.");
|
|
4476
|
+
else if (privateStorageOwner !== undefined)
|
|
4513
4477
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4514
4478
|
if (tenantId === null)
|
|
4515
4479
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4557,13 +4521,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
4557
4521
|
const _responseText = response.data;
|
|
4558
4522
|
return throwException("Forbidden", status, _responseText, _headers);
|
|
4559
4523
|
}
|
|
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
4524
|
else if (status !== 200 && status !== 204) {
|
|
4568
4525
|
const _responseText = response.data;
|
|
4569
4526
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -4600,7 +4557,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4600
4557
|
url: url_,
|
|
4601
4558
|
headers: {
|
|
4602
4559
|
"Content-Type": "application/json",
|
|
4603
|
-
"Accept": "
|
|
4560
|
+
"Accept": "text/css"
|
|
4604
4561
|
},
|
|
4605
4562
|
cancelToken
|
|
4606
4563
|
};
|
|
@@ -4634,12 +4591,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4634
4591
|
result200 = JSON.parse(resultData200);
|
|
4635
4592
|
return Promise.resolve(result200);
|
|
4636
4593
|
}
|
|
4637
|
-
else if (status ===
|
|
4594
|
+
else if (status === 401) {
|
|
4638
4595
|
const _responseText = response.data;
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4596
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4597
|
+
}
|
|
4598
|
+
else if (status === 403) {
|
|
4599
|
+
const _responseText = response.data;
|
|
4600
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4643
4601
|
}
|
|
4644
4602
|
else if (status !== 200 && status !== 204) {
|
|
4645
4603
|
const _responseText = response.data;
|
|
@@ -4706,12 +4664,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4706
4664
|
result404 = JSON.parse(resultData404);
|
|
4707
4665
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
4708
4666
|
}
|
|
4709
|
-
else if (status ===
|
|
4667
|
+
else if (status === 401) {
|
|
4668
|
+
const _responseText = response.data;
|
|
4669
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4670
|
+
}
|
|
4671
|
+
else if (status === 403) {
|
|
4710
4672
|
const _responseText = response.data;
|
|
4711
|
-
|
|
4712
|
-
let resultData500 = _responseText;
|
|
4713
|
-
result500 = JSON.parse(resultData500);
|
|
4714
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4673
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4715
4674
|
}
|
|
4716
4675
|
else if (status !== 200 && status !== 204) {
|
|
4717
4676
|
const _responseText = response.data;
|
|
@@ -4772,12 +4731,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4772
4731
|
result200 = JSON.parse(resultData200);
|
|
4773
4732
|
return Promise.resolve(result200);
|
|
4774
4733
|
}
|
|
4775
|
-
else if (status ===
|
|
4734
|
+
else if (status === 401) {
|
|
4776
4735
|
const _responseText = response.data;
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4736
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4737
|
+
}
|
|
4738
|
+
else if (status === 403) {
|
|
4739
|
+
const _responseText = response.data;
|
|
4740
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4781
4741
|
}
|
|
4782
4742
|
else if (status !== 200 && status !== 204) {
|
|
4783
4743
|
const _responseText = response.data;
|
|
@@ -4838,12 +4798,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4838
4798
|
result200 = JSON.parse(resultData200);
|
|
4839
4799
|
return Promise.resolve(result200);
|
|
4840
4800
|
}
|
|
4841
|
-
else if (status ===
|
|
4801
|
+
else if (status === 401) {
|
|
4802
|
+
const _responseText = response.data;
|
|
4803
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4804
|
+
}
|
|
4805
|
+
else if (status === 403) {
|
|
4842
4806
|
const _responseText = response.data;
|
|
4843
|
-
|
|
4844
|
-
let resultData500 = _responseText;
|
|
4845
|
-
result500 = JSON.parse(resultData500);
|
|
4846
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4807
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4847
4808
|
}
|
|
4848
4809
|
else if (status !== 200 && status !== 204) {
|
|
4849
4810
|
const _responseText = response.data;
|
|
@@ -4858,7 +4819,9 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4858
4819
|
*/
|
|
4859
4820
|
getCssFont(fontKey, tenantId, cancelToken) {
|
|
4860
4821
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/GetCssFont?";
|
|
4861
|
-
if (fontKey
|
|
4822
|
+
if (fontKey === null)
|
|
4823
|
+
throw new Error("The parameter 'fontKey' cannot be null.");
|
|
4824
|
+
else if (fontKey !== undefined)
|
|
4862
4825
|
url_ += "fontKey=" + encodeURIComponent("" + fontKey) + "&";
|
|
4863
4826
|
if (tenantId === null)
|
|
4864
4827
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -4910,12 +4873,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4910
4873
|
result404 = JSON.parse(resultData404);
|
|
4911
4874
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
4912
4875
|
}
|
|
4913
|
-
else if (status ===
|
|
4876
|
+
else if (status === 401) {
|
|
4877
|
+
const _responseText = response.data;
|
|
4878
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4879
|
+
}
|
|
4880
|
+
else if (status === 403) {
|
|
4914
4881
|
const _responseText = response.data;
|
|
4915
|
-
|
|
4916
|
-
let resultData500 = _responseText;
|
|
4917
|
-
result500 = JSON.parse(resultData500);
|
|
4918
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4882
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4919
4883
|
}
|
|
4920
4884
|
else if (status !== 200 && status !== 204) {
|
|
4921
4885
|
const _responseText = response.data;
|
|
@@ -4935,7 +4899,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4935
4899
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
4936
4900
|
url_ = url_.replace(/[?&]$/, "");
|
|
4937
4901
|
let options_ = {
|
|
4938
|
-
responseType: "blob",
|
|
4939
4902
|
method: "GET",
|
|
4940
4903
|
url: url_,
|
|
4941
4904
|
headers: {
|
|
@@ -4966,18 +4929,20 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4966
4929
|
}
|
|
4967
4930
|
}
|
|
4968
4931
|
}
|
|
4969
|
-
if (status === 200
|
|
4970
|
-
const
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4932
|
+
if (status === 200) {
|
|
4933
|
+
const _responseText = response.data;
|
|
4934
|
+
let result200 = null;
|
|
4935
|
+
let resultData200 = _responseText;
|
|
4936
|
+
result200 = JSON.parse(resultData200);
|
|
4937
|
+
return Promise.resolve(result200);
|
|
4938
|
+
}
|
|
4939
|
+
else if (status === 401) {
|
|
4940
|
+
const _responseText = response.data;
|
|
4941
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4974
4942
|
}
|
|
4975
|
-
else if (status ===
|
|
4943
|
+
else if (status === 403) {
|
|
4976
4944
|
const _responseText = response.data;
|
|
4977
|
-
|
|
4978
|
-
let resultData500 = _responseText;
|
|
4979
|
-
result500 = JSON.parse(resultData500);
|
|
4980
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4945
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4981
4946
|
}
|
|
4982
4947
|
else if (status !== 200 && status !== 204) {
|
|
4983
4948
|
const _responseText = response.data;
|
|
@@ -5038,12 +5003,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5038
5003
|
result200 = JSON.parse(resultData200);
|
|
5039
5004
|
return Promise.resolve(result200);
|
|
5040
5005
|
}
|
|
5041
|
-
else if (status ===
|
|
5006
|
+
else if (status === 401) {
|
|
5007
|
+
const _responseText = response.data;
|
|
5008
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5009
|
+
}
|
|
5010
|
+
else if (status === 403) {
|
|
5042
5011
|
const _responseText = response.data;
|
|
5043
|
-
|
|
5044
|
-
let resultData500 = _responseText;
|
|
5045
|
-
result500 = JSON.parse(resultData500);
|
|
5046
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5012
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5047
5013
|
}
|
|
5048
5014
|
else if (status !== 200 && status !== 204) {
|
|
5049
5015
|
const _responseText = response.data;
|
|
@@ -5104,12 +5070,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5104
5070
|
result200 = JSON.parse(resultData200);
|
|
5105
5071
|
return Promise.resolve(result200);
|
|
5106
5072
|
}
|
|
5107
|
-
else if (status ===
|
|
5073
|
+
else if (status === 401) {
|
|
5108
5074
|
const _responseText = response.data;
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5075
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5076
|
+
}
|
|
5077
|
+
else if (status === 403) {
|
|
5078
|
+
const _responseText = response.data;
|
|
5079
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5113
5080
|
}
|
|
5114
5081
|
else if (status !== 200 && status !== 204) {
|
|
5115
5082
|
const _responseText = response.data;
|
|
@@ -5170,12 +5137,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5170
5137
|
result200 = JSON.parse(resultData200);
|
|
5171
5138
|
return Promise.resolve(result200);
|
|
5172
5139
|
}
|
|
5173
|
-
else if (status ===
|
|
5140
|
+
else if (status === 401) {
|
|
5141
|
+
const _responseText = response.data;
|
|
5142
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5143
|
+
}
|
|
5144
|
+
else if (status === 403) {
|
|
5174
5145
|
const _responseText = response.data;
|
|
5175
|
-
|
|
5176
|
-
let resultData500 = _responseText;
|
|
5177
|
-
result500 = JSON.parse(resultData500);
|
|
5178
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5146
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5179
5147
|
}
|
|
5180
5148
|
else if (status !== 200 && status !== 204) {
|
|
5181
5149
|
const _responseText = response.data;
|
|
@@ -5207,41 +5175,77 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5207
5175
|
*/
|
|
5208
5176
|
img(f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId, cancelToken) {
|
|
5209
5177
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/img?";
|
|
5210
|
-
if (f
|
|
5178
|
+
if (f === null)
|
|
5179
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
5180
|
+
else if (f !== undefined)
|
|
5211
5181
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
5212
|
-
if (w
|
|
5182
|
+
if (w === null)
|
|
5183
|
+
throw new Error("The parameter 'w' cannot be null.");
|
|
5184
|
+
else if (w !== undefined)
|
|
5213
5185
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
5214
|
-
if (h
|
|
5186
|
+
if (h === null)
|
|
5187
|
+
throw new Error("The parameter 'h' cannot be null.");
|
|
5188
|
+
else if (h !== undefined)
|
|
5215
5189
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
5216
|
-
if (cmyk
|
|
5190
|
+
if (cmyk === null)
|
|
5191
|
+
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
5192
|
+
else if (cmyk !== undefined)
|
|
5217
5193
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
5218
|
-
if (rgb
|
|
5194
|
+
if (rgb === null)
|
|
5195
|
+
throw new Error("The parameter 'rgb' cannot be null.");
|
|
5196
|
+
else if (rgb !== undefined)
|
|
5219
5197
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
5220
|
-
if (grayscale
|
|
5198
|
+
if (grayscale === null)
|
|
5199
|
+
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
5200
|
+
else if (grayscale !== undefined)
|
|
5221
5201
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
5222
|
-
if (target
|
|
5202
|
+
if (target === null)
|
|
5203
|
+
throw new Error("The parameter 'target' cannot be null.");
|
|
5204
|
+
else if (target !== undefined)
|
|
5223
5205
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
5224
|
-
if (sq
|
|
5206
|
+
if (sq === null)
|
|
5207
|
+
throw new Error("The parameter 'sq' cannot be null.");
|
|
5208
|
+
else if (sq !== undefined)
|
|
5225
5209
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
5226
|
-
if (effect
|
|
5210
|
+
if (effect === null)
|
|
5211
|
+
throw new Error("The parameter 'effect' cannot be null.");
|
|
5212
|
+
else if (effect !== undefined)
|
|
5227
5213
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
5228
|
-
if (kp
|
|
5214
|
+
if (kp === null)
|
|
5215
|
+
throw new Error("The parameter 'kp' cannot be null.");
|
|
5216
|
+
else if (kp !== undefined)
|
|
5229
5217
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
5230
|
-
if (color
|
|
5218
|
+
if (color === null)
|
|
5219
|
+
throw new Error("The parameter 'color' cannot be null.");
|
|
5220
|
+
else if (color !== undefined)
|
|
5231
5221
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
5232
|
-
if (obm
|
|
5222
|
+
if (obm === null)
|
|
5223
|
+
throw new Error("The parameter 'obm' cannot be null.");
|
|
5224
|
+
else if (obm !== undefined)
|
|
5233
5225
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
5234
|
-
if (oo
|
|
5226
|
+
if (oo === null)
|
|
5227
|
+
throw new Error("The parameter 'oo' cannot be null.");
|
|
5228
|
+
else if (oo !== undefined)
|
|
5235
5229
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
5236
|
-
if (alphaMask
|
|
5230
|
+
if (alphaMask === null)
|
|
5231
|
+
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
5232
|
+
else if (alphaMask !== undefined)
|
|
5237
5233
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
5238
|
-
if (page
|
|
5234
|
+
if (page === null)
|
|
5235
|
+
throw new Error("The parameter 'page' cannot be null.");
|
|
5236
|
+
else if (page !== undefined)
|
|
5239
5237
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
5240
|
-
if (colorizeColor
|
|
5238
|
+
if (colorizeColor === null)
|
|
5239
|
+
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
5240
|
+
else if (colorizeColor !== undefined)
|
|
5241
5241
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
5242
|
-
if (rw
|
|
5242
|
+
if (rw === null)
|
|
5243
|
+
throw new Error("The parameter 'rw' cannot be null.");
|
|
5244
|
+
else if (rw !== undefined)
|
|
5243
5245
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
5244
|
-
if (rh
|
|
5246
|
+
if (rh === null)
|
|
5247
|
+
throw new Error("The parameter 'rh' cannot be null.");
|
|
5248
|
+
else if (rh !== undefined)
|
|
5245
5249
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
5246
5250
|
if (tenantId === null)
|
|
5247
5251
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5297,12 +5301,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5297
5301
|
result404 = JSON.parse(resultData404);
|
|
5298
5302
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5299
5303
|
}
|
|
5300
|
-
else if (status ===
|
|
5304
|
+
else if (status === 401) {
|
|
5305
|
+
const _responseText = response.data;
|
|
5306
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5307
|
+
}
|
|
5308
|
+
else if (status === 403) {
|
|
5301
5309
|
const _responseText = response.data;
|
|
5302
|
-
|
|
5303
|
-
let resultData500 = _responseText;
|
|
5304
|
-
result500 = JSON.parse(resultData500);
|
|
5305
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5310
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5306
5311
|
}
|
|
5307
5312
|
else if (status !== 200 && status !== 204) {
|
|
5308
5313
|
const _responseText = response.data;
|
|
@@ -5359,12 +5364,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5359
5364
|
result200 = JSON.parse(resultData200);
|
|
5360
5365
|
return Promise.resolve(result200);
|
|
5361
5366
|
}
|
|
5362
|
-
else if (status ===
|
|
5367
|
+
else if (status === 401) {
|
|
5368
|
+
const _responseText = response.data;
|
|
5369
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5370
|
+
}
|
|
5371
|
+
else if (status === 403) {
|
|
5363
5372
|
const _responseText = response.data;
|
|
5364
|
-
|
|
5365
|
-
let resultData500 = _responseText;
|
|
5366
|
-
result500 = JSON.parse(resultData500);
|
|
5367
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5373
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5368
5374
|
}
|
|
5369
5375
|
else if (status !== 200 && status !== 204) {
|
|
5370
5376
|
const _responseText = response.data;
|
|
@@ -5379,7 +5385,9 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5379
5385
|
*/
|
|
5380
5386
|
pth(f, tenantId, cancelToken) {
|
|
5381
5387
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/pth?";
|
|
5382
|
-
if (f
|
|
5388
|
+
if (f === null)
|
|
5389
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
5390
|
+
else if (f !== undefined)
|
|
5383
5391
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
5384
5392
|
if (tenantId === null)
|
|
5385
5393
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5435,12 +5443,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5435
5443
|
result404 = JSON.parse(resultData404);
|
|
5436
5444
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5437
5445
|
}
|
|
5438
|
-
else if (status ===
|
|
5446
|
+
else if (status === 401) {
|
|
5439
5447
|
const _responseText = response.data;
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5448
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5449
|
+
}
|
|
5450
|
+
else if (status === 403) {
|
|
5451
|
+
const _responseText = response.data;
|
|
5452
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5444
5453
|
}
|
|
5445
5454
|
else if (status !== 200 && status !== 204) {
|
|
5446
5455
|
const _responseText = response.data;
|
|
@@ -5455,7 +5464,9 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5455
5464
|
*/
|
|
5456
5465
|
resource(image, tenantId, cancelToken) {
|
|
5457
5466
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/resource?";
|
|
5458
|
-
if (image
|
|
5467
|
+
if (image === null)
|
|
5468
|
+
throw new Error("The parameter 'image' cannot be null.");
|
|
5469
|
+
else if (image !== undefined)
|
|
5459
5470
|
url_ += "image=" + encodeURIComponent("" + image) + "&";
|
|
5460
5471
|
if (tenantId === null)
|
|
5461
5472
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5507,12 +5518,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5507
5518
|
result404 = JSON.parse(resultData404);
|
|
5508
5519
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5509
5520
|
}
|
|
5510
|
-
else if (status ===
|
|
5521
|
+
else if (status === 401) {
|
|
5522
|
+
const _responseText = response.data;
|
|
5523
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5524
|
+
}
|
|
5525
|
+
else if (status === 403) {
|
|
5511
5526
|
const _responseText = response.data;
|
|
5512
|
-
|
|
5513
|
-
let resultData500 = _responseText;
|
|
5514
|
-
result500 = JSON.parse(resultData500);
|
|
5515
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5527
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5516
5528
|
}
|
|
5517
5529
|
else if (status !== 200 && status !== 204) {
|
|
5518
5530
|
const _responseText = response.data;
|
|
@@ -5544,41 +5556,77 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5544
5556
|
*/
|
|
5545
5557
|
svg(f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId, cancelToken) {
|
|
5546
5558
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/svg?";
|
|
5547
|
-
if (f
|
|
5559
|
+
if (f === null)
|
|
5560
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
5561
|
+
else if (f !== undefined)
|
|
5548
5562
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
5549
|
-
if (w
|
|
5563
|
+
if (w === null)
|
|
5564
|
+
throw new Error("The parameter 'w' cannot be null.");
|
|
5565
|
+
else if (w !== undefined)
|
|
5550
5566
|
url_ += "w=" + encodeURIComponent("" + w) + "&";
|
|
5551
|
-
if (h
|
|
5567
|
+
if (h === null)
|
|
5568
|
+
throw new Error("The parameter 'h' cannot be null.");
|
|
5569
|
+
else if (h !== undefined)
|
|
5552
5570
|
url_ += "h=" + encodeURIComponent("" + h) + "&";
|
|
5553
|
-
if (cmyk
|
|
5571
|
+
if (cmyk === null)
|
|
5572
|
+
throw new Error("The parameter 'cmyk' cannot be null.");
|
|
5573
|
+
else if (cmyk !== undefined)
|
|
5554
5574
|
url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
|
|
5555
|
-
if (rgb
|
|
5575
|
+
if (rgb === null)
|
|
5576
|
+
throw new Error("The parameter 'rgb' cannot be null.");
|
|
5577
|
+
else if (rgb !== undefined)
|
|
5556
5578
|
url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
|
|
5557
|
-
if (grayscale
|
|
5579
|
+
if (grayscale === null)
|
|
5580
|
+
throw new Error("The parameter 'grayscale' cannot be null.");
|
|
5581
|
+
else if (grayscale !== undefined)
|
|
5558
5582
|
url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
|
|
5559
|
-
if (target
|
|
5583
|
+
if (target === null)
|
|
5584
|
+
throw new Error("The parameter 'target' cannot be null.");
|
|
5585
|
+
else if (target !== undefined)
|
|
5560
5586
|
url_ += "target=" + encodeURIComponent("" + target) + "&";
|
|
5561
|
-
if (sq
|
|
5587
|
+
if (sq === null)
|
|
5588
|
+
throw new Error("The parameter 'sq' cannot be null.");
|
|
5589
|
+
else if (sq !== undefined)
|
|
5562
5590
|
url_ += "sq=" + encodeURIComponent("" + sq) + "&";
|
|
5563
|
-
if (effect
|
|
5591
|
+
if (effect === null)
|
|
5592
|
+
throw new Error("The parameter 'effect' cannot be null.");
|
|
5593
|
+
else if (effect !== undefined)
|
|
5564
5594
|
url_ += "effect=" + encodeURIComponent("" + effect) + "&";
|
|
5565
|
-
if (kp
|
|
5595
|
+
if (kp === null)
|
|
5596
|
+
throw new Error("The parameter 'kp' cannot be null.");
|
|
5597
|
+
else if (kp !== undefined)
|
|
5566
5598
|
url_ += "kp=" + encodeURIComponent("" + kp) + "&";
|
|
5567
|
-
if (color
|
|
5599
|
+
if (color === null)
|
|
5600
|
+
throw new Error("The parameter 'color' cannot be null.");
|
|
5601
|
+
else if (color !== undefined)
|
|
5568
5602
|
url_ += "color=" + encodeURIComponent("" + color) + "&";
|
|
5569
|
-
if (obm
|
|
5603
|
+
if (obm === null)
|
|
5604
|
+
throw new Error("The parameter 'obm' cannot be null.");
|
|
5605
|
+
else if (obm !== undefined)
|
|
5570
5606
|
url_ += "obm=" + encodeURIComponent("" + obm) + "&";
|
|
5571
|
-
if (oo
|
|
5607
|
+
if (oo === null)
|
|
5608
|
+
throw new Error("The parameter 'oo' cannot be null.");
|
|
5609
|
+
else if (oo !== undefined)
|
|
5572
5610
|
url_ += "oo=" + encodeURIComponent("" + oo) + "&";
|
|
5573
|
-
if (alphaMask
|
|
5611
|
+
if (alphaMask === null)
|
|
5612
|
+
throw new Error("The parameter 'alphaMask' cannot be null.");
|
|
5613
|
+
else if (alphaMask !== undefined)
|
|
5574
5614
|
url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
|
|
5575
|
-
if (page
|
|
5615
|
+
if (page === null)
|
|
5616
|
+
throw new Error("The parameter 'page' cannot be null.");
|
|
5617
|
+
else if (page !== undefined)
|
|
5576
5618
|
url_ += "page=" + encodeURIComponent("" + page) + "&";
|
|
5577
|
-
if (colorizeColor
|
|
5619
|
+
if (colorizeColor === null)
|
|
5620
|
+
throw new Error("The parameter 'colorizeColor' cannot be null.");
|
|
5621
|
+
else if (colorizeColor !== undefined)
|
|
5578
5622
|
url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
|
|
5579
|
-
if (rw
|
|
5623
|
+
if (rw === null)
|
|
5624
|
+
throw new Error("The parameter 'rw' cannot be null.");
|
|
5625
|
+
else if (rw !== undefined)
|
|
5580
5626
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
5581
|
-
if (rh
|
|
5627
|
+
if (rh === null)
|
|
5628
|
+
throw new Error("The parameter 'rh' cannot be null.");
|
|
5629
|
+
else if (rh !== undefined)
|
|
5582
5630
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
5583
5631
|
if (tenantId === null)
|
|
5584
5632
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5634,12 +5682,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5634
5682
|
result404 = JSON.parse(resultData404);
|
|
5635
5683
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5636
5684
|
}
|
|
5637
|
-
else if (status ===
|
|
5685
|
+
else if (status === 401) {
|
|
5686
|
+
const _responseText = response.data;
|
|
5687
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5688
|
+
}
|
|
5689
|
+
else if (status === 403) {
|
|
5638
5690
|
const _responseText = response.data;
|
|
5639
|
-
|
|
5640
|
-
let resultData500 = _responseText;
|
|
5641
|
-
result500 = JSON.parse(resultData500);
|
|
5642
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5691
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5643
5692
|
}
|
|
5644
5693
|
else if (status !== 200 && status !== 204) {
|
|
5645
5694
|
const _responseText = response.data;
|
|
@@ -5654,7 +5703,9 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5654
5703
|
*/
|
|
5655
5704
|
txt(f, tenantId, cancelToken) {
|
|
5656
5705
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/txt?";
|
|
5657
|
-
if (f
|
|
5706
|
+
if (f === null)
|
|
5707
|
+
throw new Error("The parameter 'f' cannot be null.");
|
|
5708
|
+
else if (f !== undefined)
|
|
5658
5709
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
5659
5710
|
if (tenantId === null)
|
|
5660
5711
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -5710,12 +5761,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5710
5761
|
result404 = JSON.parse(resultData404);
|
|
5711
5762
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5712
5763
|
}
|
|
5713
|
-
else if (status ===
|
|
5764
|
+
else if (status === 401) {
|
|
5765
|
+
const _responseText = response.data;
|
|
5766
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5767
|
+
}
|
|
5768
|
+
else if (status === 403) {
|
|
5714
5769
|
const _responseText = response.data;
|
|
5715
|
-
|
|
5716
|
-
let resultData500 = _responseText;
|
|
5717
|
-
result500 = JSON.parse(resultData500);
|
|
5718
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5770
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5719
5771
|
}
|
|
5720
5772
|
else if (status !== 200 && status !== 204) {
|
|
5721
5773
|
const _responseText = response.data;
|
|
@@ -5776,12 +5828,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5776
5828
|
result200 = JSON.parse(resultData200);
|
|
5777
5829
|
return Promise.resolve(result200);
|
|
5778
5830
|
}
|
|
5779
|
-
else if (status ===
|
|
5831
|
+
else if (status === 401) {
|
|
5832
|
+
const _responseText = response.data;
|
|
5833
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5834
|
+
}
|
|
5835
|
+
else if (status === 403) {
|
|
5780
5836
|
const _responseText = response.data;
|
|
5781
|
-
|
|
5782
|
-
let resultData500 = _responseText;
|
|
5783
|
-
result500 = JSON.parse(resultData500);
|
|
5784
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5837
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5785
5838
|
}
|
|
5786
5839
|
else if (status !== 200 && status !== 204) {
|
|
5787
5840
|
const _responseText = response.data;
|
|
@@ -5842,12 +5895,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5842
5895
|
result200 = JSON.parse(resultData200);
|
|
5843
5896
|
return Promise.resolve(result200);
|
|
5844
5897
|
}
|
|
5845
|
-
else if (status ===
|
|
5898
|
+
else if (status === 401) {
|
|
5899
|
+
const _responseText = response.data;
|
|
5900
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5901
|
+
}
|
|
5902
|
+
else if (status === 403) {
|
|
5846
5903
|
const _responseText = response.data;
|
|
5847
|
-
|
|
5848
|
-
let resultData500 = _responseText;
|
|
5849
|
-
result500 = JSON.parse(resultData500);
|
|
5850
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
5904
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5851
5905
|
}
|
|
5852
5906
|
else if (status !== 200 && status !== 204) {
|
|
5853
5907
|
const _responseText = response.data;
|
|
@@ -5908,12 +5962,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5908
5962
|
result200 = JSON.parse(resultData200);
|
|
5909
5963
|
return Promise.resolve(result200);
|
|
5910
5964
|
}
|
|
5911
|
-
else if (status ===
|
|
5965
|
+
else if (status === 401) {
|
|
5912
5966
|
const _responseText = response.data;
|
|
5913
|
-
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
|
|
5967
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5968
|
+
}
|
|
5969
|
+
else if (status === 403) {
|
|
5970
|
+
const _responseText = response.data;
|
|
5971
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5917
5972
|
}
|
|
5918
5973
|
else if (status !== 200 && status !== 204) {
|
|
5919
5974
|
const _responseText = response.data;
|
|
@@ -5974,12 +6029,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5974
6029
|
result200 = JSON.parse(resultData200);
|
|
5975
6030
|
return Promise.resolve(result200);
|
|
5976
6031
|
}
|
|
5977
|
-
else if (status ===
|
|
6032
|
+
else if (status === 401) {
|
|
5978
6033
|
const _responseText = response.data;
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
6034
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6035
|
+
}
|
|
6036
|
+
else if (status === 403) {
|
|
6037
|
+
const _responseText = response.data;
|
|
6038
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5983
6039
|
}
|
|
5984
6040
|
else if (status !== 200 && status !== 204) {
|
|
5985
6041
|
const _responseText = response.data;
|
|
@@ -6040,12 +6096,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6040
6096
|
result200 = JSON.parse(resultData200);
|
|
6041
6097
|
return Promise.resolve(result200);
|
|
6042
6098
|
}
|
|
6043
|
-
else if (status ===
|
|
6099
|
+
else if (status === 401) {
|
|
6044
6100
|
const _responseText = response.data;
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6101
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6102
|
+
}
|
|
6103
|
+
else if (status === 403) {
|
|
6104
|
+
const _responseText = response.data;
|
|
6105
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6049
6106
|
}
|
|
6050
6107
|
else if (status !== 200 && status !== 204) {
|
|
6051
6108
|
const _responseText = response.data;
|
|
@@ -6106,12 +6163,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6106
6163
|
result200 = JSON.parse(resultData200);
|
|
6107
6164
|
return Promise.resolve(result200);
|
|
6108
6165
|
}
|
|
6109
|
-
else if (status ===
|
|
6166
|
+
else if (status === 401) {
|
|
6167
|
+
const _responseText = response.data;
|
|
6168
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6169
|
+
}
|
|
6170
|
+
else if (status === 403) {
|
|
6110
6171
|
const _responseText = response.data;
|
|
6111
|
-
|
|
6112
|
-
let resultData500 = _responseText;
|
|
6113
|
-
result500 = JSON.parse(resultData500);
|
|
6114
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6172
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6115
6173
|
}
|
|
6116
6174
|
else if (status !== 200 && status !== 204) {
|
|
6117
6175
|
const _responseText = response.data;
|
|
@@ -6172,12 +6230,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6172
6230
|
result200 = JSON.parse(resultData200);
|
|
6173
6231
|
return Promise.resolve(result200);
|
|
6174
6232
|
}
|
|
6175
|
-
else if (status ===
|
|
6233
|
+
else if (status === 401) {
|
|
6234
|
+
const _responseText = response.data;
|
|
6235
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6236
|
+
}
|
|
6237
|
+
else if (status === 403) {
|
|
6176
6238
|
const _responseText = response.data;
|
|
6177
|
-
|
|
6178
|
-
let resultData500 = _responseText;
|
|
6179
|
-
result500 = JSON.parse(resultData500);
|
|
6180
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6239
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6181
6240
|
}
|
|
6182
6241
|
else if (status !== 200 && status !== 204) {
|
|
6183
6242
|
const _responseText = response.data;
|
|
@@ -6238,12 +6297,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6238
6297
|
result200 = JSON.parse(resultData200);
|
|
6239
6298
|
return Promise.resolve(result200);
|
|
6240
6299
|
}
|
|
6241
|
-
else if (status ===
|
|
6300
|
+
else if (status === 401) {
|
|
6242
6301
|
const _responseText = response.data;
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
|
|
6302
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6303
|
+
}
|
|
6304
|
+
else if (status === 403) {
|
|
6305
|
+
const _responseText = response.data;
|
|
6306
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6247
6307
|
}
|
|
6248
6308
|
else if (status !== 200 && status !== 204) {
|
|
6249
6309
|
const _responseText = response.data;
|
|
@@ -6304,12 +6364,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6304
6364
|
result200 = JSON.parse(resultData200);
|
|
6305
6365
|
return Promise.resolve(result200);
|
|
6306
6366
|
}
|
|
6307
|
-
else if (status ===
|
|
6367
|
+
else if (status === 401) {
|
|
6368
|
+
const _responseText = response.data;
|
|
6369
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6370
|
+
}
|
|
6371
|
+
else if (status === 403) {
|
|
6308
6372
|
const _responseText = response.data;
|
|
6309
|
-
|
|
6310
|
-
let resultData500 = _responseText;
|
|
6311
|
-
result500 = JSON.parse(resultData500);
|
|
6312
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6373
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6313
6374
|
}
|
|
6314
6375
|
else if (status !== 200 && status !== 204) {
|
|
6315
6376
|
const _responseText = response.data;
|
|
@@ -6370,12 +6431,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6370
6431
|
result200 = JSON.parse(resultData200);
|
|
6371
6432
|
return Promise.resolve(result200);
|
|
6372
6433
|
}
|
|
6373
|
-
else if (status ===
|
|
6434
|
+
else if (status === 401) {
|
|
6435
|
+
const _responseText = response.data;
|
|
6436
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6437
|
+
}
|
|
6438
|
+
else if (status === 403) {
|
|
6374
6439
|
const _responseText = response.data;
|
|
6375
|
-
|
|
6376
|
-
let resultData500 = _responseText;
|
|
6377
|
-
result500 = JSON.parse(resultData500);
|
|
6378
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6440
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6379
6441
|
}
|
|
6380
6442
|
else if (status !== 200 && status !== 204) {
|
|
6381
6443
|
const _responseText = response.data;
|
|
@@ -6436,12 +6498,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6436
6498
|
result200 = JSON.parse(resultData200);
|
|
6437
6499
|
return Promise.resolve(result200);
|
|
6438
6500
|
}
|
|
6439
|
-
else if (status ===
|
|
6501
|
+
else if (status === 401) {
|
|
6502
|
+
const _responseText = response.data;
|
|
6503
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6504
|
+
}
|
|
6505
|
+
else if (status === 403) {
|
|
6440
6506
|
const _responseText = response.data;
|
|
6441
|
-
|
|
6442
|
-
let resultData500 = _responseText;
|
|
6443
|
-
result500 = JSON.parse(resultData500);
|
|
6444
|
-
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
6507
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6445
6508
|
}
|
|
6446
6509
|
else if (status !== 200 && status !== 204) {
|
|
6447
6510
|
const _responseText = response.data;
|
|
@@ -6451,28 +6514,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
6451
6514
|
}
|
|
6452
6515
|
}
|
|
6453
6516
|
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
6517
|
var DesignElementType;
|
|
6477
6518
|
(function (DesignElementType) {
|
|
6478
6519
|
DesignElementType["Product"] = "Product";
|
|
@@ -6482,18 +6523,27 @@ var DesignElementType;
|
|
|
6482
6523
|
DesignElementType["PrintArea"] = "PrintArea";
|
|
6483
6524
|
DesignElementType["Item"] = "Item";
|
|
6484
6525
|
})(DesignElementType = exports.DesignElementType || (exports.DesignElementType = {}));
|
|
6485
|
-
/**
|
|
6486
|
-
var
|
|
6487
|
-
(function (
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6526
|
+
/** Image preview fit mode. */
|
|
6527
|
+
var ImagePreviewFitMode;
|
|
6528
|
+
(function (ImagePreviewFitMode) {
|
|
6529
|
+
ImagePreviewFitMode["Fit"] = "Fit";
|
|
6530
|
+
ImagePreviewFitMode["Shrink"] = "Shrink";
|
|
6531
|
+
ImagePreviewFitMode["Resize"] = "Resize";
|
|
6532
|
+
ImagePreviewFitMode["Fill"] = "Fill";
|
|
6533
|
+
})(ImagePreviewFitMode = exports.ImagePreviewFitMode || (exports.ImagePreviewFitMode = {}));
|
|
6534
|
+
/** Image preview file format. */
|
|
6535
|
+
var ImagePreviewFormat;
|
|
6536
|
+
(function (ImagePreviewFormat) {
|
|
6537
|
+
ImagePreviewFormat["Jpeg"] = "Jpeg";
|
|
6538
|
+
ImagePreviewFormat["Png"] = "Png";
|
|
6539
|
+
})(ImagePreviewFormat = exports.ImagePreviewFormat || (exports.ImagePreviewFormat = {}));
|
|
6540
|
+
/** Item source types. */
|
|
6541
|
+
var ItemSourceType;
|
|
6542
|
+
(function (ItemSourceType) {
|
|
6543
|
+
ItemSourceType["File"] = "File";
|
|
6544
|
+
ItemSourceType["ImageStorage"] = "ImageStorage";
|
|
6545
|
+
ItemSourceType["PrivateImageStorage"] = "PrivateImageStorage";
|
|
6546
|
+
})(ItemSourceType = exports.ItemSourceType || (exports.ItemSourceType = {}));
|
|
6497
6547
|
var ItemType;
|
|
6498
6548
|
(function (ItemType) {
|
|
6499
6549
|
ItemType["Image"] = "Image";
|
|
@@ -6501,13 +6551,24 @@ var ItemType;
|
|
|
6501
6551
|
ItemType["Clipart"] = "Clipart";
|
|
6502
6552
|
ItemType["Group"] = "Group";
|
|
6503
6553
|
})(ItemType = exports.ItemType || (exports.ItemType = {}));
|
|
6504
|
-
/**
|
|
6505
|
-
var
|
|
6506
|
-
(function (
|
|
6507
|
-
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
|
|
6554
|
+
/** Placeholder item content type. */
|
|
6555
|
+
var PlaceholderItemContentType;
|
|
6556
|
+
(function (PlaceholderItemContentType) {
|
|
6557
|
+
PlaceholderItemContentType["Image"] = "Image";
|
|
6558
|
+
})(PlaceholderItemContentType = exports.PlaceholderItemContentType || (exports.PlaceholderItemContentType = {}));
|
|
6559
|
+
/** Available patch type. */
|
|
6560
|
+
var ProductPatchType;
|
|
6561
|
+
(function (ProductPatchType) {
|
|
6562
|
+
ProductPatchType["Undefined"] = "Undefined";
|
|
6563
|
+
ProductPatchType["ReplaceImageItemFile"] = "ReplaceImageItemFile";
|
|
6564
|
+
ProductPatchType["ReplacePlaceholderItemContent"] = "ReplacePlaceholderItemContent";
|
|
6565
|
+
})(ProductPatchType = exports.ProductPatchType || (exports.ProductPatchType = {}));
|
|
6566
|
+
/** Product preview file format. */
|
|
6567
|
+
var ProductPreviewFormat;
|
|
6568
|
+
(function (ProductPreviewFormat) {
|
|
6569
|
+
ProductPreviewFormat["Jpeg"] = "Jpeg";
|
|
6570
|
+
ProductPreviewFormat["Png"] = "Png";
|
|
6571
|
+
})(ProductPreviewFormat = exports.ProductPreviewFormat || (exports.ProductPreviewFormat = {}));
|
|
6511
6572
|
var ProductProofFormat;
|
|
6512
6573
|
(function (ProductProofFormat) {
|
|
6513
6574
|
ProductProofFormat["Jpeg"] = "Jpeg";
|
|
@@ -6529,12 +6590,6 @@ var ProductProofInterpolationMode;
|
|
|
6529
6590
|
ProductProofInterpolationMode["Anisotropic9"] = "Anisotropic9";
|
|
6530
6591
|
ProductProofInterpolationMode["Lanczos3"] = "Lanczos3";
|
|
6531
6592
|
})(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
6593
|
class ApiException extends Error {
|
|
6539
6594
|
message;
|
|
6540
6595
|
status;
|