@opencrvs/toolkit 1.8.0-rc.ffe24c3 → 1.8.1-rc.0f10027

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 +1766 -14918
  2. package/dist/commons/conditionals/conditionals.d.ts +0 -12
  3. package/dist/commons/conditionals/validate.d.ts +5 -0
  4. package/dist/commons/events/ActionConfig.d.ts +37041 -35133
  5. package/dist/commons/events/ActionDocument.d.ts +3195 -1626
  6. package/dist/commons/events/ActionInput.d.ts +2316 -1380
  7. package/dist/commons/events/ActionType.d.ts +7 -4
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +134 -85
  9. package/dist/commons/events/CompositeFieldValue.d.ts +15 -15
  10. package/dist/commons/events/CountryConfigQueryInput.d.ts +1162 -760
  11. package/dist/commons/events/Draft.d.ts +190 -118
  12. package/dist/commons/events/EventConfig.d.ts +20268 -22409
  13. package/dist/commons/events/EventDocument.d.ts +1695 -1021
  14. package/dist/commons/events/EventIndex.d.ts +516 -175
  15. package/dist/commons/events/EventMetadata.d.ts +6 -4
  16. package/dist/commons/events/FieldConfig.d.ts +1528 -449
  17. package/dist/commons/events/FieldType.d.ts +3 -1
  18. package/dist/commons/events/FieldTypeMapping.d.ts +80 -41
  19. package/dist/commons/events/FieldValue.d.ts +58 -28
  20. package/dist/commons/events/FormConfig.d.ts +9263 -2657
  21. package/dist/commons/events/PageConfig.d.ts +3642 -2028
  22. package/dist/commons/events/SummaryConfig.d.ts +10 -10
  23. package/dist/commons/events/User.d.ts +6 -3
  24. package/dist/commons/events/WorkqueueConfig.d.ts +2243 -1338
  25. package/dist/commons/events/defineConfig.d.ts +2761 -3252
  26. package/dist/commons/events/event.d.ts +18 -18
  27. package/dist/commons/events/field.d.ts +27 -1
  28. package/dist/commons/events/scopes.d.ts +2 -1
  29. package/dist/commons/events/test.utils.d.ts +62 -34
  30. package/dist/commons/events/utils.d.ts +8850 -6796
  31. package/dist/conditionals/index.js +23 -53
  32. package/dist/events/index.js +1617 -1344
  33. package/dist/scopes/index.d.ts +92 -6
  34. package/dist/scopes/index.js +38 -9
  35. package/package.json +3 -3
@@ -1,7 +1,6 @@
1
1
  import { EventDocument } from '../events/EventDocument';
2
2
  import { EventState } from '../events/ActionDocument';
3
3
  import { ITokenPayload as TokenPayload, Scope } from '../authentication';
4
- import { ActionType } from '../events/ActionType';
5
4
  import { PartialSchema as AjvJSONSchemaType } from 'ajv/dist/types/json-schema';
6
5
  import { userSerializer } from '../events/serializers/user/serializer';
7
6
  /** @knipignore */
@@ -62,17 +61,6 @@ export declare function never(): JSONSchema;
62
61
  export declare const user: typeof userSerializer & {
63
62
  hasScope: (scope: Scope) => JSONSchema;
64
63
  };
65
- /**
66
- *
67
- * Generate conditional rules for event.
68
- */
69
- export declare function createEventConditionals(): {
70
- /**
71
- * Checks if the event contains a specific action type.
72
- * @param action - The action type to check for.
73
- */
74
- hasAction: (action: ActionType) => JSONSchema;
75
- };
76
64
  type FieldReference = {
77
65
  $$field: string;
78
66
  };
@@ -41,6 +41,11 @@ export declare const errorMessages: {
41
41
  description: string;
42
42
  id: string;
43
43
  };
44
+ correctionNotAllowed: {
45
+ defaultMessage: string;
46
+ description: string;
47
+ id: string;
48
+ };
44
49
  };
45
50
  /**
46
51
  * Custom error map for Zod to override the default error messages in intl-formik format.