@aurigma/ng-design-atoms-api-client 2.67.1 → 2.68.7
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 +272 -160
- 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 +111 -9
- 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 +111 -9
- package/fesm2015/aurigma-ng-design-atoms-api-client.js.map +1 -1
- package/lib/design-atoms-api-client.d.ts +94 -30
- 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVzaWduLWF0b21zLWFwaS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiL2hvbWUvYXVyaWdtYS9hZ2VudHMvQ0NIMDQvX3dvcmsvNi9zL3NyYy9BdXJpZ21hLkRlc2lnbkF0b21zQXBpLlR5cGVTY3JpcHRBcGlDbGllbnQvQW5ndWxhci9hcGktY2xpZW50L3Byb2plY3RzL2NsaWVudC9zcmMvIiwic291cmNlcyI6WyJsaWIvZGVzaWduLWF0b21zLWFwaS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFzQixRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDNUQsT0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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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIvaG9tZS9hdXJpZ21hL2FnZW50cy9DQ0gwNC9fd29yay82L3Mvc3JjL0F1cmlnbWEuRGVzaWduQXRvbXNBcGkuVHlwZVNjcmlwdEFwaUNsaWVudC9Bbmd1bGFyL2FwaS1jbGllbnQvcHJvamVjdHMvY2xpZW50L3NyYy8iLCJzb3VyY2VzIjpbInB1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLCtCQUErQixDQUFDO0FBQzlDLGNBQWMsK0JBQStCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIGNsaWVudFxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL2Rlc2lnbi1hdG9tcy1hcGkubW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2Rlc2lnbi1hdG9tcy1hcGktY2xpZW50JztcbiJdfQ==
|
|
@@ -7266,6 +7266,98 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
7266
7266
|
}
|
|
7267
7267
|
return of(null);
|
|
7268
7268
|
}
|
|
7269
|
+
/**
|
|
7270
|
+
* Applies item data for a specified design file taken from storage.
|
|
7271
|
+
* @param id Design identifier.
|
|
7272
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
7273
|
+
* @param tenantId (optional) Tenant identifier
|
|
7274
|
+
* @param body (optional) Design items data.
|
|
7275
|
+
* @return Success
|
|
7276
|
+
*/
|
|
7277
|
+
applyItemsData(id, privateStorageOwner, tenantId, body) {
|
|
7278
|
+
let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/apply-items-data?";
|
|
7279
|
+
if (id === undefined || id === null)
|
|
7280
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
7281
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
7282
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
7283
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
7284
|
+
if (tenantId === null)
|
|
7285
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
7286
|
+
else if (tenantId !== undefined)
|
|
7287
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
7288
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
7289
|
+
const content_ = JSON.stringify(body);
|
|
7290
|
+
let options_ = {
|
|
7291
|
+
body: content_,
|
|
7292
|
+
observe: "response",
|
|
7293
|
+
responseType: "blob",
|
|
7294
|
+
headers: new HttpHeaders({
|
|
7295
|
+
"Content-Type": "application/json",
|
|
7296
|
+
})
|
|
7297
|
+
};
|
|
7298
|
+
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
7299
|
+
return this.http.request("post", url_, transformedOptions_);
|
|
7300
|
+
})).pipe(mergeMap((response_) => {
|
|
7301
|
+
return this.transformResult(url_, response_, (r) => this.processApplyItemsData(r));
|
|
7302
|
+
})).pipe(catchError((response_) => {
|
|
7303
|
+
if (response_ instanceof HttpResponseBase) {
|
|
7304
|
+
try {
|
|
7305
|
+
return this.transformResult(url_, response_, (r) => this.processApplyItemsData(r));
|
|
7306
|
+
}
|
|
7307
|
+
catch (e) {
|
|
7308
|
+
return throwError(e);
|
|
7309
|
+
}
|
|
7310
|
+
}
|
|
7311
|
+
else
|
|
7312
|
+
return throwError(response_);
|
|
7313
|
+
}));
|
|
7314
|
+
}
|
|
7315
|
+
processApplyItemsData(response) {
|
|
7316
|
+
const status = response.status;
|
|
7317
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
7318
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
7319
|
+
let _headers = {};
|
|
7320
|
+
if (response.headers) {
|
|
7321
|
+
for (let key of response.headers.keys()) {
|
|
7322
|
+
_headers[key] = response.headers.get(key);
|
|
7323
|
+
}
|
|
7324
|
+
}
|
|
7325
|
+
if (status === 200) {
|
|
7326
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
7327
|
+
return of(null);
|
|
7328
|
+
}));
|
|
7329
|
+
}
|
|
7330
|
+
else if (status === 404) {
|
|
7331
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
7332
|
+
let result404 = null;
|
|
7333
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
7334
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
7335
|
+
}));
|
|
7336
|
+
}
|
|
7337
|
+
else if (status === 409) {
|
|
7338
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
7339
|
+
let result409 = null;
|
|
7340
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
7341
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
7342
|
+
}));
|
|
7343
|
+
}
|
|
7344
|
+
else if (status === 401) {
|
|
7345
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
7346
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
7347
|
+
}));
|
|
7348
|
+
}
|
|
7349
|
+
else if (status === 403) {
|
|
7350
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
7351
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
7352
|
+
}));
|
|
7353
|
+
}
|
|
7354
|
+
else if (status !== 200 && status !== 204) {
|
|
7355
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
7356
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
7357
|
+
}));
|
|
7358
|
+
}
|
|
7359
|
+
return of(null);
|
|
7360
|
+
}
|
|
7269
7361
|
/**
|
|
7270
7362
|
* Returns image content of the background.
|
|
7271
7363
|
* @param id Design identifier.
|
|
@@ -11492,14 +11584,6 @@ DesignAtomsViewerApiClient.ctorParameters = () => [
|
|
|
11492
11584
|
{ type: HttpClient, decorators: [{ type: Inject, args: [HttpClient,] }] },
|
|
11493
11585
|
{ type: String, decorators: [{ type: Optional }, { type: Inject, args: [API_BASE_URL,] }] }
|
|
11494
11586
|
];
|
|
11495
|
-
var ColorSpace;
|
|
11496
|
-
(function (ColorSpace) {
|
|
11497
|
-
ColorSpace["Rgb"] = "Rgb";
|
|
11498
|
-
ColorSpace["Cmyk"] = "Cmyk";
|
|
11499
|
-
ColorSpace["Grayscale"] = "Grayscale";
|
|
11500
|
-
ColorSpace["Lab"] = "Lab";
|
|
11501
|
-
ColorSpace["Spot"] = "Spot";
|
|
11502
|
-
})(ColorSpace || (ColorSpace = {}));
|
|
11503
11587
|
/** Conflict types. */
|
|
11504
11588
|
var ConflictType;
|
|
11505
11589
|
(function (ConflictType) {
|
|
@@ -11585,6 +11669,24 @@ var ProductProofInterpolationMode;
|
|
|
11585
11669
|
ProductProofInterpolationMode["Anisotropic9"] = "Anisotropic9";
|
|
11586
11670
|
ProductProofInterpolationMode["Lanczos3"] = "Lanczos3";
|
|
11587
11671
|
})(ProductProofInterpolationMode || (ProductProofInterpolationMode = {}));
|
|
11672
|
+
/** Text item content alignment. */
|
|
11673
|
+
var TextAlignment;
|
|
11674
|
+
(function (TextAlignment) {
|
|
11675
|
+
TextAlignment["Left"] = "Left";
|
|
11676
|
+
TextAlignment["Center"] = "Center";
|
|
11677
|
+
TextAlignment["Right"] = "Right";
|
|
11678
|
+
TextAlignment["All"] = "All";
|
|
11679
|
+
TextAlignment["LastLeft"] = "LastLeft";
|
|
11680
|
+
TextAlignment["LastRight"] = "LastRight";
|
|
11681
|
+
TextAlignment["LastCenter"] = "LastCenter";
|
|
11682
|
+
})(TextAlignment || (TextAlignment = {}));
|
|
11683
|
+
/** Text item content vertical alignment. */
|
|
11684
|
+
var TextVerticalAlignment;
|
|
11685
|
+
(function (TextVerticalAlignment) {
|
|
11686
|
+
TextVerticalAlignment["Top"] = "Top";
|
|
11687
|
+
TextVerticalAlignment["Center"] = "Center";
|
|
11688
|
+
TextVerticalAlignment["Bottom"] = "Bottom";
|
|
11689
|
+
})(TextVerticalAlignment || (TextVerticalAlignment = {}));
|
|
11588
11690
|
class ApiException extends Error {
|
|
11589
11691
|
constructor(message, status, response, headers, result) {
|
|
11590
11692
|
super();
|
|
@@ -11663,5 +11765,5 @@ DesignAtomsApiModule.decorators = [
|
|
|
11663
11765
|
* Generated bundle index. Do not edit.
|
|
11664
11766
|
*/
|
|
11665
11767
|
|
|
11666
|
-
export { API_BASE_URL, ApiClientBase, ApiClientConfiguration, ApiException, BuildInfoApiClient,
|
|
11768
|
+
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 };
|
|
11667
11769
|
//# sourceMappingURL=aurigma-ng-design-atoms-api-client.js.map
|