@aurigma/ng-design-atoms-api-client 2.46.1 → 2.50.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.
@@ -378,7 +378,7 @@
378
378
  return _this;
379
379
  }
380
380
  /**
381
- * Gets assembly build info
381
+ * Get assembly build info.
382
382
  * @return Success
383
383
  */
384
384
  BuildInfoApiClient.prototype.headInfo = function () {
@@ -449,7 +449,7 @@
449
449
  return rxjs.of(null);
450
450
  };
451
451
  /**
452
- * Gets assembly build info
452
+ * Get assembly build info.
453
453
  * @return Success
454
454
  */
455
455
  BuildInfoApiClient.prototype.getInfo = function () {
@@ -2918,6 +2918,100 @@
2918
2918
  }
2919
2919
  return rxjs.of(null);
2920
2920
  };
2921
+ /**
2922
+ * Renders a web image preview with the specified parameters and saves rendering result as resource.
2923
+ * @param tenantId (optional) Tenant identifier
2924
+ * @param body (optional) Render model with preview parameters.
2925
+ * @return Success
2926
+ */
2927
+ DesignAtomsImagesApiClient.prototype.renderImagePreviewToResource = function (tenantId, body) {
2928
+ var _this = this;
2929
+ var url_ = this.baseUrl + "/api/atoms/v1/images/render-image-preview/to-resource?";
2930
+ if (tenantId === null)
2931
+ throw new Error("The parameter 'tenantId' cannot be null.");
2932
+ else if (tenantId !== undefined)
2933
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2934
+ url_ = url_.replace(/[?&]$/, "");
2935
+ var content_ = JSON.stringify(body);
2936
+ var options_ = {
2937
+ body: content_,
2938
+ observe: "response",
2939
+ responseType: "blob",
2940
+ headers: new i1.HttpHeaders({
2941
+ "Content-Type": "application/json",
2942
+ "Accept": "application/json"
2943
+ })
2944
+ };
2945
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
2946
+ return _this.http.request("post", url_, transformedOptions_);
2947
+ })).pipe(operators.mergeMap(function (response_) {
2948
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderImagePreviewToResource(r); });
2949
+ })).pipe(operators.catchError(function (response_) {
2950
+ if (response_ instanceof i1.HttpResponseBase) {
2951
+ try {
2952
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderImagePreviewToResource(r); });
2953
+ }
2954
+ catch (e) {
2955
+ return rxjs.throwError(e);
2956
+ }
2957
+ }
2958
+ else
2959
+ return rxjs.throwError(response_);
2960
+ }));
2961
+ };
2962
+ DesignAtomsImagesApiClient.prototype.processRenderImagePreviewToResource = function (response) {
2963
+ var e_30, _a;
2964
+ var _this = this;
2965
+ var status = response.status;
2966
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
2967
+ response.error instanceof Blob ? response.error : undefined;
2968
+ var _headers = {};
2969
+ if (response.headers) {
2970
+ try {
2971
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
2972
+ var key = _c.value;
2973
+ _headers[key] = response.headers.get(key);
2974
+ }
2975
+ }
2976
+ catch (e_30_1) { e_30 = { error: e_30_1 }; }
2977
+ finally {
2978
+ try {
2979
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2980
+ }
2981
+ finally { if (e_30) throw e_30.error; }
2982
+ }
2983
+ }
2984
+ if (status === 200) {
2985
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2986
+ var result200 = null;
2987
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2988
+ return rxjs.of(result200);
2989
+ }));
2990
+ }
2991
+ else if (status === 401) {
2992
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2993
+ return throwException("Unauthorized", status, _responseText, _headers);
2994
+ }));
2995
+ }
2996
+ else if (status === 403) {
2997
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2998
+ return throwException("Forbidden", status, _responseText, _headers);
2999
+ }));
3000
+ }
3001
+ else if (status === 500) {
3002
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3003
+ var result500 = null;
3004
+ result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3005
+ return throwException("Internal server error", status, _responseText, _headers, result500);
3006
+ }));
3007
+ }
3008
+ else if (status !== 200 && status !== 204) {
3009
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3010
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3011
+ }));
3012
+ }
3013
+ return rxjs.of(null);
3014
+ };
2921
3015
  return DesignAtomsImagesApiClient;
2922
3016
  }(ApiClientBase));
2923
3017
  DesignAtomsImagesApiClient.ɵprov = i0.ɵɵdefineInjectable({ factory: function DesignAtomsImagesApiClient_Factory() { return new DesignAtomsImagesApiClient(i0.ɵɵinject(ApiClientConfiguration), i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(API_BASE_URL, 8)); }, token: DesignAtomsImagesApiClient, providedIn: "root" });
@@ -2985,7 +3079,7 @@
2985
3079
  }));
2986
3080
  };
2987
3081
  DesignAtomsMockups3dApiClient.prototype.processGetAttributes = function (response) {
2988
- var e_30, _a;
3082
+ var e_31, _a;
2989
3083
  var _this = this;
2990
3084
  var status = response.status;
2991
3085
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2998,12 +3092,12 @@
2998
3092
  _headers[key] = response.headers.get(key);
2999
3093
  }
3000
3094
  }
3001
- catch (e_30_1) { e_30 = { error: e_30_1 }; }
3095
+ catch (e_31_1) { e_31 = { error: e_31_1 }; }
3002
3096
  finally {
3003
3097
  try {
3004
3098
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3005
3099
  }
3006
- finally { if (e_30) throw e_30.error; }
3100
+ finally { if (e_31) throw e_31.error; }
3007
3101
  }
3008
3102
  }
3009
3103
  if (status === 200) {
@@ -3096,7 +3190,7 @@
3096
3190
  }));
3097
3191
  };
3098
3192
  DesignAtomsMockups3dApiClient.prototype.processGetContentAsProtobuf = function (response) {
3099
- var e_31, _a;
3193
+ var e_32, _a;
3100
3194
  var _this = this;
3101
3195
  var status = response.status;
3102
3196
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3109,12 +3203,12 @@
3109
3203
  _headers[key] = response.headers.get(key);
3110
3204
  }
3111
3205
  }
3112
- catch (e_31_1) { e_31 = { error: e_31_1 }; }
3206
+ catch (e_32_1) { e_32 = { error: e_32_1 }; }
3113
3207
  finally {
3114
3208
  try {
3115
3209
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3116
3210
  }
3117
- finally { if (e_31) throw e_31.error; }
3211
+ finally { if (e_32) throw e_32.error; }
3118
3212
  }
3119
3213
  }
3120
3214
  if (status === 200 || status === 206) {
@@ -3206,7 +3300,7 @@
3206
3300
  }));
3207
3301
  };
3208
3302
  DesignAtomsMockups3dApiClient.prototype.processGetGeometryFile = function (response) {
3209
- var e_32, _a;
3303
+ var e_33, _a;
3210
3304
  var _this = this;
3211
3305
  var status = response.status;
3212
3306
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3219,12 +3313,12 @@
3219
3313
  _headers[key] = response.headers.get(key);
3220
3314
  }
3221
3315
  }
3222
- catch (e_32_1) { e_32 = { error: e_32_1 }; }
3316
+ catch (e_33_1) { e_33 = { error: e_33_1 }; }
3223
3317
  finally {
3224
3318
  try {
3225
3319
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3226
3320
  }
3227
- finally { if (e_32) throw e_32.error; }
3321
+ finally { if (e_33) throw e_33.error; }
3228
3322
  }
3229
3323
  }
3230
3324
  if (status === 200 || status === 206) {
@@ -3335,7 +3429,7 @@
3335
3429
  }));
3336
3430
  };
3337
3431
  DesignAtomsServiceApiClient.prototype.processConvertColors = function (response) {
3338
- var e_33, _a;
3432
+ var e_34, _a;
3339
3433
  var _this = this;
3340
3434
  var status = response.status;
3341
3435
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3348,12 +3442,12 @@
3348
3442
  _headers[key] = response.headers.get(key);
3349
3443
  }
3350
3444
  }
3351
- catch (e_33_1) { e_33 = { error: e_33_1 }; }
3445
+ catch (e_34_1) { e_34 = { error: e_34_1 }; }
3352
3446
  finally {
3353
3447
  try {
3354
3448
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3355
3449
  }
3356
- finally { if (e_33) throw e_33.error; }
3450
+ finally { if (e_34) throw e_34.error; }
3357
3451
  }
3358
3452
  }
3359
3453
  if (status === 200) {
@@ -3442,7 +3536,7 @@
3442
3536
  }));
3443
3537
  };
3444
3538
  DesignAtomsServiceApiClient.prototype.processCreateDesign = function (response) {
3445
- var e_34, _a;
3539
+ var e_35, _a;
3446
3540
  var _this = this;
3447
3541
  var status = response.status;
3448
3542
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3455,12 +3549,12 @@
3455
3549
  _headers[key] = response.headers.get(key);
3456
3550
  }
3457
3551
  }
3458
- catch (e_34_1) { e_34 = { error: e_34_1 }; }
3552
+ catch (e_35_1) { e_35 = { error: e_35_1 }; }
3459
3553
  finally {
3460
3554
  try {
3461
3555
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3462
3556
  }
3463
- finally { if (e_34) throw e_34.error; }
3557
+ finally { if (e_35) throw e_35.error; }
3464
3558
  }
3465
3559
  }
3466
3560
  if (status === 201) {
@@ -3542,7 +3636,7 @@
3542
3636
  }));
3543
3637
  };
3544
3638
  DesignAtomsServiceApiClient.prototype.processExtractBackground = function (response) {
3545
- var e_35, _a;
3639
+ var e_36, _a;
3546
3640
  var _this = this;
3547
3641
  var status = response.status;
3548
3642
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3555,12 +3649,12 @@
3555
3649
  _headers[key] = response.headers.get(key);
3556
3650
  }
3557
3651
  }
3558
- catch (e_35_1) { e_35 = { error: e_35_1 }; }
3652
+ catch (e_36_1) { e_36 = { error: e_36_1 }; }
3559
3653
  finally {
3560
3654
  try {
3561
3655
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3562
3656
  }
3563
- finally { if (e_35) throw e_35.error; }
3657
+ finally { if (e_36) throw e_36.error; }
3564
3658
  }
3565
3659
  }
3566
3660
  if (status === 200 || status === 206) {
@@ -3655,7 +3749,7 @@
3655
3749
  }));
3656
3750
  };
3657
3751
  DesignAtomsServiceApiClient.prototype.processLoadProduct = function (response) {
3658
- var e_36, _a;
3752
+ var e_37, _a;
3659
3753
  var _this = this;
3660
3754
  var status = response.status;
3661
3755
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3668,12 +3762,12 @@
3668
3762
  _headers[key] = response.headers.get(key);
3669
3763
  }
3670
3764
  }
3671
- catch (e_36_1) { e_36 = { error: e_36_1 }; }
3765
+ catch (e_37_1) { e_37 = { error: e_37_1 }; }
3672
3766
  finally {
3673
3767
  try {
3674
3768
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3675
3769
  }
3676
- finally { if (e_36) throw e_36.error; }
3770
+ finally { if (e_37) throw e_37.error; }
3677
3771
  }
3678
3772
  }
3679
3773
  if (status === 200) {
@@ -3765,7 +3859,7 @@
3765
3859
  }));
3766
3860
  };
3767
3861
  DesignAtomsServiceApiClient.prototype.processSaveProduct = function (response) {
3768
- var e_37, _a;
3862
+ var e_38, _a;
3769
3863
  var _this = this;
3770
3864
  var status = response.status;
3771
3865
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3778,12 +3872,12 @@
3778
3872
  _headers[key] = response.headers.get(key);
3779
3873
  }
3780
3874
  }
3781
- catch (e_37_1) { e_37 = { error: e_37_1 }; }
3875
+ catch (e_38_1) { e_38 = { error: e_38_1 }; }
3782
3876
  finally {
3783
3877
  try {
3784
3878
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3785
3879
  }
3786
- finally { if (e_37) throw e_37.error; }
3880
+ finally { if (e_38) throw e_38.error; }
3787
3881
  }
3788
3882
  }
3789
3883
  if (status === 200) {
@@ -3892,7 +3986,7 @@
3892
3986
  }));
3893
3987
  };
3894
3988
  DesignAtomsServiceApiClient.prototype.processPatchProduct = function (response) {
3895
- var e_38, _a;
3989
+ var e_39, _a;
3896
3990
  var _this = this;
3897
3991
  var status = response.status;
3898
3992
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3905,12 +3999,12 @@
3905
3999
  _headers[key] = response.headers.get(key);
3906
4000
  }
3907
4001
  }
3908
- catch (e_38_1) { e_38 = { error: e_38_1 }; }
4002
+ catch (e_39_1) { e_39 = { error: e_39_1 }; }
3909
4003
  finally {
3910
4004
  try {
3911
4005
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3912
4006
  }
3913
- finally { if (e_38) throw e_38.error; }
4007
+ finally { if (e_39) throw e_39.error; }
3914
4008
  }
3915
4009
  }
3916
4010
  if (status === 200) {
@@ -3949,6 +4043,110 @@
3949
4043
  }
3950
4044
  return rxjs.of(null);
3951
4045
  };
4046
+ /**
4047
+ * Returns design parameters stored in product model.
4048
+ * @param id Design identifier.
4049
+ * @param privateStorageOwner (optional) Private storage owner identifier.
4050
+ * @param tenantId (optional) Tenant identifier
4051
+ * @return Success
4052
+ */
4053
+ DesignAtomsServiceApiClient.prototype.getDesignParameters = function (id, privateStorageOwner, tenantId) {
4054
+ var _this = this;
4055
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/parameters?";
4056
+ if (id === undefined || id === null)
4057
+ throw new Error("The parameter 'id' must be defined.");
4058
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
4059
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
4060
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
4061
+ if (tenantId === null)
4062
+ throw new Error("The parameter 'tenantId' cannot be null.");
4063
+ else if (tenantId !== undefined)
4064
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
4065
+ url_ = url_.replace(/[?&]$/, "");
4066
+ var options_ = {
4067
+ observe: "response",
4068
+ responseType: "blob",
4069
+ headers: new i1.HttpHeaders({
4070
+ "Accept": "application/json"
4071
+ })
4072
+ };
4073
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
4074
+ return _this.http.request("get", url_, transformedOptions_);
4075
+ })).pipe(operators.mergeMap(function (response_) {
4076
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetDesignParameters(r); });
4077
+ })).pipe(operators.catchError(function (response_) {
4078
+ if (response_ instanceof i1.HttpResponseBase) {
4079
+ try {
4080
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetDesignParameters(r); });
4081
+ }
4082
+ catch (e) {
4083
+ return rxjs.throwError(e);
4084
+ }
4085
+ }
4086
+ else
4087
+ return rxjs.throwError(response_);
4088
+ }));
4089
+ };
4090
+ DesignAtomsServiceApiClient.prototype.processGetDesignParameters = function (response) {
4091
+ var e_40, _a;
4092
+ var _this = this;
4093
+ var status = response.status;
4094
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
4095
+ response.error instanceof Blob ? response.error : undefined;
4096
+ var _headers = {};
4097
+ if (response.headers) {
4098
+ try {
4099
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
4100
+ var key = _c.value;
4101
+ _headers[key] = response.headers.get(key);
4102
+ }
4103
+ }
4104
+ catch (e_40_1) { e_40 = { error: e_40_1 }; }
4105
+ finally {
4106
+ try {
4107
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4108
+ }
4109
+ finally { if (e_40) throw e_40.error; }
4110
+ }
4111
+ }
4112
+ if (status === 200) {
4113
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4114
+ var result200 = null;
4115
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4116
+ return rxjs.of(result200);
4117
+ }));
4118
+ }
4119
+ else if (status === 404) {
4120
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4121
+ var result404 = null;
4122
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4123
+ return throwException("Not Found", status, _responseText, _headers, result404);
4124
+ }));
4125
+ }
4126
+ else if (status === 401) {
4127
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4128
+ return throwException("Unauthorized", status, _responseText, _headers);
4129
+ }));
4130
+ }
4131
+ else if (status === 403) {
4132
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4133
+ return throwException("Forbidden", status, _responseText, _headers);
4134
+ }));
4135
+ }
4136
+ else if (status === 500) {
4137
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4138
+ var result500 = null;
4139
+ result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4140
+ return throwException("Internal server error", status, _responseText, _headers, result500);
4141
+ }));
4142
+ }
4143
+ else if (status !== 200 && status !== 204) {
4144
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4145
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4146
+ }));
4147
+ }
4148
+ return rxjs.of(null);
4149
+ };
3952
4150
  /**
3953
4151
  * Loads data schema from design file taken from storage
3954
4152
  * @param id Design identifier
@@ -3997,7 +4195,7 @@
3997
4195
  }));
3998
4196
  };
3999
4197
  DesignAtomsServiceApiClient.prototype.processLoadDataSchema = function (response) {
4000
- var e_39, _a;
4198
+ var e_41, _a;
4001
4199
  var _this = this;
4002
4200
  var status = response.status;
4003
4201
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4010,12 +4208,12 @@
4010
4208
  _headers[key] = response.headers.get(key);
4011
4209
  }
4012
4210
  }
4013
- catch (e_39_1) { e_39 = { error: e_39_1 }; }
4211
+ catch (e_41_1) { e_41 = { error: e_41_1 }; }
4014
4212
  finally {
4015
4213
  try {
4016
4214
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4017
4215
  }
4018
- finally { if (e_39) throw e_39.error; }
4216
+ finally { if (e_41) throw e_41.error; }
4019
4217
  }
4020
4218
  }
4021
4219
  if (status === 200 || status === 206) {
@@ -4110,7 +4308,7 @@
4110
4308
  }));
4111
4309
  };
4112
4310
  DesignAtomsServiceApiClient.prototype.processGetVariables = function (response) {
4113
- var e_40, _a;
4311
+ var e_42, _a;
4114
4312
  var _this = this;
4115
4313
  var status = response.status;
4116
4314
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4123,12 +4321,12 @@
4123
4321
  _headers[key] = response.headers.get(key);
4124
4322
  }
4125
4323
  }
4126
- catch (e_40_1) { e_40 = { error: e_40_1 }; }
4324
+ catch (e_42_1) { e_42 = { error: e_42_1 }; }
4127
4325
  finally {
4128
4326
  try {
4129
4327
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4130
4328
  }
4131
- finally { if (e_40) throw e_40.error; }
4329
+ finally { if (e_42) throw e_42.error; }
4132
4330
  }
4133
4331
  }
4134
4332
  if (status === 200) {
@@ -4220,7 +4418,7 @@
4220
4418
  }));
4221
4419
  };
4222
4420
  DesignAtomsServiceApiClient.prototype.processSetVariables = function (response) {
4223
- var e_41, _a;
4421
+ var e_43, _a;
4224
4422
  var _this = this;
4225
4423
  var status = response.status;
4226
4424
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4233,12 +4431,12 @@
4233
4431
  _headers[key] = response.headers.get(key);
4234
4432
  }
4235
4433
  }
4236
- catch (e_41_1) { e_41 = { error: e_41_1 }; }
4434
+ catch (e_43_1) { e_43 = { error: e_43_1 }; }
4237
4435
  finally {
4238
4436
  try {
4239
4437
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4240
4438
  }
4241
- finally { if (e_41) throw e_41.error; }
4439
+ finally { if (e_43) throw e_43.error; }
4242
4440
  }
4243
4441
  }
4244
4442
  if (status === 200) {
@@ -4332,7 +4530,7 @@
4332
4530
  }));
4333
4531
  };
4334
4532
  DesignAtomsServiceApiClient.prototype.processLoadVdpData = function (response) {
4335
- var e_42, _a;
4533
+ var e_44, _a;
4336
4534
  var _this = this;
4337
4535
  var status = response.status;
4338
4536
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4345,12 +4543,12 @@
4345
4543
  _headers[key] = response.headers.get(key);
4346
4544
  }
4347
4545
  }
4348
- catch (e_42_1) { e_42 = { error: e_42_1 }; }
4546
+ catch (e_44_1) { e_44 = { error: e_44_1 }; }
4349
4547
  finally {
4350
4548
  try {
4351
4549
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4352
4550
  }
4353
- finally { if (e_42) throw e_42.error; }
4551
+ finally { if (e_44) throw e_44.error; }
4354
4552
  }
4355
4553
  }
4356
4554
  if (status === 200) {
@@ -4449,7 +4647,7 @@
4449
4647
  }));
4450
4648
  };
4451
4649
  DesignAtomsServiceApiClient.prototype.processSaveVdpData = function (response) {
4452
- var e_43, _a;
4650
+ var e_45, _a;
4453
4651
  var _this = this;
4454
4652
  var status = response.status;
4455
4653
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4462,12 +4660,12 @@
4462
4660
  _headers[key] = response.headers.get(key);
4463
4661
  }
4464
4662
  }
4465
- catch (e_43_1) { e_43 = { error: e_43_1 }; }
4663
+ catch (e_45_1) { e_45 = { error: e_45_1 }; }
4466
4664
  finally {
4467
4665
  try {
4468
4666
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4469
4667
  }
4470
- finally { if (e_43) throw e_43.error; }
4668
+ finally { if (e_45) throw e_45.error; }
4471
4669
  }
4472
4670
  }
4473
4671
  if (status === 200) {
@@ -4552,7 +4750,7 @@
4552
4750
  }));
4553
4751
  };
4554
4752
  DesignAtomsServiceApiClient.prototype.processDeleteVdpData = function (response) {
4555
- var e_44, _a;
4753
+ var e_46, _a;
4556
4754
  var _this = this;
4557
4755
  var status = response.status;
4558
4756
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4565,12 +4763,12 @@
4565
4763
  _headers[key] = response.headers.get(key);
4566
4764
  }
4567
4765
  }
4568
- catch (e_44_1) { e_44 = { error: e_44_1 }; }
4766
+ catch (e_46_1) { e_46 = { error: e_46_1 }; }
4569
4767
  finally {
4570
4768
  try {
4571
4769
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4572
4770
  }
4573
- finally { if (e_44) throw e_44.error; }
4771
+ finally { if (e_46) throw e_46.error; }
4574
4772
  }
4575
4773
  }
4576
4774
  if (status === 200) {
@@ -4651,7 +4849,7 @@
4651
4849
  }));
4652
4850
  };
4653
4851
  DesignAtomsServiceApiClient.prototype.processFlattenItems = function (response) {
4654
- var e_45, _a;
4852
+ var e_47, _a;
4655
4853
  var _this = this;
4656
4854
  var status = response.status;
4657
4855
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4664,12 +4862,12 @@
4664
4862
  _headers[key] = response.headers.get(key);
4665
4863
  }
4666
4864
  }
4667
- catch (e_45_1) { e_45 = { error: e_45_1 }; }
4865
+ catch (e_47_1) { e_47 = { error: e_47_1 }; }
4668
4866
  finally {
4669
4867
  try {
4670
4868
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4671
4869
  }
4672
- finally { if (e_45) throw e_45.error; }
4870
+ finally { if (e_47) throw e_47.error; }
4673
4871
  }
4674
4872
  }
4675
4873
  if (status === 200) {
@@ -4758,7 +4956,7 @@
4758
4956
  }));
4759
4957
  };
4760
4958
  DesignAtomsServiceApiClient.prototype.processCreateItem = function (response) {
4761
- var e_46, _a;
4959
+ var e_48, _a;
4762
4960
  var _this = this;
4763
4961
  var status = response.status;
4764
4962
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4771,12 +4969,12 @@
4771
4969
  _headers[key] = response.headers.get(key);
4772
4970
  }
4773
4971
  }
4774
- catch (e_46_1) { e_46 = { error: e_46_1 }; }
4972
+ catch (e_48_1) { e_48 = { error: e_48_1 }; }
4775
4973
  finally {
4776
4974
  try {
4777
4975
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4778
4976
  }
4779
- finally { if (e_46) throw e_46.error; }
4977
+ finally { if (e_48) throw e_48.error; }
4780
4978
  }
4781
4979
  }
4782
4980
  if (status === 200) {
@@ -4817,6 +5015,99 @@
4817
5015
  }
4818
5016
  return rxjs.of(null);
4819
5017
  };
5018
+ /**
5019
+ * Extracts product item image.
5020
+ * @param tenantId (optional) Tenant identifier
5021
+ * @param body (optional) Extraction parameters.
5022
+ * @return Success
5023
+ */
5024
+ DesignAtomsServiceApiClient.prototype.extractItemImage = function (tenantId, body) {
5025
+ var _this = this;
5026
+ var url_ = this.baseUrl + "/api/atoms/v1/itemExtractor?";
5027
+ if (tenantId === null)
5028
+ throw new Error("The parameter 'tenantId' cannot be null.");
5029
+ else if (tenantId !== undefined)
5030
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
5031
+ url_ = url_.replace(/[?&]$/, "");
5032
+ var content_ = JSON.stringify(body);
5033
+ var options_ = {
5034
+ body: content_,
5035
+ observe: "response",
5036
+ responseType: "blob",
5037
+ headers: new i1.HttpHeaders({
5038
+ "Content-Type": "application/json",
5039
+ "Accept": "application/octet-stream"
5040
+ })
5041
+ };
5042
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
5043
+ return _this.http.request("post", url_, transformedOptions_);
5044
+ })).pipe(operators.mergeMap(function (response_) {
5045
+ return _this.transformResult(url_, response_, function (r) { return _this.processExtractItemImage(r); });
5046
+ })).pipe(operators.catchError(function (response_) {
5047
+ if (response_ instanceof i1.HttpResponseBase) {
5048
+ try {
5049
+ return _this.transformResult(url_, response_, function (r) { return _this.processExtractItemImage(r); });
5050
+ }
5051
+ catch (e) {
5052
+ return rxjs.throwError(e);
5053
+ }
5054
+ }
5055
+ else
5056
+ return rxjs.throwError(response_);
5057
+ }));
5058
+ };
5059
+ DesignAtomsServiceApiClient.prototype.processExtractItemImage = function (response) {
5060
+ var e_49, _a;
5061
+ var _this = this;
5062
+ var status = response.status;
5063
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
5064
+ response.error instanceof Blob ? response.error : undefined;
5065
+ var _headers = {};
5066
+ if (response.headers) {
5067
+ try {
5068
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
5069
+ var key = _c.value;
5070
+ _headers[key] = response.headers.get(key);
5071
+ }
5072
+ }
5073
+ catch (e_49_1) { e_49 = { error: e_49_1 }; }
5074
+ finally {
5075
+ try {
5076
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5077
+ }
5078
+ finally { if (e_49) throw e_49.error; }
5079
+ }
5080
+ }
5081
+ if (status === 200 || status === 206) {
5082
+ var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
5083
+ var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
5084
+ var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
5085
+ return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
5086
+ }
5087
+ else if (status === 401) {
5088
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
5089
+ return throwException("Unauthorized", status, _responseText, _headers);
5090
+ }));
5091
+ }
5092
+ else if (status === 403) {
5093
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
5094
+ return throwException("Forbidden", status, _responseText, _headers);
5095
+ }));
5096
+ }
5097
+ else if (status === 500) {
5098
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
5099
+ var result500 = null;
5100
+ result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
5101
+ return throwException("Internal server error", status, _responseText, _headers, result500);
5102
+ }));
5103
+ }
5104
+ else if (status !== 200 && status !== 204) {
5105
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
5106
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5107
+ }));
5108
+ }
5109
+ return rxjs.of(null);
5110
+ };
4820
5111
  /**
4821
5112
  * Creates a private design from a public design.
4822
5113
  * @param designId (optional) Public design ID.
@@ -4861,8 +5152,199 @@
4861
5152
  return rxjs.throwError(response_);
4862
5153
  }));
4863
5154
  };
4864
- DesignAtomsServiceApiClient.prototype.processCreatePrivateDesignFromDesign = function (response) {
4865
- var e_47, _a;
5155
+ DesignAtomsServiceApiClient.prototype.processCreatePrivateDesignFromDesign = function (response) {
5156
+ var e_50, _a;
5157
+ var _this = this;
5158
+ var status = response.status;
5159
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
5160
+ response.error instanceof Blob ? response.error : undefined;
5161
+ var _headers = {};
5162
+ if (response.headers) {
5163
+ try {
5164
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
5165
+ var key = _c.value;
5166
+ _headers[key] = response.headers.get(key);
5167
+ }
5168
+ }
5169
+ catch (e_50_1) { e_50 = { error: e_50_1 }; }
5170
+ finally {
5171
+ try {
5172
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5173
+ }
5174
+ finally { if (e_50) throw e_50.error; }
5175
+ }
5176
+ }
5177
+ if (status === 201) {
5178
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
5179
+ return rxjs.of(null);
5180
+ }));
5181
+ }
5182
+ else if (status === 401) {
5183
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
5184
+ return throwException("Unauthorized", status, _responseText, _headers);
5185
+ }));
5186
+ }
5187
+ else if (status === 403) {
5188
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
5189
+ return throwException("Forbidden", status, _responseText, _headers);
5190
+ }));
5191
+ }
5192
+ else if (status === 500) {
5193
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
5194
+ var result500 = null;
5195
+ result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
5196
+ return throwException("Internal server error", status, _responseText, _headers, result500);
5197
+ }));
5198
+ }
5199
+ else if (status !== 200 && status !== 204) {
5200
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
5201
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5202
+ }));
5203
+ }
5204
+ return rxjs.of(null);
5205
+ };
5206
+ /**
5207
+ * Creates a private design from a public resource.
5208
+ * @param resourceId (optional) Resource ID.
5209
+ * @param privateDesignId (optional) Private design ID.
5210
+ * @param privateStorageOwner (optional) Private storage owner ID.
5211
+ * @param tenantId (optional) Tenant identifier
5212
+ * @return Success
5213
+ */
5214
+ DesignAtomsServiceApiClient.prototype.createPrivateDesignFromResource = function (resourceId, privateDesignId, privateStorageOwner, tenantId) {
5215
+ var _this = this;
5216
+ var url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-resource?";
5217
+ if (resourceId !== undefined && resourceId !== null)
5218
+ url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
5219
+ if (privateDesignId !== undefined && privateDesignId !== null)
5220
+ url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
5221
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
5222
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
5223
+ if (tenantId === null)
5224
+ throw new Error("The parameter 'tenantId' cannot be null.");
5225
+ else if (tenantId !== undefined)
5226
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
5227
+ url_ = url_.replace(/[?&]$/, "");
5228
+ var options_ = {
5229
+ observe: "response",
5230
+ responseType: "blob",
5231
+ headers: new i1.HttpHeaders({})
5232
+ };
5233
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
5234
+ return _this.http.request("post", url_, transformedOptions_);
5235
+ })).pipe(operators.mergeMap(function (response_) {
5236
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreatePrivateDesignFromResource(r); });
5237
+ })).pipe(operators.catchError(function (response_) {
5238
+ if (response_ instanceof i1.HttpResponseBase) {
5239
+ try {
5240
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreatePrivateDesignFromResource(r); });
5241
+ }
5242
+ catch (e) {
5243
+ return rxjs.throwError(e);
5244
+ }
5245
+ }
5246
+ else
5247
+ return rxjs.throwError(response_);
5248
+ }));
5249
+ };
5250
+ DesignAtomsServiceApiClient.prototype.processCreatePrivateDesignFromResource = function (response) {
5251
+ var e_51, _a;
5252
+ var _this = this;
5253
+ var status = response.status;
5254
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
5255
+ response.error instanceof Blob ? response.error : undefined;
5256
+ var _headers = {};
5257
+ if (response.headers) {
5258
+ try {
5259
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
5260
+ var key = _c.value;
5261
+ _headers[key] = response.headers.get(key);
5262
+ }
5263
+ }
5264
+ catch (e_51_1) { e_51 = { error: e_51_1 }; }
5265
+ finally {
5266
+ try {
5267
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5268
+ }
5269
+ finally { if (e_51) throw e_51.error; }
5270
+ }
5271
+ }
5272
+ if (status === 201) {
5273
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
5274
+ return rxjs.of(null);
5275
+ }));
5276
+ }
5277
+ else if (status === 401) {
5278
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
5279
+ return throwException("Unauthorized", status, _responseText, _headers);
5280
+ }));
5281
+ }
5282
+ else if (status === 403) {
5283
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
5284
+ return throwException("Forbidden", status, _responseText, _headers);
5285
+ }));
5286
+ }
5287
+ else if (status === 500) {
5288
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
5289
+ var result500 = null;
5290
+ result500 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
5291
+ return throwException("Internal server error", status, _responseText, _headers, result500);
5292
+ }));
5293
+ }
5294
+ else if (status !== 200 && status !== 204) {
5295
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
5296
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5297
+ }));
5298
+ }
5299
+ return rxjs.of(null);
5300
+ };
5301
+ /**
5302
+ * Renders a design preview with the specified parameters.
5303
+ * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
5304
+ (default value is 'false').
5305
+ * @param tenantId (optional) Tenant identifier
5306
+ * @param body (optional) Render model with preview parameters.
5307
+ * @return Success
5308
+ */
5309
+ DesignAtomsServiceApiClient.prototype.renderDesignPreview = function (attachment, tenantId, body) {
5310
+ var _this = this;
5311
+ var url_ = this.baseUrl + "/api/atoms/v1/render-design-preview?";
5312
+ if (attachment !== undefined && attachment !== null)
5313
+ url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
5314
+ if (tenantId === null)
5315
+ throw new Error("The parameter 'tenantId' cannot be null.");
5316
+ else if (tenantId !== undefined)
5317
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
5318
+ url_ = url_.replace(/[?&]$/, "");
5319
+ var content_ = JSON.stringify(body);
5320
+ var options_ = {
5321
+ body: content_,
5322
+ observe: "response",
5323
+ responseType: "blob",
5324
+ headers: new i1.HttpHeaders({
5325
+ "Content-Type": "application/json",
5326
+ "Accept": "application/octet-stream"
5327
+ })
5328
+ };
5329
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
5330
+ return _this.http.request("post", url_, transformedOptions_);
5331
+ })).pipe(operators.mergeMap(function (response_) {
5332
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignPreview(r); });
5333
+ })).pipe(operators.catchError(function (response_) {
5334
+ if (response_ instanceof i1.HttpResponseBase) {
5335
+ try {
5336
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignPreview(r); });
5337
+ }
5338
+ catch (e) {
5339
+ return rxjs.throwError(e);
5340
+ }
5341
+ }
5342
+ else
5343
+ return rxjs.throwError(response_);
5344
+ }));
5345
+ };
5346
+ DesignAtomsServiceApiClient.prototype.processRenderDesignPreview = function (response) {
5347
+ var e_52, _a;
4866
5348
  var _this = this;
4867
5349
  var status = response.status;
4868
5350
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4875,18 +5357,19 @@
4875
5357
  _headers[key] = response.headers.get(key);
4876
5358
  }
4877
5359
  }
4878
- catch (e_47_1) { e_47 = { error: e_47_1 }; }
5360
+ catch (e_52_1) { e_52 = { error: e_52_1 }; }
4879
5361
  finally {
4880
5362
  try {
4881
5363
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4882
5364
  }
4883
- finally { if (e_47) throw e_47.error; }
5365
+ finally { if (e_52) throw e_52.error; }
4884
5366
  }
4885
5367
  }
4886
- if (status === 201) {
4887
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4888
- return rxjs.of(null);
4889
- }));
5368
+ if (status === 200 || status === 206) {
5369
+ var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
5370
+ var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
5371
+ var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
5372
+ return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
4890
5373
  }
4891
5374
  else if (status === 401) {
4892
5375
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
@@ -4913,40 +5396,37 @@
4913
5396
  return rxjs.of(null);
4914
5397
  };
4915
5398
  /**
4916
- * Creates a private design from a public resource.
4917
- * @param resourceId (optional) Resource ID.
4918
- * @param privateDesignId (optional) Private design ID.
4919
- * @param privateStorageOwner (optional) Private storage owner ID.
5399
+ * Renders a design preview with the specified parameters and saves rendering result as resource.
4920
5400
  * @param tenantId (optional) Tenant identifier
5401
+ * @param body (optional) Render model with preview parameters.
4921
5402
  * @return Success
4922
5403
  */
4923
- DesignAtomsServiceApiClient.prototype.createPrivateDesignFromResource = function (resourceId, privateDesignId, privateStorageOwner, tenantId) {
5404
+ DesignAtomsServiceApiClient.prototype.renderDesignPreviewToResource = function (tenantId, body) {
4924
5405
  var _this = this;
4925
- var url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-resource?";
4926
- if (resourceId !== undefined && resourceId !== null)
4927
- url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
4928
- if (privateDesignId !== undefined && privateDesignId !== null)
4929
- url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
4930
- if (privateStorageOwner !== undefined && privateStorageOwner !== null)
4931
- url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
5406
+ var url_ = this.baseUrl + "/api/atoms/v1/render-design-preview/to-resource?";
4932
5407
  if (tenantId === null)
4933
5408
  throw new Error("The parameter 'tenantId' cannot be null.");
4934
5409
  else if (tenantId !== undefined)
4935
5410
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
4936
5411
  url_ = url_.replace(/[?&]$/, "");
5412
+ var content_ = JSON.stringify(body);
4937
5413
  var options_ = {
5414
+ body: content_,
4938
5415
  observe: "response",
4939
5416
  responseType: "blob",
4940
- headers: new i1.HttpHeaders({})
5417
+ headers: new i1.HttpHeaders({
5418
+ "Content-Type": "application/json",
5419
+ "Accept": "application/json"
5420
+ })
4941
5421
  };
4942
5422
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
4943
5423
  return _this.http.request("post", url_, transformedOptions_);
4944
5424
  })).pipe(operators.mergeMap(function (response_) {
4945
- return _this.transformResult(url_, response_, function (r) { return _this.processCreatePrivateDesignFromResource(r); });
5425
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignPreviewToResource(r); });
4946
5426
  })).pipe(operators.catchError(function (response_) {
4947
5427
  if (response_ instanceof i1.HttpResponseBase) {
4948
5428
  try {
4949
- return _this.transformResult(url_, response_, function (r) { return _this.processCreatePrivateDesignFromResource(r); });
5429
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignPreviewToResource(r); });
4950
5430
  }
4951
5431
  catch (e) {
4952
5432
  return rxjs.throwError(e);
@@ -4956,8 +5436,8 @@
4956
5436
  return rxjs.throwError(response_);
4957
5437
  }));
4958
5438
  };
4959
- DesignAtomsServiceApiClient.prototype.processCreatePrivateDesignFromResource = function (response) {
4960
- var e_48, _a;
5439
+ DesignAtomsServiceApiClient.prototype.processRenderDesignPreviewToResource = function (response) {
5440
+ var e_53, _a;
4961
5441
  var _this = this;
4962
5442
  var status = response.status;
4963
5443
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4970,17 +5450,19 @@
4970
5450
  _headers[key] = response.headers.get(key);
4971
5451
  }
4972
5452
  }
4973
- catch (e_48_1) { e_48 = { error: e_48_1 }; }
5453
+ catch (e_53_1) { e_53 = { error: e_53_1 }; }
4974
5454
  finally {
4975
5455
  try {
4976
5456
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4977
5457
  }
4978
- finally { if (e_48) throw e_48.error; }
5458
+ finally { if (e_53) throw e_53.error; }
4979
5459
  }
4980
5460
  }
4981
- if (status === 201) {
5461
+ if (status === 200) {
4982
5462
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4983
- return rxjs.of(null);
5463
+ var result200 = null;
5464
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
5465
+ return rxjs.of(result200);
4984
5466
  }));
4985
5467
  }
4986
5468
  else if (status === 401) {
@@ -5008,16 +5490,16 @@
5008
5490
  return rxjs.of(null);
5009
5491
  };
5010
5492
  /**
5011
- * Renders a design preview with the specified parameters.
5493
+ * Renders a design proof with the specified parameters.
5012
5494
  * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
5013
5495
  (default value is 'false').
5014
5496
  * @param tenantId (optional) Tenant identifier
5015
- * @param body (optional) Render model with preview parameters.
5497
+ * @param body (optional) Render model with proof parameters.
5016
5498
  * @return Success
5017
5499
  */
5018
- DesignAtomsServiceApiClient.prototype.renderDesignPreview = function (attachment, tenantId, body) {
5500
+ DesignAtomsServiceApiClient.prototype.renderDesignProof = function (attachment, tenantId, body) {
5019
5501
  var _this = this;
5020
- var url_ = this.baseUrl + "/api/atoms/v1/render-design-preview?";
5502
+ var url_ = this.baseUrl + "/api/atoms/v1/render-design-proof?";
5021
5503
  if (attachment !== undefined && attachment !== null)
5022
5504
  url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
5023
5505
  if (tenantId === null)
@@ -5038,11 +5520,11 @@
5038
5520
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
5039
5521
  return _this.http.request("post", url_, transformedOptions_);
5040
5522
  })).pipe(operators.mergeMap(function (response_) {
5041
- return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignPreview(r); });
5523
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignProof(r); });
5042
5524
  })).pipe(operators.catchError(function (response_) {
5043
5525
  if (response_ instanceof i1.HttpResponseBase) {
5044
5526
  try {
5045
- return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignPreview(r); });
5527
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignProof(r); });
5046
5528
  }
5047
5529
  catch (e) {
5048
5530
  return rxjs.throwError(e);
@@ -5052,8 +5534,8 @@
5052
5534
  return rxjs.throwError(response_);
5053
5535
  }));
5054
5536
  };
5055
- DesignAtomsServiceApiClient.prototype.processRenderDesignPreview = function (response) {
5056
- var e_49, _a;
5537
+ DesignAtomsServiceApiClient.prototype.processRenderDesignProof = function (response) {
5538
+ var e_54, _a;
5057
5539
  var _this = this;
5058
5540
  var status = response.status;
5059
5541
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5066,12 +5548,12 @@
5066
5548
  _headers[key] = response.headers.get(key);
5067
5549
  }
5068
5550
  }
5069
- catch (e_49_1) { e_49 = { error: e_49_1 }; }
5551
+ catch (e_54_1) { e_54 = { error: e_54_1 }; }
5070
5552
  finally {
5071
5553
  try {
5072
5554
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5073
5555
  }
5074
- finally { if (e_49) throw e_49.error; }
5556
+ finally { if (e_54) throw e_54.error; }
5075
5557
  }
5076
5558
  }
5077
5559
  if (status === 200 || status === 206) {
@@ -5105,18 +5587,14 @@
5105
5587
  return rxjs.of(null);
5106
5588
  };
5107
5589
  /**
5108
- * Renders a design proof with the specified parameters.
5109
- * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
5110
- (default value is 'false').
5590
+ * Renders a design proof with the specified parameters and saves rendering result as resource.
5111
5591
  * @param tenantId (optional) Tenant identifier
5112
- * @param body (optional) Render model with proof parameters.
5592
+ * @param body (optional) Render model with preview parameters.
5113
5593
  * @return Success
5114
5594
  */
5115
- DesignAtomsServiceApiClient.prototype.renderDesignProof = function (attachment, tenantId, body) {
5595
+ DesignAtomsServiceApiClient.prototype.renderDesignProofToResource = function (tenantId, body) {
5116
5596
  var _this = this;
5117
- var url_ = this.baseUrl + "/api/atoms/v1/render-design-proof?";
5118
- if (attachment !== undefined && attachment !== null)
5119
- url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
5597
+ var url_ = this.baseUrl + "/api/atoms/v1/render-design-proof/to-resource?";
5120
5598
  if (tenantId === null)
5121
5599
  throw new Error("The parameter 'tenantId' cannot be null.");
5122
5600
  else if (tenantId !== undefined)
@@ -5129,17 +5607,17 @@
5129
5607
  responseType: "blob",
5130
5608
  headers: new i1.HttpHeaders({
5131
5609
  "Content-Type": "application/json",
5132
- "Accept": "application/octet-stream"
5610
+ "Accept": "application/json"
5133
5611
  })
5134
5612
  };
5135
5613
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
5136
5614
  return _this.http.request("post", url_, transformedOptions_);
5137
5615
  })).pipe(operators.mergeMap(function (response_) {
5138
- return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignProof(r); });
5616
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignProofToResource(r); });
5139
5617
  })).pipe(operators.catchError(function (response_) {
5140
5618
  if (response_ instanceof i1.HttpResponseBase) {
5141
5619
  try {
5142
- return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignProof(r); });
5620
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignProofToResource(r); });
5143
5621
  }
5144
5622
  catch (e) {
5145
5623
  return rxjs.throwError(e);
@@ -5149,8 +5627,8 @@
5149
5627
  return rxjs.throwError(response_);
5150
5628
  }));
5151
5629
  };
5152
- DesignAtomsServiceApiClient.prototype.processRenderDesignProof = function (response) {
5153
- var e_50, _a;
5630
+ DesignAtomsServiceApiClient.prototype.processRenderDesignProofToResource = function (response) {
5631
+ var e_55, _a;
5154
5632
  var _this = this;
5155
5633
  var status = response.status;
5156
5634
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5163,19 +5641,20 @@
5163
5641
  _headers[key] = response.headers.get(key);
5164
5642
  }
5165
5643
  }
5166
- catch (e_50_1) { e_50 = { error: e_50_1 }; }
5644
+ catch (e_55_1) { e_55 = { error: e_55_1 }; }
5167
5645
  finally {
5168
5646
  try {
5169
5647
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5170
5648
  }
5171
- finally { if (e_50) throw e_50.error; }
5649
+ finally { if (e_55) throw e_55.error; }
5172
5650
  }
5173
5651
  }
5174
- if (status === 200 || status === 206) {
5175
- var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
5176
- var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
5177
- var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
5178
- return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
5652
+ if (status === 200) {
5653
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
5654
+ var result200 = null;
5655
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
5656
+ return rxjs.of(result200);
5657
+ }));
5179
5658
  }
5180
5659
  else if (status === 401) {
5181
5660
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
@@ -5246,7 +5725,7 @@
5246
5725
  }));
5247
5726
  };
5248
5727
  DesignAtomsServiceApiClient.prototype.processRenderProduct = function (response) {
5249
- var e_51, _a;
5728
+ var e_56, _a;
5250
5729
  var _this = this;
5251
5730
  var status = response.status;
5252
5731
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5259,12 +5738,12 @@
5259
5738
  _headers[key] = response.headers.get(key);
5260
5739
  }
5261
5740
  }
5262
- catch (e_51_1) { e_51 = { error: e_51_1 }; }
5741
+ catch (e_56_1) { e_56 = { error: e_56_1 }; }
5263
5742
  finally {
5264
5743
  try {
5265
5744
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5266
5745
  }
5267
- finally { if (e_51) throw e_51.error; }
5746
+ finally { if (e_56) throw e_56.error; }
5268
5747
  }
5269
5748
  }
5270
5749
  if (status === 200 || status === 206) {
@@ -5345,7 +5824,7 @@
5345
5824
  }));
5346
5825
  };
5347
5826
  DesignAtomsServiceApiClient.prototype.processLoadProductFromResource = function (response) {
5348
- var e_52, _a;
5827
+ var e_57, _a;
5349
5828
  var _this = this;
5350
5829
  var status = response.status;
5351
5830
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5358,12 +5837,12 @@
5358
5837
  _headers[key] = response.headers.get(key);
5359
5838
  }
5360
5839
  }
5361
- catch (e_52_1) { e_52 = { error: e_52_1 }; }
5840
+ catch (e_57_1) { e_57 = { error: e_57_1 }; }
5362
5841
  finally {
5363
5842
  try {
5364
5843
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5365
5844
  }
5366
- finally { if (e_52) throw e_52.error; }
5845
+ finally { if (e_57) throw e_57.error; }
5367
5846
  }
5368
5847
  }
5369
5848
  if (status === 200) {
@@ -5474,7 +5953,7 @@
5474
5953
  }));
5475
5954
  };
5476
5955
  DesignAtomsViewerApiClient.prototype.processCssFonts = function (response) {
5477
- var e_53, _a;
5956
+ var e_58, _a;
5478
5957
  var _this = this;
5479
5958
  var status = response.status;
5480
5959
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5487,12 +5966,12 @@
5487
5966
  _headers[key] = response.headers.get(key);
5488
5967
  }
5489
5968
  }
5490
- catch (e_53_1) { e_53 = { error: e_53_1 }; }
5969
+ catch (e_58_1) { e_58 = { error: e_58_1 }; }
5491
5970
  finally {
5492
5971
  try {
5493
5972
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5494
5973
  }
5495
- finally { if (e_53) throw e_53.error; }
5974
+ finally { if (e_58) throw e_58.error; }
5496
5975
  }
5497
5976
  }
5498
5977
  if (status === 200) {
@@ -5556,7 +6035,7 @@
5556
6035
  }));
5557
6036
  };
5558
6037
  DesignAtomsViewerApiClient.prototype.processFonts = function (response) {
5559
- var e_54, _a;
6038
+ var e_59, _a;
5560
6039
  var _this = this;
5561
6040
  var status = response.status;
5562
6041
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5569,12 +6048,12 @@
5569
6048
  _headers[key] = response.headers.get(key);
5570
6049
  }
5571
6050
  }
5572
- catch (e_54_1) { e_54 = { error: e_54_1 }; }
6051
+ catch (e_59_1) { e_59 = { error: e_59_1 }; }
5573
6052
  finally {
5574
6053
  try {
5575
6054
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5576
6055
  }
5577
- finally { if (e_54) throw e_54.error; }
6056
+ finally { if (e_59) throw e_59.error; }
5578
6057
  }
5579
6058
  }
5580
6059
  if (status === 200 || status === 206) {
@@ -5645,7 +6124,7 @@
5645
6124
  }));
5646
6125
  };
5647
6126
  DesignAtomsViewerApiClient.prototype.processGetColorPreview = function (response) {
5648
- var e_55, _a;
6127
+ var e_60, _a;
5649
6128
  var _this = this;
5650
6129
  var status = response.status;
5651
6130
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5658,12 +6137,12 @@
5658
6137
  _headers[key] = response.headers.get(key);
5659
6138
  }
5660
6139
  }
5661
- catch (e_55_1) { e_55 = { error: e_55_1 }; }
6140
+ catch (e_60_1) { e_60 = { error: e_60_1 }; }
5662
6141
  finally {
5663
6142
  try {
5664
6143
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5665
6144
  }
5666
- finally { if (e_55) throw e_55.error; }
6145
+ finally { if (e_60) throw e_60.error; }
5667
6146
  }
5668
6147
  }
5669
6148
  if (status === 200) {
@@ -5728,7 +6207,7 @@
5728
6207
  }));
5729
6208
  };
5730
6209
  DesignAtomsViewerApiClient.prototype.processGetColorPreviews = function (response) {
5731
- var e_56, _a;
6210
+ var e_61, _a;
5732
6211
  var _this = this;
5733
6212
  var status = response.status;
5734
6213
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5741,12 +6220,12 @@
5741
6220
  _headers[key] = response.headers.get(key);
5742
6221
  }
5743
6222
  }
5744
- catch (e_56_1) { e_56 = { error: e_56_1 }; }
6223
+ catch (e_61_1) { e_61 = { error: e_61_1 }; }
5745
6224
  finally {
5746
6225
  try {
5747
6226
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5748
6227
  }
5749
- finally { if (e_56) throw e_56.error; }
6228
+ finally { if (e_61) throw e_61.error; }
5750
6229
  }
5751
6230
  }
5752
6231
  if (status === 200) {
@@ -5810,7 +6289,7 @@
5810
6289
  }));
5811
6290
  };
5812
6291
  DesignAtomsViewerApiClient.prototype.processGetCssFont = function (response) {
5813
- var e_57, _a;
6292
+ var e_62, _a;
5814
6293
  var _this = this;
5815
6294
  var status = response.status;
5816
6295
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5823,12 +6302,12 @@
5823
6302
  _headers[key] = response.headers.get(key);
5824
6303
  }
5825
6304
  }
5826
- catch (e_57_1) { e_57 = { error: e_57_1 }; }
6305
+ catch (e_62_1) { e_62 = { error: e_62_1 }; }
5827
6306
  finally {
5828
6307
  try {
5829
6308
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5830
6309
  }
5831
- finally { if (e_57) throw e_57.error; }
6310
+ finally { if (e_62) throw e_62.error; }
5832
6311
  }
5833
6312
  }
5834
6313
  if (status === 200 || status === 206) {
@@ -5895,7 +6374,7 @@
5895
6374
  }));
5896
6375
  };
5897
6376
  DesignAtomsViewerApiClient.prototype.processGetFallbackFonts = function (response) {
5898
- var e_58, _a;
6377
+ var e_63, _a;
5899
6378
  var _this = this;
5900
6379
  var status = response.status;
5901
6380
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5908,12 +6387,12 @@
5908
6387
  _headers[key] = response.headers.get(key);
5909
6388
  }
5910
6389
  }
5911
- catch (e_58_1) { e_58 = { error: e_58_1 }; }
6390
+ catch (e_63_1) { e_63 = { error: e_63_1 }; }
5912
6391
  finally {
5913
6392
  try {
5914
6393
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5915
6394
  }
5916
- finally { if (e_58) throw e_58.error; }
6395
+ finally { if (e_63) throw e_63.error; }
5917
6396
  }
5918
6397
  }
5919
6398
  if (status === 200 || status === 206) {
@@ -5977,7 +6456,7 @@
5977
6456
  }));
5978
6457
  };
5979
6458
  DesignAtomsViewerApiClient.prototype.processGetImageSize = function (response) {
5980
- var e_59, _a;
6459
+ var e_64, _a;
5981
6460
  var _this = this;
5982
6461
  var status = response.status;
5983
6462
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5990,12 +6469,12 @@
5990
6469
  _headers[key] = response.headers.get(key);
5991
6470
  }
5992
6471
  }
5993
- catch (e_59_1) { e_59 = { error: e_59_1 }; }
6472
+ catch (e_64_1) { e_64 = { error: e_64_1 }; }
5994
6473
  finally {
5995
6474
  try {
5996
6475
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5997
6476
  }
5998
- finally { if (e_59) throw e_59.error; }
6477
+ finally { if (e_64) throw e_64.error; }
5999
6478
  }
6000
6479
  }
6001
6480
  if (status === 200) {
@@ -6060,7 +6539,7 @@
6060
6539
  }));
6061
6540
  };
6062
6541
  DesignAtomsViewerApiClient.prototype.processGetShapeBounds = function (response) {
6063
- var e_60, _a;
6542
+ var e_65, _a;
6064
6543
  var _this = this;
6065
6544
  var status = response.status;
6066
6545
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6073,12 +6552,12 @@
6073
6552
  _headers[key] = response.headers.get(key);
6074
6553
  }
6075
6554
  }
6076
- catch (e_60_1) { e_60 = { error: e_60_1 }; }
6555
+ catch (e_65_1) { e_65 = { error: e_65_1 }; }
6077
6556
  finally {
6078
6557
  try {
6079
6558
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6080
6559
  }
6081
- finally { if (e_60) throw e_60.error; }
6560
+ finally { if (e_65) throw e_65.error; }
6082
6561
  }
6083
6562
  }
6084
6563
  if (status === 200) {
@@ -6143,7 +6622,7 @@
6143
6622
  }));
6144
6623
  };
6145
6624
  DesignAtomsViewerApiClient.prototype.processGetWatermarkItems = function (response) {
6146
- var e_61, _a;
6625
+ var e_66, _a;
6147
6626
  var _this = this;
6148
6627
  var status = response.status;
6149
6628
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6156,12 +6635,12 @@
6156
6635
  _headers[key] = response.headers.get(key);
6157
6636
  }
6158
6637
  }
6159
- catch (e_61_1) { e_61 = { error: e_61_1 }; }
6638
+ catch (e_66_1) { e_66 = { error: e_66_1 }; }
6160
6639
  finally {
6161
6640
  try {
6162
6641
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6163
6642
  }
6164
- finally { if (e_61) throw e_61.error; }
6643
+ finally { if (e_66) throw e_66.error; }
6165
6644
  }
6166
6645
  }
6167
6646
  if (status === 200) {
@@ -6276,7 +6755,7 @@
6276
6755
  }));
6277
6756
  };
6278
6757
  DesignAtomsViewerApiClient.prototype.processImg = function (response) {
6279
- var e_62, _a;
6758
+ var e_67, _a;
6280
6759
  var _this = this;
6281
6760
  var status = response.status;
6282
6761
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6289,12 +6768,12 @@
6289
6768
  _headers[key] = response.headers.get(key);
6290
6769
  }
6291
6770
  }
6292
- catch (e_62_1) { e_62 = { error: e_62_1 }; }
6771
+ catch (e_67_1) { e_67 = { error: e_67_1 }; }
6293
6772
  finally {
6294
6773
  try {
6295
6774
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6296
6775
  }
6297
- finally { if (e_62) throw e_62.error; }
6776
+ finally { if (e_67) throw e_67.error; }
6298
6777
  }
6299
6778
  }
6300
6779
  if (status === 200 || status === 206) {
@@ -6366,7 +6845,7 @@
6366
6845
  }));
6367
6846
  };
6368
6847
  DesignAtomsViewerApiClient.prototype.processGetLicense = function (response) {
6369
- var e_63, _a;
6848
+ var e_68, _a;
6370
6849
  var _this = this;
6371
6850
  var status = response.status;
6372
6851
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6379,12 +6858,12 @@
6379
6858
  _headers[key] = response.headers.get(key);
6380
6859
  }
6381
6860
  }
6382
- catch (e_63_1) { e_63 = { error: e_63_1 }; }
6861
+ catch (e_68_1) { e_68 = { error: e_68_1 }; }
6383
6862
  finally {
6384
6863
  try {
6385
6864
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6386
6865
  }
6387
- finally { if (e_63) throw e_63.error; }
6866
+ finally { if (e_68) throw e_68.error; }
6388
6867
  }
6389
6868
  }
6390
6869
  if (status === 200) {
@@ -6448,7 +6927,7 @@
6448
6927
  }));
6449
6928
  };
6450
6929
  DesignAtomsViewerApiClient.prototype.processPth = function (response) {
6451
- var e_64, _a;
6930
+ var e_69, _a;
6452
6931
  var _this = this;
6453
6932
  var status = response.status;
6454
6933
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6461,12 +6940,12 @@
6461
6940
  _headers[key] = response.headers.get(key);
6462
6941
  }
6463
6942
  }
6464
- catch (e_64_1) { e_64 = { error: e_64_1 }; }
6943
+ catch (e_69_1) { e_69 = { error: e_69_1 }; }
6465
6944
  finally {
6466
6945
  try {
6467
6946
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6468
6947
  }
6469
- finally { if (e_64) throw e_64.error; }
6948
+ finally { if (e_69) throw e_69.error; }
6470
6949
  }
6471
6950
  }
6472
6951
  if (status === 200 || status === 206) {
@@ -6541,7 +7020,7 @@
6541
7020
  }));
6542
7021
  };
6543
7022
  DesignAtomsViewerApiClient.prototype.processResource = function (response) {
6544
- var e_65, _a;
7023
+ var e_70, _a;
6545
7024
  var _this = this;
6546
7025
  var status = response.status;
6547
7026
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6554,12 +7033,12 @@
6554
7033
  _headers[key] = response.headers.get(key);
6555
7034
  }
6556
7035
  }
6557
- catch (e_65_1) { e_65 = { error: e_65_1 }; }
7036
+ catch (e_70_1) { e_70 = { error: e_70_1 }; }
6558
7037
  finally {
6559
7038
  try {
6560
7039
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6561
7040
  }
6562
- finally { if (e_65) throw e_65.error; }
7041
+ finally { if (e_70) throw e_70.error; }
6563
7042
  }
6564
7043
  }
6565
7044
  if (status === 200 || status === 206) {
@@ -6680,7 +7159,7 @@
6680
7159
  }));
6681
7160
  };
6682
7161
  DesignAtomsViewerApiClient.prototype.processSvg = function (response) {
6683
- var e_66, _a;
7162
+ var e_71, _a;
6684
7163
  var _this = this;
6685
7164
  var status = response.status;
6686
7165
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6693,12 +7172,12 @@
6693
7172
  _headers[key] = response.headers.get(key);
6694
7173
  }
6695
7174
  }
6696
- catch (e_66_1) { e_66 = { error: e_66_1 }; }
7175
+ catch (e_71_1) { e_71 = { error: e_71_1 }; }
6697
7176
  finally {
6698
7177
  try {
6699
7178
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6700
7179
  }
6701
- finally { if (e_66) throw e_66.error; }
7180
+ finally { if (e_71) throw e_71.error; }
6702
7181
  }
6703
7182
  }
6704
7183
  if (status === 200 || status === 206) {
@@ -6773,7 +7252,7 @@
6773
7252
  }));
6774
7253
  };
6775
7254
  DesignAtomsViewerApiClient.prototype.processTxt = function (response) {
6776
- var e_67, _a;
7255
+ var e_72, _a;
6777
7256
  var _this = this;
6778
7257
  var status = response.status;
6779
7258
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6786,12 +7265,12 @@
6786
7265
  _headers[key] = response.headers.get(key);
6787
7266
  }
6788
7267
  }
6789
- catch (e_67_1) { e_67 = { error: e_67_1 }; }
7268
+ catch (e_72_1) { e_72 = { error: e_72_1 }; }
6790
7269
  finally {
6791
7270
  try {
6792
7271
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6793
7272
  }
6794
- finally { if (e_67) throw e_67.error; }
7273
+ finally { if (e_72) throw e_72.error; }
6795
7274
  }
6796
7275
  }
6797
7276
  if (status === 200 || status === 206) {
@@ -6867,7 +7346,7 @@
6867
7346
  }));
6868
7347
  };
6869
7348
  DesignAtomsViewerApiClient.prototype.processUpdateArchedTextItemHandler = function (response) {
6870
- var e_68, _a;
7349
+ var e_73, _a;
6871
7350
  var _this = this;
6872
7351
  var status = response.status;
6873
7352
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6880,12 +7359,12 @@
6880
7359
  _headers[key] = response.headers.get(key);
6881
7360
  }
6882
7361
  }
6883
- catch (e_68_1) { e_68 = { error: e_68_1 }; }
7362
+ catch (e_73_1) { e_73 = { error: e_73_1 }; }
6884
7363
  finally {
6885
7364
  try {
6886
7365
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6887
7366
  }
6888
- finally { if (e_68) throw e_68.error; }
7367
+ finally { if (e_73) throw e_73.error; }
6889
7368
  }
6890
7369
  }
6891
7370
  if (status === 200) {
@@ -6950,7 +7429,7 @@
6950
7429
  }));
6951
7430
  };
6952
7431
  DesignAtomsViewerApiClient.prototype.processUpdateAutoScaledTextItemHandler = function (response) {
6953
- var e_69, _a;
7432
+ var e_74, _a;
6954
7433
  var _this = this;
6955
7434
  var status = response.status;
6956
7435
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6963,12 +7442,12 @@
6963
7442
  _headers[key] = response.headers.get(key);
6964
7443
  }
6965
7444
  }
6966
- catch (e_69_1) { e_69 = { error: e_69_1 }; }
7445
+ catch (e_74_1) { e_74 = { error: e_74_1 }; }
6967
7446
  finally {
6968
7447
  try {
6969
7448
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6970
7449
  }
6971
- finally { if (e_69) throw e_69.error; }
7450
+ finally { if (e_74) throw e_74.error; }
6972
7451
  }
6973
7452
  }
6974
7453
  if (status === 200) {
@@ -7033,7 +7512,7 @@
7033
7512
  }));
7034
7513
  };
7035
7514
  DesignAtomsViewerApiClient.prototype.processUpdateBarcodeItemHandler = function (response) {
7036
- var e_70, _a;
7515
+ var e_75, _a;
7037
7516
  var _this = this;
7038
7517
  var status = response.status;
7039
7518
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -7046,12 +7525,12 @@
7046
7525
  _headers[key] = response.headers.get(key);
7047
7526
  }
7048
7527
  }
7049
- catch (e_70_1) { e_70 = { error: e_70_1 }; }
7528
+ catch (e_75_1) { e_75 = { error: e_75_1 }; }
7050
7529
  finally {
7051
7530
  try {
7052
7531
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7053
7532
  }
7054
- finally { if (e_70) throw e_70.error; }
7533
+ finally { if (e_75) throw e_75.error; }
7055
7534
  }
7056
7535
  }
7057
7536
  if (status === 200) {
@@ -7116,7 +7595,7 @@
7116
7595
  }));
7117
7596
  };
7118
7597
  DesignAtomsViewerApiClient.prototype.processUpdateBoundedTextItemHandler = function (response) {
7119
- var e_71, _a;
7598
+ var e_76, _a;
7120
7599
  var _this = this;
7121
7600
  var status = response.status;
7122
7601
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -7129,12 +7608,12 @@
7129
7608
  _headers[key] = response.headers.get(key);
7130
7609
  }
7131
7610
  }
7132
- catch (e_71_1) { e_71 = { error: e_71_1 }; }
7611
+ catch (e_76_1) { e_76 = { error: e_76_1 }; }
7133
7612
  finally {
7134
7613
  try {
7135
7614
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7136
7615
  }
7137
- finally { if (e_71) throw e_71.error; }
7616
+ finally { if (e_76) throw e_76.error; }
7138
7617
  }
7139
7618
  }
7140
7619
  if (status === 200) {
@@ -7199,7 +7678,7 @@
7199
7678
  }));
7200
7679
  };
7201
7680
  DesignAtomsViewerApiClient.prototype.processUpdateByColorData = function (response) {
7202
- var e_72, _a;
7681
+ var e_77, _a;
7203
7682
  var _this = this;
7204
7683
  var status = response.status;
7205
7684
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -7212,12 +7691,12 @@
7212
7691
  _headers[key] = response.headers.get(key);
7213
7692
  }
7214
7693
  }
7215
- catch (e_72_1) { e_72 = { error: e_72_1 }; }
7694
+ catch (e_77_1) { e_77 = { error: e_77_1 }; }
7216
7695
  finally {
7217
7696
  try {
7218
7697
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7219
7698
  }
7220
- finally { if (e_72) throw e_72.error; }
7699
+ finally { if (e_77) throw e_77.error; }
7221
7700
  }
7222
7701
  }
7223
7702
  if (status === 200) {
@@ -7282,7 +7761,7 @@
7282
7761
  }));
7283
7762
  };
7284
7763
  DesignAtomsViewerApiClient.prototype.processUpdateByMultiCallRequest = function (response) {
7285
- var e_73, _a;
7764
+ var e_78, _a;
7286
7765
  var _this = this;
7287
7766
  var status = response.status;
7288
7767
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -7295,12 +7774,12 @@
7295
7774
  _headers[key] = response.headers.get(key);
7296
7775
  }
7297
7776
  }
7298
- catch (e_73_1) { e_73 = { error: e_73_1 }; }
7777
+ catch (e_78_1) { e_78 = { error: e_78_1 }; }
7299
7778
  finally {
7300
7779
  try {
7301
7780
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7302
7781
  }
7303
- finally { if (e_73) throw e_73.error; }
7782
+ finally { if (e_78) throw e_78.error; }
7304
7783
  }
7305
7784
  }
7306
7785
  if (status === 200) {
@@ -7365,7 +7844,7 @@
7365
7844
  }));
7366
7845
  };
7367
7846
  DesignAtomsViewerApiClient.prototype.processUpdateCurvedTextItemHandler = function (response) {
7368
- var e_74, _a;
7847
+ var e_79, _a;
7369
7848
  var _this = this;
7370
7849
  var status = response.status;
7371
7850
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -7378,12 +7857,12 @@
7378
7857
  _headers[key] = response.headers.get(key);
7379
7858
  }
7380
7859
  }
7381
- catch (e_74_1) { e_74 = { error: e_74_1 }; }
7860
+ catch (e_79_1) { e_79 = { error: e_79_1 }; }
7382
7861
  finally {
7383
7862
  try {
7384
7863
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7385
7864
  }
7386
- finally { if (e_74) throw e_74.error; }
7865
+ finally { if (e_79) throw e_79.error; }
7387
7866
  }
7388
7867
  }
7389
7868
  if (status === 200) {
@@ -7448,7 +7927,7 @@
7448
7927
  }));
7449
7928
  };
7450
7929
  DesignAtomsViewerApiClient.prototype.processUpdateImageItemHandler = function (response) {
7451
- var e_75, _a;
7930
+ var e_80, _a;
7452
7931
  var _this = this;
7453
7932
  var status = response.status;
7454
7933
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -7461,12 +7940,12 @@
7461
7940
  _headers[key] = response.headers.get(key);
7462
7941
  }
7463
7942
  }
7464
- catch (e_75_1) { e_75 = { error: e_75_1 }; }
7943
+ catch (e_80_1) { e_80 = { error: e_80_1 }; }
7465
7944
  finally {
7466
7945
  try {
7467
7946
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7468
7947
  }
7469
- finally { if (e_75) throw e_75.error; }
7948
+ finally { if (e_80) throw e_80.error; }
7470
7949
  }
7471
7950
  }
7472
7951
  if (status === 200) {
@@ -7531,7 +8010,7 @@
7531
8010
  }));
7532
8011
  };
7533
8012
  DesignAtomsViewerApiClient.prototype.processUpdatePathBoundedTextItemHandler = function (response) {
7534
- var e_76, _a;
8013
+ var e_81, _a;
7535
8014
  var _this = this;
7536
8015
  var status = response.status;
7537
8016
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -7544,12 +8023,12 @@
7544
8023
  _headers[key] = response.headers.get(key);
7545
8024
  }
7546
8025
  }
7547
- catch (e_76_1) { e_76 = { error: e_76_1 }; }
8026
+ catch (e_81_1) { e_81 = { error: e_81_1 }; }
7548
8027
  finally {
7549
8028
  try {
7550
8029
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7551
8030
  }
7552
- finally { if (e_76) throw e_76.error; }
8031
+ finally { if (e_81) throw e_81.error; }
7553
8032
  }
7554
8033
  }
7555
8034
  if (status === 200) {
@@ -7614,7 +8093,7 @@
7614
8093
  }));
7615
8094
  };
7616
8095
  DesignAtomsViewerApiClient.prototype.processUpdatePlainTextItemHandler = function (response) {
7617
- var e_77, _a;
8096
+ var e_82, _a;
7618
8097
  var _this = this;
7619
8098
  var status = response.status;
7620
8099
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -7627,12 +8106,12 @@
7627
8106
  _headers[key] = response.headers.get(key);
7628
8107
  }
7629
8108
  }
7630
- catch (e_77_1) { e_77 = { error: e_77_1 }; }
8109
+ catch (e_82_1) { e_82 = { error: e_82_1 }; }
7631
8110
  finally {
7632
8111
  try {
7633
8112
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7634
8113
  }
7635
- finally { if (e_77) throw e_77.error; }
8114
+ finally { if (e_82) throw e_82.error; }
7636
8115
  }
7637
8116
  }
7638
8117
  if (status === 200) {
@@ -7697,7 +8176,7 @@
7697
8176
  }));
7698
8177
  };
7699
8178
  DesignAtomsViewerApiClient.prototype.processUpdateShapeItemHandler = function (response) {
7700
- var e_78, _a;
8179
+ var e_83, _a;
7701
8180
  var _this = this;
7702
8181
  var status = response.status;
7703
8182
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -7710,12 +8189,12 @@
7710
8189
  _headers[key] = response.headers.get(key);
7711
8190
  }
7712
8191
  }
7713
- catch (e_78_1) { e_78 = { error: e_78_1 }; }
8192
+ catch (e_83_1) { e_83 = { error: e_83_1 }; }
7714
8193
  finally {
7715
8194
  try {
7716
8195
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7717
8196
  }
7718
- finally { if (e_78) throw e_78.error; }
8197
+ finally { if (e_83) throw e_83.error; }
7719
8198
  }
7720
8199
  }
7721
8200
  if (status === 200) {
@@ -7763,6 +8242,12 @@
7763
8242
  ImagePreviewFormat["Jpeg"] = "Jpeg";
7764
8243
  ImagePreviewFormat["Png"] = "Png";
7765
8244
  })(exports.ImagePreviewFormat || (exports.ImagePreviewFormat = {}));
8245
+ (function (ImagePreviewFitMode) {
8246
+ ImagePreviewFitMode["Fit"] = "Fit";
8247
+ ImagePreviewFitMode["Shrink"] = "Shrink";
8248
+ ImagePreviewFitMode["Resize"] = "Resize";
8249
+ ImagePreviewFitMode["Fill"] = "Fill";
8250
+ })(exports.ImagePreviewFitMode || (exports.ImagePreviewFitMode = {}));
7766
8251
  (function (DesignElementType) {
7767
8252
  DesignElementType["Product"] = "Product";
7768
8253
  DesignElementType["Design"] = "Design";