@masterteam/governance 0.0.15 → 0.0.17

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.15",
3
+ "version": "0.0.17",
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.164",
24
- "@masterteam/forms": "^0.0.73",
25
- "@masterteam/icons": "^0.0.15"
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,16 @@ interface Translatable {
22
22
  }
23
23
  declare enum GovernanceRuleTypeEnum {
24
24
  ModuleExists = 1,
25
- ModuleDoesNotExist = 2,
26
- ModuleMaxCount = 3,
27
- ModuleMinCount = 4,
28
- FieldRequired = 5,
29
- FieldValue = 6,
30
- PhaseGateModuleRequired = 7,
31
- NoActiveRequest = 8
25
+ ModuleNotExists = 2,
26
+ ModuleMaxCount = 10,
27
+ ModuleMinCount = 11,
28
+ PhaseGateCompleted = 20,
29
+ PhaseGateModuleRequired = 22,
30
+ PhaseGateMandatoryItemsCompleted = 23,
31
+ NoActiveRequest = 30,
32
+ PropertyValueEquals = 40,
33
+ PropertyHasValue = 41,
34
+ CustomExpression = 100
32
35
  }
33
36
  /**
34
37
  * Option for select/multi-select fields
@@ -54,7 +57,7 @@ interface ConfigurationFieldSchema {
54
57
  type: 'text' | 'textarea' | 'number' | 'select' | 'multi-select' | 'checkbox' | 'date';
55
58
  label: Translatable;
56
59
  required?: boolean;
57
- defaultValue?: any;
60
+ defaultValue?: unknown;
58
61
  min?: number;
59
62
  max?: number;
60
63
  options?: ConfigurationFieldOption[];
@@ -81,8 +84,8 @@ interface GovernanceRule {
81
84
  targetScope: string;
82
85
  targetModuleKey?: string;
83
86
  targetOperationKey?: string;
84
- levelId: number;
85
- configuration: Record<string, any>;
87
+ levelId: number | null;
88
+ configuration: Record<string, unknown>;
86
89
  priority: number;
87
90
  isActive: boolean;
88
91
  stopOnFailure: boolean;
@@ -100,7 +103,7 @@ interface CreateGovernanceRuleDto {
100
103
  targetScope: string;
101
104
  targetModuleKey?: string;
102
105
  targetOperationKey?: string;
103
- configuration?: Record<string, any>;
106
+ configuration?: Record<string, unknown>;
104
107
  priority: number;
105
108
  stopOnFailure: boolean;
106
109
  }
@@ -110,7 +113,7 @@ interface UpdateGovernanceRuleDto extends CreateGovernanceRuleDto {
110
113
  interface GovernanceViolation {
111
114
  ruleKey: string;
112
115
  message: string;
113
- details?: any;
116
+ details?: unknown;
114
117
  }
115
118
  interface GovernanceViolationError {
116
119
  type: 'GovernanceViolation';