@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.
package/dist/overmap-core.js
CHANGED
|
@@ -5079,7 +5079,9 @@ class ProjectFileService extends BaseUploadService {
|
|
|
5079
5079
|
file_sha1: sha1,
|
|
5080
5080
|
file: URL.createObjectURL(file)
|
|
5081
5081
|
});
|
|
5082
|
+
this.dispatch(addProjectFile(offlineProjectFile));
|
|
5082
5083
|
const promise = this.enqueueRequest({
|
|
5084
|
+
description: "Add project file",
|
|
5083
5085
|
method: HttpMethod.POST,
|
|
5084
5086
|
url: `/projects/${payload.project}/files/`,
|
|
5085
5087
|
payload: {
|
|
@@ -5116,6 +5118,7 @@ class ProjectFileService extends BaseUploadService {
|
|
|
5116
5118
|
};
|
|
5117
5119
|
this.dispatch(updateProjectFile(updatedProjectFile));
|
|
5118
5120
|
const promise = this.enqueueRequest({
|
|
5121
|
+
description: "Update project file",
|
|
5119
5122
|
method: HttpMethod.PATCH,
|
|
5120
5123
|
url: `/projects/files/${payload.offline_id}/`,
|
|
5121
5124
|
payload,
|
|
@@ -5137,6 +5140,7 @@ class ProjectFileService extends BaseUploadService {
|
|
|
5137
5140
|
}
|
|
5138
5141
|
this.dispatch(deleteProjectFile(id));
|
|
5139
5142
|
const promise = this.enqueueRequest({
|
|
5143
|
+
description: "Delete project file",
|
|
5140
5144
|
method: HttpMethod.DELETE,
|
|
5141
5145
|
url: `/projects/files/${id}/`,
|
|
5142
5146
|
blockers: [id],
|