@aurigma/axios-design-atoms-api-client 2.68.1 → 2.69.1

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.
@@ -8,7 +8,7 @@
8
8
  //----------------------
9
9
  // ReSharper disable InconsistentNaming
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.ApiException = exports.ProductProofInterpolationMode = exports.ProductProofFormat = exports.ProductPreviewFormat = exports.ProductPatchType = exports.PlaceholderItemContentType = exports.ItemType = exports.ItemSourceType = exports.ImagePreviewFormat = exports.ImagePreviewFitMode = exports.DesignElementType = exports.ConflictType = exports.DesignAtomsViewerApiClient = exports.DesignAtomsServiceApiClient = exports.DesignAtomsPrintProductItemsApiClient = exports.DesignAtomsPrintProductApiClient = exports.DesignAtomsPalettesApiClient = exports.DesignAtomsMockups3dApiClient = exports.DesignAtomsImagesApiClient = exports.DesignAtomsCompatibilityApiClient = exports.BuildInfoApiClient = exports.ApiClientBase = exports.ApiClientConfiguration = void 0;
11
+ exports.ApiException = exports.TextVerticalAlignment = exports.TextAlignment = exports.ProductProofInterpolationMode = exports.ProductProofFormat = exports.ProductPreviewFormat = exports.ProductPatchType = exports.PlaceholderItemContentType = exports.ItemType = exports.ItemSourceType = exports.ImagePreviewFormat = exports.ImagePreviewFitMode = exports.DesignElementType = exports.ConflictType = exports.DesignAtomsViewerApiClient = exports.DesignAtomsServiceApiClient = exports.DesignAtomsPrintProductItemsApiClient = exports.DesignAtomsPrintProductApiClient = exports.DesignAtomsPalettesApiClient = 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;
@@ -225,10 +225,6 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
225
225
  const _responseText = response.data;
226
226
  return throwException("Unauthorized", status, _responseText, _headers);
227
227
  }
228
- else if (status === 403) {
229
- const _responseText = response.data;
230
- return throwException("Forbidden", status, _responseText, _headers);
231
- }
232
228
  else if (status !== 200 && status !== 204) {
233
229
  const _responseText = response.data;
234
230
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -296,10 +292,6 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
296
292
  const _responseText = response.data;
297
293
  return throwException("Unauthorized", status, _responseText, _headers);
298
294
  }
299
- else if (status === 403) {
300
- const _responseText = response.data;
301
- return throwException("Forbidden", status, _responseText, _headers);
302
- }
303
295
  else if (status !== 200 && status !== 204) {
304
296
  const _responseText = response.data;
305
297
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -368,10 +360,6 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
368
360
  const _responseText = response.data;
369
361
  return throwException("Unauthorized", status, _responseText, _headers);
370
362
  }
371
- else if (status === 403) {
372
- const _responseText = response.data;
373
- return throwException("Forbidden", status, _responseText, _headers);
374
- }
375
363
  else if (status !== 200 && status !== 204) {
376
364
  const _responseText = response.data;
377
365
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -440,10 +428,6 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
440
428
  const _responseText = response.data;
441
429
  return throwException("Unauthorized", status, _responseText, _headers);
442
430
  }
443
- else if (status === 403) {
444
- const _responseText = response.data;
445
- return throwException("Forbidden", status, _responseText, _headers);
446
- }
447
431
  else if (status !== 200 && status !== 204) {
448
432
  const _responseText = response.data;
449
433
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -511,10 +495,6 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
511
495
  const _responseText = response.data;
512
496
  return throwException("Unauthorized", status, _responseText, _headers);
513
497
  }
514
- else if (status === 403) {
515
- const _responseText = response.data;
516
- return throwException("Forbidden", status, _responseText, _headers);
517
- }
518
498
  else if (status !== 200 && status !== 204) {
519
499
  const _responseText = response.data;
520
500
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -572,10 +552,6 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
572
552
  const _responseText = response.data;
573
553
  return throwException("Unauthorized", status, _responseText, _headers);
574
554
  }
575
- else if (status === 403) {
576
- const _responseText = response.data;
577
- return throwException("Forbidden", status, _responseText, _headers);
578
- }
579
555
  else if (status !== 200 && status !== 204) {
580
556
  const _responseText = response.data;
581
557
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -637,10 +613,6 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
637
613
  const _responseText = response.data;
638
614
  return throwException("Unauthorized", status, _responseText, _headers);
639
615
  }
640
- else if (status === 403) {
641
- const _responseText = response.data;
642
- return throwException("Forbidden", status, _responseText, _headers);
643
- }
644
616
  else if (status !== 200 && status !== 204) {
645
617
  const _responseText = response.data;
646
618
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -702,10 +674,6 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
702
674
  const _responseText = response.data;
703
675
  return throwException("Unauthorized", status, _responseText, _headers);
704
676
  }
705
- else if (status === 403) {
706
- const _responseText = response.data;
707
- return throwException("Forbidden", status, _responseText, _headers);
708
- }
709
677
  else if (status !== 200 && status !== 204) {
710
678
  const _responseText = response.data;
711
679
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -767,10 +735,6 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
767
735
  const _responseText = response.data;
768
736
  return throwException("Unauthorized", status, _responseText, _headers);
769
737
  }
770
- else if (status === 403) {
771
- const _responseText = response.data;
772
- return throwException("Forbidden", status, _responseText, _headers);
773
- }
774
738
  else if (status !== 200 && status !== 204) {
775
739
  const _responseText = response.data;
776
740
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -893,10 +857,6 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
893
857
  const _responseText = response.data;
894
858
  return throwException("Unauthorized", status, _responseText, _headers);
895
859
  }
896
- else if (status === 403) {
897
- const _responseText = response.data;
898
- return throwException("Forbidden", status, _responseText, _headers);
899
- }
900
860
  else if (status !== 200 && status !== 204) {
901
861
  const _responseText = response.data;
902
862
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -954,10 +914,6 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
954
914
  const _responseText = response.data;
955
915
  return throwException("Unauthorized", status, _responseText, _headers);
956
916
  }
957
- else if (status === 403) {
958
- const _responseText = response.data;
959
- return throwException("Forbidden", status, _responseText, _headers);
960
- }
961
917
  else if (status !== 200 && status !== 204) {
962
918
  const _responseText = response.data;
963
919
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -1029,10 +985,6 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1029
985
  const _responseText = response.data;
1030
986
  return throwException("Unauthorized", status, _responseText, _headers);
1031
987
  }
1032
- else if (status === 403) {
1033
- const _responseText = response.data;
1034
- return throwException("Forbidden", status, _responseText, _headers);
1035
- }
1036
988
  else if (status !== 200 && status !== 204) {
1037
989
  const _responseText = response.data;
1038
990
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -1100,10 +1052,6 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1100
1052
  const _responseText = response.data;
1101
1053
  return throwException("Unauthorized", status, _responseText, _headers);
1102
1054
  }
1103
- else if (status === 403) {
1104
- const _responseText = response.data;
1105
- return throwException("Forbidden", status, _responseText, _headers);
1106
- }
1107
1055
  else if (status !== 200 && status !== 204) {
1108
1056
  const _responseText = response.data;
1109
1057
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -1226,10 +1174,6 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1226
1174
  const _responseText = response.data;
1227
1175
  return throwException("Unauthorized", status, _responseText, _headers);
1228
1176
  }
1229
- else if (status === 403) {
1230
- const _responseText = response.data;
1231
- return throwException("Forbidden", status, _responseText, _headers);
1232
- }
1233
1177
  else if (status !== 200 && status !== 204) {
1234
1178
  const _responseText = response.data;
1235
1179
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -1301,10 +1245,6 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1301
1245
  const _responseText = response.data;
1302
1246
  return throwException("Unauthorized", status, _responseText, _headers);
1303
1247
  }
1304
- else if (status === 403) {
1305
- const _responseText = response.data;
1306
- return throwException("Forbidden", status, _responseText, _headers);
1307
- }
1308
1248
  else if (status !== 200 && status !== 204) {
1309
1249
  const _responseText = response.data;
1310
1250
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -1366,10 +1306,6 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1366
1306
  const _responseText = response.data;
1367
1307
  return throwException("Unauthorized", status, _responseText, _headers);
1368
1308
  }
1369
- else if (status === 403) {
1370
- const _responseText = response.data;
1371
- return throwException("Forbidden", status, _responseText, _headers);
1372
- }
1373
1309
  else if (status !== 200 && status !== 204) {
1374
1310
  const _responseText = response.data;
1375
1311
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -1431,10 +1367,6 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1431
1367
  const _responseText = response.data;
1432
1368
  return throwException("Unauthorized", status, _responseText, _headers);
1433
1369
  }
1434
- else if (status === 403) {
1435
- const _responseText = response.data;
1436
- return throwException("Forbidden", status, _responseText, _headers);
1437
- }
1438
1370
  else if (status !== 200 && status !== 204) {
1439
1371
  const _responseText = response.data;
1440
1372
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -1496,10 +1428,6 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1496
1428
  const _responseText = response.data;
1497
1429
  return throwException("Unauthorized", status, _responseText, _headers);
1498
1430
  }
1499
- else if (status === 403) {
1500
- const _responseText = response.data;
1501
- return throwException("Forbidden", status, _responseText, _headers);
1502
- }
1503
1431
  else if (status !== 200 && status !== 204) {
1504
1432
  const _responseText = response.data;
1505
1433
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -1561,10 +1489,6 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1561
1489
  const _responseText = response.data;
1562
1490
  return throwException("Unauthorized", status, _responseText, _headers);
1563
1491
  }
1564
- else if (status === 403) {
1565
- const _responseText = response.data;
1566
- return throwException("Forbidden", status, _responseText, _headers);
1567
- }
1568
1492
  else if (status !== 200 && status !== 204) {
1569
1493
  const _responseText = response.data;
1570
1494
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -1626,10 +1550,6 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1626
1550
  const _responseText = response.data;
1627
1551
  return throwException("Unauthorized", status, _responseText, _headers);
1628
1552
  }
1629
- else if (status === 403) {
1630
- const _responseText = response.data;
1631
- return throwException("Forbidden", status, _responseText, _headers);
1632
- }
1633
1553
  else if (status !== 200 && status !== 204) {
1634
1554
  const _responseText = response.data;
1635
1555
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -1691,10 +1611,6 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1691
1611
  const _responseText = response.data;
1692
1612
  return throwException("Unauthorized", status, _responseText, _headers);
1693
1613
  }
1694
- else if (status === 403) {
1695
- const _responseText = response.data;
1696
- return throwException("Forbidden", status, _responseText, _headers);
1697
- }
1698
1614
  else if (status !== 200 && status !== 204) {
1699
1615
  const _responseText = response.data;
1700
1616
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -1756,10 +1672,6 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1756
1672
  const _responseText = response.data;
1757
1673
  return throwException("Unauthorized", status, _responseText, _headers);
1758
1674
  }
1759
- else if (status === 403) {
1760
- const _responseText = response.data;
1761
- return throwException("Forbidden", status, _responseText, _headers);
1762
- }
1763
1675
  else if (status !== 200 && status !== 204) {
1764
1676
  const _responseText = response.data;
1765
1677
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -1821,10 +1733,6 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1821
1733
  const _responseText = response.data;
1822
1734
  return throwException("Unauthorized", status, _responseText, _headers);
1823
1735
  }
1824
- else if (status === 403) {
1825
- const _responseText = response.data;
1826
- return throwException("Forbidden", status, _responseText, _headers);
1827
- }
1828
1736
  else if (status !== 200 && status !== 204) {
1829
1737
  const _responseText = response.data;
1830
1738
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -1886,10 +1794,6 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1886
1794
  const _responseText = response.data;
1887
1795
  return throwException("Unauthorized", status, _responseText, _headers);
1888
1796
  }
1889
- else if (status === 403) {
1890
- const _responseText = response.data;
1891
- return throwException("Forbidden", status, _responseText, _headers);
1892
- }
1893
1797
  else if (status !== 200 && status !== 204) {
1894
1798
  const _responseText = response.data;
1895
1799
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -1951,10 +1855,6 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1951
1855
  const _responseText = response.data;
1952
1856
  return throwException("Unauthorized", status, _responseText, _headers);
1953
1857
  }
1954
- else if (status === 403) {
1955
- const _responseText = response.data;
1956
- return throwException("Forbidden", status, _responseText, _headers);
1957
- }
1958
1858
  else if (status !== 200 && status !== 204) {
1959
1859
  const _responseText = response.data;
1960
1860
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -2016,10 +1916,6 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
2016
1916
  const _responseText = response.data;
2017
1917
  return throwException("Unauthorized", status, _responseText, _headers);
2018
1918
  }
2019
- else if (status === 403) {
2020
- const _responseText = response.data;
2021
- return throwException("Forbidden", status, _responseText, _headers);
2022
- }
2023
1919
  else if (status !== 200 && status !== 204) {
2024
1920
  const _responseText = response.data;
2025
1921
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -2041,7 +1937,7 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
2041
1937
  * Renders a preview of an image with the specified parameters.
2042
1938
  * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
2043
1939
  (default value is 'false').
2044
- * @param tenantId (optional) Tenant identifier
1940
+ * @param tenantId (optional) Tenant ID.
2045
1941
  * @param body (optional) Render model with preview parameters.
2046
1942
  * @return Success
2047
1943
  */
@@ -2120,7 +2016,7 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
2120
2016
  * Renders a preview of an uploaded image with the specified parameters.
2121
2017
  * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
2122
2018
  (default value is 'false').
2123
- * @param tenantId (optional) Tenant identifier
2019
+ * @param tenantId (optional) Tenant ID.
2124
2020
  * @param sourceFile (optional)
2125
2021
  * @param mockupOwnerId (optional)
2126
2022
  * @param mockupId (optional)
@@ -2216,7 +2112,7 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
2216
2112
  }
2217
2113
  /**
2218
2114
  * Renders a preview of an uploaded image with the specified parameters and saves rendering result as resource.
2219
- * @param tenantId (optional) Tenant identifier
2115
+ * @param tenantId (optional) Tenant ID.
2220
2116
  * @param resourceOwnerId (optional)
2221
2117
  * @param resourceNamespace (optional)
2222
2118
  * @param resourceName (optional)
@@ -2340,7 +2236,7 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
2340
2236
  * Renders a preview of a web image with the specified parameters.
2341
2237
  * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
2342
2238
  (default value is 'false').
2343
- * @param tenantId (optional) Tenant identifier
2239
+ * @param tenantId (optional) Tenant ID.
2344
2240
  * @param body (optional) Render model with preview parameters.
2345
2241
  * @return Success
2346
2242
  */
@@ -2417,7 +2313,7 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
2417
2313
  }
2418
2314
  /**
2419
2315
  * Renders a preview of a web image with the specified parameters and saves rendering result as resource.
2420
- * @param tenantId (optional) Tenant identifier
2316
+ * @param tenantId (optional) Tenant ID.
2421
2317
  * @param body (optional) Render model with preview parameters.
2422
2318
  * @return Success
2423
2319
  */
@@ -2499,7 +2395,7 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
2499
2395
  }
2500
2396
  /**
2501
2397
  * Renders a preview of an image with the specified parameters and saves rendering result as resource.
2502
- * @param tenantId (optional) Tenant identifier
2398
+ * @param tenantId (optional) Tenant ID.
2503
2399
  * @param body (optional) Render model with preview parameters.
2504
2400
  * @return Success
2505
2401
  */
@@ -2594,7 +2490,7 @@ class DesignAtomsMockups3dApiClient extends ApiClientBase {
2594
2490
  * Returns a 3D-Mockup attributes.
2595
2491
  * @param id 3D-Mockup identifier.
2596
2492
  * @param ownerId (optional) Private mockup owner identifier.
2597
- * @param tenantId (optional) Tenant identifier
2493
+ * @param tenantId (optional) Tenant ID.
2598
2494
  * @return Success
2599
2495
  */
2600
2496
  getAttributes(id, ownerId, tenantId, cancelToken) {
@@ -2679,7 +2575,7 @@ class DesignAtomsMockups3dApiClient extends ApiClientBase {
2679
2575
  * Returns a 3D-Mockup content as protobuf binary stream.
2680
2576
  * @param id 3D-Mockup identifier.
2681
2577
  * @param ownerId (optional) Private mockup owner identifier.
2682
- * @param tenantId (optional) Tenant identifier
2578
+ * @param tenantId (optional) Tenant ID.
2683
2579
  * @return Success
2684
2580
  */
2685
2581
  getContentAsProtobuf(id, ownerId, tenantId, cancelToken) {
@@ -2764,7 +2660,7 @@ class DesignAtomsMockups3dApiClient extends ApiClientBase {
2764
2660
  * Returns a 3D-Mockup geometry as binary stream.
2765
2661
  * @param id 3D-Mockup identifier.
2766
2662
  * @param ownerId (optional) Private mockup owner identifier.
2767
- * @param tenantId (optional) Tenant identifier
2663
+ * @param tenantId (optional) Tenant ID.
2768
2664
  * @return Success
2769
2665
  */
2770
2666
  getGeometryFile(id, ownerId, tenantId, cancelToken) {
@@ -2859,7 +2755,7 @@ class DesignAtomsPalettesApiClient extends ApiClientBase {
2859
2755
  /**
2860
2756
  * Returns a closest color to provided color in a specified palette.
2861
2757
  * @param paletteUID (optional) Palette UID.
2862
- * @param tenantId (optional) Tenant identifier
2758
+ * @param tenantId (optional) Tenant ID.
2863
2759
  * @param body (optional) Source color.
2864
2760
  * @return Success
2865
2761
  */
@@ -2952,7 +2848,7 @@ class DesignAtomsPalettesApiClient extends ApiClientBase {
2952
2848
  * Returns a serialized palette model by its identifier or UID.
2953
2849
  * @param id (optional) Palette identifier.
2954
2850
  * @param uid (optional) Palette UID.
2955
- * @param tenantId (optional) Tenant identifier
2851
+ * @param tenantId (optional) Tenant ID.
2956
2852
  * @return Success
2957
2853
  */
2958
2854
  getPaletteModel(id, uid, tenantId, cancelToken) {
@@ -3054,7 +2950,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3054
2950
  * Patches a print-product of the specified design file.
3055
2951
  * @param id Design identifier.
3056
2952
  * @param privateStorageOwner (optional) Private storage owner identifier.
3057
- * @param tenantId (optional) Tenant identifier
2953
+ * @param tenantId (optional) Tenant ID.
3058
2954
  * @param patchType (optional)
3059
2955
  * @param replaceImageItemFileInfo_itemName (optional)
3060
2956
  * @param replaceImageItemFileInfo_sourceFile (optional)
@@ -3076,9 +2972,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3076
2972
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3077
2973
  url_ = url_.replace(/[?&]$/, "");
3078
2974
  const content_ = new FormData();
3079
- if (patchType === null || patchType === undefined)
3080
- throw new Error("The parameter 'patchType' cannot be null.");
3081
- else
2975
+ if (patchType !== null && patchType !== undefined)
3082
2976
  content_.append("patchType", patchType.toString());
3083
2977
  if (replaceImageItemFileInfo_itemName !== null && replaceImageItemFileInfo_itemName !== undefined)
3084
2978
  content_.append("replaceImageItemFileInfo.itemName", replaceImageItemFileInfo_itemName.toString());
@@ -3086,9 +2980,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3086
2980
  content_.append("replaceImageItemFileInfo.sourceFile", replaceImageItemFileInfo_sourceFile.data, replaceImageItemFileInfo_sourceFile.fileName ? replaceImageItemFileInfo_sourceFile.fileName : "replaceImageItemFileInfo.sourceFile");
3087
2981
  if (replacePlaceholderItemContentInfo_placeholderItemName !== null && replacePlaceholderItemContentInfo_placeholderItemName !== undefined)
3088
2982
  content_.append("replacePlaceholderItemContentInfo.placeholderItemName", replacePlaceholderItemContentInfo_placeholderItemName.toString());
3089
- if (replacePlaceholderItemContentInfo_newContentType === null || replacePlaceholderItemContentInfo_newContentType === undefined)
3090
- throw new Error("The parameter 'replacePlaceholderItemContentInfo_newContentType' cannot be null.");
3091
- else
2983
+ if (replacePlaceholderItemContentInfo_newContentType !== null && replacePlaceholderItemContentInfo_newContentType !== undefined)
3092
2984
  content_.append("replacePlaceholderItemContentInfo.newContentType", replacePlaceholderItemContentInfo_newContentType.toString());
3093
2985
  if (replacePlaceholderItemContentInfo_sourceFile !== null && replacePlaceholderItemContentInfo_sourceFile !== undefined)
3094
2986
  content_.append("replacePlaceholderItemContentInfo.sourceFile", replacePlaceholderItemContentInfo_sourceFile.data, replacePlaceholderItemContentInfo_sourceFile.fileName ? replacePlaceholderItemContentInfo_sourceFile.fileName : "replacePlaceholderItemContentInfo.sourceFile");
@@ -3152,7 +3044,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3152
3044
  * @param id Design identifier.
3153
3045
  * @param surfaceId (optional) Print-product surface identifier.
3154
3046
  * @param privateStorageOwner (optional) Private storage owner identifier.
3155
- * @param tenantId (optional) Tenant identifier
3047
+ * @param tenantId (optional) Tenant ID.
3156
3048
  * @return Success
3157
3049
  */
3158
3050
  getDesignSurfaceContainers(id, surfaceId, privateStorageOwner, tenantId, cancelToken) {
@@ -3233,7 +3125,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3233
3125
  * @param id Design identifier.
3234
3126
  * @param containerId Print-product container identifier.
3235
3127
  * @param privateStorageOwner (optional) Private storage owner identifier.
3236
- * @param tenantId (optional) Tenant identifier
3128
+ * @param tenantId (optional) Tenant ID.
3237
3129
  * @return No Content
3238
3130
  */
3239
3131
  deleteDesignSurfaceContainer(id, containerId, privateStorageOwner, tenantId, cancelToken) {
@@ -3317,7 +3209,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3317
3209
  * @param id Design identifier.
3318
3210
  * @param containerId Print-product container identifier.
3319
3211
  * @param privateStorageOwner (optional) Private storage owner identifier.
3320
- * @param tenantId (optional) Tenant identifier
3212
+ * @param tenantId (optional) Tenant ID.
3321
3213
  * @return Success
3322
3214
  */
3323
3215
  getDesignSurfaceContainerModel(id, containerId, privateStorageOwner, tenantId, cancelToken) {
@@ -3406,7 +3298,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3406
3298
  * @param id Design identifier.
3407
3299
  * @param containerId Print-product container identifier.
3408
3300
  * @param privateStorageOwner (optional) Private storage owner identifier.
3409
- * @param tenantId (optional) Tenant identifier
3301
+ * @param tenantId (optional) Tenant ID.
3410
3302
  * @param body (optional) Json-serialized model of a print-product container.
3411
3303
  * @return Success
3412
3304
  */
@@ -3510,7 +3402,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3510
3402
  * @param top (optional) Y axis position.
3511
3403
  * @param left (optional) X axis position.
3512
3404
  * @param privateStorageOwner (optional) Private storage owner identifier.
3513
- * @param tenantId (optional) Tenant identifier
3405
+ * @param tenantId (optional) Tenant ID.
3514
3406
  * @param body (optional) Json-serialized model of a new print-product container.
3515
3407
  * @return Success
3516
3408
  */
@@ -3614,7 +3506,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3614
3506
  * @param containerId (optional) Print-product container identifier.
3615
3507
  * @param parentItemId (optional) Print-product item identifier.
3616
3508
  * @param privateStorageOwner (optional) Private storage owner identifier.
3617
- * @param tenantId (optional) Tenant identifier
3509
+ * @param tenantId (optional) Tenant ID.
3618
3510
  * @return Success
3619
3511
  */
3620
3512
  getDesignSurfaceItems(id, surfaceId, containerId, parentItemId, privateStorageOwner, tenantId, cancelToken) {
@@ -3699,7 +3591,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3699
3591
  * @param id Design identifier.
3700
3592
  * @param itemId Print-product item identifier.
3701
3593
  * @param privateStorageOwner (optional) Private storage owner identifier.
3702
- * @param tenantId (optional) Tenant identifier
3594
+ * @param tenantId (optional) Tenant ID.
3703
3595
  * @return No Content
3704
3596
  */
3705
3597
  deleteDesignSurfaceItem(id, itemId, privateStorageOwner, tenantId, cancelToken) {
@@ -3783,7 +3675,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3783
3675
  * @param id Design identifier.
3784
3676
  * @param itemId Print-product item identifier.
3785
3677
  * @param privateStorageOwner (optional) Private storage owner identifier.
3786
- * @param tenantId (optional) Tenant identifier
3678
+ * @param tenantId (optional) Tenant ID.
3787
3679
  * @return Success
3788
3680
  */
3789
3681
  getDesignSurfaceItemModel(id, itemId, privateStorageOwner, tenantId, cancelToken) {
@@ -3872,7 +3764,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3872
3764
  * @param id Design identifier.
3873
3765
  * @param itemId Print-product item identifier.
3874
3766
  * @param privateStorageOwner (optional) Private storage owner identifier.
3875
- * @param tenantId (optional) Tenant identifier
3767
+ * @param tenantId (optional) Tenant ID.
3876
3768
  * @param body (optional) Json-serialized model of a print-product item.
3877
3769
  * @return Success
3878
3770
  */
@@ -3976,7 +3868,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3976
3868
  * @param top (optional) Y axis position.
3977
3869
  * @param left (optional) X axis position.
3978
3870
  * @param privateStorageOwner (optional) Private storage owner identifier.
3979
- * @param tenantId (optional) Tenant identifier
3871
+ * @param tenantId (optional) Tenant ID.
3980
3872
  * @param body (optional) Json-serialized model of a new print-product item.
3981
3873
  * @return Success
3982
3874
  */
@@ -4077,7 +3969,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
4077
3969
  * Returns a print-product of the specified design file as a json-serialized model.
4078
3970
  * @param id Design identifier.
4079
3971
  * @param privateStorageOwner (optional) Private storage owner identifier.
4080
- * @param tenantId (optional) Tenant identifier
3972
+ * @param tenantId (optional) Tenant ID.
4081
3973
  * @return Success
4082
3974
  */
4083
3975
  getDesignProductModel(id, privateStorageOwner, tenantId, cancelToken) {
@@ -4155,7 +4047,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
4155
4047
  * Updates a print-product provided as a json-serialized model is the specified design file.
4156
4048
  * @param id Design identifier.
4157
4049
  * @param privateStorageOwner (optional) Private storage owner identifier.
4158
- * @param tenantId (optional) Tenant identifier
4050
+ * @param tenantId (optional) Tenant ID.
4159
4051
  * @param body (optional) Json-serialized model of a print-product .
4160
4052
  * @return No Content
4161
4053
  */
@@ -4234,7 +4126,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
4234
4126
  * @param id Design identifier.
4235
4127
  * @param surfaceId (optional)
4236
4128
  * @param privateStorageOwner (optional) Private storage owner identifier.
4237
- * @param tenantId (optional) Tenant identifier
4129
+ * @param tenantId (optional) Tenant ID.
4238
4130
  * @return Success
4239
4131
  */
4240
4132
  getDesignPrintAreas(id, surfaceId, privateStorageOwner, tenantId, cancelToken) {
@@ -4315,7 +4207,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
4315
4207
  Print-area identifier will be reset by auto-generated value to prevent identifiers collisions.
4316
4208
  * @param id Design identifier.
4317
4209
  * @param privateStorageOwner (optional) Private storage owner identifier.
4318
- * @param tenantId (optional) Tenant identifier
4210
+ * @param tenantId (optional) Tenant ID.
4319
4211
  * @param body (optional) Print-area description model.
4320
4212
  * @return Success
4321
4213
  */
@@ -4405,7 +4297,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
4405
4297
  * @param id Design identifier.
4406
4298
  * @param printAreaId Design print-area identifier.
4407
4299
  * @param privateStorageOwner (optional) Private storage owner identifier.
4408
- * @param tenantId (optional) Tenant identifier
4300
+ * @param tenantId (optional) Tenant ID.
4409
4301
  * @param body (optional) Print-area description model.
4410
4302
  * @return Success
4411
4303
  */
@@ -4505,7 +4397,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
4505
4397
  * @param id Design identifier.
4506
4398
  * @param printAreaId Design print-area identifier.
4507
4399
  * @param privateStorageOwner (optional) Private storage owner identifier.
4508
- * @param tenantId (optional) Tenant identifier
4400
+ * @param tenantId (optional) Tenant ID.
4509
4401
  * @return No Content
4510
4402
  */
4511
4403
  deleteDesignPrintArea(id, printAreaId, privateStorageOwner, tenantId, cancelToken) {
@@ -4589,7 +4481,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
4589
4481
  * @param id Design identifier.
4590
4482
  * @param printAreaId Design print-area identifier.
4591
4483
  * @param privateStorageOwner (optional) Private storage owner identifier.
4592
- * @param tenantId (optional) Tenant identifier
4484
+ * @param tenantId (optional) Tenant ID.
4593
4485
  * @return Success
4594
4486
  */
4595
4487
  getDesignPrintAreaModel(id, printAreaId, privateStorageOwner, tenantId, cancelToken) {
@@ -4678,7 +4570,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
4678
4570
  * @param id Design identifier.
4679
4571
  * @param printAreaId Design print-area identifier.
4680
4572
  * @param privateStorageOwner (optional) Private storage owner identifier.
4681
- * @param tenantId (optional) Tenant identifier
4573
+ * @param tenantId (optional) Tenant ID.
4682
4574
  * @param body (optional) Json-serialized model of a print-area.
4683
4575
  * @return Success
4684
4576
  */
@@ -4779,7 +4671,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
4779
4671
  * @param id Design identifier.
4780
4672
  * @param surfaceId (optional) Parent surface identifier.
4781
4673
  * @param privateStorageOwner (optional) Private storage owner identifier.
4782
- * @param tenantId (optional) Tenant identifier
4674
+ * @param tenantId (optional) Tenant ID.
4783
4675
  * @param body (optional) Json serialized model of a print-area.
4784
4676
  * @return Success
4785
4677
  */
@@ -4870,7 +4762,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
4870
4762
  * Returns a list of print-product surfaces descriptions of the specified design file.
4871
4763
  * @param id Design identifier.
4872
4764
  * @param privateStorageOwner (optional) Private storage owner identifier.
4873
- * @param tenantId (optional) Tenant identifier
4765
+ * @param tenantId (optional) Tenant ID.
4874
4766
  * @return Success
4875
4767
  */
4876
4768
  getDesignSurfaces(id, privateStorageOwner, tenantId, cancelToken) {
@@ -4949,7 +4841,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
4949
4841
  * @param id Design identifier.
4950
4842
  * @param surfaceId Print-product surface identifier.
4951
4843
  * @param privateStorageOwner (optional) Private storage owner identifier.
4952
- * @param tenantId (optional) Tenant identifier
4844
+ * @param tenantId (optional) Tenant ID.
4953
4845
  * @return No Content
4954
4846
  */
4955
4847
  deleteDesignSurface(id, surfaceId, privateStorageOwner, tenantId, cancelToken) {
@@ -5033,7 +4925,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
5033
4925
  * @param id Design identifier.
5034
4926
  * @param surfaceId Print product surface identifier.
5035
4927
  * @param privateStorageOwner (optional) Private storage owner identifier.
5036
- * @param tenantId (optional) Tenant identifier
4928
+ * @param tenantId (optional) Tenant ID.
5037
4929
  * @return Success
5038
4930
  */
5039
4931
  getDesignSurfaceDownMockup(id, surfaceId, privateStorageOwner, tenantId, cancelToken) {
@@ -5129,7 +5021,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
5129
5021
  * @param id Design identifier.
5130
5022
  * @param surfaceId Print-product surface identifier.
5131
5023
  * @param privateStorageOwner (optional) Private storage owner identifier.
5132
- * @param tenantId (optional) Tenant identifier
5024
+ * @param tenantId (optional) Tenant ID.
5133
5025
  * @param position_top (optional)
5134
5026
  * @param position_left (optional)
5135
5027
  * @param sourceFile (optional)
@@ -5240,7 +5132,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
5240
5132
  * @param id Design identifier.
5241
5133
  * @param surfaceId Print-product surface identifier.
5242
5134
  * @param privateStorageOwner (optional) Private storage owner identifier.
5243
- * @param tenantId (optional) Tenant identifier
5135
+ * @param tenantId (optional) Tenant ID.
5244
5136
  * @return Success
5245
5137
  */
5246
5138
  getDesignSurfaceDownMockupContent(id, surfaceId, privateStorageOwner, tenantId, cancelToken) {
@@ -5336,7 +5228,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
5336
5228
  * @param id Design identifier.
5337
5229
  * @param surfaceId Print-product surface identifier.
5338
5230
  * @param privateStorageOwner (optional) Private storage owner identifier.
5339
- * @param tenantId (optional) Tenant identifier
5231
+ * @param tenantId (optional) Tenant ID.
5340
5232
  * @return Success
5341
5233
  */
5342
5234
  getDesignSurfaceUpMockup(id, surfaceId, privateStorageOwner, tenantId, cancelToken) {
@@ -5432,7 +5324,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
5432
5324
  * @param id Design identifier.
5433
5325
  * @param surfaceId Print-product surface identifier.
5434
5326
  * @param privateStorageOwner (optional) Private storage owner identifier.
5435
- * @param tenantId (optional) Tenant identifier
5327
+ * @param tenantId (optional) Tenant ID.
5436
5328
  * @param position_top (optional)
5437
5329
  * @param position_left (optional)
5438
5330
  * @param sourceFile (optional)
@@ -5543,7 +5435,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
5543
5435
  * @param id Design identifier.
5544
5436
  * @param surfaceId Print-product surface identifier.
5545
5437
  * @param privateStorageOwner (optional) Private storage owner identifier.
5546
- * @param tenantId (optional) Tenant identifier
5438
+ * @param tenantId (optional) Tenant ID.
5547
5439
  * @return Success
5548
5440
  */
5549
5441
  getDesignSurfaceUpMockupContent(id, surfaceId, privateStorageOwner, tenantId, cancelToken) {
@@ -5639,7 +5531,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
5639
5531
  * @param id Design identifier.
5640
5532
  * @param surfaceId Surface identifier.
5641
5533
  * @param privateStorageOwner (optional) Private storage owner identifier.
5642
- * @param tenantId (optional) Tenant identifier
5534
+ * @param tenantId (optional) Tenant ID.
5643
5535
  * @return Success
5644
5536
  */
5645
5537
  getDesignSurfaceModel(id, surfaceId, privateStorageOwner, tenantId, cancelToken) {
@@ -5729,7 +5621,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
5729
5621
  * @param id Design identifier.
5730
5622
  * @param surfaceId Print-product surface identifier.
5731
5623
  * @param privateStorageOwner (optional) Private storage owner identifier.
5732
- * @param tenantId (optional) Tenant identifier
5624
+ * @param tenantId (optional) Tenant ID.
5733
5625
  * @param body (optional) Json-serialized model of a print-product surface.
5734
5626
  * @return Success
5735
5627
  */
@@ -5830,7 +5722,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
5830
5722
  * @param id Design identifier.
5831
5723
  * @param index (optional) Surface index within the surfaces list of a design.
5832
5724
  * @param privateStorageOwner (optional) Private storage owner identifier.
5833
- * @param tenantId (optional) Tenant identifier
5725
+ * @param tenantId (optional) Tenant ID.
5834
5726
  * @param body (optional) Json-serialized model of a print-prouduct surface.
5835
5727
  * @return Success
5836
5728
  */
@@ -5930,7 +5822,7 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
5930
5822
  }
5931
5823
  /**
5932
5824
  * Apply effects to print-product item image.
5933
- * @param tenantId (optional) Tenant identifier
5825
+ * @param tenantId (optional) Tenant ID.
5934
5826
  * @param body (optional)
5935
5827
  * @return Success
5936
5828
  */
@@ -5998,7 +5890,7 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
5998
5890
  }
5999
5891
  /**
6000
5892
  * Extracts print-product item image.
6001
- * @param tenantId (optional) Tenant identifier
5893
+ * @param tenantId (optional) Tenant ID.
6002
5894
  * @param body (optional) Extraction parameters.
6003
5895
  * @return Success
6004
5896
  */
@@ -6067,7 +5959,7 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
6067
5959
  /**
6068
5960
  * Flattens print-product items.
6069
5961
  * @param paletteUID (optional)
6070
- * @param tenantId (optional) Tenant identifier
5962
+ * @param tenantId (optional) Tenant ID.
6071
5963
  * @param body (optional) List of print-product items to flatten.
6072
5964
  * @return Success
6073
5965
  */
@@ -6138,7 +6030,7 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
6138
6030
  /**
6139
6031
  * Creates print-product item from input image file.
6140
6032
  * @param itemType (optional) Desired item type.
6141
- * @param tenantId (optional) Tenant identifier
6033
+ * @param tenantId (optional) Tenant ID.
6142
6034
  * @param sourceFile (optional)
6143
6035
  * @param paletteUID (optional)
6144
6036
  * @param preserveOriginalFile (optional)
@@ -6230,7 +6122,7 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
6230
6122
  /**
6231
6123
  * Creates multiple print-product items from input image files.
6232
6124
  * @param itemType (optional) Desired print-product items type.
6233
- * @param tenantId (optional) Tenant identifier
6125
+ * @param tenantId (optional) Tenant ID.
6234
6126
  * @param sourceFiles (optional)
6235
6127
  * @param paletteUID (optional)
6236
6128
  * @param preserveOriginalFile (optional)
@@ -6322,7 +6214,7 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
6322
6214
  /**
6323
6215
  * Creates print-product item from image file taken from storage.
6324
6216
  * @param itemType (optional) Desired item type.
6325
- * @param tenantId (optional) Tenant identifier
6217
+ * @param tenantId (optional) Tenant ID.
6326
6218
  * @param body (optional) Operation parameters.
6327
6219
  * @return Success
6328
6220
  */
@@ -6407,7 +6299,7 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
6407
6299
  /**
6408
6300
  * Creates multiple print-product items from the specified image files in storage.
6409
6301
  * @param itemType (optional) Desired items type.
6410
- * @param tenantId (optional) Tenant identifier
6302
+ * @param tenantId (optional) Tenant ID.
6411
6303
  * @param body (optional) Operation parameters.
6412
6304
  * @return Success
6413
6305
  */
@@ -6492,7 +6384,7 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
6492
6384
  /**
6493
6385
  * Creates print-product item from remote web image provided by URL.
6494
6386
  * @param itemType (optional) Desired item type.
6495
- * @param tenantId (optional) Tenant identifier
6387
+ * @param tenantId (optional) Tenant ID.
6496
6388
  * @param body (optional) Operation parameters.
6497
6389
  * @return Success
6498
6390
  */
@@ -6577,7 +6469,7 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
6577
6469
  /**
6578
6470
  * Creates multiple print-product items from remote web images provided by URLs list.
6579
6471
  * @param itemType (optional) Desired items type.
6580
- * @param tenantId (optional) Tenant identifier
6472
+ * @param tenantId (optional) Tenant ID.
6581
6473
  * @param body (optional) Operation parameters.
6582
6474
  * @return Success
6583
6475
  */
@@ -6673,7 +6565,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
6673
6565
  /**
6674
6566
  * Creates new design file with specified parameters and saves it in storage.
6675
6567
  * @param privateStorageOwner (optional) Private storage owner identifier.
6676
- * @param tenantId (optional) Tenant identifier
6568
+ * @param tenantId (optional) Tenant ID.
6677
6569
  * @param body (optional) Design creation parameters.
6678
6570
  * @return Created
6679
6571
  */
@@ -6748,12 +6640,97 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
6748
6640
  }
6749
6641
  return Promise.resolve(null);
6750
6642
  }
6643
+ /**
6644
+ * Applies item data for a specified design file taken from storage.
6645
+ * @param id Design identifier.
6646
+ * @param privateStorageOwner (optional) Private storage owner identifier.
6647
+ * @param tenantId (optional) Tenant ID.
6648
+ * @param body (optional) Design items data.
6649
+ * @return Success
6650
+ */
6651
+ applyItemsData(id, privateStorageOwner, tenantId, body, cancelToken) {
6652
+ let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/apply-items-data?";
6653
+ if (id === undefined || id === null)
6654
+ throw new Error("The parameter 'id' must be defined.");
6655
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
6656
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
6657
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
6658
+ if (tenantId === null)
6659
+ throw new Error("The parameter 'tenantId' cannot be null.");
6660
+ else if (tenantId !== undefined)
6661
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
6662
+ url_ = url_.replace(/[?&]$/, "");
6663
+ const content_ = JSON.stringify(body);
6664
+ let options_ = {
6665
+ data: content_,
6666
+ method: "POST",
6667
+ url: url_,
6668
+ headers: {
6669
+ "Content-Type": "application/json",
6670
+ },
6671
+ cancelToken
6672
+ };
6673
+ return this.transformOptions(options_).then(transformedOptions_ => {
6674
+ return this.instance.request(transformedOptions_);
6675
+ }).catch((_error) => {
6676
+ if (isAxiosError(_error) && _error.response) {
6677
+ return _error.response;
6678
+ }
6679
+ else {
6680
+ throw _error;
6681
+ }
6682
+ }).then((_response) => {
6683
+ return this.transformResult(url_, _response, (_response) => this.processApplyItemsData(_response));
6684
+ });
6685
+ }
6686
+ processApplyItemsData(response) {
6687
+ const status = response.status;
6688
+ let _headers = {};
6689
+ if (response.headers && typeof response.headers === "object") {
6690
+ for (let k in response.headers) {
6691
+ if (response.headers.hasOwnProperty(k)) {
6692
+ _headers[k] = response.headers[k];
6693
+ }
6694
+ }
6695
+ }
6696
+ if (status === 200) {
6697
+ const _responseText = response.data;
6698
+ return Promise.resolve(null);
6699
+ }
6700
+ else if (status === 404) {
6701
+ const _responseText = response.data;
6702
+ let result404 = null;
6703
+ let resultData404 = _responseText;
6704
+ result404 = JSON.parse(resultData404);
6705
+ return throwException("Not Found", status, _responseText, _headers, result404);
6706
+ }
6707
+ else if (status === 409) {
6708
+ const _responseText = response.data;
6709
+ let result409 = null;
6710
+ let resultData409 = _responseText;
6711
+ result409 = JSON.parse(resultData409);
6712
+ return throwException("Conflict", status, _responseText, _headers, result409);
6713
+ }
6714
+ else if (status === 401) {
6715
+ const _responseText = response.data;
6716
+ return throwException("Unauthorized", status, _responseText, _headers);
6717
+ }
6718
+ else if (status === 403) {
6719
+ const _responseText = response.data;
6720
+ return throwException("Forbidden", status, _responseText, _headers);
6721
+ }
6722
+ else if (status !== 200 && status !== 204) {
6723
+ const _responseText = response.data;
6724
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6725
+ }
6726
+ return Promise.resolve(null);
6727
+ }
6751
6728
  /**
6752
6729
  * Returns image content of the background.
6753
6730
  * @param id Design identifier.
6754
6731
  * @param surfaceIndex (optional) Surface index.
6755
6732
  * @param privateStorageOwner (optional) Private storage owner identifier.
6756
- * @param tenantId (optional) Tenant identifier
6733
+ * @param tenantId (optional) Tenant ID.
6757
6734
  * @return Success
6758
6735
  */
6759
6736
  extractBackground(id, surfaceIndex, privateStorageOwner, tenantId, cancelToken) {
@@ -6840,7 +6817,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
6840
6817
  * Sets specified editor-mockups for selected design surfaces.
6841
6818
  * @param id Design identifier.
6842
6819
  * @param privateStorageOwner (optional) Private storage owner identifier.
6843
- * @param tenantId (optional) Tenant identifier
6820
+ * @param tenantId (optional) Tenant ID.
6844
6821
  * @param body (optional) Operation parameters.
6845
6822
  * @return No Content
6846
6823
  */
@@ -6925,7 +6902,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
6925
6902
  * Returns design parameters stored in product model.
6926
6903
  * @param id Design identifier.
6927
6904
  * @param privateStorageOwner (optional) Private storage owner identifier.
6928
- * @param tenantId (optional) Tenant identifier
6905
+ * @param tenantId (optional) Tenant ID.
6929
6906
  * @return Success
6930
6907
  */
6931
6908
  getDesignParameters(id, privateStorageOwner, tenantId, cancelToken) {
@@ -7003,7 +6980,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
7003
6980
  * Loads a data schema from design file taken from storage.
7004
6981
  * @param id Design identifier.
7005
6982
  * @param privateStorageOwner (optional) Private storage owner identifier.
7006
- * @param tenantId (optional) Tenant identifier
6983
+ * @param tenantId (optional) Tenant ID.
7007
6984
  * @return Success
7008
6985
  */
7009
6986
  loadDataSchema(id, privateStorageOwner, tenantId, cancelToken) {
@@ -7088,7 +7065,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
7088
7065
  * Loads a toggle set from design file taken from storage.
7089
7066
  * @param id Design identifier.
7090
7067
  * @param privateStorageOwner (optional) Private storage owner identifier.
7091
- * @param tenantId (optional) Tenant identifier
7068
+ * @param tenantId (optional) Tenant ID.
7092
7069
  * @return Success
7093
7070
  */
7094
7071
  loadToggleSet(id, privateStorageOwner, tenantId, cancelToken) {
@@ -7173,7 +7150,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
7173
7150
  * Returns variable items information for design file taken from storage.
7174
7151
  * @param id Design identifier.
7175
7152
  * @param privateStorageOwner (optional) Private storage owner identifier.
7176
- * @param tenantId (optional) Tenant identifier
7153
+ * @param tenantId (optional) Tenant ID.
7177
7154
  * @return Success
7178
7155
  */
7179
7156
  getVariables(id, privateStorageOwner, tenantId, cancelToken) {
@@ -7251,7 +7228,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
7251
7228
  * Saves variable items values for design file taken from storage.
7252
7229
  * @param id Design identifier.
7253
7230
  * @param privateStorageOwner (optional) Private storage owner identifier.
7254
- * @param tenantId (optional) Tenant identifier
7231
+ * @param tenantId (optional) Tenant ID.
7255
7232
  * @param body (optional) Design variable values.
7256
7233
  * @return Success
7257
7234
  */
@@ -7336,7 +7313,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
7336
7313
  * Loads variable data printing information from design file taken from storage.
7337
7314
  * @param id Design identifier.
7338
7315
  * @param privateStorageOwner (optional) Private storage owner identifier.
7339
- * @param tenantId (optional) Tenant identifier
7316
+ * @param tenantId (optional) Tenant ID.
7340
7317
  * @return Success
7341
7318
  */
7342
7319
  loadVdpData(id, privateStorageOwner, tenantId, cancelToken) {
@@ -7421,7 +7398,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
7421
7398
  * Saves variable data printing information to design file and updates design in storage.
7422
7399
  * @param id Design identifier.
7423
7400
  * @param privateStorageOwner (optional) Private storage owner identifier.
7424
- * @param tenantId (optional) Tenant identifier
7401
+ * @param tenantId (optional) Tenant ID.
7425
7402
  * @param body (optional) Serialized vdp data.
7426
7403
  * @return Success
7427
7404
  */
@@ -7499,7 +7476,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
7499
7476
  * Deletes variable data printing information from design file and updates design file in storage.
7500
7477
  * @param id Design identifier.
7501
7478
  * @param privateStorageOwner (optional) Private storage owner identifier.
7502
- * @param tenantId (optional) Tenant identifier
7479
+ * @param tenantId (optional) Tenant ID.
7503
7480
  * @return Success
7504
7481
  */
7505
7482
  deleteVdpData(id, privateStorageOwner, tenantId, cancelToken) {
@@ -7570,7 +7547,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
7570
7547
  }
7571
7548
  /**
7572
7549
  * Converts colors for print-product item manipulations.
7573
- * @param tenantId (optional) Tenant identifier
7550
+ * @param tenantId (optional) Tenant ID.
7574
7551
  * @param body (optional) Convert colors operation parameters.
7575
7552
  * @return Success
7576
7553
  */
@@ -7647,7 +7624,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
7647
7624
  * Loads print-product from resource file taken from storage.
7648
7625
  * @param id (optional) Resource identifier.
7649
7626
  * @param privateStorageOwner (optional) Private storage owner identifier.
7650
- * @param tenantId (optional) Tenant identifier
7627
+ * @param tenantId (optional) Tenant ID.
7651
7628
  * @return Success
7652
7629
  */
7653
7630
  loadProductFromResource(id, privateStorageOwner, tenantId, cancelToken) {
@@ -7731,7 +7708,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
7731
7708
  * Renders a product proof image with specified parameters.
7732
7709
  * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
7733
7710
  (default value is 'false').
7734
- * @param tenantId (optional) Tenant identifier
7711
+ * @param tenantId (optional) Tenant ID.
7735
7712
  * @param body (optional) Preview parameters.
7736
7713
  * @return Success
7737
7714
  */
@@ -7803,7 +7780,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
7803
7780
  * Renders a design preview with the specified parameters.
7804
7781
  * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
7805
7782
  (default value is 'false').
7806
- * @param tenantId (optional) Tenant identifier
7783
+ * @param tenantId (optional) Tenant ID.
7807
7784
  * @param body (optional) Render model with preview parameters.
7808
7785
  * @return Success
7809
7786
  */
@@ -7873,7 +7850,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
7873
7850
  }
7874
7851
  /**
7875
7852
  * Renders a design preview with the specified parameters and saves rendering result as resource.
7876
- * @param tenantId (optional) Tenant identifier
7853
+ * @param tenantId (optional) Tenant ID.
7877
7854
  * @param body (optional) Render model with preview parameters.
7878
7855
  * @return Success
7879
7856
  */
@@ -7957,7 +7934,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
7957
7934
  * Renders a design proof with the specified parameters.
7958
7935
  * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
7959
7936
  (default value is 'false').
7960
- * @param tenantId (optional) Tenant identifier
7937
+ * @param tenantId (optional) Tenant ID.
7961
7938
  * @param body (optional) Render model with proof parameters.
7962
7939
  * @return Success
7963
7940
  */
@@ -8034,7 +8011,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
8034
8011
  }
8035
8012
  /**
8036
8013
  * Renders a design proof with the specified parameters and saves rendering result as resource.
8037
- * @param tenantId (optional) Tenant identifier
8014
+ * @param tenantId (optional) Tenant ID.
8038
8015
  * @param body (optional) Render model with preview parameters.
8039
8016
  * @return Success
8040
8017
  */
@@ -8111,7 +8088,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
8111
8088
  * Loads print-product from design file taken from storage.
8112
8089
  * @param id Design identifier.
8113
8090
  * @param privateStorageOwner (optional) Private storage owner identifier.
8114
- * @param tenantId (optional) Tenant identifier
8091
+ * @param tenantId (optional) Tenant ID.
8115
8092
  * @return Success
8116
8093
  * @deprecated
8117
8094
  */
@@ -8190,7 +8167,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
8190
8167
  * Saves print-product to design file and updates design file in storage.
8191
8168
  * @param id Design identifier.
8192
8169
  * @param privateStorageOwner (optional) Private storage owner identifier.
8193
- * @param tenantId (optional) Tenant identifier
8170
+ * @param tenantId (optional) Tenant ID.
8194
8171
  * @param body (optional) Serialized product description.
8195
8172
  * @return Success
8196
8173
  * @deprecated
@@ -8269,7 +8246,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
8269
8246
  * Patches print-product in design file.
8270
8247
  * @param id Design identifier.
8271
8248
  * @param privateStorageOwner (optional) Private storage owner identifier.
8272
- * @param tenantId (optional) Tenant identifier
8249
+ * @param tenantId (optional) Tenant ID.
8273
8250
  * @param patchType (optional)
8274
8251
  * @param replaceImageItemFileInfo_itemName (optional)
8275
8252
  * @param replaceImageItemFileInfo_sourceFile (optional)
@@ -8292,9 +8269,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
8292
8269
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
8293
8270
  url_ = url_.replace(/[?&]$/, "");
8294
8271
  const content_ = new FormData();
8295
- if (patchType === null || patchType === undefined)
8296
- throw new Error("The parameter 'patchType' cannot be null.");
8297
- else
8272
+ if (patchType !== null && patchType !== undefined)
8298
8273
  content_.append("patchType", patchType.toString());
8299
8274
  if (replaceImageItemFileInfo_itemName !== null && replaceImageItemFileInfo_itemName !== undefined)
8300
8275
  content_.append("replaceImageItemFileInfo.itemName", replaceImageItemFileInfo_itemName.toString());
@@ -8302,9 +8277,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
8302
8277
  content_.append("replaceImageItemFileInfo.sourceFile", replaceImageItemFileInfo_sourceFile.data, replaceImageItemFileInfo_sourceFile.fileName ? replaceImageItemFileInfo_sourceFile.fileName : "replaceImageItemFileInfo.sourceFile");
8303
8278
  if (replacePlaceholderItemContentInfo_placeholderItemName !== null && replacePlaceholderItemContentInfo_placeholderItemName !== undefined)
8304
8279
  content_.append("replacePlaceholderItemContentInfo.placeholderItemName", replacePlaceholderItemContentInfo_placeholderItemName.toString());
8305
- if (replacePlaceholderItemContentInfo_newContentType === null || replacePlaceholderItemContentInfo_newContentType === undefined)
8306
- throw new Error("The parameter 'replacePlaceholderItemContentInfo_newContentType' cannot be null.");
8307
- else
8280
+ if (replacePlaceholderItemContentInfo_newContentType !== null && replacePlaceholderItemContentInfo_newContentType !== undefined)
8308
8281
  content_.append("replacePlaceholderItemContentInfo.newContentType", replacePlaceholderItemContentInfo_newContentType.toString());
8309
8282
  if (replacePlaceholderItemContentInfo_sourceFile !== null && replacePlaceholderItemContentInfo_sourceFile !== undefined)
8310
8283
  content_.append("replacePlaceholderItemContentInfo.sourceFile", replacePlaceholderItemContentInfo_sourceFile.data, replacePlaceholderItemContentInfo_sourceFile.fileName ? replacePlaceholderItemContentInfo_sourceFile.fileName : "replacePlaceholderItemContentInfo.sourceFile");
@@ -8366,7 +8339,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
8366
8339
  /**
8367
8340
  * Creates print-product item.
8368
8341
  * @param itemType (optional) Desired item type.
8369
- * @param tenantId (optional) Tenant identifier
8342
+ * @param tenantId (optional) Tenant ID.
8370
8343
  * @param sourceType (optional)
8371
8344
  * @param sourceId (optional)
8372
8345
  * @param sourceOwnerId (optional)
@@ -8457,7 +8430,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
8457
8430
  }
8458
8431
  /**
8459
8432
  * Extracts print-product item image.
8460
- * @param tenantId (optional) Tenant identifier
8433
+ * @param tenantId (optional) Tenant ID.
8461
8434
  * @param body (optional) Extraction parameters.
8462
8435
  * @return Success
8463
8436
  * @deprecated
@@ -8526,7 +8499,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
8526
8499
  }
8527
8500
  /**
8528
8501
  * Flattens print-product items.
8529
- * @param tenantId (optional) Tenant identifier
8502
+ * @param tenantId (optional) Tenant ID.
8530
8503
  * @param body (optional) Items to flatten.
8531
8504
  * @return Success
8532
8505
  * @deprecated
@@ -8598,7 +8571,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
8598
8571
  * @param designId (optional) Public design identifier.
8599
8572
  * @param privateDesignId (optional) Private design identifier.
8600
8573
  * @param privateStorageOwner (optional) Private storage owner identifier.
8601
- * @param tenantId (optional) Tenant identifier
8574
+ * @param tenantId (optional) Tenant ID.
8602
8575
  * @return Created
8603
8576
  * @deprecated
8604
8577
  */
@@ -8667,11 +8640,11 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
8667
8640
  * @param resourceId (optional) Resource identifier.
8668
8641
  * @param privateDesignId (optional) Private design identifier.
8669
8642
  * @param privateStorageOwner (optional) Private storage owner identifier.
8670
- * @param tenantId (optional) Tenant identifier.
8643
+ * @param tenantIdQuery (optional) Tenant identifier.
8671
8644
  * @return Created
8672
8645
  * @deprecated
8673
8646
  */
8674
- createPrivateDesignFromResource(resourceId, privateDesignId, privateStorageOwner, tenantId, cancelToken) {
8647
+ createPrivateDesignFromResource(resourceId, privateDesignId, privateStorageOwner, tenantIdQuery, cancelToken) {
8675
8648
  let url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-resource?";
8676
8649
  if (resourceId !== undefined && resourceId !== null)
8677
8650
  url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
@@ -8679,10 +8652,10 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
8679
8652
  url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
8680
8653
  if (privateStorageOwner !== undefined && privateStorageOwner !== null)
8681
8654
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
8682
- if (tenantId === null)
8683
- throw new Error("The parameter 'tenantId' cannot be null.");
8684
- else if (tenantId !== undefined)
8685
- url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
8655
+ if (tenantIdQuery === null)
8656
+ throw new Error("The parameter 'tenantIdQuery' cannot be null.");
8657
+ else if (tenantIdQuery !== undefined)
8658
+ url_ += "tenantId=" + encodeURIComponent("" + tenantIdQuery) + "&";
8686
8659
  url_ = url_.replace(/[?&]$/, "");
8687
8660
  let options_ = {
8688
8661
  method: "POST",
@@ -8743,7 +8716,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
8743
8716
  this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : this.getBaseUrl("");
8744
8717
  }
8745
8718
  /**
8746
- * @param tenantId (optional) Tenant identifier
8719
+ * @param tenantId (optional) Tenant ID.
8747
8720
  * @param body (optional)
8748
8721
  * @return Success
8749
8722
  */
@@ -8799,10 +8772,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
8799
8772
  const _responseText = response.data;
8800
8773
  return throwException("Unauthorized", status, _responseText, _headers);
8801
8774
  }
8802
- else if (status === 403) {
8803
- const _responseText = response.data;
8804
- return throwException("Forbidden", status, _responseText, _headers);
8805
- }
8806
8775
  else if (status !== 200 && status !== 204) {
8807
8776
  const _responseText = response.data;
8808
8777
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -8810,7 +8779,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
8810
8779
  return Promise.resolve(null);
8811
8780
  }
8812
8781
  /**
8813
- * @param tenantId (optional) Tenant identifier
8782
+ * @param tenantId (optional) Tenant ID.
8814
8783
  * @return Success
8815
8784
  */
8816
8785
  fonts(psName, tenantId, cancelToken) {
@@ -8872,10 +8841,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
8872
8841
  const _responseText = response.data;
8873
8842
  return throwException("Unauthorized", status, _responseText, _headers);
8874
8843
  }
8875
- else if (status === 403) {
8876
- const _responseText = response.data;
8877
- return throwException("Forbidden", status, _responseText, _headers);
8878
- }
8879
8844
  else if (status !== 200 && status !== 204) {
8880
8845
  const _responseText = response.data;
8881
8846
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -8883,7 +8848,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
8883
8848
  return Promise.resolve(null);
8884
8849
  }
8885
8850
  /**
8886
- * @param tenantId (optional) Tenant identifier
8851
+ * @param tenantId (optional) Tenant ID.
8887
8852
  * @param body (optional)
8888
8853
  * @return Success
8889
8854
  */
@@ -8946,10 +8911,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
8946
8911
  const _responseText = response.data;
8947
8912
  return throwException("Unauthorized", status, _responseText, _headers);
8948
8913
  }
8949
- else if (status === 403) {
8950
- const _responseText = response.data;
8951
- return throwException("Forbidden", status, _responseText, _headers);
8952
- }
8953
8914
  else if (status !== 200 && status !== 204) {
8954
8915
  const _responseText = response.data;
8955
8916
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -8957,7 +8918,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
8957
8918
  return Promise.resolve(null);
8958
8919
  }
8959
8920
  /**
8960
- * @param tenantId (optional) Tenant identifier
8921
+ * @param tenantId (optional) Tenant ID.
8961
8922
  * @param body (optional)
8962
8923
  * @return Success
8963
8924
  */
@@ -9020,10 +8981,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
9020
8981
  const _responseText = response.data;
9021
8982
  return throwException("Unauthorized", status, _responseText, _headers);
9022
8983
  }
9023
- else if (status === 403) {
9024
- const _responseText = response.data;
9025
- return throwException("Forbidden", status, _responseText, _headers);
9026
- }
9027
8984
  else if (status !== 200 && status !== 204) {
9028
8985
  const _responseText = response.data;
9029
8986
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -9032,7 +8989,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
9032
8989
  }
9033
8990
  /**
9034
8991
  * @param fontKey (optional)
9035
- * @param tenantId (optional) Tenant identifier
8992
+ * @param tenantId (optional) Tenant ID.
9036
8993
  * @return Success
9037
8994
  */
9038
8995
  getCssFont(fontKey, tenantId, cancelToken) {
@@ -9093,10 +9050,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
9093
9050
  const _responseText = response.data;
9094
9051
  return throwException("Unauthorized", status, _responseText, _headers);
9095
9052
  }
9096
- else if (status === 403) {
9097
- const _responseText = response.data;
9098
- return throwException("Forbidden", status, _responseText, _headers);
9099
- }
9100
9053
  else if (status !== 200 && status !== 204) {
9101
9054
  const _responseText = response.data;
9102
9055
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -9104,7 +9057,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
9104
9057
  return Promise.resolve(null);
9105
9058
  }
9106
9059
  /**
9107
- * @param tenantId (optional) Tenant identifier
9060
+ * @param tenantId (optional) Tenant ID.
9108
9061
  * @return Success
9109
9062
  */
9110
9063
  getFallbackFonts(tenantId, cancelToken) {
@@ -9156,10 +9109,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
9156
9109
  const _responseText = response.data;
9157
9110
  return throwException("Unauthorized", status, _responseText, _headers);
9158
9111
  }
9159
- else if (status === 403) {
9160
- const _responseText = response.data;
9161
- return throwException("Forbidden", status, _responseText, _headers);
9162
- }
9163
9112
  else if (status !== 200 && status !== 204) {
9164
9113
  const _responseText = response.data;
9165
9114
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -9167,7 +9116,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
9167
9116
  return Promise.resolve(null);
9168
9117
  }
9169
9118
  /**
9170
- * @param tenantId (optional) Tenant identifier
9119
+ * @param tenantId (optional) Tenant ID.
9171
9120
  * @param body (optional)
9172
9121
  * @return Success
9173
9122
  */
@@ -9223,10 +9172,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
9223
9172
  const _responseText = response.data;
9224
9173
  return throwException("Unauthorized", status, _responseText, _headers);
9225
9174
  }
9226
- else if (status === 403) {
9227
- const _responseText = response.data;
9228
- return throwException("Forbidden", status, _responseText, _headers);
9229
- }
9230
9175
  else if (status !== 200 && status !== 204) {
9231
9176
  const _responseText = response.data;
9232
9177
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -9234,7 +9179,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
9234
9179
  return Promise.resolve(null);
9235
9180
  }
9236
9181
  /**
9237
- * @param tenantId (optional) Tenant identifier
9182
+ * @param tenantId (optional) Tenant ID.
9238
9183
  * @param body (optional)
9239
9184
  * @return Success
9240
9185
  */
@@ -9290,10 +9235,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
9290
9235
  const _responseText = response.data;
9291
9236
  return throwException("Unauthorized", status, _responseText, _headers);
9292
9237
  }
9293
- else if (status === 403) {
9294
- const _responseText = response.data;
9295
- return throwException("Forbidden", status, _responseText, _headers);
9296
- }
9297
9238
  else if (status !== 200 && status !== 204) {
9298
9239
  const _responseText = response.data;
9299
9240
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -9301,7 +9242,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
9301
9242
  return Promise.resolve(null);
9302
9243
  }
9303
9244
  /**
9304
- * @param tenantId (optional) Tenant identifier
9245
+ * @param tenantId (optional) Tenant ID.
9305
9246
  * @param body (optional)
9306
9247
  * @return Success
9307
9248
  */
@@ -9357,10 +9298,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
9357
9298
  const _responseText = response.data;
9358
9299
  return throwException("Unauthorized", status, _responseText, _headers);
9359
9300
  }
9360
- else if (status === 403) {
9361
- const _responseText = response.data;
9362
- return throwException("Forbidden", status, _responseText, _headers);
9363
- }
9364
9301
  else if (status !== 200 && status !== 204) {
9365
9302
  const _responseText = response.data;
9366
9303
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -9386,7 +9323,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
9386
9323
  * @param colorizeColor (optional)
9387
9324
  * @param rw (optional)
9388
9325
  * @param rh (optional)
9389
- * @param tenantId (optional) Tenant identifier
9326
+ * @param tenantId (optional) Tenant ID.
9390
9327
  * @return Success
9391
9328
  */
9392
9329
  img(f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId, cancelToken) {
@@ -9485,10 +9422,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
9485
9422
  const _responseText = response.data;
9486
9423
  return throwException("Unauthorized", status, _responseText, _headers);
9487
9424
  }
9488
- else if (status === 403) {
9489
- const _responseText = response.data;
9490
- return throwException("Forbidden", status, _responseText, _headers);
9491
- }
9492
9425
  else if (status !== 200 && status !== 204) {
9493
9426
  const _responseText = response.data;
9494
9427
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -9496,7 +9429,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
9496
9429
  return Promise.resolve(null);
9497
9430
  }
9498
9431
  /**
9499
- * @param tenantId (optional) Tenant identifier
9432
+ * @param tenantId (optional) Tenant ID.
9500
9433
  * @return Success
9501
9434
  */
9502
9435
  getLicense(tenantId, cancelToken) {
@@ -9548,10 +9481,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
9548
9481
  const _responseText = response.data;
9549
9482
  return throwException("Unauthorized", status, _responseText, _headers);
9550
9483
  }
9551
- else if (status === 403) {
9552
- const _responseText = response.data;
9553
- return throwException("Forbidden", status, _responseText, _headers);
9554
- }
9555
9484
  else if (status !== 200 && status !== 204) {
9556
9485
  const _responseText = response.data;
9557
9486
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -9560,7 +9489,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
9560
9489
  }
9561
9490
  /**
9562
9491
  * @param f (optional)
9563
- * @param tenantId (optional) Tenant identifier
9492
+ * @param tenantId (optional) Tenant ID.
9564
9493
  * @return Success
9565
9494
  */
9566
9495
  pth(f, tenantId, cancelToken) {
@@ -9625,10 +9554,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
9625
9554
  const _responseText = response.data;
9626
9555
  return throwException("Unauthorized", status, _responseText, _headers);
9627
9556
  }
9628
- else if (status === 403) {
9629
- const _responseText = response.data;
9630
- return throwException("Forbidden", status, _responseText, _headers);
9631
- }
9632
9557
  else if (status !== 200 && status !== 204) {
9633
9558
  const _responseText = response.data;
9634
9559
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -9637,7 +9562,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
9637
9562
  }
9638
9563
  /**
9639
9564
  * @param image (optional)
9640
- * @param tenantId (optional) Tenant identifier
9565
+ * @param tenantId (optional) Tenant ID.
9641
9566
  * @return Success
9642
9567
  */
9643
9568
  resource(image, tenantId, cancelToken) {
@@ -9698,10 +9623,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
9698
9623
  const _responseText = response.data;
9699
9624
  return throwException("Unauthorized", status, _responseText, _headers);
9700
9625
  }
9701
- else if (status === 403) {
9702
- const _responseText = response.data;
9703
- return throwException("Forbidden", status, _responseText, _headers);
9704
- }
9705
9626
  else if (status !== 200 && status !== 204) {
9706
9627
  const _responseText = response.data;
9707
9628
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -9727,7 +9648,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
9727
9648
  * @param colorizeColor (optional)
9728
9649
  * @param rw (optional)
9729
9650
  * @param rh (optional)
9730
- * @param tenantId (optional) Tenant identifier
9651
+ * @param tenantId (optional) Tenant ID.
9731
9652
  * @return Success
9732
9653
  */
9733
9654
  svg(f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId, cancelToken) {
@@ -9826,10 +9747,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
9826
9747
  const _responseText = response.data;
9827
9748
  return throwException("Unauthorized", status, _responseText, _headers);
9828
9749
  }
9829
- else if (status === 403) {
9830
- const _responseText = response.data;
9831
- return throwException("Forbidden", status, _responseText, _headers);
9832
- }
9833
9750
  else if (status !== 200 && status !== 204) {
9834
9751
  const _responseText = response.data;
9835
9752
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -9838,7 +9755,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
9838
9755
  }
9839
9756
  /**
9840
9757
  * @param f (optional)
9841
- * @param tenantId (optional) Tenant identifier
9758
+ * @param tenantId (optional) Tenant ID.
9842
9759
  * @return Success
9843
9760
  */
9844
9761
  txt(f, tenantId, cancelToken) {
@@ -9903,10 +9820,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
9903
9820
  const _responseText = response.data;
9904
9821
  return throwException("Unauthorized", status, _responseText, _headers);
9905
9822
  }
9906
- else if (status === 403) {
9907
- const _responseText = response.data;
9908
- return throwException("Forbidden", status, _responseText, _headers);
9909
- }
9910
9823
  else if (status !== 200 && status !== 204) {
9911
9824
  const _responseText = response.data;
9912
9825
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -9914,7 +9827,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
9914
9827
  return Promise.resolve(null);
9915
9828
  }
9916
9829
  /**
9917
- * @param tenantId (optional) Tenant identifier
9830
+ * @param tenantId (optional) Tenant ID.
9918
9831
  * @param body (optional)
9919
9832
  * @return Success
9920
9833
  */
@@ -9970,10 +9883,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
9970
9883
  const _responseText = response.data;
9971
9884
  return throwException("Unauthorized", status, _responseText, _headers);
9972
9885
  }
9973
- else if (status === 403) {
9974
- const _responseText = response.data;
9975
- return throwException("Forbidden", status, _responseText, _headers);
9976
- }
9977
9886
  else if (status !== 200 && status !== 204) {
9978
9887
  const _responseText = response.data;
9979
9888
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -9981,7 +9890,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
9981
9890
  return Promise.resolve(null);
9982
9891
  }
9983
9892
  /**
9984
- * @param tenantId (optional) Tenant identifier
9893
+ * @param tenantId (optional) Tenant ID.
9985
9894
  * @param body (optional)
9986
9895
  * @return Success
9987
9896
  */
@@ -10037,10 +9946,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
10037
9946
  const _responseText = response.data;
10038
9947
  return throwException("Unauthorized", status, _responseText, _headers);
10039
9948
  }
10040
- else if (status === 403) {
10041
- const _responseText = response.data;
10042
- return throwException("Forbidden", status, _responseText, _headers);
10043
- }
10044
9949
  else if (status !== 200 && status !== 204) {
10045
9950
  const _responseText = response.data;
10046
9951
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -10048,7 +9953,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
10048
9953
  return Promise.resolve(null);
10049
9954
  }
10050
9955
  /**
10051
- * @param tenantId (optional) Tenant identifier
9956
+ * @param tenantId (optional) Tenant ID.
10052
9957
  * @param body (optional)
10053
9958
  * @return Success
10054
9959
  */
@@ -10104,10 +10009,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
10104
10009
  const _responseText = response.data;
10105
10010
  return throwException("Unauthorized", status, _responseText, _headers);
10106
10011
  }
10107
- else if (status === 403) {
10108
- const _responseText = response.data;
10109
- return throwException("Forbidden", status, _responseText, _headers);
10110
- }
10111
10012
  else if (status !== 200 && status !== 204) {
10112
10013
  const _responseText = response.data;
10113
10014
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -10115,7 +10016,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
10115
10016
  return Promise.resolve(null);
10116
10017
  }
10117
10018
  /**
10118
- * @param tenantId (optional) Tenant identifier
10019
+ * @param tenantId (optional) Tenant ID.
10119
10020
  * @param body (optional)
10120
10021
  * @return Success
10121
10022
  */
@@ -10171,10 +10072,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
10171
10072
  const _responseText = response.data;
10172
10073
  return throwException("Unauthorized", status, _responseText, _headers);
10173
10074
  }
10174
- else if (status === 403) {
10175
- const _responseText = response.data;
10176
- return throwException("Forbidden", status, _responseText, _headers);
10177
- }
10178
10075
  else if (status !== 200 && status !== 204) {
10179
10076
  const _responseText = response.data;
10180
10077
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -10182,7 +10079,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
10182
10079
  return Promise.resolve(null);
10183
10080
  }
10184
10081
  /**
10185
- * @param tenantId (optional) Tenant identifier
10082
+ * @param tenantId (optional) Tenant ID.
10186
10083
  * @param body (optional)
10187
10084
  * @return Success
10188
10085
  */
@@ -10238,10 +10135,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
10238
10135
  const _responseText = response.data;
10239
10136
  return throwException("Unauthorized", status, _responseText, _headers);
10240
10137
  }
10241
- else if (status === 403) {
10242
- const _responseText = response.data;
10243
- return throwException("Forbidden", status, _responseText, _headers);
10244
- }
10245
10138
  else if (status !== 200 && status !== 204) {
10246
10139
  const _responseText = response.data;
10247
10140
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -10249,7 +10142,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
10249
10142
  return Promise.resolve(null);
10250
10143
  }
10251
10144
  /**
10252
- * @param tenantId (optional) Tenant identifier
10145
+ * @param tenantId (optional) Tenant ID.
10253
10146
  * @param body (optional)
10254
10147
  * @return Success
10255
10148
  */
@@ -10305,10 +10198,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
10305
10198
  const _responseText = response.data;
10306
10199
  return throwException("Unauthorized", status, _responseText, _headers);
10307
10200
  }
10308
- else if (status === 403) {
10309
- const _responseText = response.data;
10310
- return throwException("Forbidden", status, _responseText, _headers);
10311
- }
10312
10201
  else if (status !== 200 && status !== 204) {
10313
10202
  const _responseText = response.data;
10314
10203
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -10316,7 +10205,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
10316
10205
  return Promise.resolve(null);
10317
10206
  }
10318
10207
  /**
10319
- * @param tenantId (optional) Tenant identifier
10208
+ * @param tenantId (optional) Tenant ID.
10320
10209
  * @param body (optional)
10321
10210
  * @return Success
10322
10211
  */
@@ -10372,10 +10261,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
10372
10261
  const _responseText = response.data;
10373
10262
  return throwException("Unauthorized", status, _responseText, _headers);
10374
10263
  }
10375
- else if (status === 403) {
10376
- const _responseText = response.data;
10377
- return throwException("Forbidden", status, _responseText, _headers);
10378
- }
10379
10264
  else if (status !== 200 && status !== 204) {
10380
10265
  const _responseText = response.data;
10381
10266
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -10383,7 +10268,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
10383
10268
  return Promise.resolve(null);
10384
10269
  }
10385
10270
  /**
10386
- * @param tenantId (optional) Tenant identifier
10271
+ * @param tenantId (optional) Tenant ID.
10387
10272
  * @param body (optional)
10388
10273
  * @return Success
10389
10274
  */
@@ -10439,10 +10324,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
10439
10324
  const _responseText = response.data;
10440
10325
  return throwException("Unauthorized", status, _responseText, _headers);
10441
10326
  }
10442
- else if (status === 403) {
10443
- const _responseText = response.data;
10444
- return throwException("Forbidden", status, _responseText, _headers);
10445
- }
10446
10327
  else if (status !== 200 && status !== 204) {
10447
10328
  const _responseText = response.data;
10448
10329
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -10450,7 +10331,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
10450
10331
  return Promise.resolve(null);
10451
10332
  }
10452
10333
  /**
10453
- * @param tenantId (optional) Tenant identifier
10334
+ * @param tenantId (optional) Tenant ID.
10454
10335
  * @param body (optional)
10455
10336
  * @return Success
10456
10337
  */
@@ -10506,10 +10387,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
10506
10387
  const _responseText = response.data;
10507
10388
  return throwException("Unauthorized", status, _responseText, _headers);
10508
10389
  }
10509
- else if (status === 403) {
10510
- const _responseText = response.data;
10511
- return throwException("Forbidden", status, _responseText, _headers);
10512
- }
10513
10390
  else if (status !== 200 && status !== 204) {
10514
10391
  const _responseText = response.data;
10515
10392
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -10517,7 +10394,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
10517
10394
  return Promise.resolve(null);
10518
10395
  }
10519
10396
  /**
10520
- * @param tenantId (optional) Tenant identifier
10397
+ * @param tenantId (optional) Tenant ID.
10521
10398
  * @param body (optional)
10522
10399
  * @return Success
10523
10400
  */
@@ -10573,10 +10450,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
10573
10450
  const _responseText = response.data;
10574
10451
  return throwException("Unauthorized", status, _responseText, _headers);
10575
10452
  }
10576
- else if (status === 403) {
10577
- const _responseText = response.data;
10578
- return throwException("Forbidden", status, _responseText, _headers);
10579
- }
10580
10453
  else if (status !== 200 && status !== 204) {
10581
10454
  const _responseText = response.data;
10582
10455
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -10584,7 +10457,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
10584
10457
  return Promise.resolve(null);
10585
10458
  }
10586
10459
  /**
10587
- * @param tenantId (optional) Tenant identifier
10460
+ * @param tenantId (optional) Tenant ID.
10588
10461
  * @param body (optional)
10589
10462
  * @return Success
10590
10463
  */
@@ -10640,10 +10513,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
10640
10513
  const _responseText = response.data;
10641
10514
  return throwException("Unauthorized", status, _responseText, _headers);
10642
10515
  }
10643
- else if (status === 403) {
10644
- const _responseText = response.data;
10645
- return throwException("Forbidden", status, _responseText, _headers);
10646
- }
10647
10516
  else if (status !== 200 && status !== 204) {
10648
10517
  const _responseText = response.data;
10649
10518
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -10737,6 +10606,24 @@ var ProductProofInterpolationMode;
10737
10606
  ProductProofInterpolationMode["Anisotropic9"] = "Anisotropic9";
10738
10607
  ProductProofInterpolationMode["Lanczos3"] = "Lanczos3";
10739
10608
  })(ProductProofInterpolationMode = exports.ProductProofInterpolationMode || (exports.ProductProofInterpolationMode = {}));
10609
+ /** Text item content alignment. */
10610
+ var TextAlignment;
10611
+ (function (TextAlignment) {
10612
+ TextAlignment["Left"] = "Left";
10613
+ TextAlignment["Center"] = "Center";
10614
+ TextAlignment["Right"] = "Right";
10615
+ TextAlignment["All"] = "All";
10616
+ TextAlignment["LastLeft"] = "LastLeft";
10617
+ TextAlignment["LastRight"] = "LastRight";
10618
+ TextAlignment["LastCenter"] = "LastCenter";
10619
+ })(TextAlignment = exports.TextAlignment || (exports.TextAlignment = {}));
10620
+ /** Text item content vertical alignment. */
10621
+ var TextVerticalAlignment;
10622
+ (function (TextVerticalAlignment) {
10623
+ TextVerticalAlignment["Top"] = "Top";
10624
+ TextVerticalAlignment["Center"] = "Center";
10625
+ TextVerticalAlignment["Bottom"] = "Bottom";
10626
+ })(TextVerticalAlignment = exports.TextVerticalAlignment || (exports.TextVerticalAlignment = {}));
10740
10627
  class ApiException extends Error {
10741
10628
  message;
10742
10629
  status;