suppa-mcp-2 1.2.3 → 1.3.0

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.
@@ -269,7 +269,10 @@ export async function updateDoc(docId, title = null, isPublic = null) {
269
269
  const result = await updateEntity(ENTITY_DOCS, docId, fields);
270
270
  return jsonResponse(result);
271
271
  }
272
- /** Delete a document. */
272
+ /**
273
+ * Soft-delete a document: /remove sets deletedAt and keeps the row, so this is
274
+ * reversible (undo with restoreRecord) — nothing is purged.
275
+ */
273
276
  export async function deleteDoc(docId) {
274
277
  const result = await removeEntity(ENTITY_DOCS, [makeFilter("id", docId)]);
275
278
  return jsonResponse(result);
@@ -323,7 +326,10 @@ export async function updatePage(pageId, title = null, description = null, icon
323
326
  const result = await updateEntity(ENTITY_PAGES, pageId, fields);
324
327
  return jsonResponse(result);
325
328
  }
326
- /** Delete a page. */
329
+ /**
330
+ * Soft-delete a page: /remove sets deletedAt and keeps the row, so this is
331
+ * reversible (undo with restoreRecord) — nothing is purged.
332
+ */
327
333
  export async function deletePage(pageId) {
328
334
  const result = await removeEntity(ENTITY_PAGES, [makeFilter("id", pageId)]);
329
335
  return jsonResponse(result);
@@ -466,7 +472,10 @@ export async function updateBlock(blockId, title = null, propertiesJson = null)
466
472
  const result = await updateEntity(ENTITY_PAGE_BLOCKS, blockId, fields);
467
473
  return jsonResponse(result);
468
474
  }
469
- /** Delete a single block. */
475
+ /**
476
+ * Soft-delete a single block: /remove sets deletedAt and keeps the row, so this
477
+ * is reversible (undo with restoreRecord) — nothing is purged.
478
+ */
470
479
  export async function deleteBlock(blockId) {
471
480
  const result = await removeEntity(ENTITY_PAGE_BLOCKS, [makeFilter("id", blockId)]);
472
481
  return jsonResponse(result);