@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.
|
@@ -11043,9 +11043,14 @@ var AbracadabraClient = class {
|
|
|
11043
11043
|
return this.request("GET", `/docs/${encodeURIComponent(docId)}/access`);
|
|
11044
11044
|
}
|
|
11045
11045
|
/**
|
|
11046
|
-
* Update document metadata (label, description, kind, parent_id).
|
|
11047
|
-
* manage permission on the doc; reparenting additionally requires
|
|
11048
|
-
* the new parent (or admin if moving under the server root).
|
|
11046
|
+
* Update document metadata (label, description, kind, doc_type, parent_id).
|
|
11047
|
+
* Requires manage permission on the doc; reparenting additionally requires
|
|
11048
|
+
* manage on the new parent (or admin if moving under the server root).
|
|
11049
|
+
*
|
|
11050
|
+
* `doc_type` is the renderer hint (`"kanban"`, `"graph"`, …) — orthogonal
|
|
11051
|
+
* to `kind` (the structural role). Use it for post-create type changes;
|
|
11052
|
+
* never write renderer strings into `kind`. Servers older than migration
|
|
11053
|
+
* 0014 ignore the field (unknown JSON fields are dropped server-side).
|
|
11049
11054
|
*/
|
|
11050
11055
|
async updateDocumentMeta(docId, opts) {
|
|
11051
11056
|
await this.request("PATCH", `/docs/${encodeURIComponent(docId)}`, { body: opts });
|