nucleus-core-ts 0.10.39 → 0.10.41
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.
|
@@ -28,6 +28,14 @@ export declare class VerificationService {
|
|
|
28
28
|
success: boolean;
|
|
29
29
|
flow_id: string;
|
|
30
30
|
}>;
|
|
31
|
+
/**
|
|
32
|
+
* Step nodes in this flow that no verifier node points at.
|
|
33
|
+
*
|
|
34
|
+
* Mirrors materializeRequirementsForStep's own lookup exactly — verifiers are
|
|
35
|
+
* the SOURCES of edges whose TARGET is the step — so publish refuses on the
|
|
36
|
+
* same rule the runtime would silently obey.
|
|
37
|
+
*/
|
|
38
|
+
private findStepsWithoutVerifiers;
|
|
31
39
|
publishFlow(flowId: string): Promise<{
|
|
32
40
|
success: boolean;
|
|
33
41
|
message: string;
|
|
@@ -2,6 +2,20 @@ export interface VerificationConfig {
|
|
|
2
2
|
enabled?: boolean;
|
|
3
3
|
autoResetOnRejection?: boolean;
|
|
4
4
|
requireSignatureByDefault?: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Whether the person who started a verification may also decide it.
|
|
7
|
+
*
|
|
8
|
+
* Defaults to FALSE, because that is what an approval chain is for. The
|
|
9
|
+
* engine records `started_by` on the instance and `created_by` on the row
|
|
10
|
+
* being reviewed, and until this existed it compared neither: on a
|
|
11
|
+
* pharmaceutical-leaflet install one account created the leaflet version,
|
|
12
|
+
* started the chain and approved its own submission in three calls, and the
|
|
13
|
+
* audit trail shows an approval with that person's name on both ends.
|
|
14
|
+
*
|
|
15
|
+
* Set it true only for a flow where self-approval is genuinely intended --
|
|
16
|
+
* an acknowledgement step, or a single-person shop.
|
|
17
|
+
*/
|
|
18
|
+
allowSelfApproval?: boolean;
|
|
5
19
|
diffTrackingEnabled?: boolean;
|
|
6
20
|
endpoints?: {
|
|
7
21
|
enabled?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nucleus-core-ts",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.41",
|
|
4
4
|
"description": "Production-ready, enterprise-grade TypeScript framework for building multi-tenant APIs",
|
|
5
5
|
"author": "Hidayet Can Özcan <hidayetcan@gmail.com>",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|