@tiba-spark/client-shared-lib 25.4.0-152 → 25.4.0-183
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/esm2022/libraries/service-proxy/cloud-service-proxies.mjs +1 -62
- package/fesm2022/tiba-spark-client-shared-lib.mjs +0 -61
- package/fesm2022/tiba-spark-client-shared-lib.mjs.map +1 -1
- package/libraries/service-proxy/cloud-service-proxies.d.ts +0 -5
- package/libraries/service-proxy/cloud-service-proxies.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1999,67 +1999,6 @@ class BackofficeCloudServiceProxy {
|
|
|
1999
1999
|
}
|
|
2000
2000
|
return of(null);
|
|
2001
2001
|
}
|
|
2002
|
-
/**
|
|
2003
|
-
* @return Success
|
|
2004
|
-
*/
|
|
2005
|
-
getBackofficeVersions() {
|
|
2006
|
-
let url_ = this.baseUrl + "/api/services/backoffice/versions";
|
|
2007
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
2008
|
-
let options_ = {
|
|
2009
|
-
observe: "response",
|
|
2010
|
-
responseType: "blob",
|
|
2011
|
-
headers: new HttpHeaders({
|
|
2012
|
-
"Accept": "text/plain"
|
|
2013
|
-
})
|
|
2014
|
-
};
|
|
2015
|
-
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
2016
|
-
return this.processGetBackofficeVersions(response_);
|
|
2017
|
-
})).pipe(catchError((response_) => {
|
|
2018
|
-
if (response_ instanceof HttpResponseBase) {
|
|
2019
|
-
try {
|
|
2020
|
-
return this.processGetBackofficeVersions(response_);
|
|
2021
|
-
}
|
|
2022
|
-
catch (e) {
|
|
2023
|
-
return throwError(e);
|
|
2024
|
-
}
|
|
2025
|
-
}
|
|
2026
|
-
else
|
|
2027
|
-
return throwError(response_);
|
|
2028
|
-
}));
|
|
2029
|
-
}
|
|
2030
|
-
processGetBackofficeVersions(response) {
|
|
2031
|
-
const status = response.status;
|
|
2032
|
-
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
2033
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
2034
|
-
let _headers = {};
|
|
2035
|
-
if (response.headers) {
|
|
2036
|
-
for (let key of response.headers.keys()) {
|
|
2037
|
-
_headers[key] = response.headers.get(key);
|
|
2038
|
-
}
|
|
2039
|
-
}
|
|
2040
|
-
if (status === 404) {
|
|
2041
|
-
return blobToText$3(responseBlob).pipe(mergeMap(_responseText => {
|
|
2042
|
-
let result404 = null;
|
|
2043
|
-
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2044
|
-
result404 = ProblemDetails$3.fromJS(resultData404);
|
|
2045
|
-
return throwException$3("Not Found", status, _responseText, _headers, result404);
|
|
2046
|
-
}));
|
|
2047
|
-
}
|
|
2048
|
-
else if (status === 200) {
|
|
2049
|
-
return blobToText$3(responseBlob).pipe(mergeMap(_responseText => {
|
|
2050
|
-
let result200 = null;
|
|
2051
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2052
|
-
result200 = StringStringIDictionaryHttpResponseData$1.fromJS(resultData200);
|
|
2053
|
-
return of(result200);
|
|
2054
|
-
}));
|
|
2055
|
-
}
|
|
2056
|
-
else if (status !== 200 && status !== 204) {
|
|
2057
|
-
return blobToText$3(responseBlob).pipe(mergeMap(_responseText => {
|
|
2058
|
-
return throwException$3("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2059
|
-
}));
|
|
2060
|
-
}
|
|
2061
|
-
return of(null);
|
|
2062
|
-
}
|
|
2063
2002
|
/**
|
|
2064
2003
|
* @return Success
|
|
2065
2004
|
*/
|