@aurigma/ng-design-atoms-api-client 2.68.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 -153
- 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 +111 -1
- package/fesm2015/aurigma-ng-design-atoms-api-client.js +111 -1
- package/fesm2015/aurigma-ng-design-atoms-api-client.js.map +1 -1
- package/lib/design-atoms-api-client.d.ts +92 -0
- package/package.json +1 -1
|
@@ -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.
|
|
@@ -11577,6 +11669,24 @@ var ProductProofInterpolationMode;
|
|
|
11577
11669
|
ProductProofInterpolationMode["Anisotropic9"] = "Anisotropic9";
|
|
11578
11670
|
ProductProofInterpolationMode["Lanczos3"] = "Lanczos3";
|
|
11579
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 = {}));
|
|
11580
11690
|
class ApiException extends Error {
|
|
11581
11691
|
constructor(message, status, response, headers, result) {
|
|
11582
11692
|
super();
|
|
@@ -11655,5 +11765,5 @@ DesignAtomsApiModule.decorators = [
|
|
|
11655
11765
|
* Generated bundle index. Do not edit.
|
|
11656
11766
|
*/
|
|
11657
11767
|
|
|
11658
|
-
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 };
|
|
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 };
|
|
11659
11769
|
//# sourceMappingURL=aurigma-ng-design-atoms-api-client.js.map
|