@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.
- package/dist/application-config/index.js +11 -10
- package/dist/cli.js +1394 -152
- package/dist/commons/api/router.d.ts +45 -68
- package/dist/commons/conditionals/conditionals.d.ts +6 -6
- package/dist/commons/events/FieldConfig.d.ts +10 -0
- package/dist/conditionals/index.js +11 -10
- package/dist/events/index.js +11 -10
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +1 -1
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +3 -4
- package/dist/migrations/v2.0/add-resend-invite-notification.d.ts +3 -0
- package/dist/migrations/v2.0/add-resend-invite-notification.d.ts.map +1 -0
- package/dist/migrations/v2.0/add-resend-invite-notification.js +373 -0
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts +19 -0
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
- package/dist/migrations/v2.0/checkout-upstream-files.js +17 -13
- package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -1
- package/dist/migrations/v2.0/convert-config-files-to-ts.js +4 -5
- package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +1 -1
- package/dist/migrations/v2.0/convert-paragraph-to-heading.js +4 -5
- package/dist/migrations/v2.0/create-events-index.d.ts.map +1 -1
- package/dist/migrations/v2.0/create-events-index.js +1 -2
- package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts +3 -0
- package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts.map +1 -0
- package/dist/migrations/v2.0/delete-infrastructure-directory.js +77 -0
- package/dist/migrations/v2.0/index.d.ts +8 -4
- package/dist/migrations/v2.0/index.d.ts.map +1 -1
- package/dist/migrations/v2.0/index.js +1362 -149
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +1 -1
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +5 -6
- package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts +3 -0
- package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts.map +1 -0
- package/dist/migrations/v2.0/merge-infrastructure-directory.js +221 -0
- package/dist/migrations/v2.0/migrate-application-config-url.d.ts +3 -0
- package/dist/migrations/v2.0/migrate-application-config-url.d.ts.map +1 -0
- package/dist/migrations/v2.0/migrate-application-config-url.js +342 -0
- package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -1
- package/dist/migrations/v2.0/migrate-scopes.js +6 -7
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +1 -1
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +3 -4
- package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +1 -1
- package/dist/migrations/v2.0/migrate-workqueue-configs.js +3 -4
- package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +1 -1
- package/dist/migrations/v2.0/remove-delete-actions.js +3 -4
- package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +1 -1
- package/dist/migrations/v2.0/remove-demo-scope.js +2 -3
- package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +1 -1
- package/dist/migrations/v2.0/remove-deprecated-imports.js +3 -4
- package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts +3 -0
- package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-fhir-url-helpers.js +163 -0
- package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +1 -1
- package/dist/migrations/v2.0/remove-hearth-migrations.js +1 -2
- package/dist/migrations/v2.0/remove-old-statistics-service.d.ts +3 -0
- package/dist/migrations/v2.0/remove-old-statistics-service.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-old-statistics-service.js +356 -0
- package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +1 -1
- package/dist/migrations/v2.0/remove-pending-certification-flag.js +3 -4
- package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +1 -1
- package/dist/migrations/v2.0/remove-review-from-register-action.js +3 -4
- package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts +3 -0
- package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-unused-environment-variables.js +186 -0
- package/dist/migrations/v2.0/rename-api-paths.d.ts.map +1 -1
- package/dist/migrations/v2.0/rename-api-paths.js +3 -4
- package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +1 -1
- package/dist/migrations/v2.0/rename-location-parent-id.js +3 -4
- package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts.map +1 -1
- package/dist/migrations/v2.0/simplify-analytics-precalculations.js +1 -2
- package/dist/migrations/v2.0/update-package-json.d.ts +3 -0
- package/dist/migrations/v2.0/update-package-json.d.ts.map +1 -0
- package/dist/migrations/v2.0/update-package-json.js +105 -0
- package/dist/notification/index.js +11 -10
- package/dist/scopes/index.d.ts +8 -1
- package/dist/scopes/index.js +11 -10
- package/opencrvs-toolkit-2.0.0-rc.3c7efd6.tgz +0 -0
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- 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:
|
|
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:
|
|
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", [
|