@opencrvs/toolkit 1.8.0-rc.f7910f3 → 1.8.0-rc.f876361
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/README.md +1 -1
- package/dist/commons/api/router.d.ts +4276 -14979
- package/dist/commons/conditionals/conditionals.d.ts +16 -1
- package/dist/commons/events/ActionConfig.d.ts +1202 -6605
- package/dist/commons/events/ActionDocument.d.ts +7338 -244
- package/dist/commons/events/ActionInput.d.ts +1098 -256
- package/dist/commons/events/ActionType.d.ts +24 -16
- package/dist/commons/events/Draft.d.ts +42 -34
- package/dist/commons/events/EventConfig.d.ts +648 -2983
- package/dist/commons/events/EventConfigInput.d.ts +5 -2
- package/dist/commons/events/EventDocument.d.ts +695 -304
- package/dist/commons/events/EventIndex.d.ts +6 -3
- package/dist/commons/events/EventMetadata.d.ts +3 -0
- package/dist/commons/events/FieldConfig.d.ts +84 -22
- package/dist/commons/events/FormConfig.d.ts +559 -322
- package/dist/commons/events/PageConfig.d.ts +359 -0
- package/dist/commons/events/defineConfig.d.ts +28 -433
- package/dist/commons/events/index.d.ts +2 -1
- package/dist/commons/events/test.utils.d.ts +53 -182
- package/dist/commons/events/utils.d.ts +73 -177
- package/dist/conditionals/index.js +103 -15
- package/dist/events/index.js +833 -651
- package/package.json +1 -1
@@ -70,6 +70,10 @@ export declare const event: {
|
|
70
70
|
*
|
71
71
|
*/
|
72
72
|
export declare function field(fieldId: string): {
|
73
|
+
/**
|
74
|
+
* @private Internal property used for field reference tracking.
|
75
|
+
*/
|
76
|
+
_returning: string;
|
73
77
|
isAfter: () => {
|
74
78
|
days: (days: number) => {
|
75
79
|
inPast: () => JSONSchema;
|
@@ -86,7 +90,10 @@ export declare function field(fieldId: string): {
|
|
86
90
|
date: (date: string) => JSONSchema;
|
87
91
|
now: () => JSONSchema;
|
88
92
|
};
|
89
|
-
isEqualTo: (value: string | boolean
|
93
|
+
isEqualTo: (value: string | boolean | {
|
94
|
+
_returning: string;
|
95
|
+
[key: string]: unknown;
|
96
|
+
}) => JSONSchema;
|
90
97
|
/**
|
91
98
|
* Use case: Some fields are rendered when selection is not made, or boolean false is explicitly selected.
|
92
99
|
* @example field('recommender.none').isFalsy() vs not(field('recommender.none').isEqualTo(true))
|
@@ -99,6 +106,14 @@ export declare function field(fieldId: string): {
|
|
99
106
|
isUndefined: () => JSONSchema;
|
100
107
|
inArray: (values: string[]) => JSONSchema;
|
101
108
|
isValidEnglishName: () => JSONSchema;
|
109
|
+
isValidNationalId: () => JSONSchema;
|
110
|
+
/**
|
111
|
+
* Checks if the field value matches a given regular expression pattern.
|
112
|
+
* @param pattern - The regular expression pattern to match the field value against.
|
113
|
+
* @returns A JSONSchema conditional that validates the field value against the pattern.
|
114
|
+
*/
|
115
|
+
matches: (pattern: string) => JSONSchema;
|
116
|
+
isBetween: (min: number, max: number) => JSONSchema;
|
102
117
|
};
|
103
118
|
export {};
|
104
119
|
//# sourceMappingURL=conditionals.d.ts.map
|