@opencrvs/toolkit 2.1.0-rc.00fa07b → 2.1.0-rc.023dec8

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 (73) hide show
  1. package/README.md +0 -1
  2. package/dist/application-config/index.js +0 -1
  3. package/dist/cli.js +58 -174
  4. package/dist/commons/api/router.d.ts +1514 -1618
  5. package/dist/commons/application-config/index.d.ts +6 -6
  6. package/dist/commons/conditionals/conditionals.d.ts +2102 -259
  7. package/dist/commons/events/ActionConfig.d.ts +105 -105
  8. package/dist/commons/events/ActionDocument.d.ts +113 -113
  9. package/dist/commons/events/ActionType.d.ts +62 -62
  10. package/dist/commons/events/AdvancedSearchConfig.d.ts +507 -513
  11. package/dist/commons/events/AuditLog.d.ts +42 -79
  12. package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
  13. package/dist/commons/events/Conditional.d.ts +3 -3
  14. package/dist/commons/events/CountryConfigQueryInput.d.ts +590 -590
  15. package/dist/commons/events/Draft.d.ts +37 -37
  16. package/dist/commons/events/DynamicFieldValue.d.ts +9 -9
  17. package/dist/commons/events/EventConfig.d.ts +5 -5
  18. package/dist/commons/events/EventDocument.d.ts +46 -46
  19. package/dist/commons/events/EventIndex.d.ts +62 -62
  20. package/dist/commons/events/EventMetadata.d.ts +40 -40
  21. package/dist/commons/events/FieldConfig.d.ts +337 -342
  22. package/dist/commons/events/FieldType.d.ts +51 -51
  23. package/dist/commons/events/FieldTypeMapping.d.ts +100 -100
  24. package/dist/commons/events/FieldValue.d.ts +12 -12
  25. package/dist/commons/events/Flag.d.ts +15 -15
  26. package/dist/commons/events/TemplateConfig.d.ts +1 -1
  27. package/dist/commons/events/WorkqueueColumnConfig.d.ts +40 -40
  28. package/dist/commons/events/WorkqueueConfig.d.ts +820 -820
  29. package/dist/commons/events/deduplication.d.ts +1 -1
  30. package/dist/commons/events/event.d.ts +2 -2
  31. package/dist/commons/events/field.d.ts +895 -78
  32. package/dist/commons/events/index.d.ts +0 -1
  33. package/dist/commons/events/locations.d.ts +6 -103
  34. package/dist/commons/events/mocks.test.utils.d.ts +4 -18
  35. package/dist/commons/events/scopes.d.ts +4 -4
  36. package/dist/commons/events/state/index.d.ts +17 -17
  37. package/dist/commons/events/state/utils.d.ts +7 -7
  38. package/dist/commons/events/test.utils.d.ts +40 -40
  39. package/dist/commons/events/utils.d.ts +114 -114
  40. package/dist/commons/notification/UserNotifications.d.ts +10 -10
  41. package/dist/conditionals/index.js +0 -1
  42. package/dist/environment/derived-variables.d.ts +119 -119
  43. package/dist/environment/derived-variables.d.ts.map +1 -1
  44. package/dist/environment/index.d.ts +0 -1
  45. package/dist/environment/index.d.ts.map +1 -1
  46. package/dist/environment/index.js +0 -10
  47. package/dist/environment/logger.d.ts.map +1 -1
  48. package/dist/environment/questions.d.ts +74 -75
  49. package/dist/environment/questions.d.ts.map +1 -1
  50. package/dist/environment/setup-environment.js +15 -10
  51. package/dist/environment/templates.d.ts.map +1 -1
  52. package/dist/environment/templates.js +1 -2
  53. package/dist/environment/update-workflows.d.ts.map +1 -1
  54. package/dist/environment/update-workflows.js +5 -17
  55. package/dist/environment/users.js +13 -11
  56. package/dist/environment/utils.d.ts +1 -1
  57. package/dist/events/deduplication.d.ts +1 -1
  58. package/dist/events/index.js +52 -147
  59. package/dist/migrations/v2.0/migrate-application-config-url.js +3 -4
  60. package/dist/notification/index.js +77 -144
  61. package/dist/scopes/index.d.ts +146 -148
  62. package/dist/scopes/index.js +0 -1
  63. package/opencrvs-toolkit-2.1.0-rc.023dec8.tgz +0 -0
  64. package/package.json +5 -5
  65. package/tsconfig.tsbuildinfo +1 -1
  66. package/dist/commons/events/locationPayloads.d.ts +0 -95
  67. package/dist/environment/paths.d.ts +0 -7
  68. package/dist/environment/paths.d.ts.map +0 -1
  69. package/dist/environment/paths.js +0 -72
  70. package/dist/environment/upgrade.d.ts +0 -2
  71. package/dist/environment/upgrade.d.ts.map +0 -1
  72. package/dist/environment/upgrade.js +0 -82
  73. package/opencrvs-toolkit-2.1.0-rc.00fa07b.tgz +0 -0
@@ -127,7 +127,6 @@ var PlainScopeType = z3.enum([
127
127
  "integration.create",
128
128
  "record.import",
129
129
  "config.update-all",
130
- "location.edit",
131
130
  "attachment.upload",
132
131
  "profile.electronic-signature",
133
132
  "user.read-only-my-audit",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "2.1.0-rc.00fa07b",
3
+ "version": "2.1.0-rc.023dec8",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "bin": {
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "scripts": {
20
20
  "build": "./build.sh",
21
- "build:all": "lerna run build --include-dependencies --scope @opencrvs/toolkit"
21
+ "build:all": "lerna run build --include-dependencies --scope @opencrvs/toolkit && ./build.sh"
22
22
  },
23
23
  "repository": {
24
24
  "type": "git",
@@ -33,7 +33,7 @@
33
33
  "ajv-formats": "^3.0.1",
34
34
  "date-fns": "^2.28.0",
35
35
  "dotenv": "^16.4.5",
36
- "glob": "11.1.0",
36
+ "glob": "11.0.3",
37
37
  "handlebars": "^4.7.8",
38
38
  "js-yaml": "4.1.0",
39
39
  "jwt-decode": "^3.0.0",
@@ -51,7 +51,6 @@
51
51
  "zod-openapi": "^5.4.6"
52
52
  },
53
53
  "devDependencies": {
54
- "@opencrvs/commons": "^2.0.0",
55
54
  "@opencrvs/events": "^2.0.0",
56
55
  "@types/js-yaml": "4.0.9",
57
56
  "@types/libsodium-wrappers": "^0.7.10",
@@ -59,7 +58,8 @@
59
58
  "@types/prompts": "^2.4.9",
60
59
  "@types/ssh2": "^1.15.5",
61
60
  "@types/uuid": "^9.0.3",
62
- "esbuild": "^0.24.0"
61
+ "esbuild": "^0.24.0",
62
+ "typescript": "6.0.3"
63
63
  },
64
64
  "moduleNameMapper": {
65
65
  "@opencrvs/commons/events": "@opencrvs/commons/build/dist/common/events/index.js",
@@ -1 +1 @@
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/paths.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/upgrade.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/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/node_modules/@inquirer/editor/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/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/dist/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/expand/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/external-editor/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"]}
1
+ {"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"],"version":"6.0.3"}
@@ -1,95 +0,0 @@
1
- import * as z from 'zod/v4';
2
- /**
3
- * Input payload for creating a location: the identity fields (parent and
4
- * locationType are set once, immutable thereafter) plus the first version.
5
- * `id` and `versionId` may be supplied by the caller for idempotent retries.
6
- * `effectiveFrom` defaults to the beginning-of-time sentinel on the server.
7
- */
8
- export declare const CreateLocationPayload: z.ZodObject<{
9
- id: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
10
- versionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
11
- name: z.ZodString;
12
- externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
- administrativeAreaId: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
14
- locationType: z.ZodNullable<z.ZodString>;
15
- effectiveFrom: z.ZodOptional<z.ZodISODate>;
16
- status: z.ZodDefault<z.ZodEnum<{
17
- active: "active";
18
- inactive: "inactive";
19
- }>>;
20
- }, z.core.$strip>;
21
- export type CreateLocationPayload = z.infer<typeof CreateLocationPayload>;
22
- /**
23
- * Input payload for appending a new version to a location. A full snapshot of
24
- * every versioned field is required — omitted does not mean unchanged. The
25
- * schema is strict: identity fields (`administrativeAreaId`, `locationType`)
26
- * are rejected rather than ignored, as they cannot change. `lastVersionId`
27
- * is the optimistic-concurrency check: it must be the id of the last element
28
- * the caller observed. `effectiveFrom` defaults to today on the server;
29
- * supply it explicitly for idempotent retries.
30
- */
31
- export declare const UpdateLocationPayload: z.ZodObject<{
32
- id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
33
- versionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
34
- name: z.ZodString;
35
- externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
- status: z.ZodEnum<{
37
- active: "active";
38
- inactive: "inactive";
39
- }>;
40
- effectiveFrom: z.ZodOptional<z.ZodISODate>;
41
- lastVersionId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
42
- }, z.core.$strict>;
43
- export type UpdateLocationPayload = z.infer<typeof UpdateLocationPayload>;
44
- /**
45
- * Input payload for withdrawing a pending (future-dated) version element.
46
- * Only elements whose `effectiveFrom` has not yet passed can be withdrawn.
47
- */
48
- export declare const WithdrawLocationVersionPayload: z.ZodObject<{
49
- id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
50
- versionId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
51
- }, z.core.$strip>;
52
- export type WithdrawLocationVersionPayload = z.infer<typeof WithdrawLocationVersionPayload>;
53
- /**
54
- * Administrative-area twin of {@link CreateLocationPayload}: `parentId`
55
- * instead of `administrativeAreaId`, no `locationType`.
56
- */
57
- export declare const CreateAdministrativeAreaPayload: z.ZodObject<{
58
- id: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
59
- versionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
60
- name: z.ZodString;
61
- externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
- parentId: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
63
- effectiveFrom: z.ZodOptional<z.ZodISODate>;
64
- status: z.ZodDefault<z.ZodEnum<{
65
- active: "active";
66
- inactive: "inactive";
67
- }>>;
68
- }, z.core.$strip>;
69
- export type CreateAdministrativeAreaPayload = z.infer<typeof CreateAdministrativeAreaPayload>;
70
- /**
71
- * Administrative-area twin of {@link UpdateLocationPayload} — strict for the
72
- * same reason: the identity field (`parentId`) is rejected, not ignored.
73
- */
74
- export declare const UpdateAdministrativeAreaPayload: z.ZodObject<{
75
- id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
76
- versionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
77
- name: z.ZodString;
78
- externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
- status: z.ZodEnum<{
80
- active: "active";
81
- inactive: "inactive";
82
- }>;
83
- effectiveFrom: z.ZodOptional<z.ZodISODate>;
84
- lastVersionId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
85
- }, z.core.$strict>;
86
- export type UpdateAdministrativeAreaPayload = z.infer<typeof UpdateAdministrativeAreaPayload>;
87
- /**
88
- * Administrative-area twin of {@link WithdrawLocationVersionPayload}.
89
- */
90
- export declare const WithdrawAdministrativeAreaVersionPayload: z.ZodObject<{
91
- id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
92
- versionId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
93
- }, z.core.$strip>;
94
- export type WithdrawAdministrativeAreaVersionPayload = z.infer<typeof WithdrawAdministrativeAreaVersionPayload>;
95
- //# sourceMappingURL=locationPayloads.d.ts.map
@@ -1,7 +0,0 @@
1
- export declare const OLD_INVENTORY_DIR: string;
2
- export declare const INVENTORY_FILE_NAME = "inventory.yml";
3
- export declare function getEnvironmentInventoryPath(environment: string): string;
4
- export declare function findOldInventoryFiles(): string[];
5
- export declare function getEnvironmentNameFromOldInventoryPath(filePath: string): string;
6
- export declare function assertNoOldInventoryLayout(): void;
7
- //# sourceMappingURL=paths.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../src/environment/paths.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,iBAAiB,QAI7B,CAAA;AAED,eAAO,MAAM,mBAAmB,kBAAkB,CAAA;AAElD,wBAAgB,2BAA2B,CAAC,WAAW,EAAE,MAAM,UAE9D;AAED,wBAAgB,qBAAqB,aAEpC;AAED,wBAAgB,sCAAsC,CAAC,QAAQ,EAAE,MAAM,UAEtE;AAED,wBAAgB,0BAA0B,SAWzC"}
@@ -1,72 +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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- var desc = Object.getOwnPropertyDescriptor(m, k);
15
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
16
- desc = { enumerable: true, get: function() { return m[k]; } };
17
- }
18
- Object.defineProperty(o, k2, desc);
19
- }) : (function(o, m, k, k2) {
20
- if (k2 === undefined) k2 = k;
21
- o[k2] = m[k];
22
- }));
23
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
24
- Object.defineProperty(o, "default", { enumerable: true, value: v });
25
- }) : function(o, v) {
26
- o["default"] = v;
27
- });
28
- var __importStar = (this && this.__importStar) || (function () {
29
- var ownKeys = function(o) {
30
- ownKeys = Object.getOwnPropertyNames || function (o) {
31
- var ar = [];
32
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
33
- return ar;
34
- };
35
- return ownKeys(o);
36
- };
37
- return function (mod) {
38
- if (mod && mod.__esModule) return mod;
39
- var result = {};
40
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
41
- __setModuleDefault(result, mod);
42
- return result;
43
- };
44
- })();
45
- Object.defineProperty(exports, "__esModule", { value: true });
46
- exports.INVENTORY_FILE_NAME = exports.OLD_INVENTORY_DIR = void 0;
47
- exports.getEnvironmentInventoryPath = getEnvironmentInventoryPath;
48
- exports.findOldInventoryFiles = findOldInventoryFiles;
49
- exports.getEnvironmentNameFromOldInventoryPath = getEnvironmentNameFromOldInventoryPath;
50
- exports.assertNoOldInventoryLayout = assertNoOldInventoryLayout;
51
- const path_1 = require("path");
52
- const glob = __importStar(require("glob"));
53
- exports.OLD_INVENTORY_DIR = (0, path_1.join)('infrastructure', 'server-setup', 'inventory');
54
- exports.INVENTORY_FILE_NAME = 'inventory.yml';
55
- function getEnvironmentInventoryPath(environment) {
56
- return (0, path_1.join)('environments', environment, exports.INVENTORY_FILE_NAME);
57
- }
58
- function findOldInventoryFiles() {
59
- return glob.sync((0, path_1.join)(exports.OLD_INVENTORY_DIR, '*.yml')).sort();
60
- }
61
- function getEnvironmentNameFromOldInventoryPath(filePath) {
62
- return (0, path_1.basename)(filePath, '.yml');
63
- }
64
- function assertNoOldInventoryLayout() {
65
- if (findOldInventoryFiles().length === 0) {
66
- return;
67
- }
68
- throw new Error([
69
- `Old inventory layout detected at ${exports.OLD_INVENTORY_DIR}.`,
70
- 'Please run `yarn environment:upgrade` before running `yarn environment:init`.'
71
- ].join(' '));
72
- }
@@ -1,2 +0,0 @@
1
- export declare function upgradeEnvironmentLayout(): Promise<void>;
2
- //# sourceMappingURL=upgrade.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"upgrade.d.ts","sourceRoot":"","sources":["../../src/environment/upgrade.ts"],"names":[],"mappings":"AAkFA,wBAAsB,wBAAwB,kBAY7C"}
@@ -1,82 +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.upgradeEnvironmentLayout = upgradeEnvironmentLayout;
26
- const fs_1 = require("fs");
27
- const path_1 = require("path");
28
- const kleur_1 = __importDefault(require("kleur"));
29
- const logger_1 = require("./logger");
30
- const paths_1 = require("./paths");
31
- const update_workflows_1 = require("./update-workflows");
32
- function moveFileIfDestinationMissing(sourcePath, destinationPath) {
33
- if (!(0, fs_1.existsSync)(sourcePath)) {
34
- return false;
35
- }
36
- if ((0, fs_1.existsSync)(destinationPath)) {
37
- (0, logger_1.warn)(`⚠️ Skipped ${sourcePath}; destination already exists at ${destinationPath}`);
38
- return false;
39
- }
40
- (0, fs_1.mkdirSync)((0, path_1.dirname)(destinationPath), { recursive: true });
41
- (0, fs_1.renameSync)(sourcePath, destinationPath);
42
- (0, logger_1.log)(` ✓ Moved ${sourcePath} -> ${destinationPath}`);
43
- return true;
44
- }
45
- function migrateInventoryFiles() {
46
- const oldInventoryFiles = (0, paths_1.findOldInventoryFiles)();
47
- if (oldInventoryFiles.length === 0) {
48
- (0, logger_1.log)(`ℹ️ No old inventory files found at ${paths_1.OLD_INVENTORY_DIR}`);
49
- return false;
50
- }
51
- (0, logger_1.log)(kleur_1.default.bold('\nMigrating Ansible inventory files'));
52
- let didMoveInventory = false;
53
- for (const oldInventoryFile of oldInventoryFiles) {
54
- const environment = (0, paths_1.getEnvironmentNameFromOldInventoryPath)(oldInventoryFile);
55
- didMoveInventory =
56
- moveFileIfDestinationMissing(oldInventoryFile, (0, paths_1.getEnvironmentInventoryPath)(environment)) || didMoveInventory;
57
- }
58
- try {
59
- if ((0, fs_1.existsSync)(paths_1.OLD_INVENTORY_DIR) &&
60
- (0, fs_1.readdirSync)(paths_1.OLD_INVENTORY_DIR).length === 0) {
61
- (0, fs_1.rmdirSync)(paths_1.OLD_INVENTORY_DIR);
62
- (0, logger_1.log)(` ✓ Removed empty ${paths_1.OLD_INVENTORY_DIR}`);
63
- }
64
- }
65
- catch (_a) {
66
- (0, logger_1.warn)(`⚠️ Could not remove ${paths_1.OLD_INVENTORY_DIR}; please review it manually`);
67
- }
68
- return didMoveInventory;
69
- }
70
- function upgradeEnvironmentLayout() {
71
- return __awaiter(this, void 0, void 0, function* () {
72
- const didMoveInventory = migrateInventoryFiles();
73
- yield (0, update_workflows_1.updateWorkflowEnvironments)();
74
- if (didMoveInventory) {
75
- (0, logger_1.success)('\n✅ Environment layout upgrade completed successfully.');
76
- }
77
- else {
78
- (0, logger_1.success)('\n✅ Environment layout already uses the current structure.');
79
- }
80
- (0, logger_1.log)('\nCommit changes into git after upgrade');
81
- });
82
- }