@aurigma/ng-design-atoms-api-client 2.70.4 → 2.72.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/aurigma-ng-design-atoms-api-client.metadata.json +1 -1
- package/bundles/aurigma-ng-design-atoms-api-client.umd.js +500 -245
- package/bundles/aurigma-ng-design-atoms-api-client.umd.js.map +1 -1
- package/bundles/aurigma-ng-design-atoms-api-client.umd.min.js +1 -1
- package/bundles/aurigma-ng-design-atoms-api-client.umd.min.js.map +1 -1
- package/esm2015/lib/design-atoms-api-client.js +309 -66
- package/fesm2015/aurigma-ng-design-atoms-api-client.js +309 -66
- package/fesm2015/aurigma-ng-design-atoms-api-client.js.map +1 -1
- package/lib/design-atoms-api-client.d.ts +307 -151
- package/package.json +1 -1
|
@@ -1263,30 +1263,43 @@
|
|
|
1263
1263
|
};
|
|
1264
1264
|
/**
|
|
1265
1265
|
* Retrieves an image with resized dimensions and additional visual effects based on the provided parameters.
|
|
1266
|
-
This method accepts query parameters that control the output of the image.
|
|
1267
1266
|
* @param f (optional) The identifier of the original image file.
|
|
1268
1267
|
* @param w (optional) Target width of the resulting image.
|
|
1269
1268
|
* @param h (optional) Target height of the resulting image.
|
|
1270
1269
|
* @param cmyk (optional) Name of the CMYK profile used for color conversion.
|
|
1271
1270
|
* @param rgb (optional) Name of the RGB profile used for color conversion.
|
|
1272
1271
|
* @param grayscale (optional) Name of the grayscale profile used to convert into shades of gray.
|
|
1273
|
-
* @param target (optional) Target color space, one of
|
|
1274
|
-
* @param sq (optional) Indicates that the image is squared.
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
* @param
|
|
1280
|
-
|
|
1281
|
-
* @param
|
|
1282
|
-
|
|
1283
|
-
* @param
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1272
|
+
* @param target (optional) Target color space, one of "Rgb", "Grayscale", or "Cmyk".
|
|
1273
|
+
* @param sq (optional) Indicates that the image is squared.
|
|
1274
|
+
The default value is "false".
|
|
1275
|
+
* @param effect (optional) Effect applied to the image.
|
|
1276
|
+
Possible values: "None", "BlackAndWhite", "FlipVertical", "FlipHorizontal", "Colorize", "Grayscale", or "BlackAndTransparent".
|
|
1277
|
+
The default value is "None".
|
|
1278
|
+
* @param kp (optional) Indicates that image proportions should be maintained.
|
|
1279
|
+
The default value is "false".
|
|
1280
|
+
* @param color (optional) Overlay color in the RGB, RGBA, CMYK, or CMYKA format.
|
|
1281
|
+
By default, it's an empty string.
|
|
1282
|
+
* @param obm (optional) Overlay blend mode used for blending colors.
|
|
1283
|
+
Possible values: "Normal", "Multiply", "Screen", "Overlay", "Darken", "Lighten", "ColorDodge",
|
|
1284
|
+
"ColorBurn", "HardLight", "SoftLight", `Difference", "Exclusion", "None", or "LinearBurn".
|
|
1285
|
+
By default, it's an empty string.
|
|
1286
|
+
* @param oo (optional) Opacity level of the overlaid layer, in the range [0.0, 1.0].
|
|
1287
|
+
The default value is "null".
|
|
1288
|
+
* @param alphaMask (optional) Enables alpha mask processing.
|
|
1289
|
+
The default value is "false".
|
|
1290
|
+
* @param page (optional) Page index in a PDF document that needs to be processed.
|
|
1291
|
+
The default value is "0".
|
|
1292
|
+
* @param colorizeColor (optional) Color applied for the "Colorize" image effect.
|
|
1293
|
+
By default, it's an empty string.
|
|
1294
|
+
* @param rw (optional) Rectangle width for area selection.
|
|
1295
|
+
The default value is "0".
|
|
1296
|
+
* @param rh (optional) Rectangle height for area selection.
|
|
1297
|
+
The default value is "0".
|
|
1298
|
+
* @param dt (optional) Dithering type.
|
|
1299
|
+
* @param da (optional) Dithering amount.
|
|
1287
1300
|
* @return Success
|
|
1288
1301
|
*/
|
|
1289
|
-
DesignAtomsCompatibilityApiClient.prototype.img = function (tenantId, f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh) {
|
|
1302
|
+
DesignAtomsCompatibilityApiClient.prototype.img = function (tenantId, f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, dt, da) {
|
|
1290
1303
|
var _this = this;
|
|
1291
1304
|
var url_ = this.baseUrl + "/api/atoms/v1/tenants/{tenantId}/api/ccviewer/img?";
|
|
1292
1305
|
if (tenantId === undefined || tenantId === null)
|
|
@@ -1328,6 +1341,10 @@
|
|
|
1328
1341
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
1329
1342
|
if (rh !== undefined && rh !== null)
|
|
1330
1343
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
1344
|
+
if (dt !== undefined && dt !== null)
|
|
1345
|
+
url_ += "dt=" + encodeURIComponent("" + dt) + "&";
|
|
1346
|
+
if (da !== undefined && da !== null)
|
|
1347
|
+
url_ += "da=" + encodeURIComponent("" + da) + "&";
|
|
1331
1348
|
url_ = url_.replace(/[?&]$/, "");
|
|
1332
1349
|
var options_ = {
|
|
1333
1350
|
observe: "response",
|
|
@@ -1660,23 +1677,37 @@
|
|
|
1660
1677
|
* @param cmyk (optional) Name of the CMYK profile used for color conversion.
|
|
1661
1678
|
* @param rgb (optional) Name of the RGB profile used for color conversion.
|
|
1662
1679
|
* @param grayscale (optional) Name of the grayscale profile used to convert into shades of gray.
|
|
1663
|
-
* @param target (optional) Target color space, one of
|
|
1664
|
-
* @param sq (optional) Indicates that the image is squared.
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
* @param
|
|
1670
|
-
|
|
1671
|
-
* @param
|
|
1672
|
-
|
|
1673
|
-
* @param
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1680
|
+
* @param target (optional) Target color space, one of "Rgb", "Grayscale", or "Cmyk".
|
|
1681
|
+
* @param sq (optional) Indicates that the image is squared.
|
|
1682
|
+
The default value is "false".
|
|
1683
|
+
* @param effect (optional) Effect applied to the image.
|
|
1684
|
+
Possible values: "None", "BlackAndWhite", "FlipVertical", "FlipHorizontal", "Colorize", "Grayscale", or "BlackAndTransparent".
|
|
1685
|
+
The default value is "None".
|
|
1686
|
+
* @param kp (optional) Indicates that image proportions should be maintained.
|
|
1687
|
+
The default value is "false".
|
|
1688
|
+
* @param color (optional) Overlay color in the RGB, RGBA, CMYK, or CMYKA format.
|
|
1689
|
+
By default, it's an empty string.
|
|
1690
|
+
* @param obm (optional) Overlay blend mode used for blending colors.
|
|
1691
|
+
Possible values: "Normal", "Multiply", "Screen", "Overlay", "Darken", "Lighten", "ColorDodge",
|
|
1692
|
+
"ColorBurn", "HardLight", "SoftLight", `Difference", "Exclusion", "None", or "LinearBurn".
|
|
1693
|
+
By default, it's an empty string.
|
|
1694
|
+
* @param oo (optional) Opacity level of the overlaid layer, in the range [0.0, 1.0].
|
|
1695
|
+
The default value is "null".
|
|
1696
|
+
* @param alphaMask (optional) Enables alpha mask processing.
|
|
1697
|
+
The default value is "false".
|
|
1698
|
+
* @param page (optional) Page index in a PDF document that needs to be processed.
|
|
1699
|
+
The default value is "0".
|
|
1700
|
+
* @param colorizeColor (optional) Color applied for the "Colorize" image effect.
|
|
1701
|
+
By default, it's an empty string.
|
|
1702
|
+
* @param rw (optional) Rectangle width for area selection.
|
|
1703
|
+
The default value is "0".
|
|
1704
|
+
* @param rh (optional) Rectangle height for area selection.
|
|
1705
|
+
The default value is "0".
|
|
1706
|
+
* @param dt (optional) Dithering type.
|
|
1707
|
+
* @param da (optional) Dithering amount.
|
|
1677
1708
|
* @return Success
|
|
1678
1709
|
*/
|
|
1679
|
-
DesignAtomsCompatibilityApiClient.prototype.svg = function (tenantId, f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh) {
|
|
1710
|
+
DesignAtomsCompatibilityApiClient.prototype.svg = function (tenantId, f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, dt, da) {
|
|
1680
1711
|
var _this = this;
|
|
1681
1712
|
var url_ = this.baseUrl + "/api/atoms/v1/tenants/{tenantId}/api/ccviewer/svg?";
|
|
1682
1713
|
if (tenantId === undefined || tenantId === null)
|
|
@@ -1718,6 +1749,10 @@
|
|
|
1718
1749
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
1719
1750
|
if (rh !== undefined && rh !== null)
|
|
1720
1751
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
1752
|
+
if (dt !== undefined && dt !== null)
|
|
1753
|
+
url_ += "dt=" + encodeURIComponent("" + dt) + "&";
|
|
1754
|
+
if (da !== undefined && da !== null)
|
|
1755
|
+
url_ += "da=" + encodeURIComponent("" + da) + "&";
|
|
1721
1756
|
url_ = url_.replace(/[?&]$/, "");
|
|
1722
1757
|
var options_ = {
|
|
1723
1758
|
observe: "response",
|
|
@@ -2855,6 +2890,13 @@
|
|
|
2855
2890
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2856
2891
|
}));
|
|
2857
2892
|
}
|
|
2893
|
+
else if (status === 409) {
|
|
2894
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2895
|
+
var result409 = null;
|
|
2896
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
2897
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
2898
|
+
}));
|
|
2899
|
+
}
|
|
2858
2900
|
else if (status === 401) {
|
|
2859
2901
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2860
2902
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -2884,9 +2926,10 @@
|
|
|
2884
2926
|
* @param height (optional)
|
|
2885
2927
|
* @param fileFormat (optional)
|
|
2886
2928
|
* @param fitMode (optional)
|
|
2929
|
+
* @param pageIndex (optional)
|
|
2887
2930
|
* @return Success
|
|
2888
2931
|
*/
|
|
2889
|
-
DesignAtomsImagesApiClient.prototype.renderImagePreviewFromFile = function (attachment, tenantId, sourceFile, mockupOwnerId, mockupId, width, height, fileFormat, fitMode) {
|
|
2932
|
+
DesignAtomsImagesApiClient.prototype.renderImagePreviewFromFile = function (attachment, tenantId, sourceFile, mockupOwnerId, mockupId, width, height, fileFormat, fitMode, pageIndex) {
|
|
2890
2933
|
var _this = this;
|
|
2891
2934
|
var url_ = this.baseUrl + "/api/atoms/v1/images/render-preview/from-file?";
|
|
2892
2935
|
if (attachment !== undefined && attachment !== null)
|
|
@@ -2911,6 +2954,8 @@
|
|
|
2911
2954
|
content_.append("fileFormat", fileFormat.toString());
|
|
2912
2955
|
if (fitMode !== null && fitMode !== undefined)
|
|
2913
2956
|
content_.append("fitMode", fitMode.toString());
|
|
2957
|
+
if (pageIndex !== null && pageIndex !== undefined)
|
|
2958
|
+
content_.append("pageIndex", pageIndex.toString());
|
|
2914
2959
|
var options_ = {
|
|
2915
2960
|
body: content_,
|
|
2916
2961
|
observe: "response",
|
|
@@ -2971,6 +3016,13 @@
|
|
|
2971
3016
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2972
3017
|
}));
|
|
2973
3018
|
}
|
|
3019
|
+
else if (status === 409) {
|
|
3020
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3021
|
+
var result409 = null;
|
|
3022
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
3023
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
3024
|
+
}));
|
|
3025
|
+
}
|
|
2974
3026
|
else if (status === 401) {
|
|
2975
3027
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2976
3028
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -3005,9 +3057,10 @@
|
|
|
3005
3057
|
* @param height (optional)
|
|
3006
3058
|
* @param fileFormat (optional)
|
|
3007
3059
|
* @param fitMode (optional)
|
|
3060
|
+
* @param pageIndex (optional)
|
|
3008
3061
|
* @return Success
|
|
3009
3062
|
*/
|
|
3010
|
-
DesignAtomsImagesApiClient.prototype.renderImagePreviewFromFileToResource = function (tenantId, resourceOwnerId, resourceNamespace, resourceName, resourceSourceId, resourceType, anonymousAccess, overwriteExistingResource, sourceFile, mockupOwnerId, mockupId, width, height, fileFormat, fitMode) {
|
|
3063
|
+
DesignAtomsImagesApiClient.prototype.renderImagePreviewFromFileToResource = function (tenantId, resourceOwnerId, resourceNamespace, resourceName, resourceSourceId, resourceType, anonymousAccess, overwriteExistingResource, sourceFile, mockupOwnerId, mockupId, width, height, fileFormat, fitMode, pageIndex) {
|
|
3011
3064
|
var _this = this;
|
|
3012
3065
|
var url_ = this.baseUrl + "/api/atoms/v1/images/render-preview/from-file/to-resource?";
|
|
3013
3066
|
if (tenantId === null)
|
|
@@ -3044,6 +3097,8 @@
|
|
|
3044
3097
|
content_.append("fileFormat", fileFormat.toString());
|
|
3045
3098
|
if (fitMode !== null && fitMode !== undefined)
|
|
3046
3099
|
content_.append("fitMode", fitMode.toString());
|
|
3100
|
+
if (pageIndex !== null && pageIndex !== undefined)
|
|
3101
|
+
content_.append("pageIndex", pageIndex.toString());
|
|
3047
3102
|
var options_ = {
|
|
3048
3103
|
body: content_,
|
|
3049
3104
|
observe: "response",
|
|
@@ -3209,6 +3264,13 @@
|
|
|
3209
3264
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3210
3265
|
}));
|
|
3211
3266
|
}
|
|
3267
|
+
else if (status === 409) {
|
|
3268
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3269
|
+
var result409 = null;
|
|
3270
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
3271
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
3272
|
+
}));
|
|
3273
|
+
}
|
|
3212
3274
|
else if (status === 401) {
|
|
3213
3275
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3214
3276
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -7608,6 +7670,13 @@
|
|
|
7608
7670
|
return rxjs.of(result200);
|
|
7609
7671
|
}));
|
|
7610
7672
|
}
|
|
7673
|
+
else if (status === 400) {
|
|
7674
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7675
|
+
var result400 = null;
|
|
7676
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
7677
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
7678
|
+
}));
|
|
7679
|
+
}
|
|
7611
7680
|
else if (status === 401) {
|
|
7612
7681
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7613
7682
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -7668,6 +7737,7 @@
|
|
|
7668
7737
|
};
|
|
7669
7738
|
DesignAtomsPrintProductItemsApiClient.prototype.processExtractItemImage = function (response) {
|
|
7670
7739
|
var e_72, _a;
|
|
7740
|
+
var _this = this;
|
|
7671
7741
|
var status = response.status;
|
|
7672
7742
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
7673
7743
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -7693,6 +7763,107 @@
|
|
|
7693
7763
|
var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
7694
7764
|
return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
|
|
7695
7765
|
}
|
|
7766
|
+
else if (status === 400) {
|
|
7767
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7768
|
+
var result400 = null;
|
|
7769
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
7770
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
7771
|
+
}));
|
|
7772
|
+
}
|
|
7773
|
+
else if (status === 401) {
|
|
7774
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7775
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
7776
|
+
}));
|
|
7777
|
+
}
|
|
7778
|
+
else if (status === 403) {
|
|
7779
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7780
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
7781
|
+
}));
|
|
7782
|
+
}
|
|
7783
|
+
else if (status !== 200 && status !== 204) {
|
|
7784
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7785
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
7786
|
+
}));
|
|
7787
|
+
}
|
|
7788
|
+
return rxjs.of(null);
|
|
7789
|
+
};
|
|
7790
|
+
/**
|
|
7791
|
+
* Extracts print-product item image.
|
|
7792
|
+
* @param tenantId (optional) Tenant ID.
|
|
7793
|
+
* @param body (optional) Extraction parameters.
|
|
7794
|
+
* @return Success
|
|
7795
|
+
*/
|
|
7796
|
+
DesignAtomsPrintProductItemsApiClient.prototype.extractItemImageToResource = function (tenantId, body) {
|
|
7797
|
+
var _this = this;
|
|
7798
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/print-product/items/extract-image/to-resource?";
|
|
7799
|
+
if (tenantId === null)
|
|
7800
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
7801
|
+
else if (tenantId !== undefined)
|
|
7802
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
7803
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
7804
|
+
var content_ = JSON.stringify(body);
|
|
7805
|
+
var options_ = {
|
|
7806
|
+
body: content_,
|
|
7807
|
+
observe: "response",
|
|
7808
|
+
responseType: "blob",
|
|
7809
|
+
headers: new i1.HttpHeaders({
|
|
7810
|
+
"Content-Type": "application/json",
|
|
7811
|
+
"Accept": "application/octet-stream"
|
|
7812
|
+
})
|
|
7813
|
+
};
|
|
7814
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
7815
|
+
return _this.http.request("post", url_, transformedOptions_);
|
|
7816
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
7817
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processExtractItemImageToResource(r); });
|
|
7818
|
+
})).pipe(operators.catchError(function (response_) {
|
|
7819
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
7820
|
+
try {
|
|
7821
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processExtractItemImageToResource(r); });
|
|
7822
|
+
}
|
|
7823
|
+
catch (e) {
|
|
7824
|
+
return rxjs.throwError(e);
|
|
7825
|
+
}
|
|
7826
|
+
}
|
|
7827
|
+
else
|
|
7828
|
+
return rxjs.throwError(response_);
|
|
7829
|
+
}));
|
|
7830
|
+
};
|
|
7831
|
+
DesignAtomsPrintProductItemsApiClient.prototype.processExtractItemImageToResource = function (response) {
|
|
7832
|
+
var e_73, _a;
|
|
7833
|
+
var _this = this;
|
|
7834
|
+
var status = response.status;
|
|
7835
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
7836
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
7837
|
+
var _headers = {};
|
|
7838
|
+
if (response.headers) {
|
|
7839
|
+
try {
|
|
7840
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
7841
|
+
var key = _c.value;
|
|
7842
|
+
_headers[key] = response.headers.get(key);
|
|
7843
|
+
}
|
|
7844
|
+
}
|
|
7845
|
+
catch (e_73_1) { e_73 = { error: e_73_1 }; }
|
|
7846
|
+
finally {
|
|
7847
|
+
try {
|
|
7848
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7849
|
+
}
|
|
7850
|
+
finally { if (e_73) throw e_73.error; }
|
|
7851
|
+
}
|
|
7852
|
+
}
|
|
7853
|
+
if (status === 200) {
|
|
7854
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7855
|
+
var result200 = null;
|
|
7856
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
7857
|
+
return rxjs.of(result200);
|
|
7858
|
+
}));
|
|
7859
|
+
}
|
|
7860
|
+
else if (status === 400) {
|
|
7861
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7862
|
+
var result400 = null;
|
|
7863
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
7864
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
7865
|
+
}));
|
|
7866
|
+
}
|
|
7696
7867
|
else if (status === 401) {
|
|
7697
7868
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7698
7869
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -7755,7 +7926,7 @@
|
|
|
7755
7926
|
}));
|
|
7756
7927
|
};
|
|
7757
7928
|
DesignAtomsPrintProductItemsApiClient.prototype.processFlattenItems = function (response) {
|
|
7758
|
-
var
|
|
7929
|
+
var e_74, _a;
|
|
7759
7930
|
var _this = this;
|
|
7760
7931
|
var status = response.status;
|
|
7761
7932
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7768,12 +7939,12 @@
|
|
|
7768
7939
|
_headers[key] = response.headers.get(key);
|
|
7769
7940
|
}
|
|
7770
7941
|
}
|
|
7771
|
-
catch (
|
|
7942
|
+
catch (e_74_1) { e_74 = { error: e_74_1 }; }
|
|
7772
7943
|
finally {
|
|
7773
7944
|
try {
|
|
7774
7945
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7775
7946
|
}
|
|
7776
|
-
finally { if (
|
|
7947
|
+
finally { if (e_74) throw e_74.error; }
|
|
7777
7948
|
}
|
|
7778
7949
|
}
|
|
7779
7950
|
if (status === 200) {
|
|
@@ -7783,6 +7954,20 @@
|
|
|
7783
7954
|
return rxjs.of(result200);
|
|
7784
7955
|
}));
|
|
7785
7956
|
}
|
|
7957
|
+
else if (status === 400) {
|
|
7958
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7959
|
+
var result400 = null;
|
|
7960
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
7961
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
7962
|
+
}));
|
|
7963
|
+
}
|
|
7964
|
+
else if (status === 409) {
|
|
7965
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7966
|
+
var result409 = null;
|
|
7967
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
7968
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
7969
|
+
}));
|
|
7970
|
+
}
|
|
7786
7971
|
else if (status === 401) {
|
|
7787
7972
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7788
7973
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -7806,10 +7991,11 @@
|
|
|
7806
7991
|
* @param tenantId (optional) Tenant ID.
|
|
7807
7992
|
* @param sourceFile (optional)
|
|
7808
7993
|
* @param paletteUID (optional)
|
|
7994
|
+
* @param pageIndex (optional)
|
|
7809
7995
|
* @param preserveOriginalFile (optional)
|
|
7810
7996
|
* @return Success
|
|
7811
7997
|
*/
|
|
7812
|
-
DesignAtomsPrintProductItemsApiClient.prototype.createItemFromFile = function (itemType, tenantId, sourceFile, paletteUID, preserveOriginalFile) {
|
|
7998
|
+
DesignAtomsPrintProductItemsApiClient.prototype.createItemFromFile = function (itemType, tenantId, sourceFile, paletteUID, pageIndex, preserveOriginalFile) {
|
|
7813
7999
|
var _this = this;
|
|
7814
8000
|
var url_ = this.baseUrl + "/api/atoms/v1/designs/print-product/items/from-file?";
|
|
7815
8001
|
if (itemType !== undefined && itemType !== null)
|
|
@@ -7824,6 +8010,8 @@
|
|
|
7824
8010
|
content_.append("sourceFile", sourceFile.data, sourceFile.fileName ? sourceFile.fileName : "sourceFile");
|
|
7825
8011
|
if (paletteUID !== null && paletteUID !== undefined)
|
|
7826
8012
|
content_.append("paletteUID", paletteUID.toString());
|
|
8013
|
+
if (pageIndex !== null && pageIndex !== undefined)
|
|
8014
|
+
content_.append("pageIndex", pageIndex.toString());
|
|
7827
8015
|
if (preserveOriginalFile !== null && preserveOriginalFile !== undefined)
|
|
7828
8016
|
content_.append("preserveOriginalFile", preserveOriginalFile.toString());
|
|
7829
8017
|
var options_ = {
|
|
@@ -7852,7 +8040,7 @@
|
|
|
7852
8040
|
}));
|
|
7853
8041
|
};
|
|
7854
8042
|
DesignAtomsPrintProductItemsApiClient.prototype.processCreateItemFromFile = function (response) {
|
|
7855
|
-
var
|
|
8043
|
+
var e_75, _a;
|
|
7856
8044
|
var _this = this;
|
|
7857
8045
|
var status = response.status;
|
|
7858
8046
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7865,12 +8053,12 @@
|
|
|
7865
8053
|
_headers[key] = response.headers.get(key);
|
|
7866
8054
|
}
|
|
7867
8055
|
}
|
|
7868
|
-
catch (
|
|
8056
|
+
catch (e_75_1) { e_75 = { error: e_75_1 }; }
|
|
7869
8057
|
finally {
|
|
7870
8058
|
try {
|
|
7871
8059
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7872
8060
|
}
|
|
7873
|
-
finally { if (
|
|
8061
|
+
finally { if (e_75) throw e_75.error; }
|
|
7874
8062
|
}
|
|
7875
8063
|
}
|
|
7876
8064
|
if (status === 200) {
|
|
@@ -7880,6 +8068,13 @@
|
|
|
7880
8068
|
return rxjs.of(result200);
|
|
7881
8069
|
}));
|
|
7882
8070
|
}
|
|
8071
|
+
else if (status === 400) {
|
|
8072
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
8073
|
+
var result400 = null;
|
|
8074
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
8075
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
8076
|
+
}));
|
|
8077
|
+
}
|
|
7883
8078
|
else if (status === 404) {
|
|
7884
8079
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7885
8080
|
var result404 = null;
|
|
@@ -7963,7 +8158,7 @@
|
|
|
7963
8158
|
}));
|
|
7964
8159
|
};
|
|
7965
8160
|
DesignAtomsPrintProductItemsApiClient.prototype.processBatchCreateItemsFromFile = function (response) {
|
|
7966
|
-
var
|
|
8161
|
+
var e_76, _a;
|
|
7967
8162
|
var _this = this;
|
|
7968
8163
|
var status = response.status;
|
|
7969
8164
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7976,12 +8171,12 @@
|
|
|
7976
8171
|
_headers[key] = response.headers.get(key);
|
|
7977
8172
|
}
|
|
7978
8173
|
}
|
|
7979
|
-
catch (
|
|
8174
|
+
catch (e_76_1) { e_76 = { error: e_76_1 }; }
|
|
7980
8175
|
finally {
|
|
7981
8176
|
try {
|
|
7982
8177
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7983
8178
|
}
|
|
7984
|
-
finally { if (
|
|
8179
|
+
finally { if (e_76) throw e_76.error; }
|
|
7985
8180
|
}
|
|
7986
8181
|
}
|
|
7987
8182
|
if (status === 200) {
|
|
@@ -7991,6 +8186,13 @@
|
|
|
7991
8186
|
return rxjs.of(result200);
|
|
7992
8187
|
}));
|
|
7993
8188
|
}
|
|
8189
|
+
else if (status === 400) {
|
|
8190
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
8191
|
+
var result400 = null;
|
|
8192
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
8193
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
8194
|
+
}));
|
|
8195
|
+
}
|
|
7994
8196
|
else if (status === 404) {
|
|
7995
8197
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7996
8198
|
var result404 = null;
|
|
@@ -8067,7 +8269,7 @@
|
|
|
8067
8269
|
}));
|
|
8068
8270
|
};
|
|
8069
8271
|
DesignAtomsPrintProductItemsApiClient.prototype.processCreateItemFromStorage = function (response) {
|
|
8070
|
-
var
|
|
8272
|
+
var e_77, _a;
|
|
8071
8273
|
var _this = this;
|
|
8072
8274
|
var status = response.status;
|
|
8073
8275
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -8080,12 +8282,12 @@
|
|
|
8080
8282
|
_headers[key] = response.headers.get(key);
|
|
8081
8283
|
}
|
|
8082
8284
|
}
|
|
8083
|
-
catch (
|
|
8285
|
+
catch (e_77_1) { e_77 = { error: e_77_1 }; }
|
|
8084
8286
|
finally {
|
|
8085
8287
|
try {
|
|
8086
8288
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
8087
8289
|
}
|
|
8088
|
-
finally { if (
|
|
8290
|
+
finally { if (e_77) throw e_77.error; }
|
|
8089
8291
|
}
|
|
8090
8292
|
}
|
|
8091
8293
|
if (status === 200) {
|
|
@@ -8095,6 +8297,13 @@
|
|
|
8095
8297
|
return rxjs.of(result200);
|
|
8096
8298
|
}));
|
|
8097
8299
|
}
|
|
8300
|
+
else if (status === 400) {
|
|
8301
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
8302
|
+
var result400 = null;
|
|
8303
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
8304
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
8305
|
+
}));
|
|
8306
|
+
}
|
|
8098
8307
|
else if (status === 404) {
|
|
8099
8308
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
8100
8309
|
var result404 = null;
|
|
@@ -8171,7 +8380,7 @@
|
|
|
8171
8380
|
}));
|
|
8172
8381
|
};
|
|
8173
8382
|
DesignAtomsPrintProductItemsApiClient.prototype.processBatchCreateItemsFromStorage = function (response) {
|
|
8174
|
-
var
|
|
8383
|
+
var e_78, _a;
|
|
8175
8384
|
var _this = this;
|
|
8176
8385
|
var status = response.status;
|
|
8177
8386
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -8184,12 +8393,12 @@
|
|
|
8184
8393
|
_headers[key] = response.headers.get(key);
|
|
8185
8394
|
}
|
|
8186
8395
|
}
|
|
8187
|
-
catch (
|
|
8396
|
+
catch (e_78_1) { e_78 = { error: e_78_1 }; }
|
|
8188
8397
|
finally {
|
|
8189
8398
|
try {
|
|
8190
8399
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
8191
8400
|
}
|
|
8192
|
-
finally { if (
|
|
8401
|
+
finally { if (e_78) throw e_78.error; }
|
|
8193
8402
|
}
|
|
8194
8403
|
}
|
|
8195
8404
|
if (status === 200) {
|
|
@@ -8199,6 +8408,13 @@
|
|
|
8199
8408
|
return rxjs.of(result200);
|
|
8200
8409
|
}));
|
|
8201
8410
|
}
|
|
8411
|
+
else if (status === 400) {
|
|
8412
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
8413
|
+
var result400 = null;
|
|
8414
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
8415
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
8416
|
+
}));
|
|
8417
|
+
}
|
|
8202
8418
|
else if (status === 404) {
|
|
8203
8419
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
8204
8420
|
var result404 = null;
|
|
@@ -8275,7 +8491,7 @@
|
|
|
8275
8491
|
}));
|
|
8276
8492
|
};
|
|
8277
8493
|
DesignAtomsPrintProductItemsApiClient.prototype.processCreateItemFromUrl = function (response) {
|
|
8278
|
-
var
|
|
8494
|
+
var e_79, _a;
|
|
8279
8495
|
var _this = this;
|
|
8280
8496
|
var status = response.status;
|
|
8281
8497
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -8288,12 +8504,12 @@
|
|
|
8288
8504
|
_headers[key] = response.headers.get(key);
|
|
8289
8505
|
}
|
|
8290
8506
|
}
|
|
8291
|
-
catch (
|
|
8507
|
+
catch (e_79_1) { e_79 = { error: e_79_1 }; }
|
|
8292
8508
|
finally {
|
|
8293
8509
|
try {
|
|
8294
8510
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
8295
8511
|
}
|
|
8296
|
-
finally { if (
|
|
8512
|
+
finally { if (e_79) throw e_79.error; }
|
|
8297
8513
|
}
|
|
8298
8514
|
}
|
|
8299
8515
|
if (status === 200) {
|
|
@@ -8379,7 +8595,7 @@
|
|
|
8379
8595
|
}));
|
|
8380
8596
|
};
|
|
8381
8597
|
DesignAtomsPrintProductItemsApiClient.prototype.processBatchCreateItemsFromUrl = function (response) {
|
|
8382
|
-
var
|
|
8598
|
+
var e_80, _a;
|
|
8383
8599
|
var _this = this;
|
|
8384
8600
|
var status = response.status;
|
|
8385
8601
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -8392,12 +8608,12 @@
|
|
|
8392
8608
|
_headers[key] = response.headers.get(key);
|
|
8393
8609
|
}
|
|
8394
8610
|
}
|
|
8395
|
-
catch (
|
|
8611
|
+
catch (e_80_1) { e_80 = { error: e_80_1 }; }
|
|
8396
8612
|
finally {
|
|
8397
8613
|
try {
|
|
8398
8614
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
8399
8615
|
}
|
|
8400
|
-
finally { if (
|
|
8616
|
+
finally { if (e_80) throw e_80.error; }
|
|
8401
8617
|
}
|
|
8402
8618
|
}
|
|
8403
8619
|
if (status === 200) {
|
|
@@ -8505,7 +8721,7 @@
|
|
|
8505
8721
|
}));
|
|
8506
8722
|
};
|
|
8507
8723
|
DesignAtomsServiceApiClient.prototype.processCreateDesign = function (response) {
|
|
8508
|
-
var
|
|
8724
|
+
var e_81, _a;
|
|
8509
8725
|
var _this = this;
|
|
8510
8726
|
var status = response.status;
|
|
8511
8727
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -8518,12 +8734,12 @@
|
|
|
8518
8734
|
_headers[key] = response.headers.get(key);
|
|
8519
8735
|
}
|
|
8520
8736
|
}
|
|
8521
|
-
catch (
|
|
8737
|
+
catch (e_81_1) { e_81 = { error: e_81_1 }; }
|
|
8522
8738
|
finally {
|
|
8523
8739
|
try {
|
|
8524
8740
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
8525
8741
|
}
|
|
8526
|
-
finally { if (
|
|
8742
|
+
finally { if (e_81) throw e_81.error; }
|
|
8527
8743
|
}
|
|
8528
8744
|
}
|
|
8529
8745
|
if (status === 201) {
|
|
@@ -8605,7 +8821,7 @@
|
|
|
8605
8821
|
}));
|
|
8606
8822
|
};
|
|
8607
8823
|
DesignAtomsServiceApiClient.prototype.processApplyItemsData = function (response) {
|
|
8608
|
-
var
|
|
8824
|
+
var e_82, _a;
|
|
8609
8825
|
var _this = this;
|
|
8610
8826
|
var status = response.status;
|
|
8611
8827
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -8618,12 +8834,12 @@
|
|
|
8618
8834
|
_headers[key] = response.headers.get(key);
|
|
8619
8835
|
}
|
|
8620
8836
|
}
|
|
8621
|
-
catch (
|
|
8837
|
+
catch (e_82_1) { e_82 = { error: e_82_1 }; }
|
|
8622
8838
|
finally {
|
|
8623
8839
|
try {
|
|
8624
8840
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
8625
8841
|
}
|
|
8626
|
-
finally { if (
|
|
8842
|
+
finally { if (e_82) throw e_82.error; }
|
|
8627
8843
|
}
|
|
8628
8844
|
}
|
|
8629
8845
|
if (status === 200) {
|
|
@@ -8710,7 +8926,7 @@
|
|
|
8710
8926
|
}));
|
|
8711
8927
|
};
|
|
8712
8928
|
DesignAtomsServiceApiClient.prototype.processExtractBackground = function (response) {
|
|
8713
|
-
var
|
|
8929
|
+
var e_83, _a;
|
|
8714
8930
|
var _this = this;
|
|
8715
8931
|
var status = response.status;
|
|
8716
8932
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -8723,12 +8939,12 @@
|
|
|
8723
8939
|
_headers[key] = response.headers.get(key);
|
|
8724
8940
|
}
|
|
8725
8941
|
}
|
|
8726
|
-
catch (
|
|
8942
|
+
catch (e_83_1) { e_83 = { error: e_83_1 }; }
|
|
8727
8943
|
finally {
|
|
8728
8944
|
try {
|
|
8729
8945
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
8730
8946
|
}
|
|
8731
|
-
finally { if (
|
|
8947
|
+
finally { if (e_83) throw e_83.error; }
|
|
8732
8948
|
}
|
|
8733
8949
|
}
|
|
8734
8950
|
if (status === 200 || status === 206) {
|
|
@@ -8816,7 +9032,7 @@
|
|
|
8816
9032
|
}));
|
|
8817
9033
|
};
|
|
8818
9034
|
DesignAtomsServiceApiClient.prototype.processSetEditorMockups = function (response) {
|
|
8819
|
-
var
|
|
9035
|
+
var e_84, _a;
|
|
8820
9036
|
var _this = this;
|
|
8821
9037
|
var status = response.status;
|
|
8822
9038
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -8829,12 +9045,12 @@
|
|
|
8829
9045
|
_headers[key] = response.headers.get(key);
|
|
8830
9046
|
}
|
|
8831
9047
|
}
|
|
8832
|
-
catch (
|
|
9048
|
+
catch (e_84_1) { e_84 = { error: e_84_1 }; }
|
|
8833
9049
|
finally {
|
|
8834
9050
|
try {
|
|
8835
9051
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
8836
9052
|
}
|
|
8837
|
-
finally { if (
|
|
9053
|
+
finally { if (e_84) throw e_84.error; }
|
|
8838
9054
|
}
|
|
8839
9055
|
}
|
|
8840
9056
|
if (status === 204) {
|
|
@@ -8918,7 +9134,7 @@
|
|
|
8918
9134
|
}));
|
|
8919
9135
|
};
|
|
8920
9136
|
DesignAtomsServiceApiClient.prototype.processGetDesignParameters = function (response) {
|
|
8921
|
-
var
|
|
9137
|
+
var e_85, _a;
|
|
8922
9138
|
var _this = this;
|
|
8923
9139
|
var status = response.status;
|
|
8924
9140
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -8931,12 +9147,12 @@
|
|
|
8931
9147
|
_headers[key] = response.headers.get(key);
|
|
8932
9148
|
}
|
|
8933
9149
|
}
|
|
8934
|
-
catch (
|
|
9150
|
+
catch (e_85_1) { e_85 = { error: e_85_1 }; }
|
|
8935
9151
|
finally {
|
|
8936
9152
|
try {
|
|
8937
9153
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
8938
9154
|
}
|
|
8939
|
-
finally { if (
|
|
9155
|
+
finally { if (e_85) throw e_85.error; }
|
|
8940
9156
|
}
|
|
8941
9157
|
}
|
|
8942
9158
|
if (status === 200) {
|
|
@@ -9015,7 +9231,7 @@
|
|
|
9015
9231
|
}));
|
|
9016
9232
|
};
|
|
9017
9233
|
DesignAtomsServiceApiClient.prototype.processLoadDataSchema = function (response) {
|
|
9018
|
-
var
|
|
9234
|
+
var e_86, _a;
|
|
9019
9235
|
var _this = this;
|
|
9020
9236
|
var status = response.status;
|
|
9021
9237
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -9028,12 +9244,12 @@
|
|
|
9028
9244
|
_headers[key] = response.headers.get(key);
|
|
9029
9245
|
}
|
|
9030
9246
|
}
|
|
9031
|
-
catch (
|
|
9247
|
+
catch (e_86_1) { e_86 = { error: e_86_1 }; }
|
|
9032
9248
|
finally {
|
|
9033
9249
|
try {
|
|
9034
9250
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
9035
9251
|
}
|
|
9036
|
-
finally { if (
|
|
9252
|
+
finally { if (e_86) throw e_86.error; }
|
|
9037
9253
|
}
|
|
9038
9254
|
}
|
|
9039
9255
|
if (status === 200 || status === 206) {
|
|
@@ -9118,7 +9334,7 @@
|
|
|
9118
9334
|
}));
|
|
9119
9335
|
};
|
|
9120
9336
|
DesignAtomsServiceApiClient.prototype.processLoadToggleSet = function (response) {
|
|
9121
|
-
var
|
|
9337
|
+
var e_87, _a;
|
|
9122
9338
|
var _this = this;
|
|
9123
9339
|
var status = response.status;
|
|
9124
9340
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -9131,12 +9347,12 @@
|
|
|
9131
9347
|
_headers[key] = response.headers.get(key);
|
|
9132
9348
|
}
|
|
9133
9349
|
}
|
|
9134
|
-
catch (
|
|
9350
|
+
catch (e_87_1) { e_87 = { error: e_87_1 }; }
|
|
9135
9351
|
finally {
|
|
9136
9352
|
try {
|
|
9137
9353
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
9138
9354
|
}
|
|
9139
|
-
finally { if (
|
|
9355
|
+
finally { if (e_87) throw e_87.error; }
|
|
9140
9356
|
}
|
|
9141
9357
|
}
|
|
9142
9358
|
if (status === 200 || status === 206) {
|
|
@@ -9221,7 +9437,7 @@
|
|
|
9221
9437
|
}));
|
|
9222
9438
|
};
|
|
9223
9439
|
DesignAtomsServiceApiClient.prototype.processGetVariables = function (response) {
|
|
9224
|
-
var
|
|
9440
|
+
var e_88, _a;
|
|
9225
9441
|
var _this = this;
|
|
9226
9442
|
var status = response.status;
|
|
9227
9443
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -9234,12 +9450,12 @@
|
|
|
9234
9450
|
_headers[key] = response.headers.get(key);
|
|
9235
9451
|
}
|
|
9236
9452
|
}
|
|
9237
|
-
catch (
|
|
9453
|
+
catch (e_88_1) { e_88 = { error: e_88_1 }; }
|
|
9238
9454
|
finally {
|
|
9239
9455
|
try {
|
|
9240
9456
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
9241
9457
|
}
|
|
9242
|
-
finally { if (
|
|
9458
|
+
finally { if (e_88) throw e_88.error; }
|
|
9243
9459
|
}
|
|
9244
9460
|
}
|
|
9245
9461
|
if (status === 200) {
|
|
@@ -9321,7 +9537,7 @@
|
|
|
9321
9537
|
}));
|
|
9322
9538
|
};
|
|
9323
9539
|
DesignAtomsServiceApiClient.prototype.processSetVariables = function (response) {
|
|
9324
|
-
var
|
|
9540
|
+
var e_89, _a;
|
|
9325
9541
|
var _this = this;
|
|
9326
9542
|
var status = response.status;
|
|
9327
9543
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -9334,12 +9550,12 @@
|
|
|
9334
9550
|
_headers[key] = response.headers.get(key);
|
|
9335
9551
|
}
|
|
9336
9552
|
}
|
|
9337
|
-
catch (
|
|
9553
|
+
catch (e_89_1) { e_89 = { error: e_89_1 }; }
|
|
9338
9554
|
finally {
|
|
9339
9555
|
try {
|
|
9340
9556
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
9341
9557
|
}
|
|
9342
|
-
finally { if (
|
|
9558
|
+
finally { if (e_89) throw e_89.error; }
|
|
9343
9559
|
}
|
|
9344
9560
|
}
|
|
9345
9561
|
if (status === 200) {
|
|
@@ -9423,7 +9639,7 @@
|
|
|
9423
9639
|
}));
|
|
9424
9640
|
};
|
|
9425
9641
|
DesignAtomsServiceApiClient.prototype.processLoadVdpData = function (response) {
|
|
9426
|
-
var
|
|
9642
|
+
var e_90, _a;
|
|
9427
9643
|
var _this = this;
|
|
9428
9644
|
var status = response.status;
|
|
9429
9645
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -9436,12 +9652,12 @@
|
|
|
9436
9652
|
_headers[key] = response.headers.get(key);
|
|
9437
9653
|
}
|
|
9438
9654
|
}
|
|
9439
|
-
catch (
|
|
9655
|
+
catch (e_90_1) { e_90 = { error: e_90_1 }; }
|
|
9440
9656
|
finally {
|
|
9441
9657
|
try {
|
|
9442
9658
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
9443
9659
|
}
|
|
9444
|
-
finally { if (
|
|
9660
|
+
finally { if (e_90) throw e_90.error; }
|
|
9445
9661
|
}
|
|
9446
9662
|
}
|
|
9447
9663
|
if (status === 200) {
|
|
@@ -9530,7 +9746,7 @@
|
|
|
9530
9746
|
}));
|
|
9531
9747
|
};
|
|
9532
9748
|
DesignAtomsServiceApiClient.prototype.processSaveVdpData = function (response) {
|
|
9533
|
-
var
|
|
9749
|
+
var e_91, _a;
|
|
9534
9750
|
var _this = this;
|
|
9535
9751
|
var status = response.status;
|
|
9536
9752
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -9543,12 +9759,12 @@
|
|
|
9543
9759
|
_headers[key] = response.headers.get(key);
|
|
9544
9760
|
}
|
|
9545
9761
|
}
|
|
9546
|
-
catch (
|
|
9762
|
+
catch (e_91_1) { e_91 = { error: e_91_1 }; }
|
|
9547
9763
|
finally {
|
|
9548
9764
|
try {
|
|
9549
9765
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
9550
9766
|
}
|
|
9551
|
-
finally { if (
|
|
9767
|
+
finally { if (e_91) throw e_91.error; }
|
|
9552
9768
|
}
|
|
9553
9769
|
}
|
|
9554
9770
|
if (status === 200) {
|
|
@@ -9623,7 +9839,7 @@
|
|
|
9623
9839
|
}));
|
|
9624
9840
|
};
|
|
9625
9841
|
DesignAtomsServiceApiClient.prototype.processDeleteVdpData = function (response) {
|
|
9626
|
-
var
|
|
9842
|
+
var e_92, _a;
|
|
9627
9843
|
var _this = this;
|
|
9628
9844
|
var status = response.status;
|
|
9629
9845
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -9636,12 +9852,12 @@
|
|
|
9636
9852
|
_headers[key] = response.headers.get(key);
|
|
9637
9853
|
}
|
|
9638
9854
|
}
|
|
9639
|
-
catch (
|
|
9855
|
+
catch (e_92_1) { e_92 = { error: e_92_1 }; }
|
|
9640
9856
|
finally {
|
|
9641
9857
|
try {
|
|
9642
9858
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
9643
9859
|
}
|
|
9644
|
-
finally { if (
|
|
9860
|
+
finally { if (e_92) throw e_92.error; }
|
|
9645
9861
|
}
|
|
9646
9862
|
}
|
|
9647
9863
|
if (status === 200) {
|
|
@@ -9715,7 +9931,7 @@
|
|
|
9715
9931
|
}));
|
|
9716
9932
|
};
|
|
9717
9933
|
DesignAtomsServiceApiClient.prototype.processConvertColors = function (response) {
|
|
9718
|
-
var
|
|
9934
|
+
var e_93, _a;
|
|
9719
9935
|
var _this = this;
|
|
9720
9936
|
var status = response.status;
|
|
9721
9937
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -9728,12 +9944,12 @@
|
|
|
9728
9944
|
_headers[key] = response.headers.get(key);
|
|
9729
9945
|
}
|
|
9730
9946
|
}
|
|
9731
|
-
catch (
|
|
9947
|
+
catch (e_93_1) { e_93 = { error: e_93_1 }; }
|
|
9732
9948
|
finally {
|
|
9733
9949
|
try {
|
|
9734
9950
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
9735
9951
|
}
|
|
9736
|
-
finally { if (
|
|
9952
|
+
finally { if (e_93) throw e_93.error; }
|
|
9737
9953
|
}
|
|
9738
9954
|
}
|
|
9739
9955
|
if (status === 200) {
|
|
@@ -9811,7 +10027,7 @@
|
|
|
9811
10027
|
}));
|
|
9812
10028
|
};
|
|
9813
10029
|
DesignAtomsServiceApiClient.prototype.processLoadProductFromResource = function (response) {
|
|
9814
|
-
var
|
|
10030
|
+
var e_94, _a;
|
|
9815
10031
|
var _this = this;
|
|
9816
10032
|
var status = response.status;
|
|
9817
10033
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -9824,12 +10040,12 @@
|
|
|
9824
10040
|
_headers[key] = response.headers.get(key);
|
|
9825
10041
|
}
|
|
9826
10042
|
}
|
|
9827
|
-
catch (
|
|
10043
|
+
catch (e_94_1) { e_94 = { error: e_94_1 }; }
|
|
9828
10044
|
finally {
|
|
9829
10045
|
try {
|
|
9830
10046
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
9831
10047
|
}
|
|
9832
|
-
finally { if (
|
|
10048
|
+
finally { if (e_94) throw e_94.error; }
|
|
9833
10049
|
}
|
|
9834
10050
|
}
|
|
9835
10051
|
if (status === 200) {
|
|
@@ -9916,7 +10132,7 @@
|
|
|
9916
10132
|
}));
|
|
9917
10133
|
};
|
|
9918
10134
|
DesignAtomsServiceApiClient.prototype.processRenderProduct = function (response) {
|
|
9919
|
-
var
|
|
10135
|
+
var e_95, _a;
|
|
9920
10136
|
var status = response.status;
|
|
9921
10137
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
9922
10138
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -9928,12 +10144,12 @@
|
|
|
9928
10144
|
_headers[key] = response.headers.get(key);
|
|
9929
10145
|
}
|
|
9930
10146
|
}
|
|
9931
|
-
catch (
|
|
10147
|
+
catch (e_95_1) { e_95 = { error: e_95_1 }; }
|
|
9932
10148
|
finally {
|
|
9933
10149
|
try {
|
|
9934
10150
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
9935
10151
|
}
|
|
9936
|
-
finally { if (
|
|
10152
|
+
finally { if (e_95) throw e_95.error; }
|
|
9937
10153
|
}
|
|
9938
10154
|
}
|
|
9939
10155
|
if (status === 200 || status === 206) {
|
|
@@ -10005,7 +10221,7 @@
|
|
|
10005
10221
|
}));
|
|
10006
10222
|
};
|
|
10007
10223
|
DesignAtomsServiceApiClient.prototype.processRenderDesignPreview = function (response) {
|
|
10008
|
-
var
|
|
10224
|
+
var e_96, _a;
|
|
10009
10225
|
var status = response.status;
|
|
10010
10226
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
10011
10227
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -10017,12 +10233,12 @@
|
|
|
10017
10233
|
_headers[key] = response.headers.get(key);
|
|
10018
10234
|
}
|
|
10019
10235
|
}
|
|
10020
|
-
catch (
|
|
10236
|
+
catch (e_96_1) { e_96 = { error: e_96_1 }; }
|
|
10021
10237
|
finally {
|
|
10022
10238
|
try {
|
|
10023
10239
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
10024
10240
|
}
|
|
10025
|
-
finally { if (
|
|
10241
|
+
finally { if (e_96) throw e_96.error; }
|
|
10026
10242
|
}
|
|
10027
10243
|
}
|
|
10028
10244
|
if (status === 200 || status === 206) {
|
|
@@ -10090,7 +10306,7 @@
|
|
|
10090
10306
|
}));
|
|
10091
10307
|
};
|
|
10092
10308
|
DesignAtomsServiceApiClient.prototype.processRenderDesignPreviewToResource = function (response) {
|
|
10093
|
-
var
|
|
10309
|
+
var e_97, _a;
|
|
10094
10310
|
var _this = this;
|
|
10095
10311
|
var status = response.status;
|
|
10096
10312
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -10103,12 +10319,12 @@
|
|
|
10103
10319
|
_headers[key] = response.headers.get(key);
|
|
10104
10320
|
}
|
|
10105
10321
|
}
|
|
10106
|
-
catch (
|
|
10322
|
+
catch (e_97_1) { e_97 = { error: e_97_1 }; }
|
|
10107
10323
|
finally {
|
|
10108
10324
|
try {
|
|
10109
10325
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
10110
10326
|
}
|
|
10111
|
-
finally { if (
|
|
10327
|
+
finally { if (e_97) throw e_97.error; }
|
|
10112
10328
|
}
|
|
10113
10329
|
}
|
|
10114
10330
|
if (status === 200) {
|
|
@@ -10195,7 +10411,7 @@
|
|
|
10195
10411
|
}));
|
|
10196
10412
|
};
|
|
10197
10413
|
DesignAtomsServiceApiClient.prototype.processRenderDesignProof = function (response) {
|
|
10198
|
-
var
|
|
10414
|
+
var e_98, _a;
|
|
10199
10415
|
var _this = this;
|
|
10200
10416
|
var status = response.status;
|
|
10201
10417
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -10208,12 +10424,12 @@
|
|
|
10208
10424
|
_headers[key] = response.headers.get(key);
|
|
10209
10425
|
}
|
|
10210
10426
|
}
|
|
10211
|
-
catch (
|
|
10427
|
+
catch (e_98_1) { e_98 = { error: e_98_1 }; }
|
|
10212
10428
|
finally {
|
|
10213
10429
|
try {
|
|
10214
10430
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
10215
10431
|
}
|
|
10216
|
-
finally { if (
|
|
10432
|
+
finally { if (e_98) throw e_98.error; }
|
|
10217
10433
|
}
|
|
10218
10434
|
}
|
|
10219
10435
|
if (status === 200 || status === 206) {
|
|
@@ -10288,7 +10504,7 @@
|
|
|
10288
10504
|
}));
|
|
10289
10505
|
};
|
|
10290
10506
|
DesignAtomsServiceApiClient.prototype.processRenderDesignProofToResource = function (response) {
|
|
10291
|
-
var
|
|
10507
|
+
var e_99, _a;
|
|
10292
10508
|
var _this = this;
|
|
10293
10509
|
var status = response.status;
|
|
10294
10510
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -10301,12 +10517,12 @@
|
|
|
10301
10517
|
_headers[key] = response.headers.get(key);
|
|
10302
10518
|
}
|
|
10303
10519
|
}
|
|
10304
|
-
catch (
|
|
10520
|
+
catch (e_99_1) { e_99 = { error: e_99_1 }; }
|
|
10305
10521
|
finally {
|
|
10306
10522
|
try {
|
|
10307
10523
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
10308
10524
|
}
|
|
10309
|
-
finally { if (
|
|
10525
|
+
finally { if (e_99) throw e_99.error; }
|
|
10310
10526
|
}
|
|
10311
10527
|
}
|
|
10312
10528
|
if (status === 200) {
|
|
@@ -10386,7 +10602,7 @@
|
|
|
10386
10602
|
}));
|
|
10387
10603
|
};
|
|
10388
10604
|
DesignAtomsServiceApiClient.prototype.processLoadProduct = function (response) {
|
|
10389
|
-
var
|
|
10605
|
+
var e_100, _a;
|
|
10390
10606
|
var _this = this;
|
|
10391
10607
|
var status = response.status;
|
|
10392
10608
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -10399,12 +10615,12 @@
|
|
|
10399
10615
|
_headers[key] = response.headers.get(key);
|
|
10400
10616
|
}
|
|
10401
10617
|
}
|
|
10402
|
-
catch (
|
|
10618
|
+
catch (e_100_1) { e_100 = { error: e_100_1 }; }
|
|
10403
10619
|
finally {
|
|
10404
10620
|
try {
|
|
10405
10621
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
10406
10622
|
}
|
|
10407
|
-
finally { if (
|
|
10623
|
+
finally { if (e_100) throw e_100.error; }
|
|
10408
10624
|
}
|
|
10409
10625
|
}
|
|
10410
10626
|
if (status === 200) {
|
|
@@ -10487,7 +10703,7 @@
|
|
|
10487
10703
|
}));
|
|
10488
10704
|
};
|
|
10489
10705
|
DesignAtomsServiceApiClient.prototype.processSaveProduct = function (response) {
|
|
10490
|
-
var
|
|
10706
|
+
var e_101, _a;
|
|
10491
10707
|
var _this = this;
|
|
10492
10708
|
var status = response.status;
|
|
10493
10709
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -10500,12 +10716,12 @@
|
|
|
10500
10716
|
_headers[key] = response.headers.get(key);
|
|
10501
10717
|
}
|
|
10502
10718
|
}
|
|
10503
|
-
catch (
|
|
10719
|
+
catch (e_101_1) { e_101 = { error: e_101_1 }; }
|
|
10504
10720
|
finally {
|
|
10505
10721
|
try {
|
|
10506
10722
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
10507
10723
|
}
|
|
10508
|
-
finally { if (
|
|
10724
|
+
finally { if (e_101) throw e_101.error; }
|
|
10509
10725
|
}
|
|
10510
10726
|
}
|
|
10511
10727
|
if (status === 200) {
|
|
@@ -10601,7 +10817,7 @@
|
|
|
10601
10817
|
}));
|
|
10602
10818
|
};
|
|
10603
10819
|
DesignAtomsServiceApiClient.prototype.processPatchProduct = function (response) {
|
|
10604
|
-
var
|
|
10820
|
+
var e_102, _a;
|
|
10605
10821
|
var _this = this;
|
|
10606
10822
|
var status = response.status;
|
|
10607
10823
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -10614,12 +10830,12 @@
|
|
|
10614
10830
|
_headers[key] = response.headers.get(key);
|
|
10615
10831
|
}
|
|
10616
10832
|
}
|
|
10617
|
-
catch (
|
|
10833
|
+
catch (e_102_1) { e_102 = { error: e_102_1 }; }
|
|
10618
10834
|
finally {
|
|
10619
10835
|
try {
|
|
10620
10836
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
10621
10837
|
}
|
|
10622
|
-
finally { if (
|
|
10838
|
+
finally { if (e_102) throw e_102.error; }
|
|
10623
10839
|
}
|
|
10624
10840
|
}
|
|
10625
10841
|
if (status === 200) {
|
|
@@ -10710,7 +10926,7 @@
|
|
|
10710
10926
|
}));
|
|
10711
10927
|
};
|
|
10712
10928
|
DesignAtomsServiceApiClient.prototype.processCreateItem = function (response) {
|
|
10713
|
-
var
|
|
10929
|
+
var e_103, _a;
|
|
10714
10930
|
var _this = this;
|
|
10715
10931
|
var status = response.status;
|
|
10716
10932
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -10723,12 +10939,12 @@
|
|
|
10723
10939
|
_headers[key] = response.headers.get(key);
|
|
10724
10940
|
}
|
|
10725
10941
|
}
|
|
10726
|
-
catch (
|
|
10942
|
+
catch (e_103_1) { e_103 = { error: e_103_1 }; }
|
|
10727
10943
|
finally {
|
|
10728
10944
|
try {
|
|
10729
10945
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
10730
10946
|
}
|
|
10731
|
-
finally { if (
|
|
10947
|
+
finally { if (e_103) throw e_103.error; }
|
|
10732
10948
|
}
|
|
10733
10949
|
}
|
|
10734
10950
|
if (status === 200) {
|
|
@@ -10805,7 +11021,7 @@
|
|
|
10805
11021
|
}));
|
|
10806
11022
|
};
|
|
10807
11023
|
DesignAtomsServiceApiClient.prototype.processExtractItemImage = function (response) {
|
|
10808
|
-
var
|
|
11024
|
+
var e_104, _a;
|
|
10809
11025
|
var status = response.status;
|
|
10810
11026
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
10811
11027
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -10817,12 +11033,12 @@
|
|
|
10817
11033
|
_headers[key] = response.headers.get(key);
|
|
10818
11034
|
}
|
|
10819
11035
|
}
|
|
10820
|
-
catch (
|
|
11036
|
+
catch (e_104_1) { e_104 = { error: e_104_1 }; }
|
|
10821
11037
|
finally {
|
|
10822
11038
|
try {
|
|
10823
11039
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
10824
11040
|
}
|
|
10825
|
-
finally { if (
|
|
11041
|
+
finally { if (e_104) throw e_104.error; }
|
|
10826
11042
|
}
|
|
10827
11043
|
}
|
|
10828
11044
|
if (status === 200 || status === 206) {
|
|
@@ -10891,7 +11107,7 @@
|
|
|
10891
11107
|
}));
|
|
10892
11108
|
};
|
|
10893
11109
|
DesignAtomsServiceApiClient.prototype.processFlattenItems = function (response) {
|
|
10894
|
-
var
|
|
11110
|
+
var e_105, _a;
|
|
10895
11111
|
var _this = this;
|
|
10896
11112
|
var status = response.status;
|
|
10897
11113
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -10904,12 +11120,12 @@
|
|
|
10904
11120
|
_headers[key] = response.headers.get(key);
|
|
10905
11121
|
}
|
|
10906
11122
|
}
|
|
10907
|
-
catch (
|
|
11123
|
+
catch (e_105_1) { e_105 = { error: e_105_1 }; }
|
|
10908
11124
|
finally {
|
|
10909
11125
|
try {
|
|
10910
11126
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
10911
11127
|
}
|
|
10912
|
-
finally { if (
|
|
11128
|
+
finally { if (e_105) throw e_105.error; }
|
|
10913
11129
|
}
|
|
10914
11130
|
}
|
|
10915
11131
|
if (status === 200) {
|
|
@@ -10982,7 +11198,7 @@
|
|
|
10982
11198
|
}));
|
|
10983
11199
|
};
|
|
10984
11200
|
DesignAtomsServiceApiClient.prototype.processCreatePrivateDesignFromDesign = function (response) {
|
|
10985
|
-
var
|
|
11201
|
+
var e_106, _a;
|
|
10986
11202
|
var status = response.status;
|
|
10987
11203
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
10988
11204
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -10994,12 +11210,12 @@
|
|
|
10994
11210
|
_headers[key] = response.headers.get(key);
|
|
10995
11211
|
}
|
|
10996
11212
|
}
|
|
10997
|
-
catch (
|
|
11213
|
+
catch (e_106_1) { e_106 = { error: e_106_1 }; }
|
|
10998
11214
|
finally {
|
|
10999
11215
|
try {
|
|
11000
11216
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
11001
11217
|
}
|
|
11002
|
-
finally { if (
|
|
11218
|
+
finally { if (e_106) throw e_106.error; }
|
|
11003
11219
|
}
|
|
11004
11220
|
}
|
|
11005
11221
|
if (status === 201) {
|
|
@@ -11070,7 +11286,7 @@
|
|
|
11070
11286
|
}));
|
|
11071
11287
|
};
|
|
11072
11288
|
DesignAtomsServiceApiClient.prototype.processCreatePrivateDesignFromResource = function (response) {
|
|
11073
|
-
var
|
|
11289
|
+
var e_107, _a;
|
|
11074
11290
|
var status = response.status;
|
|
11075
11291
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
11076
11292
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -11082,12 +11298,12 @@
|
|
|
11082
11298
|
_headers[key] = response.headers.get(key);
|
|
11083
11299
|
}
|
|
11084
11300
|
}
|
|
11085
|
-
catch (
|
|
11301
|
+
catch (e_107_1) { e_107 = { error: e_107_1 }; }
|
|
11086
11302
|
finally {
|
|
11087
11303
|
try {
|
|
11088
11304
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
11089
11305
|
}
|
|
11090
|
-
finally { if (
|
|
11306
|
+
finally { if (e_107) throw e_107.error; }
|
|
11091
11307
|
}
|
|
11092
11308
|
}
|
|
11093
11309
|
if (status === 201) {
|
|
@@ -11175,7 +11391,7 @@
|
|
|
11175
11391
|
}));
|
|
11176
11392
|
};
|
|
11177
11393
|
DesignAtomsViewerApiClient.prototype.processCssFonts = function (response) {
|
|
11178
|
-
var
|
|
11394
|
+
var e_108, _a;
|
|
11179
11395
|
var _this = this;
|
|
11180
11396
|
var status = response.status;
|
|
11181
11397
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -11188,12 +11404,12 @@
|
|
|
11188
11404
|
_headers[key] = response.headers.get(key);
|
|
11189
11405
|
}
|
|
11190
11406
|
}
|
|
11191
|
-
catch (
|
|
11407
|
+
catch (e_108_1) { e_108 = { error: e_108_1 }; }
|
|
11192
11408
|
finally {
|
|
11193
11409
|
try {
|
|
11194
11410
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
11195
11411
|
}
|
|
11196
|
-
finally { if (
|
|
11412
|
+
finally { if (e_108) throw e_108.error; }
|
|
11197
11413
|
}
|
|
11198
11414
|
}
|
|
11199
11415
|
if (status === 200) {
|
|
@@ -11255,7 +11471,7 @@
|
|
|
11255
11471
|
}));
|
|
11256
11472
|
};
|
|
11257
11473
|
DesignAtomsViewerApiClient.prototype.processFonts = function (response) {
|
|
11258
|
-
var
|
|
11474
|
+
var e_109, _a;
|
|
11259
11475
|
var _this = this;
|
|
11260
11476
|
var status = response.status;
|
|
11261
11477
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -11268,12 +11484,12 @@
|
|
|
11268
11484
|
_headers[key] = response.headers.get(key);
|
|
11269
11485
|
}
|
|
11270
11486
|
}
|
|
11271
|
-
catch (
|
|
11487
|
+
catch (e_109_1) { e_109 = { error: e_109_1 }; }
|
|
11272
11488
|
finally {
|
|
11273
11489
|
try {
|
|
11274
11490
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
11275
11491
|
}
|
|
11276
|
-
finally { if (
|
|
11492
|
+
finally { if (e_109) throw e_109.error; }
|
|
11277
11493
|
}
|
|
11278
11494
|
}
|
|
11279
11495
|
if (status === 200 || status === 206) {
|
|
@@ -11342,7 +11558,7 @@
|
|
|
11342
11558
|
}));
|
|
11343
11559
|
};
|
|
11344
11560
|
DesignAtomsViewerApiClient.prototype.processGetColorPreview = function (response) {
|
|
11345
|
-
var
|
|
11561
|
+
var e_110, _a;
|
|
11346
11562
|
var _this = this;
|
|
11347
11563
|
var status = response.status;
|
|
11348
11564
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -11355,12 +11571,12 @@
|
|
|
11355
11571
|
_headers[key] = response.headers.get(key);
|
|
11356
11572
|
}
|
|
11357
11573
|
}
|
|
11358
|
-
catch (
|
|
11574
|
+
catch (e_110_1) { e_110 = { error: e_110_1 }; }
|
|
11359
11575
|
finally {
|
|
11360
11576
|
try {
|
|
11361
11577
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
11362
11578
|
}
|
|
11363
|
-
finally { if (
|
|
11579
|
+
finally { if (e_110) throw e_110.error; }
|
|
11364
11580
|
}
|
|
11365
11581
|
}
|
|
11366
11582
|
if (status === 200) {
|
|
@@ -11430,7 +11646,7 @@
|
|
|
11430
11646
|
}));
|
|
11431
11647
|
};
|
|
11432
11648
|
DesignAtomsViewerApiClient.prototype.processGetColorPreviews = function (response) {
|
|
11433
|
-
var
|
|
11649
|
+
var e_111, _a;
|
|
11434
11650
|
var _this = this;
|
|
11435
11651
|
var status = response.status;
|
|
11436
11652
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -11443,12 +11659,12 @@
|
|
|
11443
11659
|
_headers[key] = response.headers.get(key);
|
|
11444
11660
|
}
|
|
11445
11661
|
}
|
|
11446
|
-
catch (
|
|
11662
|
+
catch (e_111_1) { e_111 = { error: e_111_1 }; }
|
|
11447
11663
|
finally {
|
|
11448
11664
|
try {
|
|
11449
11665
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
11450
11666
|
}
|
|
11451
|
-
finally { if (
|
|
11667
|
+
finally { if (e_111) throw e_111.error; }
|
|
11452
11668
|
}
|
|
11453
11669
|
}
|
|
11454
11670
|
if (status === 200) {
|
|
@@ -11517,7 +11733,7 @@
|
|
|
11517
11733
|
}));
|
|
11518
11734
|
};
|
|
11519
11735
|
DesignAtomsViewerApiClient.prototype.processGetCssFont = function (response) {
|
|
11520
|
-
var
|
|
11736
|
+
var e_112, _a;
|
|
11521
11737
|
var _this = this;
|
|
11522
11738
|
var status = response.status;
|
|
11523
11739
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -11530,12 +11746,12 @@
|
|
|
11530
11746
|
_headers[key] = response.headers.get(key);
|
|
11531
11747
|
}
|
|
11532
11748
|
}
|
|
11533
|
-
catch (
|
|
11749
|
+
catch (e_112_1) { e_112 = { error: e_112_1 }; }
|
|
11534
11750
|
finally {
|
|
11535
11751
|
try {
|
|
11536
11752
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
11537
11753
|
}
|
|
11538
|
-
finally { if (
|
|
11754
|
+
finally { if (e_112) throw e_112.error; }
|
|
11539
11755
|
}
|
|
11540
11756
|
}
|
|
11541
11757
|
if (status === 200 || status === 206) {
|
|
@@ -11600,7 +11816,7 @@
|
|
|
11600
11816
|
}));
|
|
11601
11817
|
};
|
|
11602
11818
|
DesignAtomsViewerApiClient.prototype.processGetFallbackFonts = function (response) {
|
|
11603
|
-
var
|
|
11819
|
+
var e_113, _a;
|
|
11604
11820
|
var _this = this;
|
|
11605
11821
|
var status = response.status;
|
|
11606
11822
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -11613,12 +11829,12 @@
|
|
|
11613
11829
|
_headers[key] = response.headers.get(key);
|
|
11614
11830
|
}
|
|
11615
11831
|
}
|
|
11616
|
-
catch (
|
|
11832
|
+
catch (e_113_1) { e_113 = { error: e_113_1 }; }
|
|
11617
11833
|
finally {
|
|
11618
11834
|
try {
|
|
11619
11835
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
11620
11836
|
}
|
|
11621
|
-
finally { if (
|
|
11837
|
+
finally { if (e_113) throw e_113.error; }
|
|
11622
11838
|
}
|
|
11623
11839
|
}
|
|
11624
11840
|
if (status === 200) {
|
|
@@ -11681,7 +11897,7 @@
|
|
|
11681
11897
|
}));
|
|
11682
11898
|
};
|
|
11683
11899
|
DesignAtomsViewerApiClient.prototype.processGetImageSize = function (response) {
|
|
11684
|
-
var
|
|
11900
|
+
var e_114, _a;
|
|
11685
11901
|
var _this = this;
|
|
11686
11902
|
var status = response.status;
|
|
11687
11903
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -11694,12 +11910,12 @@
|
|
|
11694
11910
|
_headers[key] = response.headers.get(key);
|
|
11695
11911
|
}
|
|
11696
11912
|
}
|
|
11697
|
-
catch (
|
|
11913
|
+
catch (e_114_1) { e_114 = { error: e_114_1 }; }
|
|
11698
11914
|
finally {
|
|
11699
11915
|
try {
|
|
11700
11916
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
11701
11917
|
}
|
|
11702
|
-
finally { if (
|
|
11918
|
+
finally { if (e_114) throw e_114.error; }
|
|
11703
11919
|
}
|
|
11704
11920
|
}
|
|
11705
11921
|
if (status === 200) {
|
|
@@ -11762,7 +11978,7 @@
|
|
|
11762
11978
|
}));
|
|
11763
11979
|
};
|
|
11764
11980
|
DesignAtomsViewerApiClient.prototype.processGetShapeBounds = function (response) {
|
|
11765
|
-
var
|
|
11981
|
+
var e_115, _a;
|
|
11766
11982
|
var _this = this;
|
|
11767
11983
|
var status = response.status;
|
|
11768
11984
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -11775,12 +11991,12 @@
|
|
|
11775
11991
|
_headers[key] = response.headers.get(key);
|
|
11776
11992
|
}
|
|
11777
11993
|
}
|
|
11778
|
-
catch (
|
|
11994
|
+
catch (e_115_1) { e_115 = { error: e_115_1 }; }
|
|
11779
11995
|
finally {
|
|
11780
11996
|
try {
|
|
11781
11997
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
11782
11998
|
}
|
|
11783
|
-
finally { if (
|
|
11999
|
+
finally { if (e_115) throw e_115.error; }
|
|
11784
12000
|
}
|
|
11785
12001
|
}
|
|
11786
12002
|
if (status === 200) {
|
|
@@ -11843,7 +12059,7 @@
|
|
|
11843
12059
|
}));
|
|
11844
12060
|
};
|
|
11845
12061
|
DesignAtomsViewerApiClient.prototype.processGetWatermarkItems = function (response) {
|
|
11846
|
-
var
|
|
12062
|
+
var e_116, _a;
|
|
11847
12063
|
var _this = this;
|
|
11848
12064
|
var status = response.status;
|
|
11849
12065
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -11856,12 +12072,12 @@
|
|
|
11856
12072
|
_headers[key] = response.headers.get(key);
|
|
11857
12073
|
}
|
|
11858
12074
|
}
|
|
11859
|
-
catch (
|
|
12075
|
+
catch (e_116_1) { e_116 = { error: e_116_1 }; }
|
|
11860
12076
|
finally {
|
|
11861
12077
|
try {
|
|
11862
12078
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
11863
12079
|
}
|
|
11864
|
-
finally { if (
|
|
12080
|
+
finally { if (e_116) throw e_116.error; }
|
|
11865
12081
|
}
|
|
11866
12082
|
}
|
|
11867
12083
|
if (status === 200) {
|
|
@@ -11885,31 +12101,44 @@
|
|
|
11885
12101
|
};
|
|
11886
12102
|
/**
|
|
11887
12103
|
* Retrieves an image with resized dimensions and additional visual effects based on the provided parameters.
|
|
11888
|
-
This method accepts query parameters that control the output of the image.
|
|
11889
12104
|
* @param f (optional) The identifier of the original image file.
|
|
11890
12105
|
* @param w (optional) Target width of the resulting image.
|
|
11891
12106
|
* @param h (optional) Target height of the resulting image.
|
|
11892
12107
|
* @param cmyk (optional) Name of the CMYK profile used for color conversion.
|
|
11893
12108
|
* @param rgb (optional) Name of the RGB profile used for color conversion.
|
|
11894
12109
|
* @param grayscale (optional) Name of the grayscale profile used to convert into shades of gray.
|
|
11895
|
-
* @param target (optional) Target color space, one of
|
|
11896
|
-
* @param sq (optional) Indicates that the image is squared.
|
|
11897
|
-
|
|
11898
|
-
|
|
11899
|
-
|
|
11900
|
-
|
|
11901
|
-
* @param
|
|
11902
|
-
|
|
11903
|
-
* @param
|
|
11904
|
-
|
|
11905
|
-
* @param
|
|
11906
|
-
|
|
11907
|
-
|
|
11908
|
-
|
|
12110
|
+
* @param target (optional) Target color space, one of "Rgb", "Grayscale", or "Cmyk".
|
|
12111
|
+
* @param sq (optional) Indicates that the image is squared.
|
|
12112
|
+
The default value is "false".
|
|
12113
|
+
* @param effect (optional) Effect applied to the image.
|
|
12114
|
+
Possible values: "None", "BlackAndWhite", "FlipVertical", "FlipHorizontal", "Colorize", "Grayscale", or "BlackAndTransparent".
|
|
12115
|
+
The default value is "None".
|
|
12116
|
+
* @param kp (optional) Indicates that image proportions should be maintained.
|
|
12117
|
+
The default value is "false".
|
|
12118
|
+
* @param color (optional) Overlay color in the RGB, RGBA, CMYK, or CMYKA format.
|
|
12119
|
+
By default, it's an empty string.
|
|
12120
|
+
* @param obm (optional) Overlay blend mode used for blending colors.
|
|
12121
|
+
Possible values: "Normal", "Multiply", "Screen", "Overlay", "Darken", "Lighten", "ColorDodge",
|
|
12122
|
+
"ColorBurn", "HardLight", "SoftLight", `Difference", "Exclusion", "None", or "LinearBurn".
|
|
12123
|
+
By default, it's an empty string.
|
|
12124
|
+
* @param oo (optional) Opacity level of the overlaid layer, in the range [0.0, 1.0].
|
|
12125
|
+
The default value is "null".
|
|
12126
|
+
* @param alphaMask (optional) Enables alpha mask processing.
|
|
12127
|
+
The default value is "false".
|
|
12128
|
+
* @param page (optional) Page index in a PDF document that needs to be processed.
|
|
12129
|
+
The default value is "0".
|
|
12130
|
+
* @param colorizeColor (optional) Color applied for the "Colorize" image effect.
|
|
12131
|
+
By default, it's an empty string.
|
|
12132
|
+
* @param rw (optional) Rectangle width for area selection.
|
|
12133
|
+
The default value is "0".
|
|
12134
|
+
* @param rh (optional) Rectangle height for area selection.
|
|
12135
|
+
The default value is "0".
|
|
12136
|
+
* @param dt (optional) Dithering type.
|
|
12137
|
+
* @param da (optional) Dithering amount.
|
|
11909
12138
|
* @param tenantId (optional) Tenant ID.
|
|
11910
12139
|
* @return Success
|
|
11911
12140
|
*/
|
|
11912
|
-
DesignAtomsViewerApiClient.prototype.img = function (f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId) {
|
|
12141
|
+
DesignAtomsViewerApiClient.prototype.img = function (f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, dt, da, tenantId) {
|
|
11913
12142
|
var _this = this;
|
|
11914
12143
|
var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/img?";
|
|
11915
12144
|
if (f !== undefined && f !== null)
|
|
@@ -11948,6 +12177,10 @@
|
|
|
11948
12177
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
11949
12178
|
if (rh !== undefined && rh !== null)
|
|
11950
12179
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
12180
|
+
if (dt !== undefined && dt !== null)
|
|
12181
|
+
url_ += "dt=" + encodeURIComponent("" + dt) + "&";
|
|
12182
|
+
if (da !== undefined && da !== null)
|
|
12183
|
+
url_ += "da=" + encodeURIComponent("" + da) + "&";
|
|
11951
12184
|
if (tenantId === null)
|
|
11952
12185
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
11953
12186
|
else if (tenantId !== undefined)
|
|
@@ -11978,7 +12211,7 @@
|
|
|
11978
12211
|
}));
|
|
11979
12212
|
};
|
|
11980
12213
|
DesignAtomsViewerApiClient.prototype.processImg = function (response) {
|
|
11981
|
-
var
|
|
12214
|
+
var e_117, _a;
|
|
11982
12215
|
var _this = this;
|
|
11983
12216
|
var status = response.status;
|
|
11984
12217
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -11991,12 +12224,12 @@
|
|
|
11991
12224
|
_headers[key] = response.headers.get(key);
|
|
11992
12225
|
}
|
|
11993
12226
|
}
|
|
11994
|
-
catch (
|
|
12227
|
+
catch (e_117_1) { e_117 = { error: e_117_1 }; }
|
|
11995
12228
|
finally {
|
|
11996
12229
|
try {
|
|
11997
12230
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
11998
12231
|
}
|
|
11999
|
-
finally { if (
|
|
12232
|
+
finally { if (e_117) throw e_117.error; }
|
|
12000
12233
|
}
|
|
12001
12234
|
}
|
|
12002
12235
|
if (status === 200 || status === 206) {
|
|
@@ -12066,7 +12299,7 @@
|
|
|
12066
12299
|
}));
|
|
12067
12300
|
};
|
|
12068
12301
|
DesignAtomsViewerApiClient.prototype.processGetLicense = function (response) {
|
|
12069
|
-
var
|
|
12302
|
+
var e_118, _a;
|
|
12070
12303
|
var _this = this;
|
|
12071
12304
|
var status = response.status;
|
|
12072
12305
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -12079,12 +12312,12 @@
|
|
|
12079
12312
|
_headers[key] = response.headers.get(key);
|
|
12080
12313
|
}
|
|
12081
12314
|
}
|
|
12082
|
-
catch (
|
|
12315
|
+
catch (e_118_1) { e_118 = { error: e_118_1 }; }
|
|
12083
12316
|
finally {
|
|
12084
12317
|
try {
|
|
12085
12318
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
12086
12319
|
}
|
|
12087
|
-
finally { if (
|
|
12320
|
+
finally { if (e_118) throw e_118.error; }
|
|
12088
12321
|
}
|
|
12089
12322
|
}
|
|
12090
12323
|
if (status === 200) {
|
|
@@ -12146,7 +12379,7 @@
|
|
|
12146
12379
|
}));
|
|
12147
12380
|
};
|
|
12148
12381
|
DesignAtomsViewerApiClient.prototype.processPth = function (response) {
|
|
12149
|
-
var
|
|
12382
|
+
var e_119, _a;
|
|
12150
12383
|
var _this = this;
|
|
12151
12384
|
var status = response.status;
|
|
12152
12385
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -12159,12 +12392,12 @@
|
|
|
12159
12392
|
_headers[key] = response.headers.get(key);
|
|
12160
12393
|
}
|
|
12161
12394
|
}
|
|
12162
|
-
catch (
|
|
12395
|
+
catch (e_119_1) { e_119 = { error: e_119_1 }; }
|
|
12163
12396
|
finally {
|
|
12164
12397
|
try {
|
|
12165
12398
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
12166
12399
|
}
|
|
12167
|
-
finally { if (
|
|
12400
|
+
finally { if (e_119) throw e_119.error; }
|
|
12168
12401
|
}
|
|
12169
12402
|
}
|
|
12170
12403
|
if (status === 200 || status === 206) {
|
|
@@ -12237,7 +12470,7 @@
|
|
|
12237
12470
|
}));
|
|
12238
12471
|
};
|
|
12239
12472
|
DesignAtomsViewerApiClient.prototype.processResource = function (response) {
|
|
12240
|
-
var
|
|
12473
|
+
var e_120, _a;
|
|
12241
12474
|
var _this = this;
|
|
12242
12475
|
var status = response.status;
|
|
12243
12476
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -12250,12 +12483,12 @@
|
|
|
12250
12483
|
_headers[key] = response.headers.get(key);
|
|
12251
12484
|
}
|
|
12252
12485
|
}
|
|
12253
|
-
catch (
|
|
12486
|
+
catch (e_120_1) { e_120 = { error: e_120_1 }; }
|
|
12254
12487
|
finally {
|
|
12255
12488
|
try {
|
|
12256
12489
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
12257
12490
|
}
|
|
12258
|
-
finally { if (
|
|
12491
|
+
finally { if (e_120) throw e_120.error; }
|
|
12259
12492
|
}
|
|
12260
12493
|
}
|
|
12261
12494
|
if (status === 200 || status === 206) {
|
|
@@ -12290,24 +12523,38 @@
|
|
|
12290
12523
|
* @param cmyk (optional) Name of the CMYK profile used for color conversion.
|
|
12291
12524
|
* @param rgb (optional) Name of the RGB profile used for color conversion.
|
|
12292
12525
|
* @param grayscale (optional) Name of the grayscale profile used to convert into shades of gray.
|
|
12293
|
-
* @param target (optional) Target color space, one of
|
|
12294
|
-
* @param sq (optional) Indicates that the image is squared.
|
|
12295
|
-
|
|
12296
|
-
|
|
12297
|
-
|
|
12298
|
-
|
|
12299
|
-
* @param
|
|
12300
|
-
|
|
12301
|
-
* @param
|
|
12302
|
-
|
|
12303
|
-
* @param
|
|
12304
|
-
|
|
12305
|
-
|
|
12306
|
-
|
|
12526
|
+
* @param target (optional) Target color space, one of "Rgb", "Grayscale", or "Cmyk".
|
|
12527
|
+
* @param sq (optional) Indicates that the image is squared.
|
|
12528
|
+
The default value is "false".
|
|
12529
|
+
* @param effect (optional) Effect applied to the image.
|
|
12530
|
+
Possible values: "None", "BlackAndWhite", "FlipVertical", "FlipHorizontal", "Colorize", "Grayscale", or "BlackAndTransparent".
|
|
12531
|
+
The default value is "None".
|
|
12532
|
+
* @param kp (optional) Indicates that image proportions should be maintained.
|
|
12533
|
+
The default value is "false".
|
|
12534
|
+
* @param color (optional) Overlay color in the RGB, RGBA, CMYK, or CMYKA format.
|
|
12535
|
+
By default, it's an empty string.
|
|
12536
|
+
* @param obm (optional) Overlay blend mode used for blending colors.
|
|
12537
|
+
Possible values: "Normal", "Multiply", "Screen", "Overlay", "Darken", "Lighten", "ColorDodge",
|
|
12538
|
+
"ColorBurn", "HardLight", "SoftLight", `Difference", "Exclusion", "None", or "LinearBurn".
|
|
12539
|
+
By default, it's an empty string.
|
|
12540
|
+
* @param oo (optional) Opacity level of the overlaid layer, in the range [0.0, 1.0].
|
|
12541
|
+
The default value is "null".
|
|
12542
|
+
* @param alphaMask (optional) Enables alpha mask processing.
|
|
12543
|
+
The default value is "false".
|
|
12544
|
+
* @param page (optional) Page index in a PDF document that needs to be processed.
|
|
12545
|
+
The default value is "0".
|
|
12546
|
+
* @param colorizeColor (optional) Color applied for the "Colorize" image effect.
|
|
12547
|
+
By default, it's an empty string.
|
|
12548
|
+
* @param rw (optional) Rectangle width for area selection.
|
|
12549
|
+
The default value is "0".
|
|
12550
|
+
* @param rh (optional) Rectangle height for area selection.
|
|
12551
|
+
The default value is "0".
|
|
12552
|
+
* @param dt (optional) Dithering type.
|
|
12553
|
+
* @param da (optional) Dithering amount.
|
|
12307
12554
|
* @param tenantId (optional) Tenant ID.
|
|
12308
12555
|
* @return Success
|
|
12309
12556
|
*/
|
|
12310
|
-
DesignAtomsViewerApiClient.prototype.svg = function (f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId) {
|
|
12557
|
+
DesignAtomsViewerApiClient.prototype.svg = function (f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, dt, da, tenantId) {
|
|
12311
12558
|
var _this = this;
|
|
12312
12559
|
var url_ = this.baseUrl + "/api/atoms/v1/ccviewer/svg?";
|
|
12313
12560
|
if (f !== undefined && f !== null)
|
|
@@ -12346,6 +12593,10 @@
|
|
|
12346
12593
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
12347
12594
|
if (rh !== undefined && rh !== null)
|
|
12348
12595
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
12596
|
+
if (dt !== undefined && dt !== null)
|
|
12597
|
+
url_ += "dt=" + encodeURIComponent("" + dt) + "&";
|
|
12598
|
+
if (da !== undefined && da !== null)
|
|
12599
|
+
url_ += "da=" + encodeURIComponent("" + da) + "&";
|
|
12349
12600
|
if (tenantId === null)
|
|
12350
12601
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
12351
12602
|
else if (tenantId !== undefined)
|
|
@@ -12376,7 +12627,7 @@
|
|
|
12376
12627
|
}));
|
|
12377
12628
|
};
|
|
12378
12629
|
DesignAtomsViewerApiClient.prototype.processSvg = function (response) {
|
|
12379
|
-
var
|
|
12630
|
+
var e_121, _a;
|
|
12380
12631
|
var _this = this;
|
|
12381
12632
|
var status = response.status;
|
|
12382
12633
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -12389,12 +12640,12 @@
|
|
|
12389
12640
|
_headers[key] = response.headers.get(key);
|
|
12390
12641
|
}
|
|
12391
12642
|
}
|
|
12392
|
-
catch (
|
|
12643
|
+
catch (e_121_1) { e_121 = { error: e_121_1 }; }
|
|
12393
12644
|
finally {
|
|
12394
12645
|
try {
|
|
12395
12646
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
12396
12647
|
}
|
|
12397
|
-
finally { if (
|
|
12648
|
+
finally { if (e_121) throw e_121.error; }
|
|
12398
12649
|
}
|
|
12399
12650
|
}
|
|
12400
12651
|
if (status === 200 || status === 206) {
|
|
@@ -12467,7 +12718,7 @@
|
|
|
12467
12718
|
}));
|
|
12468
12719
|
};
|
|
12469
12720
|
DesignAtomsViewerApiClient.prototype.processTxt = function (response) {
|
|
12470
|
-
var
|
|
12721
|
+
var e_122, _a;
|
|
12471
12722
|
var _this = this;
|
|
12472
12723
|
var status = response.status;
|
|
12473
12724
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -12480,12 +12731,12 @@
|
|
|
12480
12731
|
_headers[key] = response.headers.get(key);
|
|
12481
12732
|
}
|
|
12482
12733
|
}
|
|
12483
|
-
catch (
|
|
12734
|
+
catch (e_122_1) { e_122 = { error: e_122_1 }; }
|
|
12484
12735
|
finally {
|
|
12485
12736
|
try {
|
|
12486
12737
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
12487
12738
|
}
|
|
12488
|
-
finally { if (
|
|
12739
|
+
finally { if (e_122) throw e_122.error; }
|
|
12489
12740
|
}
|
|
12490
12741
|
}
|
|
12491
12742
|
if (status === 200 || status === 206) {
|
|
@@ -12559,7 +12810,7 @@
|
|
|
12559
12810
|
}));
|
|
12560
12811
|
};
|
|
12561
12812
|
DesignAtomsViewerApiClient.prototype.processUpdateArchedTextItemHandler = function (response) {
|
|
12562
|
-
var
|
|
12813
|
+
var e_123, _a;
|
|
12563
12814
|
var _this = this;
|
|
12564
12815
|
var status = response.status;
|
|
12565
12816
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -12572,12 +12823,12 @@
|
|
|
12572
12823
|
_headers[key] = response.headers.get(key);
|
|
12573
12824
|
}
|
|
12574
12825
|
}
|
|
12575
|
-
catch (
|
|
12826
|
+
catch (e_123_1) { e_123 = { error: e_123_1 }; }
|
|
12576
12827
|
finally {
|
|
12577
12828
|
try {
|
|
12578
12829
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
12579
12830
|
}
|
|
12580
|
-
finally { if (
|
|
12831
|
+
finally { if (e_123) throw e_123.error; }
|
|
12581
12832
|
}
|
|
12582
12833
|
}
|
|
12583
12834
|
if (status === 200) {
|
|
@@ -12640,7 +12891,7 @@
|
|
|
12640
12891
|
}));
|
|
12641
12892
|
};
|
|
12642
12893
|
DesignAtomsViewerApiClient.prototype.processUpdateAutoScaledTextItemHandler = function (response) {
|
|
12643
|
-
var
|
|
12894
|
+
var e_124, _a;
|
|
12644
12895
|
var _this = this;
|
|
12645
12896
|
var status = response.status;
|
|
12646
12897
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -12653,12 +12904,12 @@
|
|
|
12653
12904
|
_headers[key] = response.headers.get(key);
|
|
12654
12905
|
}
|
|
12655
12906
|
}
|
|
12656
|
-
catch (
|
|
12907
|
+
catch (e_124_1) { e_124 = { error: e_124_1 }; }
|
|
12657
12908
|
finally {
|
|
12658
12909
|
try {
|
|
12659
12910
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
12660
12911
|
}
|
|
12661
|
-
finally { if (
|
|
12912
|
+
finally { if (e_124) throw e_124.error; }
|
|
12662
12913
|
}
|
|
12663
12914
|
}
|
|
12664
12915
|
if (status === 200) {
|
|
@@ -12721,7 +12972,7 @@
|
|
|
12721
12972
|
}));
|
|
12722
12973
|
};
|
|
12723
12974
|
DesignAtomsViewerApiClient.prototype.processUpdateBarcodeItemHandler = function (response) {
|
|
12724
|
-
var
|
|
12975
|
+
var e_125, _a;
|
|
12725
12976
|
var _this = this;
|
|
12726
12977
|
var status = response.status;
|
|
12727
12978
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -12734,12 +12985,12 @@
|
|
|
12734
12985
|
_headers[key] = response.headers.get(key);
|
|
12735
12986
|
}
|
|
12736
12987
|
}
|
|
12737
|
-
catch (
|
|
12988
|
+
catch (e_125_1) { e_125 = { error: e_125_1 }; }
|
|
12738
12989
|
finally {
|
|
12739
12990
|
try {
|
|
12740
12991
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
12741
12992
|
}
|
|
12742
|
-
finally { if (
|
|
12993
|
+
finally { if (e_125) throw e_125.error; }
|
|
12743
12994
|
}
|
|
12744
12995
|
}
|
|
12745
12996
|
if (status === 200) {
|
|
@@ -12802,7 +13053,7 @@
|
|
|
12802
13053
|
}));
|
|
12803
13054
|
};
|
|
12804
13055
|
DesignAtomsViewerApiClient.prototype.processUpdateBoundedTextItemHandler = function (response) {
|
|
12805
|
-
var
|
|
13056
|
+
var e_126, _a;
|
|
12806
13057
|
var _this = this;
|
|
12807
13058
|
var status = response.status;
|
|
12808
13059
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -12815,12 +13066,12 @@
|
|
|
12815
13066
|
_headers[key] = response.headers.get(key);
|
|
12816
13067
|
}
|
|
12817
13068
|
}
|
|
12818
|
-
catch (
|
|
13069
|
+
catch (e_126_1) { e_126 = { error: e_126_1 }; }
|
|
12819
13070
|
finally {
|
|
12820
13071
|
try {
|
|
12821
13072
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
12822
13073
|
}
|
|
12823
|
-
finally { if (
|
|
13074
|
+
finally { if (e_126) throw e_126.error; }
|
|
12824
13075
|
}
|
|
12825
13076
|
}
|
|
12826
13077
|
if (status === 200) {
|
|
@@ -12883,7 +13134,7 @@
|
|
|
12883
13134
|
}));
|
|
12884
13135
|
};
|
|
12885
13136
|
DesignAtomsViewerApiClient.prototype.processUpdateByColorData = function (response) {
|
|
12886
|
-
var
|
|
13137
|
+
var e_127, _a;
|
|
12887
13138
|
var _this = this;
|
|
12888
13139
|
var status = response.status;
|
|
12889
13140
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -12896,12 +13147,12 @@
|
|
|
12896
13147
|
_headers[key] = response.headers.get(key);
|
|
12897
13148
|
}
|
|
12898
13149
|
}
|
|
12899
|
-
catch (
|
|
13150
|
+
catch (e_127_1) { e_127 = { error: e_127_1 }; }
|
|
12900
13151
|
finally {
|
|
12901
13152
|
try {
|
|
12902
13153
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
12903
13154
|
}
|
|
12904
|
-
finally { if (
|
|
13155
|
+
finally { if (e_127) throw e_127.error; }
|
|
12905
13156
|
}
|
|
12906
13157
|
}
|
|
12907
13158
|
if (status === 200) {
|
|
@@ -12964,7 +13215,7 @@
|
|
|
12964
13215
|
}));
|
|
12965
13216
|
};
|
|
12966
13217
|
DesignAtomsViewerApiClient.prototype.processUpdateByMultiCallRequest = function (response) {
|
|
12967
|
-
var
|
|
13218
|
+
var e_128, _a;
|
|
12968
13219
|
var _this = this;
|
|
12969
13220
|
var status = response.status;
|
|
12970
13221
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -12977,12 +13228,12 @@
|
|
|
12977
13228
|
_headers[key] = response.headers.get(key);
|
|
12978
13229
|
}
|
|
12979
13230
|
}
|
|
12980
|
-
catch (
|
|
13231
|
+
catch (e_128_1) { e_128 = { error: e_128_1 }; }
|
|
12981
13232
|
finally {
|
|
12982
13233
|
try {
|
|
12983
13234
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
12984
13235
|
}
|
|
12985
|
-
finally { if (
|
|
13236
|
+
finally { if (e_128) throw e_128.error; }
|
|
12986
13237
|
}
|
|
12987
13238
|
}
|
|
12988
13239
|
if (status === 200) {
|
|
@@ -13045,7 +13296,7 @@
|
|
|
13045
13296
|
}));
|
|
13046
13297
|
};
|
|
13047
13298
|
DesignAtomsViewerApiClient.prototype.processUpdateCurvedTextItemHandler = function (response) {
|
|
13048
|
-
var
|
|
13299
|
+
var e_129, _a;
|
|
13049
13300
|
var _this = this;
|
|
13050
13301
|
var status = response.status;
|
|
13051
13302
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -13058,12 +13309,12 @@
|
|
|
13058
13309
|
_headers[key] = response.headers.get(key);
|
|
13059
13310
|
}
|
|
13060
13311
|
}
|
|
13061
|
-
catch (
|
|
13312
|
+
catch (e_129_1) { e_129 = { error: e_129_1 }; }
|
|
13062
13313
|
finally {
|
|
13063
13314
|
try {
|
|
13064
13315
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
13065
13316
|
}
|
|
13066
|
-
finally { if (
|
|
13317
|
+
finally { if (e_129) throw e_129.error; }
|
|
13067
13318
|
}
|
|
13068
13319
|
}
|
|
13069
13320
|
if (status === 200) {
|
|
@@ -13126,7 +13377,7 @@
|
|
|
13126
13377
|
}));
|
|
13127
13378
|
};
|
|
13128
13379
|
DesignAtomsViewerApiClient.prototype.processUpdateImageItemHandler = function (response) {
|
|
13129
|
-
var
|
|
13380
|
+
var e_130, _a;
|
|
13130
13381
|
var _this = this;
|
|
13131
13382
|
var status = response.status;
|
|
13132
13383
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -13139,12 +13390,12 @@
|
|
|
13139
13390
|
_headers[key] = response.headers.get(key);
|
|
13140
13391
|
}
|
|
13141
13392
|
}
|
|
13142
|
-
catch (
|
|
13393
|
+
catch (e_130_1) { e_130 = { error: e_130_1 }; }
|
|
13143
13394
|
finally {
|
|
13144
13395
|
try {
|
|
13145
13396
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
13146
13397
|
}
|
|
13147
|
-
finally { if (
|
|
13398
|
+
finally { if (e_130) throw e_130.error; }
|
|
13148
13399
|
}
|
|
13149
13400
|
}
|
|
13150
13401
|
if (status === 200) {
|
|
@@ -13207,7 +13458,7 @@
|
|
|
13207
13458
|
}));
|
|
13208
13459
|
};
|
|
13209
13460
|
DesignAtomsViewerApiClient.prototype.processUpdatePathBoundedTextItemHandler = function (response) {
|
|
13210
|
-
var
|
|
13461
|
+
var e_131, _a;
|
|
13211
13462
|
var _this = this;
|
|
13212
13463
|
var status = response.status;
|
|
13213
13464
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -13220,12 +13471,12 @@
|
|
|
13220
13471
|
_headers[key] = response.headers.get(key);
|
|
13221
13472
|
}
|
|
13222
13473
|
}
|
|
13223
|
-
catch (
|
|
13474
|
+
catch (e_131_1) { e_131 = { error: e_131_1 }; }
|
|
13224
13475
|
finally {
|
|
13225
13476
|
try {
|
|
13226
13477
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
13227
13478
|
}
|
|
13228
|
-
finally { if (
|
|
13479
|
+
finally { if (e_131) throw e_131.error; }
|
|
13229
13480
|
}
|
|
13230
13481
|
}
|
|
13231
13482
|
if (status === 200) {
|
|
@@ -13288,7 +13539,7 @@
|
|
|
13288
13539
|
}));
|
|
13289
13540
|
};
|
|
13290
13541
|
DesignAtomsViewerApiClient.prototype.processUpdatePlainTextItemHandler = function (response) {
|
|
13291
|
-
var
|
|
13542
|
+
var e_132, _a;
|
|
13292
13543
|
var _this = this;
|
|
13293
13544
|
var status = response.status;
|
|
13294
13545
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -13301,12 +13552,12 @@
|
|
|
13301
13552
|
_headers[key] = response.headers.get(key);
|
|
13302
13553
|
}
|
|
13303
13554
|
}
|
|
13304
|
-
catch (
|
|
13555
|
+
catch (e_132_1) { e_132 = { error: e_132_1 }; }
|
|
13305
13556
|
finally {
|
|
13306
13557
|
try {
|
|
13307
13558
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
13308
13559
|
}
|
|
13309
|
-
finally { if (
|
|
13560
|
+
finally { if (e_132) throw e_132.error; }
|
|
13310
13561
|
}
|
|
13311
13562
|
}
|
|
13312
13563
|
if (status === 200) {
|
|
@@ -13369,7 +13620,7 @@
|
|
|
13369
13620
|
}));
|
|
13370
13621
|
};
|
|
13371
13622
|
DesignAtomsViewerApiClient.prototype.processUpdateShapeItemHandler = function (response) {
|
|
13372
|
-
var
|
|
13623
|
+
var e_133, _a;
|
|
13373
13624
|
var _this = this;
|
|
13374
13625
|
var status = response.status;
|
|
13375
13626
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -13382,12 +13633,12 @@
|
|
|
13382
13633
|
_headers[key] = response.headers.get(key);
|
|
13383
13634
|
}
|
|
13384
13635
|
}
|
|
13385
|
-
catch (
|
|
13636
|
+
catch (e_133_1) { e_133 = { error: e_133_1 }; }
|
|
13386
13637
|
finally {
|
|
13387
13638
|
try {
|
|
13388
13639
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
13389
13640
|
}
|
|
13390
|
-
finally { if (
|
|
13641
|
+
finally { if (e_133) throw e_133.error; }
|
|
13391
13642
|
}
|
|
13392
13643
|
}
|
|
13393
13644
|
if (status === 200) {
|
|
@@ -13436,6 +13687,10 @@
|
|
|
13436
13687
|
DesignElementType["PrintArea"] = "PrintArea";
|
|
13437
13688
|
DesignElementType["Item"] = "Item";
|
|
13438
13689
|
})(exports.DesignElementType || (exports.DesignElementType = {}));
|
|
13690
|
+
(function (ImageExtractionFormat) {
|
|
13691
|
+
ImageExtractionFormat["Jpeg"] = "Jpeg";
|
|
13692
|
+
ImageExtractionFormat["Png"] = "Png";
|
|
13693
|
+
})(exports.ImageExtractionFormat || (exports.ImageExtractionFormat = {}));
|
|
13439
13694
|
(function (ImagePreviewFitMode) {
|
|
13440
13695
|
ImagePreviewFitMode["Fit"] = "Fit";
|
|
13441
13696
|
ImagePreviewFitMode["Shrink"] = "Shrink";
|