@aurigma/ng-design-atoms-api-client 2.12.5 → 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 +495 -301
- 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 +297 -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 +297 -127
- package/fesm2015/aurigma-ng-design-atoms-api-client.js.map +1 -1
- package/lib/design-atoms-api-client.d.ts +75 -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
|
|
@@ -2535,6 +2625,80 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2535
2625
|
}
|
|
2536
2626
|
return of(null);
|
|
2537
2627
|
}
|
|
2628
|
+
/**
|
|
2629
|
+
* Flatten items
|
|
2630
|
+
* @param tenantId (optional) Tenant identifier
|
|
2631
|
+
* @param body (optional) Items to flatten
|
|
2632
|
+
* @return Success
|
|
2633
|
+
*/
|
|
2634
|
+
flattenItems(tenantId, body) {
|
|
2635
|
+
let url_ = this.baseUrl + "/api/atoms/v1/flatten?";
|
|
2636
|
+
if (tenantId === null)
|
|
2637
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
2638
|
+
else if (tenantId !== undefined)
|
|
2639
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
2640
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
2641
|
+
const content_ = JSON.stringify(body);
|
|
2642
|
+
let options_ = {
|
|
2643
|
+
body: content_,
|
|
2644
|
+
observe: "response",
|
|
2645
|
+
responseType: "blob",
|
|
2646
|
+
headers: new HttpHeaders({
|
|
2647
|
+
"Content-Type": "application/json",
|
|
2648
|
+
"Accept": "application/json"
|
|
2649
|
+
})
|
|
2650
|
+
};
|
|
2651
|
+
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
2652
|
+
return this.http.request("post", url_, transformedOptions_);
|
|
2653
|
+
})).pipe(mergeMap((response_) => {
|
|
2654
|
+
return this.transformResult(url_, response_, (r) => this.processFlattenItems(r));
|
|
2655
|
+
})).pipe(catchError((response_) => {
|
|
2656
|
+
if (response_ instanceof HttpResponseBase) {
|
|
2657
|
+
try {
|
|
2658
|
+
return this.transformResult(url_, response_, (r) => this.processFlattenItems(r));
|
|
2659
|
+
}
|
|
2660
|
+
catch (e) {
|
|
2661
|
+
return throwError(e);
|
|
2662
|
+
}
|
|
2663
|
+
}
|
|
2664
|
+
else
|
|
2665
|
+
return throwError(response_);
|
|
2666
|
+
}));
|
|
2667
|
+
}
|
|
2668
|
+
processFlattenItems(response) {
|
|
2669
|
+
const status = response.status;
|
|
2670
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
2671
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
2672
|
+
let _headers = {};
|
|
2673
|
+
if (response.headers) {
|
|
2674
|
+
for (let key of response.headers.keys()) {
|
|
2675
|
+
_headers[key] = response.headers.get(key);
|
|
2676
|
+
}
|
|
2677
|
+
}
|
|
2678
|
+
if (status === 200) {
|
|
2679
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2680
|
+
let result200 = null;
|
|
2681
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2682
|
+
return of(result200);
|
|
2683
|
+
}));
|
|
2684
|
+
}
|
|
2685
|
+
else if (status === 401) {
|
|
2686
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2687
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
2688
|
+
}));
|
|
2689
|
+
}
|
|
2690
|
+
else if (status === 403) {
|
|
2691
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2692
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
2693
|
+
}));
|
|
2694
|
+
}
|
|
2695
|
+
else if (status !== 200 && status !== 204) {
|
|
2696
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2697
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2698
|
+
}));
|
|
2699
|
+
}
|
|
2700
|
+
return of(null);
|
|
2701
|
+
}
|
|
2538
2702
|
/**
|
|
2539
2703
|
* Creates product item
|
|
2540
2704
|
* @param itemType (optional) Desired item type
|
|
@@ -2724,69 +2888,6 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
2724
2888
|
this.http = http;
|
|
2725
2889
|
this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : this.getBaseUrl("");
|
|
2726
2890
|
}
|
|
2727
|
-
/**
|
|
2728
|
-
* @param tenantId (optional) Tenant identifier
|
|
2729
|
-
* @param body (optional)
|
|
2730
|
-
* @return Success
|
|
2731
|
-
*/
|
|
2732
|
-
updateArchedTextItemHandler(tenantId, body) {
|
|
2733
|
-
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/api/ccviewer/UpdateArchedTextItemHandler?";
|
|
2734
|
-
if (tenantId === null)
|
|
2735
|
-
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
2736
|
-
else if (tenantId !== undefined)
|
|
2737
|
-
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
2738
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
2739
|
-
const content_ = JSON.stringify(body);
|
|
2740
|
-
let options_ = {
|
|
2741
|
-
body: content_,
|
|
2742
|
-
observe: "response",
|
|
2743
|
-
responseType: "blob",
|
|
2744
|
-
headers: new HttpHeaders({
|
|
2745
|
-
"Content-Type": "application/json",
|
|
2746
|
-
"Accept": "application/json"
|
|
2747
|
-
})
|
|
2748
|
-
};
|
|
2749
|
-
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
2750
|
-
return this.http.request("post", url_, transformedOptions_);
|
|
2751
|
-
})).pipe(mergeMap((response_) => {
|
|
2752
|
-
return this.transformResult(url_, response_, (r) => this.processUpdateArchedTextItemHandler(r));
|
|
2753
|
-
})).pipe(catchError((response_) => {
|
|
2754
|
-
if (response_ instanceof HttpResponseBase) {
|
|
2755
|
-
try {
|
|
2756
|
-
return this.transformResult(url_, response_, (r) => this.processUpdateArchedTextItemHandler(r));
|
|
2757
|
-
}
|
|
2758
|
-
catch (e) {
|
|
2759
|
-
return throwError(e);
|
|
2760
|
-
}
|
|
2761
|
-
}
|
|
2762
|
-
else
|
|
2763
|
-
return throwError(response_);
|
|
2764
|
-
}));
|
|
2765
|
-
}
|
|
2766
|
-
processUpdateArchedTextItemHandler(response) {
|
|
2767
|
-
const status = response.status;
|
|
2768
|
-
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
2769
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
2770
|
-
let _headers = {};
|
|
2771
|
-
if (response.headers) {
|
|
2772
|
-
for (let key of response.headers.keys()) {
|
|
2773
|
-
_headers[key] = response.headers.get(key);
|
|
2774
|
-
}
|
|
2775
|
-
}
|
|
2776
|
-
if (status === 200) {
|
|
2777
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2778
|
-
let result200 = null;
|
|
2779
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2780
|
-
return of(result200);
|
|
2781
|
-
}));
|
|
2782
|
-
}
|
|
2783
|
-
else if (status !== 200 && status !== 204) {
|
|
2784
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2785
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2786
|
-
}));
|
|
2787
|
-
}
|
|
2788
|
-
return of(null);
|
|
2789
|
-
}
|
|
2790
2891
|
/**
|
|
2791
2892
|
* @param tenantId (optional) Tenant identifier
|
|
2792
2893
|
* @param body (optional)
|
|
@@ -3639,6 +3740,69 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3639
3740
|
}
|
|
3640
3741
|
return of(null);
|
|
3641
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
|
+
}
|
|
3642
3806
|
/**
|
|
3643
3807
|
* @param tenantId (optional) Tenant identifier
|
|
3644
3808
|
* @param body (optional)
|
|
@@ -4281,6 +4445,12 @@ DesignAtomsViewerApiClient.ctorParameters = () => [
|
|
|
4281
4445
|
{ type: HttpClient, decorators: [{ type: Inject, args: [HttpClient,] }] },
|
|
4282
4446
|
{ type: String, decorators: [{ type: Optional }, { type: Inject, args: [API_BASE_URL,] }] }
|
|
4283
4447
|
];
|
|
4448
|
+
/** Available patch type */
|
|
4449
|
+
var ProductPatchType;
|
|
4450
|
+
(function (ProductPatchType) {
|
|
4451
|
+
ProductPatchType["Undefined"] = "Undefined";
|
|
4452
|
+
ProductPatchType["ReplaceImageItemFile"] = "ReplaceImageItemFile";
|
|
4453
|
+
})(ProductPatchType || (ProductPatchType = {}));
|
|
4284
4454
|
var ItemType;
|
|
4285
4455
|
(function (ItemType) {
|
|
4286
4456
|
ItemType["Image"] = "Image";
|
|
@@ -4394,5 +4564,5 @@ DesignAtomsApiModule.decorators = [
|
|
|
4394
4564
|
* Generated bundle index. Do not edit.
|
|
4395
4565
|
*/
|
|
4396
4566
|
|
|
4397
|
-
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 };
|
|
4398
4568
|
//# sourceMappingURL=aurigma-ng-design-atoms-api-client.js.map
|