@docmana/sdk 0.38.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 +8 -0
- package/README.md +4 -1
- package/dist/authoring.d.ts +20 -0
- package/dist/cli.mjs +28 -1
- package/dist/cli.mjs.map +1 -1
- package/dist/errors.d.ts +3 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +28 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -1
- package/dist/index.mjs.map +1 -1
- package/dist/reviews.d.ts +7 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -133,6 +133,20 @@ var FormulaAuthoring = class {
|
|
|
133
133
|
get(id, options) {
|
|
134
134
|
return this.request("GET", `flows/${identity(id)}`, options);
|
|
135
135
|
}
|
|
136
|
+
registrySnapshot(id, options) {
|
|
137
|
+
return this.request("GET", `flows/${identity(id)}/rule-registry`, options);
|
|
138
|
+
}
|
|
139
|
+
ruleImpact(id, ruleId, options) {
|
|
140
|
+
return this.request("POST", `flows/${identity(id)}/rules/${identity(ruleId)}/impact`, options);
|
|
141
|
+
}
|
|
142
|
+
setRuleAssignment(id, ruleId, nodeId, body, options) {
|
|
143
|
+
return this.request(
|
|
144
|
+
"PATCH",
|
|
145
|
+
`flows/${identity(id)}/rules/${identity(ruleId)}/assignments/${identity(nodeId)}`,
|
|
146
|
+
options,
|
|
147
|
+
body
|
|
148
|
+
);
|
|
149
|
+
}
|
|
136
150
|
create(body, options) {
|
|
137
151
|
return this.request("POST", "flows", options, body);
|
|
138
152
|
}
|
|
@@ -640,10 +654,23 @@ function reviewConflictDetails(raw) {
|
|
|
640
654
|
const actor = isRecord(raw.decidedBy) ? raw.decidedBy : {};
|
|
641
655
|
const id = text(actor.id, 200);
|
|
642
656
|
const name = text(actor.name, 200);
|
|
657
|
+
const firstName = text(actor.firstName, 200);
|
|
658
|
+
const lastName = text(actor.lastName, 200);
|
|
659
|
+
const email = text(actor.email, 200);
|
|
643
660
|
const source = actor.source === "integrator" || actor.source === "token" ? actor.source : null;
|
|
644
|
-
const decidedBy =
|
|
661
|
+
const decidedBy = [
|
|
662
|
+
id,
|
|
663
|
+
name,
|
|
664
|
+
firstName,
|
|
665
|
+
lastName,
|
|
666
|
+
email,
|
|
667
|
+
source
|
|
668
|
+
].some((part) => part !== null) ? {
|
|
645
669
|
...id !== null ? { id } : {},
|
|
646
670
|
...name !== null ? { name } : {},
|
|
671
|
+
...firstName !== null ? { firstName } : {},
|
|
672
|
+
...lastName !== null ? { lastName } : {},
|
|
673
|
+
...email !== null ? { email } : {},
|
|
647
674
|
...source ? { source } : {}
|
|
648
675
|
} : null;
|
|
649
676
|
const currentVersion = version(raw.currentVersion) ?? version(raw.version);
|