@opencrvs/toolkit 1.8.0-rc.fef85f2 → 1.8.0-rc.ff0b26c
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/commons/api/router.d.ts +10585 -4200
- package/dist/commons/conditionals/conditionals.d.ts +9 -6
- package/dist/commons/events/ActionConfig.d.ts +97080 -1720
- package/dist/commons/events/ActionDocument.d.ts +542 -211
- package/dist/commons/events/ActionInput.d.ts +248 -240
- package/dist/commons/events/AdvancedSearchConfig.d.ts +957 -22
- package/dist/commons/events/Draft.d.ts +33 -20
- package/dist/commons/events/EventConfig.d.ts +46237 -1398
- package/dist/commons/events/EventDocument.d.ts +337 -159
- package/dist/commons/events/EventIndex.d.ts +1735 -16
- package/dist/commons/events/EventInput.d.ts +13 -0
- package/dist/commons/events/EventMetadata.d.ts +274 -14
- package/dist/commons/events/FieldConfig.d.ts +4229 -744
- package/dist/commons/events/FieldType.d.ts +3 -3
- package/dist/commons/events/FieldTypeMapping.d.ts +11 -4
- package/dist/commons/events/FieldValue.d.ts +7 -4
- package/dist/commons/events/FormConfig.d.ts +43591 -439
- package/dist/commons/events/PageConfig.d.ts +10860 -204
- package/dist/commons/events/SummaryConfig.d.ts +17 -47
- package/dist/commons/events/WorkqueueConfig.d.ts +1549 -19
- package/dist/commons/events/defineConfig.d.ts +7199 -27
- package/dist/commons/events/event.d.ts +54 -0
- package/dist/commons/events/field.d.ts +82 -0
- package/dist/commons/events/index.d.ts +2 -0
- package/dist/commons/events/scopes.d.ts +21 -1
- package/dist/commons/events/test.utils.d.ts +10 -47
- package/dist/commons/events/utils.d.ts +3665 -67
- package/dist/conditionals/index.js +36 -33
- package/dist/events/index.js +1771 -966
- package/dist/scopes/index.d.ts +158 -1
- package/dist/scopes/index.js +152 -1
- package/package.json +3 -2
@@ -65,7 +65,11 @@ export declare const user: {
|
|
65
65
|
*
|
66
66
|
* Generate conditional rules for event.
|
67
67
|
*/
|
68
|
-
export declare
|
68
|
+
export declare function createEventConditionals(): {
|
69
|
+
/**
|
70
|
+
* Checks if the event contains a specific action type.
|
71
|
+
* @param action - The action type to check for.
|
72
|
+
*/
|
69
73
|
hasAction: (action: ActionType) => JSONSchema;
|
70
74
|
};
|
71
75
|
type FieldReference = {
|
@@ -80,11 +84,7 @@ type FieldReference = {
|
|
80
84
|
* and(field('foo').isEqualTo('bar'), field('baz').isUndefined())
|
81
85
|
*
|
82
86
|
*/
|
83
|
-
export declare function
|
84
|
-
/**
|
85
|
-
* @private Internal property used for field reference tracking.
|
86
|
-
*/
|
87
|
-
_fieldId: string;
|
87
|
+
export declare function createFieldConditionals(fieldId: string): {
|
88
88
|
isAfter: () => {
|
89
89
|
days: (days: number) => {
|
90
90
|
inPast: () => JSONSchema;
|
@@ -121,6 +121,9 @@ export declare function field(fieldId: string): {
|
|
121
121
|
*/
|
122
122
|
matches: (pattern: string) => JSONSchema;
|
123
123
|
isBetween: (min: number, max: number) => JSONSchema;
|
124
|
+
getId: () => {
|
125
|
+
fieldId: string;
|
126
|
+
};
|
124
127
|
};
|
125
128
|
export {};
|
126
129
|
//# sourceMappingURL=conditionals.d.ts.map
|