@opencrvs/toolkit 1.8.0-rc.fa564ca → 1.8.0-rc.fa82472

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.
Files changed (35) hide show
  1. package/dist/commons/api/router.d.ts +6661 -391
  2. package/dist/commons/conditionals/conditionals.d.ts +4 -0
  3. package/dist/commons/conditionals/validate.d.ts +6 -0
  4. package/dist/commons/events/ActionConfig.d.ts +18678 -6326
  5. package/dist/commons/events/ActionDocument.d.ts +1713 -204
  6. package/dist/commons/events/ActionInput.d.ts +1380 -180
  7. package/dist/commons/events/ActionType.d.ts +2 -0
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +75 -3
  9. package/dist/commons/events/CompositeFieldValue.d.ts +28 -0
  10. package/dist/commons/events/Constants.d.ts +1 -0
  11. package/dist/commons/events/CountryConfigQueryInput.d.ts +254 -168
  12. package/dist/commons/events/Draft.d.ts +117 -16
  13. package/dist/commons/events/EventConfig.d.ts +8242 -2365
  14. package/dist/commons/events/EventDocument.d.ts +1096 -152
  15. package/dist/commons/events/EventIndex.d.ts +793 -118
  16. package/dist/commons/events/EventMetadata.d.ts +38 -35
  17. package/dist/commons/events/FieldConfig.d.ts +1572 -746
  18. package/dist/commons/events/FieldType.d.ts +4 -1
  19. package/dist/commons/events/FieldTypeMapping.d.ts +89 -50
  20. package/dist/commons/events/FieldValue.d.ts +41 -5
  21. package/dist/commons/events/FormConfig.d.ts +7640 -2444
  22. package/dist/commons/events/PageConfig.d.ts +2816 -1540
  23. package/dist/commons/events/SummaryConfig.d.ts +0 -5
  24. package/dist/commons/events/WorkqueueColumnConfig.d.ts +11 -11
  25. package/dist/commons/events/WorkqueueConfig.d.ts +3266 -1503
  26. package/dist/commons/events/defineConfig.d.ts +959 -13
  27. package/dist/commons/events/field.d.ts +4 -0
  28. package/dist/commons/events/scopes.d.ts +6 -0
  29. package/dist/commons/events/test.utils.d.ts +137 -38
  30. package/dist/commons/events/utils.d.ts +9661 -10
  31. package/dist/conditionals/index.js +18 -1
  32. package/dist/events/index.js +1488 -928
  33. package/dist/scopes/index.d.ts +4 -1
  34. package/dist/scopes/index.js +67 -17
  35. 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