@aurigma/ng-design-atoms-api-client 2.48.1 → 2.51.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.
- package/aurigma-ng-design-atoms-api-client.metadata.json +1 -1
- package/bundles/aurigma-ng-design-atoms-api-client.umd.js +571 -196
- package/bundles/aurigma-ng-design-atoms-api-client.umd.js.map +1 -1
- package/bundles/aurigma-ng-design-atoms-api-client.umd.min.js +1 -1
- package/bundles/aurigma-ng-design-atoms-api-client.umd.min.js.map +1 -1
- package/esm2015/aurigma-ng-design-atoms-api-client.js +1 -1
- package/esm2015/lib/design-atoms-api-client.js +324 -1
- package/esm2015/lib/design-atoms-api.module.js +1 -1
- package/esm2015/public-api.js +1 -1
- package/fesm2015/aurigma-ng-design-atoms-api-client.js +323 -0
- package/fesm2015/aurigma-ng-design-atoms-api-client.js.map +1 -1
- package/lib/design-atoms-api-client.d.ts +124 -0
- package/package.json +1 -1
|
@@ -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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
4007
|
+
finally { if (e_39) throw e_39.error; }
|
|
3914
4008
|
}
|
|
3915
4009
|
}
|
|
3916
4010
|
if (status === 200) {
|
|
@@ -3994,7 +4088,7 @@
|
|
|
3994
4088
|
}));
|
|
3995
4089
|
};
|
|
3996
4090
|
DesignAtomsServiceApiClient.prototype.processGetDesignParameters = function (response) {
|
|
3997
|
-
var
|
|
4091
|
+
var e_40, _a;
|
|
3998
4092
|
var _this = this;
|
|
3999
4093
|
var status = response.status;
|
|
4000
4094
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4007,12 +4101,12 @@
|
|
|
4007
4101
|
_headers[key] = response.headers.get(key);
|
|
4008
4102
|
}
|
|
4009
4103
|
}
|
|
4010
|
-
catch (
|
|
4104
|
+
catch (e_40_1) { e_40 = { error: e_40_1 }; }
|
|
4011
4105
|
finally {
|
|
4012
4106
|
try {
|
|
4013
4107
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4014
4108
|
}
|
|
4015
|
-
finally { if (
|
|
4109
|
+
finally { if (e_40) throw e_40.error; }
|
|
4016
4110
|
}
|
|
4017
4111
|
}
|
|
4018
4112
|
if (status === 200) {
|
|
@@ -4101,7 +4195,7 @@
|
|
|
4101
4195
|
}));
|
|
4102
4196
|
};
|
|
4103
4197
|
DesignAtomsServiceApiClient.prototype.processLoadDataSchema = function (response) {
|
|
4104
|
-
var
|
|
4198
|
+
var e_41, _a;
|
|
4105
4199
|
var _this = this;
|
|
4106
4200
|
var status = response.status;
|
|
4107
4201
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4114,12 +4208,12 @@
|
|
|
4114
4208
|
_headers[key] = response.headers.get(key);
|
|
4115
4209
|
}
|
|
4116
4210
|
}
|
|
4117
|
-
catch (
|
|
4211
|
+
catch (e_41_1) { e_41 = { error: e_41_1 }; }
|
|
4118
4212
|
finally {
|
|
4119
4213
|
try {
|
|
4120
4214
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4121
4215
|
}
|
|
4122
|
-
finally { if (
|
|
4216
|
+
finally { if (e_41) throw e_41.error; }
|
|
4123
4217
|
}
|
|
4124
4218
|
}
|
|
4125
4219
|
if (status === 200 || status === 206) {
|
|
@@ -4214,7 +4308,7 @@
|
|
|
4214
4308
|
}));
|
|
4215
4309
|
};
|
|
4216
4310
|
DesignAtomsServiceApiClient.prototype.processGetVariables = function (response) {
|
|
4217
|
-
var
|
|
4311
|
+
var e_42, _a;
|
|
4218
4312
|
var _this = this;
|
|
4219
4313
|
var status = response.status;
|
|
4220
4314
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4227,12 +4321,12 @@
|
|
|
4227
4321
|
_headers[key] = response.headers.get(key);
|
|
4228
4322
|
}
|
|
4229
4323
|
}
|
|
4230
|
-
catch (
|
|
4324
|
+
catch (e_42_1) { e_42 = { error: e_42_1 }; }
|
|
4231
4325
|
finally {
|
|
4232
4326
|
try {
|
|
4233
4327
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4234
4328
|
}
|
|
4235
|
-
finally { if (
|
|
4329
|
+
finally { if (e_42) throw e_42.error; }
|
|
4236
4330
|
}
|
|
4237
4331
|
}
|
|
4238
4332
|
if (status === 200) {
|
|
@@ -4324,7 +4418,7 @@
|
|
|
4324
4418
|
}));
|
|
4325
4419
|
};
|
|
4326
4420
|
DesignAtomsServiceApiClient.prototype.processSetVariables = function (response) {
|
|
4327
|
-
var
|
|
4421
|
+
var e_43, _a;
|
|
4328
4422
|
var _this = this;
|
|
4329
4423
|
var status = response.status;
|
|
4330
4424
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4337,12 +4431,12 @@
|
|
|
4337
4431
|
_headers[key] = response.headers.get(key);
|
|
4338
4432
|
}
|
|
4339
4433
|
}
|
|
4340
|
-
catch (
|
|
4434
|
+
catch (e_43_1) { e_43 = { error: e_43_1 }; }
|
|
4341
4435
|
finally {
|
|
4342
4436
|
try {
|
|
4343
4437
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4344
4438
|
}
|
|
4345
|
-
finally { if (
|
|
4439
|
+
finally { if (e_43) throw e_43.error; }
|
|
4346
4440
|
}
|
|
4347
4441
|
}
|
|
4348
4442
|
if (status === 200) {
|
|
@@ -4436,7 +4530,7 @@
|
|
|
4436
4530
|
}));
|
|
4437
4531
|
};
|
|
4438
4532
|
DesignAtomsServiceApiClient.prototype.processLoadVdpData = function (response) {
|
|
4439
|
-
var
|
|
4533
|
+
var e_44, _a;
|
|
4440
4534
|
var _this = this;
|
|
4441
4535
|
var status = response.status;
|
|
4442
4536
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4449,12 +4543,12 @@
|
|
|
4449
4543
|
_headers[key] = response.headers.get(key);
|
|
4450
4544
|
}
|
|
4451
4545
|
}
|
|
4452
|
-
catch (
|
|
4546
|
+
catch (e_44_1) { e_44 = { error: e_44_1 }; }
|
|
4453
4547
|
finally {
|
|
4454
4548
|
try {
|
|
4455
4549
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4456
4550
|
}
|
|
4457
|
-
finally { if (
|
|
4551
|
+
finally { if (e_44) throw e_44.error; }
|
|
4458
4552
|
}
|
|
4459
4553
|
}
|
|
4460
4554
|
if (status === 200) {
|
|
@@ -4553,7 +4647,7 @@
|
|
|
4553
4647
|
}));
|
|
4554
4648
|
};
|
|
4555
4649
|
DesignAtomsServiceApiClient.prototype.processSaveVdpData = function (response) {
|
|
4556
|
-
var
|
|
4650
|
+
var e_45, _a;
|
|
4557
4651
|
var _this = this;
|
|
4558
4652
|
var status = response.status;
|
|
4559
4653
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4566,12 +4660,12 @@
|
|
|
4566
4660
|
_headers[key] = response.headers.get(key);
|
|
4567
4661
|
}
|
|
4568
4662
|
}
|
|
4569
|
-
catch (
|
|
4663
|
+
catch (e_45_1) { e_45 = { error: e_45_1 }; }
|
|
4570
4664
|
finally {
|
|
4571
4665
|
try {
|
|
4572
4666
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4573
4667
|
}
|
|
4574
|
-
finally { if (
|
|
4668
|
+
finally { if (e_45) throw e_45.error; }
|
|
4575
4669
|
}
|
|
4576
4670
|
}
|
|
4577
4671
|
if (status === 200) {
|
|
@@ -4656,7 +4750,7 @@
|
|
|
4656
4750
|
}));
|
|
4657
4751
|
};
|
|
4658
4752
|
DesignAtomsServiceApiClient.prototype.processDeleteVdpData = function (response) {
|
|
4659
|
-
var
|
|
4753
|
+
var e_46, _a;
|
|
4660
4754
|
var _this = this;
|
|
4661
4755
|
var status = response.status;
|
|
4662
4756
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4669,12 +4763,12 @@
|
|
|
4669
4763
|
_headers[key] = response.headers.get(key);
|
|
4670
4764
|
}
|
|
4671
4765
|
}
|
|
4672
|
-
catch (
|
|
4766
|
+
catch (e_46_1) { e_46 = { error: e_46_1 }; }
|
|
4673
4767
|
finally {
|
|
4674
4768
|
try {
|
|
4675
4769
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4676
4770
|
}
|
|
4677
|
-
finally { if (
|
|
4771
|
+
finally { if (e_46) throw e_46.error; }
|
|
4678
4772
|
}
|
|
4679
4773
|
}
|
|
4680
4774
|
if (status === 200) {
|
|
@@ -4755,7 +4849,7 @@
|
|
|
4755
4849
|
}));
|
|
4756
4850
|
};
|
|
4757
4851
|
DesignAtomsServiceApiClient.prototype.processFlattenItems = function (response) {
|
|
4758
|
-
var
|
|
4852
|
+
var e_47, _a;
|
|
4759
4853
|
var _this = this;
|
|
4760
4854
|
var status = response.status;
|
|
4761
4855
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4768,12 +4862,12 @@
|
|
|
4768
4862
|
_headers[key] = response.headers.get(key);
|
|
4769
4863
|
}
|
|
4770
4864
|
}
|
|
4771
|
-
catch (
|
|
4865
|
+
catch (e_47_1) { e_47 = { error: e_47_1 }; }
|
|
4772
4866
|
finally {
|
|
4773
4867
|
try {
|
|
4774
4868
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4775
4869
|
}
|
|
4776
|
-
finally { if (
|
|
4870
|
+
finally { if (e_47) throw e_47.error; }
|
|
4777
4871
|
}
|
|
4778
4872
|
}
|
|
4779
4873
|
if (status === 200) {
|
|
@@ -4862,7 +4956,7 @@
|
|
|
4862
4956
|
}));
|
|
4863
4957
|
};
|
|
4864
4958
|
DesignAtomsServiceApiClient.prototype.processCreateItem = function (response) {
|
|
4865
|
-
var
|
|
4959
|
+
var e_48, _a;
|
|
4866
4960
|
var _this = this;
|
|
4867
4961
|
var status = response.status;
|
|
4868
4962
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4875,12 +4969,12 @@
|
|
|
4875
4969
|
_headers[key] = response.headers.get(key);
|
|
4876
4970
|
}
|
|
4877
4971
|
}
|
|
4878
|
-
catch (
|
|
4972
|
+
catch (e_48_1) { e_48 = { error: e_48_1 }; }
|
|
4879
4973
|
finally {
|
|
4880
4974
|
try {
|
|
4881
4975
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4882
4976
|
}
|
|
4883
|
-
finally { if (
|
|
4977
|
+
finally { if (e_48) throw e_48.error; }
|
|
4884
4978
|
}
|
|
4885
4979
|
}
|
|
4886
4980
|
if (status === 200) {
|
|
@@ -4921,6 +5015,99 @@
|
|
|
4921
5015
|
}
|
|
4922
5016
|
return rxjs.of(null);
|
|
4923
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
|
+
};
|
|
4924
5111
|
/**
|
|
4925
5112
|
* Creates a private design from a public design.
|
|
4926
5113
|
* @param designId (optional) Public design ID.
|
|
@@ -4966,7 +5153,198 @@
|
|
|
4966
5153
|
}));
|
|
4967
5154
|
};
|
|
4968
5155
|
DesignAtomsServiceApiClient.prototype.processCreatePrivateDesignFromDesign = function (response) {
|
|
4969
|
-
var
|
|
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;
|
|
4970
5348
|
var _this = this;
|
|
4971
5349
|
var status = response.status;
|
|
4972
5350
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4979,18 +5357,19 @@
|
|
|
4979
5357
|
_headers[key] = response.headers.get(key);
|
|
4980
5358
|
}
|
|
4981
5359
|
}
|
|
4982
|
-
catch (
|
|
5360
|
+
catch (e_52_1) { e_52 = { error: e_52_1 }; }
|
|
4983
5361
|
finally {
|
|
4984
5362
|
try {
|
|
4985
5363
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4986
5364
|
}
|
|
4987
|
-
finally { if (
|
|
5365
|
+
finally { if (e_52) throw e_52.error; }
|
|
4988
5366
|
}
|
|
4989
5367
|
}
|
|
4990
|
-
if (status ===
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
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 });
|
|
4994
5373
|
}
|
|
4995
5374
|
else if (status === 401) {
|
|
4996
5375
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
@@ -5017,40 +5396,37 @@
|
|
|
5017
5396
|
return rxjs.of(null);
|
|
5018
5397
|
};
|
|
5019
5398
|
/**
|
|
5020
|
-
*
|
|
5021
|
-
* @param resourceId (optional) Resource ID.
|
|
5022
|
-
* @param privateDesignId (optional) Private design ID.
|
|
5023
|
-
* @param privateStorageOwner (optional) Private storage owner ID.
|
|
5399
|
+
* Renders a design preview with the specified parameters and saves rendering result as resource.
|
|
5024
5400
|
* @param tenantId (optional) Tenant identifier
|
|
5401
|
+
* @param body (optional) Render model with preview parameters.
|
|
5025
5402
|
* @return Success
|
|
5026
5403
|
*/
|
|
5027
|
-
DesignAtomsServiceApiClient.prototype.
|
|
5404
|
+
DesignAtomsServiceApiClient.prototype.renderDesignPreviewToResource = function (tenantId, body) {
|
|
5028
5405
|
var _this = this;
|
|
5029
|
-
var url_ = this.baseUrl + "/api/atoms/v1/
|
|
5030
|
-
if (resourceId !== undefined && resourceId !== null)
|
|
5031
|
-
url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
|
|
5032
|
-
if (privateDesignId !== undefined && privateDesignId !== null)
|
|
5033
|
-
url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
|
|
5034
|
-
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
5035
|
-
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
5406
|
+
var url_ = this.baseUrl + "/api/atoms/v1/render-design-preview/to-resource?";
|
|
5036
5407
|
if (tenantId === null)
|
|
5037
5408
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
5038
5409
|
else if (tenantId !== undefined)
|
|
5039
5410
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
5040
5411
|
url_ = url_.replace(/[?&]$/, "");
|
|
5412
|
+
var content_ = JSON.stringify(body);
|
|
5041
5413
|
var options_ = {
|
|
5414
|
+
body: content_,
|
|
5042
5415
|
observe: "response",
|
|
5043
5416
|
responseType: "blob",
|
|
5044
|
-
headers: new i1.HttpHeaders({
|
|
5417
|
+
headers: new i1.HttpHeaders({
|
|
5418
|
+
"Content-Type": "application/json",
|
|
5419
|
+
"Accept": "application/json"
|
|
5420
|
+
})
|
|
5045
5421
|
};
|
|
5046
5422
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
5047
5423
|
return _this.http.request("post", url_, transformedOptions_);
|
|
5048
5424
|
})).pipe(operators.mergeMap(function (response_) {
|
|
5049
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
5425
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignPreviewToResource(r); });
|
|
5050
5426
|
})).pipe(operators.catchError(function (response_) {
|
|
5051
5427
|
if (response_ instanceof i1.HttpResponseBase) {
|
|
5052
5428
|
try {
|
|
5053
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
5429
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignPreviewToResource(r); });
|
|
5054
5430
|
}
|
|
5055
5431
|
catch (e) {
|
|
5056
5432
|
return rxjs.throwError(e);
|
|
@@ -5060,8 +5436,8 @@
|
|
|
5060
5436
|
return rxjs.throwError(response_);
|
|
5061
5437
|
}));
|
|
5062
5438
|
};
|
|
5063
|
-
DesignAtomsServiceApiClient.prototype.
|
|
5064
|
-
var
|
|
5439
|
+
DesignAtomsServiceApiClient.prototype.processRenderDesignPreviewToResource = function (response) {
|
|
5440
|
+
var e_53, _a;
|
|
5065
5441
|
var _this = this;
|
|
5066
5442
|
var status = response.status;
|
|
5067
5443
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5074,17 +5450,19 @@
|
|
|
5074
5450
|
_headers[key] = response.headers.get(key);
|
|
5075
5451
|
}
|
|
5076
5452
|
}
|
|
5077
|
-
catch (
|
|
5453
|
+
catch (e_53_1) { e_53 = { error: e_53_1 }; }
|
|
5078
5454
|
finally {
|
|
5079
5455
|
try {
|
|
5080
5456
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5081
5457
|
}
|
|
5082
|
-
finally { if (
|
|
5458
|
+
finally { if (e_53) throw e_53.error; }
|
|
5083
5459
|
}
|
|
5084
5460
|
}
|
|
5085
|
-
if (status ===
|
|
5461
|
+
if (status === 200) {
|
|
5086
5462
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5087
|
-
|
|
5463
|
+
var result200 = null;
|
|
5464
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5465
|
+
return rxjs.of(result200);
|
|
5088
5466
|
}));
|
|
5089
5467
|
}
|
|
5090
5468
|
else if (status === 401) {
|
|
@@ -5112,16 +5490,16 @@
|
|
|
5112
5490
|
return rxjs.of(null);
|
|
5113
5491
|
};
|
|
5114
5492
|
/**
|
|
5115
|
-
* Renders a design
|
|
5493
|
+
* Renders a design proof with the specified parameters.
|
|
5116
5494
|
* @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
|
|
5117
5495
|
(default value is 'false').
|
|
5118
5496
|
* @param tenantId (optional) Tenant identifier
|
|
5119
|
-
* @param body (optional) Render model with
|
|
5497
|
+
* @param body (optional) Render model with proof parameters.
|
|
5120
5498
|
* @return Success
|
|
5121
5499
|
*/
|
|
5122
|
-
DesignAtomsServiceApiClient.prototype.
|
|
5500
|
+
DesignAtomsServiceApiClient.prototype.renderDesignProof = function (attachment, tenantId, body) {
|
|
5123
5501
|
var _this = this;
|
|
5124
|
-
var url_ = this.baseUrl + "/api/atoms/v1/render-design-
|
|
5502
|
+
var url_ = this.baseUrl + "/api/atoms/v1/render-design-proof?";
|
|
5125
5503
|
if (attachment !== undefined && attachment !== null)
|
|
5126
5504
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
5127
5505
|
if (tenantId === null)
|
|
@@ -5142,11 +5520,11 @@
|
|
|
5142
5520
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
5143
5521
|
return _this.http.request("post", url_, transformedOptions_);
|
|
5144
5522
|
})).pipe(operators.mergeMap(function (response_) {
|
|
5145
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
5523
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignProof(r); });
|
|
5146
5524
|
})).pipe(operators.catchError(function (response_) {
|
|
5147
5525
|
if (response_ instanceof i1.HttpResponseBase) {
|
|
5148
5526
|
try {
|
|
5149
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
5527
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignProof(r); });
|
|
5150
5528
|
}
|
|
5151
5529
|
catch (e) {
|
|
5152
5530
|
return rxjs.throwError(e);
|
|
@@ -5156,8 +5534,8 @@
|
|
|
5156
5534
|
return rxjs.throwError(response_);
|
|
5157
5535
|
}));
|
|
5158
5536
|
};
|
|
5159
|
-
DesignAtomsServiceApiClient.prototype.
|
|
5160
|
-
var
|
|
5537
|
+
DesignAtomsServiceApiClient.prototype.processRenderDesignProof = function (response) {
|
|
5538
|
+
var e_54, _a;
|
|
5161
5539
|
var _this = this;
|
|
5162
5540
|
var status = response.status;
|
|
5163
5541
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5170,12 +5548,12 @@
|
|
|
5170
5548
|
_headers[key] = response.headers.get(key);
|
|
5171
5549
|
}
|
|
5172
5550
|
}
|
|
5173
|
-
catch (
|
|
5551
|
+
catch (e_54_1) { e_54 = { error: e_54_1 }; }
|
|
5174
5552
|
finally {
|
|
5175
5553
|
try {
|
|
5176
5554
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5177
5555
|
}
|
|
5178
|
-
finally { if (
|
|
5556
|
+
finally { if (e_54) throw e_54.error; }
|
|
5179
5557
|
}
|
|
5180
5558
|
}
|
|
5181
5559
|
if (status === 200 || status === 206) {
|
|
@@ -5209,18 +5587,14 @@
|
|
|
5209
5587
|
return rxjs.of(null);
|
|
5210
5588
|
};
|
|
5211
5589
|
/**
|
|
5212
|
-
* Renders a design proof with the specified parameters.
|
|
5213
|
-
* @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
|
|
5214
|
-
(default value is 'false').
|
|
5590
|
+
* Renders a design proof with the specified parameters and saves rendering result as resource.
|
|
5215
5591
|
* @param tenantId (optional) Tenant identifier
|
|
5216
|
-
* @param body (optional) Render model with
|
|
5592
|
+
* @param body (optional) Render model with preview parameters.
|
|
5217
5593
|
* @return Success
|
|
5218
5594
|
*/
|
|
5219
|
-
DesignAtomsServiceApiClient.prototype.
|
|
5595
|
+
DesignAtomsServiceApiClient.prototype.renderDesignProofToResource = function (tenantId, body) {
|
|
5220
5596
|
var _this = this;
|
|
5221
|
-
var url_ = this.baseUrl + "/api/atoms/v1/render-design-proof?";
|
|
5222
|
-
if (attachment !== undefined && attachment !== null)
|
|
5223
|
-
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
5597
|
+
var url_ = this.baseUrl + "/api/atoms/v1/render-design-proof/to-resource?";
|
|
5224
5598
|
if (tenantId === null)
|
|
5225
5599
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
5226
5600
|
else if (tenantId !== undefined)
|
|
@@ -5233,17 +5607,17 @@
|
|
|
5233
5607
|
responseType: "blob",
|
|
5234
5608
|
headers: new i1.HttpHeaders({
|
|
5235
5609
|
"Content-Type": "application/json",
|
|
5236
|
-
"Accept": "application/
|
|
5610
|
+
"Accept": "application/json"
|
|
5237
5611
|
})
|
|
5238
5612
|
};
|
|
5239
5613
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
5240
5614
|
return _this.http.request("post", url_, transformedOptions_);
|
|
5241
5615
|
})).pipe(operators.mergeMap(function (response_) {
|
|
5242
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
5616
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignProofToResource(r); });
|
|
5243
5617
|
})).pipe(operators.catchError(function (response_) {
|
|
5244
5618
|
if (response_ instanceof i1.HttpResponseBase) {
|
|
5245
5619
|
try {
|
|
5246
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
5620
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignProofToResource(r); });
|
|
5247
5621
|
}
|
|
5248
5622
|
catch (e) {
|
|
5249
5623
|
return rxjs.throwError(e);
|
|
@@ -5253,8 +5627,8 @@
|
|
|
5253
5627
|
return rxjs.throwError(response_);
|
|
5254
5628
|
}));
|
|
5255
5629
|
};
|
|
5256
|
-
DesignAtomsServiceApiClient.prototype.
|
|
5257
|
-
var
|
|
5630
|
+
DesignAtomsServiceApiClient.prototype.processRenderDesignProofToResource = function (response) {
|
|
5631
|
+
var e_55, _a;
|
|
5258
5632
|
var _this = this;
|
|
5259
5633
|
var status = response.status;
|
|
5260
5634
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5267,19 +5641,20 @@
|
|
|
5267
5641
|
_headers[key] = response.headers.get(key);
|
|
5268
5642
|
}
|
|
5269
5643
|
}
|
|
5270
|
-
catch (
|
|
5644
|
+
catch (e_55_1) { e_55 = { error: e_55_1 }; }
|
|
5271
5645
|
finally {
|
|
5272
5646
|
try {
|
|
5273
5647
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5274
5648
|
}
|
|
5275
|
-
finally { if (
|
|
5649
|
+
finally { if (e_55) throw e_55.error; }
|
|
5276
5650
|
}
|
|
5277
5651
|
}
|
|
5278
|
-
if (status === 200
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
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
|
+
}));
|
|
5283
5658
|
}
|
|
5284
5659
|
else if (status === 401) {
|
|
5285
5660
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
@@ -5350,7 +5725,7 @@
|
|
|
5350
5725
|
}));
|
|
5351
5726
|
};
|
|
5352
5727
|
DesignAtomsServiceApiClient.prototype.processRenderProduct = function (response) {
|
|
5353
|
-
var
|
|
5728
|
+
var e_56, _a;
|
|
5354
5729
|
var _this = this;
|
|
5355
5730
|
var status = response.status;
|
|
5356
5731
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5363,12 +5738,12 @@
|
|
|
5363
5738
|
_headers[key] = response.headers.get(key);
|
|
5364
5739
|
}
|
|
5365
5740
|
}
|
|
5366
|
-
catch (
|
|
5741
|
+
catch (e_56_1) { e_56 = { error: e_56_1 }; }
|
|
5367
5742
|
finally {
|
|
5368
5743
|
try {
|
|
5369
5744
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5370
5745
|
}
|
|
5371
|
-
finally { if (
|
|
5746
|
+
finally { if (e_56) throw e_56.error; }
|
|
5372
5747
|
}
|
|
5373
5748
|
}
|
|
5374
5749
|
if (status === 200 || status === 206) {
|
|
@@ -5449,7 +5824,7 @@
|
|
|
5449
5824
|
}));
|
|
5450
5825
|
};
|
|
5451
5826
|
DesignAtomsServiceApiClient.prototype.processLoadProductFromResource = function (response) {
|
|
5452
|
-
var
|
|
5827
|
+
var e_57, _a;
|
|
5453
5828
|
var _this = this;
|
|
5454
5829
|
var status = response.status;
|
|
5455
5830
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5462,12 +5837,12 @@
|
|
|
5462
5837
|
_headers[key] = response.headers.get(key);
|
|
5463
5838
|
}
|
|
5464
5839
|
}
|
|
5465
|
-
catch (
|
|
5840
|
+
catch (e_57_1) { e_57 = { error: e_57_1 }; }
|
|
5466
5841
|
finally {
|
|
5467
5842
|
try {
|
|
5468
5843
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5469
5844
|
}
|
|
5470
|
-
finally { if (
|
|
5845
|
+
finally { if (e_57) throw e_57.error; }
|
|
5471
5846
|
}
|
|
5472
5847
|
}
|
|
5473
5848
|
if (status === 200) {
|
|
@@ -5578,7 +5953,7 @@
|
|
|
5578
5953
|
}));
|
|
5579
5954
|
};
|
|
5580
5955
|
DesignAtomsViewerApiClient.prototype.processCssFonts = function (response) {
|
|
5581
|
-
var
|
|
5956
|
+
var e_58, _a;
|
|
5582
5957
|
var _this = this;
|
|
5583
5958
|
var status = response.status;
|
|
5584
5959
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5591,12 +5966,12 @@
|
|
|
5591
5966
|
_headers[key] = response.headers.get(key);
|
|
5592
5967
|
}
|
|
5593
5968
|
}
|
|
5594
|
-
catch (
|
|
5969
|
+
catch (e_58_1) { e_58 = { error: e_58_1 }; }
|
|
5595
5970
|
finally {
|
|
5596
5971
|
try {
|
|
5597
5972
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5598
5973
|
}
|
|
5599
|
-
finally { if (
|
|
5974
|
+
finally { if (e_58) throw e_58.error; }
|
|
5600
5975
|
}
|
|
5601
5976
|
}
|
|
5602
5977
|
if (status === 200) {
|
|
@@ -5660,7 +6035,7 @@
|
|
|
5660
6035
|
}));
|
|
5661
6036
|
};
|
|
5662
6037
|
DesignAtomsViewerApiClient.prototype.processFonts = function (response) {
|
|
5663
|
-
var
|
|
6038
|
+
var e_59, _a;
|
|
5664
6039
|
var _this = this;
|
|
5665
6040
|
var status = response.status;
|
|
5666
6041
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5673,12 +6048,12 @@
|
|
|
5673
6048
|
_headers[key] = response.headers.get(key);
|
|
5674
6049
|
}
|
|
5675
6050
|
}
|
|
5676
|
-
catch (
|
|
6051
|
+
catch (e_59_1) { e_59 = { error: e_59_1 }; }
|
|
5677
6052
|
finally {
|
|
5678
6053
|
try {
|
|
5679
6054
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5680
6055
|
}
|
|
5681
|
-
finally { if (
|
|
6056
|
+
finally { if (e_59) throw e_59.error; }
|
|
5682
6057
|
}
|
|
5683
6058
|
}
|
|
5684
6059
|
if (status === 200 || status === 206) {
|
|
@@ -5749,7 +6124,7 @@
|
|
|
5749
6124
|
}));
|
|
5750
6125
|
};
|
|
5751
6126
|
DesignAtomsViewerApiClient.prototype.processGetColorPreview = function (response) {
|
|
5752
|
-
var
|
|
6127
|
+
var e_60, _a;
|
|
5753
6128
|
var _this = this;
|
|
5754
6129
|
var status = response.status;
|
|
5755
6130
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5762,12 +6137,12 @@
|
|
|
5762
6137
|
_headers[key] = response.headers.get(key);
|
|
5763
6138
|
}
|
|
5764
6139
|
}
|
|
5765
|
-
catch (
|
|
6140
|
+
catch (e_60_1) { e_60 = { error: e_60_1 }; }
|
|
5766
6141
|
finally {
|
|
5767
6142
|
try {
|
|
5768
6143
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5769
6144
|
}
|
|
5770
|
-
finally { if (
|
|
6145
|
+
finally { if (e_60) throw e_60.error; }
|
|
5771
6146
|
}
|
|
5772
6147
|
}
|
|
5773
6148
|
if (status === 200) {
|
|
@@ -5832,7 +6207,7 @@
|
|
|
5832
6207
|
}));
|
|
5833
6208
|
};
|
|
5834
6209
|
DesignAtomsViewerApiClient.prototype.processGetColorPreviews = function (response) {
|
|
5835
|
-
var
|
|
6210
|
+
var e_61, _a;
|
|
5836
6211
|
var _this = this;
|
|
5837
6212
|
var status = response.status;
|
|
5838
6213
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5845,12 +6220,12 @@
|
|
|
5845
6220
|
_headers[key] = response.headers.get(key);
|
|
5846
6221
|
}
|
|
5847
6222
|
}
|
|
5848
|
-
catch (
|
|
6223
|
+
catch (e_61_1) { e_61 = { error: e_61_1 }; }
|
|
5849
6224
|
finally {
|
|
5850
6225
|
try {
|
|
5851
6226
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5852
6227
|
}
|
|
5853
|
-
finally { if (
|
|
6228
|
+
finally { if (e_61) throw e_61.error; }
|
|
5854
6229
|
}
|
|
5855
6230
|
}
|
|
5856
6231
|
if (status === 200) {
|
|
@@ -5914,7 +6289,7 @@
|
|
|
5914
6289
|
}));
|
|
5915
6290
|
};
|
|
5916
6291
|
DesignAtomsViewerApiClient.prototype.processGetCssFont = function (response) {
|
|
5917
|
-
var
|
|
6292
|
+
var e_62, _a;
|
|
5918
6293
|
var _this = this;
|
|
5919
6294
|
var status = response.status;
|
|
5920
6295
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5927,12 +6302,12 @@
|
|
|
5927
6302
|
_headers[key] = response.headers.get(key);
|
|
5928
6303
|
}
|
|
5929
6304
|
}
|
|
5930
|
-
catch (
|
|
6305
|
+
catch (e_62_1) { e_62 = { error: e_62_1 }; }
|
|
5931
6306
|
finally {
|
|
5932
6307
|
try {
|
|
5933
6308
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5934
6309
|
}
|
|
5935
|
-
finally { if (
|
|
6310
|
+
finally { if (e_62) throw e_62.error; }
|
|
5936
6311
|
}
|
|
5937
6312
|
}
|
|
5938
6313
|
if (status === 200 || status === 206) {
|
|
@@ -5999,7 +6374,7 @@
|
|
|
5999
6374
|
}));
|
|
6000
6375
|
};
|
|
6001
6376
|
DesignAtomsViewerApiClient.prototype.processGetFallbackFonts = function (response) {
|
|
6002
|
-
var
|
|
6377
|
+
var e_63, _a;
|
|
6003
6378
|
var _this = this;
|
|
6004
6379
|
var status = response.status;
|
|
6005
6380
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6012,12 +6387,12 @@
|
|
|
6012
6387
|
_headers[key] = response.headers.get(key);
|
|
6013
6388
|
}
|
|
6014
6389
|
}
|
|
6015
|
-
catch (
|
|
6390
|
+
catch (e_63_1) { e_63 = { error: e_63_1 }; }
|
|
6016
6391
|
finally {
|
|
6017
6392
|
try {
|
|
6018
6393
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6019
6394
|
}
|
|
6020
|
-
finally { if (
|
|
6395
|
+
finally { if (e_63) throw e_63.error; }
|
|
6021
6396
|
}
|
|
6022
6397
|
}
|
|
6023
6398
|
if (status === 200 || status === 206) {
|
|
@@ -6081,7 +6456,7 @@
|
|
|
6081
6456
|
}));
|
|
6082
6457
|
};
|
|
6083
6458
|
DesignAtomsViewerApiClient.prototype.processGetImageSize = function (response) {
|
|
6084
|
-
var
|
|
6459
|
+
var e_64, _a;
|
|
6085
6460
|
var _this = this;
|
|
6086
6461
|
var status = response.status;
|
|
6087
6462
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6094,12 +6469,12 @@
|
|
|
6094
6469
|
_headers[key] = response.headers.get(key);
|
|
6095
6470
|
}
|
|
6096
6471
|
}
|
|
6097
|
-
catch (
|
|
6472
|
+
catch (e_64_1) { e_64 = { error: e_64_1 }; }
|
|
6098
6473
|
finally {
|
|
6099
6474
|
try {
|
|
6100
6475
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6101
6476
|
}
|
|
6102
|
-
finally { if (
|
|
6477
|
+
finally { if (e_64) throw e_64.error; }
|
|
6103
6478
|
}
|
|
6104
6479
|
}
|
|
6105
6480
|
if (status === 200) {
|
|
@@ -6164,7 +6539,7 @@
|
|
|
6164
6539
|
}));
|
|
6165
6540
|
};
|
|
6166
6541
|
DesignAtomsViewerApiClient.prototype.processGetShapeBounds = function (response) {
|
|
6167
|
-
var
|
|
6542
|
+
var e_65, _a;
|
|
6168
6543
|
var _this = this;
|
|
6169
6544
|
var status = response.status;
|
|
6170
6545
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6177,12 +6552,12 @@
|
|
|
6177
6552
|
_headers[key] = response.headers.get(key);
|
|
6178
6553
|
}
|
|
6179
6554
|
}
|
|
6180
|
-
catch (
|
|
6555
|
+
catch (e_65_1) { e_65 = { error: e_65_1 }; }
|
|
6181
6556
|
finally {
|
|
6182
6557
|
try {
|
|
6183
6558
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6184
6559
|
}
|
|
6185
|
-
finally { if (
|
|
6560
|
+
finally { if (e_65) throw e_65.error; }
|
|
6186
6561
|
}
|
|
6187
6562
|
}
|
|
6188
6563
|
if (status === 200) {
|
|
@@ -6247,7 +6622,7 @@
|
|
|
6247
6622
|
}));
|
|
6248
6623
|
};
|
|
6249
6624
|
DesignAtomsViewerApiClient.prototype.processGetWatermarkItems = function (response) {
|
|
6250
|
-
var
|
|
6625
|
+
var e_66, _a;
|
|
6251
6626
|
var _this = this;
|
|
6252
6627
|
var status = response.status;
|
|
6253
6628
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6260,12 +6635,12 @@
|
|
|
6260
6635
|
_headers[key] = response.headers.get(key);
|
|
6261
6636
|
}
|
|
6262
6637
|
}
|
|
6263
|
-
catch (
|
|
6638
|
+
catch (e_66_1) { e_66 = { error: e_66_1 }; }
|
|
6264
6639
|
finally {
|
|
6265
6640
|
try {
|
|
6266
6641
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6267
6642
|
}
|
|
6268
|
-
finally { if (
|
|
6643
|
+
finally { if (e_66) throw e_66.error; }
|
|
6269
6644
|
}
|
|
6270
6645
|
}
|
|
6271
6646
|
if (status === 200) {
|
|
@@ -6380,7 +6755,7 @@
|
|
|
6380
6755
|
}));
|
|
6381
6756
|
};
|
|
6382
6757
|
DesignAtomsViewerApiClient.prototype.processImg = function (response) {
|
|
6383
|
-
var
|
|
6758
|
+
var e_67, _a;
|
|
6384
6759
|
var _this = this;
|
|
6385
6760
|
var status = response.status;
|
|
6386
6761
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6393,12 +6768,12 @@
|
|
|
6393
6768
|
_headers[key] = response.headers.get(key);
|
|
6394
6769
|
}
|
|
6395
6770
|
}
|
|
6396
|
-
catch (
|
|
6771
|
+
catch (e_67_1) { e_67 = { error: e_67_1 }; }
|
|
6397
6772
|
finally {
|
|
6398
6773
|
try {
|
|
6399
6774
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6400
6775
|
}
|
|
6401
|
-
finally { if (
|
|
6776
|
+
finally { if (e_67) throw e_67.error; }
|
|
6402
6777
|
}
|
|
6403
6778
|
}
|
|
6404
6779
|
if (status === 200 || status === 206) {
|
|
@@ -6470,7 +6845,7 @@
|
|
|
6470
6845
|
}));
|
|
6471
6846
|
};
|
|
6472
6847
|
DesignAtomsViewerApiClient.prototype.processGetLicense = function (response) {
|
|
6473
|
-
var
|
|
6848
|
+
var e_68, _a;
|
|
6474
6849
|
var _this = this;
|
|
6475
6850
|
var status = response.status;
|
|
6476
6851
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6483,12 +6858,12 @@
|
|
|
6483
6858
|
_headers[key] = response.headers.get(key);
|
|
6484
6859
|
}
|
|
6485
6860
|
}
|
|
6486
|
-
catch (
|
|
6861
|
+
catch (e_68_1) { e_68 = { error: e_68_1 }; }
|
|
6487
6862
|
finally {
|
|
6488
6863
|
try {
|
|
6489
6864
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6490
6865
|
}
|
|
6491
|
-
finally { if (
|
|
6866
|
+
finally { if (e_68) throw e_68.error; }
|
|
6492
6867
|
}
|
|
6493
6868
|
}
|
|
6494
6869
|
if (status === 200) {
|
|
@@ -6552,7 +6927,7 @@
|
|
|
6552
6927
|
}));
|
|
6553
6928
|
};
|
|
6554
6929
|
DesignAtomsViewerApiClient.prototype.processPth = function (response) {
|
|
6555
|
-
var
|
|
6930
|
+
var e_69, _a;
|
|
6556
6931
|
var _this = this;
|
|
6557
6932
|
var status = response.status;
|
|
6558
6933
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6565,12 +6940,12 @@
|
|
|
6565
6940
|
_headers[key] = response.headers.get(key);
|
|
6566
6941
|
}
|
|
6567
6942
|
}
|
|
6568
|
-
catch (
|
|
6943
|
+
catch (e_69_1) { e_69 = { error: e_69_1 }; }
|
|
6569
6944
|
finally {
|
|
6570
6945
|
try {
|
|
6571
6946
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6572
6947
|
}
|
|
6573
|
-
finally { if (
|
|
6948
|
+
finally { if (e_69) throw e_69.error; }
|
|
6574
6949
|
}
|
|
6575
6950
|
}
|
|
6576
6951
|
if (status === 200 || status === 206) {
|
|
@@ -6645,7 +7020,7 @@
|
|
|
6645
7020
|
}));
|
|
6646
7021
|
};
|
|
6647
7022
|
DesignAtomsViewerApiClient.prototype.processResource = function (response) {
|
|
6648
|
-
var
|
|
7023
|
+
var e_70, _a;
|
|
6649
7024
|
var _this = this;
|
|
6650
7025
|
var status = response.status;
|
|
6651
7026
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6658,12 +7033,12 @@
|
|
|
6658
7033
|
_headers[key] = response.headers.get(key);
|
|
6659
7034
|
}
|
|
6660
7035
|
}
|
|
6661
|
-
catch (
|
|
7036
|
+
catch (e_70_1) { e_70 = { error: e_70_1 }; }
|
|
6662
7037
|
finally {
|
|
6663
7038
|
try {
|
|
6664
7039
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6665
7040
|
}
|
|
6666
|
-
finally { if (
|
|
7041
|
+
finally { if (e_70) throw e_70.error; }
|
|
6667
7042
|
}
|
|
6668
7043
|
}
|
|
6669
7044
|
if (status === 200 || status === 206) {
|
|
@@ -6784,7 +7159,7 @@
|
|
|
6784
7159
|
}));
|
|
6785
7160
|
};
|
|
6786
7161
|
DesignAtomsViewerApiClient.prototype.processSvg = function (response) {
|
|
6787
|
-
var
|
|
7162
|
+
var e_71, _a;
|
|
6788
7163
|
var _this = this;
|
|
6789
7164
|
var status = response.status;
|
|
6790
7165
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6797,12 +7172,12 @@
|
|
|
6797
7172
|
_headers[key] = response.headers.get(key);
|
|
6798
7173
|
}
|
|
6799
7174
|
}
|
|
6800
|
-
catch (
|
|
7175
|
+
catch (e_71_1) { e_71 = { error: e_71_1 }; }
|
|
6801
7176
|
finally {
|
|
6802
7177
|
try {
|
|
6803
7178
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6804
7179
|
}
|
|
6805
|
-
finally { if (
|
|
7180
|
+
finally { if (e_71) throw e_71.error; }
|
|
6806
7181
|
}
|
|
6807
7182
|
}
|
|
6808
7183
|
if (status === 200 || status === 206) {
|
|
@@ -6877,7 +7252,7 @@
|
|
|
6877
7252
|
}));
|
|
6878
7253
|
};
|
|
6879
7254
|
DesignAtomsViewerApiClient.prototype.processTxt = function (response) {
|
|
6880
|
-
var
|
|
7255
|
+
var e_72, _a;
|
|
6881
7256
|
var _this = this;
|
|
6882
7257
|
var status = response.status;
|
|
6883
7258
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6890,12 +7265,12 @@
|
|
|
6890
7265
|
_headers[key] = response.headers.get(key);
|
|
6891
7266
|
}
|
|
6892
7267
|
}
|
|
6893
|
-
catch (
|
|
7268
|
+
catch (e_72_1) { e_72 = { error: e_72_1 }; }
|
|
6894
7269
|
finally {
|
|
6895
7270
|
try {
|
|
6896
7271
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6897
7272
|
}
|
|
6898
|
-
finally { if (
|
|
7273
|
+
finally { if (e_72) throw e_72.error; }
|
|
6899
7274
|
}
|
|
6900
7275
|
}
|
|
6901
7276
|
if (status === 200 || status === 206) {
|
|
@@ -6971,7 +7346,7 @@
|
|
|
6971
7346
|
}));
|
|
6972
7347
|
};
|
|
6973
7348
|
DesignAtomsViewerApiClient.prototype.processUpdateArchedTextItemHandler = function (response) {
|
|
6974
|
-
var
|
|
7349
|
+
var e_73, _a;
|
|
6975
7350
|
var _this = this;
|
|
6976
7351
|
var status = response.status;
|
|
6977
7352
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6984,12 +7359,12 @@
|
|
|
6984
7359
|
_headers[key] = response.headers.get(key);
|
|
6985
7360
|
}
|
|
6986
7361
|
}
|
|
6987
|
-
catch (
|
|
7362
|
+
catch (e_73_1) { e_73 = { error: e_73_1 }; }
|
|
6988
7363
|
finally {
|
|
6989
7364
|
try {
|
|
6990
7365
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6991
7366
|
}
|
|
6992
|
-
finally { if (
|
|
7367
|
+
finally { if (e_73) throw e_73.error; }
|
|
6993
7368
|
}
|
|
6994
7369
|
}
|
|
6995
7370
|
if (status === 200) {
|
|
@@ -7054,7 +7429,7 @@
|
|
|
7054
7429
|
}));
|
|
7055
7430
|
};
|
|
7056
7431
|
DesignAtomsViewerApiClient.prototype.processUpdateAutoScaledTextItemHandler = function (response) {
|
|
7057
|
-
var
|
|
7432
|
+
var e_74, _a;
|
|
7058
7433
|
var _this = this;
|
|
7059
7434
|
var status = response.status;
|
|
7060
7435
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7067,12 +7442,12 @@
|
|
|
7067
7442
|
_headers[key] = response.headers.get(key);
|
|
7068
7443
|
}
|
|
7069
7444
|
}
|
|
7070
|
-
catch (
|
|
7445
|
+
catch (e_74_1) { e_74 = { error: e_74_1 }; }
|
|
7071
7446
|
finally {
|
|
7072
7447
|
try {
|
|
7073
7448
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7074
7449
|
}
|
|
7075
|
-
finally { if (
|
|
7450
|
+
finally { if (e_74) throw e_74.error; }
|
|
7076
7451
|
}
|
|
7077
7452
|
}
|
|
7078
7453
|
if (status === 200) {
|
|
@@ -7137,7 +7512,7 @@
|
|
|
7137
7512
|
}));
|
|
7138
7513
|
};
|
|
7139
7514
|
DesignAtomsViewerApiClient.prototype.processUpdateBarcodeItemHandler = function (response) {
|
|
7140
|
-
var
|
|
7515
|
+
var e_75, _a;
|
|
7141
7516
|
var _this = this;
|
|
7142
7517
|
var status = response.status;
|
|
7143
7518
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7150,12 +7525,12 @@
|
|
|
7150
7525
|
_headers[key] = response.headers.get(key);
|
|
7151
7526
|
}
|
|
7152
7527
|
}
|
|
7153
|
-
catch (
|
|
7528
|
+
catch (e_75_1) { e_75 = { error: e_75_1 }; }
|
|
7154
7529
|
finally {
|
|
7155
7530
|
try {
|
|
7156
7531
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7157
7532
|
}
|
|
7158
|
-
finally { if (
|
|
7533
|
+
finally { if (e_75) throw e_75.error; }
|
|
7159
7534
|
}
|
|
7160
7535
|
}
|
|
7161
7536
|
if (status === 200) {
|
|
@@ -7220,7 +7595,7 @@
|
|
|
7220
7595
|
}));
|
|
7221
7596
|
};
|
|
7222
7597
|
DesignAtomsViewerApiClient.prototype.processUpdateBoundedTextItemHandler = function (response) {
|
|
7223
|
-
var
|
|
7598
|
+
var e_76, _a;
|
|
7224
7599
|
var _this = this;
|
|
7225
7600
|
var status = response.status;
|
|
7226
7601
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7233,12 +7608,12 @@
|
|
|
7233
7608
|
_headers[key] = response.headers.get(key);
|
|
7234
7609
|
}
|
|
7235
7610
|
}
|
|
7236
|
-
catch (
|
|
7611
|
+
catch (e_76_1) { e_76 = { error: e_76_1 }; }
|
|
7237
7612
|
finally {
|
|
7238
7613
|
try {
|
|
7239
7614
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7240
7615
|
}
|
|
7241
|
-
finally { if (
|
|
7616
|
+
finally { if (e_76) throw e_76.error; }
|
|
7242
7617
|
}
|
|
7243
7618
|
}
|
|
7244
7619
|
if (status === 200) {
|
|
@@ -7303,7 +7678,7 @@
|
|
|
7303
7678
|
}));
|
|
7304
7679
|
};
|
|
7305
7680
|
DesignAtomsViewerApiClient.prototype.processUpdateByColorData = function (response) {
|
|
7306
|
-
var
|
|
7681
|
+
var e_77, _a;
|
|
7307
7682
|
var _this = this;
|
|
7308
7683
|
var status = response.status;
|
|
7309
7684
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7316,12 +7691,12 @@
|
|
|
7316
7691
|
_headers[key] = response.headers.get(key);
|
|
7317
7692
|
}
|
|
7318
7693
|
}
|
|
7319
|
-
catch (
|
|
7694
|
+
catch (e_77_1) { e_77 = { error: e_77_1 }; }
|
|
7320
7695
|
finally {
|
|
7321
7696
|
try {
|
|
7322
7697
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7323
7698
|
}
|
|
7324
|
-
finally { if (
|
|
7699
|
+
finally { if (e_77) throw e_77.error; }
|
|
7325
7700
|
}
|
|
7326
7701
|
}
|
|
7327
7702
|
if (status === 200) {
|
|
@@ -7386,7 +7761,7 @@
|
|
|
7386
7761
|
}));
|
|
7387
7762
|
};
|
|
7388
7763
|
DesignAtomsViewerApiClient.prototype.processUpdateByMultiCallRequest = function (response) {
|
|
7389
|
-
var
|
|
7764
|
+
var e_78, _a;
|
|
7390
7765
|
var _this = this;
|
|
7391
7766
|
var status = response.status;
|
|
7392
7767
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7399,12 +7774,12 @@
|
|
|
7399
7774
|
_headers[key] = response.headers.get(key);
|
|
7400
7775
|
}
|
|
7401
7776
|
}
|
|
7402
|
-
catch (
|
|
7777
|
+
catch (e_78_1) { e_78 = { error: e_78_1 }; }
|
|
7403
7778
|
finally {
|
|
7404
7779
|
try {
|
|
7405
7780
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7406
7781
|
}
|
|
7407
|
-
finally { if (
|
|
7782
|
+
finally { if (e_78) throw e_78.error; }
|
|
7408
7783
|
}
|
|
7409
7784
|
}
|
|
7410
7785
|
if (status === 200) {
|
|
@@ -7469,7 +7844,7 @@
|
|
|
7469
7844
|
}));
|
|
7470
7845
|
};
|
|
7471
7846
|
DesignAtomsViewerApiClient.prototype.processUpdateCurvedTextItemHandler = function (response) {
|
|
7472
|
-
var
|
|
7847
|
+
var e_79, _a;
|
|
7473
7848
|
var _this = this;
|
|
7474
7849
|
var status = response.status;
|
|
7475
7850
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7482,12 +7857,12 @@
|
|
|
7482
7857
|
_headers[key] = response.headers.get(key);
|
|
7483
7858
|
}
|
|
7484
7859
|
}
|
|
7485
|
-
catch (
|
|
7860
|
+
catch (e_79_1) { e_79 = { error: e_79_1 }; }
|
|
7486
7861
|
finally {
|
|
7487
7862
|
try {
|
|
7488
7863
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7489
7864
|
}
|
|
7490
|
-
finally { if (
|
|
7865
|
+
finally { if (e_79) throw e_79.error; }
|
|
7491
7866
|
}
|
|
7492
7867
|
}
|
|
7493
7868
|
if (status === 200) {
|
|
@@ -7552,7 +7927,7 @@
|
|
|
7552
7927
|
}));
|
|
7553
7928
|
};
|
|
7554
7929
|
DesignAtomsViewerApiClient.prototype.processUpdateImageItemHandler = function (response) {
|
|
7555
|
-
var
|
|
7930
|
+
var e_80, _a;
|
|
7556
7931
|
var _this = this;
|
|
7557
7932
|
var status = response.status;
|
|
7558
7933
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7565,12 +7940,12 @@
|
|
|
7565
7940
|
_headers[key] = response.headers.get(key);
|
|
7566
7941
|
}
|
|
7567
7942
|
}
|
|
7568
|
-
catch (
|
|
7943
|
+
catch (e_80_1) { e_80 = { error: e_80_1 }; }
|
|
7569
7944
|
finally {
|
|
7570
7945
|
try {
|
|
7571
7946
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7572
7947
|
}
|
|
7573
|
-
finally { if (
|
|
7948
|
+
finally { if (e_80) throw e_80.error; }
|
|
7574
7949
|
}
|
|
7575
7950
|
}
|
|
7576
7951
|
if (status === 200) {
|
|
@@ -7635,7 +8010,7 @@
|
|
|
7635
8010
|
}));
|
|
7636
8011
|
};
|
|
7637
8012
|
DesignAtomsViewerApiClient.prototype.processUpdatePathBoundedTextItemHandler = function (response) {
|
|
7638
|
-
var
|
|
8013
|
+
var e_81, _a;
|
|
7639
8014
|
var _this = this;
|
|
7640
8015
|
var status = response.status;
|
|
7641
8016
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7648,12 +8023,12 @@
|
|
|
7648
8023
|
_headers[key] = response.headers.get(key);
|
|
7649
8024
|
}
|
|
7650
8025
|
}
|
|
7651
|
-
catch (
|
|
8026
|
+
catch (e_81_1) { e_81 = { error: e_81_1 }; }
|
|
7652
8027
|
finally {
|
|
7653
8028
|
try {
|
|
7654
8029
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7655
8030
|
}
|
|
7656
|
-
finally { if (
|
|
8031
|
+
finally { if (e_81) throw e_81.error; }
|
|
7657
8032
|
}
|
|
7658
8033
|
}
|
|
7659
8034
|
if (status === 200) {
|
|
@@ -7718,7 +8093,7 @@
|
|
|
7718
8093
|
}));
|
|
7719
8094
|
};
|
|
7720
8095
|
DesignAtomsViewerApiClient.prototype.processUpdatePlainTextItemHandler = function (response) {
|
|
7721
|
-
var
|
|
8096
|
+
var e_82, _a;
|
|
7722
8097
|
var _this = this;
|
|
7723
8098
|
var status = response.status;
|
|
7724
8099
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7731,12 +8106,12 @@
|
|
|
7731
8106
|
_headers[key] = response.headers.get(key);
|
|
7732
8107
|
}
|
|
7733
8108
|
}
|
|
7734
|
-
catch (
|
|
8109
|
+
catch (e_82_1) { e_82 = { error: e_82_1 }; }
|
|
7735
8110
|
finally {
|
|
7736
8111
|
try {
|
|
7737
8112
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7738
8113
|
}
|
|
7739
|
-
finally { if (
|
|
8114
|
+
finally { if (e_82) throw e_82.error; }
|
|
7740
8115
|
}
|
|
7741
8116
|
}
|
|
7742
8117
|
if (status === 200) {
|
|
@@ -7801,7 +8176,7 @@
|
|
|
7801
8176
|
}));
|
|
7802
8177
|
};
|
|
7803
8178
|
DesignAtomsViewerApiClient.prototype.processUpdateShapeItemHandler = function (response) {
|
|
7804
|
-
var
|
|
8179
|
+
var e_83, _a;
|
|
7805
8180
|
var _this = this;
|
|
7806
8181
|
var status = response.status;
|
|
7807
8182
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7814,12 +8189,12 @@
|
|
|
7814
8189
|
_headers[key] = response.headers.get(key);
|
|
7815
8190
|
}
|
|
7816
8191
|
}
|
|
7817
|
-
catch (
|
|
8192
|
+
catch (e_83_1) { e_83 = { error: e_83_1 }; }
|
|
7818
8193
|
finally {
|
|
7819
8194
|
try {
|
|
7820
8195
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7821
8196
|
}
|
|
7822
|
-
finally { if (
|
|
8197
|
+
finally { if (e_83) throw e_83.error; }
|
|
7823
8198
|
}
|
|
7824
8199
|
}
|
|
7825
8200
|
if (status === 200) {
|