@aurigma/axios-design-atoms-api-client 2.70.4 → 2.71.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,7 @@
8
8
  //----------------------
9
9
  // ReSharper disable InconsistentNaming
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.ApiException = exports.TextVerticalAlignment = exports.TextAlignment = exports.ProductProofInterpolationMode = exports.ProductProofFormat = exports.ProductPreviewFormat = exports.ProductPatchType = exports.PlaceholderItemContentType = exports.ItemType = exports.ItemSourceType = exports.ImagePreviewFormat = exports.ImagePreviewFitMode = exports.DesignElementType = exports.ConflictType = exports.DesignAtomsViewerApiClient = exports.DesignAtomsServiceApiClient = exports.DesignAtomsPrintProductItemsApiClient = exports.DesignAtomsPrintProductApiClient = exports.DesignAtomsPalettesApiClient = exports.DesignAtomsMockups3dApiClient = exports.DesignAtomsImagesApiClient = exports.DesignAtomsCompatibilityApiClient = exports.BuildInfoApiClient = exports.ApiClientBase = exports.ApiClientConfiguration = void 0;
11
+ exports.ApiException = exports.TextVerticalAlignment = exports.TextAlignment = exports.ProductProofInterpolationMode = exports.ProductProofFormat = exports.ProductPreviewFormat = exports.ProductPatchType = exports.PlaceholderItemContentType = exports.ItemType = exports.ItemSourceType = exports.ImagePreviewFormat = exports.ImagePreviewFitMode = exports.ImageExtractionFormat = exports.DesignElementType = exports.ConflictType = exports.DesignAtomsViewerApiClient = exports.DesignAtomsServiceApiClient = exports.DesignAtomsPrintProductItemsApiClient = exports.DesignAtomsPrintProductApiClient = exports.DesignAtomsPalettesApiClient = exports.DesignAtomsMockups3dApiClient = exports.DesignAtomsImagesApiClient = exports.DesignAtomsCompatibilityApiClient = exports.BuildInfoApiClient = exports.ApiClientBase = exports.ApiClientConfiguration = void 0;
12
12
  const axios_1 = require("axios");
13
13
  class ApiClientConfiguration {
14
14
  apiUrl;
@@ -743,27 +743,38 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
743
743
  }
744
744
  /**
745
745
  * Retrieves an image with resized dimensions and additional visual effects based on the provided parameters.
746
- This method accepts query parameters that control the output of the image.
747
746
  * @param f (optional) The identifier of the original image file.
748
747
  * @param w (optional) Target width of the resulting image.
749
748
  * @param h (optional) Target height of the resulting image.
750
749
  * @param cmyk (optional) Name of the CMYK profile used for color conversion.
751
750
  * @param rgb (optional) Name of the RGB profile used for color conversion.
752
751
  * @param grayscale (optional) Name of the grayscale profile used to convert into shades of gray.
753
- * @param target (optional) Target color space, one of `"Rgb"`, `"Grayscale"`, or `"Cmyk"`.
754
- * @param sq (optional) Indicates that the image is squared. The default value is `false`.
755
- * @param effect (optional) Effect applied to the image. The default value is `"None"`.
756
- Possible values: `"None"`, `"BlackAndWhite"`, `"FlipVertical"`, `"FlipHorizontal"`, `"Colorize"`, `"Grayscale"`, or `"BlackAndTransparent"`.
757
- * @param kp (optional) Indicates that image proportions should be maintained. The default value is `false`.
758
- * @param color (optional) String defining an overlay color in the RGB, RGBA, CMYK, or CMYKA format. By default, it's an empty string.
759
- * @param obm (optional) Overlay blend mode used for blending colors. By default, it's an empty string.
760
- Possible values: `"Normal"`, `"Multiply"`, `"Screen"`, `"Overlay"`, `"Darken"`, `"Lighten"`, `"ColorDodge"`, `"ColorBurn"`, `"HardLight"`, `"SoftLight"`, `"Difference"`, `"Exclusion"`, `"None"`, or `"LinearBurn"`.
761
- * @param oo (optional) Opacity level of the overlaid layer, in the range `[0.0,1.0]`. The default value is `null`.
762
- * @param alphaMask (optional) Enables alpha mask processing. The default value is `false`.
763
- * @param page (optional) Page index in a PDF document that needs to be processed. The default value is `0`.
764
- * @param colorizeColor (optional) Color applied for the `"Colorize"` image effect. By default, it's an empty string.
765
- * @param rw (optional) Rectangle width for area selection. The default value is `0`.
766
- * @param rh (optional) Rectangle height for area selection. The default value is `0`.
752
+ * @param target (optional) Target color space, one of "Rgb", "Grayscale", or "Cmyk".
753
+ * @param sq (optional) Indicates that the image is squared.
754
+ The default value is "false".
755
+ * @param effect (optional) Effect applied to the image.
756
+ Possible values: "None", "BlackAndWhite", "FlipVertical", "FlipHorizontal", "Colorize", "Grayscale", or "BlackAndTransparent".
757
+ The default value is "None".
758
+ * @param kp (optional) Indicates that image proportions should be maintained.
759
+ The default value is "false".
760
+ * @param color (optional) Overlay color in the RGB, RGBA, CMYK, or CMYKA format.
761
+ By default, it's an empty string.
762
+ * @param obm (optional) Overlay blend mode used for blending colors.
763
+ Possible values: "Normal", "Multiply", "Screen", "Overlay", "Darken", "Lighten", "ColorDodge",
764
+ "ColorBurn", "HardLight", "SoftLight", `Difference", "Exclusion", "None", or "LinearBurn".
765
+ By default, it's an empty string.
766
+ * @param oo (optional) Opacity level of the overlaid layer, in the range [0.0, 1.0].
767
+ The default value is "null".
768
+ * @param alphaMask (optional) Enables alpha mask processing.
769
+ The default value is "false".
770
+ * @param page (optional) Page index in a PDF document that needs to be processed.
771
+ The default value is "0".
772
+ * @param colorizeColor (optional) Color applied for the "Colorize" image effect.
773
+ By default, it's an empty string.
774
+ * @param rw (optional) Rectangle width for area selection.
775
+ The default value is "0".
776
+ * @param rh (optional) Rectangle height for area selection.
777
+ The default value is "0".
767
778
  * @return Success
768
779
  */
769
780
  img(tenantId, f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, cancelToken) {
@@ -1069,20 +1080,32 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1069
1080
  * @param cmyk (optional) Name of the CMYK profile used for color conversion.
1070
1081
  * @param rgb (optional) Name of the RGB profile used for color conversion.
1071
1082
  * @param grayscale (optional) Name of the grayscale profile used to convert into shades of gray.
1072
- * @param target (optional) Target color space, one of `"Rgb"`, `"Grayscale"`, or `"Cmyk"`.
1073
- * @param sq (optional) Indicates that the image is squared. The default value is `false`.
1074
- * @param effect (optional) Effect applied to the image. The default value is `"None"`.
1075
- Possible values: `"None"`, `"BlackAndWhite"`, `"FlipVertical"`, `"FlipHorizontal"`, `"Colorize"`, `"Grayscale"`, or `"BlackAndTransparent"`.
1076
- * @param kp (optional) Indicates that image proportions should be maintained. The default value is `false`.
1077
- * @param color (optional) String defining an overlay color in the RGB, RGBA, CMYK, or CMYKA format. By default, it's an empty string.
1078
- * @param obm (optional) Overlay blend mode used for blending colors. By default, it's an empty string.
1079
- Possible values: `"Normal"`, `"Multiply"`, `"Screen"`, `"Overlay"`, `"Darken"`, `"Lighten"`, `"ColorDodge"`, `"ColorBurn"`, `"HardLight"`, `"SoftLight"`, `"Difference"`, `"Exclusion"`, `"None"`, or `"LinearBurn"`.
1080
- * @param oo (optional) Opacity level of the overlaid layer, in the range `[0.0,1.0]`. The default value is `null`.
1081
- * @param alphaMask (optional) Enables alpha mask processing. The default value is `false`.
1082
- * @param page (optional) Page index in a PDF document that needs to be processed. The default value is `0`.
1083
- * @param colorizeColor (optional) Color applied for the `"Colorize"` image effect. By default, it's an empty string.
1084
- * @param rw (optional) Rectangle width for area selection. The default value is `0`.
1085
- * @param rh (optional) Rectangle height for area selection. The default value is `0`.
1083
+ * @param target (optional) Target color space, one of "Rgb", "Grayscale", or "Cmyk".
1084
+ * @param sq (optional) Indicates that the image is squared.
1085
+ The default value is "false".
1086
+ * @param effect (optional) Effect applied to the image.
1087
+ Possible values: "None", "BlackAndWhite", "FlipVertical", "FlipHorizontal", "Colorize", "Grayscale", or "BlackAndTransparent".
1088
+ The default value is "None".
1089
+ * @param kp (optional) Indicates that image proportions should be maintained.
1090
+ The default value is "false".
1091
+ * @param color (optional) Overlay color in the RGB, RGBA, CMYK, or CMYKA format.
1092
+ By default, it's an empty string.
1093
+ * @param obm (optional) Overlay blend mode used for blending colors.
1094
+ Possible values: "Normal", "Multiply", "Screen", "Overlay", "Darken", "Lighten", "ColorDodge",
1095
+ "ColorBurn", "HardLight", "SoftLight", `Difference", "Exclusion", "None", or "LinearBurn".
1096
+ By default, it's an empty string.
1097
+ * @param oo (optional) Opacity level of the overlaid layer, in the range [0.0, 1.0].
1098
+ The default value is "null".
1099
+ * @param alphaMask (optional) Enables alpha mask processing.
1100
+ The default value is "false".
1101
+ * @param page (optional) Page index in a PDF document that needs to be processed.
1102
+ The default value is "0".
1103
+ * @param colorizeColor (optional) Color applied for the "Colorize" image effect.
1104
+ By default, it's an empty string.
1105
+ * @param rw (optional) Rectangle width for area selection.
1106
+ The default value is "0".
1107
+ * @param rh (optional) Rectangle height for area selection.
1108
+ The default value is "0".
1086
1109
  * @return Success
1087
1110
  */
1088
1111
  svg(tenantId, f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, cancelToken) {
@@ -2004,6 +2027,13 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
2004
2027
  result404 = JSON.parse(resultData404);
2005
2028
  return throwException("Not Found", status, _responseText, _headers, result404);
2006
2029
  }
2030
+ else if (status === 409) {
2031
+ const _responseText = response.data;
2032
+ let result409 = null;
2033
+ let resultData409 = _responseText;
2034
+ result409 = JSON.parse(resultData409);
2035
+ return throwException("Conflict", status, _responseText, _headers, result409);
2036
+ }
2007
2037
  else if (status === 401) {
2008
2038
  const _responseText = response.data;
2009
2039
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -2030,9 +2060,10 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
2030
2060
  * @param height (optional)
2031
2061
  * @param fileFormat (optional)
2032
2062
  * @param fitMode (optional)
2063
+ * @param pageIndex (optional)
2033
2064
  * @return Success
2034
2065
  */
2035
- renderImagePreviewFromFile(attachment, tenantId, sourceFile, mockupOwnerId, mockupId, width, height, fileFormat, fitMode, cancelToken) {
2066
+ renderImagePreviewFromFile(attachment, tenantId, sourceFile, mockupOwnerId, mockupId, width, height, fileFormat, fitMode, pageIndex, cancelToken) {
2036
2067
  let url_ = this.baseUrl + "/api/atoms/v1/images/render-preview/from-file?";
2037
2068
  if (attachment !== undefined && attachment !== null)
2038
2069
  url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
@@ -2056,6 +2087,8 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
2056
2087
  content_.append("fileFormat", fileFormat.toString());
2057
2088
  if (fitMode !== null && fitMode !== undefined)
2058
2089
  content_.append("fitMode", fitMode.toString());
2090
+ if (pageIndex !== null && pageIndex !== undefined)
2091
+ content_.append("pageIndex", pageIndex.toString());
2059
2092
  let options_ = {
2060
2093
  data: content_,
2061
2094
  responseType: "blob",
@@ -2102,6 +2135,13 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
2102
2135
  result404 = JSON.parse(resultData404);
2103
2136
  return throwException("Not Found", status, _responseText, _headers, result404);
2104
2137
  }
2138
+ else if (status === 409) {
2139
+ const _responseText = response.data;
2140
+ let result409 = null;
2141
+ let resultData409 = _responseText;
2142
+ result409 = JSON.parse(resultData409);
2143
+ return throwException("Conflict", status, _responseText, _headers, result409);
2144
+ }
2105
2145
  else if (status === 401) {
2106
2146
  const _responseText = response.data;
2107
2147
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -2133,9 +2173,10 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
2133
2173
  * @param height (optional)
2134
2174
  * @param fileFormat (optional)
2135
2175
  * @param fitMode (optional)
2176
+ * @param pageIndex (optional)
2136
2177
  * @return Success
2137
2178
  */
2138
- renderImagePreviewFromFileToResource(tenantId, resourceOwnerId, resourceNamespace, resourceName, resourceSourceId, resourceType, anonymousAccess, overwriteExistingResource, sourceFile, mockupOwnerId, mockupId, width, height, fileFormat, fitMode, cancelToken) {
2179
+ renderImagePreviewFromFileToResource(tenantId, resourceOwnerId, resourceNamespace, resourceName, resourceSourceId, resourceType, anonymousAccess, overwriteExistingResource, sourceFile, mockupOwnerId, mockupId, width, height, fileFormat, fitMode, pageIndex, cancelToken) {
2139
2180
  let url_ = this.baseUrl + "/api/atoms/v1/images/render-preview/from-file/to-resource?";
2140
2181
  if (tenantId === null)
2141
2182
  throw new Error("The parameter 'tenantId' cannot be null.");
@@ -2171,6 +2212,8 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
2171
2212
  content_.append("fileFormat", fileFormat.toString());
2172
2213
  if (fitMode !== null && fitMode !== undefined)
2173
2214
  content_.append("fitMode", fitMode.toString());
2215
+ if (pageIndex !== null && pageIndex !== undefined)
2216
+ content_.append("pageIndex", pageIndex.toString());
2174
2217
  let options_ = {
2175
2218
  data: content_,
2176
2219
  method: "POST",
@@ -2303,6 +2346,13 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
2303
2346
  result404 = JSON.parse(resultData404);
2304
2347
  return throwException("Not Found", status, _responseText, _headers, result404);
2305
2348
  }
2349
+ else if (status === 409) {
2350
+ const _responseText = response.data;
2351
+ let result409 = null;
2352
+ let resultData409 = _responseText;
2353
+ result409 = JSON.parse(resultData409);
2354
+ return throwException("Conflict", status, _responseText, _headers, result409);
2355
+ }
2306
2356
  else if (status === 401) {
2307
2357
  const _responseText = response.data;
2308
2358
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -5915,6 +5965,13 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
5915
5965
  result200 = JSON.parse(resultData200);
5916
5966
  return Promise.resolve(result200);
5917
5967
  }
5968
+ else if (status === 400) {
5969
+ const _responseText = response.data;
5970
+ let result400 = null;
5971
+ let resultData400 = _responseText;
5972
+ result400 = JSON.parse(resultData400);
5973
+ return throwException("Bad Request", status, _responseText, _headers, result400);
5974
+ }
5918
5975
  else if (status === 401) {
5919
5976
  const _responseText = response.data;
5920
5977
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -5983,6 +6040,88 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
5983
6040
  const fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
5984
6041
  return Promise.resolve({ fileName: fileName, status: status, data: new Blob([response.data]), headers: _headers });
5985
6042
  }
6043
+ else if (status === 400) {
6044
+ const _responseText = response.data;
6045
+ let result400 = null;
6046
+ let resultData400 = _responseText;
6047
+ result400 = JSON.parse(resultData400);
6048
+ return throwException("Bad Request", status, _responseText, _headers, result400);
6049
+ }
6050
+ else if (status === 401) {
6051
+ const _responseText = response.data;
6052
+ return throwException("Unauthorized", status, _responseText, _headers);
6053
+ }
6054
+ else if (status === 403) {
6055
+ const _responseText = response.data;
6056
+ return throwException("Forbidden", status, _responseText, _headers);
6057
+ }
6058
+ else if (status !== 200 && status !== 204) {
6059
+ const _responseText = response.data;
6060
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6061
+ }
6062
+ return Promise.resolve(null);
6063
+ }
6064
+ /**
6065
+ * Extracts print-product item image.
6066
+ * @param tenantId (optional) Tenant ID.
6067
+ * @param body (optional) Extraction parameters.
6068
+ * @return Success
6069
+ */
6070
+ extractItemImageToResource(tenantId, body, cancelToken) {
6071
+ let url_ = this.baseUrl + "/api/atoms/v1/designs/print-product/items/extract-image/to-resource?";
6072
+ if (tenantId === null)
6073
+ throw new Error("The parameter 'tenantId' cannot be null.");
6074
+ else if (tenantId !== undefined)
6075
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
6076
+ url_ = url_.replace(/[?&]$/, "");
6077
+ const content_ = JSON.stringify(body);
6078
+ let options_ = {
6079
+ data: content_,
6080
+ method: "POST",
6081
+ url: url_,
6082
+ headers: {
6083
+ "Content-Type": "application/json",
6084
+ "Accept": "application/octet-stream"
6085
+ },
6086
+ cancelToken
6087
+ };
6088
+ return this.transformOptions(options_).then(transformedOptions_ => {
6089
+ return this.instance.request(transformedOptions_);
6090
+ }).catch((_error) => {
6091
+ if (isAxiosError(_error) && _error.response) {
6092
+ return _error.response;
6093
+ }
6094
+ else {
6095
+ throw _error;
6096
+ }
6097
+ }).then((_response) => {
6098
+ return this.transformResult(url_, _response, (_response) => this.processExtractItemImageToResource(_response));
6099
+ });
6100
+ }
6101
+ processExtractItemImageToResource(response) {
6102
+ const status = response.status;
6103
+ let _headers = {};
6104
+ if (response.headers && typeof response.headers === "object") {
6105
+ for (let k in response.headers) {
6106
+ if (response.headers.hasOwnProperty(k)) {
6107
+ _headers[k] = response.headers[k];
6108
+ }
6109
+ }
6110
+ }
6111
+ if (status === 200) {
6112
+ const _responseText = response.data;
6113
+ let result200 = null;
6114
+ let resultData200 = _responseText;
6115
+ result200 = JSON.parse(resultData200);
6116
+ return Promise.resolve(result200);
6117
+ }
6118
+ else if (status === 400) {
6119
+ const _responseText = response.data;
6120
+ let result400 = null;
6121
+ let resultData400 = _responseText;
6122
+ result400 = JSON.parse(resultData400);
6123
+ return throwException("Bad Request", status, _responseText, _headers, result400);
6124
+ }
5986
6125
  else if (status === 401) {
5987
6126
  const _responseText = response.data;
5988
6127
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -6054,6 +6193,20 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
6054
6193
  result200 = JSON.parse(resultData200);
6055
6194
  return Promise.resolve(result200);
6056
6195
  }
6196
+ else if (status === 400) {
6197
+ const _responseText = response.data;
6198
+ let result400 = null;
6199
+ let resultData400 = _responseText;
6200
+ result400 = JSON.parse(resultData400);
6201
+ return throwException("Bad Request", status, _responseText, _headers, result400);
6202
+ }
6203
+ else if (status === 409) {
6204
+ const _responseText = response.data;
6205
+ let result409 = null;
6206
+ let resultData409 = _responseText;
6207
+ result409 = JSON.parse(resultData409);
6208
+ return throwException("Conflict", status, _responseText, _headers, result409);
6209
+ }
6057
6210
  else if (status === 401) {
6058
6211
  const _responseText = response.data;
6059
6212
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -6074,10 +6227,11 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
6074
6227
  * @param tenantId (optional) Tenant ID.
6075
6228
  * @param sourceFile (optional)
6076
6229
  * @param paletteUID (optional)
6230
+ * @param pageIndex (optional)
6077
6231
  * @param preserveOriginalFile (optional)
6078
6232
  * @return Success
6079
6233
  */
6080
- createItemFromFile(itemType, tenantId, sourceFile, paletteUID, preserveOriginalFile, cancelToken) {
6234
+ createItemFromFile(itemType, tenantId, sourceFile, paletteUID, pageIndex, preserveOriginalFile, cancelToken) {
6081
6235
  let url_ = this.baseUrl + "/api/atoms/v1/designs/print-product/items/from-file?";
6082
6236
  if (itemType !== undefined && itemType !== null)
6083
6237
  url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
@@ -6091,6 +6245,8 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
6091
6245
  content_.append("sourceFile", sourceFile.data, sourceFile.fileName ? sourceFile.fileName : "sourceFile");
6092
6246
  if (paletteUID !== null && paletteUID !== undefined)
6093
6247
  content_.append("paletteUID", paletteUID.toString());
6248
+ if (pageIndex !== null && pageIndex !== undefined)
6249
+ content_.append("pageIndex", pageIndex.toString());
6094
6250
  if (preserveOriginalFile !== null && preserveOriginalFile !== undefined)
6095
6251
  content_.append("preserveOriginalFile", preserveOriginalFile.toString());
6096
6252
  let options_ = {
@@ -6132,6 +6288,13 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
6132
6288
  result200 = JSON.parse(resultData200);
6133
6289
  return Promise.resolve(result200);
6134
6290
  }
6291
+ else if (status === 400) {
6292
+ const _responseText = response.data;
6293
+ let result400 = null;
6294
+ let resultData400 = _responseText;
6295
+ result400 = JSON.parse(resultData400);
6296
+ return throwException("Bad Request", status, _responseText, _headers, result400);
6297
+ }
6135
6298
  else if (status === 404) {
6136
6299
  const _responseText = response.data;
6137
6300
  let result404 = null;
@@ -6224,6 +6387,13 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
6224
6387
  result200 = JSON.parse(resultData200);
6225
6388
  return Promise.resolve(result200);
6226
6389
  }
6390
+ else if (status === 400) {
6391
+ const _responseText = response.data;
6392
+ let result400 = null;
6393
+ let resultData400 = _responseText;
6394
+ result400 = JSON.parse(resultData400);
6395
+ return throwException("Bad Request", status, _responseText, _headers, result400);
6396
+ }
6227
6397
  else if (status === 404) {
6228
6398
  const _responseText = response.data;
6229
6399
  let result404 = null;
@@ -6309,6 +6479,13 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
6309
6479
  result200 = JSON.parse(resultData200);
6310
6480
  return Promise.resolve(result200);
6311
6481
  }
6482
+ else if (status === 400) {
6483
+ const _responseText = response.data;
6484
+ let result400 = null;
6485
+ let resultData400 = _responseText;
6486
+ result400 = JSON.parse(resultData400);
6487
+ return throwException("Bad Request", status, _responseText, _headers, result400);
6488
+ }
6312
6489
  else if (status === 404) {
6313
6490
  const _responseText = response.data;
6314
6491
  let result404 = null;
@@ -6394,6 +6571,13 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
6394
6571
  result200 = JSON.parse(resultData200);
6395
6572
  return Promise.resolve(result200);
6396
6573
  }
6574
+ else if (status === 400) {
6575
+ const _responseText = response.data;
6576
+ let result400 = null;
6577
+ let resultData400 = _responseText;
6578
+ result400 = JSON.parse(resultData400);
6579
+ return throwException("Bad Request", status, _responseText, _headers, result400);
6580
+ }
6397
6581
  else if (status === 404) {
6398
6582
  const _responseText = response.data;
6399
6583
  let result404 = null;
@@ -9347,27 +9531,38 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
9347
9531
  }
9348
9532
  /**
9349
9533
  * Retrieves an image with resized dimensions and additional visual effects based on the provided parameters.
9350
- This method accepts query parameters that control the output of the image.
9351
9534
  * @param f (optional) The identifier of the original image file.
9352
9535
  * @param w (optional) Target width of the resulting image.
9353
9536
  * @param h (optional) Target height of the resulting image.
9354
9537
  * @param cmyk (optional) Name of the CMYK profile used for color conversion.
9355
9538
  * @param rgb (optional) Name of the RGB profile used for color conversion.
9356
9539
  * @param grayscale (optional) Name of the grayscale profile used to convert into shades of gray.
9357
- * @param target (optional) Target color space, one of `"Rgb"`, `"Grayscale"`, or `"Cmyk"`.
9358
- * @param sq (optional) Indicates that the image is squared. The default value is `false`.
9359
- * @param effect (optional) Effect applied to the image. The default value is `"None"`.
9360
- Possible values: `"None"`, `"BlackAndWhite"`, `"FlipVertical"`, `"FlipHorizontal"`, `"Colorize"`, `"Grayscale"`, or `"BlackAndTransparent"`.
9361
- * @param kp (optional) Indicates that image proportions should be maintained. The default value is `false`.
9362
- * @param color (optional) String defining an overlay color in the RGB, RGBA, CMYK, or CMYKA format. By default, it's an empty string.
9363
- * @param obm (optional) Overlay blend mode used for blending colors. By default, it's an empty string.
9364
- Possible values: `"Normal"`, `"Multiply"`, `"Screen"`, `"Overlay"`, `"Darken"`, `"Lighten"`, `"ColorDodge"`, `"ColorBurn"`, `"HardLight"`, `"SoftLight"`, `"Difference"`, `"Exclusion"`, `"None"`, or `"LinearBurn"`.
9365
- * @param oo (optional) Opacity level of the overlaid layer, in the range `[0.0,1.0]`. The default value is `null`.
9366
- * @param alphaMask (optional) Enables alpha mask processing. The default value is `false`.
9367
- * @param page (optional) Page index in a PDF document that needs to be processed. The default value is `0`.
9368
- * @param colorizeColor (optional) Color applied for the `"Colorize"` image effect. By default, it's an empty string.
9369
- * @param rw (optional) Rectangle width for area selection. The default value is `0`.
9370
- * @param rh (optional) Rectangle height for area selection. The default value is `0`.
9540
+ * @param target (optional) Target color space, one of "Rgb", "Grayscale", or "Cmyk".
9541
+ * @param sq (optional) Indicates that the image is squared.
9542
+ The default value is "false".
9543
+ * @param effect (optional) Effect applied to the image.
9544
+ Possible values: "None", "BlackAndWhite", "FlipVertical", "FlipHorizontal", "Colorize", "Grayscale", or "BlackAndTransparent".
9545
+ The default value is "None".
9546
+ * @param kp (optional) Indicates that image proportions should be maintained.
9547
+ The default value is "false".
9548
+ * @param color (optional) Overlay color in the RGB, RGBA, CMYK, or CMYKA format.
9549
+ By default, it's an empty string.
9550
+ * @param obm (optional) Overlay blend mode used for blending colors.
9551
+ Possible values: "Normal", "Multiply", "Screen", "Overlay", "Darken", "Lighten", "ColorDodge",
9552
+ "ColorBurn", "HardLight", "SoftLight", `Difference", "Exclusion", "None", or "LinearBurn".
9553
+ By default, it's an empty string.
9554
+ * @param oo (optional) Opacity level of the overlaid layer, in the range [0.0, 1.0].
9555
+ The default value is "null".
9556
+ * @param alphaMask (optional) Enables alpha mask processing.
9557
+ The default value is "false".
9558
+ * @param page (optional) Page index in a PDF document that needs to be processed.
9559
+ The default value is "0".
9560
+ * @param colorizeColor (optional) Color applied for the "Colorize" image effect.
9561
+ By default, it's an empty string.
9562
+ * @param rw (optional) Rectangle width for area selection.
9563
+ The default value is "0".
9564
+ * @param rh (optional) Rectangle height for area selection.
9565
+ The default value is "0".
9371
9566
  * @param tenantId (optional) Tenant ID.
9372
9567
  * @return Success
9373
9568
  */
@@ -9681,20 +9876,32 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
9681
9876
  * @param cmyk (optional) Name of the CMYK profile used for color conversion.
9682
9877
  * @param rgb (optional) Name of the RGB profile used for color conversion.
9683
9878
  * @param grayscale (optional) Name of the grayscale profile used to convert into shades of gray.
9684
- * @param target (optional) Target color space, one of `"Rgb"`, `"Grayscale"`, or `"Cmyk"`.
9685
- * @param sq (optional) Indicates that the image is squared. The default value is `false`.
9686
- * @param effect (optional) Effect applied to the image. The default value is `"None"`.
9687
- Possible values: `"None"`, `"BlackAndWhite"`, `"FlipVertical"`, `"FlipHorizontal"`, `"Colorize"`, `"Grayscale"`, or `"BlackAndTransparent"`.
9688
- * @param kp (optional) Indicates that image proportions should be maintained. The default value is `false`.
9689
- * @param color (optional) String defining an overlay color in the RGB, RGBA, CMYK, or CMYKA format. By default, it's an empty string.
9690
- * @param obm (optional) Overlay blend mode used for blending colors. By default, it's an empty string.
9691
- Possible values: `"Normal"`, `"Multiply"`, `"Screen"`, `"Overlay"`, `"Darken"`, `"Lighten"`, `"ColorDodge"`, `"ColorBurn"`, `"HardLight"`, `"SoftLight"`, `"Difference"`, `"Exclusion"`, `"None"`, or `"LinearBurn"`.
9692
- * @param oo (optional) Opacity level of the overlaid layer, in the range `[0.0,1.0]`. The default value is `null`.
9693
- * @param alphaMask (optional) Enables alpha mask processing. The default value is `false`.
9694
- * @param page (optional) Page index in a PDF document that needs to be processed. The default value is `0`.
9695
- * @param colorizeColor (optional) Color applied for the `"Colorize"` image effect. By default, it's an empty string.
9696
- * @param rw (optional) Rectangle width for area selection. The default value is `0`.
9697
- * @param rh (optional) Rectangle height for area selection. The default value is `0`.
9879
+ * @param target (optional) Target color space, one of "Rgb", "Grayscale", or "Cmyk".
9880
+ * @param sq (optional) Indicates that the image is squared.
9881
+ The default value is "false".
9882
+ * @param effect (optional) Effect applied to the image.
9883
+ Possible values: "None", "BlackAndWhite", "FlipVertical", "FlipHorizontal", "Colorize", "Grayscale", or "BlackAndTransparent".
9884
+ The default value is "None".
9885
+ * @param kp (optional) Indicates that image proportions should be maintained.
9886
+ The default value is "false".
9887
+ * @param color (optional) Overlay color in the RGB, RGBA, CMYK, or CMYKA format.
9888
+ By default, it's an empty string.
9889
+ * @param obm (optional) Overlay blend mode used for blending colors.
9890
+ Possible values: "Normal", "Multiply", "Screen", "Overlay", "Darken", "Lighten", "ColorDodge",
9891
+ "ColorBurn", "HardLight", "SoftLight", `Difference", "Exclusion", "None", or "LinearBurn".
9892
+ By default, it's an empty string.
9893
+ * @param oo (optional) Opacity level of the overlaid layer, in the range [0.0, 1.0].
9894
+ The default value is "null".
9895
+ * @param alphaMask (optional) Enables alpha mask processing.
9896
+ The default value is "false".
9897
+ * @param page (optional) Page index in a PDF document that needs to be processed.
9898
+ The default value is "0".
9899
+ * @param colorizeColor (optional) Color applied for the "Colorize" image effect.
9900
+ By default, it's an empty string.
9901
+ * @param rw (optional) Rectangle width for area selection.
9902
+ The default value is "0".
9903
+ * @param rh (optional) Rectangle height for area selection.
9904
+ The default value is "0".
9698
9905
  * @param tenantId (optional) Tenant ID.
9699
9906
  * @return Success
9700
9907
  */
@@ -10585,6 +10792,12 @@ var DesignElementType;
10585
10792
  DesignElementType["PrintArea"] = "PrintArea";
10586
10793
  DesignElementType["Item"] = "Item";
10587
10794
  })(DesignElementType = exports.DesignElementType || (exports.DesignElementType = {}));
10795
+ /** Image preview file format. */
10796
+ var ImageExtractionFormat;
10797
+ (function (ImageExtractionFormat) {
10798
+ ImageExtractionFormat["Jpeg"] = "Jpeg";
10799
+ ImageExtractionFormat["Png"] = "Png";
10800
+ })(ImageExtractionFormat = exports.ImageExtractionFormat || (exports.ImageExtractionFormat = {}));
10588
10801
  /** Image preview fit mode. */
10589
10802
  var ImagePreviewFitMode;
10590
10803
  (function (ImagePreviewFitMode) {