@opencrvs/toolkit 2.0.0-rc.3855fe8 → 2.0.0-rc.3c7efd6

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 (78) hide show
  1. package/dist/application-config/index.js +11 -10
  2. package/dist/cli.js +1394 -152
  3. package/dist/commons/api/router.d.ts +45 -68
  4. package/dist/commons/conditionals/conditionals.d.ts +6 -6
  5. package/dist/commons/events/FieldConfig.d.ts +10 -0
  6. package/dist/conditionals/index.js +11 -10
  7. package/dist/events/index.js +11 -10
  8. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +1 -1
  9. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +3 -4
  10. package/dist/migrations/v2.0/add-resend-invite-notification.d.ts +3 -0
  11. package/dist/migrations/v2.0/add-resend-invite-notification.d.ts.map +1 -0
  12. package/dist/migrations/v2.0/add-resend-invite-notification.js +373 -0
  13. package/dist/migrations/v2.0/checkout-upstream-files.d.ts +19 -0
  14. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
  15. package/dist/migrations/v2.0/checkout-upstream-files.js +17 -13
  16. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -1
  17. package/dist/migrations/v2.0/convert-config-files-to-ts.js +4 -5
  18. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +1 -1
  19. package/dist/migrations/v2.0/convert-paragraph-to-heading.js +4 -5
  20. package/dist/migrations/v2.0/create-events-index.d.ts.map +1 -1
  21. package/dist/migrations/v2.0/create-events-index.js +1 -2
  22. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts +3 -0
  23. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts.map +1 -0
  24. package/dist/migrations/v2.0/delete-infrastructure-directory.js +77 -0
  25. package/dist/migrations/v2.0/index.d.ts +8 -4
  26. package/dist/migrations/v2.0/index.d.ts.map +1 -1
  27. package/dist/migrations/v2.0/index.js +1362 -149
  28. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +1 -1
  29. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +5 -6
  30. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts +3 -0
  31. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts.map +1 -0
  32. package/dist/migrations/v2.0/merge-infrastructure-directory.js +221 -0
  33. package/dist/migrations/v2.0/migrate-application-config-url.d.ts +3 -0
  34. package/dist/migrations/v2.0/migrate-application-config-url.d.ts.map +1 -0
  35. package/dist/migrations/v2.0/migrate-application-config-url.js +342 -0
  36. package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -1
  37. package/dist/migrations/v2.0/migrate-scopes.js +6 -7
  38. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +1 -1
  39. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +3 -4
  40. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +1 -1
  41. package/dist/migrations/v2.0/migrate-workqueue-configs.js +3 -4
  42. package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +1 -1
  43. package/dist/migrations/v2.0/remove-delete-actions.js +3 -4
  44. package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +1 -1
  45. package/dist/migrations/v2.0/remove-demo-scope.js +2 -3
  46. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +1 -1
  47. package/dist/migrations/v2.0/remove-deprecated-imports.js +3 -4
  48. package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts +3 -0
  49. package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts.map +1 -0
  50. package/dist/migrations/v2.0/remove-fhir-url-helpers.js +163 -0
  51. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +1 -1
  52. package/dist/migrations/v2.0/remove-hearth-migrations.js +1 -2
  53. package/dist/migrations/v2.0/remove-old-statistics-service.d.ts +3 -0
  54. package/dist/migrations/v2.0/remove-old-statistics-service.d.ts.map +1 -0
  55. package/dist/migrations/v2.0/remove-old-statistics-service.js +356 -0
  56. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +1 -1
  57. package/dist/migrations/v2.0/remove-pending-certification-flag.js +3 -4
  58. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +1 -1
  59. package/dist/migrations/v2.0/remove-review-from-register-action.js +3 -4
  60. package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts +3 -0
  61. package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts.map +1 -0
  62. package/dist/migrations/v2.0/remove-unused-environment-variables.js +186 -0
  63. package/dist/migrations/v2.0/rename-api-paths.d.ts.map +1 -1
  64. package/dist/migrations/v2.0/rename-api-paths.js +3 -4
  65. package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +1 -1
  66. package/dist/migrations/v2.0/rename-location-parent-id.js +3 -4
  67. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts.map +1 -1
  68. package/dist/migrations/v2.0/simplify-analytics-precalculations.js +1 -2
  69. package/dist/migrations/v2.0/update-package-json.d.ts +3 -0
  70. package/dist/migrations/v2.0/update-package-json.d.ts.map +1 -0
  71. package/dist/migrations/v2.0/update-package-json.js +105 -0
  72. package/dist/notification/index.js +11 -10
  73. package/dist/scopes/index.d.ts +8 -1
  74. package/dist/scopes/index.js +11 -10
  75. package/opencrvs-toolkit-2.0.0-rc.3c7efd6.tgz +0 -0
  76. package/package.json +1 -1
  77. package/tsconfig.tsbuildinfo +1 -1
  78. package/opencrvs-toolkit-2.0.0-rc.3855fe8.tgz +0 -0
@@ -683,6 +683,9 @@ var CustomActionScopeOptions = AllRecordScopeOptions.extend({
683
683
  var AccessLevelOptions = z11.object({
684
684
  accessLevel: JurisdictionFilter.optional()
685
685
  });
686
+ var AllUserScopeOptions = AccessLevelOptions.extend({
687
+ role: userRole.optional()
688
+ });
686
689
  var WorkqueueOrDashboardOptions = z11.object({
687
690
  ids: z11.preprocess(
688
691
  (val) => val === void 0 ? void 0 : [val].flat(),
@@ -692,6 +695,7 @@ var WorkqueueOrDashboardOptions = z11.object({
692
695
  var AllScopeOptions = z11.object({
693
696
  ...AllRecordScopeOptions.shape,
694
697
  ...AccessLevelOptions.shape,
698
+ ...AllUserScopeOptions.shape,
695
699
  ...WorkqueueOrDashboardOptions.shape
696
700
  });
697
701
  var ScopeOptionKey = AllScopeOptions.keyof();
@@ -768,27 +772,24 @@ var SystemScopeType = z11.enum([
768
772
  "organisation.read-locations",
769
773
  "user.read",
770
774
  "user.create",
771
- "user.edit"
775
+ "user.edit",
776
+ "user.search"
772
777
  ]);
773
778
  var UserScopeType = SystemScopeType.extract([
774
779
  "user.read",
775
780
  "user.create",
776
- "user.edit"
781
+ "user.edit",
782
+ "user.search"
777
783
  ]);
778
784
  var ScopesWithRoleOption = UserScopeType.extract(["user.edit", "user.create"]);
779
785
  var UserScopeV2 = z11.discriminatedUnion("type", [
780
786
  z11.object({
781
787
  type: ScopesWithRoleOption,
782
- options: z11.object({
783
- accessLevel: JurisdictionFilter.optional(),
784
- role: userRole.optional()
785
- }).optional()
788
+ options: AllUserScopeOptions.optional()
786
789
  }),
787
790
  z11.object({
788
- type: UserScopeType.extract(["user.read"]),
789
- options: z11.object({
790
- accessLevel: JurisdictionFilter.optional()
791
- }).optional()
791
+ type: UserScopeType.extract(["user.read", "user.search"]),
792
+ options: AccessLevelOptions.optional()
792
793
  })
793
794
  ]);
794
795
  var ResolvedRecordScopeV2 = z11.discriminatedUnion("type", [