@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
|
@@ -793,30 +793,43 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
793
793
|
}
|
|
794
794
|
/**
|
|
795
795
|
* Retrieves an image with resized dimensions and additional visual effects based on the provided parameters.
|
|
796
|
-
This method accepts query parameters that control the output of the image.
|
|
797
796
|
* @param f (optional) The identifier of the original image file.
|
|
798
797
|
* @param w (optional) Target width of the resulting image.
|
|
799
798
|
* @param h (optional) Target height of the resulting image.
|
|
800
799
|
* @param cmyk (optional) Name of the CMYK profile used for color conversion.
|
|
801
800
|
* @param rgb (optional) Name of the RGB profile used for color conversion.
|
|
802
801
|
* @param grayscale (optional) Name of the grayscale profile used to convert into shades of gray.
|
|
803
|
-
* @param target (optional) Target color space, one of
|
|
804
|
-
* @param sq (optional) Indicates that the image is squared.
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
* @param
|
|
810
|
-
|
|
811
|
-
* @param
|
|
812
|
-
|
|
813
|
-
* @param
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
802
|
+
* @param target (optional) Target color space, one of "Rgb", "Grayscale", or "Cmyk".
|
|
803
|
+
* @param sq (optional) Indicates that the image is squared.
|
|
804
|
+
The default value is "false".
|
|
805
|
+
* @param effect (optional) Effect applied to the image.
|
|
806
|
+
Possible values: "None", "BlackAndWhite", "FlipVertical", "FlipHorizontal", "Colorize", "Grayscale", or "BlackAndTransparent".
|
|
807
|
+
The default value is "None".
|
|
808
|
+
* @param kp (optional) Indicates that image proportions should be maintained.
|
|
809
|
+
The default value is "false".
|
|
810
|
+
* @param color (optional) Overlay color in the RGB, RGBA, CMYK, or CMYKA format.
|
|
811
|
+
By default, it's an empty string.
|
|
812
|
+
* @param obm (optional) Overlay blend mode used for blending colors.
|
|
813
|
+
Possible values: "Normal", "Multiply", "Screen", "Overlay", "Darken", "Lighten", "ColorDodge",
|
|
814
|
+
"ColorBurn", "HardLight", "SoftLight", `Difference", "Exclusion", "None", or "LinearBurn".
|
|
815
|
+
By default, it's an empty string.
|
|
816
|
+
* @param oo (optional) Opacity level of the overlaid layer, in the range [0.0, 1.0].
|
|
817
|
+
The default value is "null".
|
|
818
|
+
* @param alphaMask (optional) Enables alpha mask processing.
|
|
819
|
+
The default value is "false".
|
|
820
|
+
* @param page (optional) Page index in a PDF document that needs to be processed.
|
|
821
|
+
The default value is "0".
|
|
822
|
+
* @param colorizeColor (optional) Color applied for the "Colorize" image effect.
|
|
823
|
+
By default, it's an empty string.
|
|
824
|
+
* @param rw (optional) Rectangle width for area selection.
|
|
825
|
+
The default value is "0".
|
|
826
|
+
* @param rh (optional) Rectangle height for area selection.
|
|
827
|
+
The default value is "0".
|
|
828
|
+
* @param dt (optional) Dithering type.
|
|
829
|
+
* @param da (optional) Dithering amount.
|
|
817
830
|
* @return Success
|
|
818
831
|
*/
|
|
819
|
-
img(tenantId, f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh) {
|
|
832
|
+
img(tenantId, f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, dt, da) {
|
|
820
833
|
let url_ = this.baseUrl + "/api/atoms/v1/tenants/{tenantId}/api/ccviewer/img?";
|
|
821
834
|
if (tenantId === undefined || tenantId === null)
|
|
822
835
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
@@ -857,6 +870,10 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
857
870
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
858
871
|
if (rh !== undefined && rh !== null)
|
|
859
872
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
873
|
+
if (dt !== undefined && dt !== null)
|
|
874
|
+
url_ += "dt=" + encodeURIComponent("" + dt) + "&";
|
|
875
|
+
if (da !== undefined && da !== null)
|
|
876
|
+
url_ += "da=" + encodeURIComponent("" + da) + "&";
|
|
860
877
|
url_ = url_.replace(/[?&]$/, "");
|
|
861
878
|
let options_ = {
|
|
862
879
|
observe: "response",
|
|
@@ -1138,23 +1155,37 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1138
1155
|
* @param cmyk (optional) Name of the CMYK profile used for color conversion.
|
|
1139
1156
|
* @param rgb (optional) Name of the RGB profile used for color conversion.
|
|
1140
1157
|
* @param grayscale (optional) Name of the grayscale profile used to convert into shades of gray.
|
|
1141
|
-
* @param target (optional) Target color space, one of
|
|
1142
|
-
* @param sq (optional) Indicates that the image is squared.
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
* @param
|
|
1148
|
-
|
|
1149
|
-
* @param
|
|
1150
|
-
|
|
1151
|
-
* @param
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1158
|
+
* @param target (optional) Target color space, one of "Rgb", "Grayscale", or "Cmyk".
|
|
1159
|
+
* @param sq (optional) Indicates that the image is squared.
|
|
1160
|
+
The default value is "false".
|
|
1161
|
+
* @param effect (optional) Effect applied to the image.
|
|
1162
|
+
Possible values: "None", "BlackAndWhite", "FlipVertical", "FlipHorizontal", "Colorize", "Grayscale", or "BlackAndTransparent".
|
|
1163
|
+
The default value is "None".
|
|
1164
|
+
* @param kp (optional) Indicates that image proportions should be maintained.
|
|
1165
|
+
The default value is "false".
|
|
1166
|
+
* @param color (optional) Overlay color in the RGB, RGBA, CMYK, or CMYKA format.
|
|
1167
|
+
By default, it's an empty string.
|
|
1168
|
+
* @param obm (optional) Overlay blend mode used for blending colors.
|
|
1169
|
+
Possible values: "Normal", "Multiply", "Screen", "Overlay", "Darken", "Lighten", "ColorDodge",
|
|
1170
|
+
"ColorBurn", "HardLight", "SoftLight", `Difference", "Exclusion", "None", or "LinearBurn".
|
|
1171
|
+
By default, it's an empty string.
|
|
1172
|
+
* @param oo (optional) Opacity level of the overlaid layer, in the range [0.0, 1.0].
|
|
1173
|
+
The default value is "null".
|
|
1174
|
+
* @param alphaMask (optional) Enables alpha mask processing.
|
|
1175
|
+
The default value is "false".
|
|
1176
|
+
* @param page (optional) Page index in a PDF document that needs to be processed.
|
|
1177
|
+
The default value is "0".
|
|
1178
|
+
* @param colorizeColor (optional) Color applied for the "Colorize" image effect.
|
|
1179
|
+
By default, it's an empty string.
|
|
1180
|
+
* @param rw (optional) Rectangle width for area selection.
|
|
1181
|
+
The default value is "0".
|
|
1182
|
+
* @param rh (optional) Rectangle height for area selection.
|
|
1183
|
+
The default value is "0".
|
|
1184
|
+
* @param dt (optional) Dithering type.
|
|
1185
|
+
* @param da (optional) Dithering amount.
|
|
1155
1186
|
* @return Success
|
|
1156
1187
|
*/
|
|
1157
|
-
svg(tenantId, f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh) {
|
|
1188
|
+
svg(tenantId, f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, dt, da) {
|
|
1158
1189
|
let url_ = this.baseUrl + "/api/atoms/v1/tenants/{tenantId}/api/ccviewer/svg?";
|
|
1159
1190
|
if (tenantId === undefined || tenantId === null)
|
|
1160
1191
|
throw new Error("The parameter 'tenantId' must be defined.");
|
|
@@ -1195,6 +1226,10 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1195
1226
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
1196
1227
|
if (rh !== undefined && rh !== null)
|
|
1197
1228
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
1229
|
+
if (dt !== undefined && dt !== null)
|
|
1230
|
+
url_ += "dt=" + encodeURIComponent("" + dt) + "&";
|
|
1231
|
+
if (da !== undefined && da !== null)
|
|
1232
|
+
url_ += "da=" + encodeURIComponent("" + da) + "&";
|
|
1198
1233
|
url_ = url_.replace(/[?&]$/, "");
|
|
1199
1234
|
let options_ = {
|
|
1200
1235
|
observe: "response",
|
|
@@ -2148,6 +2183,13 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2148
2183
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2149
2184
|
}));
|
|
2150
2185
|
}
|
|
2186
|
+
else if (status === 409) {
|
|
2187
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2188
|
+
let result409 = null;
|
|
2189
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2190
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
2191
|
+
}));
|
|
2192
|
+
}
|
|
2151
2193
|
else if (status === 401) {
|
|
2152
2194
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2153
2195
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -2177,9 +2219,10 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2177
2219
|
* @param height (optional)
|
|
2178
2220
|
* @param fileFormat (optional)
|
|
2179
2221
|
* @param fitMode (optional)
|
|
2222
|
+
* @param pageIndex (optional)
|
|
2180
2223
|
* @return Success
|
|
2181
2224
|
*/
|
|
2182
|
-
renderImagePreviewFromFile(attachment, tenantId, sourceFile, mockupOwnerId, mockupId, width, height, fileFormat, fitMode) {
|
|
2225
|
+
renderImagePreviewFromFile(attachment, tenantId, sourceFile, mockupOwnerId, mockupId, width, height, fileFormat, fitMode, pageIndex) {
|
|
2183
2226
|
let url_ = this.baseUrl + "/api/atoms/v1/images/render-preview/from-file?";
|
|
2184
2227
|
if (attachment !== undefined && attachment !== null)
|
|
2185
2228
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
@@ -2203,6 +2246,8 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2203
2246
|
content_.append("fileFormat", fileFormat.toString());
|
|
2204
2247
|
if (fitMode !== null && fitMode !== undefined)
|
|
2205
2248
|
content_.append("fitMode", fitMode.toString());
|
|
2249
|
+
if (pageIndex !== null && pageIndex !== undefined)
|
|
2250
|
+
content_.append("pageIndex", pageIndex.toString());
|
|
2206
2251
|
let options_ = {
|
|
2207
2252
|
body: content_,
|
|
2208
2253
|
observe: "response",
|
|
@@ -2251,6 +2296,13 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2251
2296
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2252
2297
|
}));
|
|
2253
2298
|
}
|
|
2299
|
+
else if (status === 409) {
|
|
2300
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2301
|
+
let result409 = null;
|
|
2302
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2303
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
2304
|
+
}));
|
|
2305
|
+
}
|
|
2254
2306
|
else if (status === 401) {
|
|
2255
2307
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2256
2308
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -2285,9 +2337,10 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2285
2337
|
* @param height (optional)
|
|
2286
2338
|
* @param fileFormat (optional)
|
|
2287
2339
|
* @param fitMode (optional)
|
|
2340
|
+
* @param pageIndex (optional)
|
|
2288
2341
|
* @return Success
|
|
2289
2342
|
*/
|
|
2290
|
-
renderImagePreviewFromFileToResource(tenantId, resourceOwnerId, resourceNamespace, resourceName, resourceSourceId, resourceType, anonymousAccess, overwriteExistingResource, sourceFile, mockupOwnerId, mockupId, width, height, fileFormat, fitMode) {
|
|
2343
|
+
renderImagePreviewFromFileToResource(tenantId, resourceOwnerId, resourceNamespace, resourceName, resourceSourceId, resourceType, anonymousAccess, overwriteExistingResource, sourceFile, mockupOwnerId, mockupId, width, height, fileFormat, fitMode, pageIndex) {
|
|
2291
2344
|
let url_ = this.baseUrl + "/api/atoms/v1/images/render-preview/from-file/to-resource?";
|
|
2292
2345
|
if (tenantId === null)
|
|
2293
2346
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2323,6 +2376,8 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2323
2376
|
content_.append("fileFormat", fileFormat.toString());
|
|
2324
2377
|
if (fitMode !== null && fitMode !== undefined)
|
|
2325
2378
|
content_.append("fitMode", fitMode.toString());
|
|
2379
|
+
if (pageIndex !== null && pageIndex !== undefined)
|
|
2380
|
+
content_.append("pageIndex", pageIndex.toString());
|
|
2326
2381
|
let options_ = {
|
|
2327
2382
|
body: content_,
|
|
2328
2383
|
observe: "response",
|
|
@@ -2463,6 +2518,13 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2463
2518
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2464
2519
|
}));
|
|
2465
2520
|
}
|
|
2521
|
+
else if (status === 409) {
|
|
2522
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2523
|
+
let result409 = null;
|
|
2524
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2525
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
2526
|
+
}));
|
|
2527
|
+
}
|
|
2466
2528
|
else if (status === 401) {
|
|
2467
2529
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2468
2530
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -6343,6 +6405,13 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
|
|
|
6343
6405
|
return of(result200);
|
|
6344
6406
|
}));
|
|
6345
6407
|
}
|
|
6408
|
+
else if (status === 400) {
|
|
6409
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6410
|
+
let result400 = null;
|
|
6411
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6412
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
6413
|
+
}));
|
|
6414
|
+
}
|
|
6346
6415
|
else if (status === 401) {
|
|
6347
6416
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6348
6417
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -6416,6 +6485,94 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
|
|
|
6416
6485
|
const fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
6417
6486
|
return of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
|
|
6418
6487
|
}
|
|
6488
|
+
else if (status === 400) {
|
|
6489
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6490
|
+
let result400 = null;
|
|
6491
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6492
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
6493
|
+
}));
|
|
6494
|
+
}
|
|
6495
|
+
else if (status === 401) {
|
|
6496
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6497
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6498
|
+
}));
|
|
6499
|
+
}
|
|
6500
|
+
else if (status === 403) {
|
|
6501
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6502
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6503
|
+
}));
|
|
6504
|
+
}
|
|
6505
|
+
else if (status !== 200 && status !== 204) {
|
|
6506
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6507
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6508
|
+
}));
|
|
6509
|
+
}
|
|
6510
|
+
return of(null);
|
|
6511
|
+
}
|
|
6512
|
+
/**
|
|
6513
|
+
* Extracts print-product item image.
|
|
6514
|
+
* @param tenantId (optional) Tenant ID.
|
|
6515
|
+
* @param body (optional) Extraction parameters.
|
|
6516
|
+
* @return Success
|
|
6517
|
+
*/
|
|
6518
|
+
extractItemImageToResource(tenantId, body) {
|
|
6519
|
+
let url_ = this.baseUrl + "/api/atoms/v1/designs/print-product/items/extract-image/to-resource?";
|
|
6520
|
+
if (tenantId === null)
|
|
6521
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
6522
|
+
else if (tenantId !== undefined)
|
|
6523
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
6524
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6525
|
+
const content_ = JSON.stringify(body);
|
|
6526
|
+
let options_ = {
|
|
6527
|
+
body: content_,
|
|
6528
|
+
observe: "response",
|
|
6529
|
+
responseType: "blob",
|
|
6530
|
+
headers: new HttpHeaders({
|
|
6531
|
+
"Content-Type": "application/json",
|
|
6532
|
+
"Accept": "application/octet-stream"
|
|
6533
|
+
})
|
|
6534
|
+
};
|
|
6535
|
+
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
6536
|
+
return this.http.request("post", url_, transformedOptions_);
|
|
6537
|
+
})).pipe(mergeMap((response_) => {
|
|
6538
|
+
return this.transformResult(url_, response_, (r) => this.processExtractItemImageToResource(r));
|
|
6539
|
+
})).pipe(catchError((response_) => {
|
|
6540
|
+
if (response_ instanceof HttpResponseBase) {
|
|
6541
|
+
try {
|
|
6542
|
+
return this.transformResult(url_, response_, (r) => this.processExtractItemImageToResource(r));
|
|
6543
|
+
}
|
|
6544
|
+
catch (e) {
|
|
6545
|
+
return throwError(e);
|
|
6546
|
+
}
|
|
6547
|
+
}
|
|
6548
|
+
else
|
|
6549
|
+
return throwError(response_);
|
|
6550
|
+
}));
|
|
6551
|
+
}
|
|
6552
|
+
processExtractItemImageToResource(response) {
|
|
6553
|
+
const status = response.status;
|
|
6554
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
6555
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
6556
|
+
let _headers = {};
|
|
6557
|
+
if (response.headers) {
|
|
6558
|
+
for (let key of response.headers.keys()) {
|
|
6559
|
+
_headers[key] = response.headers.get(key);
|
|
6560
|
+
}
|
|
6561
|
+
}
|
|
6562
|
+
if (status === 200) {
|
|
6563
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6564
|
+
let result200 = null;
|
|
6565
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6566
|
+
return of(result200);
|
|
6567
|
+
}));
|
|
6568
|
+
}
|
|
6569
|
+
else if (status === 400) {
|
|
6570
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6571
|
+
let result400 = null;
|
|
6572
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6573
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
6574
|
+
}));
|
|
6575
|
+
}
|
|
6419
6576
|
else if (status === 401) {
|
|
6420
6577
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6421
6578
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -6493,6 +6650,20 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
|
|
|
6493
6650
|
return of(result200);
|
|
6494
6651
|
}));
|
|
6495
6652
|
}
|
|
6653
|
+
else if (status === 400) {
|
|
6654
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6655
|
+
let result400 = null;
|
|
6656
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6657
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
6658
|
+
}));
|
|
6659
|
+
}
|
|
6660
|
+
else if (status === 409) {
|
|
6661
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6662
|
+
let result409 = null;
|
|
6663
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6664
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
6665
|
+
}));
|
|
6666
|
+
}
|
|
6496
6667
|
else if (status === 401) {
|
|
6497
6668
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6498
6669
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -6516,10 +6687,11 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
|
|
|
6516
6687
|
* @param tenantId (optional) Tenant ID.
|
|
6517
6688
|
* @param sourceFile (optional)
|
|
6518
6689
|
* @param paletteUID (optional)
|
|
6690
|
+
* @param pageIndex (optional)
|
|
6519
6691
|
* @param preserveOriginalFile (optional)
|
|
6520
6692
|
* @return Success
|
|
6521
6693
|
*/
|
|
6522
|
-
createItemFromFile(itemType, tenantId, sourceFile, paletteUID, preserveOriginalFile) {
|
|
6694
|
+
createItemFromFile(itemType, tenantId, sourceFile, paletteUID, pageIndex, preserveOriginalFile) {
|
|
6523
6695
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/print-product/items/from-file?";
|
|
6524
6696
|
if (itemType !== undefined && itemType !== null)
|
|
6525
6697
|
url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
|
|
@@ -6533,6 +6705,8 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
|
|
|
6533
6705
|
content_.append("sourceFile", sourceFile.data, sourceFile.fileName ? sourceFile.fileName : "sourceFile");
|
|
6534
6706
|
if (paletteUID !== null && paletteUID !== undefined)
|
|
6535
6707
|
content_.append("paletteUID", paletteUID.toString());
|
|
6708
|
+
if (pageIndex !== null && pageIndex !== undefined)
|
|
6709
|
+
content_.append("pageIndex", pageIndex.toString());
|
|
6536
6710
|
if (preserveOriginalFile !== null && preserveOriginalFile !== undefined)
|
|
6537
6711
|
content_.append("preserveOriginalFile", preserveOriginalFile.toString());
|
|
6538
6712
|
let options_ = {
|
|
@@ -6577,6 +6751,13 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
|
|
|
6577
6751
|
return of(result200);
|
|
6578
6752
|
}));
|
|
6579
6753
|
}
|
|
6754
|
+
else if (status === 400) {
|
|
6755
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6756
|
+
let result400 = null;
|
|
6757
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6758
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
6759
|
+
}));
|
|
6760
|
+
}
|
|
6580
6761
|
else if (status === 404) {
|
|
6581
6762
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6582
6763
|
let result404 = null;
|
|
@@ -6675,6 +6856,13 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
|
|
|
6675
6856
|
return of(result200);
|
|
6676
6857
|
}));
|
|
6677
6858
|
}
|
|
6859
|
+
else if (status === 400) {
|
|
6860
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6861
|
+
let result400 = null;
|
|
6862
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6863
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
6864
|
+
}));
|
|
6865
|
+
}
|
|
6678
6866
|
else if (status === 404) {
|
|
6679
6867
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6680
6868
|
let result404 = null;
|
|
@@ -6766,6 +6954,13 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
|
|
|
6766
6954
|
return of(result200);
|
|
6767
6955
|
}));
|
|
6768
6956
|
}
|
|
6957
|
+
else if (status === 400) {
|
|
6958
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6959
|
+
let result400 = null;
|
|
6960
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6961
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
6962
|
+
}));
|
|
6963
|
+
}
|
|
6769
6964
|
else if (status === 404) {
|
|
6770
6965
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6771
6966
|
let result404 = null;
|
|
@@ -6857,6 +7052,13 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
|
|
|
6857
7052
|
return of(result200);
|
|
6858
7053
|
}));
|
|
6859
7054
|
}
|
|
7055
|
+
else if (status === 400) {
|
|
7056
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
7057
|
+
let result400 = null;
|
|
7058
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
7059
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
7060
|
+
}));
|
|
7061
|
+
}
|
|
6860
7062
|
else if (status === 404) {
|
|
6861
7063
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6862
7064
|
let result404 = null;
|
|
@@ -10048,31 +10250,44 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
10048
10250
|
}
|
|
10049
10251
|
/**
|
|
10050
10252
|
* Retrieves an image with resized dimensions and additional visual effects based on the provided parameters.
|
|
10051
|
-
This method accepts query parameters that control the output of the image.
|
|
10052
10253
|
* @param f (optional) The identifier of the original image file.
|
|
10053
10254
|
* @param w (optional) Target width of the resulting image.
|
|
10054
10255
|
* @param h (optional) Target height of the resulting image.
|
|
10055
10256
|
* @param cmyk (optional) Name of the CMYK profile used for color conversion.
|
|
10056
10257
|
* @param rgb (optional) Name of the RGB profile used for color conversion.
|
|
10057
10258
|
* @param grayscale (optional) Name of the grayscale profile used to convert into shades of gray.
|
|
10058
|
-
* @param target (optional) Target color space, one of
|
|
10059
|
-
* @param sq (optional) Indicates that the image is squared.
|
|
10060
|
-
|
|
10061
|
-
|
|
10062
|
-
|
|
10063
|
-
|
|
10064
|
-
* @param
|
|
10065
|
-
|
|
10066
|
-
* @param
|
|
10067
|
-
|
|
10068
|
-
* @param
|
|
10069
|
-
|
|
10070
|
-
|
|
10071
|
-
|
|
10259
|
+
* @param target (optional) Target color space, one of "Rgb", "Grayscale", or "Cmyk".
|
|
10260
|
+
* @param sq (optional) Indicates that the image is squared.
|
|
10261
|
+
The default value is "false".
|
|
10262
|
+
* @param effect (optional) Effect applied to the image.
|
|
10263
|
+
Possible values: "None", "BlackAndWhite", "FlipVertical", "FlipHorizontal", "Colorize", "Grayscale", or "BlackAndTransparent".
|
|
10264
|
+
The default value is "None".
|
|
10265
|
+
* @param kp (optional) Indicates that image proportions should be maintained.
|
|
10266
|
+
The default value is "false".
|
|
10267
|
+
* @param color (optional) Overlay color in the RGB, RGBA, CMYK, or CMYKA format.
|
|
10268
|
+
By default, it's an empty string.
|
|
10269
|
+
* @param obm (optional) Overlay blend mode used for blending colors.
|
|
10270
|
+
Possible values: "Normal", "Multiply", "Screen", "Overlay", "Darken", "Lighten", "ColorDodge",
|
|
10271
|
+
"ColorBurn", "HardLight", "SoftLight", `Difference", "Exclusion", "None", or "LinearBurn".
|
|
10272
|
+
By default, it's an empty string.
|
|
10273
|
+
* @param oo (optional) Opacity level of the overlaid layer, in the range [0.0, 1.0].
|
|
10274
|
+
The default value is "null".
|
|
10275
|
+
* @param alphaMask (optional) Enables alpha mask processing.
|
|
10276
|
+
The default value is "false".
|
|
10277
|
+
* @param page (optional) Page index in a PDF document that needs to be processed.
|
|
10278
|
+
The default value is "0".
|
|
10279
|
+
* @param colorizeColor (optional) Color applied for the "Colorize" image effect.
|
|
10280
|
+
By default, it's an empty string.
|
|
10281
|
+
* @param rw (optional) Rectangle width for area selection.
|
|
10282
|
+
The default value is "0".
|
|
10283
|
+
* @param rh (optional) Rectangle height for area selection.
|
|
10284
|
+
The default value is "0".
|
|
10285
|
+
* @param dt (optional) Dithering type.
|
|
10286
|
+
* @param da (optional) Dithering amount.
|
|
10072
10287
|
* @param tenantId (optional) Tenant ID.
|
|
10073
10288
|
* @return Success
|
|
10074
10289
|
*/
|
|
10075
|
-
img(f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId) {
|
|
10290
|
+
img(f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, dt, da, tenantId) {
|
|
10076
10291
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/img?";
|
|
10077
10292
|
if (f !== undefined && f !== null)
|
|
10078
10293
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
@@ -10110,6 +10325,10 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
10110
10325
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
10111
10326
|
if (rh !== undefined && rh !== null)
|
|
10112
10327
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
10328
|
+
if (dt !== undefined && dt !== null)
|
|
10329
|
+
url_ += "dt=" + encodeURIComponent("" + dt) + "&";
|
|
10330
|
+
if (da !== undefined && da !== null)
|
|
10331
|
+
url_ += "da=" + encodeURIComponent("" + da) + "&";
|
|
10113
10332
|
if (tenantId === null)
|
|
10114
10333
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
10115
10334
|
else if (tenantId !== undefined)
|
|
@@ -10401,24 +10620,38 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
10401
10620
|
* @param cmyk (optional) Name of the CMYK profile used for color conversion.
|
|
10402
10621
|
* @param rgb (optional) Name of the RGB profile used for color conversion.
|
|
10403
10622
|
* @param grayscale (optional) Name of the grayscale profile used to convert into shades of gray.
|
|
10404
|
-
* @param target (optional) Target color space, one of
|
|
10405
|
-
* @param sq (optional) Indicates that the image is squared.
|
|
10406
|
-
|
|
10407
|
-
|
|
10408
|
-
|
|
10409
|
-
|
|
10410
|
-
* @param
|
|
10411
|
-
|
|
10412
|
-
* @param
|
|
10413
|
-
|
|
10414
|
-
* @param
|
|
10415
|
-
|
|
10416
|
-
|
|
10417
|
-
|
|
10623
|
+
* @param target (optional) Target color space, one of "Rgb", "Grayscale", or "Cmyk".
|
|
10624
|
+
* @param sq (optional) Indicates that the image is squared.
|
|
10625
|
+
The default value is "false".
|
|
10626
|
+
* @param effect (optional) Effect applied to the image.
|
|
10627
|
+
Possible values: "None", "BlackAndWhite", "FlipVertical", "FlipHorizontal", "Colorize", "Grayscale", or "BlackAndTransparent".
|
|
10628
|
+
The default value is "None".
|
|
10629
|
+
* @param kp (optional) Indicates that image proportions should be maintained.
|
|
10630
|
+
The default value is "false".
|
|
10631
|
+
* @param color (optional) Overlay color in the RGB, RGBA, CMYK, or CMYKA format.
|
|
10632
|
+
By default, it's an empty string.
|
|
10633
|
+
* @param obm (optional) Overlay blend mode used for blending colors.
|
|
10634
|
+
Possible values: "Normal", "Multiply", "Screen", "Overlay", "Darken", "Lighten", "ColorDodge",
|
|
10635
|
+
"ColorBurn", "HardLight", "SoftLight", `Difference", "Exclusion", "None", or "LinearBurn".
|
|
10636
|
+
By default, it's an empty string.
|
|
10637
|
+
* @param oo (optional) Opacity level of the overlaid layer, in the range [0.0, 1.0].
|
|
10638
|
+
The default value is "null".
|
|
10639
|
+
* @param alphaMask (optional) Enables alpha mask processing.
|
|
10640
|
+
The default value is "false".
|
|
10641
|
+
* @param page (optional) Page index in a PDF document that needs to be processed.
|
|
10642
|
+
The default value is "0".
|
|
10643
|
+
* @param colorizeColor (optional) Color applied for the "Colorize" image effect.
|
|
10644
|
+
By default, it's an empty string.
|
|
10645
|
+
* @param rw (optional) Rectangle width for area selection.
|
|
10646
|
+
The default value is "0".
|
|
10647
|
+
* @param rh (optional) Rectangle height for area selection.
|
|
10648
|
+
The default value is "0".
|
|
10649
|
+
* @param dt (optional) Dithering type.
|
|
10650
|
+
* @param da (optional) Dithering amount.
|
|
10418
10651
|
* @param tenantId (optional) Tenant ID.
|
|
10419
10652
|
* @return Success
|
|
10420
10653
|
*/
|
|
10421
|
-
svg(f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId) {
|
|
10654
|
+
svg(f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, dt, da, tenantId) {
|
|
10422
10655
|
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/svg?";
|
|
10423
10656
|
if (f !== undefined && f !== null)
|
|
10424
10657
|
url_ += "f=" + encodeURIComponent("" + f) + "&";
|
|
@@ -10456,6 +10689,10 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
10456
10689
|
url_ += "rw=" + encodeURIComponent("" + rw) + "&";
|
|
10457
10690
|
if (rh !== undefined && rh !== null)
|
|
10458
10691
|
url_ += "rh=" + encodeURIComponent("" + rh) + "&";
|
|
10692
|
+
if (dt !== undefined && dt !== null)
|
|
10693
|
+
url_ += "dt=" + encodeURIComponent("" + dt) + "&";
|
|
10694
|
+
if (da !== undefined && da !== null)
|
|
10695
|
+
url_ += "da=" + encodeURIComponent("" + da) + "&";
|
|
10459
10696
|
if (tenantId === null)
|
|
10460
10697
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
10461
10698
|
else if (tenantId !== undefined)
|
|
@@ -11380,6 +11617,12 @@ var DesignElementType;
|
|
|
11380
11617
|
DesignElementType["PrintArea"] = "PrintArea";
|
|
11381
11618
|
DesignElementType["Item"] = "Item";
|
|
11382
11619
|
})(DesignElementType || (DesignElementType = {}));
|
|
11620
|
+
/** Image preview file format. */
|
|
11621
|
+
var ImageExtractionFormat;
|
|
11622
|
+
(function (ImageExtractionFormat) {
|
|
11623
|
+
ImageExtractionFormat["Jpeg"] = "Jpeg";
|
|
11624
|
+
ImageExtractionFormat["Png"] = "Png";
|
|
11625
|
+
})(ImageExtractionFormat || (ImageExtractionFormat = {}));
|
|
11383
11626
|
/** Image preview fit mode. */
|
|
11384
11627
|
var ImagePreviewFitMode;
|
|
11385
11628
|
(function (ImagePreviewFitMode) {
|
|
@@ -11544,5 +11787,5 @@ DesignAtomsApiModule.decorators = [
|
|
|
11544
11787
|
* Generated bundle index. Do not edit.
|
|
11545
11788
|
*/
|
|
11546
11789
|
|
|
11547
|
-
export { API_BASE_URL, ApiClientBase, ApiClientConfiguration, ApiException, BuildInfoApiClient, ConflictType, CreateApiClientConfiguration, DesignAtomsApiModule, DesignAtomsCompatibilityApiClient, DesignAtomsImagesApiClient, DesignAtomsMockups3dApiClient, DesignAtomsPalettesApiClient, DesignAtomsPrintProductApiClient, DesignAtomsPrintProductItemsApiClient, DesignAtomsServiceApiClient, DesignAtomsViewerApiClient, DesignElementType, ImagePreviewFitMode, ImagePreviewFormat, ItemSourceType, ItemType, PlaceholderItemContentType, ProductPatchType, ProductPreviewFormat, ProductProofFormat, ProductProofInterpolationMode, TextAlignment, TextVerticalAlignment };
|
|
11790
|
+
export { API_BASE_URL, ApiClientBase, ApiClientConfiguration, ApiException, BuildInfoApiClient, ConflictType, CreateApiClientConfiguration, DesignAtomsApiModule, DesignAtomsCompatibilityApiClient, DesignAtomsImagesApiClient, DesignAtomsMockups3dApiClient, DesignAtomsPalettesApiClient, DesignAtomsPrintProductApiClient, DesignAtomsPrintProductItemsApiClient, DesignAtomsServiceApiClient, DesignAtomsViewerApiClient, DesignElementType, ImageExtractionFormat, ImagePreviewFitMode, ImagePreviewFormat, ItemSourceType, ItemType, PlaceholderItemContentType, ProductPatchType, ProductPreviewFormat, ProductProofFormat, ProductProofInterpolationMode, TextAlignment, TextVerticalAlignment };
|
|
11548
11791
|
//# sourceMappingURL=aurigma-ng-design-atoms-api-client.js.map
|