@opencrvs/toolkit 2.0.0-rc.bee2b7b → 2.0.0-rc.c2c75ca
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 +7 -36
- package/dist/cli.js +1390 -178
- package/dist/commons/api/router.d.ts +1 -2
- package/dist/commons/events/locations.d.ts +1 -17
- package/dist/conditionals/index.js +7 -36
- package/dist/events/index.js +7 -74
- 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 +1358 -175
- 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 +7 -36
- package/dist/scopes/index.d.ts +10 -80
- package/dist/scopes/index.js +8 -42
- package/opencrvs-toolkit-2.0.0-rc.c2c75ca.tgz +0 -0
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-2.0.0-rc.bee2b7b.tgz +0 -0
|
@@ -656,10 +656,6 @@ var scopeByEvent = z11.preprocess(
|
|
|
656
656
|
(val) => val === void 0 ? void 0 : [val].flat(),
|
|
657
657
|
z11.array(z11.string()).optional()
|
|
658
658
|
).describe("Event type, e.g. birth, death");
|
|
659
|
-
var userRole = z11.preprocess(
|
|
660
|
-
(val) => val === void 0 ? void 0 : [val].flat(),
|
|
661
|
-
z11.array(z11.string()).optional()
|
|
662
|
-
).describe("User role, e.g. admin, field agent");
|
|
663
659
|
var scopeOptionsPlaceEvent = z11.object({
|
|
664
660
|
event: scopeByEvent,
|
|
665
661
|
placeOfEvent: JurisdictionFilter.optional()
|
|
@@ -764,33 +760,6 @@ var RecordScopeV2 = z11.discriminatedUnion("type", [
|
|
|
764
760
|
]).describe(
|
|
765
761
|
"Scopes used to check user's permission to perform actions on a record."
|
|
766
762
|
);
|
|
767
|
-
var SystemScopeType = z11.enum([
|
|
768
|
-
"organisation.read-locations",
|
|
769
|
-
"user.read",
|
|
770
|
-
"user.create",
|
|
771
|
-
"user.edit"
|
|
772
|
-
]);
|
|
773
|
-
var UserScopeType = SystemScopeType.extract([
|
|
774
|
-
"user.read",
|
|
775
|
-
"user.create",
|
|
776
|
-
"user.edit"
|
|
777
|
-
]);
|
|
778
|
-
var ScopesWithRoleOption = UserScopeType.extract(["user.edit", "user.create"]);
|
|
779
|
-
var UserScopeV2 = z11.discriminatedUnion("type", [
|
|
780
|
-
z11.object({
|
|
781
|
-
type: ScopesWithRoleOption,
|
|
782
|
-
options: z11.object({
|
|
783
|
-
accessLevel: JurisdictionFilter.optional(),
|
|
784
|
-
role: userRole.optional()
|
|
785
|
-
}).optional()
|
|
786
|
-
}),
|
|
787
|
-
z11.object({
|
|
788
|
-
type: UserScopeType.extract(["user.read"]),
|
|
789
|
-
options: z11.object({
|
|
790
|
-
accessLevel: JurisdictionFilter.optional()
|
|
791
|
-
}).optional()
|
|
792
|
-
})
|
|
793
|
-
]);
|
|
794
763
|
var ResolvedRecordScopeV2 = z11.discriminatedUnion("type", [
|
|
795
764
|
z11.object({
|
|
796
765
|
type: ScopesWithPlaceEventOptions,
|
|
@@ -811,14 +780,16 @@ var ResolvedRecordScopeV2 = z11.discriminatedUnion("type", [
|
|
|
811
780
|
}).optional()
|
|
812
781
|
})
|
|
813
782
|
]).describe("Resolved scope with location/user IDs instead of filters.");
|
|
783
|
+
var SystemScopeType = z11.enum([
|
|
784
|
+
"organisation.read-locations",
|
|
785
|
+
"user.read",
|
|
786
|
+
"user.create",
|
|
787
|
+
"user.edit"
|
|
788
|
+
]);
|
|
814
789
|
var Scope = z11.discriminatedUnion("type", [
|
|
815
790
|
z11.object({ type: PlainScopeType }),
|
|
816
791
|
...RecordScopeV2.options,
|
|
817
|
-
|
|
818
|
-
z11.object({
|
|
819
|
-
type: z11.literal("organisation.read-locations"),
|
|
820
|
-
options: AccessLevelOptions.optional()
|
|
821
|
-
}),
|
|
792
|
+
z11.object({ type: SystemScopeType, options: AccessLevelOptions.optional() }),
|
|
822
793
|
z11.object({
|
|
823
794
|
type: z11.literal("workqueue"),
|
|
824
795
|
options: WorkqueueOrDashboardOptions
|