@aurigma/ng-design-atoms-api-client 2.29.1 → 2.31.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.
@@ -32,4 +32,4 @@ DesignAtomsApiModule.decorators = [
32
32
  exports: []
33
33
  },] }
34
34
  ];
35
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVzaWduLWF0b21zLWFwaS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiL2hvbWUvYXVyaWdtYS9hZ2VudHMvMDUvX3dvcmsvMTQ5L3MvQXVyaWdtYS5EZXNpZ25BdG9tc0FwaS5UeXBlU2NyaXB0QXBpQ2xpZW50L0FuZ3VsYXIvYXBpLWNsaWVudC9wcm9qZWN0cy9jbGllbnQvc3JjLyIsInNvdXJjZXMiOlsibGliL2Rlc2lnbi1hdG9tcy1hcGkubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBc0IsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQzVELE9BQU8sS0FBSyxvQkFBb0IsTUFBTSwyQkFBMkIsQ0FBQztBQUVsRSxXQUFXO0FBQ1gsTUFBTSxVQUFVLDRCQUE0QixDQUFDLEtBQWEsRUFBRSxNQUFjLEVBQUUsU0FBaUIsUUFBUTtJQUNuRyxNQUFNLE9BQU8sR0FBRyxJQUFJLG9CQUFvQixDQUFDLHNCQUFzQixFQUFFLENBQUM7SUFDbEUsT0FBTyxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7SUFDeEIsT0FBTyxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7SUFDeEIsT0FBTyxDQUFDLHFCQUFxQixDQUFDLEtBQUssQ0FBQyxDQUFDO0lBQ3JDLE9BQU8sT0FBTyxDQUFDO0FBQ2pCLENBQUM7QUFRRCxNQUFNLE9BQU8sb0JBQW9CO0lBQy9CLE1BQU0sQ0F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YXBpS2V5ID0gYXBpS2V5O1xuICBhcGlDb25mLmFwaVVybCA9IGFwaVVybDtcbiAgYXBpQ29uZi5zZXRBdXRob3JpemF0aW9uVG9rZW4odG9rZW4pO1xuICByZXR1cm4gYXBpQ29uZjtcbn1cblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbXSxcbiAgaW1wb3J0czogW1xuICBdLFxuICBleHBvcnRzOiBbXVxufSlcbmV4cG9ydCBjbGFzcyBEZXNpZ25BdG9tc0FwaU1vZHVsZSB7XG4gIHN0YXRpYyBmb3JSb290KHRva2VuOiBzdHJpbmcsIGFwaVVybDogc3RyaW5nLCBhcGlLZXk6IHN0cmluZyA9ICdBcGlLZXknKTogTW9kdWxlV2l0aFByb3ZpZGVyczxEZXNpZ25BdG9tc0FwaU1vZHVsZT4ge1xuICAgIHJldHVybiB7XG4gICAgICBuZ01vZHVsZTogRGVzaWduQXRvbXNBcGlNb2R1bGUsXG4gICAgICBwcm92aWRlcnM6IFtcbiAgICAgICAge1xuICAgICAgICAgIHByb3ZpZGU6IERlc2lnbkF0b21zQXBpQ2xpZW50LkFQSV9CQVNFX1VSTCxcbiAgICAgICAgICB1c2VWYWx1ZTogYXBpVXJsXG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBwcm92aWRlOiBEZXNpZ25BdG9tc0FwaUNsaWVudC5BcGlDbGllbnRDb25maWd1cmF0aW9uLFxuICAgICAgICAgIHVzZUZhY3Rvcnk6IENyZWF0ZUFwaUNsaWVudENvbmZpZ3VyYXRpb24uYmluZCh0aGlzLCB0b2tlbiAsIGFwaVVybCwgYXBpS2V5KVxuICAgICAgICB9LFxuICAgICAgXVxuICAgIH07XG4gIH1cbn1cbiJdfQ==
35
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVzaWduLWF0b21zLWFwaS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiL2hvbWUvYXVyaWdtYS9hZ2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0cmluZywgYXBpVXJsOiBzdHJpbmcsIGFwaUtleTogc3RyaW5nID0gJ0FwaUtleScpOiBNb2R1bGVXaXRoUHJvdmlkZXJzPERlc2lnbkF0b21zQXBpTW9kdWxlPiB7XG4gICAgcmV0dXJuIHtcbiAgICAgIG5nTW9kdWxlOiBEZXNpZ25BdG9tc0FwaU1vZHVsZSxcbiAgICAgIHByb3ZpZGVyczogW1xuICAgICAgICB7XG4gICAgICAgICAgcHJvdmlkZTogRGVzaWduQXRvbXNBcGlDbGllbnQuQVBJX0JBU0VfVVJMLFxuICAgICAgICAgIHVzZVZhbHVlOiBhcGlVcmxcbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIHByb3ZpZGU6IERlc2lnbkF0b21zQXBpQ2xpZW50LkFwaUNsaWVudENvbmZpZ3VyYXRpb24sXG4gICAgICAgICAgdXNlRmFjdG9yeTogQ3JlYXRlQXBpQ2xpZW50Q29uZmlndXJhdGlvbi5iaW5kKHRoaXMsIHRva2VuICwgYXBpVXJsLCBhcGlLZXkpXG4gICAgICAgIH0sXG4gICAgICBdXG4gICAgfTtcbiAgfVxufVxuIl19
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIvaG9tZS9hdXJpZ21hL2FnZW50cy8wNS9fd29yay8xNDkvcy9BdXJpZ21hLkRlc2lnbkF0b21zQXBpLlR5cGVTY3JpcHRBcGlDbGllbnQvQW5ndWxhci9hcGktY2xpZW50L3Byb2plY3RzL2NsaWVudC9zcmMvIiwic291cmNlcyI6WyJwdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYywrQkFBK0IsQ0FBQztBQUM5QyxjQUFjLCtCQUErQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBjbGllbnRcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9kZXNpZ24tYXRvbXMtYXBpLm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9kZXNpZ24tYXRvbXMtYXBpLWNsaWVudCc7XG4iXX0=
6
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIvaG9tZS9hdXJpZ21hL2FnZW50cy8wNC9fd29yay81MC9zL0F1cmlnbWEuRGVzaWduQXRvbXNBcGkuVHlwZVNjcmlwdEFwaUNsaWVudC9Bbmd1bGFyL2FwaS1jbGllbnQvcHJvamVjdHMvY2xpZW50L3NyYy8iLCJzb3VyY2VzIjpbInB1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLCtCQUErQixDQUFDO0FBQzlDLGNBQWMsK0JBQStCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIGNsaWVudFxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL2Rlc2lnbi1hdG9tcy1hcGkubW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2Rlc2lnbi1hdG9tcy1hcGktY2xpZW50JztcbiJdfQ==
@@ -1860,6 +1860,109 @@ DesignAtomsCompatibilityApiClient.ctorParameters = () => [
1860
1860
  { type: HttpClient, decorators: [{ type: Inject, args: [HttpClient,] }] },
1861
1861
  { type: String, decorators: [{ type: Optional }, { type: Inject, args: [API_BASE_URL,] }] }
1862
1862
  ];
1863
+ class DesignAtomsImagesApiClient extends ApiClientBase {
1864
+ constructor(configuration, http, baseUrl) {
1865
+ super(configuration);
1866
+ this.jsonParseReviver = undefined;
1867
+ this.http = http;
1868
+ this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : this.getBaseUrl("");
1869
+ }
1870
+ /**
1871
+ * Renders a web image preview with the specified parameters.
1872
+ * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
1873
+ (default value is 'false').
1874
+ * @param tenantId (optional) Tenant identifier
1875
+ * @param body (optional) Render model with preview parameters.
1876
+ * @return Success
1877
+ */
1878
+ renderImagePreview(attachment, tenantId, body) {
1879
+ let url_ = this.baseUrl + "/api/atoms/v1/images/render-image-preview?";
1880
+ if (attachment !== undefined && attachment !== null)
1881
+ url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
1882
+ if (tenantId === null)
1883
+ throw new Error("The parameter 'tenantId' cannot be null.");
1884
+ else if (tenantId !== undefined)
1885
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
1886
+ url_ = url_.replace(/[?&]$/, "");
1887
+ const content_ = JSON.stringify(body);
1888
+ let options_ = {
1889
+ body: content_,
1890
+ observe: "response",
1891
+ responseType: "blob",
1892
+ headers: new HttpHeaders({
1893
+ "Content-Type": "application/json",
1894
+ "Accept": "application/octet-stream"
1895
+ })
1896
+ };
1897
+ return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
1898
+ return this.http.request("post", url_, transformedOptions_);
1899
+ })).pipe(mergeMap((response_) => {
1900
+ return this.transformResult(url_, response_, (r) => this.processRenderImagePreview(r));
1901
+ })).pipe(catchError((response_) => {
1902
+ if (response_ instanceof HttpResponseBase) {
1903
+ try {
1904
+ return this.transformResult(url_, response_, (r) => this.processRenderImagePreview(r));
1905
+ }
1906
+ catch (e) {
1907
+ return throwError(e);
1908
+ }
1909
+ }
1910
+ else
1911
+ return throwError(response_);
1912
+ }));
1913
+ }
1914
+ processRenderImagePreview(response) {
1915
+ const status = response.status;
1916
+ const responseBlob = response instanceof HttpResponse ? response.body :
1917
+ response.error instanceof Blob ? response.error : undefined;
1918
+ let _headers = {};
1919
+ if (response.headers) {
1920
+ for (let key of response.headers.keys()) {
1921
+ _headers[key] = response.headers.get(key);
1922
+ }
1923
+ }
1924
+ if (status === 200 || status === 206) {
1925
+ const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
1926
+ const fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
1927
+ const fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
1928
+ return of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
1929
+ }
1930
+ else if (status === 401) {
1931
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
1932
+ return throwException("Unauthorized", status, _responseText, _headers);
1933
+ }));
1934
+ }
1935
+ else if (status === 403) {
1936
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
1937
+ return throwException("Forbidden", status, _responseText, _headers);
1938
+ }));
1939
+ }
1940
+ else if (status === 500) {
1941
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
1942
+ let result500 = null;
1943
+ result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
1944
+ return throwException("Internal server error", status, _responseText, _headers, result500);
1945
+ }));
1946
+ }
1947
+ else if (status !== 200 && status !== 204) {
1948
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
1949
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1950
+ }));
1951
+ }
1952
+ return of(null);
1953
+ }
1954
+ }
1955
+ DesignAtomsImagesApiClient.ɵprov = ɵɵdefineInjectable({ factory: function DesignAtomsImagesApiClient_Factory() { return new DesignAtomsImagesApiClient(ɵɵinject(ApiClientConfiguration), ɵɵinject(HttpClient), ɵɵinject(API_BASE_URL, 8)); }, token: DesignAtomsImagesApiClient, providedIn: "root" });
1956
+ DesignAtomsImagesApiClient.decorators = [
1957
+ { type: Injectable, args: [{
1958
+ providedIn: 'root'
1959
+ },] }
1960
+ ];
1961
+ DesignAtomsImagesApiClient.ctorParameters = () => [
1962
+ { type: ApiClientConfiguration, decorators: [{ type: Inject, args: [ApiClientConfiguration,] }] },
1963
+ { type: HttpClient, decorators: [{ type: Inject, args: [HttpClient,] }] },
1964
+ { type: String, decorators: [{ type: Optional }, { type: Inject, args: [API_BASE_URL,] }] }
1965
+ ];
1863
1966
  class DesignAtomsServiceApiClient extends ApiClientBase {
1864
1967
  constructor(configuration, http, baseUrl) {
1865
1968
  super(configuration);
@@ -2332,17 +2435,20 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
2332
2435
  return of(null);
2333
2436
  }
2334
2437
  /**
2335
- * Patches product (design model) in design file
2336
- * @param id Design identifier
2337
- * @param privateStorage (optional) If set to 'true' design will be taken from private storage
2338
- * @param privateStorageOwner (optional) Private storage owner identifier
2438
+ * Patches product (design model) in design file.
2439
+ * @param id Design identifier.
2440
+ * @param privateStorage (optional) If set to 'true' design will be taken from private storage.
2441
+ * @param privateStorageOwner (optional) Private storage owner identifier.
2339
2442
  * @param tenantId (optional) Tenant identifier
2340
2443
  * @param patchType (optional)
2341
2444
  * @param replaceImageItemFileInfo_itemName (optional)
2342
2445
  * @param replaceImageItemFileInfo_sourceFile (optional)
2446
+ * @param replacePlaceholderItemContentInfo_placeholderItemName (optional)
2447
+ * @param replacePlaceholderItemContentInfo_newContentType (optional)
2448
+ * @param replacePlaceholderItemContentInfo_sourceFile (optional)
2343
2449
  * @return Success
2344
2450
  */
2345
- patchProduct(id, privateStorage, privateStorageOwner, tenantId, patchType, replaceImageItemFileInfo_itemName, replaceImageItemFileInfo_sourceFile) {
2451
+ patchProduct(id, privateStorage, privateStorageOwner, tenantId, patchType, replaceImageItemFileInfo_itemName, replaceImageItemFileInfo_sourceFile, replacePlaceholderItemContentInfo_placeholderItemName, replacePlaceholderItemContentInfo_newContentType, replacePlaceholderItemContentInfo_sourceFile) {
2346
2452
  let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/model?";
2347
2453
  if (id === undefined || id === null)
2348
2454
  throw new Error("The parameter 'id' must be defined.");
@@ -2365,6 +2471,14 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
2365
2471
  content_.append("replaceImageItemFileInfo.itemName", replaceImageItemFileInfo_itemName.toString());
2366
2472
  if (replaceImageItemFileInfo_sourceFile !== null && replaceImageItemFileInfo_sourceFile !== undefined)
2367
2473
  content_.append("replaceImageItemFileInfo.sourceFile", replaceImageItemFileInfo_sourceFile.data, replaceImageItemFileInfo_sourceFile.fileName ? replaceImageItemFileInfo_sourceFile.fileName : "replaceImageItemFileInfo.sourceFile");
2474
+ if (replacePlaceholderItemContentInfo_placeholderItemName !== null && replacePlaceholderItemContentInfo_placeholderItemName !== undefined)
2475
+ content_.append("replacePlaceholderItemContentInfo.placeholderItemName", replacePlaceholderItemContentInfo_placeholderItemName.toString());
2476
+ if (replacePlaceholderItemContentInfo_newContentType === null || replacePlaceholderItemContentInfo_newContentType === undefined)
2477
+ throw new Error("The parameter 'replacePlaceholderItemContentInfo_newContentType' cannot be null.");
2478
+ else
2479
+ content_.append("replacePlaceholderItemContentInfo.newContentType", replacePlaceholderItemContentInfo_newContentType.toString());
2480
+ if (replacePlaceholderItemContentInfo_sourceFile !== null && replacePlaceholderItemContentInfo_sourceFile !== undefined)
2481
+ content_.append("replacePlaceholderItemContentInfo.sourceFile", replacePlaceholderItemContentInfo_sourceFile.data, replacePlaceholderItemContentInfo_sourceFile.fileName ? replacePlaceholderItemContentInfo_sourceFile.fileName : "replacePlaceholderItemContentInfo.sourceFile");
2368
2482
  let options_ = {
2369
2483
  body: content_,
2370
2484
  observe: "response",
@@ -5350,6 +5464,14 @@ DesignAtomsViewerApiClient.ctorParameters = () => [
5350
5464
  { type: HttpClient, decorators: [{ type: Inject, args: [HttpClient,] }] },
5351
5465
  { type: String, decorators: [{ type: Optional }, { type: Inject, args: [API_BASE_URL,] }] }
5352
5466
  ];
5467
+ /** Product preview file format. */
5468
+ var ProductPreviewFormat;
5469
+ (function (ProductPreviewFormat) {
5470
+ ProductPreviewFormat["Jpeg"] = "Jpeg";
5471
+ ProductPreviewFormat["Png"] = "Png";
5472
+ ProductPreviewFormat["Tiff"] = "Tiff";
5473
+ ProductPreviewFormat["Pdf"] = "Pdf";
5474
+ })(ProductPreviewFormat || (ProductPreviewFormat = {}));
5353
5475
  var DesignElementType;
5354
5476
  (function (DesignElementType) {
5355
5477
  DesignElementType["Product"] = "Product";
@@ -5359,12 +5481,18 @@ var DesignElementType;
5359
5481
  DesignElementType["PrintArea"] = "PrintArea";
5360
5482
  DesignElementType["Item"] = "Item";
5361
5483
  })(DesignElementType || (DesignElementType = {}));
5362
- /** Available patch type */
5484
+ /** Available patch type. */
5363
5485
  var ProductPatchType;
5364
5486
  (function (ProductPatchType) {
5365
5487
  ProductPatchType["Undefined"] = "Undefined";
5366
5488
  ProductPatchType["ReplaceImageItemFile"] = "ReplaceImageItemFile";
5489
+ ProductPatchType["ReplacePlaceholderItemContent"] = "ReplacePlaceholderItemContent";
5367
5490
  })(ProductPatchType || (ProductPatchType = {}));
5491
+ /** Placeholder item content type. */
5492
+ var PlaceholderItemContentType;
5493
+ (function (PlaceholderItemContentType) {
5494
+ PlaceholderItemContentType["Image"] = "Image";
5495
+ })(PlaceholderItemContentType || (PlaceholderItemContentType = {}));
5368
5496
  var ItemType;
5369
5497
  (function (ItemType) {
5370
5498
  ItemType["Image"] = "Image";
@@ -5379,14 +5507,6 @@ var ItemSourceType;
5379
5507
  ItemSourceType["ImageStorage"] = "ImageStorage";
5380
5508
  ItemSourceType["PrivateImageStorage"] = "PrivateImageStorage";
5381
5509
  })(ItemSourceType || (ItemSourceType = {}));
5382
- /** Product preview file format. */
5383
- var ProductPreviewFormat;
5384
- (function (ProductPreviewFormat) {
5385
- ProductPreviewFormat["Jpeg"] = "Jpeg";
5386
- ProductPreviewFormat["Png"] = "Png";
5387
- ProductPreviewFormat["Tiff"] = "Tiff";
5388
- ProductPreviewFormat["Pdf"] = "Pdf";
5389
- })(ProductPreviewFormat || (ProductPreviewFormat = {}));
5390
5510
  var ProductProofFormat;
5391
5511
  (function (ProductProofFormat) {
5392
5512
  ProductProofFormat["Jpeg"] = "Jpeg";
@@ -5486,5 +5606,5 @@ DesignAtomsApiModule.decorators = [
5486
5606
  * Generated bundle index. Do not edit.
5487
5607
  */
5488
5608
 
5489
- export { API_BASE_URL, ApiClientBase, ApiClientConfiguration, ApiException, BuildInfoApiClient, CreateApiClientConfiguration, DesignAtomsApiModule, DesignAtomsCompatibilityApiClient, DesignAtomsServiceApiClient, DesignAtomsViewerApiClient, DesignElementType, ItemSourceType, ItemType, ProductPatchType, ProductPreviewFormat, ProductProofFormat, ProductProofInterpolationMode };
5609
+ export { API_BASE_URL, ApiClientBase, ApiClientConfiguration, ApiException, BuildInfoApiClient, CreateApiClientConfiguration, DesignAtomsApiModule, DesignAtomsCompatibilityApiClient, DesignAtomsImagesApiClient, DesignAtomsServiceApiClient, DesignAtomsViewerApiClient, DesignElementType, ItemSourceType, ItemType, PlaceholderItemContentType, ProductPatchType, ProductPreviewFormat, ProductProofFormat, ProductProofInterpolationMode };
5490
5610
  //# sourceMappingURL=aurigma-ng-design-atoms-api-client.js.map