@eo-sdk/client 10.6.9 → 10.6.10

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.
@@ -1750,7 +1750,7 @@ class BackendService {
1750
1750
  const item = dmsObjects[0];
1751
1751
  if (dmsObjects.length === 1) {
1752
1752
  if (item.content) {
1753
- let uri = `${this.getServiceBase()}/dms/${item.content.id}/content?type=${item.content.type}&asdownload=true&recyclebin=${!!recyclebin}`;
1753
+ let uri = `/dms/${item.content.id}/content?type=${item.content.type}&asdownload=true&recyclebin=${!!recyclebin}`;
1754
1754
  if (rendition) {
1755
1755
  uri += `&rendition=${rendition}&_intent=DOWNLOAD_${rendition}`;
1756
1756
  }
@@ -1767,7 +1767,7 @@ class BackendService {
1767
1767
  }
1768
1768
  }
1769
1769
  if (dmsObjects.length > 1) {
1770
- let uri = `${this.getServiceBase()}/dms/batch/export`;
1770
+ let uri = '/dms/batch/export';
1771
1771
  if (item.content) {
1772
1772
  const expressions = dmsObjects.map(obj => obj.content.id);
1773
1773
  const data = {
@@ -1787,13 +1787,15 @@ class BackendService {
1787
1787
  }
1788
1788
  }
1789
1789
  download(uri, version) {
1790
- this.http.get(uri, { observe: 'response', responseType: 'blob', withCredentials: this.coreConfig.withCredentials })
1790
+ const baseUri = this.getContextPath();
1791
+ this.http.get(`${baseUri}${uri}`, { observe: 'response', responseType: 'blob', withCredentials: this.coreConfig.withCredentials })
1791
1792
  .subscribe((res) => {
1792
1793
  FileSaver.saveAs(res.body, this.getFileNameFromHttpResponse(res, version));
1793
1794
  });
1794
1795
  }
1795
1796
  downloadMulti(uri, version, _body) {
1796
- this.http.post(uri, _body, { observe: 'response', responseType: 'blob', withCredentials: this.coreConfig.withCredentials })
1797
+ const baseUri = this.getContextPath();
1798
+ this.http.post(`${baseUri}${uri}`, _body, { observe: 'response', responseType: 'blob', withCredentials: this.coreConfig.withCredentials })
1797
1799
  .subscribe((res) => {
1798
1800
  FileSaver.saveAs(res.body, this.getFileNameFromHttpResponse(res, version));
1799
1801
  });