@opencrvs/toolkit 1.8.0-rc.f8296f8 → 1.8.0-rc.f84146e
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 +2944 -1117
- package/dist/commons/conditionals/conditionals.d.ts +6 -2
- package/dist/commons/conditionals/validate.d.ts +6 -0
- package/dist/commons/events/ActionConfig.d.ts +24179 -11127
- package/dist/commons/events/ActionDocument.d.ts +1818 -414
- package/dist/commons/events/ActionInput.d.ts +1504 -304
- package/dist/commons/events/ActionType.d.ts +4 -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/CreatedAtLocation.d.ts +2 -1
- package/dist/commons/events/Draft.d.ts +129 -33
- package/dist/commons/events/EventConfig.d.ts +12161 -5927
- package/dist/commons/events/EventDocument.d.ts +1162 -298
- package/dist/commons/events/EventIndex.d.ts +284 -31
- package/dist/commons/events/EventMetadata.d.ts +57 -57
- package/dist/commons/events/FieldConfig.d.ts +2074 -1202
- package/dist/commons/events/FieldType.d.ts +4 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +94 -52
- package/dist/commons/events/FieldValue.d.ts +43 -5
- package/dist/commons/events/FormConfig.d.ts +10259 -4769
- package/dist/commons/events/PageConfig.d.ts +3480 -2134
- package/dist/commons/events/SummaryConfig.d.ts +0 -5
- package/dist/commons/events/WorkqueueConfig.d.ts +297 -19
- package/dist/commons/events/defineConfig.d.ts +1724 -701
- package/dist/commons/events/field.d.ts +5 -10
- package/dist/commons/events/test.utils.d.ts +125 -40
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +10015 -331
- package/dist/conditionals/index.js +26 -6
- package/dist/events/index.js +760 -491
- package/package.json +1 -1
@@ -74,8 +74,7 @@ export declare function createEventConditionals(): {
|
|
74
74
|
hasAction: (action: ActionType) => JSONSchema;
|
75
75
|
};
|
76
76
|
type FieldReference = {
|
77
|
-
|
78
|
-
[key: string]: unknown;
|
77
|
+
$$field: string;
|
79
78
|
};
|
80
79
|
/**
|
81
80
|
* Generate conditional rules for a form field.
|
@@ -86,6 +85,10 @@ type FieldReference = {
|
|
86
85
|
*
|
87
86
|
*/
|
88
87
|
export declare function createFieldConditionals(fieldId: string): {
|
88
|
+
/**
|
89
|
+
* @private Internal property used for field reference tracking.
|
90
|
+
*/
|
91
|
+
$$field: string;
|
89
92
|
isAfter: () => {
|
90
93
|
days: (days: number) => {
|
91
94
|
inPast: () => JSONSchema;
|
@@ -125,6 +128,7 @@ export declare function createFieldConditionals(fieldId: string): {
|
|
125
128
|
getId: () => {
|
126
129
|
fieldId: string;
|
127
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
|