@opencrvs/toolkit 1.8.0-rc.f9d33b7 → 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 +5742 -8054
  2. package/dist/commons/conditionals/conditionals.d.ts +8 -15
  3. package/dist/commons/conditionals/validate.d.ts +11 -0
  4. package/dist/commons/events/ActionConfig.d.ts +77341 -48420
  5. package/dist/commons/events/ActionDocument.d.ts +4618 -1375
  6. package/dist/commons/events/ActionInput.d.ts +3139 -967
  7. package/dist/commons/events/ActionType.d.ts +10 -1
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +962 -48
  9. package/dist/commons/events/CompositeFieldValue.d.ts +37 -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 +274 -98
  14. package/dist/commons/events/EventConfig.d.ts +30722 -19227
  15. package/dist/commons/events/EventDocument.d.ts +2564 -929
  16. package/dist/commons/events/EventIndex.d.ts +1571 -283
  17. package/dist/commons/events/EventInput.d.ts +0 -13
  18. package/dist/commons/events/EventMetadata.d.ts +338 -48
  19. package/dist/commons/events/FieldConfig.d.ts +3741 -1283
  20. package/dist/commons/events/FieldType.d.ts +7 -2
  21. package/dist/commons/events/FieldTypeMapping.d.ts +154 -73
  22. package/dist/commons/events/FieldValue.d.ts +89 -19
  23. package/dist/commons/events/FormConfig.d.ts +30389 -15335
  24. package/dist/commons/events/PageConfig.d.ts +6118 -2428
  25. package/dist/commons/events/SummaryConfig.d.ts +17 -5
  26. package/dist/commons/events/User.d.ts +34 -7
  27. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  28. package/dist/commons/events/WorkqueueConfig.d.ts +8088 -16
  29. package/dist/commons/events/defineConfig.d.ts +5258 -3735
  30. package/dist/commons/events/event.d.ts +32 -11
  31. package/dist/commons/events/field.d.ts +46 -20
  32. package/dist/commons/events/index.d.ts +5 -0
  33. package/dist/commons/events/scopes.d.ts +23 -4
  34. package/dist/commons/events/serializer.d.ts +2 -0
  35. package/dist/commons/events/test.utils.d.ts +206 -53
  36. package/dist/commons/events/transactions.d.ts +1 -1
  37. package/dist/commons/events/utils.d.ts +12628 -1087
  38. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  39. package/dist/conditionals/index.js +67 -60
  40. package/dist/events/index.js +4849 -2327
  41. package/dist/scopes/index.d.ts +247 -1
  42. package/dist/scopes/index.js +231 -1
  43. package/package.json +3 -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