@masterteam/governance 0.0.14 → 0.0.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masterteam/governance",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/governance",
6
6
  "linkDirectory": false,
@@ -20,9 +20,9 @@
20
20
  "tailwindcss": "^4.2.2",
21
21
  "tailwindcss-primeui": "^0.6.1",
22
22
  "@ngxs/store": "^20.1.0",
23
- "@masterteam/components": "^0.0.143",
24
- "@masterteam/forms": "^0.0.66",
25
- "@masterteam/icons": "^0.0.14"
23
+ "@masterteam/components": "^0.0.169",
24
+ "@masterteam/icons": "^0.0.15",
25
+ "@masterteam/forms": "^0.0.77"
26
26
  },
27
27
  "sideEffects": false,
28
28
  "exports": {
@@ -22,13 +22,19 @@ interface Translatable {
22
22
  }
23
23
  declare enum GovernanceRuleTypeEnum {
24
24
  ModuleExists = 1,
25
+ ModuleNotExists = 2,
25
26
  ModuleDoesNotExist = 2,
26
- ModuleMaxCount = 3,
27
- ModuleMinCount = 4,
27
+ ModuleMaxCount = 10,
28
+ ModuleMinCount = 11,
29
+ PhaseGateCompleted = 20,
30
+ PhaseGateModuleRequired = 22,
31
+ PhaseGateMandatoryItemsCompleted = 23,
32
+ NoActiveRequest = 30,
33
+ PropertyValueEquals = 40,
34
+ PropertyHasValue = 41,
35
+ CustomExpression = 100,
28
36
  FieldRequired = 5,
29
- FieldValue = 6,
30
- PhaseGateModuleRequired = 7,
31
- NoActiveRequest = 8
37
+ FieldValue = 40
32
38
  }
33
39
  /**
34
40
  * Option for select/multi-select fields
@@ -54,7 +60,7 @@ interface ConfigurationFieldSchema {
54
60
  type: 'text' | 'textarea' | 'number' | 'select' | 'multi-select' | 'checkbox' | 'date';
55
61
  label: Translatable;
56
62
  required?: boolean;
57
- defaultValue?: any;
63
+ defaultValue?: unknown;
58
64
  min?: number;
59
65
  max?: number;
60
66
  options?: ConfigurationFieldOption[];
@@ -81,8 +87,8 @@ interface GovernanceRule {
81
87
  targetScope: string;
82
88
  targetModuleKey?: string;
83
89
  targetOperationKey?: string;
84
- levelId: number;
85
- configuration: Record<string, any>;
90
+ levelId: number | null;
91
+ configuration: Record<string, unknown>;
86
92
  priority: number;
87
93
  isActive: boolean;
88
94
  stopOnFailure: boolean;
@@ -100,7 +106,7 @@ interface CreateGovernanceRuleDto {
100
106
  targetScope: string;
101
107
  targetModuleKey?: string;
102
108
  targetOperationKey?: string;
103
- configuration?: Record<string, any>;
109
+ configuration?: Record<string, unknown>;
104
110
  priority: number;
105
111
  stopOnFailure: boolean;
106
112
  }
@@ -110,7 +116,7 @@ interface UpdateGovernanceRuleDto extends CreateGovernanceRuleDto {
110
116
  interface GovernanceViolation {
111
117
  ruleKey: string;
112
118
  message: string;
113
- details?: any;
119
+ details?: unknown;
114
120
  }
115
121
  interface GovernanceViolationError {
116
122
  type: 'GovernanceViolation';