@aurigma/ng-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.
@@ -602,11 +602,6 @@
602
602
  return throwException("Unauthorized", status, _responseText, _headers);
603
603
  }));
604
604
  }
605
- else if (status === 403) {
606
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
607
- return throwException("Forbidden", status, _responseText, _headers);
608
- }));
609
- }
610
605
  else if (status !== 200 && status !== 204) {
611
606
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
612
607
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -691,11 +686,6 @@
691
686
  return throwException("Unauthorized", status, _responseText, _headers);
692
687
  }));
693
688
  }
694
- else if (status === 403) {
695
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
696
- return throwException("Forbidden", status, _responseText, _headers);
697
- }));
698
- }
699
689
  else if (status !== 200 && status !== 204) {
700
690
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
701
691
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -782,11 +772,6 @@
782
772
  return throwException("Unauthorized", status, _responseText, _headers);
783
773
  }));
784
774
  }
785
- else if (status === 403) {
786
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
787
- return throwException("Forbidden", status, _responseText, _headers);
788
- }));
789
- }
790
775
  else if (status !== 200 && status !== 204) {
791
776
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
792
777
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -873,11 +858,6 @@
873
858
  return throwException("Unauthorized", status, _responseText, _headers);
874
859
  }));
875
860
  }
876
- else if (status === 403) {
877
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
878
- return throwException("Forbidden", status, _responseText, _headers);
879
- }));
880
- }
881
861
  else if (status !== 200 && status !== 204) {
882
862
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
883
863
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -962,11 +942,6 @@
962
942
  return throwException("Unauthorized", status, _responseText, _headers);
963
943
  }));
964
944
  }
965
- else if (status === 403) {
966
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
967
- return throwException("Forbidden", status, _responseText, _headers);
968
- }));
969
- }
970
945
  else if (status !== 200 && status !== 204) {
971
946
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
972
947
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -1042,11 +1017,6 @@
1042
1017
  return throwException("Unauthorized", status, _responseText, _headers);
1043
1018
  }));
1044
1019
  }
1045
- else if (status === 403) {
1046
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1047
- return throwException("Forbidden", status, _responseText, _headers);
1048
- }));
1049
- }
1050
1020
  else if (status !== 200 && status !== 204) {
1051
1021
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1052
1022
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -1126,11 +1096,6 @@
1126
1096
  return throwException("Unauthorized", status, _responseText, _headers);
1127
1097
  }));
1128
1098
  }
1129
- else if (status === 403) {
1130
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1131
- return throwException("Forbidden", status, _responseText, _headers);
1132
- }));
1133
- }
1134
1099
  else if (status !== 200 && status !== 204) {
1135
1100
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1136
1101
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -1210,11 +1175,6 @@
1210
1175
  return throwException("Unauthorized", status, _responseText, _headers);
1211
1176
  }));
1212
1177
  }
1213
- else if (status === 403) {
1214
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1215
- return throwException("Forbidden", status, _responseText, _headers);
1216
- }));
1217
- }
1218
1178
  else if (status !== 200 && status !== 204) {
1219
1179
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1220
1180
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -1294,11 +1254,6 @@
1294
1254
  return throwException("Unauthorized", status, _responseText, _headers);
1295
1255
  }));
1296
1256
  }
1297
- else if (status === 403) {
1298
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1299
- return throwException("Forbidden", status, _responseText, _headers);
1300
- }));
1301
- }
1302
1257
  else if (status !== 200 && status !== 204) {
1303
1258
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1304
1259
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -1439,11 +1394,6 @@
1439
1394
  return throwException("Unauthorized", status, _responseText, _headers);
1440
1395
  }));
1441
1396
  }
1442
- else if (status === 403) {
1443
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1444
- return throwException("Forbidden", status, _responseText, _headers);
1445
- }));
1446
- }
1447
1397
  else if (status !== 200 && status !== 204) {
1448
1398
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1449
1399
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -1519,11 +1469,6 @@
1519
1469
  return throwException("Unauthorized", status, _responseText, _headers);
1520
1470
  }));
1521
1471
  }
1522
- else if (status === 403) {
1523
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1524
- return throwException("Forbidden", status, _responseText, _headers);
1525
- }));
1526
- }
1527
1472
  else if (status !== 200 && status !== 204) {
1528
1473
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1529
1474
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -1613,11 +1558,6 @@
1613
1558
  return throwException("Unauthorized", status, _responseText, _headers);
1614
1559
  }));
1615
1560
  }
1616
- else if (status === 403) {
1617
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1618
- return throwException("Forbidden", status, _responseText, _headers);
1619
- }));
1620
- }
1621
1561
  else if (status !== 200 && status !== 204) {
1622
1562
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1623
1563
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -1702,11 +1642,6 @@
1702
1642
  return throwException("Unauthorized", status, _responseText, _headers);
1703
1643
  }));
1704
1644
  }
1705
- else if (status === 403) {
1706
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1707
- return throwException("Forbidden", status, _responseText, _headers);
1708
- }));
1709
- }
1710
1645
  else if (status !== 200 && status !== 204) {
1711
1646
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1712
1647
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -1847,11 +1782,6 @@
1847
1782
  return throwException("Unauthorized", status, _responseText, _headers);
1848
1783
  }));
1849
1784
  }
1850
- else if (status === 403) {
1851
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1852
- return throwException("Forbidden", status, _responseText, _headers);
1853
- }));
1854
- }
1855
1785
  else if (status !== 200 && status !== 204) {
1856
1786
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1857
1787
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -1941,11 +1871,6 @@
1941
1871
  return throwException("Unauthorized", status, _responseText, _headers);
1942
1872
  }));
1943
1873
  }
1944
- else if (status === 403) {
1945
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1946
- return throwException("Forbidden", status, _responseText, _headers);
1947
- }));
1948
- }
1949
1874
  else if (status !== 200 && status !== 204) {
1950
1875
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1951
1876
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -2025,11 +1950,6 @@
2025
1950
  return throwException("Unauthorized", status, _responseText, _headers);
2026
1951
  }));
2027
1952
  }
2028
- else if (status === 403) {
2029
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2030
- return throwException("Forbidden", status, _responseText, _headers);
2031
- }));
2032
- }
2033
1953
  else if (status !== 200 && status !== 204) {
2034
1954
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2035
1955
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -2109,11 +2029,6 @@
2109
2029
  return throwException("Unauthorized", status, _responseText, _headers);
2110
2030
  }));
2111
2031
  }
2112
- else if (status === 403) {
2113
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2114
- return throwException("Forbidden", status, _responseText, _headers);
2115
- }));
2116
- }
2117
2032
  else if (status !== 200 && status !== 204) {
2118
2033
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2119
2034
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -2193,11 +2108,6 @@
2193
2108
  return throwException("Unauthorized", status, _responseText, _headers);
2194
2109
  }));
2195
2110
  }
2196
- else if (status === 403) {
2197
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2198
- return throwException("Forbidden", status, _responseText, _headers);
2199
- }));
2200
- }
2201
2111
  else if (status !== 200 && status !== 204) {
2202
2112
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2203
2113
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -2277,11 +2187,6 @@
2277
2187
  return throwException("Unauthorized", status, _responseText, _headers);
2278
2188
  }));
2279
2189
  }
2280
- else if (status === 403) {
2281
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2282
- return throwException("Forbidden", status, _responseText, _headers);
2283
- }));
2284
- }
2285
2190
  else if (status !== 200 && status !== 204) {
2286
2191
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2287
2192
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -2361,11 +2266,6 @@
2361
2266
  return throwException("Unauthorized", status, _responseText, _headers);
2362
2267
  }));
2363
2268
  }
2364
- else if (status === 403) {
2365
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2366
- return throwException("Forbidden", status, _responseText, _headers);
2367
- }));
2368
- }
2369
2269
  else if (status !== 200 && status !== 204) {
2370
2270
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2371
2271
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -2445,11 +2345,6 @@
2445
2345
  return throwException("Unauthorized", status, _responseText, _headers);
2446
2346
  }));
2447
2347
  }
2448
- else if (status === 403) {
2449
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2450
- return throwException("Forbidden", status, _responseText, _headers);
2451
- }));
2452
- }
2453
2348
  else if (status !== 200 && status !== 204) {
2454
2349
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2455
2350
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -2529,11 +2424,6 @@
2529
2424
  return throwException("Unauthorized", status, _responseText, _headers);
2530
2425
  }));
2531
2426
  }
2532
- else if (status === 403) {
2533
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2534
- return throwException("Forbidden", status, _responseText, _headers);
2535
- }));
2536
- }
2537
2427
  else if (status !== 200 && status !== 204) {
2538
2428
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2539
2429
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -2613,11 +2503,6 @@
2613
2503
  return throwException("Unauthorized", status, _responseText, _headers);
2614
2504
  }));
2615
2505
  }
2616
- else if (status === 403) {
2617
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2618
- return throwException("Forbidden", status, _responseText, _headers);
2619
- }));
2620
- }
2621
2506
  else if (status !== 200 && status !== 204) {
2622
2507
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2623
2508
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -2697,11 +2582,6 @@
2697
2582
  return throwException("Unauthorized", status, _responseText, _headers);
2698
2583
  }));
2699
2584
  }
2700
- else if (status === 403) {
2701
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2702
- return throwException("Forbidden", status, _responseText, _headers);
2703
- }));
2704
- }
2705
2585
  else if (status !== 200 && status !== 204) {
2706
2586
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2707
2587
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -2781,11 +2661,6 @@
2781
2661
  return throwException("Unauthorized", status, _responseText, _headers);
2782
2662
  }));
2783
2663
  }
2784
- else if (status === 403) {
2785
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2786
- return throwException("Forbidden", status, _responseText, _headers);
2787
- }));
2788
- }
2789
2664
  else if (status !== 200 && status !== 204) {
2790
2665
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2791
2666
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -2865,11 +2740,6 @@
2865
2740
  return throwException("Unauthorized", status, _responseText, _headers);
2866
2741
  }));
2867
2742
  }
2868
- else if (status === 403) {
2869
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2870
- return throwException("Forbidden", status, _responseText, _headers);
2871
- }));
2872
- }
2873
2743
  else if (status !== 200 && status !== 204) {
2874
2744
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2875
2745
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -2903,7 +2773,7 @@
2903
2773
  * Renders a preview of an image with the specified parameters.
2904
2774
  * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
2905
2775
  (default value is 'false').
2906
- * @param tenantId (optional) Tenant identifier
2776
+ * @param tenantId (optional) Tenant ID.
2907
2777
  * @param body (optional) Render model with preview parameters.
2908
2778
  * @return Success
2909
2779
  */
@@ -3000,7 +2870,7 @@
3000
2870
  * Renders a preview of an uploaded image with the specified parameters.
3001
2871
  * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
3002
2872
  (default value is 'false').
3003
- * @param tenantId (optional) Tenant identifier
2873
+ * @param tenantId (optional) Tenant ID.
3004
2874
  * @param sourceFile (optional)
3005
2875
  * @param mockupOwnerId (optional)
3006
2876
  * @param mockupId (optional)
@@ -3114,7 +2984,7 @@
3114
2984
  };
3115
2985
  /**
3116
2986
  * Renders a preview of an uploaded image with the specified parameters and saves rendering result as resource.
3117
- * @param tenantId (optional) Tenant identifier
2987
+ * @param tenantId (optional) Tenant ID.
3118
2988
  * @param resourceOwnerId (optional)
3119
2989
  * @param resourceNamespace (optional)
3120
2990
  * @param resourceName (optional)
@@ -3257,7 +3127,7 @@
3257
3127
  * Renders a preview of a web image with the specified parameters.
3258
3128
  * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
3259
3129
  (default value is 'false').
3260
- * @param tenantId (optional) Tenant identifier
3130
+ * @param tenantId (optional) Tenant ID.
3261
3131
  * @param body (optional) Render model with preview parameters.
3262
3132
  * @return Success
3263
3133
  */
@@ -3352,7 +3222,7 @@
3352
3222
  };
3353
3223
  /**
3354
3224
  * Renders a preview of a web image with the specified parameters and saves rendering result as resource.
3355
- * @param tenantId (optional) Tenant identifier
3225
+ * @param tenantId (optional) Tenant ID.
3356
3226
  * @param body (optional) Render model with preview parameters.
3357
3227
  * @return Success
3358
3228
  */
@@ -3453,7 +3323,7 @@
3453
3323
  };
3454
3324
  /**
3455
3325
  * Renders a preview of an image with the specified parameters and saves rendering result as resource.
3456
- * @param tenantId (optional) Tenant identifier
3326
+ * @param tenantId (optional) Tenant ID.
3457
3327
  * @param body (optional) Render model with preview parameters.
3458
3328
  * @return Success
3459
3329
  */
@@ -3578,7 +3448,7 @@
3578
3448
  * Returns a 3D-Mockup attributes.
3579
3449
  * @param id 3D-Mockup identifier.
3580
3450
  * @param ownerId (optional) Private mockup owner identifier.
3581
- * @param tenantId (optional) Tenant identifier
3451
+ * @param tenantId (optional) Tenant ID.
3582
3452
  * @return Success
3583
3453
  */
3584
3454
  DesignAtomsMockups3dApiClient.prototype.getAttributes = function (id, ownerId, tenantId) {
@@ -3682,7 +3552,7 @@
3682
3552
  * Returns a 3D-Mockup content as protobuf binary stream.
3683
3553
  * @param id 3D-Mockup identifier.
3684
3554
  * @param ownerId (optional) Private mockup owner identifier.
3685
- * @param tenantId (optional) Tenant identifier
3555
+ * @param tenantId (optional) Tenant ID.
3686
3556
  * @return Success
3687
3557
  */
3688
3558
  DesignAtomsMockups3dApiClient.prototype.getContentAsProtobuf = function (id, ownerId, tenantId) {
@@ -3785,7 +3655,7 @@
3785
3655
  * Returns a 3D-Mockup geometry as binary stream.
3786
3656
  * @param id 3D-Mockup identifier.
3787
3657
  * @param ownerId (optional) Private mockup owner identifier.
3788
- * @param tenantId (optional) Tenant identifier
3658
+ * @param tenantId (optional) Tenant ID.
3789
3659
  * @return Success
3790
3660
  */
3791
3661
  DesignAtomsMockups3dApiClient.prototype.getGeometryFile = function (id, ownerId, tenantId) {
@@ -3909,7 +3779,7 @@
3909
3779
  /**
3910
3780
  * Returns a closest color to provided color in a specified palette.
3911
3781
  * @param paletteUID (optional) Palette UID.
3912
- * @param tenantId (optional) Tenant identifier
3782
+ * @param tenantId (optional) Tenant ID.
3913
3783
  * @param body (optional) Source color.
3914
3784
  * @return Success
3915
3785
  */
@@ -4021,7 +3891,7 @@
4021
3891
  * Returns a serialized palette model by its identifier or UID.
4022
3892
  * @param id (optional) Palette identifier.
4023
3893
  * @param uid (optional) Palette UID.
4024
- * @param tenantId (optional) Tenant identifier
3894
+ * @param tenantId (optional) Tenant ID.
4025
3895
  * @return Success
4026
3896
  */
4027
3897
  DesignAtomsPalettesApiClient.prototype.getPaletteModel = function (id, uid, tenantId) {
@@ -4153,7 +4023,7 @@
4153
4023
  * Patches a print-product of the specified design file.
4154
4024
  * @param id Design identifier.
4155
4025
  * @param privateStorageOwner (optional) Private storage owner identifier.
4156
- * @param tenantId (optional) Tenant identifier
4026
+ * @param tenantId (optional) Tenant ID.
4157
4027
  * @param patchType (optional)
4158
4028
  * @param replaceImageItemFileInfo_itemName (optional)
4159
4029
  * @param replaceImageItemFileInfo_sourceFile (optional)
@@ -4176,9 +4046,7 @@
4176
4046
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
4177
4047
  url_ = url_.replace(/[?&]$/, "");
4178
4048
  var content_ = new FormData();
4179
- if (patchType === null || patchType === undefined)
4180
- throw new Error("The parameter 'patchType' cannot be null.");
4181
- else
4049
+ if (patchType !== null && patchType !== undefined)
4182
4050
  content_.append("patchType", patchType.toString());
4183
4051
  if (replaceImageItemFileInfo_itemName !== null && replaceImageItemFileInfo_itemName !== undefined)
4184
4052
  content_.append("replaceImageItemFileInfo.itemName", replaceImageItemFileInfo_itemName.toString());
@@ -4186,9 +4054,7 @@
4186
4054
  content_.append("replaceImageItemFileInfo.sourceFile", replaceImageItemFileInfo_sourceFile.data, replaceImageItemFileInfo_sourceFile.fileName ? replaceImageItemFileInfo_sourceFile.fileName : "replaceImageItemFileInfo.sourceFile");
4187
4055
  if (replacePlaceholderItemContentInfo_placeholderItemName !== null && replacePlaceholderItemContentInfo_placeholderItemName !== undefined)
4188
4056
  content_.append("replacePlaceholderItemContentInfo.placeholderItemName", replacePlaceholderItemContentInfo_placeholderItemName.toString());
4189
- if (replacePlaceholderItemContentInfo_newContentType === null || replacePlaceholderItemContentInfo_newContentType === undefined)
4190
- throw new Error("The parameter 'replacePlaceholderItemContentInfo_newContentType' cannot be null.");
4191
- else
4057
+ if (replacePlaceholderItemContentInfo_newContentType !== null && replacePlaceholderItemContentInfo_newContentType !== undefined)
4192
4058
  content_.append("replacePlaceholderItemContentInfo.newContentType", replacePlaceholderItemContentInfo_newContentType.toString());
4193
4059
  if (replacePlaceholderItemContentInfo_sourceFile !== null && replacePlaceholderItemContentInfo_sourceFile !== undefined)
4194
4060
  content_.append("replacePlaceholderItemContentInfo.sourceFile", replacePlaceholderItemContentInfo_sourceFile.data, replacePlaceholderItemContentInfo_sourceFile.fileName ? replacePlaceholderItemContentInfo_sourceFile.fileName : "replacePlaceholderItemContentInfo.sourceFile");
@@ -4271,7 +4137,7 @@
4271
4137
  * @param id Design identifier.
4272
4138
  * @param surfaceId (optional) Print-product surface identifier.
4273
4139
  * @param privateStorageOwner (optional) Private storage owner identifier.
4274
- * @param tenantId (optional) Tenant identifier
4140
+ * @param tenantId (optional) Tenant ID.
4275
4141
  * @return Success
4276
4142
  */
4277
4143
  DesignAtomsPrintProductApiClient.prototype.getDesignSurfaceContainers = function (id, surfaceId, privateStorageOwner, tenantId) {
@@ -4371,7 +4237,7 @@
4371
4237
  * @param id Design identifier.
4372
4238
  * @param containerId Print-product container identifier.
4373
4239
  * @param privateStorageOwner (optional) Private storage owner identifier.
4374
- * @param tenantId (optional) Tenant identifier
4240
+ * @param tenantId (optional) Tenant ID.
4375
4241
  * @return No Content
4376
4242
  */
4377
4243
  DesignAtomsPrintProductApiClient.prototype.deleteDesignSurfaceContainer = function (id, containerId, privateStorageOwner, tenantId) {
@@ -4475,7 +4341,7 @@
4475
4341
  * @param id Design identifier.
4476
4342
  * @param containerId Print-product container identifier.
4477
4343
  * @param privateStorageOwner (optional) Private storage owner identifier.
4478
- * @param tenantId (optional) Tenant identifier
4344
+ * @param tenantId (optional) Tenant ID.
4479
4345
  * @return Success
4480
4346
  */
4481
4347
  DesignAtomsPrintProductApiClient.prototype.getDesignSurfaceContainerModel = function (id, containerId, privateStorageOwner, tenantId) {
@@ -4583,7 +4449,7 @@
4583
4449
  * @param id Design identifier.
4584
4450
  * @param containerId Print-product container identifier.
4585
4451
  * @param privateStorageOwner (optional) Private storage owner identifier.
4586
- * @param tenantId (optional) Tenant identifier
4452
+ * @param tenantId (optional) Tenant ID.
4587
4453
  * @param body (optional) Json-serialized model of a print-product container.
4588
4454
  * @return Success
4589
4455
  */
@@ -4706,7 +4572,7 @@
4706
4572
  * @param top (optional) Y axis position.
4707
4573
  * @param left (optional) X axis position.
4708
4574
  * @param privateStorageOwner (optional) Private storage owner identifier.
4709
- * @param tenantId (optional) Tenant identifier
4575
+ * @param tenantId (optional) Tenant ID.
4710
4576
  * @param body (optional) Json-serialized model of a new print-product container.
4711
4577
  * @return Success
4712
4578
  */
@@ -4829,7 +4695,7 @@
4829
4695
  * @param containerId (optional) Print-product container identifier.
4830
4696
  * @param parentItemId (optional) Print-product item identifier.
4831
4697
  * @param privateStorageOwner (optional) Private storage owner identifier.
4832
- * @param tenantId (optional) Tenant identifier
4698
+ * @param tenantId (optional) Tenant ID.
4833
4699
  * @return Success
4834
4700
  */
4835
4701
  DesignAtomsPrintProductApiClient.prototype.getDesignSurfaceItems = function (id, surfaceId, containerId, parentItemId, privateStorageOwner, tenantId) {
@@ -4933,7 +4799,7 @@
4933
4799
  * @param id Design identifier.
4934
4800
  * @param itemId Print-product item identifier.
4935
4801
  * @param privateStorageOwner (optional) Private storage owner identifier.
4936
- * @param tenantId (optional) Tenant identifier
4802
+ * @param tenantId (optional) Tenant ID.
4937
4803
  * @return No Content
4938
4804
  */
4939
4805
  DesignAtomsPrintProductApiClient.prototype.deleteDesignSurfaceItem = function (id, itemId, privateStorageOwner, tenantId) {
@@ -5037,7 +4903,7 @@
5037
4903
  * @param id Design identifier.
5038
4904
  * @param itemId Print-product item identifier.
5039
4905
  * @param privateStorageOwner (optional) Private storage owner identifier.
5040
- * @param tenantId (optional) Tenant identifier
4906
+ * @param tenantId (optional) Tenant ID.
5041
4907
  * @return Success
5042
4908
  */
5043
4909
  DesignAtomsPrintProductApiClient.prototype.getDesignSurfaceItemModel = function (id, itemId, privateStorageOwner, tenantId) {
@@ -5145,7 +5011,7 @@
5145
5011
  * @param id Design identifier.
5146
5012
  * @param itemId Print-product item identifier.
5147
5013
  * @param privateStorageOwner (optional) Private storage owner identifier.
5148
- * @param tenantId (optional) Tenant identifier
5014
+ * @param tenantId (optional) Tenant ID.
5149
5015
  * @param body (optional) Json-serialized model of a print-product item.
5150
5016
  * @return Success
5151
5017
  */
@@ -5268,7 +5134,7 @@
5268
5134
  * @param top (optional) Y axis position.
5269
5135
  * @param left (optional) X axis position.
5270
5136
  * @param privateStorageOwner (optional) Private storage owner identifier.
5271
- * @param tenantId (optional) Tenant identifier
5137
+ * @param tenantId (optional) Tenant ID.
5272
5138
  * @param body (optional) Json-serialized model of a new print-product item.
5273
5139
  * @return Success
5274
5140
  */
@@ -5388,7 +5254,7 @@
5388
5254
  * Returns a print-product of the specified design file as a json-serialized model.
5389
5255
  * @param id Design identifier.
5390
5256
  * @param privateStorageOwner (optional) Private storage owner identifier.
5391
- * @param tenantId (optional) Tenant identifier
5257
+ * @param tenantId (optional) Tenant ID.
5392
5258
  * @return Success
5393
5259
  */
5394
5260
  DesignAtomsPrintProductApiClient.prototype.getDesignProductModel = function (id, privateStorageOwner, tenantId) {
@@ -5485,7 +5351,7 @@
5485
5351
  * Updates a print-product provided as a json-serialized model is the specified design file.
5486
5352
  * @param id Design identifier.
5487
5353
  * @param privateStorageOwner (optional) Private storage owner identifier.
5488
- * @param tenantId (optional) Tenant identifier
5354
+ * @param tenantId (optional) Tenant ID.
5489
5355
  * @param body (optional) Json-serialized model of a print-product .
5490
5356
  * @return No Content
5491
5357
  */
@@ -5584,7 +5450,7 @@
5584
5450
  * @param id Design identifier.
5585
5451
  * @param surfaceId (optional)
5586
5452
  * @param privateStorageOwner (optional) Private storage owner identifier.
5587
- * @param tenantId (optional) Tenant identifier
5453
+ * @param tenantId (optional) Tenant ID.
5588
5454
  * @return Success
5589
5455
  */
5590
5456
  DesignAtomsPrintProductApiClient.prototype.getDesignPrintAreas = function (id, surfaceId, privateStorageOwner, tenantId) {
@@ -5684,7 +5550,7 @@
5684
5550
  Print-area identifier will be reset by auto-generated value to prevent identifiers collisions.
5685
5551
  * @param id Design identifier.
5686
5552
  * @param privateStorageOwner (optional) Private storage owner identifier.
5687
- * @param tenantId (optional) Tenant identifier
5553
+ * @param tenantId (optional) Tenant ID.
5688
5554
  * @param body (optional) Print-area description model.
5689
5555
  * @return Success
5690
5556
  */
@@ -5793,7 +5659,7 @@
5793
5659
  * @param id Design identifier.
5794
5660
  * @param printAreaId Design print-area identifier.
5795
5661
  * @param privateStorageOwner (optional) Private storage owner identifier.
5796
- * @param tenantId (optional) Tenant identifier
5662
+ * @param tenantId (optional) Tenant ID.
5797
5663
  * @param body (optional) Print-area description model.
5798
5664
  * @return Success
5799
5665
  */
@@ -5912,7 +5778,7 @@
5912
5778
  * @param id Design identifier.
5913
5779
  * @param printAreaId Design print-area identifier.
5914
5780
  * @param privateStorageOwner (optional) Private storage owner identifier.
5915
- * @param tenantId (optional) Tenant identifier
5781
+ * @param tenantId (optional) Tenant ID.
5916
5782
  * @return No Content
5917
5783
  */
5918
5784
  DesignAtomsPrintProductApiClient.prototype.deleteDesignPrintArea = function (id, printAreaId, privateStorageOwner, tenantId) {
@@ -6016,7 +5882,7 @@
6016
5882
  * @param id Design identifier.
6017
5883
  * @param printAreaId Design print-area identifier.
6018
5884
  * @param privateStorageOwner (optional) Private storage owner identifier.
6019
- * @param tenantId (optional) Tenant identifier
5885
+ * @param tenantId (optional) Tenant ID.
6020
5886
  * @return Success
6021
5887
  */
6022
5888
  DesignAtomsPrintProductApiClient.prototype.getDesignPrintAreaModel = function (id, printAreaId, privateStorageOwner, tenantId) {
@@ -6124,7 +5990,7 @@
6124
5990
  * @param id Design identifier.
6125
5991
  * @param printAreaId Design print-area identifier.
6126
5992
  * @param privateStorageOwner (optional) Private storage owner identifier.
6127
- * @param tenantId (optional) Tenant identifier
5993
+ * @param tenantId (optional) Tenant ID.
6128
5994
  * @param body (optional) Json-serialized model of a print-area.
6129
5995
  * @return Success
6130
5996
  */
@@ -6244,7 +6110,7 @@
6244
6110
  * @param id Design identifier.
6245
6111
  * @param surfaceId (optional) Parent surface identifier.
6246
6112
  * @param privateStorageOwner (optional) Private storage owner identifier.
6247
- * @param tenantId (optional) Tenant identifier
6113
+ * @param tenantId (optional) Tenant ID.
6248
6114
  * @param body (optional) Json serialized model of a print-area.
6249
6115
  * @return Success
6250
6116
  */
@@ -6354,7 +6220,7 @@
6354
6220
  * Returns a list of print-product surfaces descriptions of the specified design file.
6355
6221
  * @param id Design identifier.
6356
6222
  * @param privateStorageOwner (optional) Private storage owner identifier.
6357
- * @param tenantId (optional) Tenant identifier
6223
+ * @param tenantId (optional) Tenant ID.
6358
6224
  * @return Success
6359
6225
  */
6360
6226
  DesignAtomsPrintProductApiClient.prototype.getDesignSurfaces = function (id, privateStorageOwner, tenantId) {
@@ -6452,7 +6318,7 @@
6452
6318
  * @param id Design identifier.
6453
6319
  * @param surfaceId Print-product surface identifier.
6454
6320
  * @param privateStorageOwner (optional) Private storage owner identifier.
6455
- * @param tenantId (optional) Tenant identifier
6321
+ * @param tenantId (optional) Tenant ID.
6456
6322
  * @return No Content
6457
6323
  */
6458
6324
  DesignAtomsPrintProductApiClient.prototype.deleteDesignSurface = function (id, surfaceId, privateStorageOwner, tenantId) {
@@ -6556,7 +6422,7 @@
6556
6422
  * @param id Design identifier.
6557
6423
  * @param surfaceId Print product surface identifier.
6558
6424
  * @param privateStorageOwner (optional) Private storage owner identifier.
6559
- * @param tenantId (optional) Tenant identifier
6425
+ * @param tenantId (optional) Tenant ID.
6560
6426
  * @return Success
6561
6427
  */
6562
6428
  DesignAtomsPrintProductApiClient.prototype.getDesignSurfaceDownMockup = function (id, surfaceId, privateStorageOwner, tenantId) {
@@ -6671,7 +6537,7 @@
6671
6537
  * @param id Design identifier.
6672
6538
  * @param surfaceId Print-product surface identifier.
6673
6539
  * @param privateStorageOwner (optional) Private storage owner identifier.
6674
- * @param tenantId (optional) Tenant identifier
6540
+ * @param tenantId (optional) Tenant ID.
6675
6541
  * @param position_top (optional)
6676
6542
  * @param position_left (optional)
6677
6543
  * @param sourceFile (optional)
@@ -6801,7 +6667,7 @@
6801
6667
  * @param id Design identifier.
6802
6668
  * @param surfaceId Print-product surface identifier.
6803
6669
  * @param privateStorageOwner (optional) Private storage owner identifier.
6804
- * @param tenantId (optional) Tenant identifier
6670
+ * @param tenantId (optional) Tenant ID.
6805
6671
  * @return Success
6806
6672
  */
6807
6673
  DesignAtomsPrintProductApiClient.prototype.getDesignSurfaceDownMockupContent = function (id, surfaceId, privateStorageOwner, tenantId) {
@@ -6915,7 +6781,7 @@
6915
6781
  * @param id Design identifier.
6916
6782
  * @param surfaceId Print-product surface identifier.
6917
6783
  * @param privateStorageOwner (optional) Private storage owner identifier.
6918
- * @param tenantId (optional) Tenant identifier
6784
+ * @param tenantId (optional) Tenant ID.
6919
6785
  * @return Success
6920
6786
  */
6921
6787
  DesignAtomsPrintProductApiClient.prototype.getDesignSurfaceUpMockup = function (id, surfaceId, privateStorageOwner, tenantId) {
@@ -7030,7 +6896,7 @@
7030
6896
  * @param id Design identifier.
7031
6897
  * @param surfaceId Print-product surface identifier.
7032
6898
  * @param privateStorageOwner (optional) Private storage owner identifier.
7033
- * @param tenantId (optional) Tenant identifier
6899
+ * @param tenantId (optional) Tenant ID.
7034
6900
  * @param position_top (optional)
7035
6901
  * @param position_left (optional)
7036
6902
  * @param sourceFile (optional)
@@ -7160,7 +7026,7 @@
7160
7026
  * @param id Design identifier.
7161
7027
  * @param surfaceId Print-product surface identifier.
7162
7028
  * @param privateStorageOwner (optional) Private storage owner identifier.
7163
- * @param tenantId (optional) Tenant identifier
7029
+ * @param tenantId (optional) Tenant ID.
7164
7030
  * @return Success
7165
7031
  */
7166
7032
  DesignAtomsPrintProductApiClient.prototype.getDesignSurfaceUpMockupContent = function (id, surfaceId, privateStorageOwner, tenantId) {
@@ -7274,7 +7140,7 @@
7274
7140
  * @param id Design identifier.
7275
7141
  * @param surfaceId Surface identifier.
7276
7142
  * @param privateStorageOwner (optional) Private storage owner identifier.
7277
- * @param tenantId (optional) Tenant identifier
7143
+ * @param tenantId (optional) Tenant ID.
7278
7144
  * @return Success
7279
7145
  */
7280
7146
  DesignAtomsPrintProductApiClient.prototype.getDesignSurfaceModel = function (id, surfaceId, privateStorageOwner, tenantId) {
@@ -7383,7 +7249,7 @@
7383
7249
  * @param id Design identifier.
7384
7250
  * @param surfaceId Print-product surface identifier.
7385
7251
  * @param privateStorageOwner (optional) Private storage owner identifier.
7386
- * @param tenantId (optional) Tenant identifier
7252
+ * @param tenantId (optional) Tenant ID.
7387
7253
  * @param body (optional) Json-serialized model of a print-product surface.
7388
7254
  * @return Success
7389
7255
  */
@@ -7503,7 +7369,7 @@
7503
7369
  * @param id Design identifier.
7504
7370
  * @param index (optional) Surface index within the surfaces list of a design.
7505
7371
  * @param privateStorageOwner (optional) Private storage owner identifier.
7506
- * @param tenantId (optional) Tenant identifier
7372
+ * @param tenantId (optional) Tenant ID.
7507
7373
  * @param body (optional) Json-serialized model of a print-prouduct surface.
7508
7374
  * @return Success
7509
7375
  */
@@ -7633,7 +7499,7 @@
7633
7499
  }
7634
7500
  /**
7635
7501
  * Apply effects to print-product item image.
7636
- * @param tenantId (optional) Tenant identifier
7502
+ * @param tenantId (optional) Tenant ID.
7637
7503
  * @param body (optional)
7638
7504
  * @return Success
7639
7505
  */
@@ -7720,7 +7586,7 @@
7720
7586
  };
7721
7587
  /**
7722
7588
  * Extracts print-product item image.
7723
- * @param tenantId (optional) Tenant identifier
7589
+ * @param tenantId (optional) Tenant ID.
7724
7590
  * @param body (optional) Extraction parameters.
7725
7591
  * @return Success
7726
7592
  */
@@ -7806,7 +7672,7 @@
7806
7672
  /**
7807
7673
  * Flattens print-product items.
7808
7674
  * @param paletteUID (optional)
7809
- * @param tenantId (optional) Tenant identifier
7675
+ * @param tenantId (optional) Tenant ID.
7810
7676
  * @param body (optional) List of print-product items to flatten.
7811
7677
  * @return Success
7812
7678
  */
@@ -7896,7 +7762,7 @@
7896
7762
  /**
7897
7763
  * Creates print-product item from input image file.
7898
7764
  * @param itemType (optional) Desired item type.
7899
- * @param tenantId (optional) Tenant identifier
7765
+ * @param tenantId (optional) Tenant ID.
7900
7766
  * @param sourceFile (optional)
7901
7767
  * @param paletteUID (optional)
7902
7768
  * @param preserveOriginalFile (optional)
@@ -8007,7 +7873,7 @@
8007
7873
  /**
8008
7874
  * Creates multiple print-product items from input image files.
8009
7875
  * @param itemType (optional) Desired print-product items type.
8010
- * @param tenantId (optional) Tenant identifier
7876
+ * @param tenantId (optional) Tenant ID.
8011
7877
  * @param sourceFiles (optional)
8012
7878
  * @param paletteUID (optional)
8013
7879
  * @param preserveOriginalFile (optional)
@@ -8118,7 +7984,7 @@
8118
7984
  /**
8119
7985
  * Creates print-product item from image file taken from storage.
8120
7986
  * @param itemType (optional) Desired item type.
8121
- * @param tenantId (optional) Tenant identifier
7987
+ * @param tenantId (optional) Tenant ID.
8122
7988
  * @param body (optional) Operation parameters.
8123
7989
  * @return Success
8124
7990
  */
@@ -8222,7 +8088,7 @@
8222
8088
  /**
8223
8089
  * Creates multiple print-product items from the specified image files in storage.
8224
8090
  * @param itemType (optional) Desired items type.
8225
- * @param tenantId (optional) Tenant identifier
8091
+ * @param tenantId (optional) Tenant ID.
8226
8092
  * @param body (optional) Operation parameters.
8227
8093
  * @return Success
8228
8094
  */
@@ -8326,7 +8192,7 @@
8326
8192
  /**
8327
8193
  * Creates print-product item from remote web image provided by URL.
8328
8194
  * @param itemType (optional) Desired item type.
8329
- * @param tenantId (optional) Tenant identifier
8195
+ * @param tenantId (optional) Tenant ID.
8330
8196
  * @param body (optional) Operation parameters.
8331
8197
  * @return Success
8332
8198
  */
@@ -8430,7 +8296,7 @@
8430
8296
  /**
8431
8297
  * Creates multiple print-product items from remote web images provided by URLs list.
8432
8298
  * @param itemType (optional) Desired items type.
8433
- * @param tenantId (optional) Tenant identifier
8299
+ * @param tenantId (optional) Tenant ID.
8434
8300
  * @param body (optional) Operation parameters.
8435
8301
  * @return Success
8436
8302
  */
@@ -8556,7 +8422,7 @@
8556
8422
  /**
8557
8423
  * Creates new design file with specified parameters and saves it in storage.
8558
8424
  * @param privateStorageOwner (optional) Private storage owner identifier.
8559
- * @param tenantId (optional) Tenant identifier
8425
+ * @param tenantId (optional) Tenant ID.
8560
8426
  * @param body (optional) Design creation parameters.
8561
8427
  * @return Created
8562
8428
  */
@@ -8650,12 +8516,117 @@
8650
8516
  }
8651
8517
  return rxjs.of(null);
8652
8518
  };
8519
+ /**
8520
+ * Applies item data for a specified design file taken from storage.
8521
+ * @param id Design identifier.
8522
+ * @param privateStorageOwner (optional) Private storage owner identifier.
8523
+ * @param tenantId (optional) Tenant ID.
8524
+ * @param body (optional) Design items data.
8525
+ * @return Success
8526
+ */
8527
+ DesignAtomsServiceApiClient.prototype.applyItemsData = function (id, privateStorageOwner, tenantId, body) {
8528
+ var _this = this;
8529
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/apply-items-data?";
8530
+ if (id === undefined || id === null)
8531
+ throw new Error("The parameter 'id' must be defined.");
8532
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
8533
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
8534
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
8535
+ if (tenantId === null)
8536
+ throw new Error("The parameter 'tenantId' cannot be null.");
8537
+ else if (tenantId !== undefined)
8538
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
8539
+ url_ = url_.replace(/[?&]$/, "");
8540
+ var content_ = JSON.stringify(body);
8541
+ var options_ = {
8542
+ body: content_,
8543
+ observe: "response",
8544
+ responseType: "blob",
8545
+ headers: new i1.HttpHeaders({
8546
+ "Content-Type": "application/json",
8547
+ })
8548
+ };
8549
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
8550
+ return _this.http.request("post", url_, transformedOptions_);
8551
+ })).pipe(operators.mergeMap(function (response_) {
8552
+ return _this.transformResult(url_, response_, function (r) { return _this.processApplyItemsData(r); });
8553
+ })).pipe(operators.catchError(function (response_) {
8554
+ if (response_ instanceof i1.HttpResponseBase) {
8555
+ try {
8556
+ return _this.transformResult(url_, response_, function (r) { return _this.processApplyItemsData(r); });
8557
+ }
8558
+ catch (e) {
8559
+ return rxjs.throwError(e);
8560
+ }
8561
+ }
8562
+ else
8563
+ return rxjs.throwError(response_);
8564
+ }));
8565
+ };
8566
+ DesignAtomsServiceApiClient.prototype.processApplyItemsData = function (response) {
8567
+ var e_81, _a;
8568
+ var _this = this;
8569
+ var status = response.status;
8570
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
8571
+ response.error instanceof Blob ? response.error : undefined;
8572
+ var _headers = {};
8573
+ if (response.headers) {
8574
+ try {
8575
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
8576
+ var key = _c.value;
8577
+ _headers[key] = response.headers.get(key);
8578
+ }
8579
+ }
8580
+ catch (e_81_1) { e_81 = { error: e_81_1 }; }
8581
+ finally {
8582
+ try {
8583
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
8584
+ }
8585
+ finally { if (e_81) throw e_81.error; }
8586
+ }
8587
+ }
8588
+ if (status === 200) {
8589
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
8590
+ return rxjs.of(null);
8591
+ }));
8592
+ }
8593
+ else if (status === 404) {
8594
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
8595
+ var result404 = null;
8596
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
8597
+ return throwException("Not Found", status, _responseText, _headers, result404);
8598
+ }));
8599
+ }
8600
+ else if (status === 409) {
8601
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
8602
+ var result409 = null;
8603
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
8604
+ return throwException("Conflict", status, _responseText, _headers, result409);
8605
+ }));
8606
+ }
8607
+ else if (status === 401) {
8608
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
8609
+ return throwException("Unauthorized", status, _responseText, _headers);
8610
+ }));
8611
+ }
8612
+ else if (status === 403) {
8613
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
8614
+ return throwException("Forbidden", status, _responseText, _headers);
8615
+ }));
8616
+ }
8617
+ else if (status !== 200 && status !== 204) {
8618
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
8619
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
8620
+ }));
8621
+ }
8622
+ return rxjs.of(null);
8623
+ };
8653
8624
  /**
8654
8625
  * Returns image content of the background.
8655
8626
  * @param id Design identifier.
8656
8627
  * @param surfaceIndex (optional) Surface index.
8657
8628
  * @param privateStorageOwner (optional) Private storage owner identifier.
8658
- * @param tenantId (optional) Tenant identifier
8629
+ * @param tenantId (optional) Tenant ID.
8659
8630
  * @return Success
8660
8631
  */
8661
8632
  DesignAtomsServiceApiClient.prototype.extractBackground = function (id, surfaceIndex, privateStorageOwner, tenantId) {
@@ -8698,7 +8669,7 @@
8698
8669
  }));
8699
8670
  };
8700
8671
  DesignAtomsServiceApiClient.prototype.processExtractBackground = function (response) {
8701
- var e_81, _a;
8672
+ var e_82, _a;
8702
8673
  var _this = this;
8703
8674
  var status = response.status;
8704
8675
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -8711,12 +8682,12 @@
8711
8682
  _headers[key] = response.headers.get(key);
8712
8683
  }
8713
8684
  }
8714
- catch (e_81_1) { e_81 = { error: e_81_1 }; }
8685
+ catch (e_82_1) { e_82 = { error: e_82_1 }; }
8715
8686
  finally {
8716
8687
  try {
8717
8688
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
8718
8689
  }
8719
- finally { if (e_81) throw e_81.error; }
8690
+ finally { if (e_82) throw e_82.error; }
8720
8691
  }
8721
8692
  }
8722
8693
  if (status === 200 || status === 206) {
@@ -8760,7 +8731,7 @@
8760
8731
  * Sets specified editor-mockups for selected design surfaces.
8761
8732
  * @param id Design identifier.
8762
8733
  * @param privateStorageOwner (optional) Private storage owner identifier.
8763
- * @param tenantId (optional) Tenant identifier
8734
+ * @param tenantId (optional) Tenant ID.
8764
8735
  * @param body (optional) Operation parameters.
8765
8736
  * @return No Content
8766
8737
  */
@@ -8804,7 +8775,7 @@
8804
8775
  }));
8805
8776
  };
8806
8777
  DesignAtomsServiceApiClient.prototype.processSetEditorMockups = function (response) {
8807
- var e_82, _a;
8778
+ var e_83, _a;
8808
8779
  var _this = this;
8809
8780
  var status = response.status;
8810
8781
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -8817,12 +8788,12 @@
8817
8788
  _headers[key] = response.headers.get(key);
8818
8789
  }
8819
8790
  }
8820
- catch (e_82_1) { e_82 = { error: e_82_1 }; }
8791
+ catch (e_83_1) { e_83 = { error: e_83_1 }; }
8821
8792
  finally {
8822
8793
  try {
8823
8794
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
8824
8795
  }
8825
- finally { if (e_82) throw e_82.error; }
8796
+ finally { if (e_83) throw e_83.error; }
8826
8797
  }
8827
8798
  }
8828
8799
  if (status === 204) {
@@ -8865,7 +8836,7 @@
8865
8836
  * Returns design parameters stored in product model.
8866
8837
  * @param id Design identifier.
8867
8838
  * @param privateStorageOwner (optional) Private storage owner identifier.
8868
- * @param tenantId (optional) Tenant identifier
8839
+ * @param tenantId (optional) Tenant ID.
8869
8840
  * @return Success
8870
8841
  */
8871
8842
  DesignAtomsServiceApiClient.prototype.getDesignParameters = function (id, privateStorageOwner, tenantId) {
@@ -8906,7 +8877,7 @@
8906
8877
  }));
8907
8878
  };
8908
8879
  DesignAtomsServiceApiClient.prototype.processGetDesignParameters = function (response) {
8909
- var e_83, _a;
8880
+ var e_84, _a;
8910
8881
  var _this = this;
8911
8882
  var status = response.status;
8912
8883
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -8919,12 +8890,12 @@
8919
8890
  _headers[key] = response.headers.get(key);
8920
8891
  }
8921
8892
  }
8922
- catch (e_83_1) { e_83 = { error: e_83_1 }; }
8893
+ catch (e_84_1) { e_84 = { error: e_84_1 }; }
8923
8894
  finally {
8924
8895
  try {
8925
8896
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
8926
8897
  }
8927
- finally { if (e_83) throw e_83.error; }
8898
+ finally { if (e_84) throw e_84.error; }
8928
8899
  }
8929
8900
  }
8930
8901
  if (status === 200) {
@@ -8962,7 +8933,7 @@
8962
8933
  * Loads a data schema from design file taken from storage.
8963
8934
  * @param id Design identifier.
8964
8935
  * @param privateStorageOwner (optional) Private storage owner identifier.
8965
- * @param tenantId (optional) Tenant identifier
8936
+ * @param tenantId (optional) Tenant ID.
8966
8937
  * @return Success
8967
8938
  */
8968
8939
  DesignAtomsServiceApiClient.prototype.loadDataSchema = function (id, privateStorageOwner, tenantId) {
@@ -9003,7 +8974,7 @@
9003
8974
  }));
9004
8975
  };
9005
8976
  DesignAtomsServiceApiClient.prototype.processLoadDataSchema = function (response) {
9006
- var e_84, _a;
8977
+ var e_85, _a;
9007
8978
  var _this = this;
9008
8979
  var status = response.status;
9009
8980
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -9016,12 +8987,12 @@
9016
8987
  _headers[key] = response.headers.get(key);
9017
8988
  }
9018
8989
  }
9019
- catch (e_84_1) { e_84 = { error: e_84_1 }; }
8990
+ catch (e_85_1) { e_85 = { error: e_85_1 }; }
9020
8991
  finally {
9021
8992
  try {
9022
8993
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
9023
8994
  }
9024
- finally { if (e_84) throw e_84.error; }
8995
+ finally { if (e_85) throw e_85.error; }
9025
8996
  }
9026
8997
  }
9027
8998
  if (status === 200 || status === 206) {
@@ -9065,7 +9036,7 @@
9065
9036
  * Loads a toggle set from design file taken from storage.
9066
9037
  * @param id Design identifier.
9067
9038
  * @param privateStorageOwner (optional) Private storage owner identifier.
9068
- * @param tenantId (optional) Tenant identifier
9039
+ * @param tenantId (optional) Tenant ID.
9069
9040
  * @return Success
9070
9041
  */
9071
9042
  DesignAtomsServiceApiClient.prototype.loadToggleSet = function (id, privateStorageOwner, tenantId) {
@@ -9106,7 +9077,7 @@
9106
9077
  }));
9107
9078
  };
9108
9079
  DesignAtomsServiceApiClient.prototype.processLoadToggleSet = function (response) {
9109
- var e_85, _a;
9080
+ var e_86, _a;
9110
9081
  var _this = this;
9111
9082
  var status = response.status;
9112
9083
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -9119,12 +9090,12 @@
9119
9090
  _headers[key] = response.headers.get(key);
9120
9091
  }
9121
9092
  }
9122
- catch (e_85_1) { e_85 = { error: e_85_1 }; }
9093
+ catch (e_86_1) { e_86 = { error: e_86_1 }; }
9123
9094
  finally {
9124
9095
  try {
9125
9096
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
9126
9097
  }
9127
- finally { if (e_85) throw e_85.error; }
9098
+ finally { if (e_86) throw e_86.error; }
9128
9099
  }
9129
9100
  }
9130
9101
  if (status === 200 || status === 206) {
@@ -9168,7 +9139,7 @@
9168
9139
  * Returns variable items information for design file taken from storage.
9169
9140
  * @param id Design identifier.
9170
9141
  * @param privateStorageOwner (optional) Private storage owner identifier.
9171
- * @param tenantId (optional) Tenant identifier
9142
+ * @param tenantId (optional) Tenant ID.
9172
9143
  * @return Success
9173
9144
  */
9174
9145
  DesignAtomsServiceApiClient.prototype.getVariables = function (id, privateStorageOwner, tenantId) {
@@ -9209,7 +9180,7 @@
9209
9180
  }));
9210
9181
  };
9211
9182
  DesignAtomsServiceApiClient.prototype.processGetVariables = function (response) {
9212
- var e_86, _a;
9183
+ var e_87, _a;
9213
9184
  var _this = this;
9214
9185
  var status = response.status;
9215
9186
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -9222,12 +9193,12 @@
9222
9193
  _headers[key] = response.headers.get(key);
9223
9194
  }
9224
9195
  }
9225
- catch (e_86_1) { e_86 = { error: e_86_1 }; }
9196
+ catch (e_87_1) { e_87 = { error: e_87_1 }; }
9226
9197
  finally {
9227
9198
  try {
9228
9199
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
9229
9200
  }
9230
- finally { if (e_86) throw e_86.error; }
9201
+ finally { if (e_87) throw e_87.error; }
9231
9202
  }
9232
9203
  }
9233
9204
  if (status === 200) {
@@ -9265,7 +9236,7 @@
9265
9236
  * Saves variable items values for design file taken from storage.
9266
9237
  * @param id Design identifier.
9267
9238
  * @param privateStorageOwner (optional) Private storage owner identifier.
9268
- * @param tenantId (optional) Tenant identifier
9239
+ * @param tenantId (optional) Tenant ID.
9269
9240
  * @param body (optional) Design variable values.
9270
9241
  * @return Success
9271
9242
  */
@@ -9309,7 +9280,7 @@
9309
9280
  }));
9310
9281
  };
9311
9282
  DesignAtomsServiceApiClient.prototype.processSetVariables = function (response) {
9312
- var e_87, _a;
9283
+ var e_88, _a;
9313
9284
  var _this = this;
9314
9285
  var status = response.status;
9315
9286
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -9322,12 +9293,12 @@
9322
9293
  _headers[key] = response.headers.get(key);
9323
9294
  }
9324
9295
  }
9325
- catch (e_87_1) { e_87 = { error: e_87_1 }; }
9296
+ catch (e_88_1) { e_88 = { error: e_88_1 }; }
9326
9297
  finally {
9327
9298
  try {
9328
9299
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
9329
9300
  }
9330
- finally { if (e_87) throw e_87.error; }
9301
+ finally { if (e_88) throw e_88.error; }
9331
9302
  }
9332
9303
  }
9333
9304
  if (status === 200) {
@@ -9370,7 +9341,7 @@
9370
9341
  * Loads variable data printing information from design file taken from storage.
9371
9342
  * @param id Design identifier.
9372
9343
  * @param privateStorageOwner (optional) Private storage owner identifier.
9373
- * @param tenantId (optional) Tenant identifier
9344
+ * @param tenantId (optional) Tenant ID.
9374
9345
  * @return Success
9375
9346
  */
9376
9347
  DesignAtomsServiceApiClient.prototype.loadVdpData = function (id, privateStorageOwner, tenantId) {
@@ -9411,7 +9382,7 @@
9411
9382
  }));
9412
9383
  };
9413
9384
  DesignAtomsServiceApiClient.prototype.processLoadVdpData = function (response) {
9414
- var e_88, _a;
9385
+ var e_89, _a;
9415
9386
  var _this = this;
9416
9387
  var status = response.status;
9417
9388
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -9424,12 +9395,12 @@
9424
9395
  _headers[key] = response.headers.get(key);
9425
9396
  }
9426
9397
  }
9427
- catch (e_88_1) { e_88 = { error: e_88_1 }; }
9398
+ catch (e_89_1) { e_89 = { error: e_89_1 }; }
9428
9399
  finally {
9429
9400
  try {
9430
9401
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
9431
9402
  }
9432
- finally { if (e_88) throw e_88.error; }
9403
+ finally { if (e_89) throw e_89.error; }
9433
9404
  }
9434
9405
  }
9435
9406
  if (status === 200) {
@@ -9474,7 +9445,7 @@
9474
9445
  * Saves variable data printing information to design file and updates design in storage.
9475
9446
  * @param id Design identifier.
9476
9447
  * @param privateStorageOwner (optional) Private storage owner identifier.
9477
- * @param tenantId (optional) Tenant identifier
9448
+ * @param tenantId (optional) Tenant ID.
9478
9449
  * @param body (optional) Serialized vdp data.
9479
9450
  * @return Success
9480
9451
  */
@@ -9518,7 +9489,7 @@
9518
9489
  }));
9519
9490
  };
9520
9491
  DesignAtomsServiceApiClient.prototype.processSaveVdpData = function (response) {
9521
- var e_89, _a;
9492
+ var e_90, _a;
9522
9493
  var _this = this;
9523
9494
  var status = response.status;
9524
9495
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -9531,12 +9502,12 @@
9531
9502
  _headers[key] = response.headers.get(key);
9532
9503
  }
9533
9504
  }
9534
- catch (e_89_1) { e_89 = { error: e_89_1 }; }
9505
+ catch (e_90_1) { e_90 = { error: e_90_1 }; }
9535
9506
  finally {
9536
9507
  try {
9537
9508
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
9538
9509
  }
9539
- finally { if (e_89) throw e_89.error; }
9510
+ finally { if (e_90) throw e_90.error; }
9540
9511
  }
9541
9512
  }
9542
9513
  if (status === 200) {
@@ -9572,7 +9543,7 @@
9572
9543
  * Deletes variable data printing information from design file and updates design file in storage.
9573
9544
  * @param id Design identifier.
9574
9545
  * @param privateStorageOwner (optional) Private storage owner identifier.
9575
- * @param tenantId (optional) Tenant identifier
9546
+ * @param tenantId (optional) Tenant ID.
9576
9547
  * @return Success
9577
9548
  */
9578
9549
  DesignAtomsServiceApiClient.prototype.deleteVdpData = function (id, privateStorageOwner, tenantId) {
@@ -9611,7 +9582,7 @@
9611
9582
  }));
9612
9583
  };
9613
9584
  DesignAtomsServiceApiClient.prototype.processDeleteVdpData = function (response) {
9614
- var e_90, _a;
9585
+ var e_91, _a;
9615
9586
  var _this = this;
9616
9587
  var status = response.status;
9617
9588
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -9624,12 +9595,12 @@
9624
9595
  _headers[key] = response.headers.get(key);
9625
9596
  }
9626
9597
  }
9627
- catch (e_90_1) { e_90 = { error: e_90_1 }; }
9598
+ catch (e_91_1) { e_91 = { error: e_91_1 }; }
9628
9599
  finally {
9629
9600
  try {
9630
9601
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
9631
9602
  }
9632
- finally { if (e_90) throw e_90.error; }
9603
+ finally { if (e_91) throw e_91.error; }
9633
9604
  }
9634
9605
  }
9635
9606
  if (status === 200) {
@@ -9663,7 +9634,7 @@
9663
9634
  };
9664
9635
  /**
9665
9636
  * Converts colors for print-product item manipulations.
9666
- * @param tenantId (optional) Tenant identifier
9637
+ * @param tenantId (optional) Tenant ID.
9667
9638
  * @param body (optional) Convert colors operation parameters.
9668
9639
  * @return Success
9669
9640
  */
@@ -9703,7 +9674,7 @@
9703
9674
  }));
9704
9675
  };
9705
9676
  DesignAtomsServiceApiClient.prototype.processConvertColors = function (response) {
9706
- var e_91, _a;
9677
+ var e_92, _a;
9707
9678
  var _this = this;
9708
9679
  var status = response.status;
9709
9680
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -9716,12 +9687,12 @@
9716
9687
  _headers[key] = response.headers.get(key);
9717
9688
  }
9718
9689
  }
9719
- catch (e_91_1) { e_91 = { error: e_91_1 }; }
9690
+ catch (e_92_1) { e_92 = { error: e_92_1 }; }
9720
9691
  finally {
9721
9692
  try {
9722
9693
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
9723
9694
  }
9724
- finally { if (e_91) throw e_91.error; }
9695
+ finally { if (e_92) throw e_92.error; }
9725
9696
  }
9726
9697
  }
9727
9698
  if (status === 200) {
@@ -9759,7 +9730,7 @@
9759
9730
  * Loads print-product from resource file taken from storage.
9760
9731
  * @param id (optional) Resource identifier.
9761
9732
  * @param privateStorageOwner (optional) Private storage owner identifier.
9762
- * @param tenantId (optional) Tenant identifier
9733
+ * @param tenantId (optional) Tenant ID.
9763
9734
  * @return Success
9764
9735
  */
9765
9736
  DesignAtomsServiceApiClient.prototype.loadProductFromResource = function (id, privateStorageOwner, tenantId) {
@@ -9799,7 +9770,7 @@
9799
9770
  }));
9800
9771
  };
9801
9772
  DesignAtomsServiceApiClient.prototype.processLoadProductFromResource = function (response) {
9802
- var e_92, _a;
9773
+ var e_93, _a;
9803
9774
  var _this = this;
9804
9775
  var status = response.status;
9805
9776
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -9812,12 +9783,12 @@
9812
9783
  _headers[key] = response.headers.get(key);
9813
9784
  }
9814
9785
  }
9815
- catch (e_92_1) { e_92 = { error: e_92_1 }; }
9786
+ catch (e_93_1) { e_93 = { error: e_93_1 }; }
9816
9787
  finally {
9817
9788
  try {
9818
9789
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
9819
9790
  }
9820
- finally { if (e_92) throw e_92.error; }
9791
+ finally { if (e_93) throw e_93.error; }
9821
9792
  }
9822
9793
  }
9823
9794
  if (status === 200) {
@@ -9862,7 +9833,7 @@
9862
9833
  * Renders a product proof image with specified parameters.
9863
9834
  * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
9864
9835
  (default value is 'false').
9865
- * @param tenantId (optional) Tenant identifier
9836
+ * @param tenantId (optional) Tenant ID.
9866
9837
  * @param body (optional) Preview parameters.
9867
9838
  * @return Success
9868
9839
  */
@@ -9904,7 +9875,7 @@
9904
9875
  }));
9905
9876
  };
9906
9877
  DesignAtomsServiceApiClient.prototype.processRenderProduct = function (response) {
9907
- var e_93, _a;
9878
+ var e_94, _a;
9908
9879
  var status = response.status;
9909
9880
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
9910
9881
  response.error instanceof Blob ? response.error : undefined;
@@ -9916,12 +9887,12 @@
9916
9887
  _headers[key] = response.headers.get(key);
9917
9888
  }
9918
9889
  }
9919
- catch (e_93_1) { e_93 = { error: e_93_1 }; }
9890
+ catch (e_94_1) { e_94 = { error: e_94_1 }; }
9920
9891
  finally {
9921
9892
  try {
9922
9893
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
9923
9894
  }
9924
- finally { if (e_93) throw e_93.error; }
9895
+ finally { if (e_94) throw e_94.error; }
9925
9896
  }
9926
9897
  }
9927
9898
  if (status === 200 || status === 206) {
@@ -9951,7 +9922,7 @@
9951
9922
  * Renders a design preview with the specified parameters.
9952
9923
  * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
9953
9924
  (default value is 'false').
9954
- * @param tenantId (optional) Tenant identifier
9925
+ * @param tenantId (optional) Tenant ID.
9955
9926
  * @param body (optional) Render model with preview parameters.
9956
9927
  * @return Success
9957
9928
  */
@@ -9993,7 +9964,7 @@
9993
9964
  }));
9994
9965
  };
9995
9966
  DesignAtomsServiceApiClient.prototype.processRenderDesignPreview = function (response) {
9996
- var e_94, _a;
9967
+ var e_95, _a;
9997
9968
  var status = response.status;
9998
9969
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
9999
9970
  response.error instanceof Blob ? response.error : undefined;
@@ -10005,12 +9976,12 @@
10005
9976
  _headers[key] = response.headers.get(key);
10006
9977
  }
10007
9978
  }
10008
- catch (e_94_1) { e_94 = { error: e_94_1 }; }
9979
+ catch (e_95_1) { e_95 = { error: e_95_1 }; }
10009
9980
  finally {
10010
9981
  try {
10011
9982
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
10012
9983
  }
10013
- finally { if (e_94) throw e_94.error; }
9984
+ finally { if (e_95) throw e_95.error; }
10014
9985
  }
10015
9986
  }
10016
9987
  if (status === 200 || status === 206) {
@@ -10038,7 +10009,7 @@
10038
10009
  };
10039
10010
  /**
10040
10011
  * Renders a design preview with the specified parameters and saves rendering result as resource.
10041
- * @param tenantId (optional) Tenant identifier
10012
+ * @param tenantId (optional) Tenant ID.
10042
10013
  * @param body (optional) Render model with preview parameters.
10043
10014
  * @return Success
10044
10015
  */
@@ -10078,7 +10049,7 @@
10078
10049
  }));
10079
10050
  };
10080
10051
  DesignAtomsServiceApiClient.prototype.processRenderDesignPreviewToResource = function (response) {
10081
- var e_95, _a;
10052
+ var e_96, _a;
10082
10053
  var _this = this;
10083
10054
  var status = response.status;
10084
10055
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -10091,12 +10062,12 @@
10091
10062
  _headers[key] = response.headers.get(key);
10092
10063
  }
10093
10064
  }
10094
- catch (e_95_1) { e_95 = { error: e_95_1 }; }
10065
+ catch (e_96_1) { e_96 = { error: e_96_1 }; }
10095
10066
  finally {
10096
10067
  try {
10097
10068
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
10098
10069
  }
10099
- finally { if (e_95) throw e_95.error; }
10070
+ finally { if (e_96) throw e_96.error; }
10100
10071
  }
10101
10072
  }
10102
10073
  if (status === 200) {
@@ -10141,7 +10112,7 @@
10141
10112
  * Renders a design proof with the specified parameters.
10142
10113
  * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
10143
10114
  (default value is 'false').
10144
- * @param tenantId (optional) Tenant identifier
10115
+ * @param tenantId (optional) Tenant ID.
10145
10116
  * @param body (optional) Render model with proof parameters.
10146
10117
  * @return Success
10147
10118
  */
@@ -10183,7 +10154,7 @@
10183
10154
  }));
10184
10155
  };
10185
10156
  DesignAtomsServiceApiClient.prototype.processRenderDesignProof = function (response) {
10186
- var e_96, _a;
10157
+ var e_97, _a;
10187
10158
  var _this = this;
10188
10159
  var status = response.status;
10189
10160
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -10196,12 +10167,12 @@
10196
10167
  _headers[key] = response.headers.get(key);
10197
10168
  }
10198
10169
  }
10199
- catch (e_96_1) { e_96 = { error: e_96_1 }; }
10170
+ catch (e_97_1) { e_97 = { error: e_97_1 }; }
10200
10171
  finally {
10201
10172
  try {
10202
10173
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
10203
10174
  }
10204
- finally { if (e_96) throw e_96.error; }
10175
+ finally { if (e_97) throw e_97.error; }
10205
10176
  }
10206
10177
  }
10207
10178
  if (status === 200 || status === 206) {
@@ -10236,7 +10207,7 @@
10236
10207
  };
10237
10208
  /**
10238
10209
  * Renders a design proof with the specified parameters and saves rendering result as resource.
10239
- * @param tenantId (optional) Tenant identifier
10210
+ * @param tenantId (optional) Tenant ID.
10240
10211
  * @param body (optional) Render model with preview parameters.
10241
10212
  * @return Success
10242
10213
  */
@@ -10276,7 +10247,7 @@
10276
10247
  }));
10277
10248
  };
10278
10249
  DesignAtomsServiceApiClient.prototype.processRenderDesignProofToResource = function (response) {
10279
- var e_97, _a;
10250
+ var e_98, _a;
10280
10251
  var _this = this;
10281
10252
  var status = response.status;
10282
10253
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -10289,12 +10260,12 @@
10289
10260
  _headers[key] = response.headers.get(key);
10290
10261
  }
10291
10262
  }
10292
- catch (e_97_1) { e_97 = { error: e_97_1 }; }
10263
+ catch (e_98_1) { e_98 = { error: e_98_1 }; }
10293
10264
  finally {
10294
10265
  try {
10295
10266
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
10296
10267
  }
10297
- finally { if (e_97) throw e_97.error; }
10268
+ finally { if (e_98) throw e_98.error; }
10298
10269
  }
10299
10270
  }
10300
10271
  if (status === 200) {
@@ -10332,7 +10303,7 @@
10332
10303
  * Loads print-product from design file taken from storage.
10333
10304
  * @param id Design identifier.
10334
10305
  * @param privateStorageOwner (optional) Private storage owner identifier.
10335
- * @param tenantId (optional) Tenant identifier
10306
+ * @param tenantId (optional) Tenant ID.
10336
10307
  * @return Success
10337
10308
  * @deprecated
10338
10309
  */
@@ -10374,7 +10345,7 @@
10374
10345
  }));
10375
10346
  };
10376
10347
  DesignAtomsServiceApiClient.prototype.processLoadProduct = function (response) {
10377
- var e_98, _a;
10348
+ var e_99, _a;
10378
10349
  var _this = this;
10379
10350
  var status = response.status;
10380
10351
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -10387,12 +10358,12 @@
10387
10358
  _headers[key] = response.headers.get(key);
10388
10359
  }
10389
10360
  }
10390
- catch (e_98_1) { e_98 = { error: e_98_1 }; }
10361
+ catch (e_99_1) { e_99 = { error: e_99_1 }; }
10391
10362
  finally {
10392
10363
  try {
10393
10364
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
10394
10365
  }
10395
- finally { if (e_98) throw e_98.error; }
10366
+ finally { if (e_99) throw e_99.error; }
10396
10367
  }
10397
10368
  }
10398
10369
  if (status === 200) {
@@ -10430,7 +10401,7 @@
10430
10401
  * Saves print-product to design file and updates design file in storage.
10431
10402
  * @param id Design identifier.
10432
10403
  * @param privateStorageOwner (optional) Private storage owner identifier.
10433
- * @param tenantId (optional) Tenant identifier
10404
+ * @param tenantId (optional) Tenant ID.
10434
10405
  * @param body (optional) Serialized product description.
10435
10406
  * @return Success
10436
10407
  * @deprecated
@@ -10475,7 +10446,7 @@
10475
10446
  }));
10476
10447
  };
10477
10448
  DesignAtomsServiceApiClient.prototype.processSaveProduct = function (response) {
10478
- var e_99, _a;
10449
+ var e_100, _a;
10479
10450
  var _this = this;
10480
10451
  var status = response.status;
10481
10452
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -10488,12 +10459,12 @@
10488
10459
  _headers[key] = response.headers.get(key);
10489
10460
  }
10490
10461
  }
10491
- catch (e_99_1) { e_99 = { error: e_99_1 }; }
10462
+ catch (e_100_1) { e_100 = { error: e_100_1 }; }
10492
10463
  finally {
10493
10464
  try {
10494
10465
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
10495
10466
  }
10496
- finally { if (e_99) throw e_99.error; }
10467
+ finally { if (e_100) throw e_100.error; }
10497
10468
  }
10498
10469
  }
10499
10470
  if (status === 200) {
@@ -10529,7 +10500,7 @@
10529
10500
  * Patches print-product in design file.
10530
10501
  * @param id Design identifier.
10531
10502
  * @param privateStorageOwner (optional) Private storage owner identifier.
10532
- * @param tenantId (optional) Tenant identifier
10503
+ * @param tenantId (optional) Tenant ID.
10533
10504
  * @param patchType (optional)
10534
10505
  * @param replaceImageItemFileInfo_itemName (optional)
10535
10506
  * @param replaceImageItemFileInfo_sourceFile (optional)
@@ -10553,9 +10524,7 @@
10553
10524
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
10554
10525
  url_ = url_.replace(/[?&]$/, "");
10555
10526
  var content_ = new FormData();
10556
- if (patchType === null || patchType === undefined)
10557
- throw new Error("The parameter 'patchType' cannot be null.");
10558
- else
10527
+ if (patchType !== null && patchType !== undefined)
10559
10528
  content_.append("patchType", patchType.toString());
10560
10529
  if (replaceImageItemFileInfo_itemName !== null && replaceImageItemFileInfo_itemName !== undefined)
10561
10530
  content_.append("replaceImageItemFileInfo.itemName", replaceImageItemFileInfo_itemName.toString());
@@ -10563,9 +10532,7 @@
10563
10532
  content_.append("replaceImageItemFileInfo.sourceFile", replaceImageItemFileInfo_sourceFile.data, replaceImageItemFileInfo_sourceFile.fileName ? replaceImageItemFileInfo_sourceFile.fileName : "replaceImageItemFileInfo.sourceFile");
10564
10533
  if (replacePlaceholderItemContentInfo_placeholderItemName !== null && replacePlaceholderItemContentInfo_placeholderItemName !== undefined)
10565
10534
  content_.append("replacePlaceholderItemContentInfo.placeholderItemName", replacePlaceholderItemContentInfo_placeholderItemName.toString());
10566
- if (replacePlaceholderItemContentInfo_newContentType === null || replacePlaceholderItemContentInfo_newContentType === undefined)
10567
- throw new Error("The parameter 'replacePlaceholderItemContentInfo_newContentType' cannot be null.");
10568
- else
10535
+ if (replacePlaceholderItemContentInfo_newContentType !== null && replacePlaceholderItemContentInfo_newContentType !== undefined)
10569
10536
  content_.append("replacePlaceholderItemContentInfo.newContentType", replacePlaceholderItemContentInfo_newContentType.toString());
10570
10537
  if (replacePlaceholderItemContentInfo_sourceFile !== null && replacePlaceholderItemContentInfo_sourceFile !== undefined)
10571
10538
  content_.append("replacePlaceholderItemContentInfo.sourceFile", replacePlaceholderItemContentInfo_sourceFile.data, replacePlaceholderItemContentInfo_sourceFile.fileName ? replacePlaceholderItemContentInfo_sourceFile.fileName : "replacePlaceholderItemContentInfo.sourceFile");
@@ -10593,7 +10560,7 @@
10593
10560
  }));
10594
10561
  };
10595
10562
  DesignAtomsServiceApiClient.prototype.processPatchProduct = function (response) {
10596
- var e_100, _a;
10563
+ var e_101, _a;
10597
10564
  var _this = this;
10598
10565
  var status = response.status;
10599
10566
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -10606,12 +10573,12 @@
10606
10573
  _headers[key] = response.headers.get(key);
10607
10574
  }
10608
10575
  }
10609
- catch (e_100_1) { e_100 = { error: e_100_1 }; }
10576
+ catch (e_101_1) { e_101 = { error: e_101_1 }; }
10610
10577
  finally {
10611
10578
  try {
10612
10579
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
10613
10580
  }
10614
- finally { if (e_100) throw e_100.error; }
10581
+ finally { if (e_101) throw e_101.error; }
10615
10582
  }
10616
10583
  }
10617
10584
  if (status === 200) {
@@ -10646,7 +10613,7 @@
10646
10613
  /**
10647
10614
  * Creates print-product item.
10648
10615
  * @param itemType (optional) Desired item type.
10649
- * @param tenantId (optional) Tenant identifier
10616
+ * @param tenantId (optional) Tenant ID.
10650
10617
  * @param sourceType (optional)
10651
10618
  * @param sourceId (optional)
10652
10619
  * @param sourceOwnerId (optional)
@@ -10702,7 +10669,7 @@
10702
10669
  }));
10703
10670
  };
10704
10671
  DesignAtomsServiceApiClient.prototype.processCreateItem = function (response) {
10705
- var e_101, _a;
10672
+ var e_102, _a;
10706
10673
  var _this = this;
10707
10674
  var status = response.status;
10708
10675
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -10715,12 +10682,12 @@
10715
10682
  _headers[key] = response.headers.get(key);
10716
10683
  }
10717
10684
  }
10718
- catch (e_101_1) { e_101 = { error: e_101_1 }; }
10685
+ catch (e_102_1) { e_102 = { error: e_102_1 }; }
10719
10686
  finally {
10720
10687
  try {
10721
10688
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
10722
10689
  }
10723
- finally { if (e_101) throw e_101.error; }
10690
+ finally { if (e_102) throw e_102.error; }
10724
10691
  }
10725
10692
  }
10726
10693
  if (status === 200) {
@@ -10756,7 +10723,7 @@
10756
10723
  };
10757
10724
  /**
10758
10725
  * Extracts print-product item image.
10759
- * @param tenantId (optional) Tenant identifier
10726
+ * @param tenantId (optional) Tenant ID.
10760
10727
  * @param body (optional) Extraction parameters.
10761
10728
  * @return Success
10762
10729
  * @deprecated
@@ -10797,7 +10764,7 @@
10797
10764
  }));
10798
10765
  };
10799
10766
  DesignAtomsServiceApiClient.prototype.processExtractItemImage = function (response) {
10800
- var e_102, _a;
10767
+ var e_103, _a;
10801
10768
  var status = response.status;
10802
10769
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
10803
10770
  response.error instanceof Blob ? response.error : undefined;
@@ -10809,12 +10776,12 @@
10809
10776
  _headers[key] = response.headers.get(key);
10810
10777
  }
10811
10778
  }
10812
- catch (e_102_1) { e_102 = { error: e_102_1 }; }
10779
+ catch (e_103_1) { e_103 = { error: e_103_1 }; }
10813
10780
  finally {
10814
10781
  try {
10815
10782
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
10816
10783
  }
10817
- finally { if (e_102) throw e_102.error; }
10784
+ finally { if (e_103) throw e_103.error; }
10818
10785
  }
10819
10786
  }
10820
10787
  if (status === 200 || status === 206) {
@@ -10842,7 +10809,7 @@
10842
10809
  };
10843
10810
  /**
10844
10811
  * Flattens print-product items.
10845
- * @param tenantId (optional) Tenant identifier
10812
+ * @param tenantId (optional) Tenant ID.
10846
10813
  * @param body (optional) Items to flatten.
10847
10814
  * @return Success
10848
10815
  * @deprecated
@@ -10883,7 +10850,7 @@
10883
10850
  }));
10884
10851
  };
10885
10852
  DesignAtomsServiceApiClient.prototype.processFlattenItems = function (response) {
10886
- var e_103, _a;
10853
+ var e_104, _a;
10887
10854
  var _this = this;
10888
10855
  var status = response.status;
10889
10856
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -10896,12 +10863,12 @@
10896
10863
  _headers[key] = response.headers.get(key);
10897
10864
  }
10898
10865
  }
10899
- catch (e_103_1) { e_103 = { error: e_103_1 }; }
10866
+ catch (e_104_1) { e_104 = { error: e_104_1 }; }
10900
10867
  finally {
10901
10868
  try {
10902
10869
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
10903
10870
  }
10904
- finally { if (e_103) throw e_103.error; }
10871
+ finally { if (e_104) throw e_104.error; }
10905
10872
  }
10906
10873
  }
10907
10874
  if (status === 200) {
@@ -10933,7 +10900,7 @@
10933
10900
  * @param designId (optional) Public design identifier.
10934
10901
  * @param privateDesignId (optional) Private design identifier.
10935
10902
  * @param privateStorageOwner (optional) Private storage owner identifier.
10936
- * @param tenantId (optional) Tenant identifier
10903
+ * @param tenantId (optional) Tenant ID.
10937
10904
  * @return Created
10938
10905
  * @deprecated
10939
10906
  */
@@ -10974,7 +10941,7 @@
10974
10941
  }));
10975
10942
  };
10976
10943
  DesignAtomsServiceApiClient.prototype.processCreatePrivateDesignFromDesign = function (response) {
10977
- var e_104, _a;
10944
+ var e_105, _a;
10978
10945
  var status = response.status;
10979
10946
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
10980
10947
  response.error instanceof Blob ? response.error : undefined;
@@ -10986,12 +10953,12 @@
10986
10953
  _headers[key] = response.headers.get(key);
10987
10954
  }
10988
10955
  }
10989
- catch (e_104_1) { e_104 = { error: e_104_1 }; }
10956
+ catch (e_105_1) { e_105 = { error: e_105_1 }; }
10990
10957
  finally {
10991
10958
  try {
10992
10959
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
10993
10960
  }
10994
- finally { if (e_104) throw e_104.error; }
10961
+ finally { if (e_105) throw e_105.error; }
10995
10962
  }
10996
10963
  }
10997
10964
  if (status === 201) {
@@ -11021,11 +10988,11 @@
11021
10988
  * @param resourceId (optional) Resource identifier.
11022
10989
  * @param privateDesignId (optional) Private design identifier.
11023
10990
  * @param privateStorageOwner (optional) Private storage owner identifier.
11024
- * @param tenantId (optional) Tenant identifier.
10991
+ * @param tenantIdQuery (optional) Tenant identifier.
11025
10992
  * @return Created
11026
10993
  * @deprecated
11027
10994
  */
11028
- DesignAtomsServiceApiClient.prototype.createPrivateDesignFromResource = function (resourceId, privateDesignId, privateStorageOwner, tenantId) {
10995
+ DesignAtomsServiceApiClient.prototype.createPrivateDesignFromResource = function (resourceId, privateDesignId, privateStorageOwner, tenantIdQuery) {
11029
10996
  var _this = this;
11030
10997
  var url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-resource?";
11031
10998
  if (resourceId !== undefined && resourceId !== null)
@@ -11034,10 +11001,10 @@
11034
11001
  url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
11035
11002
  if (privateStorageOwner !== undefined && privateStorageOwner !== null)
11036
11003
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
11037
- if (tenantId === null)
11038
- throw new Error("The parameter 'tenantId' cannot be null.");
11039
- else if (tenantId !== undefined)
11040
- url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
11004
+ if (tenantIdQuery === null)
11005
+ throw new Error("The parameter 'tenantIdQuery' cannot be null.");
11006
+ else if (tenantIdQuery !== undefined)
11007
+ url_ += "tenantId=" + encodeURIComponent("" + tenantIdQuery) + "&";
11041
11008
  url_ = url_.replace(/[?&]$/, "");
11042
11009
  var options_ = {
11043
11010
  observe: "response",
@@ -11062,7 +11029,7 @@
11062
11029
  }));
11063
11030
  };
11064
11031
  DesignAtomsServiceApiClient.prototype.processCreatePrivateDesignFromResource = function (response) {
11065
- var e_105, _a;
11032
+ var e_106, _a;
11066
11033
  var status = response.status;
11067
11034
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
11068
11035
  response.error instanceof Blob ? response.error : undefined;
@@ -11074,12 +11041,12 @@
11074
11041
  _headers[key] = response.headers.get(key);
11075
11042
  }
11076
11043
  }
11077
- catch (e_105_1) { e_105 = { error: e_105_1 }; }
11044
+ catch (e_106_1) { e_106 = { error: e_106_1 }; }
11078
11045
  finally {
11079
11046
  try {
11080
11047
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
11081
11048
  }
11082
- finally { if (e_105) throw e_105.error; }
11049
+ finally { if (e_106) throw e_106.error; }
11083
11050
  }
11084
11051
  }
11085
11052
  if (status === 201) {
@@ -11127,7 +11094,7 @@
11127
11094
  return _this;
11128
11095
  }
11129
11096
  /**
11130
- * @param tenantId (optional) Tenant identifier
11097
+ * @param tenantId (optional) Tenant ID.
11131
11098
  * @param body (optional)
11132
11099
  * @return Success
11133
11100
  */
@@ -11167,7 +11134,7 @@
11167
11134
  }));
11168
11135
  };
11169
11136
  DesignAtomsViewerApiClient.prototype.processCssFonts = function (response) {
11170
- var e_106, _a;
11137
+ var e_107, _a;
11171
11138
  var _this = this;
11172
11139
  var status = response.status;
11173
11140
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -11180,12 +11147,12 @@
11180
11147
  _headers[key] = response.headers.get(key);
11181
11148
  }
11182
11149
  }
11183
- catch (e_106_1) { e_106 = { error: e_106_1 }; }
11150
+ catch (e_107_1) { e_107 = { error: e_107_1 }; }
11184
11151
  finally {
11185
11152
  try {
11186
11153
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
11187
11154
  }
11188
- finally { if (e_106) throw e_106.error; }
11155
+ finally { if (e_107) throw e_107.error; }
11189
11156
  }
11190
11157
  }
11191
11158
  if (status === 200) {
@@ -11200,11 +11167,6 @@
11200
11167
  return throwException("Unauthorized", status, _responseText, _headers);
11201
11168
  }));
11202
11169
  }
11203
- else if (status === 403) {
11204
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
11205
- return throwException("Forbidden", status, _responseText, _headers);
11206
- }));
11207
- }
11208
11170
  else if (status !== 200 && status !== 204) {
11209
11171
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
11210
11172
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -11213,7 +11175,7 @@
11213
11175
  return rxjs.of(null);
11214
11176
  };
11215
11177
  /**
11216
- * @param tenantId (optional) Tenant identifier
11178
+ * @param tenantId (optional) Tenant ID.
11217
11179
  * @return Success
11218
11180
  */
11219
11181
  DesignAtomsViewerApiClient.prototype.fonts = function (psName, tenantId) {
@@ -11252,7 +11214,7 @@
11252
11214
  }));
11253
11215
  };
11254
11216
  DesignAtomsViewerApiClient.prototype.processFonts = function (response) {
11255
- var e_107, _a;
11217
+ var e_108, _a;
11256
11218
  var _this = this;
11257
11219
  var status = response.status;
11258
11220
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -11265,12 +11227,12 @@
11265
11227
  _headers[key] = response.headers.get(key);
11266
11228
  }
11267
11229
  }
11268
- catch (e_107_1) { e_107 = { error: e_107_1 }; }
11230
+ catch (e_108_1) { e_108 = { error: e_108_1 }; }
11269
11231
  finally {
11270
11232
  try {
11271
11233
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
11272
11234
  }
11273
- finally { if (e_107) throw e_107.error; }
11235
+ finally { if (e_108) throw e_108.error; }
11274
11236
  }
11275
11237
  }
11276
11238
  if (status === 200 || status === 206) {
@@ -11291,11 +11253,6 @@
11291
11253
  return throwException("Unauthorized", status, _responseText, _headers);
11292
11254
  }));
11293
11255
  }
11294
- else if (status === 403) {
11295
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
11296
- return throwException("Forbidden", status, _responseText, _headers);
11297
- }));
11298
- }
11299
11256
  else if (status !== 200 && status !== 204) {
11300
11257
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
11301
11258
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -11304,7 +11261,7 @@
11304
11261
  return rxjs.of(null);
11305
11262
  };
11306
11263
  /**
11307
- * @param tenantId (optional) Tenant identifier
11264
+ * @param tenantId (optional) Tenant ID.
11308
11265
  * @param body (optional)
11309
11266
  * @return Success
11310
11267
  */
@@ -11344,7 +11301,7 @@
11344
11301
  }));
11345
11302
  };
11346
11303
  DesignAtomsViewerApiClient.prototype.processGetColorPreview = function (response) {
11347
- var e_108, _a;
11304
+ var e_109, _a;
11348
11305
  var _this = this;
11349
11306
  var status = response.status;
11350
11307
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -11357,12 +11314,12 @@
11357
11314
  _headers[key] = response.headers.get(key);
11358
11315
  }
11359
11316
  }
11360
- catch (e_108_1) { e_108 = { error: e_108_1 }; }
11317
+ catch (e_109_1) { e_109 = { error: e_109_1 }; }
11361
11318
  finally {
11362
11319
  try {
11363
11320
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
11364
11321
  }
11365
- finally { if (e_108) throw e_108.error; }
11322
+ finally { if (e_109) throw e_109.error; }
11366
11323
  }
11367
11324
  }
11368
11325
  if (status === 200) {
@@ -11384,11 +11341,6 @@
11384
11341
  return throwException("Unauthorized", status, _responseText, _headers);
11385
11342
  }));
11386
11343
  }
11387
- else if (status === 403) {
11388
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
11389
- return throwException("Forbidden", status, _responseText, _headers);
11390
- }));
11391
- }
11392
11344
  else if (status !== 200 && status !== 204) {
11393
11345
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
11394
11346
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -11397,7 +11349,7 @@
11397
11349
  return rxjs.of(null);
11398
11350
  };
11399
11351
  /**
11400
- * @param tenantId (optional) Tenant identifier
11352
+ * @param tenantId (optional) Tenant ID.
11401
11353
  * @param body (optional)
11402
11354
  * @return Success
11403
11355
  */
@@ -11437,7 +11389,7 @@
11437
11389
  }));
11438
11390
  };
11439
11391
  DesignAtomsViewerApiClient.prototype.processGetColorPreviews = function (response) {
11440
- var e_109, _a;
11392
+ var e_110, _a;
11441
11393
  var _this = this;
11442
11394
  var status = response.status;
11443
11395
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -11450,12 +11402,12 @@
11450
11402
  _headers[key] = response.headers.get(key);
11451
11403
  }
11452
11404
  }
11453
- catch (e_109_1) { e_109 = { error: e_109_1 }; }
11405
+ catch (e_110_1) { e_110 = { error: e_110_1 }; }
11454
11406
  finally {
11455
11407
  try {
11456
11408
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
11457
11409
  }
11458
- finally { if (e_109) throw e_109.error; }
11410
+ finally { if (e_110) throw e_110.error; }
11459
11411
  }
11460
11412
  }
11461
11413
  if (status === 200) {
@@ -11477,11 +11429,6 @@
11477
11429
  return throwException("Unauthorized", status, _responseText, _headers);
11478
11430
  }));
11479
11431
  }
11480
- else if (status === 403) {
11481
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
11482
- return throwException("Forbidden", status, _responseText, _headers);
11483
- }));
11484
- }
11485
11432
  else if (status !== 200 && status !== 204) {
11486
11433
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
11487
11434
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -11491,7 +11438,7 @@
11491
11438
  };
11492
11439
  /**
11493
11440
  * @param fontKey (optional)
11494
- * @param tenantId (optional) Tenant identifier
11441
+ * @param tenantId (optional) Tenant ID.
11495
11442
  * @return Success
11496
11443
  */
11497
11444
  DesignAtomsViewerApiClient.prototype.getCssFont = function (fontKey, tenantId) {
@@ -11529,7 +11476,7 @@
11529
11476
  }));
11530
11477
  };
11531
11478
  DesignAtomsViewerApiClient.prototype.processGetCssFont = function (response) {
11532
- var e_110, _a;
11479
+ var e_111, _a;
11533
11480
  var _this = this;
11534
11481
  var status = response.status;
11535
11482
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -11542,12 +11489,12 @@
11542
11489
  _headers[key] = response.headers.get(key);
11543
11490
  }
11544
11491
  }
11545
- catch (e_110_1) { e_110 = { error: e_110_1 }; }
11492
+ catch (e_111_1) { e_111 = { error: e_111_1 }; }
11546
11493
  finally {
11547
11494
  try {
11548
11495
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
11549
11496
  }
11550
- finally { if (e_110) throw e_110.error; }
11497
+ finally { if (e_111) throw e_111.error; }
11551
11498
  }
11552
11499
  }
11553
11500
  if (status === 200 || status === 206) {
@@ -11568,11 +11515,6 @@
11568
11515
  return throwException("Unauthorized", status, _responseText, _headers);
11569
11516
  }));
11570
11517
  }
11571
- else if (status === 403) {
11572
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
11573
- return throwException("Forbidden", status, _responseText, _headers);
11574
- }));
11575
- }
11576
11518
  else if (status !== 200 && status !== 204) {
11577
11519
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
11578
11520
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -11581,7 +11523,7 @@
11581
11523
  return rxjs.of(null);
11582
11524
  };
11583
11525
  /**
11584
- * @param tenantId (optional) Tenant identifier
11526
+ * @param tenantId (optional) Tenant ID.
11585
11527
  * @return Success
11586
11528
  */
11587
11529
  DesignAtomsViewerApiClient.prototype.getFallbackFonts = function (tenantId) {
@@ -11617,7 +11559,7 @@
11617
11559
  }));
11618
11560
  };
11619
11561
  DesignAtomsViewerApiClient.prototype.processGetFallbackFonts = function (response) {
11620
- var e_111, _a;
11562
+ var e_112, _a;
11621
11563
  var _this = this;
11622
11564
  var status = response.status;
11623
11565
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -11630,12 +11572,12 @@
11630
11572
  _headers[key] = response.headers.get(key);
11631
11573
  }
11632
11574
  }
11633
- catch (e_111_1) { e_111 = { error: e_111_1 }; }
11575
+ catch (e_112_1) { e_112 = { error: e_112_1 }; }
11634
11576
  finally {
11635
11577
  try {
11636
11578
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
11637
11579
  }
11638
- finally { if (e_111) throw e_111.error; }
11580
+ finally { if (e_112) throw e_112.error; }
11639
11581
  }
11640
11582
  }
11641
11583
  if (status === 200) {
@@ -11650,11 +11592,6 @@
11650
11592
  return throwException("Unauthorized", status, _responseText, _headers);
11651
11593
  }));
11652
11594
  }
11653
- else if (status === 403) {
11654
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
11655
- return throwException("Forbidden", status, _responseText, _headers);
11656
- }));
11657
- }
11658
11595
  else if (status !== 200 && status !== 204) {
11659
11596
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
11660
11597
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -11663,7 +11600,7 @@
11663
11600
  return rxjs.of(null);
11664
11601
  };
11665
11602
  /**
11666
- * @param tenantId (optional) Tenant identifier
11603
+ * @param tenantId (optional) Tenant ID.
11667
11604
  * @param body (optional)
11668
11605
  * @return Success
11669
11606
  */
@@ -11703,7 +11640,7 @@
11703
11640
  }));
11704
11641
  };
11705
11642
  DesignAtomsViewerApiClient.prototype.processGetImageSize = function (response) {
11706
- var e_112, _a;
11643
+ var e_113, _a;
11707
11644
  var _this = this;
11708
11645
  var status = response.status;
11709
11646
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -11716,12 +11653,12 @@
11716
11653
  _headers[key] = response.headers.get(key);
11717
11654
  }
11718
11655
  }
11719
- catch (e_112_1) { e_112 = { error: e_112_1 }; }
11656
+ catch (e_113_1) { e_113 = { error: e_113_1 }; }
11720
11657
  finally {
11721
11658
  try {
11722
11659
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
11723
11660
  }
11724
- finally { if (e_112) throw e_112.error; }
11661
+ finally { if (e_113) throw e_113.error; }
11725
11662
  }
11726
11663
  }
11727
11664
  if (status === 200) {
@@ -11736,11 +11673,6 @@
11736
11673
  return throwException("Unauthorized", status, _responseText, _headers);
11737
11674
  }));
11738
11675
  }
11739
- else if (status === 403) {
11740
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
11741
- return throwException("Forbidden", status, _responseText, _headers);
11742
- }));
11743
- }
11744
11676
  else if (status !== 200 && status !== 204) {
11745
11677
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
11746
11678
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -11749,7 +11681,7 @@
11749
11681
  return rxjs.of(null);
11750
11682
  };
11751
11683
  /**
11752
- * @param tenantId (optional) Tenant identifier
11684
+ * @param tenantId (optional) Tenant ID.
11753
11685
  * @param body (optional)
11754
11686
  * @return Success
11755
11687
  */
@@ -11789,7 +11721,7 @@
11789
11721
  }));
11790
11722
  };
11791
11723
  DesignAtomsViewerApiClient.prototype.processGetShapeBounds = function (response) {
11792
- var e_113, _a;
11724
+ var e_114, _a;
11793
11725
  var _this = this;
11794
11726
  var status = response.status;
11795
11727
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -11802,12 +11734,12 @@
11802
11734
  _headers[key] = response.headers.get(key);
11803
11735
  }
11804
11736
  }
11805
- catch (e_113_1) { e_113 = { error: e_113_1 }; }
11737
+ catch (e_114_1) { e_114 = { error: e_114_1 }; }
11806
11738
  finally {
11807
11739
  try {
11808
11740
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
11809
11741
  }
11810
- finally { if (e_113) throw e_113.error; }
11742
+ finally { if (e_114) throw e_114.error; }
11811
11743
  }
11812
11744
  }
11813
11745
  if (status === 200) {
@@ -11822,11 +11754,6 @@
11822
11754
  return throwException("Unauthorized", status, _responseText, _headers);
11823
11755
  }));
11824
11756
  }
11825
- else if (status === 403) {
11826
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
11827
- return throwException("Forbidden", status, _responseText, _headers);
11828
- }));
11829
- }
11830
11757
  else if (status !== 200 && status !== 204) {
11831
11758
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
11832
11759
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -11835,7 +11762,7 @@
11835
11762
  return rxjs.of(null);
11836
11763
  };
11837
11764
  /**
11838
- * @param tenantId (optional) Tenant identifier
11765
+ * @param tenantId (optional) Tenant ID.
11839
11766
  * @param body (optional)
11840
11767
  * @return Success
11841
11768
  */
@@ -11875,7 +11802,7 @@
11875
11802
  }));
11876
11803
  };
11877
11804
  DesignAtomsViewerApiClient.prototype.processGetWatermarkItems = function (response) {
11878
- var e_114, _a;
11805
+ var e_115, _a;
11879
11806
  var _this = this;
11880
11807
  var status = response.status;
11881
11808
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -11888,12 +11815,12 @@
11888
11815
  _headers[key] = response.headers.get(key);
11889
11816
  }
11890
11817
  }
11891
- catch (e_114_1) { e_114 = { error: e_114_1 }; }
11818
+ catch (e_115_1) { e_115 = { error: e_115_1 }; }
11892
11819
  finally {
11893
11820
  try {
11894
11821
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
11895
11822
  }
11896
- finally { if (e_114) throw e_114.error; }
11823
+ finally { if (e_115) throw e_115.error; }
11897
11824
  }
11898
11825
  }
11899
11826
  if (status === 200) {
@@ -11908,11 +11835,6 @@
11908
11835
  return throwException("Unauthorized", status, _responseText, _headers);
11909
11836
  }));
11910
11837
  }
11911
- else if (status === 403) {
11912
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
11913
- return throwException("Forbidden", status, _responseText, _headers);
11914
- }));
11915
- }
11916
11838
  else if (status !== 200 && status !== 204) {
11917
11839
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
11918
11840
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -11939,7 +11861,7 @@
11939
11861
  * @param colorizeColor (optional)
11940
11862
  * @param rw (optional)
11941
11863
  * @param rh (optional)
11942
- * @param tenantId (optional) Tenant identifier
11864
+ * @param tenantId (optional) Tenant ID.
11943
11865
  * @return Success
11944
11866
  */
11945
11867
  DesignAtomsViewerApiClient.prototype.img = function (f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId) {
@@ -12011,7 +11933,7 @@
12011
11933
  }));
12012
11934
  };
12013
11935
  DesignAtomsViewerApiClient.prototype.processImg = function (response) {
12014
- var e_115, _a;
11936
+ var e_116, _a;
12015
11937
  var _this = this;
12016
11938
  var status = response.status;
12017
11939
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -12024,12 +11946,12 @@
12024
11946
  _headers[key] = response.headers.get(key);
12025
11947
  }
12026
11948
  }
12027
- catch (e_115_1) { e_115 = { error: e_115_1 }; }
11949
+ catch (e_116_1) { e_116 = { error: e_116_1 }; }
12028
11950
  finally {
12029
11951
  try {
12030
11952
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
12031
11953
  }
12032
- finally { if (e_115) throw e_115.error; }
11954
+ finally { if (e_116) throw e_116.error; }
12033
11955
  }
12034
11956
  }
12035
11957
  if (status === 200 || status === 206) {
@@ -12055,11 +11977,6 @@
12055
11977
  return throwException("Unauthorized", status, _responseText, _headers);
12056
11978
  }));
12057
11979
  }
12058
- else if (status === 403) {
12059
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
12060
- return throwException("Forbidden", status, _responseText, _headers);
12061
- }));
12062
- }
12063
11980
  else if (status !== 200 && status !== 204) {
12064
11981
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
12065
11982
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -12068,7 +11985,7 @@
12068
11985
  return rxjs.of(null);
12069
11986
  };
12070
11987
  /**
12071
- * @param tenantId (optional) Tenant identifier
11988
+ * @param tenantId (optional) Tenant ID.
12072
11989
  * @return Success
12073
11990
  */
12074
11991
  DesignAtomsViewerApiClient.prototype.getLicense = function (tenantId) {
@@ -12104,7 +12021,7 @@
12104
12021
  }));
12105
12022
  };
12106
12023
  DesignAtomsViewerApiClient.prototype.processGetLicense = function (response) {
12107
- var e_116, _a;
12024
+ var e_117, _a;
12108
12025
  var _this = this;
12109
12026
  var status = response.status;
12110
12027
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -12117,12 +12034,12 @@
12117
12034
  _headers[key] = response.headers.get(key);
12118
12035
  }
12119
12036
  }
12120
- catch (e_116_1) { e_116 = { error: e_116_1 }; }
12037
+ catch (e_117_1) { e_117 = { error: e_117_1 }; }
12121
12038
  finally {
12122
12039
  try {
12123
12040
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
12124
12041
  }
12125
- finally { if (e_116) throw e_116.error; }
12042
+ finally { if (e_117) throw e_117.error; }
12126
12043
  }
12127
12044
  }
12128
12045
  if (status === 200) {
@@ -12137,11 +12054,6 @@
12137
12054
  return throwException("Unauthorized", status, _responseText, _headers);
12138
12055
  }));
12139
12056
  }
12140
- else if (status === 403) {
12141
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
12142
- return throwException("Forbidden", status, _responseText, _headers);
12143
- }));
12144
- }
12145
12057
  else if (status !== 200 && status !== 204) {
12146
12058
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
12147
12059
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -12151,7 +12063,7 @@
12151
12063
  };
12152
12064
  /**
12153
12065
  * @param f (optional)
12154
- * @param tenantId (optional) Tenant identifier
12066
+ * @param tenantId (optional) Tenant ID.
12155
12067
  * @return Success
12156
12068
  */
12157
12069
  DesignAtomsViewerApiClient.prototype.pth = function (f, tenantId) {
@@ -12189,7 +12101,7 @@
12189
12101
  }));
12190
12102
  };
12191
12103
  DesignAtomsViewerApiClient.prototype.processPth = function (response) {
12192
- var e_117, _a;
12104
+ var e_118, _a;
12193
12105
  var _this = this;
12194
12106
  var status = response.status;
12195
12107
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -12202,12 +12114,12 @@
12202
12114
  _headers[key] = response.headers.get(key);
12203
12115
  }
12204
12116
  }
12205
- catch (e_117_1) { e_117 = { error: e_117_1 }; }
12117
+ catch (e_118_1) { e_118 = { error: e_118_1 }; }
12206
12118
  finally {
12207
12119
  try {
12208
12120
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
12209
12121
  }
12210
- finally { if (e_117) throw e_117.error; }
12122
+ finally { if (e_118) throw e_118.error; }
12211
12123
  }
12212
12124
  }
12213
12125
  if (status === 200 || status === 206) {
@@ -12233,11 +12145,6 @@
12233
12145
  return throwException("Unauthorized", status, _responseText, _headers);
12234
12146
  }));
12235
12147
  }
12236
- else if (status === 403) {
12237
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
12238
- return throwException("Forbidden", status, _responseText, _headers);
12239
- }));
12240
- }
12241
12148
  else if (status !== 200 && status !== 204) {
12242
12149
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
12243
12150
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -12247,7 +12154,7 @@
12247
12154
  };
12248
12155
  /**
12249
12156
  * @param image (optional)
12250
- * @param tenantId (optional) Tenant identifier
12157
+ * @param tenantId (optional) Tenant ID.
12251
12158
  * @return Success
12252
12159
  */
12253
12160
  DesignAtomsViewerApiClient.prototype.resource = function (image, tenantId) {
@@ -12285,7 +12192,7 @@
12285
12192
  }));
12286
12193
  };
12287
12194
  DesignAtomsViewerApiClient.prototype.processResource = function (response) {
12288
- var e_118, _a;
12195
+ var e_119, _a;
12289
12196
  var _this = this;
12290
12197
  var status = response.status;
12291
12198
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -12298,12 +12205,12 @@
12298
12205
  _headers[key] = response.headers.get(key);
12299
12206
  }
12300
12207
  }
12301
- catch (e_118_1) { e_118 = { error: e_118_1 }; }
12208
+ catch (e_119_1) { e_119 = { error: e_119_1 }; }
12302
12209
  finally {
12303
12210
  try {
12304
12211
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
12305
12212
  }
12306
- finally { if (e_118) throw e_118.error; }
12213
+ finally { if (e_119) throw e_119.error; }
12307
12214
  }
12308
12215
  }
12309
12216
  if (status === 200 || status === 206) {
@@ -12324,11 +12231,6 @@
12324
12231
  return throwException("Unauthorized", status, _responseText, _headers);
12325
12232
  }));
12326
12233
  }
12327
- else if (status === 403) {
12328
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
12329
- return throwException("Forbidden", status, _responseText, _headers);
12330
- }));
12331
- }
12332
12234
  else if (status !== 200 && status !== 204) {
12333
12235
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
12334
12236
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -12355,7 +12257,7 @@
12355
12257
  * @param colorizeColor (optional)
12356
12258
  * @param rw (optional)
12357
12259
  * @param rh (optional)
12358
- * @param tenantId (optional) Tenant identifier
12260
+ * @param tenantId (optional) Tenant ID.
12359
12261
  * @return Success
12360
12262
  */
12361
12263
  DesignAtomsViewerApiClient.prototype.svg = function (f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId) {
@@ -12427,7 +12329,7 @@
12427
12329
  }));
12428
12330
  };
12429
12331
  DesignAtomsViewerApiClient.prototype.processSvg = function (response) {
12430
- var e_119, _a;
12332
+ var e_120, _a;
12431
12333
  var _this = this;
12432
12334
  var status = response.status;
12433
12335
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -12440,12 +12342,12 @@
12440
12342
  _headers[key] = response.headers.get(key);
12441
12343
  }
12442
12344
  }
12443
- catch (e_119_1) { e_119 = { error: e_119_1 }; }
12345
+ catch (e_120_1) { e_120 = { error: e_120_1 }; }
12444
12346
  finally {
12445
12347
  try {
12446
12348
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
12447
12349
  }
12448
- finally { if (e_119) throw e_119.error; }
12350
+ finally { if (e_120) throw e_120.error; }
12449
12351
  }
12450
12352
  }
12451
12353
  if (status === 200 || status === 206) {
@@ -12471,11 +12373,6 @@
12471
12373
  return throwException("Unauthorized", status, _responseText, _headers);
12472
12374
  }));
12473
12375
  }
12474
- else if (status === 403) {
12475
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
12476
- return throwException("Forbidden", status, _responseText, _headers);
12477
- }));
12478
- }
12479
12376
  else if (status !== 200 && status !== 204) {
12480
12377
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
12481
12378
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -12485,7 +12382,7 @@
12485
12382
  };
12486
12383
  /**
12487
12384
  * @param f (optional)
12488
- * @param tenantId (optional) Tenant identifier
12385
+ * @param tenantId (optional) Tenant ID.
12489
12386
  * @return Success
12490
12387
  */
12491
12388
  DesignAtomsViewerApiClient.prototype.txt = function (f, tenantId) {
@@ -12523,7 +12420,7 @@
12523
12420
  }));
12524
12421
  };
12525
12422
  DesignAtomsViewerApiClient.prototype.processTxt = function (response) {
12526
- var e_120, _a;
12423
+ var e_121, _a;
12527
12424
  var _this = this;
12528
12425
  var status = response.status;
12529
12426
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -12536,12 +12433,12 @@
12536
12433
  _headers[key] = response.headers.get(key);
12537
12434
  }
12538
12435
  }
12539
- catch (e_120_1) { e_120 = { error: e_120_1 }; }
12436
+ catch (e_121_1) { e_121 = { error: e_121_1 }; }
12540
12437
  finally {
12541
12438
  try {
12542
12439
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
12543
12440
  }
12544
- finally { if (e_120) throw e_120.error; }
12441
+ finally { if (e_121) throw e_121.error; }
12545
12442
  }
12546
12443
  }
12547
12444
  if (status === 200 || status === 206) {
@@ -12567,11 +12464,6 @@
12567
12464
  return throwException("Unauthorized", status, _responseText, _headers);
12568
12465
  }));
12569
12466
  }
12570
- else if (status === 403) {
12571
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
12572
- return throwException("Forbidden", status, _responseText, _headers);
12573
- }));
12574
- }
12575
12467
  else if (status !== 200 && status !== 204) {
12576
12468
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
12577
12469
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -12580,7 +12472,7 @@
12580
12472
  return rxjs.of(null);
12581
12473
  };
12582
12474
  /**
12583
- * @param tenantId (optional) Tenant identifier
12475
+ * @param tenantId (optional) Tenant ID.
12584
12476
  * @param body (optional)
12585
12477
  * @return Success
12586
12478
  */
@@ -12620,7 +12512,7 @@
12620
12512
  }));
12621
12513
  };
12622
12514
  DesignAtomsViewerApiClient.prototype.processUpdateArchedTextItemHandler = function (response) {
12623
- var e_121, _a;
12515
+ var e_122, _a;
12624
12516
  var _this = this;
12625
12517
  var status = response.status;
12626
12518
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -12633,12 +12525,12 @@
12633
12525
  _headers[key] = response.headers.get(key);
12634
12526
  }
12635
12527
  }
12636
- catch (e_121_1) { e_121 = { error: e_121_1 }; }
12528
+ catch (e_122_1) { e_122 = { error: e_122_1 }; }
12637
12529
  finally {
12638
12530
  try {
12639
12531
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
12640
12532
  }
12641
- finally { if (e_121) throw e_121.error; }
12533
+ finally { if (e_122) throw e_122.error; }
12642
12534
  }
12643
12535
  }
12644
12536
  if (status === 200) {
@@ -12653,11 +12545,6 @@
12653
12545
  return throwException("Unauthorized", status, _responseText, _headers);
12654
12546
  }));
12655
12547
  }
12656
- else if (status === 403) {
12657
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
12658
- return throwException("Forbidden", status, _responseText, _headers);
12659
- }));
12660
- }
12661
12548
  else if (status !== 200 && status !== 204) {
12662
12549
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
12663
12550
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -12666,7 +12553,7 @@
12666
12553
  return rxjs.of(null);
12667
12554
  };
12668
12555
  /**
12669
- * @param tenantId (optional) Tenant identifier
12556
+ * @param tenantId (optional) Tenant ID.
12670
12557
  * @param body (optional)
12671
12558
  * @return Success
12672
12559
  */
@@ -12706,7 +12593,7 @@
12706
12593
  }));
12707
12594
  };
12708
12595
  DesignAtomsViewerApiClient.prototype.processUpdateAutoScaledTextItemHandler = function (response) {
12709
- var e_122, _a;
12596
+ var e_123, _a;
12710
12597
  var _this = this;
12711
12598
  var status = response.status;
12712
12599
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -12719,12 +12606,12 @@
12719
12606
  _headers[key] = response.headers.get(key);
12720
12607
  }
12721
12608
  }
12722
- catch (e_122_1) { e_122 = { error: e_122_1 }; }
12609
+ catch (e_123_1) { e_123 = { error: e_123_1 }; }
12723
12610
  finally {
12724
12611
  try {
12725
12612
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
12726
12613
  }
12727
- finally { if (e_122) throw e_122.error; }
12614
+ finally { if (e_123) throw e_123.error; }
12728
12615
  }
12729
12616
  }
12730
12617
  if (status === 200) {
@@ -12739,11 +12626,6 @@
12739
12626
  return throwException("Unauthorized", status, _responseText, _headers);
12740
12627
  }));
12741
12628
  }
12742
- else if (status === 403) {
12743
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
12744
- return throwException("Forbidden", status, _responseText, _headers);
12745
- }));
12746
- }
12747
12629
  else if (status !== 200 && status !== 204) {
12748
12630
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
12749
12631
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -12752,7 +12634,7 @@
12752
12634
  return rxjs.of(null);
12753
12635
  };
12754
12636
  /**
12755
- * @param tenantId (optional) Tenant identifier
12637
+ * @param tenantId (optional) Tenant ID.
12756
12638
  * @param body (optional)
12757
12639
  * @return Success
12758
12640
  */
@@ -12792,7 +12674,7 @@
12792
12674
  }));
12793
12675
  };
12794
12676
  DesignAtomsViewerApiClient.prototype.processUpdateBarcodeItemHandler = function (response) {
12795
- var e_123, _a;
12677
+ var e_124, _a;
12796
12678
  var _this = this;
12797
12679
  var status = response.status;
12798
12680
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -12805,12 +12687,12 @@
12805
12687
  _headers[key] = response.headers.get(key);
12806
12688
  }
12807
12689
  }
12808
- catch (e_123_1) { e_123 = { error: e_123_1 }; }
12690
+ catch (e_124_1) { e_124 = { error: e_124_1 }; }
12809
12691
  finally {
12810
12692
  try {
12811
12693
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
12812
12694
  }
12813
- finally { if (e_123) throw e_123.error; }
12695
+ finally { if (e_124) throw e_124.error; }
12814
12696
  }
12815
12697
  }
12816
12698
  if (status === 200) {
@@ -12825,11 +12707,6 @@
12825
12707
  return throwException("Unauthorized", status, _responseText, _headers);
12826
12708
  }));
12827
12709
  }
12828
- else if (status === 403) {
12829
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
12830
- return throwException("Forbidden", status, _responseText, _headers);
12831
- }));
12832
- }
12833
12710
  else if (status !== 200 && status !== 204) {
12834
12711
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
12835
12712
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -12838,7 +12715,7 @@
12838
12715
  return rxjs.of(null);
12839
12716
  };
12840
12717
  /**
12841
- * @param tenantId (optional) Tenant identifier
12718
+ * @param tenantId (optional) Tenant ID.
12842
12719
  * @param body (optional)
12843
12720
  * @return Success
12844
12721
  */
@@ -12878,7 +12755,7 @@
12878
12755
  }));
12879
12756
  };
12880
12757
  DesignAtomsViewerApiClient.prototype.processUpdateBoundedTextItemHandler = function (response) {
12881
- var e_124, _a;
12758
+ var e_125, _a;
12882
12759
  var _this = this;
12883
12760
  var status = response.status;
12884
12761
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -12891,12 +12768,12 @@
12891
12768
  _headers[key] = response.headers.get(key);
12892
12769
  }
12893
12770
  }
12894
- catch (e_124_1) { e_124 = { error: e_124_1 }; }
12771
+ catch (e_125_1) { e_125 = { error: e_125_1 }; }
12895
12772
  finally {
12896
12773
  try {
12897
12774
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
12898
12775
  }
12899
- finally { if (e_124) throw e_124.error; }
12776
+ finally { if (e_125) throw e_125.error; }
12900
12777
  }
12901
12778
  }
12902
12779
  if (status === 200) {
@@ -12911,11 +12788,6 @@
12911
12788
  return throwException("Unauthorized", status, _responseText, _headers);
12912
12789
  }));
12913
12790
  }
12914
- else if (status === 403) {
12915
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
12916
- return throwException("Forbidden", status, _responseText, _headers);
12917
- }));
12918
- }
12919
12791
  else if (status !== 200 && status !== 204) {
12920
12792
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
12921
12793
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -12924,7 +12796,7 @@
12924
12796
  return rxjs.of(null);
12925
12797
  };
12926
12798
  /**
12927
- * @param tenantId (optional) Tenant identifier
12799
+ * @param tenantId (optional) Tenant ID.
12928
12800
  * @param body (optional)
12929
12801
  * @return Success
12930
12802
  */
@@ -12964,7 +12836,7 @@
12964
12836
  }));
12965
12837
  };
12966
12838
  DesignAtomsViewerApiClient.prototype.processUpdateByColorData = function (response) {
12967
- var e_125, _a;
12839
+ var e_126, _a;
12968
12840
  var _this = this;
12969
12841
  var status = response.status;
12970
12842
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -12977,12 +12849,12 @@
12977
12849
  _headers[key] = response.headers.get(key);
12978
12850
  }
12979
12851
  }
12980
- catch (e_125_1) { e_125 = { error: e_125_1 }; }
12852
+ catch (e_126_1) { e_126 = { error: e_126_1 }; }
12981
12853
  finally {
12982
12854
  try {
12983
12855
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
12984
12856
  }
12985
- finally { if (e_125) throw e_125.error; }
12857
+ finally { if (e_126) throw e_126.error; }
12986
12858
  }
12987
12859
  }
12988
12860
  if (status === 200) {
@@ -12997,11 +12869,6 @@
12997
12869
  return throwException("Unauthorized", status, _responseText, _headers);
12998
12870
  }));
12999
12871
  }
13000
- else if (status === 403) {
13001
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
13002
- return throwException("Forbidden", status, _responseText, _headers);
13003
- }));
13004
- }
13005
12872
  else if (status !== 200 && status !== 204) {
13006
12873
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
13007
12874
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -13010,7 +12877,7 @@
13010
12877
  return rxjs.of(null);
13011
12878
  };
13012
12879
  /**
13013
- * @param tenantId (optional) Tenant identifier
12880
+ * @param tenantId (optional) Tenant ID.
13014
12881
  * @param body (optional)
13015
12882
  * @return Success
13016
12883
  */
@@ -13050,7 +12917,7 @@
13050
12917
  }));
13051
12918
  };
13052
12919
  DesignAtomsViewerApiClient.prototype.processUpdateByMultiCallRequest = function (response) {
13053
- var e_126, _a;
12920
+ var e_127, _a;
13054
12921
  var _this = this;
13055
12922
  var status = response.status;
13056
12923
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -13063,12 +12930,12 @@
13063
12930
  _headers[key] = response.headers.get(key);
13064
12931
  }
13065
12932
  }
13066
- catch (e_126_1) { e_126 = { error: e_126_1 }; }
12933
+ catch (e_127_1) { e_127 = { error: e_127_1 }; }
13067
12934
  finally {
13068
12935
  try {
13069
12936
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
13070
12937
  }
13071
- finally { if (e_126) throw e_126.error; }
12938
+ finally { if (e_127) throw e_127.error; }
13072
12939
  }
13073
12940
  }
13074
12941
  if (status === 200) {
@@ -13083,11 +12950,6 @@
13083
12950
  return throwException("Unauthorized", status, _responseText, _headers);
13084
12951
  }));
13085
12952
  }
13086
- else if (status === 403) {
13087
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
13088
- return throwException("Forbidden", status, _responseText, _headers);
13089
- }));
13090
- }
13091
12953
  else if (status !== 200 && status !== 204) {
13092
12954
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
13093
12955
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -13096,7 +12958,7 @@
13096
12958
  return rxjs.of(null);
13097
12959
  };
13098
12960
  /**
13099
- * @param tenantId (optional) Tenant identifier
12961
+ * @param tenantId (optional) Tenant ID.
13100
12962
  * @param body (optional)
13101
12963
  * @return Success
13102
12964
  */
@@ -13136,7 +12998,7 @@
13136
12998
  }));
13137
12999
  };
13138
13000
  DesignAtomsViewerApiClient.prototype.processUpdateCurvedTextItemHandler = function (response) {
13139
- var e_127, _a;
13001
+ var e_128, _a;
13140
13002
  var _this = this;
13141
13003
  var status = response.status;
13142
13004
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -13149,12 +13011,12 @@
13149
13011
  _headers[key] = response.headers.get(key);
13150
13012
  }
13151
13013
  }
13152
- catch (e_127_1) { e_127 = { error: e_127_1 }; }
13014
+ catch (e_128_1) { e_128 = { error: e_128_1 }; }
13153
13015
  finally {
13154
13016
  try {
13155
13017
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
13156
13018
  }
13157
- finally { if (e_127) throw e_127.error; }
13019
+ finally { if (e_128) throw e_128.error; }
13158
13020
  }
13159
13021
  }
13160
13022
  if (status === 200) {
@@ -13169,11 +13031,6 @@
13169
13031
  return throwException("Unauthorized", status, _responseText, _headers);
13170
13032
  }));
13171
13033
  }
13172
- else if (status === 403) {
13173
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
13174
- return throwException("Forbidden", status, _responseText, _headers);
13175
- }));
13176
- }
13177
13034
  else if (status !== 200 && status !== 204) {
13178
13035
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
13179
13036
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -13182,7 +13039,7 @@
13182
13039
  return rxjs.of(null);
13183
13040
  };
13184
13041
  /**
13185
- * @param tenantId (optional) Tenant identifier
13042
+ * @param tenantId (optional) Tenant ID.
13186
13043
  * @param body (optional)
13187
13044
  * @return Success
13188
13045
  */
@@ -13222,7 +13079,7 @@
13222
13079
  }));
13223
13080
  };
13224
13081
  DesignAtomsViewerApiClient.prototype.processUpdateImageItemHandler = function (response) {
13225
- var e_128, _a;
13082
+ var e_129, _a;
13226
13083
  var _this = this;
13227
13084
  var status = response.status;
13228
13085
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -13235,12 +13092,12 @@
13235
13092
  _headers[key] = response.headers.get(key);
13236
13093
  }
13237
13094
  }
13238
- catch (e_128_1) { e_128 = { error: e_128_1 }; }
13095
+ catch (e_129_1) { e_129 = { error: e_129_1 }; }
13239
13096
  finally {
13240
13097
  try {
13241
13098
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
13242
13099
  }
13243
- finally { if (e_128) throw e_128.error; }
13100
+ finally { if (e_129) throw e_129.error; }
13244
13101
  }
13245
13102
  }
13246
13103
  if (status === 200) {
@@ -13255,11 +13112,6 @@
13255
13112
  return throwException("Unauthorized", status, _responseText, _headers);
13256
13113
  }));
13257
13114
  }
13258
- else if (status === 403) {
13259
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
13260
- return throwException("Forbidden", status, _responseText, _headers);
13261
- }));
13262
- }
13263
13115
  else if (status !== 200 && status !== 204) {
13264
13116
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
13265
13117
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -13268,7 +13120,7 @@
13268
13120
  return rxjs.of(null);
13269
13121
  };
13270
13122
  /**
13271
- * @param tenantId (optional) Tenant identifier
13123
+ * @param tenantId (optional) Tenant ID.
13272
13124
  * @param body (optional)
13273
13125
  * @return Success
13274
13126
  */
@@ -13308,7 +13160,7 @@
13308
13160
  }));
13309
13161
  };
13310
13162
  DesignAtomsViewerApiClient.prototype.processUpdatePathBoundedTextItemHandler = function (response) {
13311
- var e_129, _a;
13163
+ var e_130, _a;
13312
13164
  var _this = this;
13313
13165
  var status = response.status;
13314
13166
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -13321,12 +13173,12 @@
13321
13173
  _headers[key] = response.headers.get(key);
13322
13174
  }
13323
13175
  }
13324
- catch (e_129_1) { e_129 = { error: e_129_1 }; }
13176
+ catch (e_130_1) { e_130 = { error: e_130_1 }; }
13325
13177
  finally {
13326
13178
  try {
13327
13179
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
13328
13180
  }
13329
- finally { if (e_129) throw e_129.error; }
13181
+ finally { if (e_130) throw e_130.error; }
13330
13182
  }
13331
13183
  }
13332
13184
  if (status === 200) {
@@ -13341,11 +13193,6 @@
13341
13193
  return throwException("Unauthorized", status, _responseText, _headers);
13342
13194
  }));
13343
13195
  }
13344
- else if (status === 403) {
13345
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
13346
- return throwException("Forbidden", status, _responseText, _headers);
13347
- }));
13348
- }
13349
13196
  else if (status !== 200 && status !== 204) {
13350
13197
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
13351
13198
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -13354,7 +13201,7 @@
13354
13201
  return rxjs.of(null);
13355
13202
  };
13356
13203
  /**
13357
- * @param tenantId (optional) Tenant identifier
13204
+ * @param tenantId (optional) Tenant ID.
13358
13205
  * @param body (optional)
13359
13206
  * @return Success
13360
13207
  */
@@ -13394,7 +13241,7 @@
13394
13241
  }));
13395
13242
  };
13396
13243
  DesignAtomsViewerApiClient.prototype.processUpdatePlainTextItemHandler = function (response) {
13397
- var e_130, _a;
13244
+ var e_131, _a;
13398
13245
  var _this = this;
13399
13246
  var status = response.status;
13400
13247
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -13407,12 +13254,12 @@
13407
13254
  _headers[key] = response.headers.get(key);
13408
13255
  }
13409
13256
  }
13410
- catch (e_130_1) { e_130 = { error: e_130_1 }; }
13257
+ catch (e_131_1) { e_131 = { error: e_131_1 }; }
13411
13258
  finally {
13412
13259
  try {
13413
13260
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
13414
13261
  }
13415
- finally { if (e_130) throw e_130.error; }
13262
+ finally { if (e_131) throw e_131.error; }
13416
13263
  }
13417
13264
  }
13418
13265
  if (status === 200) {
@@ -13427,11 +13274,6 @@
13427
13274
  return throwException("Unauthorized", status, _responseText, _headers);
13428
13275
  }));
13429
13276
  }
13430
- else if (status === 403) {
13431
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
13432
- return throwException("Forbidden", status, _responseText, _headers);
13433
- }));
13434
- }
13435
13277
  else if (status !== 200 && status !== 204) {
13436
13278
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
13437
13279
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -13440,7 +13282,7 @@
13440
13282
  return rxjs.of(null);
13441
13283
  };
13442
13284
  /**
13443
- * @param tenantId (optional) Tenant identifier
13285
+ * @param tenantId (optional) Tenant ID.
13444
13286
  * @param body (optional)
13445
13287
  * @return Success
13446
13288
  */
@@ -13480,7 +13322,7 @@
13480
13322
  }));
13481
13323
  };
13482
13324
  DesignAtomsViewerApiClient.prototype.processUpdateShapeItemHandler = function (response) {
13483
- var e_131, _a;
13325
+ var e_132, _a;
13484
13326
  var _this = this;
13485
13327
  var status = response.status;
13486
13328
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -13493,12 +13335,12 @@
13493
13335
  _headers[key] = response.headers.get(key);
13494
13336
  }
13495
13337
  }
13496
- catch (e_131_1) { e_131 = { error: e_131_1 }; }
13338
+ catch (e_132_1) { e_132 = { error: e_132_1 }; }
13497
13339
  finally {
13498
13340
  try {
13499
13341
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
13500
13342
  }
13501
- finally { if (e_131) throw e_131.error; }
13343
+ finally { if (e_132) throw e_132.error; }
13502
13344
  }
13503
13345
  }
13504
13346
  if (status === 200) {
@@ -13513,11 +13355,6 @@
13513
13355
  return throwException("Unauthorized", status, _responseText, _headers);
13514
13356
  }));
13515
13357
  }
13516
- else if (status === 403) {
13517
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
13518
- return throwException("Forbidden", status, _responseText, _headers);
13519
- }));
13520
- }
13521
13358
  else if (status !== 200 && status !== 204) {
13522
13359
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
13523
13360
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
@@ -13605,6 +13442,20 @@
13605
13442
  ProductProofInterpolationMode["Anisotropic9"] = "Anisotropic9";
13606
13443
  ProductProofInterpolationMode["Lanczos3"] = "Lanczos3";
13607
13444
  })(exports.ProductProofInterpolationMode || (exports.ProductProofInterpolationMode = {}));
13445
+ (function (TextAlignment) {
13446
+ TextAlignment["Left"] = "Left";
13447
+ TextAlignment["Center"] = "Center";
13448
+ TextAlignment["Right"] = "Right";
13449
+ TextAlignment["All"] = "All";
13450
+ TextAlignment["LastLeft"] = "LastLeft";
13451
+ TextAlignment["LastRight"] = "LastRight";
13452
+ TextAlignment["LastCenter"] = "LastCenter";
13453
+ })(exports.TextAlignment || (exports.TextAlignment = {}));
13454
+ (function (TextVerticalAlignment) {
13455
+ TextVerticalAlignment["Top"] = "Top";
13456
+ TextVerticalAlignment["Center"] = "Center";
13457
+ TextVerticalAlignment["Bottom"] = "Bottom";
13458
+ })(exports.TextVerticalAlignment || (exports.TextVerticalAlignment = {}));
13608
13459
  var ApiException = /** @class */ (function (_super) {
13609
13460
  __extends(ApiException, _super);
13610
13461
  function ApiException(message, status, response, headers, result) {