@opencrvs/toolkit 1.8.1-rc.a372970 → 1.8.1-rc.baeb06c

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 (42) hide show
  1. package/dist/commons/api/router.d.ts +5910 -5078
  2. package/dist/commons/conditionals/conditionals.d.ts +9 -13
  3. package/dist/commons/conditionals/validate.d.ts +15 -6
  4. package/dist/commons/events/ActionConfig.d.ts +119326 -1729
  5. package/dist/commons/events/ActionDocument.d.ts +4824 -1270
  6. package/dist/commons/events/ActionInput.d.ts +3205 -1025
  7. package/dist/commons/events/ActionType.d.ts +10 -1
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +1282 -22
  9. package/dist/commons/events/CompositeFieldValue.d.ts +40 -9
  10. package/dist/commons/events/Constants.d.ts +3 -0
  11. package/dist/commons/events/CountryConfigQueryInput.d.ts +4132 -0
  12. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  13. package/dist/commons/events/Draft.d.ts +288 -97
  14. package/dist/commons/events/EventConfig.d.ts +54363 -1357
  15. package/dist/commons/events/EventDocument.d.ts +2720 -833
  16. package/dist/commons/events/EventIndex.d.ts +2228 -29
  17. package/dist/commons/events/EventMetadata.d.ts +347 -47
  18. package/dist/commons/events/FieldConfig.d.ts +6756 -1260
  19. package/dist/commons/events/FieldType.d.ts +8 -3
  20. package/dist/commons/events/FieldTypeMapping.d.ts +161 -73
  21. package/dist/commons/events/FieldValue.d.ts +91 -20
  22. package/dist/commons/events/FormConfig.d.ts +55770 -522
  23. package/dist/commons/events/PageConfig.d.ts +13825 -209
  24. package/dist/commons/events/SummaryConfig.d.ts +93 -42
  25. package/dist/commons/events/User.d.ts +34 -2
  26. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  27. package/dist/commons/events/WorkqueueConfig.d.ts +8116 -20
  28. package/dist/commons/events/defineConfig.d.ts +8529 -77
  29. package/dist/commons/events/event.d.ts +46 -0
  30. package/dist/commons/events/field.d.ts +94 -0
  31. package/dist/commons/events/index.d.ts +8 -0
  32. package/dist/commons/events/scopes.d.ts +45 -0
  33. package/dist/commons/events/serializer.d.ts +2 -0
  34. package/dist/commons/events/test.utils.d.ts +206 -90
  35. package/dist/commons/events/transactions.d.ts +1 -1
  36. package/dist/commons/events/utils.d.ts +15436 -88
  37. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  38. package/dist/conditionals/index.js +66 -56
  39. package/dist/events/index.js +4658 -1786
  40. package/dist/scopes/index.d.ts +184 -7
  41. package/dist/scopes/index.js +140 -40
  42. package/package.json +4 -3
@@ -22,9 +22,13 @@ export declare const ActionType: {
22
22
  readonly UNASSIGN: "UNASSIGN";
23
23
  };
24
24
  export type ActionType = (typeof ActionType)[keyof typeof ActionType];
25
- export declare const ConfirmableActions: readonly ["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"];
25
+ export declare const ConfirmableActions: readonly ["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "APPROVE_CORRECTION", "REJECT_CORRECTION"];
26
26
  /** Testing building types from enums as an alternative */
27
27
  export declare const ActionTypes: z.ZodEnum<["DELETE", "CREATE", "NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "DETECT_DUPLICATE", "REJECT", "MARKED_AS_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION", "READ", "ASSIGN", "UNASSIGN"]>;
28
+ export declare const ExclusiveActions: {
29
+ readonly REVIEW_CORRECTION_REQUEST: "REVIEW_CORRECTION_REQUEST";
30
+ };
31
+ export type ExclusiveActionTypes = (typeof ExclusiveActions)[keyof typeof ExclusiveActions];
28
32
  /** Actions which change event data (declaration) before registration / during declaration. */
29
33
  export declare const DeclarationActions: z.ZodEnum<["DECLARE", "VALIDATE", "REGISTER"]>;
30
34
  export type DeclarationActionType = z.infer<typeof DeclarationActions>;
@@ -36,4 +40,9 @@ export declare const annotationActions: z.ZodEnum<["DELETE", "CREATE", "NOTIFY",
36
40
  export type AnnotationActionType = z.infer<typeof annotationActions>;
37
41
  /** Actions which requires the user to be assigned */
38
42
  export declare const writeActions: z.ZodEnum<["DELETE", "NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "DETECT_DUPLICATE", "REJECT", "MARKED_AS_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION"]>;
43
+ /** Actions which are visible in action menu and workqueue */
44
+ export declare const workqueueActions: z.ZodEnum<["DELETE", "DECLARE", "VALIDATE", "REGISTER", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "READ", "ASSIGN", "UNASSIGN"]>;
45
+ export type WorkqueueActionType = z.infer<typeof workqueueActions>;
46
+ export type DisplayableAction = ActionType | ExclusiveActionTypes;
47
+ export declare function isMetaAction(actionType: ActionType): boolean;
39
48
  //# sourceMappingURL=ActionType.d.ts.map