@aurigma/ng-design-atoms-api-client 2.65.1 → 2.66.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 +2158 -369
- 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 +1705 -116
- 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 +1705 -116
- package/fesm2015/aurigma-ng-design-atoms-api-client.js.map +1 -1
- package/lib/design-atoms-api-client.d.ts +562 -72
- package/package.json +1 -1
|
@@ -770,6 +770,13 @@
|
|
|
770
770
|
return rxjs.of(result200);
|
|
771
771
|
}));
|
|
772
772
|
}
|
|
773
|
+
else if (status === 400) {
|
|
774
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
775
|
+
var result400 = null;
|
|
776
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
777
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
778
|
+
}));
|
|
779
|
+
}
|
|
773
780
|
else if (status === 401) {
|
|
774
781
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
775
782
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -854,6 +861,13 @@
|
|
|
854
861
|
return rxjs.of(result200);
|
|
855
862
|
}));
|
|
856
863
|
}
|
|
864
|
+
else if (status === 400) {
|
|
865
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
866
|
+
var result400 = null;
|
|
867
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
868
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
869
|
+
}));
|
|
870
|
+
}
|
|
857
871
|
else if (status === 401) {
|
|
858
872
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
859
873
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -888,7 +902,7 @@
|
|
|
888
902
|
observe: "response",
|
|
889
903
|
responseType: "blob",
|
|
890
904
|
headers: new i1.HttpHeaders({
|
|
891
|
-
"Accept": "application/
|
|
905
|
+
"Accept": "application/octet-stream"
|
|
892
906
|
})
|
|
893
907
|
};
|
|
894
908
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
@@ -1360,7 +1374,7 @@
|
|
|
1360
1374
|
observe: "response",
|
|
1361
1375
|
responseType: "blob",
|
|
1362
1376
|
headers: new i1.HttpHeaders({
|
|
1363
|
-
"Accept": "application/
|
|
1377
|
+
"Accept": "application/octet-stream"
|
|
1364
1378
|
})
|
|
1365
1379
|
};
|
|
1366
1380
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
@@ -1534,7 +1548,7 @@
|
|
|
1534
1548
|
observe: "response",
|
|
1535
1549
|
responseType: "blob",
|
|
1536
1550
|
headers: new i1.HttpHeaders({
|
|
1537
|
-
"Accept": "application/
|
|
1551
|
+
"Accept": "application/octet-stream"
|
|
1538
1552
|
})
|
|
1539
1553
|
};
|
|
1540
1554
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
@@ -1628,7 +1642,7 @@
|
|
|
1628
1642
|
observe: "response",
|
|
1629
1643
|
responseType: "blob",
|
|
1630
1644
|
headers: new i1.HttpHeaders({
|
|
1631
|
-
"Accept": "application/
|
|
1645
|
+
"Accept": "application/octet-stream"
|
|
1632
1646
|
})
|
|
1633
1647
|
};
|
|
1634
1648
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
@@ -1768,7 +1782,7 @@
|
|
|
1768
1782
|
observe: "response",
|
|
1769
1783
|
responseType: "blob",
|
|
1770
1784
|
headers: new i1.HttpHeaders({
|
|
1771
|
-
"Accept": "application/
|
|
1785
|
+
"Accept": "application/octet-stream"
|
|
1772
1786
|
})
|
|
1773
1787
|
};
|
|
1774
1788
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
@@ -1862,7 +1876,7 @@
|
|
|
1862
1876
|
observe: "response",
|
|
1863
1877
|
responseType: "blob",
|
|
1864
1878
|
headers: new i1.HttpHeaders({
|
|
1865
|
-
"Accept": "application/
|
|
1879
|
+
"Accept": "application/octet-stream"
|
|
1866
1880
|
})
|
|
1867
1881
|
};
|
|
1868
1882
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
@@ -2932,6 +2946,7 @@
|
|
|
2932
2946
|
};
|
|
2933
2947
|
DesignAtomsImagesApiClient.prototype.processRenderImagePreview = function (response) {
|
|
2934
2948
|
var e_29, _a;
|
|
2949
|
+
var _this = this;
|
|
2935
2950
|
var status = response.status;
|
|
2936
2951
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
2937
2952
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -2957,6 +2972,13 @@
|
|
|
2957
2972
|
var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
2958
2973
|
return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
|
|
2959
2974
|
}
|
|
2975
|
+
else if (status === 404) {
|
|
2976
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2977
|
+
var result404 = null;
|
|
2978
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
2979
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2980
|
+
}));
|
|
2981
|
+
}
|
|
2960
2982
|
else if (status === 401) {
|
|
2961
2983
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
2962
2984
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -3040,6 +3062,7 @@
|
|
|
3040
3062
|
};
|
|
3041
3063
|
DesignAtomsImagesApiClient.prototype.processRenderImagePreviewFromFile = function (response) {
|
|
3042
3064
|
var e_30, _a;
|
|
3065
|
+
var _this = this;
|
|
3043
3066
|
var status = response.status;
|
|
3044
3067
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
3045
3068
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -3065,6 +3088,13 @@
|
|
|
3065
3088
|
var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
3066
3089
|
return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
|
|
3067
3090
|
}
|
|
3091
|
+
else if (status === 404) {
|
|
3092
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3093
|
+
var result404 = null;
|
|
3094
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
3095
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3096
|
+
}));
|
|
3097
|
+
}
|
|
3068
3098
|
else if (status === 401) {
|
|
3069
3099
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3070
3100
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -3120,13 +3150,9 @@
|
|
|
3120
3150
|
content_.append("resourceSourceId", resourceSourceId.toString());
|
|
3121
3151
|
if (resourceType !== null && resourceType !== undefined)
|
|
3122
3152
|
content_.append("resourceType", resourceType.toString());
|
|
3123
|
-
if (anonymousAccess
|
|
3124
|
-
throw new Error("The parameter 'anonymousAccess' cannot be null.");
|
|
3125
|
-
else
|
|
3153
|
+
if (anonymousAccess !== null && anonymousAccess !== undefined)
|
|
3126
3154
|
content_.append("anonymousAccess", anonymousAccess.toString());
|
|
3127
|
-
if (overwriteExistingResource
|
|
3128
|
-
throw new Error("The parameter 'overwriteExistingResource' cannot be null.");
|
|
3129
|
-
else
|
|
3155
|
+
if (overwriteExistingResource !== null && overwriteExistingResource !== undefined)
|
|
3130
3156
|
content_.append("overwriteExistingResource", overwriteExistingResource.toString());
|
|
3131
3157
|
if (sourceFile !== null && sourceFile !== undefined)
|
|
3132
3158
|
content_.append("sourceFile", sourceFile.data, sourceFile.fileName ? sourceFile.fileName : "sourceFile");
|
|
@@ -3196,6 +3222,13 @@
|
|
|
3196
3222
|
return rxjs.of(result200);
|
|
3197
3223
|
}));
|
|
3198
3224
|
}
|
|
3225
|
+
else if (status === 404) {
|
|
3226
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3227
|
+
var result404 = null;
|
|
3228
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
3229
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3230
|
+
}));
|
|
3231
|
+
}
|
|
3199
3232
|
else if (status === 409) {
|
|
3200
3233
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3201
3234
|
var result409 = null;
|
|
@@ -3267,6 +3300,7 @@
|
|
|
3267
3300
|
};
|
|
3268
3301
|
DesignAtomsImagesApiClient.prototype.processRenderImagePreviewFromUrl = function (response) {
|
|
3269
3302
|
var e_32, _a;
|
|
3303
|
+
var _this = this;
|
|
3270
3304
|
var status = response.status;
|
|
3271
3305
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
3272
3306
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -3292,6 +3326,13 @@
|
|
|
3292
3326
|
var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
3293
3327
|
return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
|
|
3294
3328
|
}
|
|
3329
|
+
else if (status === 404) {
|
|
3330
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3331
|
+
var result404 = null;
|
|
3332
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
3333
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3334
|
+
}));
|
|
3335
|
+
}
|
|
3295
3336
|
else if (status === 401) {
|
|
3296
3337
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3297
3338
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -3379,6 +3420,13 @@
|
|
|
3379
3420
|
return rxjs.of(result200);
|
|
3380
3421
|
}));
|
|
3381
3422
|
}
|
|
3423
|
+
else if (status === 404) {
|
|
3424
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3425
|
+
var result404 = null;
|
|
3426
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
3427
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3428
|
+
}));
|
|
3429
|
+
}
|
|
3382
3430
|
else if (status === 409) {
|
|
3383
3431
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3384
3432
|
var result409 = null;
|
|
@@ -3473,6 +3521,13 @@
|
|
|
3473
3521
|
return rxjs.of(result200);
|
|
3474
3522
|
}));
|
|
3475
3523
|
}
|
|
3524
|
+
else if (status === 404) {
|
|
3525
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3526
|
+
var result404 = null;
|
|
3527
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
3528
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3529
|
+
}));
|
|
3530
|
+
}
|
|
3476
3531
|
else if (status === 409) {
|
|
3477
3532
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3478
3533
|
var result409 = null;
|
|
@@ -3647,7 +3702,7 @@
|
|
|
3647
3702
|
observe: "response",
|
|
3648
3703
|
responseType: "blob",
|
|
3649
3704
|
headers: new i1.HttpHeaders({
|
|
3650
|
-
"Accept": "application/
|
|
3705
|
+
"Accept": "application/octet-stream"
|
|
3651
3706
|
})
|
|
3652
3707
|
};
|
|
3653
3708
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
@@ -3750,7 +3805,7 @@
|
|
|
3750
3805
|
observe: "response",
|
|
3751
3806
|
responseType: "blob",
|
|
3752
3807
|
headers: new i1.HttpHeaders({
|
|
3753
|
-
"Accept": "application/
|
|
3808
|
+
"Accept": "application/octet-stream"
|
|
3754
3809
|
})
|
|
3755
3810
|
};
|
|
3756
3811
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
@@ -3842,9 +3897,9 @@
|
|
|
3842
3897
|
{ type: i1.HttpClient, decorators: [{ type: i0.Inject, args: [i1.HttpClient,] }] },
|
|
3843
3898
|
{ type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [API_BASE_URL,] }] }
|
|
3844
3899
|
]; };
|
|
3845
|
-
var
|
|
3846
|
-
__extends(
|
|
3847
|
-
function
|
|
3900
|
+
var DesignAtomsPalettesApiClient = /** @class */ (function (_super) {
|
|
3901
|
+
__extends(DesignAtomsPalettesApiClient, _super);
|
|
3902
|
+
function DesignAtomsPalettesApiClient(configuration, http, baseUrl) {
|
|
3848
3903
|
var _this = _super.call(this, configuration) || this;
|
|
3849
3904
|
_this.jsonParseReviver = undefined;
|
|
3850
3905
|
_this.http = http;
|
|
@@ -3852,62 +3907,40 @@
|
|
|
3852
3907
|
return _this;
|
|
3853
3908
|
}
|
|
3854
3909
|
/**
|
|
3855
|
-
*
|
|
3856
|
-
* @param
|
|
3857
|
-
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3910
|
+
* Returns a closest color to provided color in a specified palette.
|
|
3911
|
+
* @param paletteUID (optional) Palette UID.
|
|
3858
3912
|
* @param tenantId (optional) Tenant identifier
|
|
3859
|
-
* @param
|
|
3860
|
-
* @
|
|
3861
|
-
* @param replaceImageItemFileInfo_sourceFile (optional)
|
|
3862
|
-
* @param replacePlaceholderItemContentInfo_placeholderItemName (optional)
|
|
3863
|
-
* @param replacePlaceholderItemContentInfo_newContentType (optional)
|
|
3864
|
-
* @param replacePlaceholderItemContentInfo_sourceFile (optional)
|
|
3865
|
-
* @return No Content
|
|
3913
|
+
* @param body (optional) Source color.
|
|
3914
|
+
* @return Success
|
|
3866
3915
|
*/
|
|
3867
|
-
|
|
3916
|
+
DesignAtomsPalettesApiClient.prototype.findPaletteColor = function (paletteUID, tenantId, body) {
|
|
3868
3917
|
var _this = this;
|
|
3869
|
-
var url_ = this.baseUrl + "/api/atoms/v1/
|
|
3870
|
-
if (
|
|
3871
|
-
|
|
3872
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3873
|
-
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3874
|
-
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3918
|
+
var url_ = this.baseUrl + "/api/atoms/v1/palettes/find-color?";
|
|
3919
|
+
if (paletteUID !== undefined && paletteUID !== null)
|
|
3920
|
+
url_ += "paletteUID=" + encodeURIComponent("" + paletteUID) + "&";
|
|
3875
3921
|
if (tenantId === null)
|
|
3876
3922
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
3877
3923
|
else if (tenantId !== undefined)
|
|
3878
3924
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
3879
3925
|
url_ = url_.replace(/[?&]$/, "");
|
|
3880
|
-
var content_ =
|
|
3881
|
-
if (patchType === null || patchType === undefined)
|
|
3882
|
-
throw new Error("The parameter 'patchType' cannot be null.");
|
|
3883
|
-
else
|
|
3884
|
-
content_.append("patchType", patchType.toString());
|
|
3885
|
-
if (replaceImageItemFileInfo_itemName !== null && replaceImageItemFileInfo_itemName !== undefined)
|
|
3886
|
-
content_.append("replaceImageItemFileInfo.itemName", replaceImageItemFileInfo_itemName.toString());
|
|
3887
|
-
if (replaceImageItemFileInfo_sourceFile !== null && replaceImageItemFileInfo_sourceFile !== undefined)
|
|
3888
|
-
content_.append("replaceImageItemFileInfo.sourceFile", replaceImageItemFileInfo_sourceFile.data, replaceImageItemFileInfo_sourceFile.fileName ? replaceImageItemFileInfo_sourceFile.fileName : "replaceImageItemFileInfo.sourceFile");
|
|
3889
|
-
if (replacePlaceholderItemContentInfo_placeholderItemName !== null && replacePlaceholderItemContentInfo_placeholderItemName !== undefined)
|
|
3890
|
-
content_.append("replacePlaceholderItemContentInfo.placeholderItemName", replacePlaceholderItemContentInfo_placeholderItemName.toString());
|
|
3891
|
-
if (replacePlaceholderItemContentInfo_newContentType === null || replacePlaceholderItemContentInfo_newContentType === undefined)
|
|
3892
|
-
throw new Error("The parameter 'replacePlaceholderItemContentInfo_newContentType' cannot be null.");
|
|
3893
|
-
else
|
|
3894
|
-
content_.append("replacePlaceholderItemContentInfo.newContentType", replacePlaceholderItemContentInfo_newContentType.toString());
|
|
3895
|
-
if (replacePlaceholderItemContentInfo_sourceFile !== null && replacePlaceholderItemContentInfo_sourceFile !== undefined)
|
|
3896
|
-
content_.append("replacePlaceholderItemContentInfo.sourceFile", replacePlaceholderItemContentInfo_sourceFile.data, replacePlaceholderItemContentInfo_sourceFile.fileName ? replacePlaceholderItemContentInfo_sourceFile.fileName : "replacePlaceholderItemContentInfo.sourceFile");
|
|
3926
|
+
var content_ = JSON.stringify(body);
|
|
3897
3927
|
var options_ = {
|
|
3898
3928
|
body: content_,
|
|
3899
3929
|
observe: "response",
|
|
3900
3930
|
responseType: "blob",
|
|
3901
|
-
headers: new i1.HttpHeaders({
|
|
3931
|
+
headers: new i1.HttpHeaders({
|
|
3932
|
+
"Content-Type": "application/json",
|
|
3933
|
+
"Accept": "application/json"
|
|
3934
|
+
})
|
|
3902
3935
|
};
|
|
3903
3936
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
3904
|
-
return _this.http.request("
|
|
3937
|
+
return _this.http.request("post", url_, transformedOptions_);
|
|
3905
3938
|
})).pipe(operators.mergeMap(function (response_) {
|
|
3906
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
3939
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processFindPaletteColor(r); });
|
|
3907
3940
|
})).pipe(operators.catchError(function (response_) {
|
|
3908
3941
|
if (response_ instanceof i1.HttpResponseBase) {
|
|
3909
3942
|
try {
|
|
3910
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
3943
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processFindPaletteColor(r); });
|
|
3911
3944
|
}
|
|
3912
3945
|
catch (e) {
|
|
3913
3946
|
return rxjs.throwError(e);
|
|
@@ -3917,7 +3950,7 @@
|
|
|
3917
3950
|
return rxjs.throwError(response_);
|
|
3918
3951
|
}));
|
|
3919
3952
|
};
|
|
3920
|
-
|
|
3953
|
+
DesignAtomsPalettesApiClient.prototype.processFindPaletteColor = function (response) {
|
|
3921
3954
|
var e_38, _a;
|
|
3922
3955
|
var _this = this;
|
|
3923
3956
|
var status = response.status;
|
|
@@ -3939,9 +3972,18 @@
|
|
|
3939
3972
|
finally { if (e_38) throw e_38.error; }
|
|
3940
3973
|
}
|
|
3941
3974
|
}
|
|
3942
|
-
if (status ===
|
|
3975
|
+
if (status === 200) {
|
|
3943
3976
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3944
|
-
|
|
3977
|
+
var result200 = null;
|
|
3978
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
3979
|
+
return rxjs.of(result200);
|
|
3980
|
+
}));
|
|
3981
|
+
}
|
|
3982
|
+
else if (status === 400) {
|
|
3983
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3984
|
+
var result400 = null;
|
|
3985
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
3986
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
3945
3987
|
}));
|
|
3946
3988
|
}
|
|
3947
3989
|
else if (status === 404) {
|
|
@@ -3951,6 +3993,13 @@
|
|
|
3951
3993
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3952
3994
|
}));
|
|
3953
3995
|
}
|
|
3996
|
+
else if (status === 409) {
|
|
3997
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3998
|
+
var result409 = null;
|
|
3999
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4000
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
4001
|
+
}));
|
|
4002
|
+
}
|
|
3954
4003
|
else if (status === 401) {
|
|
3955
4004
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
3956
4005
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -3969,20 +4018,19 @@
|
|
|
3969
4018
|
return rxjs.of(null);
|
|
3970
4019
|
};
|
|
3971
4020
|
/**
|
|
3972
|
-
* Returns a
|
|
3973
|
-
* @param id
|
|
3974
|
-
* @param
|
|
4021
|
+
* Returns a serialized palette model by its identifier or UID.
|
|
4022
|
+
* @param id (optional) Palette identifier.
|
|
4023
|
+
* @param uid (optional) Palette UID.
|
|
3975
4024
|
* @param tenantId (optional) Tenant identifier
|
|
3976
4025
|
* @return Success
|
|
3977
4026
|
*/
|
|
3978
|
-
|
|
4027
|
+
DesignAtomsPalettesApiClient.prototype.getPaletteModel = function (id, uid, tenantId) {
|
|
3979
4028
|
var _this = this;
|
|
3980
|
-
var url_ = this.baseUrl + "/api/atoms/v1/
|
|
3981
|
-
if (id
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4029
|
+
var url_ = this.baseUrl + "/api/atoms/v1/palettes/model?";
|
|
4030
|
+
if (id !== undefined && id !== null)
|
|
4031
|
+
url_ += "id=" + encodeURIComponent("" + id) + "&";
|
|
4032
|
+
if (uid !== undefined && uid !== null)
|
|
4033
|
+
url_ += "uid=" + encodeURIComponent("" + uid) + "&";
|
|
3986
4034
|
if (tenantId === null)
|
|
3987
4035
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
3988
4036
|
else if (tenantId !== undefined)
|
|
@@ -3998,11 +4046,11 @@
|
|
|
3998
4046
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
3999
4047
|
return _this.http.request("get", url_, transformedOptions_);
|
|
4000
4048
|
})).pipe(operators.mergeMap(function (response_) {
|
|
4001
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
4049
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetPaletteModel(r); });
|
|
4002
4050
|
})).pipe(operators.catchError(function (response_) {
|
|
4003
4051
|
if (response_ instanceof i1.HttpResponseBase) {
|
|
4004
4052
|
try {
|
|
4005
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
4053
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetPaletteModel(r); });
|
|
4006
4054
|
}
|
|
4007
4055
|
catch (e) {
|
|
4008
4056
|
return rxjs.throwError(e);
|
|
@@ -4012,7 +4060,7 @@
|
|
|
4012
4060
|
return rxjs.throwError(response_);
|
|
4013
4061
|
}));
|
|
4014
4062
|
};
|
|
4015
|
-
|
|
4063
|
+
DesignAtomsPalettesApiClient.prototype.processGetPaletteModel = function (response) {
|
|
4016
4064
|
var e_39, _a;
|
|
4017
4065
|
var _this = this;
|
|
4018
4066
|
var status = response.status;
|
|
@@ -4041,6 +4089,13 @@
|
|
|
4041
4089
|
return rxjs.of(result200);
|
|
4042
4090
|
}));
|
|
4043
4091
|
}
|
|
4092
|
+
else if (status === 400) {
|
|
4093
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4094
|
+
var result400 = null;
|
|
4095
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4096
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
4097
|
+
}));
|
|
4098
|
+
}
|
|
4044
4099
|
else if (status === 404) {
|
|
4045
4100
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4046
4101
|
var result404 = null;
|
|
@@ -4048,6 +4103,13 @@
|
|
|
4048
4103
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
4049
4104
|
}));
|
|
4050
4105
|
}
|
|
4106
|
+
else if (status === 409) {
|
|
4107
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4108
|
+
var result409 = null;
|
|
4109
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4110
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
4111
|
+
}));
|
|
4112
|
+
}
|
|
4051
4113
|
else if (status === 401) {
|
|
4052
4114
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4053
4115
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -4065,17 +4127,44 @@
|
|
|
4065
4127
|
}
|
|
4066
4128
|
return rxjs.of(null);
|
|
4067
4129
|
};
|
|
4130
|
+
return DesignAtomsPalettesApiClient;
|
|
4131
|
+
}(ApiClientBase));
|
|
4132
|
+
DesignAtomsPalettesApiClient.ɵprov = i0.ɵɵdefineInjectable({ factory: function DesignAtomsPalettesApiClient_Factory() { return new DesignAtomsPalettesApiClient(i0.ɵɵinject(ApiClientConfiguration), i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(API_BASE_URL, 8)); }, token: DesignAtomsPalettesApiClient, providedIn: "root" });
|
|
4133
|
+
DesignAtomsPalettesApiClient.decorators = [
|
|
4134
|
+
{ type: i0.Injectable, args: [{
|
|
4135
|
+
providedIn: 'root'
|
|
4136
|
+
},] }
|
|
4137
|
+
];
|
|
4138
|
+
DesignAtomsPalettesApiClient.ctorParameters = function () { return [
|
|
4139
|
+
{ type: ApiClientConfiguration, decorators: [{ type: i0.Inject, args: [ApiClientConfiguration,] }] },
|
|
4140
|
+
{ type: i1.HttpClient, decorators: [{ type: i0.Inject, args: [i1.HttpClient,] }] },
|
|
4141
|
+
{ type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [API_BASE_URL,] }] }
|
|
4142
|
+
]; };
|
|
4143
|
+
var DesignAtomsPrintProductApiClient = /** @class */ (function (_super) {
|
|
4144
|
+
__extends(DesignAtomsPrintProductApiClient, _super);
|
|
4145
|
+
function DesignAtomsPrintProductApiClient(configuration, http, baseUrl) {
|
|
4146
|
+
var _this = _super.call(this, configuration) || this;
|
|
4147
|
+
_this.jsonParseReviver = undefined;
|
|
4148
|
+
_this.http = http;
|
|
4149
|
+
_this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : _this.getBaseUrl("");
|
|
4150
|
+
return _this;
|
|
4151
|
+
}
|
|
4068
4152
|
/**
|
|
4069
|
-
*
|
|
4153
|
+
* Patches a print-product of the specified design file.
|
|
4070
4154
|
* @param id Design identifier.
|
|
4071
4155
|
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4072
4156
|
* @param tenantId (optional) Tenant identifier
|
|
4073
|
-
* @param
|
|
4157
|
+
* @param patchType (optional)
|
|
4158
|
+
* @param replaceImageItemFileInfo_itemName (optional)
|
|
4159
|
+
* @param replaceImageItemFileInfo_sourceFile (optional)
|
|
4160
|
+
* @param replacePlaceholderItemContentInfo_placeholderItemName (optional)
|
|
4161
|
+
* @param replacePlaceholderItemContentInfo_newContentType (optional)
|
|
4162
|
+
* @param replacePlaceholderItemContentInfo_sourceFile (optional)
|
|
4074
4163
|
* @return No Content
|
|
4075
4164
|
*/
|
|
4076
|
-
DesignAtomsPrintProductApiClient.prototype.
|
|
4165
|
+
DesignAtomsPrintProductApiClient.prototype.patchDesignProduct = function (id, privateStorageOwner, tenantId, patchType, replaceImageItemFileInfo_itemName, replaceImageItemFileInfo_sourceFile, replacePlaceholderItemContentInfo_placeholderItemName, replacePlaceholderItemContentInfo_newContentType, replacePlaceholderItemContentInfo_sourceFile) {
|
|
4077
4166
|
var _this = this;
|
|
4078
|
-
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product
|
|
4167
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product?";
|
|
4079
4168
|
if (id === undefined || id === null)
|
|
4080
4169
|
throw new Error("The parameter 'id' must be defined.");
|
|
4081
4170
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -4086,23 +4175,37 @@
|
|
|
4086
4175
|
else if (tenantId !== undefined)
|
|
4087
4176
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
4088
4177
|
url_ = url_.replace(/[?&]$/, "");
|
|
4089
|
-
var content_ =
|
|
4178
|
+
var content_ = new FormData();
|
|
4179
|
+
if (patchType === null || patchType === undefined)
|
|
4180
|
+
throw new Error("The parameter 'patchType' cannot be null.");
|
|
4181
|
+
else
|
|
4182
|
+
content_.append("patchType", patchType.toString());
|
|
4183
|
+
if (replaceImageItemFileInfo_itemName !== null && replaceImageItemFileInfo_itemName !== undefined)
|
|
4184
|
+
content_.append("replaceImageItemFileInfo.itemName", replaceImageItemFileInfo_itemName.toString());
|
|
4185
|
+
if (replaceImageItemFileInfo_sourceFile !== null && replaceImageItemFileInfo_sourceFile !== undefined)
|
|
4186
|
+
content_.append("replaceImageItemFileInfo.sourceFile", replaceImageItemFileInfo_sourceFile.data, replaceImageItemFileInfo_sourceFile.fileName ? replaceImageItemFileInfo_sourceFile.fileName : "replaceImageItemFileInfo.sourceFile");
|
|
4187
|
+
if (replacePlaceholderItemContentInfo_placeholderItemName !== null && replacePlaceholderItemContentInfo_placeholderItemName !== undefined)
|
|
4188
|
+
content_.append("replacePlaceholderItemContentInfo.placeholderItemName", replacePlaceholderItemContentInfo_placeholderItemName.toString());
|
|
4189
|
+
if (replacePlaceholderItemContentInfo_newContentType === null || replacePlaceholderItemContentInfo_newContentType === undefined)
|
|
4190
|
+
throw new Error("The parameter 'replacePlaceholderItemContentInfo_newContentType' cannot be null.");
|
|
4191
|
+
else
|
|
4192
|
+
content_.append("replacePlaceholderItemContentInfo.newContentType", replacePlaceholderItemContentInfo_newContentType.toString());
|
|
4193
|
+
if (replacePlaceholderItemContentInfo_sourceFile !== null && replacePlaceholderItemContentInfo_sourceFile !== undefined)
|
|
4194
|
+
content_.append("replacePlaceholderItemContentInfo.sourceFile", replacePlaceholderItemContentInfo_sourceFile.data, replacePlaceholderItemContentInfo_sourceFile.fileName ? replacePlaceholderItemContentInfo_sourceFile.fileName : "replacePlaceholderItemContentInfo.sourceFile");
|
|
4090
4195
|
var options_ = {
|
|
4091
4196
|
body: content_,
|
|
4092
4197
|
observe: "response",
|
|
4093
4198
|
responseType: "blob",
|
|
4094
|
-
headers: new i1.HttpHeaders({
|
|
4095
|
-
"Content-Type": "application/json",
|
|
4096
|
-
})
|
|
4199
|
+
headers: new i1.HttpHeaders({})
|
|
4097
4200
|
};
|
|
4098
4201
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
4099
|
-
return _this.http.request("
|
|
4202
|
+
return _this.http.request("patch", url_, transformedOptions_);
|
|
4100
4203
|
})).pipe(operators.mergeMap(function (response_) {
|
|
4101
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
4204
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processPatchDesignProduct(r); });
|
|
4102
4205
|
})).pipe(operators.catchError(function (response_) {
|
|
4103
4206
|
if (response_ instanceof i1.HttpResponseBase) {
|
|
4104
4207
|
try {
|
|
4105
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
4208
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processPatchDesignProduct(r); });
|
|
4106
4209
|
}
|
|
4107
4210
|
catch (e) {
|
|
4108
4211
|
return rxjs.throwError(e);
|
|
@@ -4112,7 +4215,7 @@
|
|
|
4112
4215
|
return rxjs.throwError(response_);
|
|
4113
4216
|
}));
|
|
4114
4217
|
};
|
|
4115
|
-
DesignAtomsPrintProductApiClient.prototype.
|
|
4218
|
+
DesignAtomsPrintProductApiClient.prototype.processPatchDesignProduct = function (response) {
|
|
4116
4219
|
var e_40, _a;
|
|
4117
4220
|
var _this = this;
|
|
4118
4221
|
var status = response.status;
|
|
@@ -4164,16 +4267,16 @@
|
|
|
4164
4267
|
return rxjs.of(null);
|
|
4165
4268
|
};
|
|
4166
4269
|
/**
|
|
4167
|
-
* Returns a list of print-
|
|
4270
|
+
* Returns a list of print-product container descriptions of the specified design file.
|
|
4168
4271
|
* @param id Design identifier.
|
|
4169
|
-
* @param surfaceId (optional)
|
|
4272
|
+
* @param surfaceId (optional) Print-product surface identifier.
|
|
4170
4273
|
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4171
4274
|
* @param tenantId (optional) Tenant identifier
|
|
4172
4275
|
* @return Success
|
|
4173
4276
|
*/
|
|
4174
|
-
DesignAtomsPrintProductApiClient.prototype.
|
|
4277
|
+
DesignAtomsPrintProductApiClient.prototype.getDesignSurfaceContainers = function (id, surfaceId, privateStorageOwner, tenantId) {
|
|
4175
4278
|
var _this = this;
|
|
4176
|
-
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/
|
|
4279
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/containers?";
|
|
4177
4280
|
if (id === undefined || id === null)
|
|
4178
4281
|
throw new Error("The parameter 'id' must be defined.");
|
|
4179
4282
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -4196,11 +4299,11 @@
|
|
|
4196
4299
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
4197
4300
|
return _this.http.request("get", url_, transformedOptions_);
|
|
4198
4301
|
})).pipe(operators.mergeMap(function (response_) {
|
|
4199
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
4302
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetDesignSurfaceContainers(r); });
|
|
4200
4303
|
})).pipe(operators.catchError(function (response_) {
|
|
4201
4304
|
if (response_ instanceof i1.HttpResponseBase) {
|
|
4202
4305
|
try {
|
|
4203
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
4306
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetDesignSurfaceContainers(r); });
|
|
4204
4307
|
}
|
|
4205
4308
|
catch (e) {
|
|
4206
4309
|
return rxjs.throwError(e);
|
|
@@ -4210,7 +4313,7 @@
|
|
|
4210
4313
|
return rxjs.throwError(response_);
|
|
4211
4314
|
}));
|
|
4212
4315
|
};
|
|
4213
|
-
DesignAtomsPrintProductApiClient.prototype.
|
|
4316
|
+
DesignAtomsPrintProductApiClient.prototype.processGetDesignSurfaceContainers = function (response) {
|
|
4214
4317
|
var e_41, _a;
|
|
4215
4318
|
var _this = this;
|
|
4216
4319
|
var status = response.status;
|
|
@@ -4264,22 +4367,22 @@
|
|
|
4264
4367
|
return rxjs.of(null);
|
|
4265
4368
|
};
|
|
4266
4369
|
/**
|
|
4267
|
-
* Deletes a specified print-
|
|
4370
|
+
* Deletes a specified print-product container in an existing design file.
|
|
4268
4371
|
* @param id Design identifier.
|
|
4269
|
-
* @param
|
|
4372
|
+
* @param containerId Print-product container identifier.
|
|
4270
4373
|
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4271
4374
|
* @param tenantId (optional) Tenant identifier
|
|
4272
4375
|
* @return No Content
|
|
4273
4376
|
*/
|
|
4274
|
-
DesignAtomsPrintProductApiClient.prototype.
|
|
4377
|
+
DesignAtomsPrintProductApiClient.prototype.deleteDesignSurfaceContainer = function (id, containerId, privateStorageOwner, tenantId) {
|
|
4275
4378
|
var _this = this;
|
|
4276
|
-
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/
|
|
4379
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/containers/{containerId}?";
|
|
4277
4380
|
if (id === undefined || id === null)
|
|
4278
4381
|
throw new Error("The parameter 'id' must be defined.");
|
|
4279
4382
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4280
|
-
if (
|
|
4281
|
-
throw new Error("The parameter '
|
|
4282
|
-
url_ = url_.replace("{
|
|
4383
|
+
if (containerId === undefined || containerId === null)
|
|
4384
|
+
throw new Error("The parameter 'containerId' must be defined.");
|
|
4385
|
+
url_ = url_.replace("{containerId}", encodeURIComponent("" + containerId));
|
|
4283
4386
|
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
4284
4387
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4285
4388
|
if (tenantId === null)
|
|
@@ -4295,11 +4398,11 @@
|
|
|
4295
4398
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
4296
4399
|
return _this.http.request("delete", url_, transformedOptions_);
|
|
4297
4400
|
})).pipe(operators.mergeMap(function (response_) {
|
|
4298
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
4401
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processDeleteDesignSurfaceContainer(r); });
|
|
4299
4402
|
})).pipe(operators.catchError(function (response_) {
|
|
4300
4403
|
if (response_ instanceof i1.HttpResponseBase) {
|
|
4301
4404
|
try {
|
|
4302
|
-
return _this.transformResult(url_, response_, function (r) { return _this.
|
|
4405
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processDeleteDesignSurfaceContainer(r); });
|
|
4303
4406
|
}
|
|
4304
4407
|
catch (e) {
|
|
4305
4408
|
return rxjs.throwError(e);
|
|
@@ -4309,7 +4412,7 @@
|
|
|
4309
4412
|
return rxjs.throwError(response_);
|
|
4310
4413
|
}));
|
|
4311
4414
|
};
|
|
4312
|
-
DesignAtomsPrintProductApiClient.prototype.
|
|
4415
|
+
DesignAtomsPrintProductApiClient.prototype.processDeleteDesignSurfaceContainer = function (response) {
|
|
4313
4416
|
var e_42, _a;
|
|
4314
4417
|
var _this = this;
|
|
4315
4418
|
var status = response.status;
|
|
@@ -4368,20 +4471,1561 @@
|
|
|
4368
4471
|
return rxjs.of(null);
|
|
4369
4472
|
};
|
|
4370
4473
|
/**
|
|
4371
|
-
* Returns a print-
|
|
4474
|
+
* Returns a print-product container of the specified design file as a json-serialized model.
|
|
4372
4475
|
* @param id Design identifier.
|
|
4373
|
-
* @param
|
|
4476
|
+
* @param containerId Print-product container identifier.
|
|
4374
4477
|
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4375
4478
|
* @param tenantId (optional) Tenant identifier
|
|
4376
4479
|
* @return Success
|
|
4377
4480
|
*/
|
|
4378
|
-
DesignAtomsPrintProductApiClient.prototype.
|
|
4481
|
+
DesignAtomsPrintProductApiClient.prototype.getDesignSurfaceContainerModel = function (id, containerId, privateStorageOwner, tenantId) {
|
|
4379
4482
|
var _this = this;
|
|
4380
|
-
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/
|
|
4483
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/containers/{containerId}/model?";
|
|
4381
4484
|
if (id === undefined || id === null)
|
|
4382
4485
|
throw new Error("The parameter 'id' must be defined.");
|
|
4383
4486
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4384
|
-
if (
|
|
4487
|
+
if (containerId === undefined || containerId === null)
|
|
4488
|
+
throw new Error("The parameter 'containerId' must be defined.");
|
|
4489
|
+
url_ = url_.replace("{containerId}", encodeURIComponent("" + containerId));
|
|
4490
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
4491
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4492
|
+
if (tenantId === null)
|
|
4493
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
4494
|
+
else if (tenantId !== undefined)
|
|
4495
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
4496
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4497
|
+
var options_ = {
|
|
4498
|
+
observe: "response",
|
|
4499
|
+
responseType: "blob",
|
|
4500
|
+
headers: new i1.HttpHeaders({
|
|
4501
|
+
"Accept": "application/json"
|
|
4502
|
+
})
|
|
4503
|
+
};
|
|
4504
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
4505
|
+
return _this.http.request("get", url_, transformedOptions_);
|
|
4506
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
4507
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetDesignSurfaceContainerModel(r); });
|
|
4508
|
+
})).pipe(operators.catchError(function (response_) {
|
|
4509
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
4510
|
+
try {
|
|
4511
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetDesignSurfaceContainerModel(r); });
|
|
4512
|
+
}
|
|
4513
|
+
catch (e) {
|
|
4514
|
+
return rxjs.throwError(e);
|
|
4515
|
+
}
|
|
4516
|
+
}
|
|
4517
|
+
else
|
|
4518
|
+
return rxjs.throwError(response_);
|
|
4519
|
+
}));
|
|
4520
|
+
};
|
|
4521
|
+
DesignAtomsPrintProductApiClient.prototype.processGetDesignSurfaceContainerModel = function (response) {
|
|
4522
|
+
var e_43, _a;
|
|
4523
|
+
var _this = this;
|
|
4524
|
+
var status = response.status;
|
|
4525
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
4526
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
4527
|
+
var _headers = {};
|
|
4528
|
+
if (response.headers) {
|
|
4529
|
+
try {
|
|
4530
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
4531
|
+
var key = _c.value;
|
|
4532
|
+
_headers[key] = response.headers.get(key);
|
|
4533
|
+
}
|
|
4534
|
+
}
|
|
4535
|
+
catch (e_43_1) { e_43 = { error: e_43_1 }; }
|
|
4536
|
+
finally {
|
|
4537
|
+
try {
|
|
4538
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4539
|
+
}
|
|
4540
|
+
finally { if (e_43) throw e_43.error; }
|
|
4541
|
+
}
|
|
4542
|
+
}
|
|
4543
|
+
if (status === 200) {
|
|
4544
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4545
|
+
var result200 = null;
|
|
4546
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4547
|
+
return rxjs.of(result200);
|
|
4548
|
+
}));
|
|
4549
|
+
}
|
|
4550
|
+
else if (status === 404) {
|
|
4551
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4552
|
+
var result404 = null;
|
|
4553
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4554
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
4555
|
+
}));
|
|
4556
|
+
}
|
|
4557
|
+
else if (status === 409) {
|
|
4558
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4559
|
+
var result409 = null;
|
|
4560
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4561
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
4562
|
+
}));
|
|
4563
|
+
}
|
|
4564
|
+
else if (status === 401) {
|
|
4565
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4566
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4567
|
+
}));
|
|
4568
|
+
}
|
|
4569
|
+
else if (status === 403) {
|
|
4570
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4571
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4572
|
+
}));
|
|
4573
|
+
}
|
|
4574
|
+
else if (status !== 200 && status !== 204) {
|
|
4575
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4576
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4577
|
+
}));
|
|
4578
|
+
}
|
|
4579
|
+
return rxjs.of(null);
|
|
4580
|
+
};
|
|
4581
|
+
/**
|
|
4582
|
+
* Updates a specified print-product container in an existing design file with the data provided as a json-serialized model.
|
|
4583
|
+
* @param id Design identifier.
|
|
4584
|
+
* @param containerId Print-product container identifier.
|
|
4585
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4586
|
+
* @param tenantId (optional) Tenant identifier
|
|
4587
|
+
* @param body (optional) Json-serialized model of a print-product container.
|
|
4588
|
+
* @return Success
|
|
4589
|
+
*/
|
|
4590
|
+
DesignAtomsPrintProductApiClient.prototype.updateDesignSurfaceContainerModel = function (id, containerId, privateStorageOwner, tenantId, body) {
|
|
4591
|
+
var _this = this;
|
|
4592
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/containers/{containerId}/model?";
|
|
4593
|
+
if (id === undefined || id === null)
|
|
4594
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
4595
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4596
|
+
if (containerId === undefined || containerId === null)
|
|
4597
|
+
throw new Error("The parameter 'containerId' must be defined.");
|
|
4598
|
+
url_ = url_.replace("{containerId}", encodeURIComponent("" + containerId));
|
|
4599
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
4600
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4601
|
+
if (tenantId === null)
|
|
4602
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
4603
|
+
else if (tenantId !== undefined)
|
|
4604
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
4605
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4606
|
+
var content_ = JSON.stringify(body);
|
|
4607
|
+
var options_ = {
|
|
4608
|
+
body: content_,
|
|
4609
|
+
observe: "response",
|
|
4610
|
+
responseType: "blob",
|
|
4611
|
+
headers: new i1.HttpHeaders({
|
|
4612
|
+
"Content-Type": "application/json",
|
|
4613
|
+
"Accept": "application/json"
|
|
4614
|
+
})
|
|
4615
|
+
};
|
|
4616
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
4617
|
+
return _this.http.request("put", url_, transformedOptions_);
|
|
4618
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
4619
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processUpdateDesignSurfaceContainerModel(r); });
|
|
4620
|
+
})).pipe(operators.catchError(function (response_) {
|
|
4621
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
4622
|
+
try {
|
|
4623
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processUpdateDesignSurfaceContainerModel(r); });
|
|
4624
|
+
}
|
|
4625
|
+
catch (e) {
|
|
4626
|
+
return rxjs.throwError(e);
|
|
4627
|
+
}
|
|
4628
|
+
}
|
|
4629
|
+
else
|
|
4630
|
+
return rxjs.throwError(response_);
|
|
4631
|
+
}));
|
|
4632
|
+
};
|
|
4633
|
+
DesignAtomsPrintProductApiClient.prototype.processUpdateDesignSurfaceContainerModel = function (response) {
|
|
4634
|
+
var e_44, _a;
|
|
4635
|
+
var _this = this;
|
|
4636
|
+
var status = response.status;
|
|
4637
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
4638
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
4639
|
+
var _headers = {};
|
|
4640
|
+
if (response.headers) {
|
|
4641
|
+
try {
|
|
4642
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
4643
|
+
var key = _c.value;
|
|
4644
|
+
_headers[key] = response.headers.get(key);
|
|
4645
|
+
}
|
|
4646
|
+
}
|
|
4647
|
+
catch (e_44_1) { e_44 = { error: e_44_1 }; }
|
|
4648
|
+
finally {
|
|
4649
|
+
try {
|
|
4650
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4651
|
+
}
|
|
4652
|
+
finally { if (e_44) throw e_44.error; }
|
|
4653
|
+
}
|
|
4654
|
+
}
|
|
4655
|
+
if (status === 200) {
|
|
4656
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4657
|
+
var result200 = null;
|
|
4658
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4659
|
+
return rxjs.of(result200);
|
|
4660
|
+
}));
|
|
4661
|
+
}
|
|
4662
|
+
else if (status === 400) {
|
|
4663
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4664
|
+
var result400 = null;
|
|
4665
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4666
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
4667
|
+
}));
|
|
4668
|
+
}
|
|
4669
|
+
else if (status === 404) {
|
|
4670
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4671
|
+
var result404 = null;
|
|
4672
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4673
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
4674
|
+
}));
|
|
4675
|
+
}
|
|
4676
|
+
else if (status === 409) {
|
|
4677
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4678
|
+
var result409 = null;
|
|
4679
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4680
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
4681
|
+
}));
|
|
4682
|
+
}
|
|
4683
|
+
else if (status === 401) {
|
|
4684
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4685
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4686
|
+
}));
|
|
4687
|
+
}
|
|
4688
|
+
else if (status === 403) {
|
|
4689
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4690
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4691
|
+
}));
|
|
4692
|
+
}
|
|
4693
|
+
else if (status !== 200 && status !== 204) {
|
|
4694
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4695
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4696
|
+
}));
|
|
4697
|
+
}
|
|
4698
|
+
return rxjs.of(null);
|
|
4699
|
+
};
|
|
4700
|
+
/**
|
|
4701
|
+
* Inserts a new print-product container provided as a json-serialized model to the certain surface in an existing design file.
|
|
4702
|
+
Print-product container identifier will be reset by auto-generated value to prevent identifiers collisions.
|
|
4703
|
+
* @param id Design identifier.
|
|
4704
|
+
* @param surfaceId (optional) Print-product surface identifier.
|
|
4705
|
+
* @param index (optional) Container index within the conatiners list of a surface.
|
|
4706
|
+
* @param top (optional) Y axis position.
|
|
4707
|
+
* @param left (optional) X axis position.
|
|
4708
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4709
|
+
* @param tenantId (optional) Tenant identifier
|
|
4710
|
+
* @param body (optional) Json-serialized model of a new print-product container.
|
|
4711
|
+
* @return Success
|
|
4712
|
+
*/
|
|
4713
|
+
DesignAtomsPrintProductApiClient.prototype.addDesignSurfaceContainerModel = function (id, surfaceId, index, top, left, privateStorageOwner, tenantId, body) {
|
|
4714
|
+
var _this = this;
|
|
4715
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/containers/model?";
|
|
4716
|
+
if (id === undefined || id === null)
|
|
4717
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
4718
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4719
|
+
if (surfaceId !== undefined && surfaceId !== null)
|
|
4720
|
+
url_ += "surfaceId=" + encodeURIComponent("" + surfaceId) + "&";
|
|
4721
|
+
if (index !== undefined && index !== null)
|
|
4722
|
+
url_ += "index=" + encodeURIComponent("" + index) + "&";
|
|
4723
|
+
if (top === null)
|
|
4724
|
+
throw new Error("The parameter 'top' cannot be null.");
|
|
4725
|
+
else if (top !== undefined)
|
|
4726
|
+
url_ += "top=" + encodeURIComponent("" + top) + "&";
|
|
4727
|
+
if (left === null)
|
|
4728
|
+
throw new Error("The parameter 'left' cannot be null.");
|
|
4729
|
+
else if (left !== undefined)
|
|
4730
|
+
url_ += "left=" + encodeURIComponent("" + left) + "&";
|
|
4731
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
4732
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4733
|
+
if (tenantId === null)
|
|
4734
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
4735
|
+
else if (tenantId !== undefined)
|
|
4736
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
4737
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4738
|
+
var content_ = JSON.stringify(body);
|
|
4739
|
+
var options_ = {
|
|
4740
|
+
body: content_,
|
|
4741
|
+
observe: "response",
|
|
4742
|
+
responseType: "blob",
|
|
4743
|
+
headers: new i1.HttpHeaders({
|
|
4744
|
+
"Content-Type": "application/json",
|
|
4745
|
+
"Accept": "application/json"
|
|
4746
|
+
})
|
|
4747
|
+
};
|
|
4748
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
4749
|
+
return _this.http.request("post", url_, transformedOptions_);
|
|
4750
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
4751
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processAddDesignSurfaceContainerModel(r); });
|
|
4752
|
+
})).pipe(operators.catchError(function (response_) {
|
|
4753
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
4754
|
+
try {
|
|
4755
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processAddDesignSurfaceContainerModel(r); });
|
|
4756
|
+
}
|
|
4757
|
+
catch (e) {
|
|
4758
|
+
return rxjs.throwError(e);
|
|
4759
|
+
}
|
|
4760
|
+
}
|
|
4761
|
+
else
|
|
4762
|
+
return rxjs.throwError(response_);
|
|
4763
|
+
}));
|
|
4764
|
+
};
|
|
4765
|
+
DesignAtomsPrintProductApiClient.prototype.processAddDesignSurfaceContainerModel = function (response) {
|
|
4766
|
+
var e_45, _a;
|
|
4767
|
+
var _this = this;
|
|
4768
|
+
var status = response.status;
|
|
4769
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
4770
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
4771
|
+
var _headers = {};
|
|
4772
|
+
if (response.headers) {
|
|
4773
|
+
try {
|
|
4774
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
4775
|
+
var key = _c.value;
|
|
4776
|
+
_headers[key] = response.headers.get(key);
|
|
4777
|
+
}
|
|
4778
|
+
}
|
|
4779
|
+
catch (e_45_1) { e_45 = { error: e_45_1 }; }
|
|
4780
|
+
finally {
|
|
4781
|
+
try {
|
|
4782
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4783
|
+
}
|
|
4784
|
+
finally { if (e_45) throw e_45.error; }
|
|
4785
|
+
}
|
|
4786
|
+
}
|
|
4787
|
+
if (status === 200) {
|
|
4788
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4789
|
+
var result200 = null;
|
|
4790
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4791
|
+
return rxjs.of(result200);
|
|
4792
|
+
}));
|
|
4793
|
+
}
|
|
4794
|
+
else if (status === 400) {
|
|
4795
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4796
|
+
var result400 = null;
|
|
4797
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4798
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
4799
|
+
}));
|
|
4800
|
+
}
|
|
4801
|
+
else if (status === 404) {
|
|
4802
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4803
|
+
var result404 = null;
|
|
4804
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4805
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
4806
|
+
}));
|
|
4807
|
+
}
|
|
4808
|
+
else if (status === 401) {
|
|
4809
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4810
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4811
|
+
}));
|
|
4812
|
+
}
|
|
4813
|
+
else if (status === 403) {
|
|
4814
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4815
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4816
|
+
}));
|
|
4817
|
+
}
|
|
4818
|
+
else if (status !== 200 && status !== 204) {
|
|
4819
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4820
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4821
|
+
}));
|
|
4822
|
+
}
|
|
4823
|
+
return rxjs.of(null);
|
|
4824
|
+
};
|
|
4825
|
+
/**
|
|
4826
|
+
* Returns a list of print-product items descriptions of the specified design file.
|
|
4827
|
+
* @param id Design identifier.
|
|
4828
|
+
* @param surfaceId (optional) Print-product surface identifier.
|
|
4829
|
+
* @param containerId (optional) Print-product container identifier.
|
|
4830
|
+
* @param parentItemId (optional) Print-product item identifier.
|
|
4831
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4832
|
+
* @param tenantId (optional) Tenant identifier
|
|
4833
|
+
* @return Success
|
|
4834
|
+
*/
|
|
4835
|
+
DesignAtomsPrintProductApiClient.prototype.getDesignSurfaceItems = function (id, surfaceId, containerId, parentItemId, privateStorageOwner, tenantId) {
|
|
4836
|
+
var _this = this;
|
|
4837
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/items?";
|
|
4838
|
+
if (id === undefined || id === null)
|
|
4839
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
4840
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4841
|
+
if (surfaceId !== undefined && surfaceId !== null)
|
|
4842
|
+
url_ += "surfaceId=" + encodeURIComponent("" + surfaceId) + "&";
|
|
4843
|
+
if (containerId !== undefined && containerId !== null)
|
|
4844
|
+
url_ += "containerId=" + encodeURIComponent("" + containerId) + "&";
|
|
4845
|
+
if (parentItemId !== undefined && parentItemId !== null)
|
|
4846
|
+
url_ += "parentItemId=" + encodeURIComponent("" + parentItemId) + "&";
|
|
4847
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
4848
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4849
|
+
if (tenantId === null)
|
|
4850
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
4851
|
+
else if (tenantId !== undefined)
|
|
4852
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
4853
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4854
|
+
var options_ = {
|
|
4855
|
+
observe: "response",
|
|
4856
|
+
responseType: "blob",
|
|
4857
|
+
headers: new i1.HttpHeaders({
|
|
4858
|
+
"Accept": "application/json"
|
|
4859
|
+
})
|
|
4860
|
+
};
|
|
4861
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
4862
|
+
return _this.http.request("get", url_, transformedOptions_);
|
|
4863
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
4864
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetDesignSurfaceItems(r); });
|
|
4865
|
+
})).pipe(operators.catchError(function (response_) {
|
|
4866
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
4867
|
+
try {
|
|
4868
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetDesignSurfaceItems(r); });
|
|
4869
|
+
}
|
|
4870
|
+
catch (e) {
|
|
4871
|
+
return rxjs.throwError(e);
|
|
4872
|
+
}
|
|
4873
|
+
}
|
|
4874
|
+
else
|
|
4875
|
+
return rxjs.throwError(response_);
|
|
4876
|
+
}));
|
|
4877
|
+
};
|
|
4878
|
+
DesignAtomsPrintProductApiClient.prototype.processGetDesignSurfaceItems = function (response) {
|
|
4879
|
+
var e_46, _a;
|
|
4880
|
+
var _this = this;
|
|
4881
|
+
var status = response.status;
|
|
4882
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
4883
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
4884
|
+
var _headers = {};
|
|
4885
|
+
if (response.headers) {
|
|
4886
|
+
try {
|
|
4887
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
4888
|
+
var key = _c.value;
|
|
4889
|
+
_headers[key] = response.headers.get(key);
|
|
4890
|
+
}
|
|
4891
|
+
}
|
|
4892
|
+
catch (e_46_1) { e_46 = { error: e_46_1 }; }
|
|
4893
|
+
finally {
|
|
4894
|
+
try {
|
|
4895
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4896
|
+
}
|
|
4897
|
+
finally { if (e_46) throw e_46.error; }
|
|
4898
|
+
}
|
|
4899
|
+
}
|
|
4900
|
+
if (status === 200) {
|
|
4901
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4902
|
+
var result200 = null;
|
|
4903
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4904
|
+
return rxjs.of(result200);
|
|
4905
|
+
}));
|
|
4906
|
+
}
|
|
4907
|
+
else if (status === 404) {
|
|
4908
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4909
|
+
var result404 = null;
|
|
4910
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4911
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
4912
|
+
}));
|
|
4913
|
+
}
|
|
4914
|
+
else if (status === 401) {
|
|
4915
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4916
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4917
|
+
}));
|
|
4918
|
+
}
|
|
4919
|
+
else if (status === 403) {
|
|
4920
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4921
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4922
|
+
}));
|
|
4923
|
+
}
|
|
4924
|
+
else if (status !== 200 && status !== 204) {
|
|
4925
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4926
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4927
|
+
}));
|
|
4928
|
+
}
|
|
4929
|
+
return rxjs.of(null);
|
|
4930
|
+
};
|
|
4931
|
+
/**
|
|
4932
|
+
* Deletes a specified print-product item in an existing design file.
|
|
4933
|
+
* @param id Design identifier.
|
|
4934
|
+
* @param itemId Print-product item identifier.
|
|
4935
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4936
|
+
* @param tenantId (optional) Tenant identifier
|
|
4937
|
+
* @return No Content
|
|
4938
|
+
*/
|
|
4939
|
+
DesignAtomsPrintProductApiClient.prototype.deleteDesignSurfaceItem = function (id, itemId, privateStorageOwner, tenantId) {
|
|
4940
|
+
var _this = this;
|
|
4941
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/items/{itemId}?";
|
|
4942
|
+
if (id === undefined || id === null)
|
|
4943
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
4944
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4945
|
+
if (itemId === undefined || itemId === null)
|
|
4946
|
+
throw new Error("The parameter 'itemId' must be defined.");
|
|
4947
|
+
url_ = url_.replace("{itemId}", encodeURIComponent("" + itemId));
|
|
4948
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
4949
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
4950
|
+
if (tenantId === null)
|
|
4951
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
4952
|
+
else if (tenantId !== undefined)
|
|
4953
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
4954
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4955
|
+
var options_ = {
|
|
4956
|
+
observe: "response",
|
|
4957
|
+
responseType: "blob",
|
|
4958
|
+
headers: new i1.HttpHeaders({})
|
|
4959
|
+
};
|
|
4960
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
4961
|
+
return _this.http.request("delete", url_, transformedOptions_);
|
|
4962
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
4963
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processDeleteDesignSurfaceItem(r); });
|
|
4964
|
+
})).pipe(operators.catchError(function (response_) {
|
|
4965
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
4966
|
+
try {
|
|
4967
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processDeleteDesignSurfaceItem(r); });
|
|
4968
|
+
}
|
|
4969
|
+
catch (e) {
|
|
4970
|
+
return rxjs.throwError(e);
|
|
4971
|
+
}
|
|
4972
|
+
}
|
|
4973
|
+
else
|
|
4974
|
+
return rxjs.throwError(response_);
|
|
4975
|
+
}));
|
|
4976
|
+
};
|
|
4977
|
+
DesignAtomsPrintProductApiClient.prototype.processDeleteDesignSurfaceItem = function (response) {
|
|
4978
|
+
var e_47, _a;
|
|
4979
|
+
var _this = this;
|
|
4980
|
+
var status = response.status;
|
|
4981
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
4982
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
4983
|
+
var _headers = {};
|
|
4984
|
+
if (response.headers) {
|
|
4985
|
+
try {
|
|
4986
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
4987
|
+
var key = _c.value;
|
|
4988
|
+
_headers[key] = response.headers.get(key);
|
|
4989
|
+
}
|
|
4990
|
+
}
|
|
4991
|
+
catch (e_47_1) { e_47 = { error: e_47_1 }; }
|
|
4992
|
+
finally {
|
|
4993
|
+
try {
|
|
4994
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4995
|
+
}
|
|
4996
|
+
finally { if (e_47) throw e_47.error; }
|
|
4997
|
+
}
|
|
4998
|
+
}
|
|
4999
|
+
if (status === 204) {
|
|
5000
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5001
|
+
return rxjs.of(null);
|
|
5002
|
+
}));
|
|
5003
|
+
}
|
|
5004
|
+
else if (status === 404) {
|
|
5005
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5006
|
+
var result404 = null;
|
|
5007
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5008
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5009
|
+
}));
|
|
5010
|
+
}
|
|
5011
|
+
else if (status === 409) {
|
|
5012
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5013
|
+
var result409 = null;
|
|
5014
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5015
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
5016
|
+
}));
|
|
5017
|
+
}
|
|
5018
|
+
else if (status === 401) {
|
|
5019
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5020
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5021
|
+
}));
|
|
5022
|
+
}
|
|
5023
|
+
else if (status === 403) {
|
|
5024
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5025
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5026
|
+
}));
|
|
5027
|
+
}
|
|
5028
|
+
else if (status !== 200 && status !== 204) {
|
|
5029
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5030
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5031
|
+
}));
|
|
5032
|
+
}
|
|
5033
|
+
return rxjs.of(null);
|
|
5034
|
+
};
|
|
5035
|
+
/**
|
|
5036
|
+
* Returns a print-product item of the specified design file as a json-serialized model.
|
|
5037
|
+
* @param id Design identifier.
|
|
5038
|
+
* @param itemId Print-product item identifier.
|
|
5039
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
5040
|
+
* @param tenantId (optional) Tenant identifier
|
|
5041
|
+
* @return Success
|
|
5042
|
+
*/
|
|
5043
|
+
DesignAtomsPrintProductApiClient.prototype.getDesignSurfaceItemModel = function (id, itemId, privateStorageOwner, tenantId) {
|
|
5044
|
+
var _this = this;
|
|
5045
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/items/{itemId}/model?";
|
|
5046
|
+
if (id === undefined || id === null)
|
|
5047
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
5048
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
5049
|
+
if (itemId === undefined || itemId === null)
|
|
5050
|
+
throw new Error("The parameter 'itemId' must be defined.");
|
|
5051
|
+
url_ = url_.replace("{itemId}", encodeURIComponent("" + itemId));
|
|
5052
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
5053
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
5054
|
+
if (tenantId === null)
|
|
5055
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
5056
|
+
else if (tenantId !== undefined)
|
|
5057
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
5058
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5059
|
+
var options_ = {
|
|
5060
|
+
observe: "response",
|
|
5061
|
+
responseType: "blob",
|
|
5062
|
+
headers: new i1.HttpHeaders({
|
|
5063
|
+
"Accept": "application/json"
|
|
5064
|
+
})
|
|
5065
|
+
};
|
|
5066
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
5067
|
+
return _this.http.request("get", url_, transformedOptions_);
|
|
5068
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
5069
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetDesignSurfaceItemModel(r); });
|
|
5070
|
+
})).pipe(operators.catchError(function (response_) {
|
|
5071
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
5072
|
+
try {
|
|
5073
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetDesignSurfaceItemModel(r); });
|
|
5074
|
+
}
|
|
5075
|
+
catch (e) {
|
|
5076
|
+
return rxjs.throwError(e);
|
|
5077
|
+
}
|
|
5078
|
+
}
|
|
5079
|
+
else
|
|
5080
|
+
return rxjs.throwError(response_);
|
|
5081
|
+
}));
|
|
5082
|
+
};
|
|
5083
|
+
DesignAtomsPrintProductApiClient.prototype.processGetDesignSurfaceItemModel = function (response) {
|
|
5084
|
+
var e_48, _a;
|
|
5085
|
+
var _this = this;
|
|
5086
|
+
var status = response.status;
|
|
5087
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
5088
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
5089
|
+
var _headers = {};
|
|
5090
|
+
if (response.headers) {
|
|
5091
|
+
try {
|
|
5092
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
5093
|
+
var key = _c.value;
|
|
5094
|
+
_headers[key] = response.headers.get(key);
|
|
5095
|
+
}
|
|
5096
|
+
}
|
|
5097
|
+
catch (e_48_1) { e_48 = { error: e_48_1 }; }
|
|
5098
|
+
finally {
|
|
5099
|
+
try {
|
|
5100
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5101
|
+
}
|
|
5102
|
+
finally { if (e_48) throw e_48.error; }
|
|
5103
|
+
}
|
|
5104
|
+
}
|
|
5105
|
+
if (status === 200) {
|
|
5106
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5107
|
+
var result200 = null;
|
|
5108
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5109
|
+
return rxjs.of(result200);
|
|
5110
|
+
}));
|
|
5111
|
+
}
|
|
5112
|
+
else if (status === 404) {
|
|
5113
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5114
|
+
var result404 = null;
|
|
5115
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5116
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5117
|
+
}));
|
|
5118
|
+
}
|
|
5119
|
+
else if (status === 409) {
|
|
5120
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5121
|
+
var result409 = null;
|
|
5122
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5123
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
5124
|
+
}));
|
|
5125
|
+
}
|
|
5126
|
+
else if (status === 401) {
|
|
5127
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5128
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5129
|
+
}));
|
|
5130
|
+
}
|
|
5131
|
+
else if (status === 403) {
|
|
5132
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5133
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5134
|
+
}));
|
|
5135
|
+
}
|
|
5136
|
+
else if (status !== 200 && status !== 204) {
|
|
5137
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5138
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5139
|
+
}));
|
|
5140
|
+
}
|
|
5141
|
+
return rxjs.of(null);
|
|
5142
|
+
};
|
|
5143
|
+
/**
|
|
5144
|
+
* Updates a specified print-product surface item in an existing design file with the data provided as a json-serialized item model.
|
|
5145
|
+
* @param id Design identifier.
|
|
5146
|
+
* @param itemId Print-product item identifier.
|
|
5147
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
5148
|
+
* @param tenantId (optional) Tenant identifier
|
|
5149
|
+
* @param body (optional) Json-serialized model of a print-product item.
|
|
5150
|
+
* @return Success
|
|
5151
|
+
*/
|
|
5152
|
+
DesignAtomsPrintProductApiClient.prototype.updateDesignSurfaceItemModel = function (id, itemId, privateStorageOwner, tenantId, body) {
|
|
5153
|
+
var _this = this;
|
|
5154
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/items/{itemId}/model?";
|
|
5155
|
+
if (id === undefined || id === null)
|
|
5156
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
5157
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
5158
|
+
if (itemId === undefined || itemId === null)
|
|
5159
|
+
throw new Error("The parameter 'itemId' must be defined.");
|
|
5160
|
+
url_ = url_.replace("{itemId}", encodeURIComponent("" + itemId));
|
|
5161
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
5162
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
5163
|
+
if (tenantId === null)
|
|
5164
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
5165
|
+
else if (tenantId !== undefined)
|
|
5166
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
5167
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5168
|
+
var content_ = JSON.stringify(body);
|
|
5169
|
+
var options_ = {
|
|
5170
|
+
body: content_,
|
|
5171
|
+
observe: "response",
|
|
5172
|
+
responseType: "blob",
|
|
5173
|
+
headers: new i1.HttpHeaders({
|
|
5174
|
+
"Content-Type": "application/json",
|
|
5175
|
+
"Accept": "application/json"
|
|
5176
|
+
})
|
|
5177
|
+
};
|
|
5178
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
5179
|
+
return _this.http.request("put", url_, transformedOptions_);
|
|
5180
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
5181
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processUpdateDesignSurfaceItemModel(r); });
|
|
5182
|
+
})).pipe(operators.catchError(function (response_) {
|
|
5183
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
5184
|
+
try {
|
|
5185
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processUpdateDesignSurfaceItemModel(r); });
|
|
5186
|
+
}
|
|
5187
|
+
catch (e) {
|
|
5188
|
+
return rxjs.throwError(e);
|
|
5189
|
+
}
|
|
5190
|
+
}
|
|
5191
|
+
else
|
|
5192
|
+
return rxjs.throwError(response_);
|
|
5193
|
+
}));
|
|
5194
|
+
};
|
|
5195
|
+
DesignAtomsPrintProductApiClient.prototype.processUpdateDesignSurfaceItemModel = function (response) {
|
|
5196
|
+
var e_49, _a;
|
|
5197
|
+
var _this = this;
|
|
5198
|
+
var status = response.status;
|
|
5199
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
5200
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
5201
|
+
var _headers = {};
|
|
5202
|
+
if (response.headers) {
|
|
5203
|
+
try {
|
|
5204
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
5205
|
+
var key = _c.value;
|
|
5206
|
+
_headers[key] = response.headers.get(key);
|
|
5207
|
+
}
|
|
5208
|
+
}
|
|
5209
|
+
catch (e_49_1) { e_49 = { error: e_49_1 }; }
|
|
5210
|
+
finally {
|
|
5211
|
+
try {
|
|
5212
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5213
|
+
}
|
|
5214
|
+
finally { if (e_49) throw e_49.error; }
|
|
5215
|
+
}
|
|
5216
|
+
}
|
|
5217
|
+
if (status === 200) {
|
|
5218
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5219
|
+
var result200 = null;
|
|
5220
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5221
|
+
return rxjs.of(result200);
|
|
5222
|
+
}));
|
|
5223
|
+
}
|
|
5224
|
+
else if (status === 400) {
|
|
5225
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5226
|
+
var result400 = null;
|
|
5227
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5228
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
5229
|
+
}));
|
|
5230
|
+
}
|
|
5231
|
+
else if (status === 404) {
|
|
5232
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5233
|
+
var result404 = null;
|
|
5234
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5235
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5236
|
+
}));
|
|
5237
|
+
}
|
|
5238
|
+
else if (status === 409) {
|
|
5239
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5240
|
+
var result409 = null;
|
|
5241
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5242
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
5243
|
+
}));
|
|
5244
|
+
}
|
|
5245
|
+
else if (status === 401) {
|
|
5246
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5247
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5248
|
+
}));
|
|
5249
|
+
}
|
|
5250
|
+
else if (status === 403) {
|
|
5251
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5252
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5253
|
+
}));
|
|
5254
|
+
}
|
|
5255
|
+
else if (status !== 200 && status !== 204) {
|
|
5256
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5257
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5258
|
+
}));
|
|
5259
|
+
}
|
|
5260
|
+
return rxjs.of(null);
|
|
5261
|
+
};
|
|
5262
|
+
/**
|
|
5263
|
+
* Inserts a new print-product item provided as a json-serialized model to the specified surface in an existing design file.
|
|
5264
|
+
Item identifier will be reset by auto-generated value to prevent identifiers collisions.
|
|
5265
|
+
* @param id Design identifier.
|
|
5266
|
+
* @param containerId (optional) Parent surface identifier.
|
|
5267
|
+
* @param index (optional) Item index within the items list of a container.
|
|
5268
|
+
* @param top (optional) Y axis position.
|
|
5269
|
+
* @param left (optional) X axis position.
|
|
5270
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
5271
|
+
* @param tenantId (optional) Tenant identifier
|
|
5272
|
+
* @param body (optional) Json-serialized model of a new print-product item.
|
|
5273
|
+
* @return Success
|
|
5274
|
+
*/
|
|
5275
|
+
DesignAtomsPrintProductApiClient.prototype.addDesignSurfaceItemModel = function (id, containerId, index, top, left, privateStorageOwner, tenantId, body) {
|
|
5276
|
+
var _this = this;
|
|
5277
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/items/model?";
|
|
5278
|
+
if (id === undefined || id === null)
|
|
5279
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
5280
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
5281
|
+
if (containerId !== undefined && containerId !== null)
|
|
5282
|
+
url_ += "containerId=" + encodeURIComponent("" + containerId) + "&";
|
|
5283
|
+
if (index !== undefined && index !== null)
|
|
5284
|
+
url_ += "index=" + encodeURIComponent("" + index) + "&";
|
|
5285
|
+
if (top === null)
|
|
5286
|
+
throw new Error("The parameter 'top' cannot be null.");
|
|
5287
|
+
else if (top !== undefined)
|
|
5288
|
+
url_ += "top=" + encodeURIComponent("" + top) + "&";
|
|
5289
|
+
if (left === null)
|
|
5290
|
+
throw new Error("The parameter 'left' cannot be null.");
|
|
5291
|
+
else if (left !== undefined)
|
|
5292
|
+
url_ += "left=" + encodeURIComponent("" + left) + "&";
|
|
5293
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
5294
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
5295
|
+
if (tenantId === null)
|
|
5296
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
5297
|
+
else if (tenantId !== undefined)
|
|
5298
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
5299
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5300
|
+
var content_ = JSON.stringify(body);
|
|
5301
|
+
var options_ = {
|
|
5302
|
+
body: content_,
|
|
5303
|
+
observe: "response",
|
|
5304
|
+
responseType: "blob",
|
|
5305
|
+
headers: new i1.HttpHeaders({
|
|
5306
|
+
"Content-Type": "application/json",
|
|
5307
|
+
"Accept": "application/json"
|
|
5308
|
+
})
|
|
5309
|
+
};
|
|
5310
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
5311
|
+
return _this.http.request("post", url_, transformedOptions_);
|
|
5312
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
5313
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processAddDesignSurfaceItemModel(r); });
|
|
5314
|
+
})).pipe(operators.catchError(function (response_) {
|
|
5315
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
5316
|
+
try {
|
|
5317
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processAddDesignSurfaceItemModel(r); });
|
|
5318
|
+
}
|
|
5319
|
+
catch (e) {
|
|
5320
|
+
return rxjs.throwError(e);
|
|
5321
|
+
}
|
|
5322
|
+
}
|
|
5323
|
+
else
|
|
5324
|
+
return rxjs.throwError(response_);
|
|
5325
|
+
}));
|
|
5326
|
+
};
|
|
5327
|
+
DesignAtomsPrintProductApiClient.prototype.processAddDesignSurfaceItemModel = function (response) {
|
|
5328
|
+
var e_50, _a;
|
|
5329
|
+
var _this = this;
|
|
5330
|
+
var status = response.status;
|
|
5331
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
5332
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
5333
|
+
var _headers = {};
|
|
5334
|
+
if (response.headers) {
|
|
5335
|
+
try {
|
|
5336
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
5337
|
+
var key = _c.value;
|
|
5338
|
+
_headers[key] = response.headers.get(key);
|
|
5339
|
+
}
|
|
5340
|
+
}
|
|
5341
|
+
catch (e_50_1) { e_50 = { error: e_50_1 }; }
|
|
5342
|
+
finally {
|
|
5343
|
+
try {
|
|
5344
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5345
|
+
}
|
|
5346
|
+
finally { if (e_50) throw e_50.error; }
|
|
5347
|
+
}
|
|
5348
|
+
}
|
|
5349
|
+
if (status === 200) {
|
|
5350
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5351
|
+
var result200 = null;
|
|
5352
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5353
|
+
return rxjs.of(result200);
|
|
5354
|
+
}));
|
|
5355
|
+
}
|
|
5356
|
+
else if (status === 400) {
|
|
5357
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5358
|
+
var result400 = null;
|
|
5359
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5360
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
5361
|
+
}));
|
|
5362
|
+
}
|
|
5363
|
+
else if (status === 404) {
|
|
5364
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5365
|
+
var result404 = null;
|
|
5366
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5367
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5368
|
+
}));
|
|
5369
|
+
}
|
|
5370
|
+
else if (status === 401) {
|
|
5371
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5372
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5373
|
+
}));
|
|
5374
|
+
}
|
|
5375
|
+
else if (status === 403) {
|
|
5376
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5377
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5378
|
+
}));
|
|
5379
|
+
}
|
|
5380
|
+
else if (status !== 200 && status !== 204) {
|
|
5381
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5382
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5383
|
+
}));
|
|
5384
|
+
}
|
|
5385
|
+
return rxjs.of(null);
|
|
5386
|
+
};
|
|
5387
|
+
/**
|
|
5388
|
+
* Returns a print-product of the specified design file as a json-serialized model.
|
|
5389
|
+
* @param id Design identifier.
|
|
5390
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
5391
|
+
* @param tenantId (optional) Tenant identifier
|
|
5392
|
+
* @return Success
|
|
5393
|
+
*/
|
|
5394
|
+
DesignAtomsPrintProductApiClient.prototype.getDesignProductModel = function (id, privateStorageOwner, tenantId) {
|
|
5395
|
+
var _this = this;
|
|
5396
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/model?";
|
|
5397
|
+
if (id === undefined || id === null)
|
|
5398
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
5399
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
5400
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
5401
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
5402
|
+
if (tenantId === null)
|
|
5403
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
5404
|
+
else if (tenantId !== undefined)
|
|
5405
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
5406
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5407
|
+
var options_ = {
|
|
5408
|
+
observe: "response",
|
|
5409
|
+
responseType: "blob",
|
|
5410
|
+
headers: new i1.HttpHeaders({
|
|
5411
|
+
"Accept": "application/json"
|
|
5412
|
+
})
|
|
5413
|
+
};
|
|
5414
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
5415
|
+
return _this.http.request("get", url_, transformedOptions_);
|
|
5416
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
5417
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetDesignProductModel(r); });
|
|
5418
|
+
})).pipe(operators.catchError(function (response_) {
|
|
5419
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
5420
|
+
try {
|
|
5421
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetDesignProductModel(r); });
|
|
5422
|
+
}
|
|
5423
|
+
catch (e) {
|
|
5424
|
+
return rxjs.throwError(e);
|
|
5425
|
+
}
|
|
5426
|
+
}
|
|
5427
|
+
else
|
|
5428
|
+
return rxjs.throwError(response_);
|
|
5429
|
+
}));
|
|
5430
|
+
};
|
|
5431
|
+
DesignAtomsPrintProductApiClient.prototype.processGetDesignProductModel = function (response) {
|
|
5432
|
+
var e_51, _a;
|
|
5433
|
+
var _this = this;
|
|
5434
|
+
var status = response.status;
|
|
5435
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
5436
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
5437
|
+
var _headers = {};
|
|
5438
|
+
if (response.headers) {
|
|
5439
|
+
try {
|
|
5440
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
5441
|
+
var key = _c.value;
|
|
5442
|
+
_headers[key] = response.headers.get(key);
|
|
5443
|
+
}
|
|
5444
|
+
}
|
|
5445
|
+
catch (e_51_1) { e_51 = { error: e_51_1 }; }
|
|
5446
|
+
finally {
|
|
5447
|
+
try {
|
|
5448
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5449
|
+
}
|
|
5450
|
+
finally { if (e_51) throw e_51.error; }
|
|
5451
|
+
}
|
|
5452
|
+
}
|
|
5453
|
+
if (status === 200) {
|
|
5454
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5455
|
+
var result200 = null;
|
|
5456
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5457
|
+
return rxjs.of(result200);
|
|
5458
|
+
}));
|
|
5459
|
+
}
|
|
5460
|
+
else if (status === 404) {
|
|
5461
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5462
|
+
var result404 = null;
|
|
5463
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5464
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5465
|
+
}));
|
|
5466
|
+
}
|
|
5467
|
+
else if (status === 401) {
|
|
5468
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5469
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5470
|
+
}));
|
|
5471
|
+
}
|
|
5472
|
+
else if (status === 403) {
|
|
5473
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5474
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5475
|
+
}));
|
|
5476
|
+
}
|
|
5477
|
+
else if (status !== 200 && status !== 204) {
|
|
5478
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5479
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5480
|
+
}));
|
|
5481
|
+
}
|
|
5482
|
+
return rxjs.of(null);
|
|
5483
|
+
};
|
|
5484
|
+
/**
|
|
5485
|
+
* Updates a print-product provided as a json-serialized model is the specified design file.
|
|
5486
|
+
* @param id Design identifier.
|
|
5487
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
5488
|
+
* @param tenantId (optional) Tenant identifier
|
|
5489
|
+
* @param body (optional) Json-serialized model of a print-product .
|
|
5490
|
+
* @return No Content
|
|
5491
|
+
*/
|
|
5492
|
+
DesignAtomsPrintProductApiClient.prototype.updateDesignProductModel = function (id, privateStorageOwner, tenantId, body) {
|
|
5493
|
+
var _this = this;
|
|
5494
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/model?";
|
|
5495
|
+
if (id === undefined || id === null)
|
|
5496
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
5497
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
5498
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
5499
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
5500
|
+
if (tenantId === null)
|
|
5501
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
5502
|
+
else if (tenantId !== undefined)
|
|
5503
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
5504
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5505
|
+
var content_ = JSON.stringify(body);
|
|
5506
|
+
var options_ = {
|
|
5507
|
+
body: content_,
|
|
5508
|
+
observe: "response",
|
|
5509
|
+
responseType: "blob",
|
|
5510
|
+
headers: new i1.HttpHeaders({
|
|
5511
|
+
"Content-Type": "application/json",
|
|
5512
|
+
})
|
|
5513
|
+
};
|
|
5514
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
5515
|
+
return _this.http.request("put", url_, transformedOptions_);
|
|
5516
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
5517
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processUpdateDesignProductModel(r); });
|
|
5518
|
+
})).pipe(operators.catchError(function (response_) {
|
|
5519
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
5520
|
+
try {
|
|
5521
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processUpdateDesignProductModel(r); });
|
|
5522
|
+
}
|
|
5523
|
+
catch (e) {
|
|
5524
|
+
return rxjs.throwError(e);
|
|
5525
|
+
}
|
|
5526
|
+
}
|
|
5527
|
+
else
|
|
5528
|
+
return rxjs.throwError(response_);
|
|
5529
|
+
}));
|
|
5530
|
+
};
|
|
5531
|
+
DesignAtomsPrintProductApiClient.prototype.processUpdateDesignProductModel = function (response) {
|
|
5532
|
+
var e_52, _a;
|
|
5533
|
+
var _this = this;
|
|
5534
|
+
var status = response.status;
|
|
5535
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
5536
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
5537
|
+
var _headers = {};
|
|
5538
|
+
if (response.headers) {
|
|
5539
|
+
try {
|
|
5540
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
5541
|
+
var key = _c.value;
|
|
5542
|
+
_headers[key] = response.headers.get(key);
|
|
5543
|
+
}
|
|
5544
|
+
}
|
|
5545
|
+
catch (e_52_1) { e_52 = { error: e_52_1 }; }
|
|
5546
|
+
finally {
|
|
5547
|
+
try {
|
|
5548
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5549
|
+
}
|
|
5550
|
+
finally { if (e_52) throw e_52.error; }
|
|
5551
|
+
}
|
|
5552
|
+
}
|
|
5553
|
+
if (status === 204) {
|
|
5554
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5555
|
+
return rxjs.of(null);
|
|
5556
|
+
}));
|
|
5557
|
+
}
|
|
5558
|
+
else if (status === 404) {
|
|
5559
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5560
|
+
var result404 = null;
|
|
5561
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5562
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5563
|
+
}));
|
|
5564
|
+
}
|
|
5565
|
+
else if (status === 401) {
|
|
5566
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5567
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5568
|
+
}));
|
|
5569
|
+
}
|
|
5570
|
+
else if (status === 403) {
|
|
5571
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5572
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5573
|
+
}));
|
|
5574
|
+
}
|
|
5575
|
+
else if (status !== 200 && status !== 204) {
|
|
5576
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5577
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5578
|
+
}));
|
|
5579
|
+
}
|
|
5580
|
+
return rxjs.of(null);
|
|
5581
|
+
};
|
|
5582
|
+
/**
|
|
5583
|
+
* Returns a list of print-area descriptions of the specified design file.
|
|
5584
|
+
* @param id Design identifier.
|
|
5585
|
+
* @param surfaceId (optional)
|
|
5586
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
5587
|
+
* @param tenantId (optional) Tenant identifier
|
|
5588
|
+
* @return Success
|
|
5589
|
+
*/
|
|
5590
|
+
DesignAtomsPrintProductApiClient.prototype.getDesignPrintAreas = function (id, surfaceId, privateStorageOwner, tenantId) {
|
|
5591
|
+
var _this = this;
|
|
5592
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/print-areas?";
|
|
5593
|
+
if (id === undefined || id === null)
|
|
5594
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
5595
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
5596
|
+
if (surfaceId !== undefined && surfaceId !== null)
|
|
5597
|
+
url_ += "surfaceId=" + encodeURIComponent("" + surfaceId) + "&";
|
|
5598
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
5599
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
5600
|
+
if (tenantId === null)
|
|
5601
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
5602
|
+
else if (tenantId !== undefined)
|
|
5603
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
5604
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5605
|
+
var options_ = {
|
|
5606
|
+
observe: "response",
|
|
5607
|
+
responseType: "blob",
|
|
5608
|
+
headers: new i1.HttpHeaders({
|
|
5609
|
+
"Accept": "application/json"
|
|
5610
|
+
})
|
|
5611
|
+
};
|
|
5612
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
5613
|
+
return _this.http.request("get", url_, transformedOptions_);
|
|
5614
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
5615
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetDesignPrintAreas(r); });
|
|
5616
|
+
})).pipe(operators.catchError(function (response_) {
|
|
5617
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
5618
|
+
try {
|
|
5619
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetDesignPrintAreas(r); });
|
|
5620
|
+
}
|
|
5621
|
+
catch (e) {
|
|
5622
|
+
return rxjs.throwError(e);
|
|
5623
|
+
}
|
|
5624
|
+
}
|
|
5625
|
+
else
|
|
5626
|
+
return rxjs.throwError(response_);
|
|
5627
|
+
}));
|
|
5628
|
+
};
|
|
5629
|
+
DesignAtomsPrintProductApiClient.prototype.processGetDesignPrintAreas = function (response) {
|
|
5630
|
+
var e_53, _a;
|
|
5631
|
+
var _this = this;
|
|
5632
|
+
var status = response.status;
|
|
5633
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
5634
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
5635
|
+
var _headers = {};
|
|
5636
|
+
if (response.headers) {
|
|
5637
|
+
try {
|
|
5638
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
5639
|
+
var key = _c.value;
|
|
5640
|
+
_headers[key] = response.headers.get(key);
|
|
5641
|
+
}
|
|
5642
|
+
}
|
|
5643
|
+
catch (e_53_1) { e_53 = { error: e_53_1 }; }
|
|
5644
|
+
finally {
|
|
5645
|
+
try {
|
|
5646
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5647
|
+
}
|
|
5648
|
+
finally { if (e_53) throw e_53.error; }
|
|
5649
|
+
}
|
|
5650
|
+
}
|
|
5651
|
+
if (status === 200) {
|
|
5652
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5653
|
+
var result200 = null;
|
|
5654
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5655
|
+
return rxjs.of(result200);
|
|
5656
|
+
}));
|
|
5657
|
+
}
|
|
5658
|
+
else if (status === 404) {
|
|
5659
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5660
|
+
var result404 = null;
|
|
5661
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5662
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5663
|
+
}));
|
|
5664
|
+
}
|
|
5665
|
+
else if (status === 401) {
|
|
5666
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5667
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5668
|
+
}));
|
|
5669
|
+
}
|
|
5670
|
+
else if (status === 403) {
|
|
5671
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5672
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5673
|
+
}));
|
|
5674
|
+
}
|
|
5675
|
+
else if (status !== 200 && status !== 204) {
|
|
5676
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5677
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5678
|
+
}));
|
|
5679
|
+
}
|
|
5680
|
+
return rxjs.of(null);
|
|
5681
|
+
};
|
|
5682
|
+
/**
|
|
5683
|
+
* Inserts a new print-area created by the description at the specified position in an existing design file.
|
|
5684
|
+
Print-area identifier will be reset by auto-generated value to prevent identifiers collisions.
|
|
5685
|
+
* @param id Design identifier.
|
|
5686
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
5687
|
+
* @param tenantId (optional) Tenant identifier
|
|
5688
|
+
* @param body (optional) Print-area description model.
|
|
5689
|
+
* @return Success
|
|
5690
|
+
*/
|
|
5691
|
+
DesignAtomsPrintProductApiClient.prototype.addDesignPrintArea = function (id, privateStorageOwner, tenantId, body) {
|
|
5692
|
+
var _this = this;
|
|
5693
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/print-areas?";
|
|
5694
|
+
if (id === undefined || id === null)
|
|
5695
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
5696
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
5697
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
5698
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
5699
|
+
if (tenantId === null)
|
|
5700
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
5701
|
+
else if (tenantId !== undefined)
|
|
5702
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
5703
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5704
|
+
var content_ = JSON.stringify(body);
|
|
5705
|
+
var options_ = {
|
|
5706
|
+
body: content_,
|
|
5707
|
+
observe: "response",
|
|
5708
|
+
responseType: "blob",
|
|
5709
|
+
headers: new i1.HttpHeaders({
|
|
5710
|
+
"Content-Type": "application/json",
|
|
5711
|
+
"Accept": "application/json"
|
|
5712
|
+
})
|
|
5713
|
+
};
|
|
5714
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
5715
|
+
return _this.http.request("post", url_, transformedOptions_);
|
|
5716
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
5717
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processAddDesignPrintArea(r); });
|
|
5718
|
+
})).pipe(operators.catchError(function (response_) {
|
|
5719
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
5720
|
+
try {
|
|
5721
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processAddDesignPrintArea(r); });
|
|
5722
|
+
}
|
|
5723
|
+
catch (e) {
|
|
5724
|
+
return rxjs.throwError(e);
|
|
5725
|
+
}
|
|
5726
|
+
}
|
|
5727
|
+
else
|
|
5728
|
+
return rxjs.throwError(response_);
|
|
5729
|
+
}));
|
|
5730
|
+
};
|
|
5731
|
+
DesignAtomsPrintProductApiClient.prototype.processAddDesignPrintArea = function (response) {
|
|
5732
|
+
var e_54, _a;
|
|
5733
|
+
var _this = this;
|
|
5734
|
+
var status = response.status;
|
|
5735
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
5736
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
5737
|
+
var _headers = {};
|
|
5738
|
+
if (response.headers) {
|
|
5739
|
+
try {
|
|
5740
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
5741
|
+
var key = _c.value;
|
|
5742
|
+
_headers[key] = response.headers.get(key);
|
|
5743
|
+
}
|
|
5744
|
+
}
|
|
5745
|
+
catch (e_54_1) { e_54 = { error: e_54_1 }; }
|
|
5746
|
+
finally {
|
|
5747
|
+
try {
|
|
5748
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5749
|
+
}
|
|
5750
|
+
finally { if (e_54) throw e_54.error; }
|
|
5751
|
+
}
|
|
5752
|
+
}
|
|
5753
|
+
if (status === 200) {
|
|
5754
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5755
|
+
var result200 = null;
|
|
5756
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5757
|
+
return rxjs.of(result200);
|
|
5758
|
+
}));
|
|
5759
|
+
}
|
|
5760
|
+
else if (status === 400) {
|
|
5761
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5762
|
+
var result400 = null;
|
|
5763
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5764
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
5765
|
+
}));
|
|
5766
|
+
}
|
|
5767
|
+
else if (status === 404) {
|
|
5768
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5769
|
+
var result404 = null;
|
|
5770
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5771
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5772
|
+
}));
|
|
5773
|
+
}
|
|
5774
|
+
else if (status === 401) {
|
|
5775
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5776
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5777
|
+
}));
|
|
5778
|
+
}
|
|
5779
|
+
else if (status === 403) {
|
|
5780
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5781
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5782
|
+
}));
|
|
5783
|
+
}
|
|
5784
|
+
else if (status !== 200 && status !== 204) {
|
|
5785
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5786
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5787
|
+
}));
|
|
5788
|
+
}
|
|
5789
|
+
return rxjs.of(null);
|
|
5790
|
+
};
|
|
5791
|
+
/**
|
|
5792
|
+
* Updates a specified print-area using a description in an existing design file.
|
|
5793
|
+
* @param id Design identifier.
|
|
5794
|
+
* @param printAreaId Design print-area identifier.
|
|
5795
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
5796
|
+
* @param tenantId (optional) Tenant identifier
|
|
5797
|
+
* @param body (optional) Print-area description model.
|
|
5798
|
+
* @return Success
|
|
5799
|
+
*/
|
|
5800
|
+
DesignAtomsPrintProductApiClient.prototype.updateDesignPrintArea = function (id, printAreaId, privateStorageOwner, tenantId, body) {
|
|
5801
|
+
var _this = this;
|
|
5802
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/print-areas/{printAreaId}?";
|
|
5803
|
+
if (id === undefined || id === null)
|
|
5804
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
5805
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
5806
|
+
if (printAreaId === undefined || printAreaId === null)
|
|
5807
|
+
throw new Error("The parameter 'printAreaId' must be defined.");
|
|
5808
|
+
url_ = url_.replace("{printAreaId}", encodeURIComponent("" + printAreaId));
|
|
5809
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
5810
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
5811
|
+
if (tenantId === null)
|
|
5812
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
5813
|
+
else if (tenantId !== undefined)
|
|
5814
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
5815
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5816
|
+
var content_ = JSON.stringify(body);
|
|
5817
|
+
var options_ = {
|
|
5818
|
+
body: content_,
|
|
5819
|
+
observe: "response",
|
|
5820
|
+
responseType: "blob",
|
|
5821
|
+
headers: new i1.HttpHeaders({
|
|
5822
|
+
"Content-Type": "application/json",
|
|
5823
|
+
"Accept": "application/json"
|
|
5824
|
+
})
|
|
5825
|
+
};
|
|
5826
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
5827
|
+
return _this.http.request("put", url_, transformedOptions_);
|
|
5828
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
5829
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processUpdateDesignPrintArea(r); });
|
|
5830
|
+
})).pipe(operators.catchError(function (response_) {
|
|
5831
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
5832
|
+
try {
|
|
5833
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processUpdateDesignPrintArea(r); });
|
|
5834
|
+
}
|
|
5835
|
+
catch (e) {
|
|
5836
|
+
return rxjs.throwError(e);
|
|
5837
|
+
}
|
|
5838
|
+
}
|
|
5839
|
+
else
|
|
5840
|
+
return rxjs.throwError(response_);
|
|
5841
|
+
}));
|
|
5842
|
+
};
|
|
5843
|
+
DesignAtomsPrintProductApiClient.prototype.processUpdateDesignPrintArea = function (response) {
|
|
5844
|
+
var e_55, _a;
|
|
5845
|
+
var _this = this;
|
|
5846
|
+
var status = response.status;
|
|
5847
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
5848
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
5849
|
+
var _headers = {};
|
|
5850
|
+
if (response.headers) {
|
|
5851
|
+
try {
|
|
5852
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
5853
|
+
var key = _c.value;
|
|
5854
|
+
_headers[key] = response.headers.get(key);
|
|
5855
|
+
}
|
|
5856
|
+
}
|
|
5857
|
+
catch (e_55_1) { e_55 = { error: e_55_1 }; }
|
|
5858
|
+
finally {
|
|
5859
|
+
try {
|
|
5860
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5861
|
+
}
|
|
5862
|
+
finally { if (e_55) throw e_55.error; }
|
|
5863
|
+
}
|
|
5864
|
+
}
|
|
5865
|
+
if (status === 200) {
|
|
5866
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5867
|
+
var result200 = null;
|
|
5868
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5869
|
+
return rxjs.of(result200);
|
|
5870
|
+
}));
|
|
5871
|
+
}
|
|
5872
|
+
else if (status === 400) {
|
|
5873
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5874
|
+
var result400 = null;
|
|
5875
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5876
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
5877
|
+
}));
|
|
5878
|
+
}
|
|
5879
|
+
else if (status === 404) {
|
|
5880
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5881
|
+
var result404 = null;
|
|
5882
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5883
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5884
|
+
}));
|
|
5885
|
+
}
|
|
5886
|
+
else if (status === 409) {
|
|
5887
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5888
|
+
var result409 = null;
|
|
5889
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5890
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
5891
|
+
}));
|
|
5892
|
+
}
|
|
5893
|
+
else if (status === 401) {
|
|
5894
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5895
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
5896
|
+
}));
|
|
5897
|
+
}
|
|
5898
|
+
else if (status === 403) {
|
|
5899
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5900
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5901
|
+
}));
|
|
5902
|
+
}
|
|
5903
|
+
else if (status !== 200 && status !== 204) {
|
|
5904
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5905
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5906
|
+
}));
|
|
5907
|
+
}
|
|
5908
|
+
return rxjs.of(null);
|
|
5909
|
+
};
|
|
5910
|
+
/**
|
|
5911
|
+
* Deletes a specified print-area in an existing design file.
|
|
5912
|
+
* @param id Design identifier.
|
|
5913
|
+
* @param printAreaId Design print-area identifier.
|
|
5914
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
5915
|
+
* @param tenantId (optional) Tenant identifier
|
|
5916
|
+
* @return No Content
|
|
5917
|
+
*/
|
|
5918
|
+
DesignAtomsPrintProductApiClient.prototype.deleteDesignPrintArea = function (id, printAreaId, privateStorageOwner, tenantId) {
|
|
5919
|
+
var _this = this;
|
|
5920
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/print-areas/{printAreaId}?";
|
|
5921
|
+
if (id === undefined || id === null)
|
|
5922
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
5923
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
5924
|
+
if (printAreaId === undefined || printAreaId === null)
|
|
5925
|
+
throw new Error("The parameter 'printAreaId' must be defined.");
|
|
5926
|
+
url_ = url_.replace("{printAreaId}", encodeURIComponent("" + printAreaId));
|
|
5927
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
5928
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
5929
|
+
if (tenantId === null)
|
|
5930
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
5931
|
+
else if (tenantId !== undefined)
|
|
5932
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
5933
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5934
|
+
var options_ = {
|
|
5935
|
+
observe: "response",
|
|
5936
|
+
responseType: "blob",
|
|
5937
|
+
headers: new i1.HttpHeaders({})
|
|
5938
|
+
};
|
|
5939
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
5940
|
+
return _this.http.request("delete", url_, transformedOptions_);
|
|
5941
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
5942
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processDeleteDesignPrintArea(r); });
|
|
5943
|
+
})).pipe(operators.catchError(function (response_) {
|
|
5944
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
5945
|
+
try {
|
|
5946
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processDeleteDesignPrintArea(r); });
|
|
5947
|
+
}
|
|
5948
|
+
catch (e) {
|
|
5949
|
+
return rxjs.throwError(e);
|
|
5950
|
+
}
|
|
5951
|
+
}
|
|
5952
|
+
else
|
|
5953
|
+
return rxjs.throwError(response_);
|
|
5954
|
+
}));
|
|
5955
|
+
};
|
|
5956
|
+
DesignAtomsPrintProductApiClient.prototype.processDeleteDesignPrintArea = function (response) {
|
|
5957
|
+
var e_56, _a;
|
|
5958
|
+
var _this = this;
|
|
5959
|
+
var status = response.status;
|
|
5960
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
5961
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
5962
|
+
var _headers = {};
|
|
5963
|
+
if (response.headers) {
|
|
5964
|
+
try {
|
|
5965
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
5966
|
+
var key = _c.value;
|
|
5967
|
+
_headers[key] = response.headers.get(key);
|
|
5968
|
+
}
|
|
5969
|
+
}
|
|
5970
|
+
catch (e_56_1) { e_56 = { error: e_56_1 }; }
|
|
5971
|
+
finally {
|
|
5972
|
+
try {
|
|
5973
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5974
|
+
}
|
|
5975
|
+
finally { if (e_56) throw e_56.error; }
|
|
5976
|
+
}
|
|
5977
|
+
}
|
|
5978
|
+
if (status === 204) {
|
|
5979
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5980
|
+
return rxjs.of(null);
|
|
5981
|
+
}));
|
|
5982
|
+
}
|
|
5983
|
+
else if (status === 404) {
|
|
5984
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5985
|
+
var result404 = null;
|
|
5986
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5987
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
5988
|
+
}));
|
|
5989
|
+
}
|
|
5990
|
+
else if (status === 409) {
|
|
5991
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5992
|
+
var result409 = null;
|
|
5993
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
5994
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
5995
|
+
}));
|
|
5996
|
+
}
|
|
5997
|
+
else if (status === 401) {
|
|
5998
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5999
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
6000
|
+
}));
|
|
6001
|
+
}
|
|
6002
|
+
else if (status === 403) {
|
|
6003
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6004
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
6005
|
+
}));
|
|
6006
|
+
}
|
|
6007
|
+
else if (status !== 200 && status !== 204) {
|
|
6008
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6009
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6010
|
+
}));
|
|
6011
|
+
}
|
|
6012
|
+
return rxjs.of(null);
|
|
6013
|
+
};
|
|
6014
|
+
/**
|
|
6015
|
+
* Returns a print-area of the specified design file as a json-serialized model.
|
|
6016
|
+
* @param id Design identifier.
|
|
6017
|
+
* @param printAreaId Design print-area identifier.
|
|
6018
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
6019
|
+
* @param tenantId (optional) Tenant identifier
|
|
6020
|
+
* @return Success
|
|
6021
|
+
*/
|
|
6022
|
+
DesignAtomsPrintProductApiClient.prototype.getDesignPrintAreaModel = function (id, printAreaId, privateStorageOwner, tenantId) {
|
|
6023
|
+
var _this = this;
|
|
6024
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/print-areas/{printAreaId}/model?";
|
|
6025
|
+
if (id === undefined || id === null)
|
|
6026
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
6027
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
6028
|
+
if (printAreaId === undefined || printAreaId === null)
|
|
4385
6029
|
throw new Error("The parameter 'printAreaId' must be defined.");
|
|
4386
6030
|
url_ = url_.replace("{printAreaId}", encodeURIComponent("" + printAreaId));
|
|
4387
6031
|
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
@@ -4416,7 +6060,7 @@
|
|
|
4416
6060
|
}));
|
|
4417
6061
|
};
|
|
4418
6062
|
DesignAtomsPrintProductApiClient.prototype.processGetDesignPrintAreaModel = function (response) {
|
|
4419
|
-
var
|
|
6063
|
+
var e_57, _a;
|
|
4420
6064
|
var _this = this;
|
|
4421
6065
|
var status = response.status;
|
|
4422
6066
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4429,12 +6073,12 @@
|
|
|
4429
6073
|
_headers[key] = response.headers.get(key);
|
|
4430
6074
|
}
|
|
4431
6075
|
}
|
|
4432
|
-
catch (
|
|
6076
|
+
catch (e_57_1) { e_57 = { error: e_57_1 }; }
|
|
4433
6077
|
finally {
|
|
4434
6078
|
try {
|
|
4435
6079
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4436
6080
|
}
|
|
4437
|
-
finally { if (
|
|
6081
|
+
finally { if (e_57) throw e_57.error; }
|
|
4438
6082
|
}
|
|
4439
6083
|
}
|
|
4440
6084
|
if (status === 200) {
|
|
@@ -4481,7 +6125,7 @@
|
|
|
4481
6125
|
* @param printAreaId Design print-area identifier.
|
|
4482
6126
|
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4483
6127
|
* @param tenantId (optional) Tenant identifier
|
|
4484
|
-
* @param body (optional)
|
|
6128
|
+
* @param body (optional) Json-serialized model of a print-area.
|
|
4485
6129
|
* @return Success
|
|
4486
6130
|
*/
|
|
4487
6131
|
DesignAtomsPrintProductApiClient.prototype.updateDesignPrintAreaModel = function (id, printAreaId, privateStorageOwner, tenantId, body) {
|
|
@@ -4528,7 +6172,7 @@
|
|
|
4528
6172
|
}));
|
|
4529
6173
|
};
|
|
4530
6174
|
DesignAtomsPrintProductApiClient.prototype.processUpdateDesignPrintAreaModel = function (response) {
|
|
4531
|
-
var
|
|
6175
|
+
var e_58, _a;
|
|
4532
6176
|
var _this = this;
|
|
4533
6177
|
var status = response.status;
|
|
4534
6178
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4541,12 +6185,12 @@
|
|
|
4541
6185
|
_headers[key] = response.headers.get(key);
|
|
4542
6186
|
}
|
|
4543
6187
|
}
|
|
4544
|
-
catch (
|
|
6188
|
+
catch (e_58_1) { e_58 = { error: e_58_1 }; }
|
|
4545
6189
|
finally {
|
|
4546
6190
|
try {
|
|
4547
6191
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4548
6192
|
}
|
|
4549
|
-
finally { if (
|
|
6193
|
+
finally { if (e_58) throw e_58.error; }
|
|
4550
6194
|
}
|
|
4551
6195
|
}
|
|
4552
6196
|
if (status === 200) {
|
|
@@ -4601,7 +6245,7 @@
|
|
|
4601
6245
|
* @param surfaceId (optional) Parent surface identifier.
|
|
4602
6246
|
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4603
6247
|
* @param tenantId (optional) Tenant identifier
|
|
4604
|
-
* @param body (optional)
|
|
6248
|
+
* @param body (optional) Json serialized model of a print-area.
|
|
4605
6249
|
* @return Success
|
|
4606
6250
|
*/
|
|
4607
6251
|
DesignAtomsPrintProductApiClient.prototype.addDesignPrintAreaModel = function (id, surfaceId, privateStorageOwner, tenantId, body) {
|
|
@@ -4647,7 +6291,7 @@
|
|
|
4647
6291
|
}));
|
|
4648
6292
|
};
|
|
4649
6293
|
DesignAtomsPrintProductApiClient.prototype.processAddDesignPrintAreaModel = function (response) {
|
|
4650
|
-
var
|
|
6294
|
+
var e_59, _a;
|
|
4651
6295
|
var _this = this;
|
|
4652
6296
|
var status = response.status;
|
|
4653
6297
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4660,12 +6304,12 @@
|
|
|
4660
6304
|
_headers[key] = response.headers.get(key);
|
|
4661
6305
|
}
|
|
4662
6306
|
}
|
|
4663
|
-
catch (
|
|
6307
|
+
catch (e_59_1) { e_59 = { error: e_59_1 }; }
|
|
4664
6308
|
finally {
|
|
4665
6309
|
try {
|
|
4666
6310
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4667
6311
|
}
|
|
4668
|
-
finally { if (
|
|
6312
|
+
finally { if (e_59) throw e_59.error; }
|
|
4669
6313
|
}
|
|
4670
6314
|
}
|
|
4671
6315
|
if (status === 200) {
|
|
@@ -4751,7 +6395,7 @@
|
|
|
4751
6395
|
}));
|
|
4752
6396
|
};
|
|
4753
6397
|
DesignAtomsPrintProductApiClient.prototype.processGetDesignSurfaces = function (response) {
|
|
4754
|
-
var
|
|
6398
|
+
var e_60, _a;
|
|
4755
6399
|
var _this = this;
|
|
4756
6400
|
var status = response.status;
|
|
4757
6401
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4764,12 +6408,12 @@
|
|
|
4764
6408
|
_headers[key] = response.headers.get(key);
|
|
4765
6409
|
}
|
|
4766
6410
|
}
|
|
4767
|
-
catch (
|
|
6411
|
+
catch (e_60_1) { e_60 = { error: e_60_1 }; }
|
|
4768
6412
|
finally {
|
|
4769
6413
|
try {
|
|
4770
6414
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4771
6415
|
}
|
|
4772
|
-
finally { if (
|
|
6416
|
+
finally { if (e_60) throw e_60.error; }
|
|
4773
6417
|
}
|
|
4774
6418
|
}
|
|
4775
6419
|
if (status === 200) {
|
|
@@ -4806,7 +6450,7 @@
|
|
|
4806
6450
|
/**
|
|
4807
6451
|
* Deletes a specified print-product surface in an existing design file.
|
|
4808
6452
|
* @param id Design identifier.
|
|
4809
|
-
* @param surfaceId
|
|
6453
|
+
* @param surfaceId Print-product surface identifier.
|
|
4810
6454
|
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4811
6455
|
* @param tenantId (optional) Tenant identifier
|
|
4812
6456
|
* @return No Content
|
|
@@ -4850,7 +6494,7 @@
|
|
|
4850
6494
|
}));
|
|
4851
6495
|
};
|
|
4852
6496
|
DesignAtomsPrintProductApiClient.prototype.processDeleteDesignSurface = function (response) {
|
|
4853
|
-
var
|
|
6497
|
+
var e_61, _a;
|
|
4854
6498
|
var _this = this;
|
|
4855
6499
|
var status = response.status;
|
|
4856
6500
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4863,12 +6507,12 @@
|
|
|
4863
6507
|
_headers[key] = response.headers.get(key);
|
|
4864
6508
|
}
|
|
4865
6509
|
}
|
|
4866
|
-
catch (
|
|
6510
|
+
catch (e_61_1) { e_61 = { error: e_61_1 }; }
|
|
4867
6511
|
finally {
|
|
4868
6512
|
try {
|
|
4869
6513
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4870
6514
|
}
|
|
4871
|
-
finally { if (
|
|
6515
|
+
finally { if (e_61) throw e_61.error; }
|
|
4872
6516
|
}
|
|
4873
6517
|
}
|
|
4874
6518
|
if (status === 204) {
|
|
@@ -4908,9 +6552,9 @@
|
|
|
4908
6552
|
return rxjs.of(null);
|
|
4909
6553
|
};
|
|
4910
6554
|
/**
|
|
4911
|
-
* Returns a down-mockup description of the specified surface in an existing design file.
|
|
6555
|
+
* Returns a down-mockup description of the specified print-product surface in an existing design file.
|
|
4912
6556
|
* @param id Design identifier.
|
|
4913
|
-
* @param surfaceId
|
|
6557
|
+
* @param surfaceId Print product surface identifier.
|
|
4914
6558
|
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
4915
6559
|
* @param tenantId (optional) Tenant identifier
|
|
4916
6560
|
* @return Success
|
|
@@ -4956,7 +6600,7 @@
|
|
|
4956
6600
|
}));
|
|
4957
6601
|
};
|
|
4958
6602
|
DesignAtomsPrintProductApiClient.prototype.processGetDesignSurfaceDownMockup = function (response) {
|
|
4959
|
-
var
|
|
6603
|
+
var e_62, _a;
|
|
4960
6604
|
var _this = this;
|
|
4961
6605
|
var status = response.status;
|
|
4962
6606
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4969,12 +6613,12 @@
|
|
|
4969
6613
|
_headers[key] = response.headers.get(key);
|
|
4970
6614
|
}
|
|
4971
6615
|
}
|
|
4972
|
-
catch (
|
|
6616
|
+
catch (e_62_1) { e_62 = { error: e_62_1 }; }
|
|
4973
6617
|
finally {
|
|
4974
6618
|
try {
|
|
4975
6619
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4976
6620
|
}
|
|
4977
|
-
finally { if (
|
|
6621
|
+
finally { if (e_62) throw e_62.error; }
|
|
4978
6622
|
}
|
|
4979
6623
|
}
|
|
4980
6624
|
if (status === 200) {
|
|
@@ -5023,9 +6667,9 @@
|
|
|
5023
6667
|
return rxjs.of(null);
|
|
5024
6668
|
};
|
|
5025
6669
|
/**
|
|
5026
|
-
* Updates a content file of down-mockup for the specified surface in an existing design file.
|
|
6670
|
+
* Updates a content file of down-mockup for the specified print-product surface in an existing design file.
|
|
5027
6671
|
* @param id Design identifier.
|
|
5028
|
-
* @param surfaceId
|
|
6672
|
+
* @param surfaceId Print-product surface identifier.
|
|
5029
6673
|
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
5030
6674
|
* @param tenantId (optional) Tenant identifier
|
|
5031
6675
|
* @param position_top (optional)
|
|
@@ -5086,7 +6730,7 @@
|
|
|
5086
6730
|
}));
|
|
5087
6731
|
};
|
|
5088
6732
|
DesignAtomsPrintProductApiClient.prototype.processUpdateDesignSurfaceDownMockup = function (response) {
|
|
5089
|
-
var
|
|
6733
|
+
var e_63, _a;
|
|
5090
6734
|
var _this = this;
|
|
5091
6735
|
var status = response.status;
|
|
5092
6736
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5099,12 +6743,12 @@
|
|
|
5099
6743
|
_headers[key] = response.headers.get(key);
|
|
5100
6744
|
}
|
|
5101
6745
|
}
|
|
5102
|
-
catch (
|
|
6746
|
+
catch (e_63_1) { e_63 = { error: e_63_1 }; }
|
|
5103
6747
|
finally {
|
|
5104
6748
|
try {
|
|
5105
6749
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5106
6750
|
}
|
|
5107
|
-
finally { if (
|
|
6751
|
+
finally { if (e_63) throw e_63.error; }
|
|
5108
6752
|
}
|
|
5109
6753
|
}
|
|
5110
6754
|
if (status === 200) {
|
|
@@ -5153,9 +6797,9 @@
|
|
|
5153
6797
|
return rxjs.of(null);
|
|
5154
6798
|
};
|
|
5155
6799
|
/**
|
|
5156
|
-
* Returns a content file for down-mockup of the specified surface in an existing design file.
|
|
6800
|
+
* Returns a content file for down-mockup of the specified print-product surface in an existing design file.
|
|
5157
6801
|
* @param id Design identifier.
|
|
5158
|
-
* @param surfaceId
|
|
6802
|
+
* @param surfaceId Print-product surface identifier.
|
|
5159
6803
|
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
5160
6804
|
* @param tenantId (optional) Tenant identifier
|
|
5161
6805
|
* @return Success
|
|
@@ -5180,7 +6824,7 @@
|
|
|
5180
6824
|
observe: "response",
|
|
5181
6825
|
responseType: "blob",
|
|
5182
6826
|
headers: new i1.HttpHeaders({
|
|
5183
|
-
"Accept": "application/
|
|
6827
|
+
"Accept": "application/octet-stream"
|
|
5184
6828
|
})
|
|
5185
6829
|
};
|
|
5186
6830
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
@@ -5201,7 +6845,7 @@
|
|
|
5201
6845
|
}));
|
|
5202
6846
|
};
|
|
5203
6847
|
DesignAtomsPrintProductApiClient.prototype.processGetDesignSurfaceDownMockupContent = function (response) {
|
|
5204
|
-
var
|
|
6848
|
+
var e_64, _a;
|
|
5205
6849
|
var _this = this;
|
|
5206
6850
|
var status = response.status;
|
|
5207
6851
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5214,12 +6858,12 @@
|
|
|
5214
6858
|
_headers[key] = response.headers.get(key);
|
|
5215
6859
|
}
|
|
5216
6860
|
}
|
|
5217
|
-
catch (
|
|
6861
|
+
catch (e_64_1) { e_64 = { error: e_64_1 }; }
|
|
5218
6862
|
finally {
|
|
5219
6863
|
try {
|
|
5220
6864
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5221
6865
|
}
|
|
5222
|
-
finally { if (
|
|
6866
|
+
finally { if (e_64) throw e_64.error; }
|
|
5223
6867
|
}
|
|
5224
6868
|
}
|
|
5225
6869
|
if (status === 200 || status === 206) {
|
|
@@ -5267,9 +6911,9 @@
|
|
|
5267
6911
|
return rxjs.of(null);
|
|
5268
6912
|
};
|
|
5269
6913
|
/**
|
|
5270
|
-
* Returns an up-mockup description of the specified surface in an existing design file.
|
|
6914
|
+
* Returns an up-mockup description of the specified print-product surface in an existing design file.
|
|
5271
6915
|
* @param id Design identifier.
|
|
5272
|
-
* @param surfaceId
|
|
6916
|
+
* @param surfaceId Print-product surface identifier.
|
|
5273
6917
|
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
5274
6918
|
* @param tenantId (optional) Tenant identifier
|
|
5275
6919
|
* @return Success
|
|
@@ -5315,7 +6959,7 @@
|
|
|
5315
6959
|
}));
|
|
5316
6960
|
};
|
|
5317
6961
|
DesignAtomsPrintProductApiClient.prototype.processGetDesignSurfaceUpMockup = function (response) {
|
|
5318
|
-
var
|
|
6962
|
+
var e_65, _a;
|
|
5319
6963
|
var _this = this;
|
|
5320
6964
|
var status = response.status;
|
|
5321
6965
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5328,12 +6972,12 @@
|
|
|
5328
6972
|
_headers[key] = response.headers.get(key);
|
|
5329
6973
|
}
|
|
5330
6974
|
}
|
|
5331
|
-
catch (
|
|
6975
|
+
catch (e_65_1) { e_65 = { error: e_65_1 }; }
|
|
5332
6976
|
finally {
|
|
5333
6977
|
try {
|
|
5334
6978
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5335
6979
|
}
|
|
5336
|
-
finally { if (
|
|
6980
|
+
finally { if (e_65) throw e_65.error; }
|
|
5337
6981
|
}
|
|
5338
6982
|
}
|
|
5339
6983
|
if (status === 200) {
|
|
@@ -5382,9 +7026,9 @@
|
|
|
5382
7026
|
return rxjs.of(null);
|
|
5383
7027
|
};
|
|
5384
7028
|
/**
|
|
5385
|
-
* Updates a content file of up-mockup for the specified surface in an existing design.
|
|
7029
|
+
* Updates a content file of up-mockup for the specified print-product surface in an existing design.
|
|
5386
7030
|
* @param id Design identifier.
|
|
5387
|
-
* @param surfaceId
|
|
7031
|
+
* @param surfaceId Print-product surface identifier.
|
|
5388
7032
|
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
5389
7033
|
* @param tenantId (optional) Tenant identifier
|
|
5390
7034
|
* @param position_top (optional)
|
|
@@ -5445,7 +7089,7 @@
|
|
|
5445
7089
|
}));
|
|
5446
7090
|
};
|
|
5447
7091
|
DesignAtomsPrintProductApiClient.prototype.processUpdateDesignSurfaceUpMockup = function (response) {
|
|
5448
|
-
var
|
|
7092
|
+
var e_66, _a;
|
|
5449
7093
|
var _this = this;
|
|
5450
7094
|
var status = response.status;
|
|
5451
7095
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5458,12 +7102,12 @@
|
|
|
5458
7102
|
_headers[key] = response.headers.get(key);
|
|
5459
7103
|
}
|
|
5460
7104
|
}
|
|
5461
|
-
catch (
|
|
7105
|
+
catch (e_66_1) { e_66 = { error: e_66_1 }; }
|
|
5462
7106
|
finally {
|
|
5463
7107
|
try {
|
|
5464
7108
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5465
7109
|
}
|
|
5466
|
-
finally { if (
|
|
7110
|
+
finally { if (e_66) throw e_66.error; }
|
|
5467
7111
|
}
|
|
5468
7112
|
}
|
|
5469
7113
|
if (status === 200) {
|
|
@@ -5512,9 +7156,9 @@
|
|
|
5512
7156
|
return rxjs.of(null);
|
|
5513
7157
|
};
|
|
5514
7158
|
/**
|
|
5515
|
-
* Returns a content file for up-mockup of the specified surface in an existing design file.
|
|
7159
|
+
* Returns a content file for up-mockup of the specified print-product surface in an existing design file.
|
|
5516
7160
|
* @param id Design identifier.
|
|
5517
|
-
* @param surfaceId
|
|
7161
|
+
* @param surfaceId Print-product surface identifier.
|
|
5518
7162
|
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
5519
7163
|
* @param tenantId (optional) Tenant identifier
|
|
5520
7164
|
* @return Success
|
|
@@ -5539,7 +7183,7 @@
|
|
|
5539
7183
|
observe: "response",
|
|
5540
7184
|
responseType: "blob",
|
|
5541
7185
|
headers: new i1.HttpHeaders({
|
|
5542
|
-
"Accept": "application/
|
|
7186
|
+
"Accept": "application/octet-stream"
|
|
5543
7187
|
})
|
|
5544
7188
|
};
|
|
5545
7189
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
@@ -5560,7 +7204,7 @@
|
|
|
5560
7204
|
}));
|
|
5561
7205
|
};
|
|
5562
7206
|
DesignAtomsPrintProductApiClient.prototype.processGetDesignSurfaceUpMockupContent = function (response) {
|
|
5563
|
-
var
|
|
7207
|
+
var e_67, _a;
|
|
5564
7208
|
var _this = this;
|
|
5565
7209
|
var status = response.status;
|
|
5566
7210
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5573,12 +7217,12 @@
|
|
|
5573
7217
|
_headers[key] = response.headers.get(key);
|
|
5574
7218
|
}
|
|
5575
7219
|
}
|
|
5576
|
-
catch (
|
|
7220
|
+
catch (e_67_1) { e_67 = { error: e_67_1 }; }
|
|
5577
7221
|
finally {
|
|
5578
7222
|
try {
|
|
5579
7223
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5580
7224
|
}
|
|
5581
|
-
finally { if (
|
|
7225
|
+
finally { if (e_67) throw e_67.error; }
|
|
5582
7226
|
}
|
|
5583
7227
|
}
|
|
5584
7228
|
if (status === 200 || status === 206) {
|
|
@@ -5587,11 +7231,6 @@
|
|
|
5587
7231
|
var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
5588
7232
|
return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
|
|
5589
7233
|
}
|
|
5590
|
-
else if (status === 204) {
|
|
5591
|
-
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5592
|
-
return throwException("No Content", status, _responseText, _headers);
|
|
5593
|
-
}));
|
|
5594
|
-
}
|
|
5595
7234
|
else if (status === 400) {
|
|
5596
7235
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5597
7236
|
var result400 = null;
|
|
@@ -5679,7 +7318,7 @@
|
|
|
5679
7318
|
}));
|
|
5680
7319
|
};
|
|
5681
7320
|
DesignAtomsPrintProductApiClient.prototype.processGetDesignSurfaceModel = function (response) {
|
|
5682
|
-
var
|
|
7321
|
+
var e_68, _a;
|
|
5683
7322
|
var _this = this;
|
|
5684
7323
|
var status = response.status;
|
|
5685
7324
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5692,12 +7331,12 @@
|
|
|
5692
7331
|
_headers[key] = response.headers.get(key);
|
|
5693
7332
|
}
|
|
5694
7333
|
}
|
|
5695
|
-
catch (
|
|
7334
|
+
catch (e_68_1) { e_68 = { error: e_68_1 }; }
|
|
5696
7335
|
finally {
|
|
5697
7336
|
try {
|
|
5698
7337
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5699
7338
|
}
|
|
5700
|
-
finally { if (
|
|
7339
|
+
finally { if (e_68) throw e_68.error; }
|
|
5701
7340
|
}
|
|
5702
7341
|
}
|
|
5703
7342
|
if (status === 200) {
|
|
@@ -5740,12 +7379,12 @@
|
|
|
5740
7379
|
};
|
|
5741
7380
|
/**
|
|
5742
7381
|
* Replaces a specified print-product surface in an existing design file with the data provided as a json-serialized surface model.
|
|
5743
|
-
All identifiers
|
|
7382
|
+
All design elements identifiers within the surface (including surface identifier) will be reset by auto-generated values to prevent identifiers collisions.
|
|
5744
7383
|
* @param id Design identifier.
|
|
5745
|
-
* @param surfaceId
|
|
7384
|
+
* @param surfaceId Print-product surface identifier.
|
|
5746
7385
|
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
5747
7386
|
* @param tenantId (optional) Tenant identifier
|
|
5748
|
-
* @param body (optional)
|
|
7387
|
+
* @param body (optional) Json-serialized model of a print-product surface.
|
|
5749
7388
|
* @return Success
|
|
5750
7389
|
*/
|
|
5751
7390
|
DesignAtomsPrintProductApiClient.prototype.replaceDesignSurfaceModel = function (id, surfaceId, privateStorageOwner, tenantId, body) {
|
|
@@ -5792,7 +7431,7 @@
|
|
|
5792
7431
|
}));
|
|
5793
7432
|
};
|
|
5794
7433
|
DesignAtomsPrintProductApiClient.prototype.processReplaceDesignSurfaceModel = function (response) {
|
|
5795
|
-
var
|
|
7434
|
+
var e_69, _a;
|
|
5796
7435
|
var _this = this;
|
|
5797
7436
|
var status = response.status;
|
|
5798
7437
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5805,12 +7444,12 @@
|
|
|
5805
7444
|
_headers[key] = response.headers.get(key);
|
|
5806
7445
|
}
|
|
5807
7446
|
}
|
|
5808
|
-
catch (
|
|
7447
|
+
catch (e_69_1) { e_69 = { error: e_69_1 }; }
|
|
5809
7448
|
finally {
|
|
5810
7449
|
try {
|
|
5811
7450
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5812
7451
|
}
|
|
5813
|
-
finally { if (
|
|
7452
|
+
finally { if (e_69) throw e_69.error; }
|
|
5814
7453
|
}
|
|
5815
7454
|
}
|
|
5816
7455
|
if (status === 200) {
|
|
@@ -5860,24 +7499,22 @@
|
|
|
5860
7499
|
};
|
|
5861
7500
|
/**
|
|
5862
7501
|
* Inserts a new surface provided as a json-serialized model at the specified position in an existing design file.
|
|
5863
|
-
All identifiers
|
|
7502
|
+
All design elements identifiers within the surface (including surface identifier) will be reset by auto-generated values to prevent identifiers collisions.
|
|
5864
7503
|
* @param id Design identifier.
|
|
5865
|
-
* @param
|
|
7504
|
+
* @param index (optional) Surface index within the surfaces list of a design.
|
|
5866
7505
|
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
5867
7506
|
* @param tenantId (optional) Tenant identifier
|
|
5868
|
-
* @param body (optional)
|
|
7507
|
+
* @param body (optional) Json-serialized model of a print-prouduct surface.
|
|
5869
7508
|
* @return Success
|
|
5870
7509
|
*/
|
|
5871
|
-
DesignAtomsPrintProductApiClient.prototype.addDesignSurfaceModel = function (id,
|
|
7510
|
+
DesignAtomsPrintProductApiClient.prototype.addDesignSurfaceModel = function (id, index, privateStorageOwner, tenantId, body) {
|
|
5872
7511
|
var _this = this;
|
|
5873
7512
|
var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/surfaces/model?";
|
|
5874
7513
|
if (id === undefined || id === null)
|
|
5875
7514
|
throw new Error("The parameter 'id' must be defined.");
|
|
5876
7515
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
5877
|
-
if (
|
|
5878
|
-
|
|
5879
|
-
else if (surfaceIndex !== undefined)
|
|
5880
|
-
url_ += "surfaceIndex=" + encodeURIComponent("" + surfaceIndex) + "&";
|
|
7516
|
+
if (index !== undefined && index !== null)
|
|
7517
|
+
url_ += "index=" + encodeURIComponent("" + index) + "&";
|
|
5881
7518
|
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
5882
7519
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
5883
7520
|
if (tenantId === null)
|
|
@@ -5913,7 +7550,7 @@
|
|
|
5913
7550
|
}));
|
|
5914
7551
|
};
|
|
5915
7552
|
DesignAtomsPrintProductApiClient.prototype.processAddDesignSurfaceModel = function (response) {
|
|
5916
|
-
var
|
|
7553
|
+
var e_70, _a;
|
|
5917
7554
|
var _this = this;
|
|
5918
7555
|
var status = response.status;
|
|
5919
7556
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5926,12 +7563,12 @@
|
|
|
5926
7563
|
_headers[key] = response.headers.get(key);
|
|
5927
7564
|
}
|
|
5928
7565
|
}
|
|
5929
|
-
catch (
|
|
7566
|
+
catch (e_70_1) { e_70 = { error: e_70_1 }; }
|
|
5930
7567
|
finally {
|
|
5931
7568
|
try {
|
|
5932
7569
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5933
7570
|
}
|
|
5934
|
-
finally { if (
|
|
7571
|
+
finally { if (e_70) throw e_70.error; }
|
|
5935
7572
|
}
|
|
5936
7573
|
}
|
|
5937
7574
|
if (status === 200) {
|
|
@@ -5994,6 +7631,93 @@
|
|
|
5994
7631
|
_this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : _this.getBaseUrl("");
|
|
5995
7632
|
return _this;
|
|
5996
7633
|
}
|
|
7634
|
+
/**
|
|
7635
|
+
* Apply effects to print-product item image.
|
|
7636
|
+
* @param tenantId (optional) Tenant identifier
|
|
7637
|
+
* @param body (optional)
|
|
7638
|
+
* @return Success
|
|
7639
|
+
*/
|
|
7640
|
+
DesignAtomsPrintProductItemsApiClient.prototype.applyItemEffects = function (tenantId, body) {
|
|
7641
|
+
var _this = this;
|
|
7642
|
+
var url_ = this.baseUrl + "/api/atoms/v1/designs/print-product/items/apply-effects?";
|
|
7643
|
+
if (tenantId === null)
|
|
7644
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
7645
|
+
else if (tenantId !== undefined)
|
|
7646
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
7647
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
7648
|
+
var content_ = JSON.stringify(body);
|
|
7649
|
+
var options_ = {
|
|
7650
|
+
body: content_,
|
|
7651
|
+
observe: "response",
|
|
7652
|
+
responseType: "blob",
|
|
7653
|
+
headers: new i1.HttpHeaders({
|
|
7654
|
+
"Content-Type": "application/json",
|
|
7655
|
+
"Accept": "application/json"
|
|
7656
|
+
})
|
|
7657
|
+
};
|
|
7658
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
7659
|
+
return _this.http.request("post", url_, transformedOptions_);
|
|
7660
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
7661
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processApplyItemEffects(r); });
|
|
7662
|
+
})).pipe(operators.catchError(function (response_) {
|
|
7663
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
7664
|
+
try {
|
|
7665
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processApplyItemEffects(r); });
|
|
7666
|
+
}
|
|
7667
|
+
catch (e) {
|
|
7668
|
+
return rxjs.throwError(e);
|
|
7669
|
+
}
|
|
7670
|
+
}
|
|
7671
|
+
else
|
|
7672
|
+
return rxjs.throwError(response_);
|
|
7673
|
+
}));
|
|
7674
|
+
};
|
|
7675
|
+
DesignAtomsPrintProductItemsApiClient.prototype.processApplyItemEffects = function (response) {
|
|
7676
|
+
var e_71, _a;
|
|
7677
|
+
var _this = this;
|
|
7678
|
+
var status = response.status;
|
|
7679
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
7680
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
7681
|
+
var _headers = {};
|
|
7682
|
+
if (response.headers) {
|
|
7683
|
+
try {
|
|
7684
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
7685
|
+
var key = _c.value;
|
|
7686
|
+
_headers[key] = response.headers.get(key);
|
|
7687
|
+
}
|
|
7688
|
+
}
|
|
7689
|
+
catch (e_71_1) { e_71 = { error: e_71_1 }; }
|
|
7690
|
+
finally {
|
|
7691
|
+
try {
|
|
7692
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7693
|
+
}
|
|
7694
|
+
finally { if (e_71) throw e_71.error; }
|
|
7695
|
+
}
|
|
7696
|
+
}
|
|
7697
|
+
if (status === 200) {
|
|
7698
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7699
|
+
var result200 = null;
|
|
7700
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
7701
|
+
return rxjs.of(result200);
|
|
7702
|
+
}));
|
|
7703
|
+
}
|
|
7704
|
+
else if (status === 401) {
|
|
7705
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7706
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
7707
|
+
}));
|
|
7708
|
+
}
|
|
7709
|
+
else if (status === 403) {
|
|
7710
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7711
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
7712
|
+
}));
|
|
7713
|
+
}
|
|
7714
|
+
else if (status !== 200 && status !== 204) {
|
|
7715
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
7716
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
7717
|
+
}));
|
|
7718
|
+
}
|
|
7719
|
+
return rxjs.of(null);
|
|
7720
|
+
};
|
|
5997
7721
|
/**
|
|
5998
7722
|
* Extracts print-product item image.
|
|
5999
7723
|
* @param tenantId (optional) Tenant identifier
|
|
@@ -6036,7 +7760,7 @@
|
|
|
6036
7760
|
}));
|
|
6037
7761
|
};
|
|
6038
7762
|
DesignAtomsPrintProductItemsApiClient.prototype.processExtractItemImage = function (response) {
|
|
6039
|
-
var
|
|
7763
|
+
var e_72, _a;
|
|
6040
7764
|
var status = response.status;
|
|
6041
7765
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
6042
7766
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -6048,12 +7772,12 @@
|
|
|
6048
7772
|
_headers[key] = response.headers.get(key);
|
|
6049
7773
|
}
|
|
6050
7774
|
}
|
|
6051
|
-
catch (
|
|
7775
|
+
catch (e_72_1) { e_72 = { error: e_72_1 }; }
|
|
6052
7776
|
finally {
|
|
6053
7777
|
try {
|
|
6054
7778
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6055
7779
|
}
|
|
6056
|
-
finally { if (
|
|
7780
|
+
finally { if (e_72) throw e_72.error; }
|
|
6057
7781
|
}
|
|
6058
7782
|
}
|
|
6059
7783
|
if (status === 200 || status === 206) {
|
|
@@ -6081,13 +7805,16 @@
|
|
|
6081
7805
|
};
|
|
6082
7806
|
/**
|
|
6083
7807
|
* Flattens print-product items.
|
|
7808
|
+
* @param paletteUID (optional)
|
|
6084
7809
|
* @param tenantId (optional) Tenant identifier
|
|
6085
7810
|
* @param body (optional) List of print-product items to flatten.
|
|
6086
7811
|
* @return Success
|
|
6087
7812
|
*/
|
|
6088
|
-
DesignAtomsPrintProductItemsApiClient.prototype.flattenItems = function (tenantId, body) {
|
|
7813
|
+
DesignAtomsPrintProductItemsApiClient.prototype.flattenItems = function (paletteUID, tenantId, body) {
|
|
6089
7814
|
var _this = this;
|
|
6090
7815
|
var url_ = this.baseUrl + "/api/atoms/v1/designs/print-product/items/flatten?";
|
|
7816
|
+
if (paletteUID !== undefined && paletteUID !== null)
|
|
7817
|
+
url_ += "paletteUID=" + encodeURIComponent("" + paletteUID) + "&";
|
|
6091
7818
|
if (tenantId === null)
|
|
6092
7819
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
6093
7820
|
else if (tenantId !== undefined)
|
|
@@ -6121,7 +7848,7 @@
|
|
|
6121
7848
|
}));
|
|
6122
7849
|
};
|
|
6123
7850
|
DesignAtomsPrintProductItemsApiClient.prototype.processFlattenItems = function (response) {
|
|
6124
|
-
var
|
|
7851
|
+
var e_73, _a;
|
|
6125
7852
|
var _this = this;
|
|
6126
7853
|
var status = response.status;
|
|
6127
7854
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6134,12 +7861,12 @@
|
|
|
6134
7861
|
_headers[key] = response.headers.get(key);
|
|
6135
7862
|
}
|
|
6136
7863
|
}
|
|
6137
|
-
catch (
|
|
7864
|
+
catch (e_73_1) { e_73 = { error: e_73_1 }; }
|
|
6138
7865
|
finally {
|
|
6139
7866
|
try {
|
|
6140
7867
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6141
7868
|
}
|
|
6142
|
-
finally { if (
|
|
7869
|
+
finally { if (e_73) throw e_73.error; }
|
|
6143
7870
|
}
|
|
6144
7871
|
}
|
|
6145
7872
|
if (status === 200) {
|
|
@@ -6171,9 +7898,11 @@
|
|
|
6171
7898
|
* @param itemType (optional) Desired item type.
|
|
6172
7899
|
* @param tenantId (optional) Tenant identifier
|
|
6173
7900
|
* @param sourceFile (optional)
|
|
7901
|
+
* @param paletteUID (optional)
|
|
7902
|
+
* @param preserveOriginalFile (optional)
|
|
6174
7903
|
* @return Success
|
|
6175
7904
|
*/
|
|
6176
|
-
DesignAtomsPrintProductItemsApiClient.prototype.createItemFromFile = function (itemType, tenantId, sourceFile) {
|
|
7905
|
+
DesignAtomsPrintProductItemsApiClient.prototype.createItemFromFile = function (itemType, tenantId, sourceFile, paletteUID, preserveOriginalFile) {
|
|
6177
7906
|
var _this = this;
|
|
6178
7907
|
var url_ = this.baseUrl + "/api/atoms/v1/designs/print-product/items/from-file?";
|
|
6179
7908
|
if (itemType !== undefined && itemType !== null)
|
|
@@ -6186,6 +7915,10 @@
|
|
|
6186
7915
|
var content_ = new FormData();
|
|
6187
7916
|
if (sourceFile !== null && sourceFile !== undefined)
|
|
6188
7917
|
content_.append("sourceFile", sourceFile.data, sourceFile.fileName ? sourceFile.fileName : "sourceFile");
|
|
7918
|
+
if (paletteUID !== null && paletteUID !== undefined)
|
|
7919
|
+
content_.append("paletteUID", paletteUID.toString());
|
|
7920
|
+
if (preserveOriginalFile !== null && preserveOriginalFile !== undefined)
|
|
7921
|
+
content_.append("preserveOriginalFile", preserveOriginalFile.toString());
|
|
6189
7922
|
var options_ = {
|
|
6190
7923
|
body: content_,
|
|
6191
7924
|
observe: "response",
|
|
@@ -6212,7 +7945,7 @@
|
|
|
6212
7945
|
}));
|
|
6213
7946
|
};
|
|
6214
7947
|
DesignAtomsPrintProductItemsApiClient.prototype.processCreateItemFromFile = function (response) {
|
|
6215
|
-
var
|
|
7948
|
+
var e_74, _a;
|
|
6216
7949
|
var _this = this;
|
|
6217
7950
|
var status = response.status;
|
|
6218
7951
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6225,12 +7958,12 @@
|
|
|
6225
7958
|
_headers[key] = response.headers.get(key);
|
|
6226
7959
|
}
|
|
6227
7960
|
}
|
|
6228
|
-
catch (
|
|
7961
|
+
catch (e_74_1) { e_74 = { error: e_74_1 }; }
|
|
6229
7962
|
finally {
|
|
6230
7963
|
try {
|
|
6231
7964
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6232
7965
|
}
|
|
6233
|
-
finally { if (
|
|
7966
|
+
finally { if (e_74) throw e_74.error; }
|
|
6234
7967
|
}
|
|
6235
7968
|
}
|
|
6236
7969
|
if (status === 200) {
|
|
@@ -6276,9 +8009,11 @@
|
|
|
6276
8009
|
* @param itemType (optional) Desired print-product items type.
|
|
6277
8010
|
* @param tenantId (optional) Tenant identifier
|
|
6278
8011
|
* @param sourceFiles (optional)
|
|
8012
|
+
* @param paletteUID (optional)
|
|
8013
|
+
* @param preserveOriginalFile (optional)
|
|
6279
8014
|
* @return Success
|
|
6280
8015
|
*/
|
|
6281
|
-
DesignAtomsPrintProductItemsApiClient.prototype.batchCreateItemsFromFile = function (itemType, tenantId, sourceFiles) {
|
|
8016
|
+
DesignAtomsPrintProductItemsApiClient.prototype.batchCreateItemsFromFile = function (itemType, tenantId, sourceFiles, paletteUID, preserveOriginalFile) {
|
|
6282
8017
|
var _this = this;
|
|
6283
8018
|
var url_ = this.baseUrl + "/api/atoms/v1/designs/print-product/items/from-file/batch-create?";
|
|
6284
8019
|
if (itemType !== undefined && itemType !== null)
|
|
@@ -6291,6 +8026,10 @@
|
|
|
6291
8026
|
var content_ = new FormData();
|
|
6292
8027
|
if (sourceFiles !== null && sourceFiles !== undefined)
|
|
6293
8028
|
sourceFiles.forEach(function (item_) { return content_.append("sourceFiles", item_.data, item_.fileName ? item_.fileName : "sourceFiles"); });
|
|
8029
|
+
if (paletteUID !== null && paletteUID !== undefined)
|
|
8030
|
+
content_.append("paletteUID", paletteUID.toString());
|
|
8031
|
+
if (preserveOriginalFile !== null && preserveOriginalFile !== undefined)
|
|
8032
|
+
content_.append("preserveOriginalFile", preserveOriginalFile.toString());
|
|
6294
8033
|
var options_ = {
|
|
6295
8034
|
body: content_,
|
|
6296
8035
|
observe: "response",
|
|
@@ -6317,7 +8056,7 @@
|
|
|
6317
8056
|
}));
|
|
6318
8057
|
};
|
|
6319
8058
|
DesignAtomsPrintProductItemsApiClient.prototype.processBatchCreateItemsFromFile = function (response) {
|
|
6320
|
-
var
|
|
8059
|
+
var e_75, _a;
|
|
6321
8060
|
var _this = this;
|
|
6322
8061
|
var status = response.status;
|
|
6323
8062
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6330,12 +8069,12 @@
|
|
|
6330
8069
|
_headers[key] = response.headers.get(key);
|
|
6331
8070
|
}
|
|
6332
8071
|
}
|
|
6333
|
-
catch (
|
|
8072
|
+
catch (e_75_1) { e_75 = { error: e_75_1 }; }
|
|
6334
8073
|
finally {
|
|
6335
8074
|
try {
|
|
6336
8075
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6337
8076
|
}
|
|
6338
|
-
finally { if (
|
|
8077
|
+
finally { if (e_75) throw e_75.error; }
|
|
6339
8078
|
}
|
|
6340
8079
|
}
|
|
6341
8080
|
if (status === 200) {
|
|
@@ -6421,7 +8160,7 @@
|
|
|
6421
8160
|
}));
|
|
6422
8161
|
};
|
|
6423
8162
|
DesignAtomsPrintProductItemsApiClient.prototype.processCreateItemFromStorage = function (response) {
|
|
6424
|
-
var
|
|
8163
|
+
var e_76, _a;
|
|
6425
8164
|
var _this = this;
|
|
6426
8165
|
var status = response.status;
|
|
6427
8166
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6434,12 +8173,12 @@
|
|
|
6434
8173
|
_headers[key] = response.headers.get(key);
|
|
6435
8174
|
}
|
|
6436
8175
|
}
|
|
6437
|
-
catch (
|
|
8176
|
+
catch (e_76_1) { e_76 = { error: e_76_1 }; }
|
|
6438
8177
|
finally {
|
|
6439
8178
|
try {
|
|
6440
8179
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6441
8180
|
}
|
|
6442
|
-
finally { if (
|
|
8181
|
+
finally { if (e_76) throw e_76.error; }
|
|
6443
8182
|
}
|
|
6444
8183
|
}
|
|
6445
8184
|
if (status === 200) {
|
|
@@ -6525,7 +8264,7 @@
|
|
|
6525
8264
|
}));
|
|
6526
8265
|
};
|
|
6527
8266
|
DesignAtomsPrintProductItemsApiClient.prototype.processBatchCreateItemsFromStorage = function (response) {
|
|
6528
|
-
var
|
|
8267
|
+
var e_77, _a;
|
|
6529
8268
|
var _this = this;
|
|
6530
8269
|
var status = response.status;
|
|
6531
8270
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6538,12 +8277,12 @@
|
|
|
6538
8277
|
_headers[key] = response.headers.get(key);
|
|
6539
8278
|
}
|
|
6540
8279
|
}
|
|
6541
|
-
catch (
|
|
8280
|
+
catch (e_77_1) { e_77 = { error: e_77_1 }; }
|
|
6542
8281
|
finally {
|
|
6543
8282
|
try {
|
|
6544
8283
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6545
8284
|
}
|
|
6546
|
-
finally { if (
|
|
8285
|
+
finally { if (e_77) throw e_77.error; }
|
|
6547
8286
|
}
|
|
6548
8287
|
}
|
|
6549
8288
|
if (status === 200) {
|
|
@@ -6629,7 +8368,7 @@
|
|
|
6629
8368
|
}));
|
|
6630
8369
|
};
|
|
6631
8370
|
DesignAtomsPrintProductItemsApiClient.prototype.processCreateItemFromUrl = function (response) {
|
|
6632
|
-
var
|
|
8371
|
+
var e_78, _a;
|
|
6633
8372
|
var _this = this;
|
|
6634
8373
|
var status = response.status;
|
|
6635
8374
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6642,12 +8381,12 @@
|
|
|
6642
8381
|
_headers[key] = response.headers.get(key);
|
|
6643
8382
|
}
|
|
6644
8383
|
}
|
|
6645
|
-
catch (
|
|
8384
|
+
catch (e_78_1) { e_78 = { error: e_78_1 }; }
|
|
6646
8385
|
finally {
|
|
6647
8386
|
try {
|
|
6648
8387
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6649
8388
|
}
|
|
6650
|
-
finally { if (
|
|
8389
|
+
finally { if (e_78) throw e_78.error; }
|
|
6651
8390
|
}
|
|
6652
8391
|
}
|
|
6653
8392
|
if (status === 200) {
|
|
@@ -6733,7 +8472,7 @@
|
|
|
6733
8472
|
}));
|
|
6734
8473
|
};
|
|
6735
8474
|
DesignAtomsPrintProductItemsApiClient.prototype.processBatchCreateItemsFromUrl = function (response) {
|
|
6736
|
-
var
|
|
8475
|
+
var e_79, _a;
|
|
6737
8476
|
var _this = this;
|
|
6738
8477
|
var status = response.status;
|
|
6739
8478
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6746,12 +8485,12 @@
|
|
|
6746
8485
|
_headers[key] = response.headers.get(key);
|
|
6747
8486
|
}
|
|
6748
8487
|
}
|
|
6749
|
-
catch (
|
|
8488
|
+
catch (e_79_1) { e_79 = { error: e_79_1 }; }
|
|
6750
8489
|
finally {
|
|
6751
8490
|
try {
|
|
6752
8491
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6753
8492
|
}
|
|
6754
|
-
finally { if (
|
|
8493
|
+
finally { if (e_79) throw e_79.error; }
|
|
6755
8494
|
}
|
|
6756
8495
|
}
|
|
6757
8496
|
if (status === 200) {
|
|
@@ -6859,7 +8598,7 @@
|
|
|
6859
8598
|
}));
|
|
6860
8599
|
};
|
|
6861
8600
|
DesignAtomsServiceApiClient.prototype.processCreateDesign = function (response) {
|
|
6862
|
-
var
|
|
8601
|
+
var e_80, _a;
|
|
6863
8602
|
var _this = this;
|
|
6864
8603
|
var status = response.status;
|
|
6865
8604
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6872,12 +8611,12 @@
|
|
|
6872
8611
|
_headers[key] = response.headers.get(key);
|
|
6873
8612
|
}
|
|
6874
8613
|
}
|
|
6875
|
-
catch (
|
|
8614
|
+
catch (e_80_1) { e_80 = { error: e_80_1 }; }
|
|
6876
8615
|
finally {
|
|
6877
8616
|
try {
|
|
6878
8617
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6879
8618
|
}
|
|
6880
|
-
finally { if (
|
|
8619
|
+
finally { if (e_80) throw e_80.error; }
|
|
6881
8620
|
}
|
|
6882
8621
|
}
|
|
6883
8622
|
if (status === 201) {
|
|
@@ -6887,6 +8626,13 @@
|
|
|
6887
8626
|
return rxjs.of(result201);
|
|
6888
8627
|
}));
|
|
6889
8628
|
}
|
|
8629
|
+
else if (status === 409) {
|
|
8630
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
8631
|
+
var result409 = null;
|
|
8632
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
8633
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
8634
|
+
}));
|
|
8635
|
+
}
|
|
6890
8636
|
else if (status === 401) {
|
|
6891
8637
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
6892
8638
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -6952,7 +8698,7 @@
|
|
|
6952
8698
|
}));
|
|
6953
8699
|
};
|
|
6954
8700
|
DesignAtomsServiceApiClient.prototype.processExtractBackground = function (response) {
|
|
6955
|
-
var
|
|
8701
|
+
var e_81, _a;
|
|
6956
8702
|
var _this = this;
|
|
6957
8703
|
var status = response.status;
|
|
6958
8704
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -6965,12 +8711,12 @@
|
|
|
6965
8711
|
_headers[key] = response.headers.get(key);
|
|
6966
8712
|
}
|
|
6967
8713
|
}
|
|
6968
|
-
catch (
|
|
8714
|
+
catch (e_81_1) { e_81 = { error: e_81_1 }; }
|
|
6969
8715
|
finally {
|
|
6970
8716
|
try {
|
|
6971
8717
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6972
8718
|
}
|
|
6973
|
-
finally { if (
|
|
8719
|
+
finally { if (e_81) throw e_81.error; }
|
|
6974
8720
|
}
|
|
6975
8721
|
}
|
|
6976
8722
|
if (status === 200 || status === 206) {
|
|
@@ -7058,7 +8804,7 @@
|
|
|
7058
8804
|
}));
|
|
7059
8805
|
};
|
|
7060
8806
|
DesignAtomsServiceApiClient.prototype.processSetEditorMockups = function (response) {
|
|
7061
|
-
var
|
|
8807
|
+
var e_82, _a;
|
|
7062
8808
|
var _this = this;
|
|
7063
8809
|
var status = response.status;
|
|
7064
8810
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7071,12 +8817,12 @@
|
|
|
7071
8817
|
_headers[key] = response.headers.get(key);
|
|
7072
8818
|
}
|
|
7073
8819
|
}
|
|
7074
|
-
catch (
|
|
8820
|
+
catch (e_82_1) { e_82 = { error: e_82_1 }; }
|
|
7075
8821
|
finally {
|
|
7076
8822
|
try {
|
|
7077
8823
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7078
8824
|
}
|
|
7079
|
-
finally { if (
|
|
8825
|
+
finally { if (e_82) throw e_82.error; }
|
|
7080
8826
|
}
|
|
7081
8827
|
}
|
|
7082
8828
|
if (status === 204) {
|
|
@@ -7160,7 +8906,7 @@
|
|
|
7160
8906
|
}));
|
|
7161
8907
|
};
|
|
7162
8908
|
DesignAtomsServiceApiClient.prototype.processGetDesignParameters = function (response) {
|
|
7163
|
-
var
|
|
8909
|
+
var e_83, _a;
|
|
7164
8910
|
var _this = this;
|
|
7165
8911
|
var status = response.status;
|
|
7166
8912
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7173,12 +8919,12 @@
|
|
|
7173
8919
|
_headers[key] = response.headers.get(key);
|
|
7174
8920
|
}
|
|
7175
8921
|
}
|
|
7176
|
-
catch (
|
|
8922
|
+
catch (e_83_1) { e_83 = { error: e_83_1 }; }
|
|
7177
8923
|
finally {
|
|
7178
8924
|
try {
|
|
7179
8925
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7180
8926
|
}
|
|
7181
|
-
finally { if (
|
|
8927
|
+
finally { if (e_83) throw e_83.error; }
|
|
7182
8928
|
}
|
|
7183
8929
|
}
|
|
7184
8930
|
if (status === 200) {
|
|
@@ -7257,7 +9003,7 @@
|
|
|
7257
9003
|
}));
|
|
7258
9004
|
};
|
|
7259
9005
|
DesignAtomsServiceApiClient.prototype.processLoadDataSchema = function (response) {
|
|
7260
|
-
var
|
|
9006
|
+
var e_84, _a;
|
|
7261
9007
|
var _this = this;
|
|
7262
9008
|
var status = response.status;
|
|
7263
9009
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7270,12 +9016,12 @@
|
|
|
7270
9016
|
_headers[key] = response.headers.get(key);
|
|
7271
9017
|
}
|
|
7272
9018
|
}
|
|
7273
|
-
catch (
|
|
9019
|
+
catch (e_84_1) { e_84 = { error: e_84_1 }; }
|
|
7274
9020
|
finally {
|
|
7275
9021
|
try {
|
|
7276
9022
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7277
9023
|
}
|
|
7278
|
-
finally { if (
|
|
9024
|
+
finally { if (e_84) throw e_84.error; }
|
|
7279
9025
|
}
|
|
7280
9026
|
}
|
|
7281
9027
|
if (status === 200 || status === 206) {
|
|
@@ -7360,7 +9106,7 @@
|
|
|
7360
9106
|
}));
|
|
7361
9107
|
};
|
|
7362
9108
|
DesignAtomsServiceApiClient.prototype.processLoadToggleSet = function (response) {
|
|
7363
|
-
var
|
|
9109
|
+
var e_85, _a;
|
|
7364
9110
|
var _this = this;
|
|
7365
9111
|
var status = response.status;
|
|
7366
9112
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7373,12 +9119,12 @@
|
|
|
7373
9119
|
_headers[key] = response.headers.get(key);
|
|
7374
9120
|
}
|
|
7375
9121
|
}
|
|
7376
|
-
catch (
|
|
9122
|
+
catch (e_85_1) { e_85 = { error: e_85_1 }; }
|
|
7377
9123
|
finally {
|
|
7378
9124
|
try {
|
|
7379
9125
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7380
9126
|
}
|
|
7381
|
-
finally { if (
|
|
9127
|
+
finally { if (e_85) throw e_85.error; }
|
|
7382
9128
|
}
|
|
7383
9129
|
}
|
|
7384
9130
|
if (status === 200 || status === 206) {
|
|
@@ -7463,7 +9209,7 @@
|
|
|
7463
9209
|
}));
|
|
7464
9210
|
};
|
|
7465
9211
|
DesignAtomsServiceApiClient.prototype.processGetVariables = function (response) {
|
|
7466
|
-
var
|
|
9212
|
+
var e_86, _a;
|
|
7467
9213
|
var _this = this;
|
|
7468
9214
|
var status = response.status;
|
|
7469
9215
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7476,12 +9222,12 @@
|
|
|
7476
9222
|
_headers[key] = response.headers.get(key);
|
|
7477
9223
|
}
|
|
7478
9224
|
}
|
|
7479
|
-
catch (
|
|
9225
|
+
catch (e_86_1) { e_86 = { error: e_86_1 }; }
|
|
7480
9226
|
finally {
|
|
7481
9227
|
try {
|
|
7482
9228
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7483
9229
|
}
|
|
7484
|
-
finally { if (
|
|
9230
|
+
finally { if (e_86) throw e_86.error; }
|
|
7485
9231
|
}
|
|
7486
9232
|
}
|
|
7487
9233
|
if (status === 200) {
|
|
@@ -7563,7 +9309,7 @@
|
|
|
7563
9309
|
}));
|
|
7564
9310
|
};
|
|
7565
9311
|
DesignAtomsServiceApiClient.prototype.processSetVariables = function (response) {
|
|
7566
|
-
var
|
|
9312
|
+
var e_87, _a;
|
|
7567
9313
|
var _this = this;
|
|
7568
9314
|
var status = response.status;
|
|
7569
9315
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7576,12 +9322,12 @@
|
|
|
7576
9322
|
_headers[key] = response.headers.get(key);
|
|
7577
9323
|
}
|
|
7578
9324
|
}
|
|
7579
|
-
catch (
|
|
9325
|
+
catch (e_87_1) { e_87 = { error: e_87_1 }; }
|
|
7580
9326
|
finally {
|
|
7581
9327
|
try {
|
|
7582
9328
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7583
9329
|
}
|
|
7584
|
-
finally { if (
|
|
9330
|
+
finally { if (e_87) throw e_87.error; }
|
|
7585
9331
|
}
|
|
7586
9332
|
}
|
|
7587
9333
|
if (status === 200) {
|
|
@@ -7665,7 +9411,7 @@
|
|
|
7665
9411
|
}));
|
|
7666
9412
|
};
|
|
7667
9413
|
DesignAtomsServiceApiClient.prototype.processLoadVdpData = function (response) {
|
|
7668
|
-
var
|
|
9414
|
+
var e_88, _a;
|
|
7669
9415
|
var _this = this;
|
|
7670
9416
|
var status = response.status;
|
|
7671
9417
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7678,12 +9424,12 @@
|
|
|
7678
9424
|
_headers[key] = response.headers.get(key);
|
|
7679
9425
|
}
|
|
7680
9426
|
}
|
|
7681
|
-
catch (
|
|
9427
|
+
catch (e_88_1) { e_88 = { error: e_88_1 }; }
|
|
7682
9428
|
finally {
|
|
7683
9429
|
try {
|
|
7684
9430
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7685
9431
|
}
|
|
7686
|
-
finally { if (
|
|
9432
|
+
finally { if (e_88) throw e_88.error; }
|
|
7687
9433
|
}
|
|
7688
9434
|
}
|
|
7689
9435
|
if (status === 200) {
|
|
@@ -7772,7 +9518,7 @@
|
|
|
7772
9518
|
}));
|
|
7773
9519
|
};
|
|
7774
9520
|
DesignAtomsServiceApiClient.prototype.processSaveVdpData = function (response) {
|
|
7775
|
-
var
|
|
9521
|
+
var e_89, _a;
|
|
7776
9522
|
var _this = this;
|
|
7777
9523
|
var status = response.status;
|
|
7778
9524
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7785,12 +9531,12 @@
|
|
|
7785
9531
|
_headers[key] = response.headers.get(key);
|
|
7786
9532
|
}
|
|
7787
9533
|
}
|
|
7788
|
-
catch (
|
|
9534
|
+
catch (e_89_1) { e_89 = { error: e_89_1 }; }
|
|
7789
9535
|
finally {
|
|
7790
9536
|
try {
|
|
7791
9537
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7792
9538
|
}
|
|
7793
|
-
finally { if (
|
|
9539
|
+
finally { if (e_89) throw e_89.error; }
|
|
7794
9540
|
}
|
|
7795
9541
|
}
|
|
7796
9542
|
if (status === 200) {
|
|
@@ -7865,7 +9611,7 @@
|
|
|
7865
9611
|
}));
|
|
7866
9612
|
};
|
|
7867
9613
|
DesignAtomsServiceApiClient.prototype.processDeleteVdpData = function (response) {
|
|
7868
|
-
var
|
|
9614
|
+
var e_90, _a;
|
|
7869
9615
|
var _this = this;
|
|
7870
9616
|
var status = response.status;
|
|
7871
9617
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7878,12 +9624,12 @@
|
|
|
7878
9624
|
_headers[key] = response.headers.get(key);
|
|
7879
9625
|
}
|
|
7880
9626
|
}
|
|
7881
|
-
catch (
|
|
9627
|
+
catch (e_90_1) { e_90 = { error: e_90_1 }; }
|
|
7882
9628
|
finally {
|
|
7883
9629
|
try {
|
|
7884
9630
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7885
9631
|
}
|
|
7886
|
-
finally { if (
|
|
9632
|
+
finally { if (e_90) throw e_90.error; }
|
|
7887
9633
|
}
|
|
7888
9634
|
}
|
|
7889
9635
|
if (status === 200) {
|
|
@@ -7957,7 +9703,7 @@
|
|
|
7957
9703
|
}));
|
|
7958
9704
|
};
|
|
7959
9705
|
DesignAtomsServiceApiClient.prototype.processConvertColors = function (response) {
|
|
7960
|
-
var
|
|
9706
|
+
var e_91, _a;
|
|
7961
9707
|
var _this = this;
|
|
7962
9708
|
var status = response.status;
|
|
7963
9709
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -7970,12 +9716,12 @@
|
|
|
7970
9716
|
_headers[key] = response.headers.get(key);
|
|
7971
9717
|
}
|
|
7972
9718
|
}
|
|
7973
|
-
catch (
|
|
9719
|
+
catch (e_91_1) { e_91 = { error: e_91_1 }; }
|
|
7974
9720
|
finally {
|
|
7975
9721
|
try {
|
|
7976
9722
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7977
9723
|
}
|
|
7978
|
-
finally { if (
|
|
9724
|
+
finally { if (e_91) throw e_91.error; }
|
|
7979
9725
|
}
|
|
7980
9726
|
}
|
|
7981
9727
|
if (status === 200) {
|
|
@@ -8053,7 +9799,7 @@
|
|
|
8053
9799
|
}));
|
|
8054
9800
|
};
|
|
8055
9801
|
DesignAtomsServiceApiClient.prototype.processLoadProductFromResource = function (response) {
|
|
8056
|
-
var
|
|
9802
|
+
var e_92, _a;
|
|
8057
9803
|
var _this = this;
|
|
8058
9804
|
var status = response.status;
|
|
8059
9805
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -8066,12 +9812,12 @@
|
|
|
8066
9812
|
_headers[key] = response.headers.get(key);
|
|
8067
9813
|
}
|
|
8068
9814
|
}
|
|
8069
|
-
catch (
|
|
9815
|
+
catch (e_92_1) { e_92 = { error: e_92_1 }; }
|
|
8070
9816
|
finally {
|
|
8071
9817
|
try {
|
|
8072
9818
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
8073
9819
|
}
|
|
8074
|
-
finally { if (
|
|
9820
|
+
finally { if (e_92) throw e_92.error; }
|
|
8075
9821
|
}
|
|
8076
9822
|
}
|
|
8077
9823
|
if (status === 200) {
|
|
@@ -8158,7 +9904,7 @@
|
|
|
8158
9904
|
}));
|
|
8159
9905
|
};
|
|
8160
9906
|
DesignAtomsServiceApiClient.prototype.processRenderProduct = function (response) {
|
|
8161
|
-
var
|
|
9907
|
+
var e_93, _a;
|
|
8162
9908
|
var status = response.status;
|
|
8163
9909
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
8164
9910
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -8170,12 +9916,12 @@
|
|
|
8170
9916
|
_headers[key] = response.headers.get(key);
|
|
8171
9917
|
}
|
|
8172
9918
|
}
|
|
8173
|
-
catch (
|
|
9919
|
+
catch (e_93_1) { e_93 = { error: e_93_1 }; }
|
|
8174
9920
|
finally {
|
|
8175
9921
|
try {
|
|
8176
9922
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
8177
9923
|
}
|
|
8178
|
-
finally { if (
|
|
9924
|
+
finally { if (e_93) throw e_93.error; }
|
|
8179
9925
|
}
|
|
8180
9926
|
}
|
|
8181
9927
|
if (status === 200 || status === 206) {
|
|
@@ -8247,7 +9993,7 @@
|
|
|
8247
9993
|
}));
|
|
8248
9994
|
};
|
|
8249
9995
|
DesignAtomsServiceApiClient.prototype.processRenderDesignPreview = function (response) {
|
|
8250
|
-
var
|
|
9996
|
+
var e_94, _a;
|
|
8251
9997
|
var status = response.status;
|
|
8252
9998
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
8253
9999
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -8259,12 +10005,12 @@
|
|
|
8259
10005
|
_headers[key] = response.headers.get(key);
|
|
8260
10006
|
}
|
|
8261
10007
|
}
|
|
8262
|
-
catch (
|
|
10008
|
+
catch (e_94_1) { e_94 = { error: e_94_1 }; }
|
|
8263
10009
|
finally {
|
|
8264
10010
|
try {
|
|
8265
10011
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
8266
10012
|
}
|
|
8267
|
-
finally { if (
|
|
10013
|
+
finally { if (e_94) throw e_94.error; }
|
|
8268
10014
|
}
|
|
8269
10015
|
}
|
|
8270
10016
|
if (status === 200 || status === 206) {
|
|
@@ -8332,7 +10078,7 @@
|
|
|
8332
10078
|
}));
|
|
8333
10079
|
};
|
|
8334
10080
|
DesignAtomsServiceApiClient.prototype.processRenderDesignPreviewToResource = function (response) {
|
|
8335
|
-
var
|
|
10081
|
+
var e_95, _a;
|
|
8336
10082
|
var _this = this;
|
|
8337
10083
|
var status = response.status;
|
|
8338
10084
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -8345,12 +10091,12 @@
|
|
|
8345
10091
|
_headers[key] = response.headers.get(key);
|
|
8346
10092
|
}
|
|
8347
10093
|
}
|
|
8348
|
-
catch (
|
|
10094
|
+
catch (e_95_1) { e_95 = { error: e_95_1 }; }
|
|
8349
10095
|
finally {
|
|
8350
10096
|
try {
|
|
8351
10097
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
8352
10098
|
}
|
|
8353
|
-
finally { if (
|
|
10099
|
+
finally { if (e_95) throw e_95.error; }
|
|
8354
10100
|
}
|
|
8355
10101
|
}
|
|
8356
10102
|
if (status === 200) {
|
|
@@ -8360,6 +10106,13 @@
|
|
|
8360
10106
|
return rxjs.of(result200);
|
|
8361
10107
|
}));
|
|
8362
10108
|
}
|
|
10109
|
+
else if (status === 404) {
|
|
10110
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
10111
|
+
var result404 = null;
|
|
10112
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
10113
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
10114
|
+
}));
|
|
10115
|
+
}
|
|
8363
10116
|
else if (status === 409) {
|
|
8364
10117
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
8365
10118
|
var result409 = null;
|
|
@@ -8430,7 +10183,8 @@
|
|
|
8430
10183
|
}));
|
|
8431
10184
|
};
|
|
8432
10185
|
DesignAtomsServiceApiClient.prototype.processRenderDesignProof = function (response) {
|
|
8433
|
-
var
|
|
10186
|
+
var e_96, _a;
|
|
10187
|
+
var _this = this;
|
|
8434
10188
|
var status = response.status;
|
|
8435
10189
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
8436
10190
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -8442,12 +10196,12 @@
|
|
|
8442
10196
|
_headers[key] = response.headers.get(key);
|
|
8443
10197
|
}
|
|
8444
10198
|
}
|
|
8445
|
-
catch (
|
|
10199
|
+
catch (e_96_1) { e_96 = { error: e_96_1 }; }
|
|
8446
10200
|
finally {
|
|
8447
10201
|
try {
|
|
8448
10202
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
8449
10203
|
}
|
|
8450
|
-
finally { if (
|
|
10204
|
+
finally { if (e_96) throw e_96.error; }
|
|
8451
10205
|
}
|
|
8452
10206
|
}
|
|
8453
10207
|
if (status === 200 || status === 206) {
|
|
@@ -8456,6 +10210,13 @@
|
|
|
8456
10210
|
var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
8457
10211
|
return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
|
|
8458
10212
|
}
|
|
10213
|
+
else if (status === 404) {
|
|
10214
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
10215
|
+
var result404 = null;
|
|
10216
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
10217
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
10218
|
+
}));
|
|
10219
|
+
}
|
|
8459
10220
|
else if (status === 401) {
|
|
8460
10221
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
8461
10222
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -8515,7 +10276,7 @@
|
|
|
8515
10276
|
}));
|
|
8516
10277
|
};
|
|
8517
10278
|
DesignAtomsServiceApiClient.prototype.processRenderDesignProofToResource = function (response) {
|
|
8518
|
-
var
|
|
10279
|
+
var e_97, _a;
|
|
8519
10280
|
var _this = this;
|
|
8520
10281
|
var status = response.status;
|
|
8521
10282
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -8528,12 +10289,12 @@
|
|
|
8528
10289
|
_headers[key] = response.headers.get(key);
|
|
8529
10290
|
}
|
|
8530
10291
|
}
|
|
8531
|
-
catch (
|
|
10292
|
+
catch (e_97_1) { e_97 = { error: e_97_1 }; }
|
|
8532
10293
|
finally {
|
|
8533
10294
|
try {
|
|
8534
10295
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
8535
10296
|
}
|
|
8536
|
-
finally { if (
|
|
10297
|
+
finally { if (e_97) throw e_97.error; }
|
|
8537
10298
|
}
|
|
8538
10299
|
}
|
|
8539
10300
|
if (status === 200) {
|
|
@@ -8613,7 +10374,7 @@
|
|
|
8613
10374
|
}));
|
|
8614
10375
|
};
|
|
8615
10376
|
DesignAtomsServiceApiClient.prototype.processLoadProduct = function (response) {
|
|
8616
|
-
var
|
|
10377
|
+
var e_98, _a;
|
|
8617
10378
|
var _this = this;
|
|
8618
10379
|
var status = response.status;
|
|
8619
10380
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -8626,12 +10387,12 @@
|
|
|
8626
10387
|
_headers[key] = response.headers.get(key);
|
|
8627
10388
|
}
|
|
8628
10389
|
}
|
|
8629
|
-
catch (
|
|
10390
|
+
catch (e_98_1) { e_98 = { error: e_98_1 }; }
|
|
8630
10391
|
finally {
|
|
8631
10392
|
try {
|
|
8632
10393
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
8633
10394
|
}
|
|
8634
|
-
finally { if (
|
|
10395
|
+
finally { if (e_98) throw e_98.error; }
|
|
8635
10396
|
}
|
|
8636
10397
|
}
|
|
8637
10398
|
if (status === 200) {
|
|
@@ -8714,7 +10475,7 @@
|
|
|
8714
10475
|
}));
|
|
8715
10476
|
};
|
|
8716
10477
|
DesignAtomsServiceApiClient.prototype.processSaveProduct = function (response) {
|
|
8717
|
-
var
|
|
10478
|
+
var e_99, _a;
|
|
8718
10479
|
var _this = this;
|
|
8719
10480
|
var status = response.status;
|
|
8720
10481
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -8727,12 +10488,12 @@
|
|
|
8727
10488
|
_headers[key] = response.headers.get(key);
|
|
8728
10489
|
}
|
|
8729
10490
|
}
|
|
8730
|
-
catch (
|
|
10491
|
+
catch (e_99_1) { e_99 = { error: e_99_1 }; }
|
|
8731
10492
|
finally {
|
|
8732
10493
|
try {
|
|
8733
10494
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
8734
10495
|
}
|
|
8735
|
-
finally { if (
|
|
10496
|
+
finally { if (e_99) throw e_99.error; }
|
|
8736
10497
|
}
|
|
8737
10498
|
}
|
|
8738
10499
|
if (status === 200) {
|
|
@@ -8832,7 +10593,7 @@
|
|
|
8832
10593
|
}));
|
|
8833
10594
|
};
|
|
8834
10595
|
DesignAtomsServiceApiClient.prototype.processPatchProduct = function (response) {
|
|
8835
|
-
var
|
|
10596
|
+
var e_100, _a;
|
|
8836
10597
|
var _this = this;
|
|
8837
10598
|
var status = response.status;
|
|
8838
10599
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -8845,12 +10606,12 @@
|
|
|
8845
10606
|
_headers[key] = response.headers.get(key);
|
|
8846
10607
|
}
|
|
8847
10608
|
}
|
|
8848
|
-
catch (
|
|
10609
|
+
catch (e_100_1) { e_100 = { error: e_100_1 }; }
|
|
8849
10610
|
finally {
|
|
8850
10611
|
try {
|
|
8851
10612
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
8852
10613
|
}
|
|
8853
|
-
finally { if (
|
|
10614
|
+
finally { if (e_100) throw e_100.error; }
|
|
8854
10615
|
}
|
|
8855
10616
|
}
|
|
8856
10617
|
if (status === 200) {
|
|
@@ -8941,7 +10702,7 @@
|
|
|
8941
10702
|
}));
|
|
8942
10703
|
};
|
|
8943
10704
|
DesignAtomsServiceApiClient.prototype.processCreateItem = function (response) {
|
|
8944
|
-
var
|
|
10705
|
+
var e_101, _a;
|
|
8945
10706
|
var _this = this;
|
|
8946
10707
|
var status = response.status;
|
|
8947
10708
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -8954,12 +10715,12 @@
|
|
|
8954
10715
|
_headers[key] = response.headers.get(key);
|
|
8955
10716
|
}
|
|
8956
10717
|
}
|
|
8957
|
-
catch (
|
|
10718
|
+
catch (e_101_1) { e_101 = { error: e_101_1 }; }
|
|
8958
10719
|
finally {
|
|
8959
10720
|
try {
|
|
8960
10721
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
8961
10722
|
}
|
|
8962
|
-
finally { if (
|
|
10723
|
+
finally { if (e_101) throw e_101.error; }
|
|
8963
10724
|
}
|
|
8964
10725
|
}
|
|
8965
10726
|
if (status === 200) {
|
|
@@ -9036,7 +10797,7 @@
|
|
|
9036
10797
|
}));
|
|
9037
10798
|
};
|
|
9038
10799
|
DesignAtomsServiceApiClient.prototype.processExtractItemImage = function (response) {
|
|
9039
|
-
var
|
|
10800
|
+
var e_102, _a;
|
|
9040
10801
|
var status = response.status;
|
|
9041
10802
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
9042
10803
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -9048,12 +10809,12 @@
|
|
|
9048
10809
|
_headers[key] = response.headers.get(key);
|
|
9049
10810
|
}
|
|
9050
10811
|
}
|
|
9051
|
-
catch (
|
|
10812
|
+
catch (e_102_1) { e_102 = { error: e_102_1 }; }
|
|
9052
10813
|
finally {
|
|
9053
10814
|
try {
|
|
9054
10815
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
9055
10816
|
}
|
|
9056
|
-
finally { if (
|
|
10817
|
+
finally { if (e_102) throw e_102.error; }
|
|
9057
10818
|
}
|
|
9058
10819
|
}
|
|
9059
10820
|
if (status === 200 || status === 206) {
|
|
@@ -9122,7 +10883,7 @@
|
|
|
9122
10883
|
}));
|
|
9123
10884
|
};
|
|
9124
10885
|
DesignAtomsServiceApiClient.prototype.processFlattenItems = function (response) {
|
|
9125
|
-
var
|
|
10886
|
+
var e_103, _a;
|
|
9126
10887
|
var _this = this;
|
|
9127
10888
|
var status = response.status;
|
|
9128
10889
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -9135,12 +10896,12 @@
|
|
|
9135
10896
|
_headers[key] = response.headers.get(key);
|
|
9136
10897
|
}
|
|
9137
10898
|
}
|
|
9138
|
-
catch (
|
|
10899
|
+
catch (e_103_1) { e_103 = { error: e_103_1 }; }
|
|
9139
10900
|
finally {
|
|
9140
10901
|
try {
|
|
9141
10902
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
9142
10903
|
}
|
|
9143
|
-
finally { if (
|
|
10904
|
+
finally { if (e_103) throw e_103.error; }
|
|
9144
10905
|
}
|
|
9145
10906
|
}
|
|
9146
10907
|
if (status === 200) {
|
|
@@ -9213,7 +10974,7 @@
|
|
|
9213
10974
|
}));
|
|
9214
10975
|
};
|
|
9215
10976
|
DesignAtomsServiceApiClient.prototype.processCreatePrivateDesignFromDesign = function (response) {
|
|
9216
|
-
var
|
|
10977
|
+
var e_104, _a;
|
|
9217
10978
|
var status = response.status;
|
|
9218
10979
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
9219
10980
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -9225,12 +10986,12 @@
|
|
|
9225
10986
|
_headers[key] = response.headers.get(key);
|
|
9226
10987
|
}
|
|
9227
10988
|
}
|
|
9228
|
-
catch (
|
|
10989
|
+
catch (e_104_1) { e_104 = { error: e_104_1 }; }
|
|
9229
10990
|
finally {
|
|
9230
10991
|
try {
|
|
9231
10992
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
9232
10993
|
}
|
|
9233
|
-
finally { if (
|
|
10994
|
+
finally { if (e_104) throw e_104.error; }
|
|
9234
10995
|
}
|
|
9235
10996
|
}
|
|
9236
10997
|
if (status === 201) {
|
|
@@ -9301,7 +11062,7 @@
|
|
|
9301
11062
|
}));
|
|
9302
11063
|
};
|
|
9303
11064
|
DesignAtomsServiceApiClient.prototype.processCreatePrivateDesignFromResource = function (response) {
|
|
9304
|
-
var
|
|
11065
|
+
var e_105, _a;
|
|
9305
11066
|
var status = response.status;
|
|
9306
11067
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
9307
11068
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -9313,12 +11074,12 @@
|
|
|
9313
11074
|
_headers[key] = response.headers.get(key);
|
|
9314
11075
|
}
|
|
9315
11076
|
}
|
|
9316
|
-
catch (
|
|
11077
|
+
catch (e_105_1) { e_105 = { error: e_105_1 }; }
|
|
9317
11078
|
finally {
|
|
9318
11079
|
try {
|
|
9319
11080
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
9320
11081
|
}
|
|
9321
|
-
finally { if (
|
|
11082
|
+
finally { if (e_105) throw e_105.error; }
|
|
9322
11083
|
}
|
|
9323
11084
|
}
|
|
9324
11085
|
if (status === 201) {
|
|
@@ -9406,7 +11167,7 @@
|
|
|
9406
11167
|
}));
|
|
9407
11168
|
};
|
|
9408
11169
|
DesignAtomsViewerApiClient.prototype.processCssFonts = function (response) {
|
|
9409
|
-
var
|
|
11170
|
+
var e_106, _a;
|
|
9410
11171
|
var _this = this;
|
|
9411
11172
|
var status = response.status;
|
|
9412
11173
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -9419,12 +11180,12 @@
|
|
|
9419
11180
|
_headers[key] = response.headers.get(key);
|
|
9420
11181
|
}
|
|
9421
11182
|
}
|
|
9422
|
-
catch (
|
|
11183
|
+
catch (e_106_1) { e_106 = { error: e_106_1 }; }
|
|
9423
11184
|
finally {
|
|
9424
11185
|
try {
|
|
9425
11186
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
9426
11187
|
}
|
|
9427
|
-
finally { if (
|
|
11188
|
+
finally { if (e_106) throw e_106.error; }
|
|
9428
11189
|
}
|
|
9429
11190
|
}
|
|
9430
11191
|
if (status === 200) {
|
|
@@ -9491,7 +11252,7 @@
|
|
|
9491
11252
|
}));
|
|
9492
11253
|
};
|
|
9493
11254
|
DesignAtomsViewerApiClient.prototype.processFonts = function (response) {
|
|
9494
|
-
var
|
|
11255
|
+
var e_107, _a;
|
|
9495
11256
|
var _this = this;
|
|
9496
11257
|
var status = response.status;
|
|
9497
11258
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -9504,12 +11265,12 @@
|
|
|
9504
11265
|
_headers[key] = response.headers.get(key);
|
|
9505
11266
|
}
|
|
9506
11267
|
}
|
|
9507
|
-
catch (
|
|
11268
|
+
catch (e_107_1) { e_107 = { error: e_107_1 }; }
|
|
9508
11269
|
finally {
|
|
9509
11270
|
try {
|
|
9510
11271
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
9511
11272
|
}
|
|
9512
|
-
finally { if (
|
|
11273
|
+
finally { if (e_107) throw e_107.error; }
|
|
9513
11274
|
}
|
|
9514
11275
|
}
|
|
9515
11276
|
if (status === 200 || status === 206) {
|
|
@@ -9583,7 +11344,7 @@
|
|
|
9583
11344
|
}));
|
|
9584
11345
|
};
|
|
9585
11346
|
DesignAtomsViewerApiClient.prototype.processGetColorPreview = function (response) {
|
|
9586
|
-
var
|
|
11347
|
+
var e_108, _a;
|
|
9587
11348
|
var _this = this;
|
|
9588
11349
|
var status = response.status;
|
|
9589
11350
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -9596,12 +11357,12 @@
|
|
|
9596
11357
|
_headers[key] = response.headers.get(key);
|
|
9597
11358
|
}
|
|
9598
11359
|
}
|
|
9599
|
-
catch (
|
|
11360
|
+
catch (e_108_1) { e_108 = { error: e_108_1 }; }
|
|
9600
11361
|
finally {
|
|
9601
11362
|
try {
|
|
9602
11363
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
9603
11364
|
}
|
|
9604
|
-
finally { if (
|
|
11365
|
+
finally { if (e_108) throw e_108.error; }
|
|
9605
11366
|
}
|
|
9606
11367
|
}
|
|
9607
11368
|
if (status === 200) {
|
|
@@ -9611,6 +11372,13 @@
|
|
|
9611
11372
|
return rxjs.of(result200);
|
|
9612
11373
|
}));
|
|
9613
11374
|
}
|
|
11375
|
+
else if (status === 400) {
|
|
11376
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
11377
|
+
var result400 = null;
|
|
11378
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
11379
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
11380
|
+
}));
|
|
11381
|
+
}
|
|
9614
11382
|
else if (status === 401) {
|
|
9615
11383
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
9616
11384
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -9669,7 +11437,7 @@
|
|
|
9669
11437
|
}));
|
|
9670
11438
|
};
|
|
9671
11439
|
DesignAtomsViewerApiClient.prototype.processGetColorPreviews = function (response) {
|
|
9672
|
-
var
|
|
11440
|
+
var e_109, _a;
|
|
9673
11441
|
var _this = this;
|
|
9674
11442
|
var status = response.status;
|
|
9675
11443
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -9682,12 +11450,12 @@
|
|
|
9682
11450
|
_headers[key] = response.headers.get(key);
|
|
9683
11451
|
}
|
|
9684
11452
|
}
|
|
9685
|
-
catch (
|
|
11453
|
+
catch (e_109_1) { e_109 = { error: e_109_1 }; }
|
|
9686
11454
|
finally {
|
|
9687
11455
|
try {
|
|
9688
11456
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
9689
11457
|
}
|
|
9690
|
-
finally { if (
|
|
11458
|
+
finally { if (e_109) throw e_109.error; }
|
|
9691
11459
|
}
|
|
9692
11460
|
}
|
|
9693
11461
|
if (status === 200) {
|
|
@@ -9697,6 +11465,13 @@
|
|
|
9697
11465
|
return rxjs.of(result200);
|
|
9698
11466
|
}));
|
|
9699
11467
|
}
|
|
11468
|
+
else if (status === 400) {
|
|
11469
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
11470
|
+
var result400 = null;
|
|
11471
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
11472
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
11473
|
+
}));
|
|
11474
|
+
}
|
|
9700
11475
|
else if (status === 401) {
|
|
9701
11476
|
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
9702
11477
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -9733,7 +11508,7 @@
|
|
|
9733
11508
|
observe: "response",
|
|
9734
11509
|
responseType: "blob",
|
|
9735
11510
|
headers: new i1.HttpHeaders({
|
|
9736
|
-
"Accept": "application/
|
|
11511
|
+
"Accept": "application/octet-stream"
|
|
9737
11512
|
})
|
|
9738
11513
|
};
|
|
9739
11514
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
@@ -9754,7 +11529,7 @@
|
|
|
9754
11529
|
}));
|
|
9755
11530
|
};
|
|
9756
11531
|
DesignAtomsViewerApiClient.prototype.processGetCssFont = function (response) {
|
|
9757
|
-
var
|
|
11532
|
+
var e_110, _a;
|
|
9758
11533
|
var _this = this;
|
|
9759
11534
|
var status = response.status;
|
|
9760
11535
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -9767,12 +11542,12 @@
|
|
|
9767
11542
|
_headers[key] = response.headers.get(key);
|
|
9768
11543
|
}
|
|
9769
11544
|
}
|
|
9770
|
-
catch (
|
|
11545
|
+
catch (e_110_1) { e_110 = { error: e_110_1 }; }
|
|
9771
11546
|
finally {
|
|
9772
11547
|
try {
|
|
9773
11548
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
9774
11549
|
}
|
|
9775
|
-
finally { if (
|
|
11550
|
+
finally { if (e_110) throw e_110.error; }
|
|
9776
11551
|
}
|
|
9777
11552
|
}
|
|
9778
11553
|
if (status === 200 || status === 206) {
|
|
@@ -9842,7 +11617,7 @@
|
|
|
9842
11617
|
}));
|
|
9843
11618
|
};
|
|
9844
11619
|
DesignAtomsViewerApiClient.prototype.processGetFallbackFonts = function (response) {
|
|
9845
|
-
var
|
|
11620
|
+
var e_111, _a;
|
|
9846
11621
|
var _this = this;
|
|
9847
11622
|
var status = response.status;
|
|
9848
11623
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -9855,12 +11630,12 @@
|
|
|
9855
11630
|
_headers[key] = response.headers.get(key);
|
|
9856
11631
|
}
|
|
9857
11632
|
}
|
|
9858
|
-
catch (
|
|
11633
|
+
catch (e_111_1) { e_111 = { error: e_111_1 }; }
|
|
9859
11634
|
finally {
|
|
9860
11635
|
try {
|
|
9861
11636
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
9862
11637
|
}
|
|
9863
|
-
finally { if (
|
|
11638
|
+
finally { if (e_111) throw e_111.error; }
|
|
9864
11639
|
}
|
|
9865
11640
|
}
|
|
9866
11641
|
if (status === 200) {
|
|
@@ -9928,7 +11703,7 @@
|
|
|
9928
11703
|
}));
|
|
9929
11704
|
};
|
|
9930
11705
|
DesignAtomsViewerApiClient.prototype.processGetImageSize = function (response) {
|
|
9931
|
-
var
|
|
11706
|
+
var e_112, _a;
|
|
9932
11707
|
var _this = this;
|
|
9933
11708
|
var status = response.status;
|
|
9934
11709
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -9941,12 +11716,12 @@
|
|
|
9941
11716
|
_headers[key] = response.headers.get(key);
|
|
9942
11717
|
}
|
|
9943
11718
|
}
|
|
9944
|
-
catch (
|
|
11719
|
+
catch (e_112_1) { e_112 = { error: e_112_1 }; }
|
|
9945
11720
|
finally {
|
|
9946
11721
|
try {
|
|
9947
11722
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
9948
11723
|
}
|
|
9949
|
-
finally { if (
|
|
11724
|
+
finally { if (e_112) throw e_112.error; }
|
|
9950
11725
|
}
|
|
9951
11726
|
}
|
|
9952
11727
|
if (status === 200) {
|
|
@@ -10014,7 +11789,7 @@
|
|
|
10014
11789
|
}));
|
|
10015
11790
|
};
|
|
10016
11791
|
DesignAtomsViewerApiClient.prototype.processGetShapeBounds = function (response) {
|
|
10017
|
-
var
|
|
11792
|
+
var e_113, _a;
|
|
10018
11793
|
var _this = this;
|
|
10019
11794
|
var status = response.status;
|
|
10020
11795
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -10027,12 +11802,12 @@
|
|
|
10027
11802
|
_headers[key] = response.headers.get(key);
|
|
10028
11803
|
}
|
|
10029
11804
|
}
|
|
10030
|
-
catch (
|
|
11805
|
+
catch (e_113_1) { e_113 = { error: e_113_1 }; }
|
|
10031
11806
|
finally {
|
|
10032
11807
|
try {
|
|
10033
11808
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
10034
11809
|
}
|
|
10035
|
-
finally { if (
|
|
11810
|
+
finally { if (e_113) throw e_113.error; }
|
|
10036
11811
|
}
|
|
10037
11812
|
}
|
|
10038
11813
|
if (status === 200) {
|
|
@@ -10100,7 +11875,7 @@
|
|
|
10100
11875
|
}));
|
|
10101
11876
|
};
|
|
10102
11877
|
DesignAtomsViewerApiClient.prototype.processGetWatermarkItems = function (response) {
|
|
10103
|
-
var
|
|
11878
|
+
var e_114, _a;
|
|
10104
11879
|
var _this = this;
|
|
10105
11880
|
var status = response.status;
|
|
10106
11881
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -10113,12 +11888,12 @@
|
|
|
10113
11888
|
_headers[key] = response.headers.get(key);
|
|
10114
11889
|
}
|
|
10115
11890
|
}
|
|
10116
|
-
catch (
|
|
11891
|
+
catch (e_114_1) { e_114 = { error: e_114_1 }; }
|
|
10117
11892
|
finally {
|
|
10118
11893
|
try {
|
|
10119
11894
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
10120
11895
|
}
|
|
10121
|
-
finally { if (
|
|
11896
|
+
finally { if (e_114) throw e_114.error; }
|
|
10122
11897
|
}
|
|
10123
11898
|
}
|
|
10124
11899
|
if (status === 200) {
|
|
@@ -10215,7 +11990,7 @@
|
|
|
10215
11990
|
observe: "response",
|
|
10216
11991
|
responseType: "blob",
|
|
10217
11992
|
headers: new i1.HttpHeaders({
|
|
10218
|
-
"Accept": "application/
|
|
11993
|
+
"Accept": "application/octet-stream"
|
|
10219
11994
|
})
|
|
10220
11995
|
};
|
|
10221
11996
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
@@ -10236,7 +12011,7 @@
|
|
|
10236
12011
|
}));
|
|
10237
12012
|
};
|
|
10238
12013
|
DesignAtomsViewerApiClient.prototype.processImg = function (response) {
|
|
10239
|
-
var
|
|
12014
|
+
var e_115, _a;
|
|
10240
12015
|
var _this = this;
|
|
10241
12016
|
var status = response.status;
|
|
10242
12017
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -10249,12 +12024,12 @@
|
|
|
10249
12024
|
_headers[key] = response.headers.get(key);
|
|
10250
12025
|
}
|
|
10251
12026
|
}
|
|
10252
|
-
catch (
|
|
12027
|
+
catch (e_115_1) { e_115 = { error: e_115_1 }; }
|
|
10253
12028
|
finally {
|
|
10254
12029
|
try {
|
|
10255
12030
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
10256
12031
|
}
|
|
10257
|
-
finally { if (
|
|
12032
|
+
finally { if (e_115) throw e_115.error; }
|
|
10258
12033
|
}
|
|
10259
12034
|
}
|
|
10260
12035
|
if (status === 200 || status === 206) {
|
|
@@ -10329,7 +12104,7 @@
|
|
|
10329
12104
|
}));
|
|
10330
12105
|
};
|
|
10331
12106
|
DesignAtomsViewerApiClient.prototype.processGetLicense = function (response) {
|
|
10332
|
-
var
|
|
12107
|
+
var e_116, _a;
|
|
10333
12108
|
var _this = this;
|
|
10334
12109
|
var status = response.status;
|
|
10335
12110
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -10342,12 +12117,12 @@
|
|
|
10342
12117
|
_headers[key] = response.headers.get(key);
|
|
10343
12118
|
}
|
|
10344
12119
|
}
|
|
10345
|
-
catch (
|
|
12120
|
+
catch (e_116_1) { e_116 = { error: e_116_1 }; }
|
|
10346
12121
|
finally {
|
|
10347
12122
|
try {
|
|
10348
12123
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
10349
12124
|
}
|
|
10350
|
-
finally { if (
|
|
12125
|
+
finally { if (e_116) throw e_116.error; }
|
|
10351
12126
|
}
|
|
10352
12127
|
}
|
|
10353
12128
|
if (status === 200) {
|
|
@@ -10393,7 +12168,7 @@
|
|
|
10393
12168
|
observe: "response",
|
|
10394
12169
|
responseType: "blob",
|
|
10395
12170
|
headers: new i1.HttpHeaders({
|
|
10396
|
-
"Accept": "application/
|
|
12171
|
+
"Accept": "application/octet-stream"
|
|
10397
12172
|
})
|
|
10398
12173
|
};
|
|
10399
12174
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
@@ -10414,7 +12189,7 @@
|
|
|
10414
12189
|
}));
|
|
10415
12190
|
};
|
|
10416
12191
|
DesignAtomsViewerApiClient.prototype.processPth = function (response) {
|
|
10417
|
-
var
|
|
12192
|
+
var e_117, _a;
|
|
10418
12193
|
var _this = this;
|
|
10419
12194
|
var status = response.status;
|
|
10420
12195
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -10427,12 +12202,12 @@
|
|
|
10427
12202
|
_headers[key] = response.headers.get(key);
|
|
10428
12203
|
}
|
|
10429
12204
|
}
|
|
10430
|
-
catch (
|
|
12205
|
+
catch (e_117_1) { e_117 = { error: e_117_1 }; }
|
|
10431
12206
|
finally {
|
|
10432
12207
|
try {
|
|
10433
12208
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
10434
12209
|
}
|
|
10435
|
-
finally { if (
|
|
12210
|
+
finally { if (e_117) throw e_117.error; }
|
|
10436
12211
|
}
|
|
10437
12212
|
}
|
|
10438
12213
|
if (status === 200 || status === 206) {
|
|
@@ -10489,7 +12264,7 @@
|
|
|
10489
12264
|
observe: "response",
|
|
10490
12265
|
responseType: "blob",
|
|
10491
12266
|
headers: new i1.HttpHeaders({
|
|
10492
|
-
"Accept": "application/
|
|
12267
|
+
"Accept": "application/octet-stream"
|
|
10493
12268
|
})
|
|
10494
12269
|
};
|
|
10495
12270
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
@@ -10510,7 +12285,7 @@
|
|
|
10510
12285
|
}));
|
|
10511
12286
|
};
|
|
10512
12287
|
DesignAtomsViewerApiClient.prototype.processResource = function (response) {
|
|
10513
|
-
var
|
|
12288
|
+
var e_118, _a;
|
|
10514
12289
|
var _this = this;
|
|
10515
12290
|
var status = response.status;
|
|
10516
12291
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -10523,12 +12298,12 @@
|
|
|
10523
12298
|
_headers[key] = response.headers.get(key);
|
|
10524
12299
|
}
|
|
10525
12300
|
}
|
|
10526
|
-
catch (
|
|
12301
|
+
catch (e_118_1) { e_118 = { error: e_118_1 }; }
|
|
10527
12302
|
finally {
|
|
10528
12303
|
try {
|
|
10529
12304
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
10530
12305
|
}
|
|
10531
|
-
finally { if (
|
|
12306
|
+
finally { if (e_118) throw e_118.error; }
|
|
10532
12307
|
}
|
|
10533
12308
|
}
|
|
10534
12309
|
if (status === 200 || status === 206) {
|
|
@@ -10631,7 +12406,7 @@
|
|
|
10631
12406
|
observe: "response",
|
|
10632
12407
|
responseType: "blob",
|
|
10633
12408
|
headers: new i1.HttpHeaders({
|
|
10634
|
-
"Accept": "application/
|
|
12409
|
+
"Accept": "application/octet-stream"
|
|
10635
12410
|
})
|
|
10636
12411
|
};
|
|
10637
12412
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
@@ -10652,7 +12427,7 @@
|
|
|
10652
12427
|
}));
|
|
10653
12428
|
};
|
|
10654
12429
|
DesignAtomsViewerApiClient.prototype.processSvg = function (response) {
|
|
10655
|
-
var
|
|
12430
|
+
var e_119, _a;
|
|
10656
12431
|
var _this = this;
|
|
10657
12432
|
var status = response.status;
|
|
10658
12433
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -10665,12 +12440,12 @@
|
|
|
10665
12440
|
_headers[key] = response.headers.get(key);
|
|
10666
12441
|
}
|
|
10667
12442
|
}
|
|
10668
|
-
catch (
|
|
12443
|
+
catch (e_119_1) { e_119 = { error: e_119_1 }; }
|
|
10669
12444
|
finally {
|
|
10670
12445
|
try {
|
|
10671
12446
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
10672
12447
|
}
|
|
10673
|
-
finally { if (
|
|
12448
|
+
finally { if (e_119) throw e_119.error; }
|
|
10674
12449
|
}
|
|
10675
12450
|
}
|
|
10676
12451
|
if (status === 200 || status === 206) {
|
|
@@ -10727,7 +12502,7 @@
|
|
|
10727
12502
|
observe: "response",
|
|
10728
12503
|
responseType: "blob",
|
|
10729
12504
|
headers: new i1.HttpHeaders({
|
|
10730
|
-
"Accept": "application/
|
|
12505
|
+
"Accept": "application/octet-stream"
|
|
10731
12506
|
})
|
|
10732
12507
|
};
|
|
10733
12508
|
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
@@ -10748,7 +12523,7 @@
|
|
|
10748
12523
|
}));
|
|
10749
12524
|
};
|
|
10750
12525
|
DesignAtomsViewerApiClient.prototype.processTxt = function (response) {
|
|
10751
|
-
var
|
|
12526
|
+
var e_120, _a;
|
|
10752
12527
|
var _this = this;
|
|
10753
12528
|
var status = response.status;
|
|
10754
12529
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -10761,12 +12536,12 @@
|
|
|
10761
12536
|
_headers[key] = response.headers.get(key);
|
|
10762
12537
|
}
|
|
10763
12538
|
}
|
|
10764
|
-
catch (
|
|
12539
|
+
catch (e_120_1) { e_120 = { error: e_120_1 }; }
|
|
10765
12540
|
finally {
|
|
10766
12541
|
try {
|
|
10767
12542
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
10768
12543
|
}
|
|
10769
|
-
finally { if (
|
|
12544
|
+
finally { if (e_120) throw e_120.error; }
|
|
10770
12545
|
}
|
|
10771
12546
|
}
|
|
10772
12547
|
if (status === 200 || status === 206) {
|
|
@@ -10845,7 +12620,7 @@
|
|
|
10845
12620
|
}));
|
|
10846
12621
|
};
|
|
10847
12622
|
DesignAtomsViewerApiClient.prototype.processUpdateArchedTextItemHandler = function (response) {
|
|
10848
|
-
var
|
|
12623
|
+
var e_121, _a;
|
|
10849
12624
|
var _this = this;
|
|
10850
12625
|
var status = response.status;
|
|
10851
12626
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -10858,12 +12633,12 @@
|
|
|
10858
12633
|
_headers[key] = response.headers.get(key);
|
|
10859
12634
|
}
|
|
10860
12635
|
}
|
|
10861
|
-
catch (
|
|
12636
|
+
catch (e_121_1) { e_121 = { error: e_121_1 }; }
|
|
10862
12637
|
finally {
|
|
10863
12638
|
try {
|
|
10864
12639
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
10865
12640
|
}
|
|
10866
|
-
finally { if (
|
|
12641
|
+
finally { if (e_121) throw e_121.error; }
|
|
10867
12642
|
}
|
|
10868
12643
|
}
|
|
10869
12644
|
if (status === 200) {
|
|
@@ -10931,7 +12706,7 @@
|
|
|
10931
12706
|
}));
|
|
10932
12707
|
};
|
|
10933
12708
|
DesignAtomsViewerApiClient.prototype.processUpdateAutoScaledTextItemHandler = function (response) {
|
|
10934
|
-
var
|
|
12709
|
+
var e_122, _a;
|
|
10935
12710
|
var _this = this;
|
|
10936
12711
|
var status = response.status;
|
|
10937
12712
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -10944,12 +12719,12 @@
|
|
|
10944
12719
|
_headers[key] = response.headers.get(key);
|
|
10945
12720
|
}
|
|
10946
12721
|
}
|
|
10947
|
-
catch (
|
|
12722
|
+
catch (e_122_1) { e_122 = { error: e_122_1 }; }
|
|
10948
12723
|
finally {
|
|
10949
12724
|
try {
|
|
10950
12725
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
10951
12726
|
}
|
|
10952
|
-
finally { if (
|
|
12727
|
+
finally { if (e_122) throw e_122.error; }
|
|
10953
12728
|
}
|
|
10954
12729
|
}
|
|
10955
12730
|
if (status === 200) {
|
|
@@ -11017,7 +12792,7 @@
|
|
|
11017
12792
|
}));
|
|
11018
12793
|
};
|
|
11019
12794
|
DesignAtomsViewerApiClient.prototype.processUpdateBarcodeItemHandler = function (response) {
|
|
11020
|
-
var
|
|
12795
|
+
var e_123, _a;
|
|
11021
12796
|
var _this = this;
|
|
11022
12797
|
var status = response.status;
|
|
11023
12798
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -11030,12 +12805,12 @@
|
|
|
11030
12805
|
_headers[key] = response.headers.get(key);
|
|
11031
12806
|
}
|
|
11032
12807
|
}
|
|
11033
|
-
catch (
|
|
12808
|
+
catch (e_123_1) { e_123 = { error: e_123_1 }; }
|
|
11034
12809
|
finally {
|
|
11035
12810
|
try {
|
|
11036
12811
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
11037
12812
|
}
|
|
11038
|
-
finally { if (
|
|
12813
|
+
finally { if (e_123) throw e_123.error; }
|
|
11039
12814
|
}
|
|
11040
12815
|
}
|
|
11041
12816
|
if (status === 200) {
|
|
@@ -11103,7 +12878,7 @@
|
|
|
11103
12878
|
}));
|
|
11104
12879
|
};
|
|
11105
12880
|
DesignAtomsViewerApiClient.prototype.processUpdateBoundedTextItemHandler = function (response) {
|
|
11106
|
-
var
|
|
12881
|
+
var e_124, _a;
|
|
11107
12882
|
var _this = this;
|
|
11108
12883
|
var status = response.status;
|
|
11109
12884
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -11116,12 +12891,12 @@
|
|
|
11116
12891
|
_headers[key] = response.headers.get(key);
|
|
11117
12892
|
}
|
|
11118
12893
|
}
|
|
11119
|
-
catch (
|
|
12894
|
+
catch (e_124_1) { e_124 = { error: e_124_1 }; }
|
|
11120
12895
|
finally {
|
|
11121
12896
|
try {
|
|
11122
12897
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
11123
12898
|
}
|
|
11124
|
-
finally { if (
|
|
12899
|
+
finally { if (e_124) throw e_124.error; }
|
|
11125
12900
|
}
|
|
11126
12901
|
}
|
|
11127
12902
|
if (status === 200) {
|
|
@@ -11189,7 +12964,7 @@
|
|
|
11189
12964
|
}));
|
|
11190
12965
|
};
|
|
11191
12966
|
DesignAtomsViewerApiClient.prototype.processUpdateByColorData = function (response) {
|
|
11192
|
-
var
|
|
12967
|
+
var e_125, _a;
|
|
11193
12968
|
var _this = this;
|
|
11194
12969
|
var status = response.status;
|
|
11195
12970
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -11202,12 +12977,12 @@
|
|
|
11202
12977
|
_headers[key] = response.headers.get(key);
|
|
11203
12978
|
}
|
|
11204
12979
|
}
|
|
11205
|
-
catch (
|
|
12980
|
+
catch (e_125_1) { e_125 = { error: e_125_1 }; }
|
|
11206
12981
|
finally {
|
|
11207
12982
|
try {
|
|
11208
12983
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
11209
12984
|
}
|
|
11210
|
-
finally { if (
|
|
12985
|
+
finally { if (e_125) throw e_125.error; }
|
|
11211
12986
|
}
|
|
11212
12987
|
}
|
|
11213
12988
|
if (status === 200) {
|
|
@@ -11275,7 +13050,7 @@
|
|
|
11275
13050
|
}));
|
|
11276
13051
|
};
|
|
11277
13052
|
DesignAtomsViewerApiClient.prototype.processUpdateByMultiCallRequest = function (response) {
|
|
11278
|
-
var
|
|
13053
|
+
var e_126, _a;
|
|
11279
13054
|
var _this = this;
|
|
11280
13055
|
var status = response.status;
|
|
11281
13056
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -11288,12 +13063,12 @@
|
|
|
11288
13063
|
_headers[key] = response.headers.get(key);
|
|
11289
13064
|
}
|
|
11290
13065
|
}
|
|
11291
|
-
catch (
|
|
13066
|
+
catch (e_126_1) { e_126 = { error: e_126_1 }; }
|
|
11292
13067
|
finally {
|
|
11293
13068
|
try {
|
|
11294
13069
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
11295
13070
|
}
|
|
11296
|
-
finally { if (
|
|
13071
|
+
finally { if (e_126) throw e_126.error; }
|
|
11297
13072
|
}
|
|
11298
13073
|
}
|
|
11299
13074
|
if (status === 200) {
|
|
@@ -11361,7 +13136,7 @@
|
|
|
11361
13136
|
}));
|
|
11362
13137
|
};
|
|
11363
13138
|
DesignAtomsViewerApiClient.prototype.processUpdateCurvedTextItemHandler = function (response) {
|
|
11364
|
-
var
|
|
13139
|
+
var e_127, _a;
|
|
11365
13140
|
var _this = this;
|
|
11366
13141
|
var status = response.status;
|
|
11367
13142
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -11374,12 +13149,12 @@
|
|
|
11374
13149
|
_headers[key] = response.headers.get(key);
|
|
11375
13150
|
}
|
|
11376
13151
|
}
|
|
11377
|
-
catch (
|
|
13152
|
+
catch (e_127_1) { e_127 = { error: e_127_1 }; }
|
|
11378
13153
|
finally {
|
|
11379
13154
|
try {
|
|
11380
13155
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
11381
13156
|
}
|
|
11382
|
-
finally { if (
|
|
13157
|
+
finally { if (e_127) throw e_127.error; }
|
|
11383
13158
|
}
|
|
11384
13159
|
}
|
|
11385
13160
|
if (status === 200) {
|
|
@@ -11447,7 +13222,7 @@
|
|
|
11447
13222
|
}));
|
|
11448
13223
|
};
|
|
11449
13224
|
DesignAtomsViewerApiClient.prototype.processUpdateImageItemHandler = function (response) {
|
|
11450
|
-
var
|
|
13225
|
+
var e_128, _a;
|
|
11451
13226
|
var _this = this;
|
|
11452
13227
|
var status = response.status;
|
|
11453
13228
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -11460,12 +13235,12 @@
|
|
|
11460
13235
|
_headers[key] = response.headers.get(key);
|
|
11461
13236
|
}
|
|
11462
13237
|
}
|
|
11463
|
-
catch (
|
|
13238
|
+
catch (e_128_1) { e_128 = { error: e_128_1 }; }
|
|
11464
13239
|
finally {
|
|
11465
13240
|
try {
|
|
11466
13241
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
11467
13242
|
}
|
|
11468
|
-
finally { if (
|
|
13243
|
+
finally { if (e_128) throw e_128.error; }
|
|
11469
13244
|
}
|
|
11470
13245
|
}
|
|
11471
13246
|
if (status === 200) {
|
|
@@ -11533,7 +13308,7 @@
|
|
|
11533
13308
|
}));
|
|
11534
13309
|
};
|
|
11535
13310
|
DesignAtomsViewerApiClient.prototype.processUpdatePathBoundedTextItemHandler = function (response) {
|
|
11536
|
-
var
|
|
13311
|
+
var e_129, _a;
|
|
11537
13312
|
var _this = this;
|
|
11538
13313
|
var status = response.status;
|
|
11539
13314
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -11546,12 +13321,12 @@
|
|
|
11546
13321
|
_headers[key] = response.headers.get(key);
|
|
11547
13322
|
}
|
|
11548
13323
|
}
|
|
11549
|
-
catch (
|
|
13324
|
+
catch (e_129_1) { e_129 = { error: e_129_1 }; }
|
|
11550
13325
|
finally {
|
|
11551
13326
|
try {
|
|
11552
13327
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
11553
13328
|
}
|
|
11554
|
-
finally { if (
|
|
13329
|
+
finally { if (e_129) throw e_129.error; }
|
|
11555
13330
|
}
|
|
11556
13331
|
}
|
|
11557
13332
|
if (status === 200) {
|
|
@@ -11619,7 +13394,7 @@
|
|
|
11619
13394
|
}));
|
|
11620
13395
|
};
|
|
11621
13396
|
DesignAtomsViewerApiClient.prototype.processUpdatePlainTextItemHandler = function (response) {
|
|
11622
|
-
var
|
|
13397
|
+
var e_130, _a;
|
|
11623
13398
|
var _this = this;
|
|
11624
13399
|
var status = response.status;
|
|
11625
13400
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -11632,12 +13407,12 @@
|
|
|
11632
13407
|
_headers[key] = response.headers.get(key);
|
|
11633
13408
|
}
|
|
11634
13409
|
}
|
|
11635
|
-
catch (
|
|
13410
|
+
catch (e_130_1) { e_130 = { error: e_130_1 }; }
|
|
11636
13411
|
finally {
|
|
11637
13412
|
try {
|
|
11638
13413
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
11639
13414
|
}
|
|
11640
|
-
finally { if (
|
|
13415
|
+
finally { if (e_130) throw e_130.error; }
|
|
11641
13416
|
}
|
|
11642
13417
|
}
|
|
11643
13418
|
if (status === 200) {
|
|
@@ -11705,7 +13480,7 @@
|
|
|
11705
13480
|
}));
|
|
11706
13481
|
};
|
|
11707
13482
|
DesignAtomsViewerApiClient.prototype.processUpdateShapeItemHandler = function (response) {
|
|
11708
|
-
var
|
|
13483
|
+
var e_131, _a;
|
|
11709
13484
|
var _this = this;
|
|
11710
13485
|
var status = response.status;
|
|
11711
13486
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -11718,12 +13493,12 @@
|
|
|
11718
13493
|
_headers[key] = response.headers.get(key);
|
|
11719
13494
|
}
|
|
11720
13495
|
}
|
|
11721
|
-
catch (
|
|
13496
|
+
catch (e_131_1) { e_131 = { error: e_131_1 }; }
|
|
11722
13497
|
finally {
|
|
11723
13498
|
try {
|
|
11724
13499
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
11725
13500
|
}
|
|
11726
|
-
finally { if (
|
|
13501
|
+
finally { if (e_131) throw e_131.error; }
|
|
11727
13502
|
}
|
|
11728
13503
|
}
|
|
11729
13504
|
if (status === 200) {
|
|
@@ -11763,6 +13538,19 @@
|
|
|
11763
13538
|
{ type: i1.HttpClient, decorators: [{ type: i0.Inject, args: [i1.HttpClient,] }] },
|
|
11764
13539
|
{ type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [API_BASE_URL,] }] }
|
|
11765
13540
|
]; };
|
|
13541
|
+
(function (ColorSpace) {
|
|
13542
|
+
ColorSpace["Rgb"] = "Rgb";
|
|
13543
|
+
ColorSpace["Cmyk"] = "Cmyk";
|
|
13544
|
+
ColorSpace["Grayscale"] = "Grayscale";
|
|
13545
|
+
ColorSpace["Lab"] = "Lab";
|
|
13546
|
+
ColorSpace["Spot"] = "Spot";
|
|
13547
|
+
})(exports.ColorSpace || (exports.ColorSpace = {}));
|
|
13548
|
+
(function (ConflictType) {
|
|
13549
|
+
ConflictType["NameConflict"] = "NameConflict";
|
|
13550
|
+
ConflictType["FolderOverwriteConflict"] = "FolderOverwriteConflict";
|
|
13551
|
+
ConflictType["IdConflict"] = "IdConflict";
|
|
13552
|
+
ConflictType["GeneralConflict"] = "GeneralConflict";
|
|
13553
|
+
})(exports.ConflictType || (exports.ConflictType = {}));
|
|
11766
13554
|
(function (DesignElementType) {
|
|
11767
13555
|
DesignElementType["Product"] = "Product";
|
|
11768
13556
|
DesignElementType["Design"] = "Design";
|
|
@@ -11920,6 +13708,7 @@
|
|
|
11920
13708
|
exports.DesignAtomsCompatibilityApiClient = DesignAtomsCompatibilityApiClient;
|
|
11921
13709
|
exports.DesignAtomsImagesApiClient = DesignAtomsImagesApiClient;
|
|
11922
13710
|
exports.DesignAtomsMockups3dApiClient = DesignAtomsMockups3dApiClient;
|
|
13711
|
+
exports.DesignAtomsPalettesApiClient = DesignAtomsPalettesApiClient;
|
|
11923
13712
|
exports.DesignAtomsPrintProductApiClient = DesignAtomsPrintProductApiClient;
|
|
11924
13713
|
exports.DesignAtomsPrintProductItemsApiClient = DesignAtomsPrintProductItemsApiClient;
|
|
11925
13714
|
exports.DesignAtomsServiceApiClient = DesignAtomsServiceApiClient;
|