@docupace/ihub-config 1.1.20 → 1.1.21
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/dist/config-service.d.ts.map +1 -1
- package/dist/config-service.js.map +1 -1
- package/dist/model/graphs/config/rules.graphql +82 -58
- package/dist/types/graphql.d.ts +67 -14
- package/dist/types/graphql.d.ts.map +1 -1
- package/dist/types/graphql.js.map +1 -1
- package/model/graphs/config/rules.graphql +82 -58
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql.js","sourceRoot":"","sources":["../../src/types/graphql.ts"],"names":[],"mappings":"AA4CA,MAAM,CAAN,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,4CAAqB,CAAA;IACrB,wCAAiB,CAAA;IACjB,yDAAkC,CAAA;AACpC,CAAC,EAJW,mBAAmB,KAAnB,mBAAmB,QAI9B;
|
|
1
|
+
{"version":3,"file":"graphql.js","sourceRoot":"","sources":["../../src/types/graphql.ts"],"names":[],"mappings":"AA4CA,MAAM,CAAN,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,4CAAqB,CAAA;IACrB,wCAAiB,CAAA;IACjB,yDAAkC,CAAA;AACpC,CAAC,EAJW,mBAAmB,KAAnB,mBAAmB,QAI9B;AA0dD,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,6BAAW,CAAA;AACb,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB;AAkVD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AA2ZD,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,qCAAe,CAAA;IACf,yCAAmB,CAAA;AACrB,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B;AAwBD,MAAM,CAAN,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,oCAAa,CAAA;IACb,sCAAe,CAAA;AACjB,CAAC,EAHW,mBAAmB,KAAnB,mBAAmB,QAG9B"}
|
|
@@ -1,80 +1,104 @@
|
|
|
1
|
-
|
|
2
1
|
type RuleGroup {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
name: String
|
|
3
|
+
description: String
|
|
4
|
+
|
|
5
|
+
"""Type to apply the role group to. For example IContact or BaseWorkItem"""
|
|
6
|
+
type: String
|
|
7
|
+
"""Condition to define which rule groups will be applied. like for example custodian or registrationType"""
|
|
8
|
+
condition: String
|
|
9
|
+
|
|
10
|
+
"""Priority defined when multiple rule groups are matched. Higher value wins."""
|
|
11
|
+
priority: Int
|
|
12
|
+
fieldRules: [IFieldRule!]!
|
|
13
|
+
|
|
14
|
+
"""Custom validators that are not individual field rules (e.g. validation across multiple fields or collections)."""
|
|
15
|
+
validationRules: [ValidationRule!]
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
union ValidationRule = ArrayTotalRule
|
|
19
|
+
|
|
20
|
+
type ArrayTotalRule {
|
|
21
|
+
name: String
|
|
22
|
+
message: String!
|
|
23
|
+
|
|
24
|
+
"""Path to the collection whose elements should be validated."""
|
|
25
|
+
path: String!
|
|
26
|
+
|
|
27
|
+
"""Field from each matching collection element to include in the sum."""
|
|
28
|
+
fieldToSum: String!
|
|
29
|
+
|
|
30
|
+
"""Expected sum of the selected field values."""
|
|
31
|
+
expectedTotal: Int!
|
|
5
32
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"""Condition to define which rule groups will be applied. like for example custodian or registrationType"""
|
|
9
|
-
condition: String
|
|
33
|
+
"""Optional condition used to select collection elements."""
|
|
34
|
+
filterCondition: String
|
|
10
35
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
fieldRules: [IFieldRule!]!
|
|
36
|
+
"""Determines whether empty data should be considered valid."""
|
|
37
|
+
emptyIsValid: Boolean
|
|
14
38
|
}
|
|
15
39
|
|
|
16
40
|
interface IFieldRule {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
41
|
+
defaultValue: String
|
|
42
|
+
messageLabel: String
|
|
43
|
+
path: String!
|
|
44
|
+
readonly: Boolean
|
|
45
|
+
required: Boolean
|
|
46
|
+
requiredCondition: String
|
|
47
|
+
availabilityCondition: String # maps to visibilityCondition on UI
|
|
24
48
|
}
|
|
25
49
|
|
|
26
50
|
type ListFieldRule implements IFieldRule {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
51
|
+
defaultValue: String
|
|
52
|
+
messageLabel: String
|
|
53
|
+
path: String!
|
|
54
|
+
readonly: Boolean
|
|
55
|
+
required: Boolean
|
|
56
|
+
requiredCondition: String
|
|
57
|
+
availabilityCondition: String # maps to visibilityCondition on UI
|
|
58
|
+
validationRules: [ListFieldValidationRule!]
|
|
59
|
+
validation: FieldValidation
|
|
36
60
|
}
|
|
37
61
|
|
|
38
|
-
type
|
|
39
|
-
|
|
40
|
-
|
|
62
|
+
type ListFieldValidationRule {
|
|
63
|
+
condition: String
|
|
64
|
+
errorMessage: String
|
|
41
65
|
}
|
|
42
66
|
|
|
43
67
|
type StringFieldRule implements IFieldRule {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
68
|
+
defaultValue: String
|
|
69
|
+
maxLength: Int
|
|
70
|
+
messageLabel: String
|
|
71
|
+
minLength: Int
|
|
72
|
+
path: String!
|
|
73
|
+
readonly: Boolean
|
|
74
|
+
required: Boolean
|
|
75
|
+
requiredCondition: String
|
|
76
|
+
type: FieldValueType
|
|
77
|
+
validation: InputValidation
|
|
78
|
+
availabilityCondition: String
|
|
55
79
|
}
|
|
56
80
|
|
|
57
81
|
type BooleanFieldRule implements IFieldRule {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
82
|
+
defaultValue: String
|
|
83
|
+
messageLabel: String
|
|
84
|
+
path: String!
|
|
85
|
+
readonly: Boolean
|
|
86
|
+
required: Boolean
|
|
87
|
+
requiredCondition: String
|
|
88
|
+
validation: InputValidation
|
|
89
|
+
availabilityCondition: String
|
|
66
90
|
}
|
|
67
91
|
|
|
68
92
|
|
|
69
93
|
type DateFieldRule implements IFieldRule {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
94
|
+
defaultValue: String
|
|
95
|
+
messageLabel: String
|
|
96
|
+
path: String!
|
|
97
|
+
readonly: Boolean
|
|
98
|
+
required: Boolean
|
|
99
|
+
requiredCondition: String
|
|
100
|
+
availabilityCondition: String # maps to visibilityCondition on UI
|
|
101
|
+
minDate: String # e.q. "now" or "2025-03-20"
|
|
102
|
+
maxDate: String # e.q. "now" or "2025-03-20"
|
|
103
|
+
validation: FieldValidation
|
|
80
104
|
}
|