@overmap-ai/core 1.0.71-project-file-improvements.1 → 1.0.71-project-file-improvements.3
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.
|
@@ -5068,7 +5068,9 @@ var __publicField = (obj, key, value) => {
|
|
|
5068
5068
|
file_sha1: sha1,
|
|
5069
5069
|
file: URL.createObjectURL(file)
|
|
5070
5070
|
});
|
|
5071
|
+
this.dispatch(addProjectFile(offlineProjectFile));
|
|
5071
5072
|
const promise = this.enqueueRequest({
|
|
5073
|
+
description: "Add project file",
|
|
5072
5074
|
method: HttpMethod.POST,
|
|
5073
5075
|
url: `/projects/${payload.project}/files/`,
|
|
5074
5076
|
payload: {
|
|
@@ -5105,6 +5107,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5105
5107
|
};
|
|
5106
5108
|
this.dispatch(updateProjectFile(updatedProjectFile));
|
|
5107
5109
|
const promise = this.enqueueRequest({
|
|
5110
|
+
description: "Update project file",
|
|
5108
5111
|
method: HttpMethod.PATCH,
|
|
5109
5112
|
url: `/projects/files/${payload.offline_id}/`,
|
|
5110
5113
|
payload,
|
|
@@ -5126,6 +5129,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5126
5129
|
}
|
|
5127
5130
|
this.dispatch(deleteProjectFile(id));
|
|
5128
5131
|
const promise = this.enqueueRequest({
|
|
5132
|
+
description: "Delete project file",
|
|
5129
5133
|
method: HttpMethod.DELETE,
|
|
5130
5134
|
url: `/projects/files/${id}/`,
|
|
5131
5135
|
blockers: [id],
|