@opencrvs/toolkit 1.8.0-rc.feaeeb7 → 1.8.0-rc.ff62f9e
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 +6838 -506
- package/dist/commons/conditionals/conditionals.d.ts +1 -0
- package/dist/commons/conditionals/validate-address.test.d.ts +2 -0
- package/dist/commons/conditionals/validate.d.ts +27 -0
- package/dist/commons/conditionals/validate.test.d.ts +2 -0
- package/dist/commons/events/ActionConfig.d.ts +4714 -262
- package/dist/commons/events/ActionDocument.d.ts +2549 -74
- package/dist/commons/events/ActionInput.d.ts +4100 -276
- package/dist/commons/events/ActionType.d.ts +7 -1
- package/dist/commons/events/CompositeFieldValue.d.ts +152 -2
- package/dist/commons/events/Draft.d.ts +300 -15
- package/dist/commons/events/EventConfig.d.ts +1848 -192
- package/dist/commons/events/EventConfigInput.d.ts +2 -2
- package/dist/commons/events/EventDocument.d.ts +3244 -161
- package/dist/commons/events/FieldConfig.d.ts +293 -40
- package/dist/commons/events/FieldType.d.ts +6 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +154 -3
- package/dist/commons/events/FieldValue.d.ts +76 -2
- package/dist/commons/events/FormConfig.d.ts +377 -29
- package/dist/commons/events/TemplateConfig.d.ts +28 -8
- package/dist/commons/events/defineConfig.d.ts +309 -35
- package/dist/commons/events/test.utils.d.ts +164 -16
- package/dist/commons/events/utils.d.ts +232 -10
- package/dist/conditionals/index.js +17 -0
- package/dist/events/index.js +505 -116
- package/package.json +1 -1
@@ -98,6 +98,7 @@ export declare function field(fieldId: string): {
|
|
98
98
|
isFalsy: () => JSONSchema;
|
99
99
|
isUndefined: () => JSONSchema;
|
100
100
|
inArray: (values: string[]) => JSONSchema;
|
101
|
+
isValidEnglishName: () => JSONSchema;
|
101
102
|
};
|
102
103
|
export {};
|
103
104
|
//# sourceMappingURL=conditionals.d.ts.map
|
@@ -6,6 +6,33 @@ import { TranslationConfig } from '../events/TranslationConfig';
|
|
6
6
|
export declare function validate(schema: JSONSchema, data: ConditionalParameters): boolean;
|
7
7
|
export declare function isFieldVisible(field: FieldConfig, form: ActionUpdate | EventState): boolean;
|
8
8
|
export declare function isFieldEnabled(field: FieldConfig, form: ActionUpdate | EventState): boolean;
|
9
|
+
export declare const errorMessages: {
|
10
|
+
hiddenField: {
|
11
|
+
id: string;
|
12
|
+
defaultMessage: string;
|
13
|
+
description: string;
|
14
|
+
};
|
15
|
+
invalidDate: {
|
16
|
+
defaultMessage: string;
|
17
|
+
description: string;
|
18
|
+
id: string;
|
19
|
+
};
|
20
|
+
invalidEmail: {
|
21
|
+
defaultMessage: string;
|
22
|
+
description: string;
|
23
|
+
id: string;
|
24
|
+
};
|
25
|
+
requiredField: {
|
26
|
+
defaultMessage: string;
|
27
|
+
description: string;
|
28
|
+
id: string;
|
29
|
+
};
|
30
|
+
invalidInput: {
|
31
|
+
defaultMessage: string;
|
32
|
+
description: string;
|
33
|
+
id: string;
|
34
|
+
};
|
35
|
+
};
|
9
36
|
/**
|
10
37
|
* Custom error map for Zod to override the default error messages in intl-formik format.
|
11
38
|
*/
|