@opencrvs/toolkit 1.8.0-rc.f9c5526 → 1.8.0-rc.f9db4f0

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 (43) hide show
  1. package/dist/commons/api/router.d.ts +5913 -5068
  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 +115347 -1728
  5. package/dist/commons/events/ActionDocument.d.ts +4824 -1264
  6. package/dist/commons/events/ActionInput.d.ts +3295 -1025
  7. package/dist/commons/events/ActionType.d.ts +12 -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 +291 -97
  14. package/dist/commons/events/EventConfig.d.ts +52573 -1354
  15. package/dist/commons/events/EventDocument.d.ts +2720 -828
  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 +6314 -1111
  19. package/dist/commons/events/FieldType.d.ts +7 -3
  20. package/dist/commons/events/FieldTypeMapping.d.ts +154 -73
  21. package/dist/commons/events/FieldValue.d.ts +90 -20
  22. package/dist/commons/events/FormConfig.d.ts +53892 -510
  23. package/dist/commons/events/PageConfig.d.ts +13367 -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 +8250 -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 +14943 -89
  37. package/dist/commons/events/utils.test.d.ts +2 -0
  38. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  39. package/dist/conditionals/index.js +66 -56
  40. package/dist/events/index.js +4649 -1777
  41. package/dist/scopes/index.d.ts +247 -1
  42. package/dist/scopes/index.js +231 -1
  43. 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>;
@@ -34,4 +38,11 @@ export type DeclarationUpdateActionType = z.infer<typeof DeclarationUpdateAction
34
38
  /** Actions which update annotation or status of an event. */
35
39
  export declare const annotationActions: z.ZodEnum<["DELETE", "CREATE", "NOTIFY", "DETECT_DUPLICATE", "REJECT", "MARKED_AS_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION", "READ", "ASSIGN", "UNASSIGN"]>;
36
40
  export type AnnotationActionType = z.infer<typeof annotationActions>;
41
+ /** Actions which requires the user to be assigned */
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;
37
48
  //# sourceMappingURL=ActionType.d.ts.map