@opencrvs/toolkit 1.8.0-rc.fd1df48 → 1.8.0-rc.fd49b3a

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 (30) hide show
  1. package/dist/commons/api/router.d.ts +1806 -922
  2. package/dist/commons/conditionals/conditionals.d.ts +0 -12
  3. package/dist/commons/events/ActionConfig.d.ts +7830 -2014
  4. package/dist/commons/events/ActionDocument.d.ts +1948 -904
  5. package/dist/commons/events/ActionInput.d.ts +1680 -780
  6. package/dist/commons/events/AdvancedSearchConfig.d.ts +82 -33
  7. package/dist/commons/events/CompositeFieldValue.d.ts +9 -9
  8. package/dist/commons/events/CountryConfigQueryInput.d.ts +1086 -684
  9. package/dist/commons/events/Draft.d.ts +142 -70
  10. package/dist/commons/events/EventConfig.d.ts +3649 -935
  11. package/dist/commons/events/EventDocument.d.ts +1236 -588
  12. package/dist/commons/events/EventIndex.d.ts +339 -120
  13. package/dist/commons/events/FieldConfig.d.ts +455 -30
  14. package/dist/commons/events/FieldType.d.ts +2 -1
  15. package/dist/commons/events/FieldTypeMapping.d.ts +57 -25
  16. package/dist/commons/events/FieldValue.d.ts +45 -16
  17. package/dist/commons/events/FormConfig.d.ts +3005 -557
  18. package/dist/commons/events/PageConfig.d.ts +646 -38
  19. package/dist/commons/events/User.d.ts +6 -3
  20. package/dist/commons/events/WorkqueueConfig.d.ts +1990 -1174
  21. package/dist/commons/events/defineConfig.d.ts +498 -34
  22. package/dist/commons/events/event.d.ts +10 -18
  23. package/dist/commons/events/field.d.ts +13 -1
  24. package/dist/commons/events/test.utils.d.ts +43 -19
  25. package/dist/commons/events/utils.d.ts +2543 -77
  26. package/dist/conditionals/index.js +2 -34
  27. package/dist/events/index.js +963 -801
  28. package/dist/scopes/index.d.ts +92 -6
  29. package/dist/scopes/index.js +38 -9
  30. 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
  };