@docmana/sdk 0.39.0 → 0.40.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/CHANGELOG.md +4 -0
- package/README.md +1 -1
- package/dist/cli.mjs +14 -1
- package/dist/cli.mjs.map +1 -1
- package/dist/errors.d.ts +3 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -1
- package/dist/index.mjs.map +1 -1
- package/dist/reviews.d.ts +7 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.40.0 - 2026-11-10
|
|
4
|
+
|
|
5
|
+
- Accept an optional server-authenticated reviewer profile (first name, last name and email) on review decisions and preserve it in conflict metadata. Legacy reviewer strings remain supported.
|
|
6
|
+
|
|
3
7
|
## 0.39.0 - 2026-11-06
|
|
4
8
|
|
|
5
9
|
- Read per-node rule assignments and rule impact and update an existing assignment through Consumer Edge formula authoring.
|
package/README.md
CHANGED
|
@@ -599,7 +599,7 @@ await docmana.reviews.decide(
|
|
|
599
599
|
{
|
|
600
600
|
decision: "continue",
|
|
601
601
|
version: task.version,
|
|
602
|
-
reviewer:
|
|
602
|
+
reviewer: { firstName: analyst.firstName, lastName: analyst.lastName, email: analyst.email },
|
|
603
603
|
corrections: [{ itemId: task.documents[0].items![0].itemId, value: false }],
|
|
604
604
|
},
|
|
605
605
|
scope,
|
package/dist/cli.mjs
CHANGED
|
@@ -620,10 +620,23 @@ function reviewConflictDetails(raw) {
|
|
|
620
620
|
const actor = isRecord(raw.decidedBy) ? raw.decidedBy : {};
|
|
621
621
|
const id = text(actor.id, 200);
|
|
622
622
|
const name = text(actor.name, 200);
|
|
623
|
+
const firstName = text(actor.firstName, 200);
|
|
624
|
+
const lastName = text(actor.lastName, 200);
|
|
625
|
+
const email = text(actor.email, 200);
|
|
623
626
|
const source = actor.source === "integrator" || actor.source === "token" ? actor.source : null;
|
|
624
|
-
const decidedBy =
|
|
627
|
+
const decidedBy = [
|
|
628
|
+
id,
|
|
629
|
+
name,
|
|
630
|
+
firstName,
|
|
631
|
+
lastName,
|
|
632
|
+
email,
|
|
633
|
+
source
|
|
634
|
+
].some((part) => part !== null) ? {
|
|
625
635
|
...id !== null ? { id } : {},
|
|
626
636
|
...name !== null ? { name } : {},
|
|
637
|
+
...firstName !== null ? { firstName } : {},
|
|
638
|
+
...lastName !== null ? { lastName } : {},
|
|
639
|
+
...email !== null ? { email } : {},
|
|
627
640
|
...source ? { source } : {}
|
|
628
641
|
} : null;
|
|
629
642
|
const currentVersion = version(raw.currentVersion) ?? version(raw.version);
|