@aurigma/ng-design-atoms-api-client 2.33.1 → 2.34.4

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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVzaWduLWF0b21zLWFwaS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiL2hvbWUvYXVyaWdtYS9hZ2VudHMvMDMvX3dvcmsvNzMvcy9BdXJpZ21hLkRlc2lnbkF0b21zQXBpLlR5cGVTY3JpcHRBcGlDbGllbnQvQW5ndWxhci9hcGktY2xpZW50L3Byb2plY3RzL2NsaWVudC9zcmMvIiwic291cmNlcyI6WyJsaWIvZGVzaWduLWF0b21zLWFwaS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFzQixRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDNUQsT0FBTyxLQUFLLG9CQUFvQixNQUFNLDJCQUEyQixDQUFDO0FBRWxFLFdBQVc7QUFDWCxNQUFNLFVBQVUsNEJBQTRCLENBQUMsS0FBYSxFQUFFLE1BQWMsRUFBRSxTQUFpQixRQUFRO0lBQ25HLE1BQU0sT0FBTyxHQUFHLElBQUksb0JBQW9CLENBQUMsc0JBQXNCLEVBQUUsQ0FBQztJQUNsRSxPQUFPLENBQUMsTUFBTSxHQUFHLE1BQU0sQ0FBQztJQUN4QixPQUFPLENBQUMsTUFBTSxHQUFHLE1BQU0sQ0FBQztJQUN4QixPQUFPLENBQUMscUJBQXFCLENBQUMsS0FBSyxDQUFDLENBQUM7SUFDckMsT0FBTyxPQUFPLENBQUM7QUFDakIsQ0FBQztBQVFELE1BQU0sT0FBTyxvQkFBb0I7SUFDL0IsTUFBTSxDQUFDLE9BQU8sQ0FBQyxLQUFhLEVBQ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k7XG4gIGFwaUNvbmYuYXBpVXJsID0gYXBpVXJsO1xuICBhcGlDb25mLnNldEF1dGhvcml6YXRpb25Ub2tlbih0b2tlbik7XG4gIHJldHVybiBhcGlDb25mO1xufVxuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtdLFxuICBpbXBvcnRzOiBbXG4gIF0sXG4gIGV4cG9ydHM6IFtdXG59KVxuZXhwb3J0IGNsYXNzIERlc2lnbkF0b21zQXBpTW9kdWxlIHtcbiAgc3RhdGljIGZvclJvb3QodG9rZW46IHN0cmluZywgYXBpVXJsOiBzdHJpbmcsIGFwaUtleTogc3RyaW5nID0gJ0FwaUtleScpOiBNb2R1bGVXaXRoUHJvdmlkZXJzPERlc2lnbkF0b21zQXBpTW9kdWxlPiB7XG4gICAgcmV0dXJuIHtcbiAgICAgIG5nTW9kdWxlOiBEZXNpZ25BdG9tc0FwaU1vZHVsZSxcbiAgICAgIHByb3ZpZGVyczogW1xuICAgICAgICB7XG4gICAgICAgICAgcHJvdmlkZTogRGVzaWduQXRvbXNBcGlDbGllbnQuQVBJX0JBU0VfVVJMLFxuICAgICAgICAgIHVzZVZhbHVlOiBhcGlVcmxcbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIHByb3ZpZGU6IERlc2lnbkF0b21zQXBpQ2xpZW50LkFwaUNsaWVudENvbmZpZ3VyYXRpb24sXG4gICAgICAgICAgdXNlRmFjdG9yeTogQ3JlYXRlQXBpQ2xpZW50Q29uZmlndXJhdGlvbi5iaW5kKHRoaXMsIHRva2VuICwgYXBpVXJsLCBhcGlLZXkpXG4gICAgICAgIH0sXG4gICAgICBdXG4gICAgfTtcbiAgfVxufVxuIl19
35
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVzaWduLWF0b21zLWFwaS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiL2hvbWUvYXVyaWdtYS9hZ2VudHMvMDUvX3dvcmsvMzU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JpbmcsIGFwaVVybDogc3RyaW5nLCBhcGlLZXk6IHN0cmluZyA9ICdBcGlLZXknKTogTW9kdWxlV2l0aFByb3ZpZGVyczxEZXNpZ25BdG9tc0FwaU1vZHVsZT4ge1xuICAgIHJldHVybiB7XG4gICAgICBuZ01vZHVsZTogRGVzaWduQXRvbXNBcGlNb2R1bGUsXG4gICAgICBwcm92aWRlcnM6IFtcbiAgICAgICAge1xuICAgICAgICAgIHByb3ZpZGU6IERlc2lnbkF0b21zQXBpQ2xpZW50LkFQSV9CQVNFX1VSTCxcbiAgICAgICAgICB1c2VWYWx1ZTogYXBpVXJsXG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBwcm92aWRlOiBEZXNpZ25BdG9tc0FwaUNsaWVudC5BcGlDbGllbnRDb25maWd1cmF0aW9uLFxuICAgICAgICAgIHVzZUZhY3Rvcnk6IENyZWF0ZUFwaUNsaWVudENvbmZpZ3VyYXRpb24uYmluZCh0aGlzLCB0b2tlbiAsIGFwaVVybCwgYXBpS2V5KVxuICAgICAgICB9LFxuICAgICAgXVxuICAgIH07XG4gIH1cbn1cbiJdfQ==
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIvaG9tZS9hdXJpZ21hL2FnZW50cy8wMy9fd29yay83My9zL0F1cmlnbWEuRGVzaWduQXRvbXNBcGkuVHlwZVNjcmlwdEFwaUNsaWVudC9Bbmd1bGFyL2FwaS1jbGllbnQvcHJvamVjdHMvY2xpZW50L3NyYy8iLCJzb3VyY2VzIjpbInB1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLCtCQUErQixDQUFDO0FBQzlDLGNBQWMsK0JBQStCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIGNsaWVudFxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL2Rlc2lnbi1hdG9tcy1hcGkubW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2Rlc2lnbi1hdG9tcy1hcGktY2xpZW50JztcbiJdfQ==
6
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIvaG9tZS9hdXJpZ21hL2FnZW50cy8wNS9fd29yay8zNTcvcy9BdXJpZ21hLkRlc2lnbkF0b21zQXBpLlR5cGVTY3JpcHRBcGlDbGllbnQvQW5ndWxhci9hcGktY2xpZW50L3Byb2plY3RzL2NsaWVudC9zcmMvIiwic291cmNlcyI6WyJwdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYywrQkFBK0IsQ0FBQztBQUM5QyxjQUFjLCtCQUErQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBjbGllbnRcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9kZXNpZ24tYXRvbXMtYXBpLm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9kZXNpZ24tYXRvbXMtYXBpLWNsaWVudCc7XG4iXX0=
@@ -405,6 +405,69 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
405
405
  }
406
406
  return of(null);
407
407
  }
408
+ /**
409
+ * @return Success
410
+ */
411
+ getFallbackFonts(tenantId) {
412
+ let url_ = this.baseUrl + "/api/atoms/v1/tenants/{tenantId}/api/ccviewer/GetFallbackFonts";
413
+ if (tenantId === undefined || tenantId === null)
414
+ throw new Error("The parameter 'tenantId' must be defined.");
415
+ url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
416
+ url_ = url_.replace(/[?&]$/, "");
417
+ let options_ = {
418
+ observe: "response",
419
+ responseType: "blob",
420
+ headers: new HttpHeaders({
421
+ "Accept": "application/json"
422
+ })
423
+ };
424
+ return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
425
+ return this.http.request("get", url_, transformedOptions_);
426
+ })).pipe(mergeMap((response_) => {
427
+ return this.transformResult(url_, response_, (r) => this.processGetFallbackFonts(r));
428
+ })).pipe(catchError((response_) => {
429
+ if (response_ instanceof HttpResponseBase) {
430
+ try {
431
+ return this.transformResult(url_, response_, (r) => this.processGetFallbackFonts(r));
432
+ }
433
+ catch (e) {
434
+ return throwError(e);
435
+ }
436
+ }
437
+ else
438
+ return throwError(response_);
439
+ }));
440
+ }
441
+ processGetFallbackFonts(response) {
442
+ const status = response.status;
443
+ const responseBlob = response instanceof HttpResponse ? response.body :
444
+ response.error instanceof Blob ? response.error : undefined;
445
+ let _headers = {};
446
+ if (response.headers) {
447
+ for (let key of response.headers.keys()) {
448
+ _headers[key] = response.headers.get(key);
449
+ }
450
+ }
451
+ if (status === 200 || status === 206) {
452
+ const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
453
+ const fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
454
+ const fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
455
+ return of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
456
+ }
457
+ else if (status === 500) {
458
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
459
+ let result500 = null;
460
+ result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
461
+ return throwException("Internal server error", status, _responseText, _headers, result500);
462
+ }));
463
+ }
464
+ else if (status !== 200 && status !== 204) {
465
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
466
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
467
+ }));
468
+ }
469
+ return of(null);
470
+ }
408
471
  /**
409
472
  * @param body (optional)
410
473
  * @return Success
@@ -3730,6 +3793,107 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
3730
3793
  }
3731
3794
  return of(null);
3732
3795
  }
3796
+ /**
3797
+ * Loads product (design model) from resource file taken from storage
3798
+ * @param id Resource identifier
3799
+ * @param privateStorage (optional) If set to 'true' resource will be taken from private storage
3800
+ * @param privateStorageOwner (optional) Private storage owner identifier
3801
+ * @param tenantId (optional) Tenant identifier
3802
+ * @return Success
3803
+ */
3804
+ loadProductFromResource(id, privateStorage, privateStorageOwner, tenantId) {
3805
+ let url_ = this.baseUrl + "/api/atoms/v1/resources/{id}/as-design/model?";
3806
+ if (id === undefined || id === null)
3807
+ throw new Error("The parameter 'id' must be defined.");
3808
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
3809
+ if (privateStorage !== undefined && privateStorage !== null)
3810
+ url_ += "privateStorage=" + encodeURIComponent("" + privateStorage) + "&";
3811
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3812
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3813
+ if (tenantId === null)
3814
+ throw new Error("The parameter 'tenantId' cannot be null.");
3815
+ else if (tenantId !== undefined)
3816
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3817
+ url_ = url_.replace(/[?&]$/, "");
3818
+ let options_ = {
3819
+ observe: "response",
3820
+ responseType: "blob",
3821
+ headers: new HttpHeaders({
3822
+ "Accept": "application/json"
3823
+ })
3824
+ };
3825
+ return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
3826
+ return this.http.request("get", url_, transformedOptions_);
3827
+ })).pipe(mergeMap((response_) => {
3828
+ return this.transformResult(url_, response_, (r) => this.processLoadProductFromResource(r));
3829
+ })).pipe(catchError((response_) => {
3830
+ if (response_ instanceof HttpResponseBase) {
3831
+ try {
3832
+ return this.transformResult(url_, response_, (r) => this.processLoadProductFromResource(r));
3833
+ }
3834
+ catch (e) {
3835
+ return throwError(e);
3836
+ }
3837
+ }
3838
+ else
3839
+ return throwError(response_);
3840
+ }));
3841
+ }
3842
+ processLoadProductFromResource(response) {
3843
+ const status = response.status;
3844
+ const responseBlob = response instanceof HttpResponse ? response.body :
3845
+ response.error instanceof Blob ? response.error : undefined;
3846
+ let _headers = {};
3847
+ if (response.headers) {
3848
+ for (let key of response.headers.keys()) {
3849
+ _headers[key] = response.headers.get(key);
3850
+ }
3851
+ }
3852
+ if (status === 200) {
3853
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3854
+ let result200 = null;
3855
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3856
+ return of(result200);
3857
+ }));
3858
+ }
3859
+ else if (status === 404) {
3860
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3861
+ let result404 = null;
3862
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3863
+ return throwException("Not Found", status, _responseText, _headers, result404);
3864
+ }));
3865
+ }
3866
+ else if (status === 422) {
3867
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3868
+ let result422 = null;
3869
+ result422 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3870
+ return throwException("Client Error", status, _responseText, _headers, result422);
3871
+ }));
3872
+ }
3873
+ else if (status === 401) {
3874
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3875
+ return throwException("Unauthorized", status, _responseText, _headers);
3876
+ }));
3877
+ }
3878
+ else if (status === 403) {
3879
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3880
+ return throwException("Forbidden", status, _responseText, _headers);
3881
+ }));
3882
+ }
3883
+ else if (status === 500) {
3884
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3885
+ let result500 = null;
3886
+ result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3887
+ return throwException("Internal server error", status, _responseText, _headers, result500);
3888
+ }));
3889
+ }
3890
+ else if (status !== 200 && status !== 204) {
3891
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3892
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3893
+ }));
3894
+ }
3895
+ return of(null);
3896
+ }
3733
3897
  }
3734
3898
  DesignAtomsServiceApiClient.ɵprov = ɵɵdefineInjectable({ factory: function DesignAtomsServiceApiClient_Factory() { return new DesignAtomsServiceApiClient(ɵɵinject(ApiClientConfiguration), ɵɵinject(HttpClient), ɵɵinject(API_BASE_URL, 8)); }, token: DesignAtomsServiceApiClient, providedIn: "root" });
3735
3899
  DesignAtomsServiceApiClient.decorators = [
@@ -3969,6 +4133,71 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
3969
4133
  }
3970
4134
  return of(null);
3971
4135
  }
4136
+ /**
4137
+ * @param tenantId (optional) Tenant identifier
4138
+ * @return Success
4139
+ */
4140
+ getFallbackFonts(tenantId) {
4141
+ let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/GetFallbackFonts?";
4142
+ if (tenantId === null)
4143
+ throw new Error("The parameter 'tenantId' cannot be null.");
4144
+ else if (tenantId !== undefined)
4145
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
4146
+ url_ = url_.replace(/[?&]$/, "");
4147
+ let options_ = {
4148
+ observe: "response",
4149
+ responseType: "blob",
4150
+ headers: new HttpHeaders({
4151
+ "Accept": "application/json"
4152
+ })
4153
+ };
4154
+ return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
4155
+ return this.http.request("get", url_, transformedOptions_);
4156
+ })).pipe(mergeMap((response_) => {
4157
+ return this.transformResult(url_, response_, (r) => this.processGetFallbackFonts(r));
4158
+ })).pipe(catchError((response_) => {
4159
+ if (response_ instanceof HttpResponseBase) {
4160
+ try {
4161
+ return this.transformResult(url_, response_, (r) => this.processGetFallbackFonts(r));
4162
+ }
4163
+ catch (e) {
4164
+ return throwError(e);
4165
+ }
4166
+ }
4167
+ else
4168
+ return throwError(response_);
4169
+ }));
4170
+ }
4171
+ processGetFallbackFonts(response) {
4172
+ const status = response.status;
4173
+ const responseBlob = response instanceof HttpResponse ? response.body :
4174
+ response.error instanceof Blob ? response.error : undefined;
4175
+ let _headers = {};
4176
+ if (response.headers) {
4177
+ for (let key of response.headers.keys()) {
4178
+ _headers[key] = response.headers.get(key);
4179
+ }
4180
+ }
4181
+ if (status === 200 || status === 206) {
4182
+ const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
4183
+ const fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
4184
+ const fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
4185
+ return of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
4186
+ }
4187
+ else if (status === 500) {
4188
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4189
+ let result500 = null;
4190
+ result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4191
+ return throwException("Internal server error", status, _responseText, _headers, result500);
4192
+ }));
4193
+ }
4194
+ else if (status !== 200 && status !== 204) {
4195
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4196
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4197
+ }));
4198
+ }
4199
+ return of(null);
4200
+ }
3972
4201
  /**
3973
4202
  * @param tenantId (optional) Tenant identifier
3974
4203
  * @param body (optional)
@@ -5467,14 +5696,14 @@ DesignAtomsViewerApiClient.ctorParameters = () => [
5467
5696
  { type: HttpClient, decorators: [{ type: Inject, args: [HttpClient,] }] },
5468
5697
  { type: String, decorators: [{ type: Optional }, { type: Inject, args: [API_BASE_URL,] }] }
5469
5698
  ];
5470
- /** Product preview file format. */
5471
- var ProductPreviewFormat;
5472
- (function (ProductPreviewFormat) {
5473
- ProductPreviewFormat["Jpeg"] = "Jpeg";
5474
- ProductPreviewFormat["Png"] = "Png";
5475
- ProductPreviewFormat["Tiff"] = "Tiff";
5476
- ProductPreviewFormat["Pdf"] = "Pdf";
5477
- })(ProductPreviewFormat || (ProductPreviewFormat = {}));
5699
+ /** Image preview file format. */
5700
+ var ImagePreviewFormat;
5701
+ (function (ImagePreviewFormat) {
5702
+ ImagePreviewFormat["Jpeg"] = "Jpeg";
5703
+ ImagePreviewFormat["Png"] = "Png";
5704
+ ImagePreviewFormat["Tiff"] = "Tiff";
5705
+ ImagePreviewFormat["Pdf"] = "Pdf";
5706
+ })(ImagePreviewFormat || (ImagePreviewFormat = {}));
5478
5707
  var DesignElementType;
5479
5708
  (function (DesignElementType) {
5480
5709
  DesignElementType["Product"] = "Product";
@@ -5510,6 +5739,14 @@ var ItemSourceType;
5510
5739
  ItemSourceType["ImageStorage"] = "ImageStorage";
5511
5740
  ItemSourceType["PrivateImageStorage"] = "PrivateImageStorage";
5512
5741
  })(ItemSourceType || (ItemSourceType = {}));
5742
+ /** Product preview file format. */
5743
+ var ProductPreviewFormat;
5744
+ (function (ProductPreviewFormat) {
5745
+ ProductPreviewFormat["Jpeg"] = "Jpeg";
5746
+ ProductPreviewFormat["Png"] = "Png";
5747
+ ProductPreviewFormat["Tiff"] = "Tiff";
5748
+ ProductPreviewFormat["Pdf"] = "Pdf";
5749
+ })(ProductPreviewFormat || (ProductPreviewFormat = {}));
5513
5750
  var ProductProofFormat;
5514
5751
  (function (ProductProofFormat) {
5515
5752
  ProductProofFormat["Jpeg"] = "Jpeg";
@@ -5609,5 +5846,5 @@ DesignAtomsApiModule.decorators = [
5609
5846
  * Generated bundle index. Do not edit.
5610
5847
  */
5611
5848
 
5612
- export { API_BASE_URL, ApiClientBase, ApiClientConfiguration, ApiException, BuildInfoApiClient, CreateApiClientConfiguration, DesignAtomsApiModule, DesignAtomsCompatibilityApiClient, DesignAtomsImagesApiClient, DesignAtomsServiceApiClient, DesignAtomsViewerApiClient, DesignElementType, ItemSourceType, ItemType, PlaceholderItemContentType, ProductPatchType, ProductPreviewFormat, ProductProofFormat, ProductProofInterpolationMode };
5849
+ export { API_BASE_URL, ApiClientBase, ApiClientConfiguration, ApiException, BuildInfoApiClient, CreateApiClientConfiguration, DesignAtomsApiModule, DesignAtomsCompatibilityApiClient, DesignAtomsImagesApiClient, DesignAtomsServiceApiClient, DesignAtomsViewerApiClient, DesignElementType, ImagePreviewFormat, ItemSourceType, ItemType, PlaceholderItemContentType, ProductPatchType, ProductPreviewFormat, ProductProofFormat, ProductProofInterpolationMode };
5613
5850
  //# sourceMappingURL=aurigma-ng-design-atoms-api-client.js.map