@aurigma/ng-design-atoms-api-client 2.14.3 → 2.15.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 +352 -245
- 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 +223 -127
- 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 +223 -127
- package/fesm2015/aurigma-ng-design-atoms-api-client.js.map +1 -1
- package/lib/design-atoms-api-client.d.ts +59 -33
- package/package.json +1 -1
|
@@ -32,4 +32,4 @@ DesignAtomsApiModule.decorators = [
|
|
|
32
32
|
exports: []
|
|
33
33
|
},] }
|
|
34
34
|
];
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVzaWduLWF0b21zLWFwaS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiL2hvbWUvYXVyaWdtYS9hZ2VudHMvMDEvX3dvcmsvNS9zL0F1cmlnbWEuRGVzaWduQXRvbXNBcGkuVHlwZVNjcmlwdEFwaUNsaWVudC9Bbmd1bGFyL2FwaS1jbGllbnQvcHJvamVjdHMvY2xpZW50L3NyYy8iLCJzb3VyY2VzIjpbImxpYi9kZXNpZ24tYXRvbXMtYXBpLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQXNCLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUM1RCxPQ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dG9tc0FwaUNsaWVudC5BUElfQkFTRV9VUkwsXG4gICAgICAgICAgdXNlVmFsdWU6IGFwaVVybFxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgcHJvdmlkZTogRGVzaWduQXRvbXNBcGlDbGllbnQuQXBpQ2xpZW50Q29uZmlndXJhdGlvbixcbiAgICAgICAgICB1c2VGYWN0b3J5OiBDcmVhdGVBcGlDbGllbnRDb25maWd1cmF0aW9uLmJpbmQodGhpcywgdG9rZW4gLCBhcGlVcmwsIGFwaUtleSlcbiAgICAgICAgfSxcbiAgICAgIF1cbiAgICB9O1xuICB9XG59XG4iXX0=
|
package/esm2015/public-api.js
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export * from './lib/design-atoms-api.module';
|
|
5
5
|
export * from './lib/design-atoms-api-client';
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIvaG9tZS9hdXJpZ21hL2FnZW50cy8wMS9fd29yay81L3MvQXVyaWdtYS5EZXNpZ25BdG9tc0FwaS5UeXBlU2NyaXB0QXBpQ2xpZW50L0FuZ3VsYXIvYXBpLWNsaWVudC9wcm9qZWN0cy9jbGllbnQvc3JjLyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYywrQkFBK0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgY2xpZW50XG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9saWIvZGVzaWduLWF0b21zLWFwaS5tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvZGVzaWduLWF0b21zLWFwaS1jbGllbnQnO1xuIl19
|
|
@@ -174,67 +174,6 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
174
174
|
this.http = http;
|
|
175
175
|
this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : this.getBaseUrl("");
|
|
176
176
|
}
|
|
177
|
-
/**
|
|
178
|
-
* @param body (optional)
|
|
179
|
-
* @return Success
|
|
180
|
-
*/
|
|
181
|
-
updateArchedTextItemHandler(tenantId, body) {
|
|
182
|
-
let url_ = this.baseUrl + "/api/atoms/v1/tenants/{tenantId}/api/ccviewer/api/ccviewer/UpdateArchedTextItemHandler";
|
|
183
|
-
if (tenantId === undefined || tenantId === null)
|
|
184
|
-
throw new Error("The parameter 'tenantId' must be defined.");
|
|
185
|
-
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
186
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
187
|
-
const content_ = JSON.stringify(body);
|
|
188
|
-
let options_ = {
|
|
189
|
-
body: content_,
|
|
190
|
-
observe: "response",
|
|
191
|
-
responseType: "blob",
|
|
192
|
-
headers: new HttpHeaders({
|
|
193
|
-
"Content-Type": "application/json",
|
|
194
|
-
"Accept": "application/json"
|
|
195
|
-
})
|
|
196
|
-
};
|
|
197
|
-
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
198
|
-
return this.http.request("post", url_, transformedOptions_);
|
|
199
|
-
})).pipe(mergeMap((response_) => {
|
|
200
|
-
return this.transformResult(url_, response_, (r) => this.processUpdateArchedTextItemHandler(r));
|
|
201
|
-
})).pipe(catchError((response_) => {
|
|
202
|
-
if (response_ instanceof HttpResponseBase) {
|
|
203
|
-
try {
|
|
204
|
-
return this.transformResult(url_, response_, (r) => this.processUpdateArchedTextItemHandler(r));
|
|
205
|
-
}
|
|
206
|
-
catch (e) {
|
|
207
|
-
return throwError(e);
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
else
|
|
211
|
-
return throwError(response_);
|
|
212
|
-
}));
|
|
213
|
-
}
|
|
214
|
-
processUpdateArchedTextItemHandler(response) {
|
|
215
|
-
const status = response.status;
|
|
216
|
-
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
217
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
218
|
-
let _headers = {};
|
|
219
|
-
if (response.headers) {
|
|
220
|
-
for (let key of response.headers.keys()) {
|
|
221
|
-
_headers[key] = response.headers.get(key);
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
if (status === 200) {
|
|
225
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
226
|
-
let result200 = null;
|
|
227
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
228
|
-
return of(result200);
|
|
229
|
-
}));
|
|
230
|
-
}
|
|
231
|
-
else if (status !== 200 && status !== 204) {
|
|
232
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
233
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
234
|
-
}));
|
|
235
|
-
}
|
|
236
|
-
return of(null);
|
|
237
|
-
}
|
|
238
177
|
/**
|
|
239
178
|
* @param body (optional)
|
|
240
179
|
* @return Success
|
|
@@ -1063,6 +1002,67 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1063
1002
|
}
|
|
1064
1003
|
return of(null);
|
|
1065
1004
|
}
|
|
1005
|
+
/**
|
|
1006
|
+
* @param body (optional)
|
|
1007
|
+
* @return Success
|
|
1008
|
+
*/
|
|
1009
|
+
updateArchedTextItemHandler(tenantId, body) {
|
|
1010
|
+
let url_ = this.baseUrl + "/api/atoms/v1/tenants/{tenantId}/api/ccviewer/UpdateArchedTextItemHandler";
|
|
1011
|
+
if (tenantId === undefined || tenantId === null)
|
|
1012
|
+
throw new Error("The parameter 'tenantId' must be defined.");
|
|
1013
|
+
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
1014
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1015
|
+
const content_ = JSON.stringify(body);
|
|
1016
|
+
let options_ = {
|
|
1017
|
+
body: content_,
|
|
1018
|
+
observe: "response",
|
|
1019
|
+
responseType: "blob",
|
|
1020
|
+
headers: new HttpHeaders({
|
|
1021
|
+
"Content-Type": "application/json",
|
|
1022
|
+
"Accept": "application/json"
|
|
1023
|
+
})
|
|
1024
|
+
};
|
|
1025
|
+
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
1026
|
+
return this.http.request("post", url_, transformedOptions_);
|
|
1027
|
+
})).pipe(mergeMap((response_) => {
|
|
1028
|
+
return this.transformResult(url_, response_, (r) => this.processUpdateArchedTextItemHandler(r));
|
|
1029
|
+
})).pipe(catchError((response_) => {
|
|
1030
|
+
if (response_ instanceof HttpResponseBase) {
|
|
1031
|
+
try {
|
|
1032
|
+
return this.transformResult(url_, response_, (r) => this.processUpdateArchedTextItemHandler(r));
|
|
1033
|
+
}
|
|
1034
|
+
catch (e) {
|
|
1035
|
+
return throwError(e);
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
else
|
|
1039
|
+
return throwError(response_);
|
|
1040
|
+
}));
|
|
1041
|
+
}
|
|
1042
|
+
processUpdateArchedTextItemHandler(response) {
|
|
1043
|
+
const status = response.status;
|
|
1044
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
1045
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
1046
|
+
let _headers = {};
|
|
1047
|
+
if (response.headers) {
|
|
1048
|
+
for (let key of response.headers.keys()) {
|
|
1049
|
+
_headers[key] = response.headers.get(key);
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
if (status === 200) {
|
|
1053
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1054
|
+
let result200 = null;
|
|
1055
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1056
|
+
return of(result200);
|
|
1057
|
+
}));
|
|
1058
|
+
}
|
|
1059
|
+
else if (status !== 200 && status !== 204) {
|
|
1060
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1061
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1062
|
+
}));
|
|
1063
|
+
}
|
|
1064
|
+
return of(null);
|
|
1065
|
+
}
|
|
1066
1066
|
/**
|
|
1067
1067
|
* @param body (optional)
|
|
1068
1068
|
* @return Success
|
|
@@ -1854,7 +1854,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
1854
1854
|
return of(null);
|
|
1855
1855
|
}
|
|
1856
1856
|
/**
|
|
1857
|
-
* Loads product from design file taken from storage
|
|
1857
|
+
* Loads product (design model) from design file taken from storage
|
|
1858
1858
|
* @param id Design identifier
|
|
1859
1859
|
* @param privateStorage (optional) If set to 'true' design will be taken from private storage
|
|
1860
1860
|
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
@@ -1941,7 +1941,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
1941
1941
|
return of(null);
|
|
1942
1942
|
}
|
|
1943
1943
|
/**
|
|
1944
|
-
* Saves product to design file and updates design in storage.
|
|
1944
|
+
* Saves product (design model) to design file and updates design in storage.
|
|
1945
1945
|
* @param id Design identifier
|
|
1946
1946
|
* @param privateStorage (optional) If set to 'true' design will be saved to private storage
|
|
1947
1947
|
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
@@ -2028,6 +2028,96 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2028
2028
|
}
|
|
2029
2029
|
return of(null);
|
|
2030
2030
|
}
|
|
2031
|
+
/**
|
|
2032
|
+
* Patches product (design model) in design file
|
|
2033
|
+
* @param id Design identifier
|
|
2034
|
+
* @param tenantId (optional) Tenant identifier
|
|
2035
|
+
* @param patchType (optional)
|
|
2036
|
+
* @param replaceImageItemFileInfo_itemName (optional)
|
|
2037
|
+
* @param replaceImageItemFileInfo_sourceFile (optional)
|
|
2038
|
+
* @return Success
|
|
2039
|
+
*/
|
|
2040
|
+
patchProduct(id, tenantId, patchType, replaceImageItemFileInfo_itemName, replaceImageItemFileInfo_sourceFile) {
|
|
2041
|
+
let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/model?";
|
|
2042
|
+
if (id === undefined || id === null)
|
|
2043
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
2044
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2045
|
+
if (tenantId === null)
|
|
2046
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
2047
|
+
else if (tenantId !== undefined)
|
|
2048
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
2049
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
2050
|
+
const content_ = new FormData();
|
|
2051
|
+
if (patchType === null || patchType === undefined)
|
|
2052
|
+
throw new Error("The parameter 'patchType' cannot be null.");
|
|
2053
|
+
else
|
|
2054
|
+
content_.append("patchType", patchType.toString());
|
|
2055
|
+
if (replaceImageItemFileInfo_itemName !== null && replaceImageItemFileInfo_itemName !== undefined)
|
|
2056
|
+
content_.append("replaceImageItemFileInfo.itemName", replaceImageItemFileInfo_itemName.toString());
|
|
2057
|
+
if (replaceImageItemFileInfo_sourceFile !== null && replaceImageItemFileInfo_sourceFile !== undefined)
|
|
2058
|
+
content_.append("replaceImageItemFileInfo.sourceFile", replaceImageItemFileInfo_sourceFile.data, replaceImageItemFileInfo_sourceFile.fileName ? replaceImageItemFileInfo_sourceFile.fileName : "replaceImageItemFileInfo.sourceFile");
|
|
2059
|
+
let options_ = {
|
|
2060
|
+
body: content_,
|
|
2061
|
+
observe: "response",
|
|
2062
|
+
responseType: "blob",
|
|
2063
|
+
headers: new HttpHeaders({})
|
|
2064
|
+
};
|
|
2065
|
+
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
2066
|
+
return this.http.request("patch", url_, transformedOptions_);
|
|
2067
|
+
})).pipe(mergeMap((response_) => {
|
|
2068
|
+
return this.transformResult(url_, response_, (r) => this.processPatchProduct(r));
|
|
2069
|
+
})).pipe(catchError((response_) => {
|
|
2070
|
+
if (response_ instanceof HttpResponseBase) {
|
|
2071
|
+
try {
|
|
2072
|
+
return this.transformResult(url_, response_, (r) => this.processPatchProduct(r));
|
|
2073
|
+
}
|
|
2074
|
+
catch (e) {
|
|
2075
|
+
return throwError(e);
|
|
2076
|
+
}
|
|
2077
|
+
}
|
|
2078
|
+
else
|
|
2079
|
+
return throwError(response_);
|
|
2080
|
+
}));
|
|
2081
|
+
}
|
|
2082
|
+
processPatchProduct(response) {
|
|
2083
|
+
const status = response.status;
|
|
2084
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
2085
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
2086
|
+
let _headers = {};
|
|
2087
|
+
if (response.headers) {
|
|
2088
|
+
for (let key of response.headers.keys()) {
|
|
2089
|
+
_headers[key] = response.headers.get(key);
|
|
2090
|
+
}
|
|
2091
|
+
}
|
|
2092
|
+
if (status === 200) {
|
|
2093
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2094
|
+
return of(null);
|
|
2095
|
+
}));
|
|
2096
|
+
}
|
|
2097
|
+
else if (status === 404) {
|
|
2098
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2099
|
+
let result404 = null;
|
|
2100
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2101
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2102
|
+
}));
|
|
2103
|
+
}
|
|
2104
|
+
else if (status === 401) {
|
|
2105
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2106
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
2107
|
+
}));
|
|
2108
|
+
}
|
|
2109
|
+
else if (status === 403) {
|
|
2110
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2111
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
2112
|
+
}));
|
|
2113
|
+
}
|
|
2114
|
+
else if (status !== 200 && status !== 204) {
|
|
2115
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2116
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2117
|
+
}));
|
|
2118
|
+
}
|
|
2119
|
+
return of(null);
|
|
2120
|
+
}
|
|
2031
2121
|
/**
|
|
2032
2122
|
* Loads data schema from design file taken from storage
|
|
2033
2123
|
* @param id Design identifier
|
|
@@ -2798,69 +2888,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
2798
2888
|
this.http = http;
|
|
2799
2889
|
this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : this.getBaseUrl("");
|
|
2800
2890
|
}
|
|
2801
|
-
/**
|
|
2802
|
-
* @param tenantId (optional) Tenant identifier
|
|
2803
|
-
* @param body (optional)
|
|
2804
|
-
* @return Success
|
|
2805
|
-
*/
|
|
2806
|
-
updateArchedTextItemHandler(tenantId, body) {
|
|
2807
|
-
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/api/ccviewer/UpdateArchedTextItemHandler?";
|
|
2808
|
-
if (tenantId === null)
|
|
2809
|
-
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
2810
|
-
else if (tenantId !== undefined)
|
|
2811
|
-
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
2812
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
2813
|
-
const content_ = JSON.stringify(body);
|
|
2814
|
-
let options_ = {
|
|
2815
|
-
body: content_,
|
|
2816
|
-
observe: "response",
|
|
2817
|
-
responseType: "blob",
|
|
2818
|
-
headers: new HttpHeaders({
|
|
2819
|
-
"Content-Type": "application/json",
|
|
2820
|
-
"Accept": "application/json"
|
|
2821
|
-
})
|
|
2822
|
-
};
|
|
2823
|
-
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
2824
|
-
return this.http.request("post", url_, transformedOptions_);
|
|
2825
|
-
})).pipe(mergeMap((response_) => {
|
|
2826
|
-
return this.transformResult(url_, response_, (r) => this.processUpdateArchedTextItemHandler(r));
|
|
2827
|
-
})).pipe(catchError((response_) => {
|
|
2828
|
-
if (response_ instanceof HttpResponseBase) {
|
|
2829
|
-
try {
|
|
2830
|
-
return this.transformResult(url_, response_, (r) => this.processUpdateArchedTextItemHandler(r));
|
|
2831
|
-
}
|
|
2832
|
-
catch (e) {
|
|
2833
|
-
return throwError(e);
|
|
2834
|
-
}
|
|
2835
|
-
}
|
|
2836
|
-
else
|
|
2837
|
-
return throwError(response_);
|
|
2838
|
-
}));
|
|
2839
|
-
}
|
|
2840
|
-
processUpdateArchedTextItemHandler(response) {
|
|
2841
|
-
const status = response.status;
|
|
2842
|
-
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
2843
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
2844
|
-
let _headers = {};
|
|
2845
|
-
if (response.headers) {
|
|
2846
|
-
for (let key of response.headers.keys()) {
|
|
2847
|
-
_headers[key] = response.headers.get(key);
|
|
2848
|
-
}
|
|
2849
|
-
}
|
|
2850
|
-
if (status === 200) {
|
|
2851
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2852
|
-
let result200 = null;
|
|
2853
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2854
|
-
return of(result200);
|
|
2855
|
-
}));
|
|
2856
|
-
}
|
|
2857
|
-
else if (status !== 200 && status !== 204) {
|
|
2858
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2859
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2860
|
-
}));
|
|
2861
|
-
}
|
|
2862
|
-
return of(null);
|
|
2863
|
-
}
|
|
2864
2891
|
/**
|
|
2865
2892
|
* @param tenantId (optional) Tenant identifier
|
|
2866
2893
|
* @param body (optional)
|
|
@@ -3713,6 +3740,69 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3713
3740
|
}
|
|
3714
3741
|
return of(null);
|
|
3715
3742
|
}
|
|
3743
|
+
/**
|
|
3744
|
+
* @param tenantId (optional) Tenant identifier
|
|
3745
|
+
* @param body (optional)
|
|
3746
|
+
* @return Success
|
|
3747
|
+
*/
|
|
3748
|
+
updateArchedTextItemHandler(tenantId, body) {
|
|
3749
|
+
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/UpdateArchedTextItemHandler?";
|
|
3750
|
+
if (tenantId === null)
|
|
3751
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
3752
|
+
else if (tenantId !== undefined)
|
|
3753
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
3754
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3755
|
+
const content_ = JSON.stringify(body);
|
|
3756
|
+
let options_ = {
|
|
3757
|
+
body: content_,
|
|
3758
|
+
observe: "response",
|
|
3759
|
+
responseType: "blob",
|
|
3760
|
+
headers: new HttpHeaders({
|
|
3761
|
+
"Content-Type": "application/json",
|
|
3762
|
+
"Accept": "application/json"
|
|
3763
|
+
})
|
|
3764
|
+
};
|
|
3765
|
+
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
3766
|
+
return this.http.request("post", url_, transformedOptions_);
|
|
3767
|
+
})).pipe(mergeMap((response_) => {
|
|
3768
|
+
return this.transformResult(url_, response_, (r) => this.processUpdateArchedTextItemHandler(r));
|
|
3769
|
+
})).pipe(catchError((response_) => {
|
|
3770
|
+
if (response_ instanceof HttpResponseBase) {
|
|
3771
|
+
try {
|
|
3772
|
+
return this.transformResult(url_, response_, (r) => this.processUpdateArchedTextItemHandler(r));
|
|
3773
|
+
}
|
|
3774
|
+
catch (e) {
|
|
3775
|
+
return throwError(e);
|
|
3776
|
+
}
|
|
3777
|
+
}
|
|
3778
|
+
else
|
|
3779
|
+
return throwError(response_);
|
|
3780
|
+
}));
|
|
3781
|
+
}
|
|
3782
|
+
processUpdateArchedTextItemHandler(response) {
|
|
3783
|
+
const status = response.status;
|
|
3784
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
3785
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
3786
|
+
let _headers = {};
|
|
3787
|
+
if (response.headers) {
|
|
3788
|
+
for (let key of response.headers.keys()) {
|
|
3789
|
+
_headers[key] = response.headers.get(key);
|
|
3790
|
+
}
|
|
3791
|
+
}
|
|
3792
|
+
if (status === 200) {
|
|
3793
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3794
|
+
let result200 = null;
|
|
3795
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3796
|
+
return of(result200);
|
|
3797
|
+
}));
|
|
3798
|
+
}
|
|
3799
|
+
else if (status !== 200 && status !== 204) {
|
|
3800
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
3801
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3802
|
+
}));
|
|
3803
|
+
}
|
|
3804
|
+
return of(null);
|
|
3805
|
+
}
|
|
3716
3806
|
/**
|
|
3717
3807
|
* @param tenantId (optional) Tenant identifier
|
|
3718
3808
|
* @param body (optional)
|
|
@@ -4355,6 +4445,12 @@ DesignAtomsViewerApiClient.ctorParameters = () => [
|
|
|
4355
4445
|
{ type: HttpClient, decorators: [{ type: Inject, args: [HttpClient,] }] },
|
|
4356
4446
|
{ type: String, decorators: [{ type: Optional }, { type: Inject, args: [API_BASE_URL,] }] }
|
|
4357
4447
|
];
|
|
4448
|
+
/** Available patch type */
|
|
4449
|
+
var ProductPatchType;
|
|
4450
|
+
(function (ProductPatchType) {
|
|
4451
|
+
ProductPatchType["Undefined"] = "Undefined";
|
|
4452
|
+
ProductPatchType["ReplaceImageItemFile"] = "ReplaceImageItemFile";
|
|
4453
|
+
})(ProductPatchType || (ProductPatchType = {}));
|
|
4358
4454
|
var ItemType;
|
|
4359
4455
|
(function (ItemType) {
|
|
4360
4456
|
ItemType["Image"] = "Image";
|
|
@@ -4468,5 +4564,5 @@ DesignAtomsApiModule.decorators = [
|
|
|
4468
4564
|
* Generated bundle index. Do not edit.
|
|
4469
4565
|
*/
|
|
4470
4566
|
|
|
4471
|
-
export { API_BASE_URL, ApiClientBase, ApiClientConfiguration, ApiException, BuildInfoApiClient, CreateApiClientConfiguration, DesignAtomsApiModule, DesignAtomsCompatibilityApiClient, DesignAtomsServiceApiClient, DesignAtomsViewerApiClient, ItemSourceType, ItemType, ProductProofFormat, ProductProofInterpolationMode };
|
|
4567
|
+
export { API_BASE_URL, ApiClientBase, ApiClientConfiguration, ApiException, BuildInfoApiClient, CreateApiClientConfiguration, DesignAtomsApiModule, DesignAtomsCompatibilityApiClient, DesignAtomsServiceApiClient, DesignAtomsViewerApiClient, ItemSourceType, ItemType, ProductPatchType, ProductProofFormat, ProductProofInterpolationMode };
|
|
4472
4568
|
//# sourceMappingURL=aurigma-ng-design-atoms-api-client.js.map
|