@opencrvs/toolkit 1.8.0-rc.fe87a15 → 1.8.0-rc.fe8c092
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 +6884 -614
- package/dist/commons/conditionals/conditionals.d.ts +4 -0
- package/dist/commons/conditionals/validate.d.ts +6 -0
- package/dist/commons/events/ActionConfig.d.ts +18678 -6326
- package/dist/commons/events/ActionDocument.d.ts +1923 -414
- package/dist/commons/events/ActionInput.d.ts +1504 -304
- package/dist/commons/events/ActionType.d.ts +6 -0
- package/dist/commons/events/AdvancedSearchConfig.d.ts +75 -3
- package/dist/commons/events/CompositeFieldValue.d.ts +28 -0
- package/dist/commons/events/Constants.d.ts +1 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +254 -168
- package/dist/commons/events/CreatedAtLocation.d.ts +2 -1
- package/dist/commons/events/Draft.d.ts +134 -33
- package/dist/commons/events/EventConfig.d.ts +8242 -2365
- package/dist/commons/events/EventDocument.d.ts +1242 -298
- package/dist/commons/events/EventIndex.d.ts +798 -123
- package/dist/commons/events/EventMetadata.d.ts +62 -59
- package/dist/commons/events/FieldConfig.d.ts +1572 -746
- package/dist/commons/events/FieldType.d.ts +4 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +89 -50
- package/dist/commons/events/FieldValue.d.ts +41 -5
- package/dist/commons/events/FormConfig.d.ts +7640 -2444
- package/dist/commons/events/PageConfig.d.ts +2816 -1540
- package/dist/commons/events/SummaryConfig.d.ts +0 -5
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +11 -11
- package/dist/commons/events/WorkqueueConfig.d.ts +3277 -1512
- package/dist/commons/events/defineConfig.d.ts +959 -13
- package/dist/commons/events/field.d.ts +4 -0
- package/dist/commons/events/index.d.ts +1 -0
- package/dist/commons/events/scopes.d.ts +1 -2
- package/dist/commons/events/test.utils.d.ts +138 -40
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +9666 -16
- package/dist/conditionals/index.js +18 -1
- package/dist/events/index.js +1592 -1011
- package/dist/scopes/index.d.ts +4 -1
- package/dist/scopes/index.js +67 -17
- package/package.json +1 -1
@@ -125,6 +125,10 @@ export declare function createFieldConditionals(fieldId: string): {
|
|
125
125
|
*/
|
126
126
|
matches: (pattern: string) => JSONSchema;
|
127
127
|
isBetween: (min: number, max: number) => JSONSchema;
|
128
|
+
getId: () => {
|
129
|
+
fieldId: string;
|
130
|
+
};
|
131
|
+
object: (options: Record<string, any>) => JSONSchema;
|
128
132
|
};
|
129
133
|
export {};
|
130
134
|
//# sourceMappingURL=conditionals.d.ts.map
|
@@ -36,6 +36,11 @@ export declare const errorMessages: {
|
|
36
36
|
description: string;
|
37
37
|
id: string;
|
38
38
|
};
|
39
|
+
unexpectedField: {
|
40
|
+
defaultMessage: string;
|
41
|
+
description: string;
|
42
|
+
id: string;
|
43
|
+
};
|
39
44
|
};
|
40
45
|
/**
|
41
46
|
* Custom error map for Zod to override the default error messages in intl-formik format.
|
@@ -66,4 +71,5 @@ export declare function runFieldValidations({ field, values }: {
|
|
66
71
|
message: TranslationConfig;
|
67
72
|
}[];
|
68
73
|
};
|
74
|
+
export declare function getValidatorsForField(fieldId: FieldConfig['id'], validations: NonNullable<FieldConfig['validation']>): NonNullable<FieldConfig['validation']>;
|
69
75
|
//# sourceMappingURL=validate.d.ts.map
|