@evergis/api 4.1.19 → 4.1.20
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/dist/api.esm.js +8 -1
- package/dist/api.esm.js.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/api.esm.js
CHANGED
|
@@ -1760,7 +1760,14 @@ class CatalogService extends Service {
|
|
|
1760
1760
|
|
|
1761
1761
|
class FileUpload extends CatalogService {
|
|
1762
1762
|
upload(file, rewrite, parentId, fileName) {
|
|
1763
|
-
|
|
1763
|
+
const props = { file, rewrite: !!rewrite };
|
|
1764
|
+
if (parentId) {
|
|
1765
|
+
props.parentId = parentId;
|
|
1766
|
+
}
|
|
1767
|
+
if (fileName) {
|
|
1768
|
+
props.fileName = fileName;
|
|
1769
|
+
}
|
|
1770
|
+
return this.createFile1(props);
|
|
1764
1771
|
}
|
|
1765
1772
|
replaceFile(params) {
|
|
1766
1773
|
return this.createFile(params);
|