@zeniai/client-epic-state 5.0.81-betaAR2 → 5.0.81-betaAR3
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.
|
@@ -49,6 +49,13 @@ export interface ApprovalRulePayload {
|
|
|
49
49
|
are_approvals_serialized?: boolean;
|
|
50
50
|
description?: string | null;
|
|
51
51
|
is_fallback?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Approval Rules 3.0 — when `true`, the rule enforces separation of
|
|
54
|
+
* duties (a user can't approve their own request even if they are
|
|
55
|
+
* also an approver). The list-page rule card surfaces this as a
|
|
56
|
+
* green "Separation of duties" capsule.
|
|
57
|
+
*/
|
|
58
|
+
is_separation_of_duty_enabled?: boolean;
|
|
52
59
|
pending_approvals_count?: number;
|
|
53
60
|
pending_entity_approval_update_status?: string;
|
|
54
61
|
priority?: number;
|
|
@@ -20,8 +20,7 @@ const toApprovalRule = (payload) => ({
|
|
|
20
20
|
description: payload.description ?? undefined,
|
|
21
21
|
priority: payload.priority,
|
|
22
22
|
isFallback: payload.is_fallback ?? false,
|
|
23
|
-
|
|
24
|
-
// until the spec is finalized.
|
|
23
|
+
separationOfDuties: payload.is_separation_of_duty_enabled ?? false,
|
|
25
24
|
areApprovalsSerialized: payload.are_approvals_serialized,
|
|
26
25
|
pendingApprovalsCount: payload.pending_approvals_count,
|
|
27
26
|
pendingEntityApprovalUpdateStatus: payload.pending_entity_approval_update_status,
|
|
@@ -17,8 +17,7 @@ export const toApprovalRule = (payload) => ({
|
|
|
17
17
|
description: payload.description ?? undefined,
|
|
18
18
|
priority: payload.priority,
|
|
19
19
|
isFallback: payload.is_fallback ?? false,
|
|
20
|
-
|
|
21
|
-
// until the spec is finalized.
|
|
20
|
+
separationOfDuties: payload.is_separation_of_duty_enabled ?? false,
|
|
22
21
|
areApprovalsSerialized: payload.are_approvals_serialized,
|
|
23
22
|
pendingApprovalsCount: payload.pending_approvals_count,
|
|
24
23
|
pendingEntityApprovalUpdateStatus: payload.pending_entity_approval_update_status,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "5.0.81-
|
|
3
|
+
"version": "5.0.81-betaAR3",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/esm/index.js",
|