@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.
- package/app/eo-client/about-state/about-state.component.d.ts.map +1 -1
- package/app/eo-framework/app-shell/app-bar/app-search/app-search.component.d.ts.map +1 -1
- package/app/eo-framework/form-elements/datetime-range/datetime-range.component.d.ts.map +1 -1
- package/app/eo-framework/object-details/object-details.component.d.ts +1 -0
- package/app/eo-framework/object-details/object-details.component.d.ts.map +1 -1
- package/esm2020/app/eo-client/about-state/about-state.component.mjs +3 -3
- package/esm2020/app/eo-framework/app-shell/app-bar/app-search/app-search.component.mjs +3 -2
- package/esm2020/app/eo-framework/form-elements/datetime-range/datetime-range.component.mjs +7 -5
- package/esm2020/app/eo-framework/grid/grid.component.mjs +2 -2
- package/esm2020/app/eo-framework/object-details/object-details.component.mjs +14 -7
- package/esm2020/projects/eo-sdk/core/lib/service/backend/backend.service.mjs +7 -5
- package/fesm2015/eo-sdk-client-projects-eo-sdk-core.mjs +6 -4
- package/fesm2015/eo-sdk-client-projects-eo-sdk-core.mjs.map +1 -1
- package/fesm2015/eo-sdk-client.mjs +25 -15
- package/fesm2015/eo-sdk-client.mjs.map +1 -1
- package/fesm2020/eo-sdk-client-projects-eo-sdk-core.mjs +6 -4
- package/fesm2020/eo-sdk-client-projects-eo-sdk-core.mjs.map +1 -1
- package/fesm2020/eo-sdk-client.mjs +25 -15
- package/fesm2020/eo-sdk-client.mjs.map +1 -1
- package/package.json +2 -2
- package/projects/eo-sdk/core/lib/service/backend/backend.service.d.ts.map +1 -1
|
@@ -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 =
|
|
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 =
|
|
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
|
-
|
|
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
|
-
|
|
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
|
});
|