@aurigma/ng-design-atoms-api-client 2.70.1 → 2.71.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/aurigma-ng-design-atoms-api-client.metadata.json +1 -1
- package/bundles/aurigma-ng-design-atoms-api-client.umd.js +472 -241
- 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/aurigma-ng-design-atoms-api-client.js +1 -1
- package/esm2015/lib/design-atoms-api-client.js +281 -62
- package/esm2015/lib/design-atoms-api.module.js +1 -1
- package/esm2015/public-api.js +1 -1
- package/fesm2015/aurigma-ng-design-atoms-api-client.js +281 -62
- package/fesm2015/aurigma-ng-design-atoms-api-client.js.map +1 -1
- package/lib/design-atoms-api-client.d.ts +263 -123
- package/package.json +1 -1
|
@@ -32,4 +32,4 @@ DesignAtomsApiModule.decorators = [
|
|
|
32
32
|
exports: []
|
|
33
33
|
},] }
|
|
34
34
|
];
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVzaWduLWF0b21zLWFwaS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiL2hvbWUvYXVyaWdtYS9hZ2VudHMvQ0NIMDEvX3dvcmsvOC9zL3NyYy9BdXJpZ21hLkRlc2lnbkF0b21zQXBpLlR5cGVTY3JpcHRBcGlDbGllbnQvQW5ndWxhci9hcGktY2xpZW50L3Byb2plY3RzL2NsaWVudC9zcmMvIiwic291cmNlcyI6WyJsaWIvZGVzaWduLWF0b21zLWFwaS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFzQixRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDNUQsT0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JX0JBU0VfVVJMLFxuICAgICAgICAgIHVzZVZhbHVlOiBhcGlVcmxcbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIHByb3ZpZGU6IERlc2lnbkF0b21zQXBpQ2xpZW50LkFwaUNsaWVudENvbmZpZ3VyYXRpb24sXG4gICAgICAgICAgdXNlRmFjdG9yeTogQ3JlYXRlQXBpQ2xpZW50Q29uZmlndXJhdGlvbi5iaW5kKHRoaXMsIHRva2VuICwgYXBpVXJsLCBhcGlLZXkpXG4gICAgICAgIH0sXG4gICAgICBdXG4gICAgfTtcbiAgfVxufVxuIl19
|
package/esm2015/public-api.js
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export * from './lib/design-atoms-api.module';
|
|
5
5
|
export * from './lib/design-atoms-api-client';
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIvaG9tZS9hdXJpZ21hL2FnZW50cy9DQ0gwMS9fd29yay84L3Mvc3JjL0F1cmlnbWEuRGVzaWduQXRvbXNBcGkuVHlwZVNjcmlwdEFwaUNsaWVudC9Bbmd1bGFyL2FwaS1jbGllbnQvcHJvamVjdHMvY2xpZW50L3NyYy8iLCJzb3VyY2VzIjpbInB1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLCtCQUErQixDQUFDO0FBQzlDLGNBQWMsK0JBQStCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIGNsaWVudFxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL2Rlc2lnbi1hdG9tcy1hcGkubW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2Rlc2lnbi1hdG9tcy1hcGktY2xpZW50JztcbiJdfQ==
|
|
@@ -793,27 +793,38 @@ 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".
|
|
817
828
|
* @return Success
|
|
818
829
|
*/
|
|
819
830
|
img(tenantId, f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh) {
|
|
@@ -1138,20 +1149,32 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1138
1149
|
* @param cmyk (optional) Name of the CMYK profile used for color conversion.
|
|
1139
1150
|
* @param rgb (optional) Name of the RGB profile used for color conversion.
|
|
1140
1151
|
* @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
|
-
|
|
1152
|
+
* @param target (optional) Target color space, one of "Rgb", "Grayscale", or "Cmyk".
|
|
1153
|
+
* @param sq (optional) Indicates that the image is squared.
|
|
1154
|
+
The default value is "false".
|
|
1155
|
+
* @param effect (optional) Effect applied to the image.
|
|
1156
|
+
Possible values: "None", "BlackAndWhite", "FlipVertical", "FlipHorizontal", "Colorize", "Grayscale", or "BlackAndTransparent".
|
|
1157
|
+
The default value is "None".
|
|
1158
|
+
* @param kp (optional) Indicates that image proportions should be maintained.
|
|
1159
|
+
The default value is "false".
|
|
1160
|
+
* @param color (optional) Overlay color in the RGB, RGBA, CMYK, or CMYKA format.
|
|
1161
|
+
By default, it's an empty string.
|
|
1162
|
+
* @param obm (optional) Overlay blend mode used for blending colors.
|
|
1163
|
+
Possible values: "Normal", "Multiply", "Screen", "Overlay", "Darken", "Lighten", "ColorDodge",
|
|
1164
|
+
"ColorBurn", "HardLight", "SoftLight", `Difference", "Exclusion", "None", or "LinearBurn".
|
|
1165
|
+
By default, it's an empty string.
|
|
1166
|
+
* @param oo (optional) Opacity level of the overlaid layer, in the range [0.0, 1.0].
|
|
1167
|
+
The default value is "null".
|
|
1168
|
+
* @param alphaMask (optional) Enables alpha mask processing.
|
|
1169
|
+
The default value is "false".
|
|
1170
|
+
* @param page (optional) Page index in a PDF document that needs to be processed.
|
|
1171
|
+
The default value is "0".
|
|
1172
|
+
* @param colorizeColor (optional) Color applied for the "Colorize" image effect.
|
|
1173
|
+
By default, it's an empty string.
|
|
1174
|
+
* @param rw (optional) Rectangle width for area selection.
|
|
1175
|
+
The default value is "0".
|
|
1176
|
+
* @param rh (optional) Rectangle height for area selection.
|
|
1177
|
+
The default value is "0".
|
|
1155
1178
|
* @return Success
|
|
1156
1179
|
*/
|
|
1157
1180
|
svg(tenantId, f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh) {
|
|
@@ -2148,6 +2171,13 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2148
2171
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2149
2172
|
}));
|
|
2150
2173
|
}
|
|
2174
|
+
else if (status === 409) {
|
|
2175
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2176
|
+
let result409 = null;
|
|
2177
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2178
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
2179
|
+
}));
|
|
2180
|
+
}
|
|
2151
2181
|
else if (status === 401) {
|
|
2152
2182
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2153
2183
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -2177,9 +2207,10 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2177
2207
|
* @param height (optional)
|
|
2178
2208
|
* @param fileFormat (optional)
|
|
2179
2209
|
* @param fitMode (optional)
|
|
2210
|
+
* @param pageIndex (optional)
|
|
2180
2211
|
* @return Success
|
|
2181
2212
|
*/
|
|
2182
|
-
renderImagePreviewFromFile(attachment, tenantId, sourceFile, mockupOwnerId, mockupId, width, height, fileFormat, fitMode) {
|
|
2213
|
+
renderImagePreviewFromFile(attachment, tenantId, sourceFile, mockupOwnerId, mockupId, width, height, fileFormat, fitMode, pageIndex) {
|
|
2183
2214
|
let url_ = this.baseUrl + "/api/atoms/v1/images/render-preview/from-file?";
|
|
2184
2215
|
if (attachment !== undefined && attachment !== null)
|
|
2185
2216
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
@@ -2203,6 +2234,8 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2203
2234
|
content_.append("fileFormat", fileFormat.toString());
|
|
2204
2235
|
if (fitMode !== null && fitMode !== undefined)
|
|
2205
2236
|
content_.append("fitMode", fitMode.toString());
|
|
2237
|
+
if (pageIndex !== null && pageIndex !== undefined)
|
|
2238
|
+
content_.append("pageIndex", pageIndex.toString());
|
|
2206
2239
|
let options_ = {
|
|
2207
2240
|
body: content_,
|
|
2208
2241
|
observe: "response",
|
|
@@ -2251,6 +2284,13 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2251
2284
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2252
2285
|
}));
|
|
2253
2286
|
}
|
|
2287
|
+
else if (status === 409) {
|
|
2288
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2289
|
+
let result409 = null;
|
|
2290
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2291
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
2292
|
+
}));
|
|
2293
|
+
}
|
|
2254
2294
|
else if (status === 401) {
|
|
2255
2295
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2256
2296
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -2285,9 +2325,10 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2285
2325
|
* @param height (optional)
|
|
2286
2326
|
* @param fileFormat (optional)
|
|
2287
2327
|
* @param fitMode (optional)
|
|
2328
|
+
* @param pageIndex (optional)
|
|
2288
2329
|
* @return Success
|
|
2289
2330
|
*/
|
|
2290
|
-
renderImagePreviewFromFileToResource(tenantId, resourceOwnerId, resourceNamespace, resourceName, resourceSourceId, resourceType, anonymousAccess, overwriteExistingResource, sourceFile, mockupOwnerId, mockupId, width, height, fileFormat, fitMode) {
|
|
2331
|
+
renderImagePreviewFromFileToResource(tenantId, resourceOwnerId, resourceNamespace, resourceName, resourceSourceId, resourceType, anonymousAccess, overwriteExistingResource, sourceFile, mockupOwnerId, mockupId, width, height, fileFormat, fitMode, pageIndex) {
|
|
2291
2332
|
let url_ = this.baseUrl + "/api/atoms/v1/images/render-preview/from-file/to-resource?";
|
|
2292
2333
|
if (tenantId === null)
|
|
2293
2334
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
@@ -2323,6 +2364,8 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2323
2364
|
content_.append("fileFormat", fileFormat.toString());
|
|
2324
2365
|
if (fitMode !== null && fitMode !== undefined)
|
|
2325
2366
|
content_.append("fitMode", fitMode.toString());
|
|
2367
|
+
if (pageIndex !== null && pageIndex !== undefined)
|
|
2368
|
+
content_.append("pageIndex", pageIndex.toString());
|
|
2326
2369
|
let options_ = {
|
|
2327
2370
|
body: content_,
|
|
2328
2371
|
observe: "response",
|
|
@@ -2463,6 +2506,13 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2463
2506
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2464
2507
|
}));
|
|
2465
2508
|
}
|
|
2509
|
+
else if (status === 409) {
|
|
2510
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2511
|
+
let result409 = null;
|
|
2512
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2513
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
2514
|
+
}));
|
|
2515
|
+
}
|
|
2466
2516
|
else if (status === 401) {
|
|
2467
2517
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2468
2518
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -6343,6 +6393,13 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
|
|
|
6343
6393
|
return of(result200);
|
|
6344
6394
|
}));
|
|
6345
6395
|
}
|
|
6396
|
+
else if (status === 400) {
|
|
6397
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6398
|
+
let result400 = null;
|
|
6399
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6400
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
6401
|
+
}));
|
|
6402
|
+
}
|
|
6346
6403
|
else if (status === 401) {
|
|
6347
6404
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6348
6405
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -6416,6 +6473,94 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
|
|
|
6416
6473
|
const fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
6417
6474
|
return of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
|
|
6418
6475
|
}
|
|
6476
|
+
else if (status === 400) {
|
|
6477
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6478
|
+
let result400 = null;
|
|
6479
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6480
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
6481
|
+
}));
|
|
6482
|
+
}
|
|
6483
|
+
else if (status === 401) {
|
|
6484
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6485
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6486
|
+
}));
|
|
6487
|
+
}
|
|
6488
|
+
else if (status === 403) {
|
|
6489
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6490
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6491
|
+
}));
|
|
6492
|
+
}
|
|
6493
|
+
else if (status !== 200 && status !== 204) {
|
|
6494
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6495
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6496
|
+
}));
|
|
6497
|
+
}
|
|
6498
|
+
return of(null);
|
|
6499
|
+
}
|
|
6500
|
+
/**
|
|
6501
|
+
* Extracts print-product item image.
|
|
6502
|
+
* @param tenantId (optional) Tenant ID.
|
|
6503
|
+
* @param body (optional) Extraction parameters.
|
|
6504
|
+
* @return Success
|
|
6505
|
+
*/
|
|
6506
|
+
extractItemImageToResource(tenantId, body) {
|
|
6507
|
+
let url_ = this.baseUrl + "/api/atoms/v1/designs/print-product/items/extract-image/to-resource?";
|
|
6508
|
+
if (tenantId === null)
|
|
6509
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
6510
|
+
else if (tenantId !== undefined)
|
|
6511
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
6512
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6513
|
+
const content_ = JSON.stringify(body);
|
|
6514
|
+
let options_ = {
|
|
6515
|
+
body: content_,
|
|
6516
|
+
observe: "response",
|
|
6517
|
+
responseType: "blob",
|
|
6518
|
+
headers: new HttpHeaders({
|
|
6519
|
+
"Content-Type": "application/json",
|
|
6520
|
+
"Accept": "application/octet-stream"
|
|
6521
|
+
})
|
|
6522
|
+
};
|
|
6523
|
+
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
6524
|
+
return this.http.request("post", url_, transformedOptions_);
|
|
6525
|
+
})).pipe(mergeMap((response_) => {
|
|
6526
|
+
return this.transformResult(url_, response_, (r) => this.processExtractItemImageToResource(r));
|
|
6527
|
+
})).pipe(catchError((response_) => {
|
|
6528
|
+
if (response_ instanceof HttpResponseBase) {
|
|
6529
|
+
try {
|
|
6530
|
+
return this.transformResult(url_, response_, (r) => this.processExtractItemImageToResource(r));
|
|
6531
|
+
}
|
|
6532
|
+
catch (e) {
|
|
6533
|
+
return throwError(e);
|
|
6534
|
+
}
|
|
6535
|
+
}
|
|
6536
|
+
else
|
|
6537
|
+
return throwError(response_);
|
|
6538
|
+
}));
|
|
6539
|
+
}
|
|
6540
|
+
processExtractItemImageToResource(response) {
|
|
6541
|
+
const status = response.status;
|
|
6542
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
6543
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
6544
|
+
let _headers = {};
|
|
6545
|
+
if (response.headers) {
|
|
6546
|
+
for (let key of response.headers.keys()) {
|
|
6547
|
+
_headers[key] = response.headers.get(key);
|
|
6548
|
+
}
|
|
6549
|
+
}
|
|
6550
|
+
if (status === 200) {
|
|
6551
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6552
|
+
let result200 = null;
|
|
6553
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6554
|
+
return of(result200);
|
|
6555
|
+
}));
|
|
6556
|
+
}
|
|
6557
|
+
else if (status === 400) {
|
|
6558
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6559
|
+
let result400 = null;
|
|
6560
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6561
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
6562
|
+
}));
|
|
6563
|
+
}
|
|
6419
6564
|
else if (status === 401) {
|
|
6420
6565
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6421
6566
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -6493,6 +6638,20 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
|
|
|
6493
6638
|
return of(result200);
|
|
6494
6639
|
}));
|
|
6495
6640
|
}
|
|
6641
|
+
else if (status === 400) {
|
|
6642
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6643
|
+
let result400 = null;
|
|
6644
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6645
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
6646
|
+
}));
|
|
6647
|
+
}
|
|
6648
|
+
else if (status === 409) {
|
|
6649
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6650
|
+
let result409 = null;
|
|
6651
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6652
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
6653
|
+
}));
|
|
6654
|
+
}
|
|
6496
6655
|
else if (status === 401) {
|
|
6497
6656
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6498
6657
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -6516,10 +6675,11 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
|
|
|
6516
6675
|
* @param tenantId (optional) Tenant ID.
|
|
6517
6676
|
* @param sourceFile (optional)
|
|
6518
6677
|
* @param paletteUID (optional)
|
|
6678
|
+
* @param pageIndex (optional)
|
|
6519
6679
|
* @param preserveOriginalFile (optional)
|
|
6520
6680
|
* @return Success
|
|
6521
6681
|
*/
|
|
6522
|
-
createItemFromFile(itemType, tenantId, sourceFile, paletteUID, preserveOriginalFile) {
|
|
6682
|
+
createItemFromFile(itemType, tenantId, sourceFile, paletteUID, pageIndex, preserveOriginalFile) {
|
|
6523
6683
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/print-product/items/from-file?";
|
|
6524
6684
|
if (itemType !== undefined && itemType !== null)
|
|
6525
6685
|
url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
|
|
@@ -6533,6 +6693,8 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
|
|
|
6533
6693
|
content_.append("sourceFile", sourceFile.data, sourceFile.fileName ? sourceFile.fileName : "sourceFile");
|
|
6534
6694
|
if (paletteUID !== null && paletteUID !== undefined)
|
|
6535
6695
|
content_.append("paletteUID", paletteUID.toString());
|
|
6696
|
+
if (pageIndex !== null && pageIndex !== undefined)
|
|
6697
|
+
content_.append("pageIndex", pageIndex.toString());
|
|
6536
6698
|
if (preserveOriginalFile !== null && preserveOriginalFile !== undefined)
|
|
6537
6699
|
content_.append("preserveOriginalFile", preserveOriginalFile.toString());
|
|
6538
6700
|
let options_ = {
|
|
@@ -6577,6 +6739,13 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
|
|
|
6577
6739
|
return of(result200);
|
|
6578
6740
|
}));
|
|
6579
6741
|
}
|
|
6742
|
+
else if (status === 400) {
|
|
6743
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6744
|
+
let result400 = null;
|
|
6745
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6746
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
6747
|
+
}));
|
|
6748
|
+
}
|
|
6580
6749
|
else if (status === 404) {
|
|
6581
6750
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6582
6751
|
let result404 = null;
|
|
@@ -6675,6 +6844,13 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
|
|
|
6675
6844
|
return of(result200);
|
|
6676
6845
|
}));
|
|
6677
6846
|
}
|
|
6847
|
+
else if (status === 400) {
|
|
6848
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6849
|
+
let result400 = null;
|
|
6850
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6851
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
6852
|
+
}));
|
|
6853
|
+
}
|
|
6678
6854
|
else if (status === 404) {
|
|
6679
6855
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6680
6856
|
let result404 = null;
|
|
@@ -6766,6 +6942,13 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
|
|
|
6766
6942
|
return of(result200);
|
|
6767
6943
|
}));
|
|
6768
6944
|
}
|
|
6945
|
+
else if (status === 400) {
|
|
6946
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6947
|
+
let result400 = null;
|
|
6948
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6949
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
6950
|
+
}));
|
|
6951
|
+
}
|
|
6769
6952
|
else if (status === 404) {
|
|
6770
6953
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6771
6954
|
let result404 = null;
|
|
@@ -6857,6 +7040,13 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
|
|
|
6857
7040
|
return of(result200);
|
|
6858
7041
|
}));
|
|
6859
7042
|
}
|
|
7043
|
+
else if (status === 400) {
|
|
7044
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
7045
|
+
let result400 = null;
|
|
7046
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
7047
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
7048
|
+
}));
|
|
7049
|
+
}
|
|
6860
7050
|
else if (status === 404) {
|
|
6861
7051
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
6862
7052
|
let result404 = null;
|
|
@@ -10048,27 +10238,38 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
10048
10238
|
}
|
|
10049
10239
|
/**
|
|
10050
10240
|
* 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
10241
|
* @param f (optional) The identifier of the original image file.
|
|
10053
10242
|
* @param w (optional) Target width of the resulting image.
|
|
10054
10243
|
* @param h (optional) Target height of the resulting image.
|
|
10055
10244
|
* @param cmyk (optional) Name of the CMYK profile used for color conversion.
|
|
10056
10245
|
* @param rgb (optional) Name of the RGB profile used for color conversion.
|
|
10057
10246
|
* @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
|
-
|
|
10247
|
+
* @param target (optional) Target color space, one of "Rgb", "Grayscale", or "Cmyk".
|
|
10248
|
+
* @param sq (optional) Indicates that the image is squared.
|
|
10249
|
+
The default value is "false".
|
|
10250
|
+
* @param effect (optional) Effect applied to the image.
|
|
10251
|
+
Possible values: "None", "BlackAndWhite", "FlipVertical", "FlipHorizontal", "Colorize", "Grayscale", or "BlackAndTransparent".
|
|
10252
|
+
The default value is "None".
|
|
10253
|
+
* @param kp (optional) Indicates that image proportions should be maintained.
|
|
10254
|
+
The default value is "false".
|
|
10255
|
+
* @param color (optional) Overlay color in the RGB, RGBA, CMYK, or CMYKA format.
|
|
10256
|
+
By default, it's an empty string.
|
|
10257
|
+
* @param obm (optional) Overlay blend mode used for blending colors.
|
|
10258
|
+
Possible values: "Normal", "Multiply", "Screen", "Overlay", "Darken", "Lighten", "ColorDodge",
|
|
10259
|
+
"ColorBurn", "HardLight", "SoftLight", `Difference", "Exclusion", "None", or "LinearBurn".
|
|
10260
|
+
By default, it's an empty string.
|
|
10261
|
+
* @param oo (optional) Opacity level of the overlaid layer, in the range [0.0, 1.0].
|
|
10262
|
+
The default value is "null".
|
|
10263
|
+
* @param alphaMask (optional) Enables alpha mask processing.
|
|
10264
|
+
The default value is "false".
|
|
10265
|
+
* @param page (optional) Page index in a PDF document that needs to be processed.
|
|
10266
|
+
The default value is "0".
|
|
10267
|
+
* @param colorizeColor (optional) Color applied for the "Colorize" image effect.
|
|
10268
|
+
By default, it's an empty string.
|
|
10269
|
+
* @param rw (optional) Rectangle width for area selection.
|
|
10270
|
+
The default value is "0".
|
|
10271
|
+
* @param rh (optional) Rectangle height for area selection.
|
|
10272
|
+
The default value is "0".
|
|
10072
10273
|
* @param tenantId (optional) Tenant ID.
|
|
10073
10274
|
* @return Success
|
|
10074
10275
|
*/
|
|
@@ -10401,20 +10602,32 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
10401
10602
|
* @param cmyk (optional) Name of the CMYK profile used for color conversion.
|
|
10402
10603
|
* @param rgb (optional) Name of the RGB profile used for color conversion.
|
|
10403
10604
|
* @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
|
-
|
|
10605
|
+
* @param target (optional) Target color space, one of "Rgb", "Grayscale", or "Cmyk".
|
|
10606
|
+
* @param sq (optional) Indicates that the image is squared.
|
|
10607
|
+
The default value is "false".
|
|
10608
|
+
* @param effect (optional) Effect applied to the image.
|
|
10609
|
+
Possible values: "None", "BlackAndWhite", "FlipVertical", "FlipHorizontal", "Colorize", "Grayscale", or "BlackAndTransparent".
|
|
10610
|
+
The default value is "None".
|
|
10611
|
+
* @param kp (optional) Indicates that image proportions should be maintained.
|
|
10612
|
+
The default value is "false".
|
|
10613
|
+
* @param color (optional) Overlay color in the RGB, RGBA, CMYK, or CMYKA format.
|
|
10614
|
+
By default, it's an empty string.
|
|
10615
|
+
* @param obm (optional) Overlay blend mode used for blending colors.
|
|
10616
|
+
Possible values: "Normal", "Multiply", "Screen", "Overlay", "Darken", "Lighten", "ColorDodge",
|
|
10617
|
+
"ColorBurn", "HardLight", "SoftLight", `Difference", "Exclusion", "None", or "LinearBurn".
|
|
10618
|
+
By default, it's an empty string.
|
|
10619
|
+
* @param oo (optional) Opacity level of the overlaid layer, in the range [0.0, 1.0].
|
|
10620
|
+
The default value is "null".
|
|
10621
|
+
* @param alphaMask (optional) Enables alpha mask processing.
|
|
10622
|
+
The default value is "false".
|
|
10623
|
+
* @param page (optional) Page index in a PDF document that needs to be processed.
|
|
10624
|
+
The default value is "0".
|
|
10625
|
+
* @param colorizeColor (optional) Color applied for the "Colorize" image effect.
|
|
10626
|
+
By default, it's an empty string.
|
|
10627
|
+
* @param rw (optional) Rectangle width for area selection.
|
|
10628
|
+
The default value is "0".
|
|
10629
|
+
* @param rh (optional) Rectangle height for area selection.
|
|
10630
|
+
The default value is "0".
|
|
10418
10631
|
* @param tenantId (optional) Tenant ID.
|
|
10419
10632
|
* @return Success
|
|
10420
10633
|
*/
|
|
@@ -11380,6 +11593,12 @@ var DesignElementType;
|
|
|
11380
11593
|
DesignElementType["PrintArea"] = "PrintArea";
|
|
11381
11594
|
DesignElementType["Item"] = "Item";
|
|
11382
11595
|
})(DesignElementType || (DesignElementType = {}));
|
|
11596
|
+
/** Image preview file format. */
|
|
11597
|
+
var ImageExtractionFormat;
|
|
11598
|
+
(function (ImageExtractionFormat) {
|
|
11599
|
+
ImageExtractionFormat["Jpeg"] = "Jpeg";
|
|
11600
|
+
ImageExtractionFormat["Png"] = "Png";
|
|
11601
|
+
})(ImageExtractionFormat || (ImageExtractionFormat = {}));
|
|
11383
11602
|
/** Image preview fit mode. */
|
|
11384
11603
|
var ImagePreviewFitMode;
|
|
11385
11604
|
(function (ImagePreviewFitMode) {
|
|
@@ -11544,5 +11763,5 @@ DesignAtomsApiModule.decorators = [
|
|
|
11544
11763
|
* Generated bundle index. Do not edit.
|
|
11545
11764
|
*/
|
|
11546
11765
|
|
|
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 };
|
|
11766
|
+
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
11767
|
//# sourceMappingURL=aurigma-ng-design-atoms-api-client.js.map
|