@opencrvs/toolkit 2.0.0-rc.bd55713 → 2.0.0-rc.bd854e0

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 (70) hide show
  1. package/README.md +1 -0
  2. package/build.sh +3 -3
  3. package/dist/application-config/index.js +17 -6
  4. package/dist/cli.js +362 -305
  5. package/dist/commons/api/router.d.ts +10 -0
  6. package/dist/commons/conditionals/conditionals.d.ts +3 -3
  7. package/dist/commons/events/AdvancedSearchConfig.d.ts +12 -0
  8. package/dist/commons/events/CountryConfigQueryInput.d.ts +42 -0
  9. package/dist/commons/events/EventConfig.d.ts +2 -0
  10. package/dist/commons/events/EventIndex.d.ts +25 -0
  11. package/dist/commons/events/EventMetadata.d.ts +26 -0
  12. package/dist/commons/events/FieldConfig.d.ts +10 -0
  13. package/dist/commons/events/WorkqueueConfig.d.ts +39 -0
  14. package/dist/commons/events/locations.d.ts +1 -0
  15. package/dist/commons/events/state/index.d.ts +8 -0
  16. package/dist/commons/events/state/utils.d.ts +9 -0
  17. package/dist/conditionals/index.js +10 -5
  18. package/dist/environment/custom-types.d.ts.map +1 -1
  19. package/dist/environment/custom-types.js +10 -0
  20. package/dist/environment/derived-variables.d.ts.map +1 -1
  21. package/dist/environment/derived-variables.js +11 -1
  22. package/dist/environment/editor-questions.d.ts +0 -1
  23. package/dist/environment/editor-questions.d.ts.map +1 -1
  24. package/dist/environment/editor-questions.js +16 -5
  25. package/dist/environment/git.d.ts.map +1 -1
  26. package/dist/environment/git.js +15 -5
  27. package/dist/environment/github.d.ts.map +1 -1
  28. package/dist/environment/github.js +25 -12
  29. package/dist/environment/index.d.ts +0 -1
  30. package/dist/environment/index.d.ts.map +1 -1
  31. package/dist/environment/index.js +12 -2
  32. package/dist/environment/logger.d.ts.map +1 -1
  33. package/dist/environment/logger.js +10 -0
  34. package/dist/environment/manage-users.d.ts.map +1 -1
  35. package/dist/environment/manage-users.js +21 -8
  36. package/dist/environment/questions-helper.d.ts.map +1 -1
  37. package/dist/environment/questions-helper.js +15 -5
  38. package/dist/environment/questions.d.ts +0 -23
  39. package/dist/environment/questions.d.ts.map +1 -1
  40. package/dist/environment/questions.js +24 -67
  41. package/dist/environment/setup-environment.js +85 -54
  42. package/dist/environment/ssh-keygen.d.ts.map +1 -1
  43. package/dist/environment/ssh-keygen.js +15 -2
  44. package/dist/environment/swarm-to-k8s.js +26 -15
  45. package/dist/environment/templates.d.ts.map +1 -1
  46. package/dist/environment/templates.js +26 -12
  47. package/dist/environment/update-workflows.d.ts.map +1 -1
  48. package/dist/environment/update-workflows.js +48 -30
  49. package/dist/environment/users.d.ts +1 -1
  50. package/dist/environment/users.d.ts.map +1 -1
  51. package/dist/environment/users.js +29 -9
  52. package/dist/environment/utils.d.ts.map +1 -1
  53. package/dist/environment/utils.js +11 -1
  54. package/dist/events/index.js +40 -6
  55. package/dist/migrations/v2.0/index.js +10 -5
  56. package/dist/notification/index.js +17 -6
  57. package/dist/scopes/index.d.ts +89 -1
  58. package/dist/scopes/index.js +10 -5
  59. package/dist/{environment/templates → templates}/charts-values/dependencies/values.yaml +7 -6
  60. package/dist/{environment/templates/charts-values/dependencies → templates/charts-values/opencrvs-services}/values.override.yaml +1 -1
  61. package/dist/{environment/templates → templates}/charts-values/opencrvs-services/values.yaml +8 -6
  62. package/dist/{environment/templates → templates}/charts-values/traefik/values.override.yaml +1 -1
  63. package/dist/{environment/templates → templates}/charts-values/traefik/values.yaml +6 -7
  64. package/dist/{environment/templates → templates}/inventory/production.example.yml +2 -2
  65. package/opencrvs-toolkit-2.0.0-rc.bd854e0.tgz +0 -0
  66. package/package.json +1 -1
  67. package/opencrvs-toolkit-2.0.0-rc.bd55713.tgz +0 -0
  68. /package/dist/{environment/templates/charts-values/opencrvs-services → templates/charts-values/dependencies}/values.override.yaml +0 -0
  69. /package/dist/{environment/templates → templates}/inventory/inventory.template.yml +0 -0
  70. /package/dist/{environment/templates → templates}/inventory/qa.example.yml +0 -0
@@ -1,9 +1,10 @@
1
1
  ##################################################################################
2
- # DON'T MODIFY THIS FILE
3
- # File was generated by "yarn environment:init"
4
- # File will be overwritten on next run of this script
5
- # Please use values.override.yaml to modify helm chart behavior
6
- # make sure your custom changes doesn't conflict with values.yaml
2
+ # GENERATED FILE — DO NOT EDIT
3
+ #
4
+ # This file is managed by `opencrvs environment init` and may be overwritten.
5
+ # Put all custom Helm values in values.override.yaml, preserving the same YAML
6
+ # hierarchy used here. To remove a generated section, set its top-level key to
7
+ # null in values.override.yaml.
7
8
  ##################################################################################
8
9
 
9
10
  ########################################################################################
@@ -22,6 +23,7 @@ hpa:
22
23
  env:
23
24
  APN_SERVICE_URL: "http://apm-server.opencrvs-deps-{{env}}.svc.cluster.local:8200"
24
25
  MINIO_BUCKET: ocrvs
26
+ OPENCRVS_ENVIRONMENT: {{opencrvs_environment}}
25
27
 
26
28
  influxdb:
27
29
  host: influxdb-0.influxdb.opencrvs-deps-{{env}}.svc.cluster.local
@@ -76,4 +78,4 @@ dashboards:
76
78
  enabled: true
77
79
 
78
80
  on_restore_cronjob:
79
- enabled: {{restore_enabled}}
81
+ enabled: {{restore_enabled}}
@@ -1,4 +1,4 @@
1
1
  ##################################################################################
2
2
  # Use this file to customize helm chart behavior
3
3
  # Please make sure your custom changes doesn't conflict with values.yaml
4
- ##################################################################################
4
+ ##################################################################################
@@ -1,9 +1,10 @@
1
1
  ##################################################################################
2
- # DON'T MODIFY THIS FILE
3
- # File was generated by "yarn environment:init"
4
- # File will be overwritten on next run of this script
5
- # Please use values.override.yaml to modify helm chart behavior
6
- # make sure your custom changes doesn't conflict with values.yaml
2
+ # GENERATED FILE — DO NOT EDIT
3
+ #
4
+ # This file is managed by `opencrvs environment init` and may be overwritten.
5
+ # Put all custom Helm values in values.override.yaml, preserving the same YAML
6
+ # hierarchy used here. To remove a generated section, set its top-level key to
7
+ # null in values.override.yaml.
7
8
  ##################################################################################
8
9
 
9
10
  # Overwriting https://github.com/traefik/traefik-helm-chart/blob/master/traefik/values.yaml
@@ -64,14 +65,12 @@ ports:
64
65
 
65
66
 
66
67
  {{#if lets_encrypt}}
67
- # 👇 Adjust this section if needed
68
68
  certificatesResolvers:
69
69
  letsencrypt:
70
70
  acme:
71
71
  tlsChallenge: false
72
72
  httpChallenge:
73
73
  entryPoint: web
74
- # 👇 Provide admin email address
75
74
  email: admin@opencrvs.org
76
75
  # Storage for certificates:
77
76
  storage: /certificates/acme.json
@@ -40,7 +40,7 @@ all:
40
40
  children:
41
41
  master:
42
42
  hosts:
43
- # Replace master with value returned by command: hostname
43
+ # Replace master with value returned by command: hostname
44
44
  master:
45
45
  # Keep values (ansible_host, ansible_connection) as is
46
46
  # Ansible is executed on master node
@@ -64,7 +64,7 @@ all:
64
64
  role: data1
65
65
  # Replace worker0 with value returned by command: hostname
66
66
  worker1:
67
- # Put internal IP address here
67
+ # Put internal IP address here
68
68
  ansible_host: 10.10.10.11
69
69
 
70
70
  # backup section is optional, feel free to remove if backups are not enabled
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "2.0.0-rc.bd55713",
3
+ "version": "2.0.0-rc.bd854e0",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "bin": {