@opencrvs/toolkit 2.1.0-rc.7c41a07 → 2.1.0-rc.7c723fe
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/README.md +3 -12
- package/build.sh +22 -4
- package/create-countryconfig/index.js +441 -59
- package/create-countryconfig/node_modules/.bin/degit +21 -0
- package/create-countryconfig/package.json +4 -1
- package/dist/application-config/index.js +361 -284
- package/dist/authentication/index.d.ts +66 -0
- package/dist/authentication/index.d.ts.map +1 -0
- package/dist/authentication/index.js +765 -0
- package/dist/cli.js +3751 -1232
- package/dist/commons/api/router.d.ts +880 -374
- package/dist/commons/application-config/index.d.ts +0 -2
- package/dist/commons/conditionals/conditionals.d.ts +6 -6
- package/dist/commons/conditionals/validate.d.ts +34 -8
- package/dist/commons/events/ActionConfig.d.ts +5 -14
- package/dist/commons/events/ActionDocument.d.ts +35 -15
- package/dist/commons/events/ActionInput.d.ts +4 -4
- package/dist/commons/events/ActionStatus.d.ts +14 -0
- package/dist/commons/events/AdvancedSearchConfig.d.ts +42 -12
- package/dist/commons/events/AuditLog.d.ts +130 -5
- package/dist/commons/events/Draft.d.ts +1 -21
- package/dist/commons/events/EventConfig.d.ts +3 -0
- package/dist/commons/events/EventDocument.d.ts +472 -4
- package/dist/commons/events/EventIndex.d.ts +3 -26
- package/dist/commons/events/EventMetadata.d.ts +1 -11
- package/dist/commons/events/EventStatus.d.ts +19 -0
- package/dist/commons/events/FieldConfig.d.ts +104 -63
- package/dist/commons/events/FieldTypeMapping.d.ts +17 -17
- package/dist/commons/events/FieldValue.d.ts +3 -2
- package/dist/commons/events/Flag.d.ts +42 -0
- package/dist/commons/events/FormConfig.d.ts +6 -0
- package/dist/commons/events/PageConfig.d.ts +4 -0
- package/dist/commons/events/PlainDate.d.ts +8 -0
- package/dist/commons/events/SummaryConfig.d.ts +249 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +17 -14
- package/dist/commons/events/event.d.ts +12 -0
- package/dist/commons/events/locations.d.ts +162 -26
- package/dist/commons/events/mocks.test.utils.d.ts +30 -0
- package/dist/commons/events/scopes.d.ts +21 -1
- package/dist/commons/events/test.utils.d.ts +78 -25
- package/dist/commons/events/utils.d.ts +39 -4
- package/dist/commons/notification/UserNotifications.d.ts +28 -13
- package/dist/commons/notification/dispatch.d.ts +10 -0
- package/dist/commons/notification/index.d.ts +1 -0
- package/dist/conditionals/index.js +348 -65
- package/dist/csv.d.ts +25 -0
- package/dist/csv.d.ts.map +1 -0
- package/dist/csv.js +120 -0
- package/dist/environment/index.d.ts +1 -0
- package/dist/environment/index.d.ts.map +1 -1
- package/dist/environment/index.js +12 -1
- package/dist/environment/logger.d.ts +15 -3
- package/dist/environment/logger.d.ts.map +1 -1
- package/dist/environment/manage-users.js +1 -1
- package/dist/environment/paths.d.ts +7 -0
- package/dist/environment/paths.d.ts.map +1 -0
- package/dist/environment/paths.js +72 -0
- package/dist/environment/questions.d.ts.map +1 -1
- package/dist/environment/questions.js +20 -14
- package/dist/environment/setup-environment.d.ts +1 -1
- package/dist/environment/setup-environment.d.ts.map +1 -1
- package/dist/environment/setup-environment.js +594 -562
- package/dist/environment/swarm-to-k8s.js +3 -4
- package/dist/environment/templates.d.ts +0 -1
- package/dist/environment/templates.d.ts.map +1 -1
- package/dist/environment/templates.js +5 -9
- package/dist/environment/update-workflows.d.ts.map +1 -1
- package/dist/environment/update-workflows.js +21 -5
- package/dist/environment/upgrade.d.ts +2 -0
- package/dist/environment/upgrade.d.ts.map +1 -0
- package/dist/environment/upgrade.js +82 -0
- package/dist/environment/users.js +11 -13
- package/dist/environment/utils.d.ts +0 -12
- package/dist/environment/utils.d.ts.map +1 -1
- package/dist/environment/utils.js +1 -28
- package/dist/events/index.js +7202 -6657
- package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts +3 -0
- package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts.map +1 -0
- package/dist/migrations/v2.1/add-recovery-link-notifications.js +511 -0
- package/dist/migrations/v2.1/add-translations.d.ts +9 -0
- package/dist/migrations/v2.1/add-translations.d.ts.map +1 -0
- package/dist/migrations/v2.1/add-translations.js +149 -0
- package/dist/migrations/{v2.0/rename-api-paths.d.ts → v2.1/enable-telemetry.d.ts} +1 -1
- package/dist/migrations/v2.1/enable-telemetry.d.ts.map +1 -0
- package/dist/migrations/v2.1/enable-telemetry.js +455 -0
- package/dist/migrations/v2.1/index.d.ts.map +1 -1
- package/dist/migrations/v2.1/index.js +1952 -0
- package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts +14 -0
- package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts.map +1 -0
- package/dist/migrations/v2.1/migrate-infrastructure-to-assets.js +348 -0
- package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts +2 -0
- package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts.map +1 -0
- package/dist/migrations/v2.1/remove-metabase-package-installs.js +161 -0
- package/dist/migrations/{v2.0/migrate-scopes.d.ts → v2.1/remove-sentry.d.ts} +1 -1
- package/dist/migrations/v2.1/remove-sentry.d.ts.map +1 -0
- package/dist/migrations/v2.1/remove-sentry.js +354 -0
- package/dist/migrations/{v2.0/create-events-index.d.ts → v2.1/rename-trigger-paths.d.ts} +1 -1
- package/dist/migrations/v2.1/rename-trigger-paths.d.ts.map +1 -0
- package/dist/migrations/{v2.0/rename-api-paths.js → v2.1/rename-trigger-paths.js} +69 -40
- package/dist/migrations/v2.1/template-files.d.ts +8 -0
- package/dist/migrations/v2.1/template-files.d.ts.map +1 -0
- package/dist/migrations/v2.1/template-files.js +49 -0
- package/dist/migrations/v2.1/upgrade-tilt.d.ts +8 -0
- package/dist/migrations/v2.1/upgrade-tilt.d.ts.map +1 -0
- package/dist/migrations/v2.1/upgrade-tilt.js +139 -0
- package/dist/notification/index.js +1863 -1481
- package/dist/scopes/index.d.ts +612 -36
- package/dist/scopes/index.js +350 -65
- package/dist/telemetry/index.d.ts +45 -0
- package/dist/telemetry/index.d.ts.map +1 -0
- package/dist/telemetry/index.js +43 -0
- package/dist/templates/charts-values/dependencies/values.yaml +8 -0
- package/dist/templates/charts-values/opencrvs-services/values.yaml +10 -3
- package/dist/templates/charts-values/opentelemetry/values.yaml +102 -0
- package/dist/templates/charts-values/traefik/values.yaml +23 -9
- package/dist/templates/countryconfig-template/.tiltignore +1 -0
- package/dist/templates/countryconfig-template/Dockerfile.assets +7 -0
- package/dist/templates/countryconfig-template/Tiltfile +112 -0
- package/dist/templates/countryconfig-template/assets/README.md +1 -0
- package/dist/templates/countryconfig-template/assets/clear-all-data-dev.sh +61 -0
- package/dist/templates/countryconfig-template/assets/deployment/deploy.sh +455 -0
- package/dist/templates/countryconfig-template/assets/deployment/reindex.sh +168 -0
- package/dist/templates/countryconfig-template/assets/deployment/validate-required-variables-in-compose-files.ts +67 -0
- package/dist/templates/countryconfig-template/assets/elasticsearch/reindex.sh +168 -0
- package/dist/templates/countryconfig-template/assets/metabase/README.md +34 -0
- package/dist/templates/countryconfig-template/assets/metabase/environment-configuration.sql +36 -0
- package/dist/templates/countryconfig-template/assets/metabase/initialize-database.sh +46 -0
- package/dist/templates/countryconfig-template/assets/metabase/metabase.init.db.sql +27737 -0
- package/dist/templates/countryconfig-template/assets/metabase/open-shell.sh +21 -0
- package/dist/templates/countryconfig-template/assets/metabase/package.json +13 -0
- package/dist/templates/countryconfig-template/assets/metabase/run-dev.sh +108 -0
- package/dist/templates/countryconfig-template/assets/metabase/run.sh +120 -0
- package/dist/templates/countryconfig-template/assets/metabase/update-database.sh +40 -0
- package/dist/templates/countryconfig-template/assets/postgres/setup-analytics.sh +135 -0
- package/dist/templates/countryconfig-template/assets/postgres/setup-reference-data.sh +108 -0
- package/dist/templates/countryconfig-template/tilt/clear-all-data.ps1 +50 -0
- package/dist/templates/countryconfig-template/tilt/clear-all-data.sh +35 -0
- package/dist/templates/countryconfig-template/tilt/common.tilt +145 -0
- package/dist/templates/countryconfig-template/tilt/examples/dependencies/values.yaml +15 -0
- package/dist/templates/countryconfig-template/tilt/examples/opencrvs-services/values.yaml +56 -0
- package/dist/templates/countryconfig-template/tilt/examples/traefik/values-minikube.yaml +21 -0
- package/dist/templates/countryconfig-template/tilt/examples/traefik/values.yaml +38 -0
- package/dist/templates/countryconfig-template/tilt/helm/dependencies/values.yaml +17 -0
- package/dist/templates/countryconfig-template/tilt/helm/opencrvs-services/values.yaml +16 -0
- package/dist/templates/countryconfig-template/tilt/lib.tilt +95 -0
- package/dist/templates/countryconfig-template/tilt/opencrvs.tilt +136 -0
- package/dist/templates/inventory/inventory.template.yml +1 -3
- package/dist/translations/template.d.ts +11 -0
- package/dist/translations/template.d.ts.map +1 -0
- package/dist/translations/template.js +100 -0
- package/dist/verify/endpoints.d.ts +2 -0
- package/dist/verify/endpoints.d.ts.map +1 -0
- package/dist/verify/endpoints.js +510 -0
- package/opencrvs-toolkit-2.1.0-rc.7c723fe.tgz +0 -0
- package/package.json +13 -6
- package/tsconfig.build.json +11 -0
- package/tsconfig.build.tsbuildinfo +1 -0
- package/tsconfig.json +3 -0
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts +0 -3
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +0 -1
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +0 -429
- package/dist/migrations/v2.0/add-resend-invite-notification.d.ts +0 -3
- package/dist/migrations/v2.0/add-resend-invite-notification.d.ts.map +0 -1
- package/dist/migrations/v2.0/add-resend-invite-notification.js +0 -373
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts +0 -22
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +0 -1
- package/dist/migrations/v2.0/checkout-upstream-files.js +0 -146
- package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts +0 -2
- package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +0 -1
- package/dist/migrations/v2.0/convert-config-files-to-ts.js +0 -838
- package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts +0 -3
- package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +0 -1
- package/dist/migrations/v2.0/convert-paragraph-to-heading.js +0 -158
- package/dist/migrations/v2.0/create-events-index.d.ts.map +0 -1
- package/dist/migrations/v2.0/create-events-index.js +0 -325
- package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts +0 -11
- package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts.map +0 -1
- package/dist/migrations/v2.0/delete-infrastructure-directory.js +0 -123
- package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.d.ts +0 -3
- package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.d.ts.map +0 -1
- package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.js +0 -110
- package/dist/migrations/v2.0/index.d.ts +0 -13
- package/dist/migrations/v2.0/index.d.ts.map +0 -1
- package/dist/migrations/v2.0/index.js +0 -103
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts +0 -3
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +0 -1
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +0 -432
- package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts +0 -13
- package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts.map +0 -1
- package/dist/migrations/v2.0/merge-infrastructure-directory.js +0 -222
- package/dist/migrations/v2.0/migrate-application-config-url.d.ts +0 -3
- package/dist/migrations/v2.0/migrate-application-config-url.d.ts.map +0 -1
- package/dist/migrations/v2.0/migrate-application-config-url.js +0 -343
- package/dist/migrations/v2.0/migrate-scopes.d.ts.map +0 -1
- package/dist/migrations/v2.0/migrate-scopes.js +0 -305
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts +0 -3
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +0 -1
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +0 -267
- package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts +0 -3
- package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +0 -1
- package/dist/migrations/v2.0/migrate-workqueue-configs.js +0 -317
- package/dist/migrations/v2.0/remove-delete-actions.d.ts +0 -3
- package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-delete-actions.js +0 -156
- package/dist/migrations/v2.0/remove-demo-scope.d.ts +0 -3
- package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-demo-scope.js +0 -74
- package/dist/migrations/v2.0/remove-deprecated-imports.d.ts +0 -3
- package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-deprecated-imports.js +0 -96
- package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts +0 -3
- package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-fhir-url-helpers.js +0 -163
- package/dist/migrations/v2.0/remove-hearth-migrations.d.ts +0 -3
- package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-hearth-migrations.js +0 -87
- package/dist/migrations/v2.0/remove-old-statistics-service.d.ts +0 -3
- package/dist/migrations/v2.0/remove-old-statistics-service.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-old-statistics-service.js +0 -356
- package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts +0 -3
- package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-pending-certification-flag.js +0 -109
- package/dist/migrations/v2.0/remove-review-from-register-action.d.ts +0 -3
- package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-review-from-register-action.js +0 -163
- package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts +0 -3
- package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-unused-environment-variables.js +0 -186
- package/dist/migrations/v2.0/rename-api-paths.d.ts.map +0 -1
- package/dist/migrations/v2.0/rename-location-parent-id.d.ts +0 -3
- package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +0 -1
- package/dist/migrations/v2.0/rename-location-parent-id.js +0 -180
- package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts +0 -3
- package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts.map +0 -1
- package/dist/migrations/v2.0/simplify-analytics-precalculations.js +0 -195
- package/dist/migrations/v2.0/update-package-json.d.ts +0 -3
- package/dist/migrations/v2.0/update-package-json.d.ts.map +0 -1
- package/dist/migrations/v2.0/update-package-json.js +0 -105
- package/dist/templates/inventory/production.example.yml +0 -77
- package/dist/templates/inventory/qa.example.yml +0 -48
- package/opencrvs-toolkit-2.1.0-rc.7c41a07.tgz +0 -0
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"simplify-analytics-precalculations.d.ts","sourceRoot":"","sources":["../../../src/migrations/v2.0/simplify-analytics-precalculations.ts"],"names":[],"mappings":"AAqLA,iBAAe,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAyCnC;AAED,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
-
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
-
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
6
|
-
*
|
|
7
|
-
* OpenCRVS is also distributed under the terms of the Civil Registration
|
|
8
|
-
* & Healthcare Disclaimer located at http://opencrvs.org/license.
|
|
9
|
-
*
|
|
10
|
-
* Copyright (C) The OpenCRVS Authors located at https://github.com/opencrvs/opencrvs-core/blob/master/AUTHORS.
|
|
11
|
-
*/
|
|
12
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
|
-
};
|
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.main = main;
|
|
26
|
-
/**
|
|
27
|
-
* Codemod: Clean up `src/analytics/analytics.ts` by removing the Farajaland
|
|
28
|
-
* sample precalculation wiring.
|
|
29
|
-
*
|
|
30
|
-
* Usage:
|
|
31
|
-
* ts-node -r tsconfig-paths/register src/migrations/v2.0/simplify-analytics-precalculations.ts
|
|
32
|
-
*
|
|
33
|
-
* Runs LAST, after `checkout-upstream-files` has replaced
|
|
34
|
-
* `src/analytics/analytics.ts` with the upstream v2.0 version. That upstream
|
|
35
|
-
* version hardcodes a Farajaland-specific birth-event precalculation (it
|
|
36
|
-
* imports `Event` and `precalculateBirthEvent`), which countries implementing
|
|
37
|
-
* their own flows don't want. This codemod strips that out so each country
|
|
38
|
-
* starts from a clean placeholder.
|
|
39
|
-
*
|
|
40
|
-
* What it does (only to `src/analytics/analytics.ts`, if present):
|
|
41
|
-
* 1. Removes the named imports `Event` and `precalculateBirthEvent`.
|
|
42
|
-
* If an import declaration becomes empty it is removed entirely.
|
|
43
|
-
* 2. Rewrites the body of `precalculateAdditionalAnalytics` so it contains
|
|
44
|
-
* nothing but `return declaration` — i.e. every statement that
|
|
45
|
-
* references `Event` or `precalculateBirthEvent` is dropped, and a
|
|
46
|
-
* `return declaration` is ensured at the end.
|
|
47
|
-
*
|
|
48
|
-
* The codemod is safe to re-run: if the imports are already gone and the
|
|
49
|
-
* function body is already `return declaration`, it is a no-op.
|
|
50
|
-
*/
|
|
51
|
-
const ts_morph_1 = require("ts-morph");
|
|
52
|
-
const fs_1 = __importDefault(require("fs"));
|
|
53
|
-
const path_1 = __importDefault(require("path"));
|
|
54
|
-
const ANALYTICS_FILE_REL = 'src/analytics/analytics.ts';
|
|
55
|
-
const FUNCTION_NAME = 'precalculateAdditionalAnalytics';
|
|
56
|
-
const IMPORT_NAMES_TO_REMOVE = new Set(['Event', 'precalculateBirthEvent']);
|
|
57
|
-
const RETURN_EXPRESSION_TEXT = 'declaration';
|
|
58
|
-
// ─── Import cleanup ──────────────────────────────────────────────────────────
|
|
59
|
-
/**
|
|
60
|
-
* Removes every named import in `sourceFile` whose local binding name is in
|
|
61
|
-
* `IMPORT_NAMES_TO_REMOVE`. If a given import declaration is left with no
|
|
62
|
-
* named imports, default import or namespace import, the declaration itself
|
|
63
|
-
* is removed.
|
|
64
|
-
*/
|
|
65
|
-
function removeTargetedNamedImports(sourceFile) {
|
|
66
|
-
const log = [];
|
|
67
|
-
for (const importDecl of [...sourceFile.getImportDeclarations()]) {
|
|
68
|
-
const namedImports = importDecl.getNamedImports();
|
|
69
|
-
if (namedImports.length === 0)
|
|
70
|
-
continue;
|
|
71
|
-
const matched = namedImports.filter((ni) => IMPORT_NAMES_TO_REMOVE.has(ni.getName()));
|
|
72
|
-
if (matched.length === 0)
|
|
73
|
-
continue;
|
|
74
|
-
const removedNames = matched.map((ni) => ni.getName());
|
|
75
|
-
for (const ni of matched)
|
|
76
|
-
ni.remove();
|
|
77
|
-
log.push(`removed import(s) ${removedNames.join(', ')} from '${importDecl.getModuleSpecifierValue()}'`);
|
|
78
|
-
const stillUsed = importDecl.getNamedImports().length > 0 ||
|
|
79
|
-
importDecl.getDefaultImport() ||
|
|
80
|
-
importDecl.getNamespaceImport();
|
|
81
|
-
if (!stillUsed)
|
|
82
|
-
importDecl.remove();
|
|
83
|
-
}
|
|
84
|
-
return log;
|
|
85
|
-
}
|
|
86
|
-
// ─── Function-body cleanup ───────────────────────────────────────────────────
|
|
87
|
-
/**
|
|
88
|
-
* Returns the `precalculateAdditionalAnalytics` declaration in `sourceFile`,
|
|
89
|
-
* whether it was written as `function precalculateAdditionalAnalytics(...)` or
|
|
90
|
-
* as `const precalculateAdditionalAnalytics = (...) => { ... }`.
|
|
91
|
-
*/
|
|
92
|
-
function findPrecalculateFunction(sourceFile) {
|
|
93
|
-
for (const fn of sourceFile.getFunctions()) {
|
|
94
|
-
if (fn.getName() === FUNCTION_NAME)
|
|
95
|
-
return fn;
|
|
96
|
-
}
|
|
97
|
-
for (const statement of sourceFile.getVariableStatements()) {
|
|
98
|
-
for (const decl of statement.getDeclarations()) {
|
|
99
|
-
if (decl.getName() === FUNCTION_NAME)
|
|
100
|
-
return decl;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
return undefined;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Returns the block body of a function declaration or variable-declared arrow
|
|
107
|
-
* / function expression, or undefined if the function has an expression body
|
|
108
|
-
* or doesn't exist.
|
|
109
|
-
*/
|
|
110
|
-
function getFunctionBodyBlock(fn) {
|
|
111
|
-
if (ts_morph_1.Node.isFunctionDeclaration(fn))
|
|
112
|
-
return fn.getBody();
|
|
113
|
-
const initializer = fn.getInitializer();
|
|
114
|
-
if (!initializer)
|
|
115
|
-
return undefined;
|
|
116
|
-
if (!ts_morph_1.Node.isArrowFunction(initializer) &&
|
|
117
|
-
!ts_morph_1.Node.isFunctionExpression(initializer)) {
|
|
118
|
-
return undefined;
|
|
119
|
-
}
|
|
120
|
-
return initializer.getBody();
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Rewrites the body of `precalculateAdditionalAnalytics` so that the only
|
|
124
|
-
* statement is `return declaration`. Any statement whose subtree references
|
|
125
|
-
* the removed imports (`Event`, `precalculateBirthEvent`) is dropped; a
|
|
126
|
-
* trailing `return declaration` is ensured.
|
|
127
|
-
*/
|
|
128
|
-
function simplifyPrecalculateFunction(sourceFile) {
|
|
129
|
-
var _a;
|
|
130
|
-
const log = [];
|
|
131
|
-
const fn = findPrecalculateFunction(sourceFile);
|
|
132
|
-
if (!fn)
|
|
133
|
-
return log;
|
|
134
|
-
const body = getFunctionBodyBlock(fn);
|
|
135
|
-
if (!body || !ts_morph_1.Node.isBlock(body))
|
|
136
|
-
return log;
|
|
137
|
-
// Drop every statement (not just `if`s) whose AST references an identifier
|
|
138
|
-
// in IMPORT_NAMES_TO_REMOVE. This handles both the upstream shape
|
|
139
|
-
// if (eventConfig.id === Event.Birth) return precalculateBirthEvent(...)
|
|
140
|
-
// and any equivalent variant a country might have typed.
|
|
141
|
-
for (const statement of [...body.getStatements()]) {
|
|
142
|
-
const references = statement
|
|
143
|
-
.getDescendantsOfKind(ts_morph_1.SyntaxKind.Identifier)
|
|
144
|
-
.some((id) => IMPORT_NAMES_TO_REMOVE.has(id.getText()));
|
|
145
|
-
if (references) {
|
|
146
|
-
statement.remove();
|
|
147
|
-
log.push(`removed statement in ${FUNCTION_NAME} referencing removed imports`);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
// Ensure the function ends with `return declaration`. If nothing changed
|
|
151
|
-
// and the body already ends correctly, this is a no-op.
|
|
152
|
-
const remaining = body.getStatements();
|
|
153
|
-
const last = remaining[remaining.length - 1];
|
|
154
|
-
const alreadyCorrect = last &&
|
|
155
|
-
ts_morph_1.Node.isReturnStatement(last) &&
|
|
156
|
-
((_a = last.getExpression()) === null || _a === void 0 ? void 0 : _a.getText()) === RETURN_EXPRESSION_TEXT;
|
|
157
|
-
if (!alreadyCorrect) {
|
|
158
|
-
body.addStatements(`return ${RETURN_EXPRESSION_TEXT}`);
|
|
159
|
-
log.push(`ensured '${FUNCTION_NAME}' ends with 'return ${RETURN_EXPRESSION_TEXT}'`);
|
|
160
|
-
}
|
|
161
|
-
return log;
|
|
162
|
-
}
|
|
163
|
-
// ─── Entry point ─────────────────────────────────────────────────────────────
|
|
164
|
-
function main() {
|
|
165
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
166
|
-
const cwd = process.cwd();
|
|
167
|
-
const absPath = path_1.default.join(cwd, ANALYTICS_FILE_REL);
|
|
168
|
-
if (!fs_1.default.existsSync(absPath)) {
|
|
169
|
-
console.log(`[${ANALYTICS_FILE_REL}] does not exist — nothing to clean up.`);
|
|
170
|
-
return;
|
|
171
|
-
}
|
|
172
|
-
const project = new ts_morph_1.Project({
|
|
173
|
-
tsConfigFilePath: path_1.default.resolve(cwd, 'tsconfig.json'),
|
|
174
|
-
skipAddingFilesFromTsConfig: false
|
|
175
|
-
});
|
|
176
|
-
const sourceFile = project.getSourceFile(absPath);
|
|
177
|
-
if (!sourceFile) {
|
|
178
|
-
console.log(`[${ANALYTICS_FILE_REL}] is not part of the tsconfig project. Skipping.`);
|
|
179
|
-
return;
|
|
180
|
-
}
|
|
181
|
-
console.log(`Cleaning up ${ANALYTICS_FILE_REL}...\n`);
|
|
182
|
-
const importLogs = removeTargetedNamedImports(sourceFile);
|
|
183
|
-
const fnLogs = simplifyPrecalculateFunction(sourceFile);
|
|
184
|
-
const allLogs = [...importLogs, ...fnLogs];
|
|
185
|
-
if (allLogs.length === 0) {
|
|
186
|
-
console.log(`[${ANALYTICS_FILE_REL}] already clean — nothing to do.`);
|
|
187
|
-
return;
|
|
188
|
-
}
|
|
189
|
-
for (const log of allLogs) {
|
|
190
|
-
console.log(` [${ANALYTICS_FILE_REL}] ${log}`);
|
|
191
|
-
}
|
|
192
|
-
yield sourceFile.save();
|
|
193
|
-
console.log(`\nSaved ${ANALYTICS_FILE_REL}.`);
|
|
194
|
-
});
|
|
195
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-package-json.d.ts","sourceRoot":"","sources":["../../../src/migrations/v2.0/update-package-json.ts"],"names":[],"mappings":"AA2CA,iBAAe,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAyEnC;AAED,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
-
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
-
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
6
|
-
*
|
|
7
|
-
* OpenCRVS is also distributed under the terms of the Civil Registration
|
|
8
|
-
* & Healthcare Disclaimer located at http://opencrvs.org/license.
|
|
9
|
-
*
|
|
10
|
-
* Copyright (C) The OpenCRVS Authors located at https://github.com/opencrvs/opencrvs-core/blob/master/AUTHORS.
|
|
11
|
-
*/
|
|
12
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
|
-
};
|
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.main = main;
|
|
26
|
-
/**
|
|
27
|
-
* Codemod: Update root `package.json` for the v1.9 → v2.0 upgrade.
|
|
28
|
-
*
|
|
29
|
-
* Changes applied:
|
|
30
|
-
* 1. Sets `version` to `2.0.0`.
|
|
31
|
-
* 2. Sets `zod` to `^4.2.1` in `dependencies` (or `devDependencies` if it
|
|
32
|
-
* already lives there). If `zod` is absent from both, it's added to
|
|
33
|
-
* `dependencies`.
|
|
34
|
-
*
|
|
35
|
-
* Caveats:
|
|
36
|
-
* - The codemod preserves the file's existing 2-space indentation and
|
|
37
|
-
* trailing newline. Any non-standard formatting (e.g. tabs) will be
|
|
38
|
-
* replaced with 2-space indentation.
|
|
39
|
-
* - No-op when `package.json` is missing.
|
|
40
|
-
* - No automatic `yarn install` is run; the developer should reinstall
|
|
41
|
-
* dependencies after the codemods complete.
|
|
42
|
-
*/
|
|
43
|
-
const fs_1 = require("fs");
|
|
44
|
-
const path_1 = __importDefault(require("path"));
|
|
45
|
-
const PACKAGE_JSON_RELATIVE = 'package.json';
|
|
46
|
-
const TARGET_VERSION = '2.0.0';
|
|
47
|
-
const TARGET_ZOD_RANGE = '^4.2.1';
|
|
48
|
-
function main() {
|
|
49
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
-
const packageJsonPath = path_1.default.join(process.cwd(), PACKAGE_JSON_RELATIVE);
|
|
51
|
-
if (!(0, fs_1.existsSync)(packageJsonPath)) {
|
|
52
|
-
console.log(`'${PACKAGE_JSON_RELATIVE}' not found in ${process.cwd()} — skipping.`);
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
const raw = (0, fs_1.readFileSync)(packageJsonPath, 'utf8');
|
|
56
|
-
let parsed;
|
|
57
|
-
try {
|
|
58
|
-
parsed = JSON.parse(raw);
|
|
59
|
-
}
|
|
60
|
-
catch (error) {
|
|
61
|
-
console.warn(` [${PACKAGE_JSON_RELATIVE}] Failed to parse JSON — skipping update. ${error.message}`);
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
console.log(`Updating '${PACKAGE_JSON_RELATIVE}'...`);
|
|
65
|
-
const previousVersion = parsed.version;
|
|
66
|
-
const versionChanged = previousVersion !== TARGET_VERSION;
|
|
67
|
-
parsed.version = TARGET_VERSION;
|
|
68
|
-
if (versionChanged) {
|
|
69
|
-
console.log(` Set version: ${previousVersion !== null && previousVersion !== void 0 ? previousVersion : '<unset>'} → ${TARGET_VERSION}`);
|
|
70
|
-
}
|
|
71
|
-
else {
|
|
72
|
-
console.log(` Version already ${TARGET_VERSION} — no change.`);
|
|
73
|
-
}
|
|
74
|
-
// Resolve which dependency bucket already holds zod, defaulting to
|
|
75
|
-
// `dependencies` when absent.
|
|
76
|
-
let zodBucket = 'dependencies';
|
|
77
|
-
if (parsed.devDependencies && 'zod' in parsed.devDependencies) {
|
|
78
|
-
zodBucket = 'devDependencies';
|
|
79
|
-
}
|
|
80
|
-
if (!parsed[zodBucket]) {
|
|
81
|
-
parsed[zodBucket] = {};
|
|
82
|
-
}
|
|
83
|
-
const bucket = parsed[zodBucket];
|
|
84
|
-
const previousZod = bucket.zod;
|
|
85
|
-
const zodChanged = previousZod !== TARGET_ZOD_RANGE;
|
|
86
|
-
bucket.zod = TARGET_ZOD_RANGE;
|
|
87
|
-
if (zodChanged) {
|
|
88
|
-
console.log(` Set ${zodBucket}.zod: ${previousZod !== null && previousZod !== void 0 ? previousZod : '<absent>'} → ${TARGET_ZOD_RANGE}`);
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
console.log(` ${zodBucket}.zod already ${TARGET_ZOD_RANGE} — no change.`);
|
|
92
|
-
}
|
|
93
|
-
// Preserve trailing newline if the source had one (default to LF since
|
|
94
|
-
// most repos commit JSON with a trailing newline).
|
|
95
|
-
const trailingNewline = raw.endsWith('\n') ? '\n' : '';
|
|
96
|
-
const next = JSON.stringify(parsed, null, 2) + trailingNewline;
|
|
97
|
-
if (next === raw) {
|
|
98
|
-
console.log('\n No changes to write.');
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
(0, fs_1.writeFileSync)(packageJsonPath, next, 'utf8');
|
|
102
|
-
console.log(`\n Saved '${PACKAGE_JSON_RELATIVE}'.`);
|
|
103
|
-
console.log(` NOTE: run \`yarn install\` (or your package manager equivalent) to install the updated dependency versions.`);
|
|
104
|
-
});
|
|
105
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
all:
|
|
2
|
-
vars:
|
|
3
|
-
# single_node:
|
|
4
|
-
# For development/qa/testing/staging keep true
|
|
5
|
-
# For production keep false
|
|
6
|
-
# Defaults production configuration:
|
|
7
|
-
# - master node
|
|
8
|
-
# - 2 worker nodes
|
|
9
|
-
single_node: false
|
|
10
|
-
|
|
11
|
-
# Domain/IP address for remote access to your cluster API
|
|
12
|
-
# Domain/IP address will be added as main endpoint to your ~/.kube/config
|
|
13
|
-
# - If you are behind VPN, use private IP address
|
|
14
|
-
# - If your server is exposed (not recommeded), use public IP address
|
|
15
|
-
# - If you would like to run kubectl commands from the remote server, leave this field empty
|
|
16
|
-
|
|
17
|
-
# IMPORTANT: If master VM has multiple ethernet interfaces, put private IP address at kube_api_host
|
|
18
|
-
# kube_api_host: 10.10.10.10
|
|
19
|
-
kube_api_host: ''
|
|
20
|
-
|
|
21
|
-
# Default ansible provision user, keep as is
|
|
22
|
-
ansible_user: provision
|
|
23
|
-
|
|
24
|
-
# users: Add as many users as you wish
|
|
25
|
-
# Configuration example
|
|
26
|
-
# - name: <login>
|
|
27
|
-
# ssh_keys:
|
|
28
|
-
# - <public ssh key 1>
|
|
29
|
-
# - <public ssh key 2>
|
|
30
|
-
# state: present
|
|
31
|
-
# role: admin
|
|
32
|
-
# Allowed roles:
|
|
33
|
-
# - operator: grant read only access to OS and full access to kubernetes cluster
|
|
34
|
-
# - admin: grant full access to OS and kubernetes cluster
|
|
35
|
-
# Allowed states:
|
|
36
|
-
# - present: user is allowed to login
|
|
37
|
-
# - absent: user account is disabled
|
|
38
|
-
users: []
|
|
39
|
-
|
|
40
|
-
children:
|
|
41
|
-
master:
|
|
42
|
-
hosts:
|
|
43
|
-
# Replace master with value returned by command: hostname
|
|
44
|
-
master:
|
|
45
|
-
# Keep values (ansible_host, ansible_connection) as is
|
|
46
|
-
# Ansible is executed on master node
|
|
47
|
-
ansible_host: localhost
|
|
48
|
-
ansible_connection: local
|
|
49
|
-
labels:
|
|
50
|
-
# traefik-role label is used to identify where to deploy traefik
|
|
51
|
-
traefik-role: ingress
|
|
52
|
-
|
|
53
|
-
# Workers section is optional, for single node cluster feel free to remove this section
|
|
54
|
-
# section can be added later
|
|
55
|
-
# more workers can be added later as well
|
|
56
|
-
workers:
|
|
57
|
-
hosts:
|
|
58
|
-
# Replace worker0 with value returned by command: hostname
|
|
59
|
-
worker0:
|
|
60
|
-
# Put internal IP address here
|
|
61
|
-
ansible_host: 10.10.10.10
|
|
62
|
-
labels:
|
|
63
|
-
# By default all datastores are deployed to worker node with role data1
|
|
64
|
-
role: data1
|
|
65
|
-
# Replace worker0 with value returned by command: hostname
|
|
66
|
-
worker1:
|
|
67
|
-
# Put internal IP address here
|
|
68
|
-
ansible_host: 10.10.10.11
|
|
69
|
-
|
|
70
|
-
# backup section is optional, feel free to remove if backups are not enabled
|
|
71
|
-
# section can be added later
|
|
72
|
-
backup:
|
|
73
|
-
hosts:
|
|
74
|
-
# Replace backup-01 with value returned by command: hostname
|
|
75
|
-
backup-01:
|
|
76
|
-
# Put internal IP address here
|
|
77
|
-
ansible_host: 10.10.10.12
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
all:
|
|
2
|
-
vars:
|
|
3
|
-
# Domain/IP address for remote access to your cluster API
|
|
4
|
-
# Domain/IP address will be added as main endpoint to your ~/.kube/config
|
|
5
|
-
# - If you are behind VPN, use private IP address
|
|
6
|
-
# - If your server is exposed (not recommeded), use public IP address
|
|
7
|
-
# - If you would like to run kubectl commands from the remote server, leave this field empty
|
|
8
|
-
|
|
9
|
-
# IMPORTANT: If master VM has multiple ethernet interfaces, put private IP address at kube_api_address
|
|
10
|
-
# kube_api_host: 10.10.10.10
|
|
11
|
-
kube_api_host: []
|
|
12
|
-
|
|
13
|
-
# Default ansible provision user, keep as is
|
|
14
|
-
ansible_user: provision
|
|
15
|
-
|
|
16
|
-
# single_node:
|
|
17
|
-
# For development/qa/testing/staging keep true
|
|
18
|
-
# For production keep false
|
|
19
|
-
# Defaults production configuration:
|
|
20
|
-
# - master node
|
|
21
|
-
# - 2 worker nodes
|
|
22
|
-
single_node: true
|
|
23
|
-
|
|
24
|
-
# users: Add as many users as you wish
|
|
25
|
-
# Configuration example
|
|
26
|
-
# - name: <login>
|
|
27
|
-
# ssh_keys:
|
|
28
|
-
# - <public ssh key 1>
|
|
29
|
-
# - <public ssh key 2>
|
|
30
|
-
# state: present
|
|
31
|
-
# role: admin
|
|
32
|
-
# Allowed roles:
|
|
33
|
-
# - operator: grant read only access to OS and full access to kubernetes cluster
|
|
34
|
-
# - admin: grant full access to OS and kubernetes cluster
|
|
35
|
-
# Allowed states:
|
|
36
|
-
# - present: user is allowed to login
|
|
37
|
-
# - absent: user account is disabled
|
|
38
|
-
users: []
|
|
39
|
-
|
|
40
|
-
children:
|
|
41
|
-
master:
|
|
42
|
-
hosts:
|
|
43
|
-
# Replace master with value returned by command: hostname
|
|
44
|
-
master:
|
|
45
|
-
# Keep values (ansible_host, ansible_connection) as is
|
|
46
|
-
# Ansible is executed on master node
|
|
47
|
-
ansible_host: localhost
|
|
48
|
-
ansible_connection: local
|
|
Binary file
|
package/tsconfig.tsbuildinfo
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":"7.0.2","root":["./src/cli.ts","./src/api/index.ts","./src/application-config/index.ts","./src/conditionals/index.ts","./src/environment/custom-types.ts","./src/environment/derived-variables.ts","./src/environment/editor-questions.ts","./src/environment/git.ts","./src/environment/github.ts","./src/environment/index.ts","./src/environment/logger.ts","./src/environment/manage-users.ts","./src/environment/questions-helper.ts","./src/environment/questions.ts","./src/environment/setup-environment.ts","./src/environment/ssh-keygen.ts","./src/environment/swarm-to-k8s.ts","./src/environment/templates.ts","./src/environment/update-workflows.ts","./src/environment/users.ts","./src/environment/utils.ts","./src/events/deduplication.ts","./src/events/index.ts","./src/migrations/v2.0/add-birth-certificate-issuance-flag.ts","./src/migrations/v2.0/add-resend-invite-notification.ts","./src/migrations/v2.0/checkout-upstream-files.ts","./src/migrations/v2.0/convert-config-files-to-ts.ts","./src/migrations/v2.0/convert-paragraph-to-heading.ts","./src/migrations/v2.0/create-events-index.ts","./src/migrations/v2.0/delete-infrastructure-directory.ts","./src/migrations/v2.0/fix-accept-requested-registration-function-type.ts","./src/migrations/v2.0/index.ts","./src/migrations/v2.0/make-built-in-validate-actions-custom.ts","./src/migrations/v2.0/merge-infrastructure-directory.ts","./src/migrations/v2.0/migrate-application-config-url.ts","./src/migrations/v2.0/migrate-scopes.ts","./src/migrations/v2.0/migrate-validated-workqueue-status-to-flag.ts","./src/migrations/v2.0/migrate-workqueue-configs.ts","./src/migrations/v2.0/remove-delete-actions.ts","./src/migrations/v2.0/remove-demo-scope.ts","./src/migrations/v2.0/remove-deprecated-imports.ts","./src/migrations/v2.0/remove-fhir-url-helpers.ts","./src/migrations/v2.0/remove-hearth-migrations.ts","./src/migrations/v2.0/remove-old-statistics-service.ts","./src/migrations/v2.0/remove-pending-certification-flag.ts","./src/migrations/v2.0/remove-review-from-register-action.ts","./src/migrations/v2.0/remove-unused-environment-variables.ts","./src/migrations/v2.0/rename-api-paths.ts","./src/migrations/v2.0/rename-location-parent-id.ts","./src/migrations/v2.0/simplify-analytics-precalculations.ts","./src/migrations/v2.0/update-package-json.ts","./src/migrations/v2.1/add-explicit-correction-flags.ts","./src/migrations/v2.1/index.ts","./src/notification/index.ts","./src/scopes/index.ts"],"packageJsons":["../../node_modules/@hapi/boom/package.json","../../node_modules/@hapi/catbox/node_modules/@hapi/podium/package.json","../../node_modules/@hapi/catbox/package.json","../../node_modules/@hapi/hapi/node_modules/@hapi/podium/package.json","../../node_modules/@hapi/hapi/package.json","../../node_modules/@hapi/mimos/package.json","../../node_modules/@hapi/shot/package.json","../../node_modules/@hapi/statehood/node_modules/@hapi/iron/package.json","../../node_modules/@hapi/statehood/package.json","../../node_modules/@inquirer/checkbox/package.json","../../node_modules/@inquirer/core/package.json","../../node_modules/@inquirer/editor/package.json","../../node_modules/@inquirer/expand/package.json","../../node_modules/@inquirer/external-editor/package.json","../../node_modules/@inquirer/input/package.json","../../node_modules/@inquirer/number/package.json","../../node_modules/@inquirer/password/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/confirm/package.json","../../node_modules/@inquirer/prompts/package.json","../../node_modules/@inquirer/rawlist/package.json","../../node_modules/@inquirer/search/package.json","../../node_modules/@inquirer/select/package.json","../../node_modules/@inquirer/type/package.json","../../node_modules/@octokit/graphql/package.json","../../node_modules/@octokit/openapi-types/package.json","../../node_modules/@octokit/request-error/package.json","../../node_modules/@octokit/request/package.json","../../node_modules/@octokit/types/package.json","../../node_modules/@trpc/server/http/package.json","../../node_modules/@trpc/server/observable/package.json","../../node_modules/@trpc/server/package.json","../../node_modules/@trpc/server/unstable-core-do-not-import/package.json","../../node_modules/@ts-morph/common/package.json","../../node_modules/@types/js-yaml/package.json","../../node_modules/@types/libsodium-wrappers/package.json","../../node_modules/@types/lodash/package.json","../../node_modules/@types/node-fetch/package.json","../../node_modules/@types/node/package.json","../../node_modules/@types/prompts/package.json","../../node_modules/assert/package.json","../../node_modules/before-after-hook/package.json","../../node_modules/buffer/package.json","../../node_modules/colorette/package.json","../../node_modules/dotenv/package.json","../../node_modules/events/package.json","../../node_modules/form-data/package.json","../../node_modules/handlebars/package.json","../../node_modules/joi/package.json","../../node_modules/js-yaml/package.json","../../node_modules/kleur/package.json","../../node_modules/libsodium-wrappers/package.json","../../node_modules/lodash/package.json","../../node_modules/minipass/dist/commonjs/package.json","../../node_modules/minipass/package.json","../../node_modules/node-fetch/package.json","../../node_modules/pino-pretty/node_modules/pino-abstract-transport/package.json","../../node_modules/pino-pretty/package.json","../../node_modules/pino-std-serializers/package.json","../../node_modules/pino/package.json","../../node_modules/process/package.json","../../node_modules/prompts/package.json","../../node_modules/punycode/package.json","../../node_modules/querystring/package.json","../../node_modules/sonic-boom/package.json","../../node_modules/string_decoder/package.json","../../node_modules/superjson/package.json","../../node_modules/ts-morph/package.json","../../node_modules/typescript/package.json","../../node_modules/undici-types/package.json","../../node_modules/util/package.json","../../node_modules/zod-openapi/package.json","../../node_modules/zod/package.json","../../node_modules/zod/v4/classic/package.json","../../node_modules/zod/v4/core/package.json","../../node_modules/zod/v4/locales/package.json","../../node_modules/zod/v4/package.json","../commons/node_modules/ajv/package.json","../commons/package.json","../events/package.json","./node_modules/@octokit/core/package.json","./node_modules/@trpc/client/package.json","./node_modules/@types/node/package.json","./node_modules/@types/ssh2/package.json","./node_modules/glob/dist/commonjs/package.json","./node_modules/glob/package.json","./node_modules/kleur/package.json","./node_modules/lru-cache/dist/commonjs/package.json","./node_modules/lru-cache/package.json","./node_modules/minimatch/dist/commonjs/package.json","./node_modules/minimatch/package.json","./node_modules/path-scurry/dist/commonjs/package.json","./node_modules/path-scurry/package.json","./package.json"],"missingPackageJsons":["../../node_modules/@hapi/boom/lib/package.json","../../node_modules/@hapi/catbox/lib/package.json","../../node_modules/@hapi/catbox/node_modules/@hapi/podium/lib/package.json","../../node_modules/@hapi/hapi/lib/package.json","../../node_modules/@hapi/hapi/lib/types/package.json","../../node_modules/@hapi/hapi/lib/types/server/package.json","../../node_modules/@hapi/hapi/node_modules/@hapi/boom/package.json","../../node_modules/@hapi/hapi/node_modules/@hapi/catbox/package.json","../../node_modules/@hapi/hapi/node_modules/@hapi/mimos/package.json","../../node_modules/@hapi/hapi/node_modules/@hapi/podium/lib/package.json","../../node_modules/@hapi/hapi/node_modules/@hapi/shot/package.json","../../node_modules/@hapi/hapi/node_modules/@hapi/statehood/package.json","../../node_modules/@hapi/hapi/node_modules/http/package.json","../../node_modules/@hapi/hapi/node_modules/https/package.json","../../node_modules/@hapi/hapi/node_modules/joi/package.json","../../node_modules/@hapi/hapi/node_modules/stream/package.json","../../node_modules/@hapi/hapi/node_modules/url/package.json","../../node_modules/@hapi/hapi/node_modules/zlib/package.json","../../node_modules/@hapi/mimos/lib/package.json","../../node_modules/@hapi/shot/lib/package.json","../../node_modules/@hapi/statehood/lib/package.json","../../node_modules/@hapi/statehood/node_modules/@hapi/boom/package.json","../../node_modules/@hapi/statehood/node_modules/@hapi/iron/lib/package.json","../../node_modules/@inquirer/checkbox/dist/package.json","../../node_modules/@inquirer/core/dist/lib/package.json","../../node_modules/@inquirer/core/dist/lib/pagination/package.json","../../node_modules/@inquirer/core/dist/package.json","../../node_modules/@inquirer/core/node_modules/@inquirer/type/package.json","../../node_modules/@inquirer/editor/dist/package.json","../../node_modules/@inquirer/expand/dist/package.json","../../node_modules/@inquirer/external-editor/dist/package.json","../../node_modules/@inquirer/input/dist/package.json","../../node_modules/@inquirer/number/dist/package.json","../../node_modules/@inquirer/password/dist/package.json","../../node_modules/@inquirer/prompts/dist/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/checkbox/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/confirm/dist/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/core/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/editor/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/expand/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/input/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/number/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/password/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/rawlist/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/search/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/select/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/type/package.json","../../node_modules/@inquirer/prompts/node_modules/@types/node/package.json","../../node_modules/@inquirer/rawlist/dist/package.json","../../node_modules/@inquirer/search/dist/package.json","../../node_modules/@inquirer/select/dist/package.json","../../node_modules/@inquirer/type/dist/package.json","../../node_modules/@octokit/graphql/dist-types/package.json","../../node_modules/@octokit/request-error/dist-types/package.json","../../node_modules/@octokit/request/dist-types/package.json","../../node_modules/@octokit/types/dist-types/generated/package.json","../../node_modules/@octokit/types/dist-types/package.json","../../node_modules/@opencrvs/events/build/types/router/package.json","../../node_modules/@trpc/server/dist/observable/package.json","../../node_modules/@trpc/server/dist/package.json","../../node_modules/@ts-morph/common/lib/package.json","../../node_modules/@types/assert/package.json","../../node_modules/@types/async_hooks/package.json","../../node_modules/@types/child_process/package.json","../../node_modules/@types/cluster/package.json","../../node_modules/@types/constants/package.json","../../node_modules/@types/crypto/package.json","../../node_modules/@types/dgram/package.json","../../node_modules/@types/diagnostics_channel/package.json","../../node_modules/@types/dns/package.json","../../node_modules/@types/dns/promises/package.json","../../node_modules/@types/domain/package.json","../../node_modules/@types/events/package.json","../../node_modules/@types/fs/package.json","../../node_modules/@types/fs/promises/package.json","../../node_modules/@types/http/package.json","../../node_modules/@types/http2/package.json","../../node_modules/@types/https/package.json","../../node_modules/@types/inspector/package.json","../../node_modules/@types/lodash/common/package.json","../../node_modules/@types/module/package.json","../../node_modules/@types/net/package.json","../../node_modules/@types/opencrvs__events/build/types/router/package.json","../../node_modules/@types/opencrvs__events/package.json","../../node_modules/@types/os/package.json","../../node_modules/@types/path/package.json","../../node_modules/@types/path/posix/package.json","../../node_modules/@types/path/win32/package.json","../../node_modules/@types/perf_hooks/package.json","../../node_modules/@types/process/package.json","../../node_modules/@types/punycode/package.json","../../node_modules/@types/readline/package.json","../../node_modules/@types/readline/promises/package.json","../../node_modules/@types/repl/package.json","../../node_modules/@types/stream/consumers/package.json","../../node_modules/@types/stream/package.json","../../node_modules/@types/stream/promises/package.json","../../node_modules/@types/stream/web/package.json","../../node_modules/@types/string_decoder/package.json","../../node_modules/@types/timers/package.json","../../node_modules/@types/timers/promises/package.json","../../node_modules/@types/tls/package.json","../../node_modules/@types/trace_events/package.json","../../node_modules/@types/tty/package.json","../../node_modules/@types/url/package.json","../../node_modules/@types/util/package.json","../../node_modules/@types/util/types/package.json","../../node_modules/@types/v8/package.json","../../node_modules/@types/vm/package.json","../../node_modules/@types/wasi/package.json","../../node_modules/@types/worker_threads/package.json","../../node_modules/@types/zlib/package.json","../../node_modules/async_hooks/package.json","../../node_modules/child_process/package.json","../../node_modules/cluster/package.json","../../node_modules/constants/package.json","../../node_modules/crypto/package.json","../../node_modules/dgram/package.json","../../node_modules/diagnostics_channel/package.json","../../node_modules/dns/package.json","../../node_modules/dns/promises/package.json","../../node_modules/domain/package.json","../../node_modules/dotenv/lib/package.json","../../node_modules/form-data/node_modules/http/package.json","../../node_modules/form-data/node_modules/stream/package.json","../../node_modules/fs/package.json","../../node_modules/fs/promises/package.json","../../node_modules/handlebars/types/package.json","../../node_modules/http/package.json","../../node_modules/http2/package.json","../../node_modules/https/package.json","../../node_modules/inspector/package.json","../../node_modules/joi/lib/package.json","../../node_modules/module/package.json","../../node_modules/net/package.json","../../node_modules/os/package.json","../../node_modules/path/package.json","../../node_modules/path/posix/package.json","../../node_modules/path/win32/package.json","../../node_modules/perf_hooks/package.json","../../node_modules/pino-pretty/node_modules/colorette/package.json","../../node_modules/pino-pretty/node_modules/pino/package.json","../../node_modules/pino-pretty/node_modules/stream/package.json","../../node_modules/readline/package.json","../../node_modules/readline/promises/package.json","../../node_modules/repl/package.json","../../node_modules/sonic-boom/types/package.json","../../node_modules/stream/consumers/package.json","../../node_modules/stream/package.json","../../node_modules/stream/promises/package.json","../../node_modules/stream/web/package.json","../../node_modules/superjson/dist/package.json","../../node_modules/timers/package.json","../../node_modules/timers/promises/package.json","../../node_modules/tls/package.json","../../node_modules/trace_events/package.json","../../node_modules/ts-morph/lib/package.json","../../node_modules/tty/package.json","../../node_modules/url/package.json","../../node_modules/util/types/package.json","../../node_modules/v8/package.json","../../node_modules/vm/package.json","../../node_modules/wasi/package.json","../../node_modules/worker_threads/package.json","../../node_modules/zlib/package.json","../../node_modules/zod-openapi/dist/package.json","../commons/node_modules/@hapi/hapi/package.json","../commons/node_modules/@types/hapi__hapi/package.json","../commons/node_modules/@types/lodash/package.json","../commons/node_modules/@types/node-fetch/package.json","../commons/node_modules/@types/pino/package.json","../commons/node_modules/@types/zod-openapi/package.json","../commons/node_modules/@types/zod/package.json","../commons/node_modules/@types/zod/v4/package.json","../commons/node_modules/ajv/dist/package.json","../commons/node_modules/ajv/dist/types/json-schema/package.json","../commons/node_modules/ajv/dist/types/package.json","../commons/node_modules/lodash/package.json","../commons/node_modules/node-fetch/package.json","../commons/node_modules/pino/package.json","../commons/node_modules/zod-openapi/package.json","../commons/node_modules/zod/package.json","../commons/node_modules/zod/v4/package.json","./node_modules/@inquirer/prompts/package.json","./node_modules/@octokit/core/dist-types/package.json","./node_modules/@octokit/graphql/package.json","./node_modules/@octokit/request-error/package.json","./node_modules/@octokit/request/package.json","./node_modules/@octokit/types/package.json","./node_modules/@opencrvs/events/build/types/router/package.json","./node_modules/@opencrvs/events/package.json","./node_modules/@trpc/client/dist/package.json","./node_modules/@trpc/client/node_modules/@trpc/server/http/package.json","./node_modules/@trpc/client/node_modules/@trpc/server/observable/package.json","./node_modules/@trpc/client/node_modules/@trpc/server/package.json","./node_modules/@trpc/client/node_modules/@trpc/server/unstable-core-do-not-import/package.json","./node_modules/@trpc/server/http/package.json","./node_modules/@trpc/server/observable/package.json","./node_modules/@trpc/server/package.json","./node_modules/@trpc/server/unstable-core-do-not-import/package.json","./node_modules/@types/assert/package.json","./node_modules/@types/async_hooks/package.json","./node_modules/@types/before-after-hook/package.json","./node_modules/@types/buffer/package.json","./node_modules/@types/child_process/package.json","./node_modules/@types/cluster/package.json","./node_modules/@types/constants/package.json","./node_modules/@types/crypto/package.json","./node_modules/@types/dgram/package.json","./node_modules/@types/diagnostics_channel/package.json","./node_modules/@types/dns/package.json","./node_modules/@types/dns/promises/package.json","./node_modules/@types/domain/package.json","./node_modules/@types/dotenv/package.json","./node_modules/@types/events/package.json","./node_modules/@types/fs/package.json","./node_modules/@types/fs/promises/package.json","./node_modules/@types/handlebars/package.json","./node_modules/@types/http/package.json","./node_modules/@types/http2/package.json","./node_modules/@types/https/package.json","./node_modules/@types/inquirer__prompts/package.json","./node_modules/@types/inspector/package.json","./node_modules/@types/js-yaml/package.json","./node_modules/@types/libsodium-wrappers/package.json","./node_modules/@types/minipass/package.json","./node_modules/@types/module/package.json","./node_modules/@types/net/package.json","./node_modules/@types/node/assert/package.json","./node_modules/@types/node/dns/package.json","./node_modules/@types/node/fs/package.json","./node_modules/@types/node/readline/package.json","./node_modules/@types/node/stream/package.json","./node_modules/@types/node/timers/package.json","./node_modules/@types/octokit__graphql/package.json","./node_modules/@types/octokit__request-error/package.json","./node_modules/@types/octokit__request/package.json","./node_modules/@types/octokit__types/package.json","./node_modules/@types/opencrvs__events/build/types/router/package.json","./node_modules/@types/opencrvs__events/package.json","./node_modules/@types/os/package.json","./node_modules/@types/path/package.json","./node_modules/@types/path/posix/package.json","./node_modules/@types/path/win32/package.json","./node_modules/@types/perf_hooks/package.json","./node_modules/@types/process/package.json","./node_modules/@types/prompts/package.json","./node_modules/@types/punycode/package.json","./node_modules/@types/querystring/package.json","./node_modules/@types/readline/package.json","./node_modules/@types/readline/promises/package.json","./node_modules/@types/repl/package.json","./node_modules/@types/stream/consumers/package.json","./node_modules/@types/stream/package.json","./node_modules/@types/stream/promises/package.json","./node_modules/@types/stream/web/package.json","./node_modules/@types/string_decoder/package.json","./node_modules/@types/superjson/package.json","./node_modules/@types/timers/package.json","./node_modules/@types/timers/promises/package.json","./node_modules/@types/tls/package.json","./node_modules/@types/trace_events/package.json","./node_modules/@types/trpc__server/http/package.json","./node_modules/@types/trpc__server/observable/package.json","./node_modules/@types/trpc__server/package.json","./node_modules/@types/trpc__server/unstable-core-do-not-import/package.json","./node_modules/@types/ts-morph/package.json","./node_modules/@types/tty/package.json","./node_modules/@types/undici-types/package.json","./node_modules/@types/url/package.json","./node_modules/@types/util/package.json","./node_modules/@types/util/types/package.json","./node_modules/@types/v8/package.json","./node_modules/@types/vm/package.json","./node_modules/@types/wasi/package.json","./node_modules/@types/worker_threads/package.json","./node_modules/@types/zlib/package.json","./node_modules/@types/zod/package.json","./node_modules/@types/zod/v4/package.json","./node_modules/assert/package.json","./node_modules/async_hooks/package.json","./node_modules/before-after-hook/package.json","./node_modules/buffer/package.json","./node_modules/child_process/package.json","./node_modules/cluster/package.json","./node_modules/constants/package.json","./node_modules/crypto/package.json","./node_modules/dgram/package.json","./node_modules/diagnostics_channel/package.json","./node_modules/dns/package.json","./node_modules/dns/promises/package.json","./node_modules/domain/package.json","./node_modules/dotenv/package.json","./node_modules/events/package.json","./node_modules/fs/package.json","./node_modules/fs/promises/package.json","./node_modules/handlebars/package.json","./node_modules/http/package.json","./node_modules/http2/package.json","./node_modules/https/package.json","./node_modules/inspector/package.json","./node_modules/js-yaml/package.json","./node_modules/libsodium-wrappers/package.json","./node_modules/minipass/package.json","./node_modules/module/package.json","./node_modules/net/package.json","./node_modules/os/package.json","./node_modules/path/package.json","./node_modules/path/posix/package.json","./node_modules/path/win32/package.json","./node_modules/perf_hooks/package.json","./node_modules/process/package.json","./node_modules/prompts/package.json","./node_modules/punycode/package.json","./node_modules/querystring/package.json","./node_modules/readline/package.json","./node_modules/readline/promises/package.json","./node_modules/repl/package.json","./node_modules/ssh2/package.json","./node_modules/stream/consumers/package.json","./node_modules/stream/package.json","./node_modules/stream/promises/package.json","./node_modules/stream/web/package.json","./node_modules/string_decoder/package.json","./node_modules/superjson/package.json","./node_modules/timers/package.json","./node_modules/timers/promises/package.json","./node_modules/tls/package.json","./node_modules/trace_events/package.json","./node_modules/ts-morph/package.json","./node_modules/tty/package.json","./node_modules/typescript/package.json","./node_modules/undici-types/package.json","./node_modules/url/package.json","./node_modules/util/package.json","./node_modules/util/types/package.json","./node_modules/v8/package.json","./node_modules/vm/package.json","./node_modules/wasi/package.json","./node_modules/worker_threads/package.json","./node_modules/zlib/package.json","./node_modules/zod/package.json","./node_modules/zod/v4/package.json"]}
|