@overmap-ai/core 1.0.46-project-attachments.2 → 1.0.46-project-attachments.4
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.
|
@@ -7289,6 +7289,9 @@ var __publicField = (obj, key, value) => {
|
|
|
7289
7289
|
method: HttpMethod.POST,
|
|
7290
7290
|
url: `/projects/${activeProjectId}/create-document/`,
|
|
7291
7291
|
payload: { ...offlineDocument },
|
|
7292
|
+
queryParams: {
|
|
7293
|
+
parent_document: offlineDocument.parent_document ?? void 0
|
|
7294
|
+
},
|
|
7292
7295
|
// if adding as a child of another document, need that document to exist first
|
|
7293
7296
|
blockers: offlineDocument.parent_document ? [offlineDocument.parent_document] : [],
|
|
7294
7297
|
blocks: [offlineDocument.offline_id]
|
|
@@ -7306,11 +7309,12 @@ var __publicField = (obj, key, value) => {
|
|
|
7306
7309
|
`attempting to update a document with offline_id ${document2.offline_id} that does not exist in store.documents`
|
|
7307
7310
|
);
|
|
7308
7311
|
}
|
|
7309
|
-
store.dispatch(updateDocuments([
|
|
7312
|
+
store.dispatch(updateDocuments([document2]));
|
|
7310
7313
|
const promise = this.enqueueRequest({
|
|
7311
7314
|
description: "Delete Document",
|
|
7312
7315
|
method: HttpMethod.PATCH,
|
|
7313
7316
|
url: `/documents/${document2.offline_id}`,
|
|
7317
|
+
payload: document2,
|
|
7314
7318
|
blockers: [document2.offline_id],
|
|
7315
7319
|
blocks: [document2.offline_id]
|
|
7316
7320
|
});
|