@abraca/dabra 2.24.0 → 2.25.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.
package/dist/index.d.ts CHANGED
@@ -651,14 +651,20 @@ declare class AbracadabraClient {
651
651
  effective_public_access: string | null;
652
652
  }>;
653
653
  /**
654
- * Update document metadata (label, description, kind, parent_id). Requires
655
- * manage permission on the doc; reparenting additionally requires manage on
656
- * the new parent (or admin if moving under the server root).
654
+ * Update document metadata (label, description, kind, doc_type, parent_id).
655
+ * Requires manage permission on the doc; reparenting additionally requires
656
+ * manage on the new parent (or admin if moving under the server root).
657
+ *
658
+ * `doc_type` is the renderer hint (`"kanban"`, `"graph"`, …) — orthogonal
659
+ * to `kind` (the structural role). Use it for post-create type changes;
660
+ * never write renderer strings into `kind`. Servers older than migration
661
+ * 0014 ignore the field (unknown JSON fields are dropped server-side).
657
662
  */
658
663
  updateDocumentMeta(docId: string, opts: {
659
664
  label?: string | null;
660
665
  description?: string | null;
661
666
  kind?: string | null;
667
+ doc_type?: string | null;
662
668
  parent_id?: string | null;
663
669
  }): Promise<void>;
664
670
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abraca/dabra",
3
- "version": "2.24.0",
3
+ "version": "2.25.0",
4
4
  "description": "abracadabra provider",
5
5
  "keywords": [
6
6
  "abracadabra",
@@ -41,7 +41,7 @@
41
41
  "yjs": "^13.6.8"
42
42
  },
43
43
  "devDependencies": {
44
- "@abraca/schema": "2.24.0"
44
+ "@abraca/schema": "2.25.0"
45
45
  },
46
46
  "scripts": {
47
47
  "test": "node --no-warnings --conditions=source --experimental-transform-types --test 'tests/*.test.ts'"
@@ -932,9 +932,14 @@ export class AbracadabraClient {
932
932
  }
933
933
 
934
934
  /**
935
- * Update document metadata (label, description, kind, parent_id). Requires
936
- * manage permission on the doc; reparenting additionally requires manage on
937
- * the new parent (or admin if moving under the server root).
935
+ * Update document metadata (label, description, kind, doc_type, parent_id).
936
+ * Requires manage permission on the doc; reparenting additionally requires
937
+ * manage on the new parent (or admin if moving under the server root).
938
+ *
939
+ * `doc_type` is the renderer hint (`"kanban"`, `"graph"`, …) — orthogonal
940
+ * to `kind` (the structural role). Use it for post-create type changes;
941
+ * never write renderer strings into `kind`. Servers older than migration
942
+ * 0014 ignore the field (unknown JSON fields are dropped server-side).
938
943
  */
939
944
  async updateDocumentMeta(
940
945
  docId: string,
@@ -942,6 +947,7 @@ export class AbracadabraClient {
942
947
  label?: string | null;
943
948
  description?: string | null;
944
949
  kind?: string | null;
950
+ doc_type?: string | null;
945
951
  parent_id?: string | null;
946
952
  },
947
953
  ): Promise<void> {