@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.
- package/dist/cjs/design-atoms-api-client.d.ts +263 -123
- package/dist/cjs/design-atoms-api-client.js +275 -62
- package/dist/cjs/design-atoms-api-client.js.map +1 -1
- package/dist/esm/design-atoms-api-client.d.ts +263 -123
- package/dist/esm/design-atoms-api-client.js +274 -61
- package/dist/esm/design-atoms-api-client.js.map +1 -1
- package/package.json +1 -1
|
@@ -737,27 +737,38 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
737
737
|
}
|
|
738
738
|
/**
|
|
739
739
|
* Retrieves an image with resized dimensions and additional visual effects based on the provided parameters.
|
|
740
|
-
This method accepts query parameters that control the output of the image.
|
|
741
740
|
* @param f (optional) The identifier of the original image file.
|
|
742
741
|
* @param w (optional) Target width of the resulting image.
|
|
743
742
|
* @param h (optional) Target height of the resulting image.
|
|
744
743
|
* @param cmyk (optional) Name of the CMYK profile used for color conversion.
|
|
745
744
|
* @param rgb (optional) Name of the RGB profile used for color conversion.
|
|
746
745
|
* @param grayscale (optional) Name of the grayscale profile used to convert into shades of gray.
|
|
747
|
-
* @param target (optional) Target color space, one of
|
|
748
|
-
* @param sq (optional) Indicates that the image is squared.
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
* @param
|
|
754
|
-
|
|
755
|
-
* @param
|
|
756
|
-
|
|
757
|
-
* @param
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
746
|
+
* @param target (optional) Target color space, one of "Rgb", "Grayscale", or "Cmyk".
|
|
747
|
+
* @param sq (optional) Indicates that the image is squared.
|
|
748
|
+
The default value is "false".
|
|
749
|
+
* @param effect (optional) Effect applied to the image.
|
|
750
|
+
Possible values: "None", "BlackAndWhite", "FlipVertical", "FlipHorizontal", "Colorize", "Grayscale", or "BlackAndTransparent".
|
|
751
|
+
The default value is "None".
|
|
752
|
+
* @param kp (optional) Indicates that image proportions should be maintained.
|
|
753
|
+
The default value is "false".
|
|
754
|
+
* @param color (optional) Overlay color in the RGB, RGBA, CMYK, or CMYKA format.
|
|
755
|
+
By default, it's an empty string.
|
|
756
|
+
* @param obm (optional) Overlay blend mode used for blending colors.
|
|
757
|
+
Possible values: "Normal", "Multiply", "Screen", "Overlay", "Darken", "Lighten", "ColorDodge",
|
|
758
|
+
"ColorBurn", "HardLight", "SoftLight", `Difference", "Exclusion", "None", or "LinearBurn".
|
|
759
|
+
By default, it's an empty string.
|
|
760
|
+
* @param oo (optional) Opacity level of the overlaid layer, in the range [0.0, 1.0].
|
|
761
|
+
The default value is "null".
|
|
762
|
+
* @param alphaMask (optional) Enables alpha mask processing.
|
|
763
|
+
The default value is "false".
|
|
764
|
+
* @param page (optional) Page index in a PDF document that needs to be processed.
|
|
765
|
+
The default value is "0".
|
|
766
|
+
* @param colorizeColor (optional) Color applied for the "Colorize" image effect.
|
|
767
|
+
By default, it's an empty string.
|
|
768
|
+
* @param rw (optional) Rectangle width for area selection.
|
|
769
|
+
The default value is "0".
|
|
770
|
+
* @param rh (optional) Rectangle height for area selection.
|
|
771
|
+
The default value is "0".
|
|
761
772
|
* @return Success
|
|
762
773
|
*/
|
|
763
774
|
img(tenantId, f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, cancelToken) {
|
|
@@ -1063,20 +1074,32 @@ export class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1063
1074
|
* @param cmyk (optional) Name of the CMYK profile used for color conversion.
|
|
1064
1075
|
* @param rgb (optional) Name of the RGB profile used for color conversion.
|
|
1065
1076
|
* @param grayscale (optional) Name of the grayscale profile used to convert into shades of gray.
|
|
1066
|
-
* @param target (optional) Target color space, one of
|
|
1067
|
-
* @param sq (optional) Indicates that the image is squared.
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
* @param
|
|
1073
|
-
|
|
1074
|
-
* @param
|
|
1075
|
-
|
|
1076
|
-
* @param
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1077
|
+
* @param target (optional) Target color space, one of "Rgb", "Grayscale", or "Cmyk".
|
|
1078
|
+
* @param sq (optional) Indicates that the image is squared.
|
|
1079
|
+
The default value is "false".
|
|
1080
|
+
* @param effect (optional) Effect applied to the image.
|
|
1081
|
+
Possible values: "None", "BlackAndWhite", "FlipVertical", "FlipHorizontal", "Colorize", "Grayscale", or "BlackAndTransparent".
|
|
1082
|
+
The default value is "None".
|
|
1083
|
+
* @param kp (optional) Indicates that image proportions should be maintained.
|
|
1084
|
+
The default value is "false".
|
|
1085
|
+
* @param color (optional) Overlay color in the RGB, RGBA, CMYK, or CMYKA format.
|
|
1086
|
+
By default, it's an empty string.
|
|
1087
|
+
* @param obm (optional) Overlay blend mode used for blending colors.
|
|
1088
|
+
Possible values: "Normal", "Multiply", "Screen", "Overlay", "Darken", "Lighten", "ColorDodge",
|
|
1089
|
+
"ColorBurn", "HardLight", "SoftLight", `Difference", "Exclusion", "None", or "LinearBurn".
|
|
1090
|
+
By default, it's an empty string.
|
|
1091
|
+
* @param oo (optional) Opacity level of the overlaid layer, in the range [0.0, 1.0].
|
|
1092
|
+
The default value is "null".
|
|
1093
|
+
* @param alphaMask (optional) Enables alpha mask processing.
|
|
1094
|
+
The default value is "false".
|
|
1095
|
+
* @param page (optional) Page index in a PDF document that needs to be processed.
|
|
1096
|
+
The default value is "0".
|
|
1097
|
+
* @param colorizeColor (optional) Color applied for the "Colorize" image effect.
|
|
1098
|
+
By default, it's an empty string.
|
|
1099
|
+
* @param rw (optional) Rectangle width for area selection.
|
|
1100
|
+
The default value is "0".
|
|
1101
|
+
* @param rh (optional) Rectangle height for area selection.
|
|
1102
|
+
The default value is "0".
|
|
1080
1103
|
* @return Success
|
|
1081
1104
|
*/
|
|
1082
1105
|
svg(tenantId, f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, cancelToken) {
|
|
@@ -1997,6 +2020,13 @@ export class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
1997
2020
|
result404 = JSON.parse(resultData404);
|
|
1998
2021
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1999
2022
|
}
|
|
2023
|
+
else if (status === 409) {
|
|
2024
|
+
const _responseText = response.data;
|
|
2025
|
+
let result409 = null;
|
|
2026
|
+
let resultData409 = _responseText;
|
|
2027
|
+
result409 = JSON.parse(resultData409);
|
|
2028
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
2029
|
+
}
|
|
2000
2030
|
else if (status === 401) {
|
|
2001
2031
|
const _responseText = response.data;
|
|
2002
2032
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -2023,9 +2053,10 @@ export class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2023
2053
|
* @param height (optional)
|
|
2024
2054
|
* @param fileFormat (optional)
|
|
2025
2055
|
* @param fitMode (optional)
|
|
2056
|
+
* @param pageIndex (optional)
|
|
2026
2057
|
* @return Success
|
|
2027
2058
|
*/
|
|
2028
|
-
renderImagePreviewFromFile(attachment, tenantId, sourceFile, mockupOwnerId, mockupId, width, height, fileFormat, fitMode, cancelToken) {
|
|
2059
|
+
renderImagePreviewFromFile(attachment, tenantId, sourceFile, mockupOwnerId, mockupId, width, height, fileFormat, fitMode, pageIndex, cancelToken) {
|
|
2029
2060
|
let url_ = this.baseUrl + "/api/atoms/v1/images/render-preview/from-file?";
|
|
2030
2061
|
if (attachment !== undefined && attachment !== null)
|
|
2031
2062
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
@@ -2049,6 +2080,8 @@ export class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2049
2080
|
content_.append("fileFormat", fileFormat.toString());
|
|
2050
2081
|
if (fitMode !== null && fitMode !== undefined)
|
|
2051
2082
|
content_.append("fitMode", fitMode.toString());
|
|
2083
|
+
if (pageIndex !== null && pageIndex !== undefined)
|
|
2084
|
+
content_.append("pageIndex", pageIndex.toString());
|
|
2052
2085
|
let options_ = {
|
|
2053
2086
|
data: content_,
|
|
2054
2087
|
responseType: "blob",
|
|
@@ -2095,6 +2128,13 @@ export class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2095
2128
|
result404 = JSON.parse(resultData404);
|
|
2096
2129
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2097
2130
|
}
|
|
2131
|
+
else if (status === 409) {
|
|
2132
|
+
const _responseText = response.data;
|
|
2133
|
+
let result409 = null;
|
|
2134
|
+
let resultData409 = _responseText;
|
|
2135
|
+
result409 = JSON.parse(resultData409);
|
|
2136
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
2137
|
+
}
|
|
2098
2138
|
else if (status === 401) {
|
|
2099
2139
|
const _responseText = response.data;
|
|
2100
2140
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -2126,9 +2166,10 @@ export class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2126
2166
|
* @param height (optional)
|
|
2127
2167
|
* @param fileFormat (optional)
|
|
2128
2168
|
* @param fitMode (optional)
|
|
2169
|
+
* @param pageIndex (optional)
|
|
2129
2170
|
* @return Success
|
|
2130
2171
|
*/
|
|
2131
|
-
renderImagePreviewFromFileToResource(tenantId, resourceOwnerId, resourceNamespace, resourceName, resourceSourceId, resourceType, anonymousAccess, overwriteExistingResource, sourceFile, mockupOwnerId, mockupId, width, height, fileFormat, fitMode, cancelToken) {
|
|
2172
|
+
renderImagePreviewFromFileToResource(tenantId, resourceOwnerId, resourceNamespace, resourceName, resourceSourceId, resourceType, anonymousAccess, overwriteExistingResource, sourceFile, mockupOwnerId, mockupId, width, height, fileFormat, fitMode, pageIndex, cancelToken) {
|
|
2132
2173
|
let url_ = this.baseUrl + "/api/atoms/v1/images/render-preview/from-file/to-resource?";
|
|
2133
2174
|
if (tenantId === null)
|
|
2134
2175
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2164,6 +2205,8 @@ export class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2164
2205
|
content_.append("fileFormat", fileFormat.toString());
|
|
2165
2206
|
if (fitMode !== null && fitMode !== undefined)
|
|
2166
2207
|
content_.append("fitMode", fitMode.toString());
|
|
2208
|
+
if (pageIndex !== null && pageIndex !== undefined)
|
|
2209
|
+
content_.append("pageIndex", pageIndex.toString());
|
|
2167
2210
|
let options_ = {
|
|
2168
2211
|
data: content_,
|
|
2169
2212
|
method: "POST",
|
|
@@ -2296,6 +2339,13 @@ export class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2296
2339
|
result404 = JSON.parse(resultData404);
|
|
2297
2340
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2298
2341
|
}
|
|
2342
|
+
else if (status === 409) {
|
|
2343
|
+
const _responseText = response.data;
|
|
2344
|
+
let result409 = null;
|
|
2345
|
+
let resultData409 = _responseText;
|
|
2346
|
+
result409 = JSON.parse(resultData409);
|
|
2347
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
2348
|
+
}
|
|
2299
2349
|
else if (status === 401) {
|
|
2300
2350
|
const _responseText = response.data;
|
|
2301
2351
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -5904,6 +5954,13 @@ export class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
|
|
|
5904
5954
|
result200 = JSON.parse(resultData200);
|
|
5905
5955
|
return Promise.resolve(result200);
|
|
5906
5956
|
}
|
|
5957
|
+
else if (status === 400) {
|
|
5958
|
+
const _responseText = response.data;
|
|
5959
|
+
let result400 = null;
|
|
5960
|
+
let resultData400 = _responseText;
|
|
5961
|
+
result400 = JSON.parse(resultData400);
|
|
5962
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
5963
|
+
}
|
|
5907
5964
|
else if (status === 401) {
|
|
5908
5965
|
const _responseText = response.data;
|
|
5909
5966
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -5972,6 +6029,88 @@ export class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
|
|
|
5972
6029
|
const fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
5973
6030
|
return Promise.resolve({ fileName: fileName, status: status, data: new Blob([response.data]), headers: _headers });
|
|
5974
6031
|
}
|
|
6032
|
+
else if (status === 400) {
|
|
6033
|
+
const _responseText = response.data;
|
|
6034
|
+
let result400 = null;
|
|
6035
|
+
let resultData400 = _responseText;
|
|
6036
|
+
result400 = JSON.parse(resultData400);
|
|
6037
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
6038
|
+
}
|
|
6039
|
+
else if (status === 401) {
|
|
6040
|
+
const _responseText = response.data;
|
|
6041
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6042
|
+
}
|
|
6043
|
+
else if (status === 403) {
|
|
6044
|
+
const _responseText = response.data;
|
|
6045
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6046
|
+
}
|
|
6047
|
+
else if (status !== 200 && status !== 204) {
|
|
6048
|
+
const _responseText = response.data;
|
|
6049
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6050
|
+
}
|
|
6051
|
+
return Promise.resolve(null);
|
|
6052
|
+
}
|
|
6053
|
+
/**
|
|
6054
|
+
* Extracts print-product item image.
|
|
6055
|
+
* @param tenantId (optional) Tenant ID.
|
|
6056
|
+
* @param body (optional) Extraction parameters.
|
|
6057
|
+
* @return Success
|
|
6058
|
+
*/
|
|
6059
|
+
extractItemImageToResource(tenantId, body, cancelToken) {
|
|
6060
|
+
let url_ = this.baseUrl + "/api/atoms/v1/designs/print-product/items/extract-image/to-resource?";
|
|
6061
|
+
if (tenantId === null)
|
|
6062
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
6063
|
+
else if (tenantId !== undefined)
|
|
6064
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
6065
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6066
|
+
const content_ = JSON.stringify(body);
|
|
6067
|
+
let options_ = {
|
|
6068
|
+
data: content_,
|
|
6069
|
+
method: "POST",
|
|
6070
|
+
url: url_,
|
|
6071
|
+
headers: {
|
|
6072
|
+
"Content-Type": "application/json",
|
|
6073
|
+
"Accept": "application/octet-stream"
|
|
6074
|
+
},
|
|
6075
|
+
cancelToken
|
|
6076
|
+
};
|
|
6077
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6078
|
+
return this.instance.request(transformedOptions_);
|
|
6079
|
+
}).catch((_error) => {
|
|
6080
|
+
if (isAxiosError(_error) && _error.response) {
|
|
6081
|
+
return _error.response;
|
|
6082
|
+
}
|
|
6083
|
+
else {
|
|
6084
|
+
throw _error;
|
|
6085
|
+
}
|
|
6086
|
+
}).then((_response) => {
|
|
6087
|
+
return this.transformResult(url_, _response, (_response) => this.processExtractItemImageToResource(_response));
|
|
6088
|
+
});
|
|
6089
|
+
}
|
|
6090
|
+
processExtractItemImageToResource(response) {
|
|
6091
|
+
const status = response.status;
|
|
6092
|
+
let _headers = {};
|
|
6093
|
+
if (response.headers && typeof response.headers === "object") {
|
|
6094
|
+
for (let k in response.headers) {
|
|
6095
|
+
if (response.headers.hasOwnProperty(k)) {
|
|
6096
|
+
_headers[k] = response.headers[k];
|
|
6097
|
+
}
|
|
6098
|
+
}
|
|
6099
|
+
}
|
|
6100
|
+
if (status === 200) {
|
|
6101
|
+
const _responseText = response.data;
|
|
6102
|
+
let result200 = null;
|
|
6103
|
+
let resultData200 = _responseText;
|
|
6104
|
+
result200 = JSON.parse(resultData200);
|
|
6105
|
+
return Promise.resolve(result200);
|
|
6106
|
+
}
|
|
6107
|
+
else if (status === 400) {
|
|
6108
|
+
const _responseText = response.data;
|
|
6109
|
+
let result400 = null;
|
|
6110
|
+
let resultData400 = _responseText;
|
|
6111
|
+
result400 = JSON.parse(resultData400);
|
|
6112
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
6113
|
+
}
|
|
5975
6114
|
else if (status === 401) {
|
|
5976
6115
|
const _responseText = response.data;
|
|
5977
6116
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -6043,6 +6182,20 @@ export class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
|
|
|
6043
6182
|
result200 = JSON.parse(resultData200);
|
|
6044
6183
|
return Promise.resolve(result200);
|
|
6045
6184
|
}
|
|
6185
|
+
else if (status === 400) {
|
|
6186
|
+
const _responseText = response.data;
|
|
6187
|
+
let result400 = null;
|
|
6188
|
+
let resultData400 = _responseText;
|
|
6189
|
+
result400 = JSON.parse(resultData400);
|
|
6190
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
6191
|
+
}
|
|
6192
|
+
else if (status === 409) {
|
|
6193
|
+
const _responseText = response.data;
|
|
6194
|
+
let result409 = null;
|
|
6195
|
+
let resultData409 = _responseText;
|
|
6196
|
+
result409 = JSON.parse(resultData409);
|
|
6197
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
6198
|
+
}
|
|
6046
6199
|
else if (status === 401) {
|
|
6047
6200
|
const _responseText = response.data;
|
|
6048
6201
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -6063,10 +6216,11 @@ export class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
|
|
|
6063
6216
|
* @param tenantId (optional) Tenant ID.
|
|
6064
6217
|
* @param sourceFile (optional)
|
|
6065
6218
|
* @param paletteUID (optional)
|
|
6219
|
+
* @param pageIndex (optional)
|
|
6066
6220
|
* @param preserveOriginalFile (optional)
|
|
6067
6221
|
* @return Success
|
|
6068
6222
|
*/
|
|
6069
|
-
createItemFromFile(itemType, tenantId, sourceFile, paletteUID, preserveOriginalFile, cancelToken) {
|
|
6223
|
+
createItemFromFile(itemType, tenantId, sourceFile, paletteUID, pageIndex, preserveOriginalFile, cancelToken) {
|
|
6070
6224
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/print-product/items/from-file?";
|
|
6071
6225
|
if (itemType !== undefined && itemType !== null)
|
|
6072
6226
|
url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
|
|
@@ -6080,6 +6234,8 @@ export class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
|
|
|
6080
6234
|
content_.append("sourceFile", sourceFile.data, sourceFile.fileName ? sourceFile.fileName : "sourceFile");
|
|
6081
6235
|
if (paletteUID !== null && paletteUID !== undefined)
|
|
6082
6236
|
content_.append("paletteUID", paletteUID.toString());
|
|
6237
|
+
if (pageIndex !== null && pageIndex !== undefined)
|
|
6238
|
+
content_.append("pageIndex", pageIndex.toString());
|
|
6083
6239
|
if (preserveOriginalFile !== null && preserveOriginalFile !== undefined)
|
|
6084
6240
|
content_.append("preserveOriginalFile", preserveOriginalFile.toString());
|
|
6085
6241
|
let options_ = {
|
|
@@ -6121,6 +6277,13 @@ export class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
|
|
|
6121
6277
|
result200 = JSON.parse(resultData200);
|
|
6122
6278
|
return Promise.resolve(result200);
|
|
6123
6279
|
}
|
|
6280
|
+
else if (status === 400) {
|
|
6281
|
+
const _responseText = response.data;
|
|
6282
|
+
let result400 = null;
|
|
6283
|
+
let resultData400 = _responseText;
|
|
6284
|
+
result400 = JSON.parse(resultData400);
|
|
6285
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
6286
|
+
}
|
|
6124
6287
|
else if (status === 404) {
|
|
6125
6288
|
const _responseText = response.data;
|
|
6126
6289
|
let result404 = null;
|
|
@@ -6213,6 +6376,13 @@ export class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
|
|
|
6213
6376
|
result200 = JSON.parse(resultData200);
|
|
6214
6377
|
return Promise.resolve(result200);
|
|
6215
6378
|
}
|
|
6379
|
+
else if (status === 400) {
|
|
6380
|
+
const _responseText = response.data;
|
|
6381
|
+
let result400 = null;
|
|
6382
|
+
let resultData400 = _responseText;
|
|
6383
|
+
result400 = JSON.parse(resultData400);
|
|
6384
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
6385
|
+
}
|
|
6216
6386
|
else if (status === 404) {
|
|
6217
6387
|
const _responseText = response.data;
|
|
6218
6388
|
let result404 = null;
|
|
@@ -6298,6 +6468,13 @@ export class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
|
|
|
6298
6468
|
result200 = JSON.parse(resultData200);
|
|
6299
6469
|
return Promise.resolve(result200);
|
|
6300
6470
|
}
|
|
6471
|
+
else if (status === 400) {
|
|
6472
|
+
const _responseText = response.data;
|
|
6473
|
+
let result400 = null;
|
|
6474
|
+
let resultData400 = _responseText;
|
|
6475
|
+
result400 = JSON.parse(resultData400);
|
|
6476
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
6477
|
+
}
|
|
6301
6478
|
else if (status === 404) {
|
|
6302
6479
|
const _responseText = response.data;
|
|
6303
6480
|
let result404 = null;
|
|
@@ -6383,6 +6560,13 @@ export class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
|
|
|
6383
6560
|
result200 = JSON.parse(resultData200);
|
|
6384
6561
|
return Promise.resolve(result200);
|
|
6385
6562
|
}
|
|
6563
|
+
else if (status === 400) {
|
|
6564
|
+
const _responseText = response.data;
|
|
6565
|
+
let result400 = null;
|
|
6566
|
+
let resultData400 = _responseText;
|
|
6567
|
+
result400 = JSON.parse(resultData400);
|
|
6568
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
6569
|
+
}
|
|
6386
6570
|
else if (status === 404) {
|
|
6387
6571
|
const _responseText = response.data;
|
|
6388
6572
|
let result404 = null;
|
|
@@ -9334,27 +9518,38 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
9334
9518
|
}
|
|
9335
9519
|
/**
|
|
9336
9520
|
* Retrieves an image with resized dimensions and additional visual effects based on the provided parameters.
|
|
9337
|
-
This method accepts query parameters that control the output of the image.
|
|
9338
9521
|
* @param f (optional) The identifier of the original image file.
|
|
9339
9522
|
* @param w (optional) Target width of the resulting image.
|
|
9340
9523
|
* @param h (optional) Target height of the resulting image.
|
|
9341
9524
|
* @param cmyk (optional) Name of the CMYK profile used for color conversion.
|
|
9342
9525
|
* @param rgb (optional) Name of the RGB profile used for color conversion.
|
|
9343
9526
|
* @param grayscale (optional) Name of the grayscale profile used to convert into shades of gray.
|
|
9344
|
-
* @param target (optional) Target color space, one of
|
|
9345
|
-
* @param sq (optional) Indicates that the image is squared.
|
|
9346
|
-
|
|
9347
|
-
|
|
9348
|
-
|
|
9349
|
-
|
|
9350
|
-
* @param
|
|
9351
|
-
|
|
9352
|
-
* @param
|
|
9353
|
-
|
|
9354
|
-
* @param
|
|
9355
|
-
|
|
9356
|
-
|
|
9357
|
-
|
|
9527
|
+
* @param target (optional) Target color space, one of "Rgb", "Grayscale", or "Cmyk".
|
|
9528
|
+
* @param sq (optional) Indicates that the image is squared.
|
|
9529
|
+
The default value is "false".
|
|
9530
|
+
* @param effect (optional) Effect applied to the image.
|
|
9531
|
+
Possible values: "None", "BlackAndWhite", "FlipVertical", "FlipHorizontal", "Colorize", "Grayscale", or "BlackAndTransparent".
|
|
9532
|
+
The default value is "None".
|
|
9533
|
+
* @param kp (optional) Indicates that image proportions should be maintained.
|
|
9534
|
+
The default value is "false".
|
|
9535
|
+
* @param color (optional) Overlay color in the RGB, RGBA, CMYK, or CMYKA format.
|
|
9536
|
+
By default, it's an empty string.
|
|
9537
|
+
* @param obm (optional) Overlay blend mode used for blending colors.
|
|
9538
|
+
Possible values: "Normal", "Multiply", "Screen", "Overlay", "Darken", "Lighten", "ColorDodge",
|
|
9539
|
+
"ColorBurn", "HardLight", "SoftLight", `Difference", "Exclusion", "None", or "LinearBurn".
|
|
9540
|
+
By default, it's an empty string.
|
|
9541
|
+
* @param oo (optional) Opacity level of the overlaid layer, in the range [0.0, 1.0].
|
|
9542
|
+
The default value is "null".
|
|
9543
|
+
* @param alphaMask (optional) Enables alpha mask processing.
|
|
9544
|
+
The default value is "false".
|
|
9545
|
+
* @param page (optional) Page index in a PDF document that needs to be processed.
|
|
9546
|
+
The default value is "0".
|
|
9547
|
+
* @param colorizeColor (optional) Color applied for the "Colorize" image effect.
|
|
9548
|
+
By default, it's an empty string.
|
|
9549
|
+
* @param rw (optional) Rectangle width for area selection.
|
|
9550
|
+
The default value is "0".
|
|
9551
|
+
* @param rh (optional) Rectangle height for area selection.
|
|
9552
|
+
The default value is "0".
|
|
9358
9553
|
* @param tenantId (optional) Tenant ID.
|
|
9359
9554
|
* @return Success
|
|
9360
9555
|
*/
|
|
@@ -9668,20 +9863,32 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
9668
9863
|
* @param cmyk (optional) Name of the CMYK profile used for color conversion.
|
|
9669
9864
|
* @param rgb (optional) Name of the RGB profile used for color conversion.
|
|
9670
9865
|
* @param grayscale (optional) Name of the grayscale profile used to convert into shades of gray.
|
|
9671
|
-
* @param target (optional) Target color space, one of
|
|
9672
|
-
* @param sq (optional) Indicates that the image is squared.
|
|
9673
|
-
|
|
9674
|
-
|
|
9675
|
-
|
|
9676
|
-
|
|
9677
|
-
* @param
|
|
9678
|
-
|
|
9679
|
-
* @param
|
|
9680
|
-
|
|
9681
|
-
* @param
|
|
9682
|
-
|
|
9683
|
-
|
|
9684
|
-
|
|
9866
|
+
* @param target (optional) Target color space, one of "Rgb", "Grayscale", or "Cmyk".
|
|
9867
|
+
* @param sq (optional) Indicates that the image is squared.
|
|
9868
|
+
The default value is "false".
|
|
9869
|
+
* @param effect (optional) Effect applied to the image.
|
|
9870
|
+
Possible values: "None", "BlackAndWhite", "FlipVertical", "FlipHorizontal", "Colorize", "Grayscale", or "BlackAndTransparent".
|
|
9871
|
+
The default value is "None".
|
|
9872
|
+
* @param kp (optional) Indicates that image proportions should be maintained.
|
|
9873
|
+
The default value is "false".
|
|
9874
|
+
* @param color (optional) Overlay color in the RGB, RGBA, CMYK, or CMYKA format.
|
|
9875
|
+
By default, it's an empty string.
|
|
9876
|
+
* @param obm (optional) Overlay blend mode used for blending colors.
|
|
9877
|
+
Possible values: "Normal", "Multiply", "Screen", "Overlay", "Darken", "Lighten", "ColorDodge",
|
|
9878
|
+
"ColorBurn", "HardLight", "SoftLight", `Difference", "Exclusion", "None", or "LinearBurn".
|
|
9879
|
+
By default, it's an empty string.
|
|
9880
|
+
* @param oo (optional) Opacity level of the overlaid layer, in the range [0.0, 1.0].
|
|
9881
|
+
The default value is "null".
|
|
9882
|
+
* @param alphaMask (optional) Enables alpha mask processing.
|
|
9883
|
+
The default value is "false".
|
|
9884
|
+
* @param page (optional) Page index in a PDF document that needs to be processed.
|
|
9885
|
+
The default value is "0".
|
|
9886
|
+
* @param colorizeColor (optional) Color applied for the "Colorize" image effect.
|
|
9887
|
+
By default, it's an empty string.
|
|
9888
|
+
* @param rw (optional) Rectangle width for area selection.
|
|
9889
|
+
The default value is "0".
|
|
9890
|
+
* @param rh (optional) Rectangle height for area selection.
|
|
9891
|
+
The default value is "0".
|
|
9685
9892
|
* @param tenantId (optional) Tenant ID.
|
|
9686
9893
|
* @return Success
|
|
9687
9894
|
*/
|
|
@@ -10571,6 +10778,12 @@ export var DesignElementType;
|
|
|
10571
10778
|
DesignElementType["PrintArea"] = "PrintArea";
|
|
10572
10779
|
DesignElementType["Item"] = "Item";
|
|
10573
10780
|
})(DesignElementType || (DesignElementType = {}));
|
|
10781
|
+
/** Image preview file format. */
|
|
10782
|
+
export var ImageExtractionFormat;
|
|
10783
|
+
(function (ImageExtractionFormat) {
|
|
10784
|
+
ImageExtractionFormat["Jpeg"] = "Jpeg";
|
|
10785
|
+
ImageExtractionFormat["Png"] = "Png";
|
|
10786
|
+
})(ImageExtractionFormat || (ImageExtractionFormat = {}));
|
|
10574
10787
|
/** Image preview fit mode. */
|
|
10575
10788
|
export var ImagePreviewFitMode;
|
|
10576
10789
|
(function (ImagePreviewFitMode) {
|