@opencrvs/toolkit 2.2.0-rc.1a111f2 → 2.2.0-rc.25c3c81

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 (118) hide show
  1. package/build.sh +15 -2
  2. package/dist/application-config/index.js +16 -5
  3. package/dist/authentication/index.d.ts +1 -1
  4. package/dist/authentication/index.js +4 -8
  5. package/dist/cli.js +1109 -25
  6. package/dist/commons/api/router.d.ts +13 -0
  7. package/dist/commons/application-config/index.d.ts +1 -1
  8. package/dist/commons/conditionals/conditionals.d.ts +4 -4
  9. package/dist/commons/conditionals/validate.d.ts +1 -1
  10. package/dist/commons/events/ActionStatus.d.ts +2 -2
  11. package/dist/commons/events/EventConfig.d.ts +66 -5
  12. package/dist/commons/events/EventDocument.d.ts +2 -0
  13. package/dist/commons/events/EventIndex.d.ts +1 -0
  14. package/dist/commons/events/EventInput.d.ts +1 -0
  15. package/dist/commons/events/EventMetadata.d.ts +1 -0
  16. package/dist/commons/events/FieldTypeMapping.d.ts +19 -19
  17. package/dist/commons/events/PlainDate.d.ts +5 -0
  18. package/dist/commons/events/defineConfig.d.ts +1 -1
  19. package/dist/commons/events/locations.d.ts +1 -1
  20. package/dist/commons/events/scopes.d.ts +1 -1
  21. package/dist/commons/events/state/index.d.ts +1 -0
  22. package/dist/commons/events/test.utils.d.ts +2 -1
  23. package/dist/commons/events/utils.d.ts +15 -2
  24. package/dist/commons/users/Role.d.ts +23 -0
  25. package/dist/commons/users/User.d.ts +263 -0
  26. package/dist/commons/users/authentication.d.ts +67 -0
  27. package/dist/commons/users/index.d.ts +5 -0
  28. package/dist/commons/users/roleValidations.d.ts +15 -0
  29. package/dist/commons/users/scopes.d.ts +1402 -0
  30. package/dist/commons/users/userReferences.d.ts +176 -0
  31. package/dist/conditionals/index.js +3 -3
  32. package/dist/configurator/index.d.ts +24 -0
  33. package/dist/configurator/index.d.ts.map +1 -0
  34. package/dist/configurator/index.js +161 -0
  35. package/dist/configurator/layout.d.ts +28 -0
  36. package/dist/configurator/layout.d.ts.map +1 -0
  37. package/dist/configurator/layout.js +78 -0
  38. package/dist/configurator/paths.d.ts +13 -0
  39. package/dist/configurator/paths.d.ts.map +1 -0
  40. package/dist/configurator/paths.js +48 -0
  41. package/dist/configurator/server/environments.d.ts +20 -0
  42. package/dist/configurator/server/environments.d.ts.map +1 -0
  43. package/dist/configurator/server/environments.js +143 -0
  44. package/dist/configurator/server/files.d.ts +11 -0
  45. package/dist/configurator/server/files.d.ts.map +1 -0
  46. package/dist/configurator/server/files.js +67 -0
  47. package/dist/configurator/server/github.d.ts +56 -0
  48. package/dist/configurator/server/github.d.ts.map +1 -0
  49. package/dist/configurator/server/github.js +239 -0
  50. package/dist/configurator/server/plugin.d.ts +39 -0
  51. package/dist/configurator/server/plugin.d.ts.map +1 -0
  52. package/dist/configurator/server/plugin.js +298 -0
  53. package/dist/configurator/server/seal.d.ts +2 -0
  54. package/dist/configurator/server/seal.d.ts.map +1 -0
  55. package/dist/configurator/server/seal.js +36 -0
  56. package/dist/configurator/server/sshKeys.d.ts +5 -0
  57. package/dist/configurator/server/sshKeys.d.ts.map +1 -0
  58. package/dist/configurator/server/sshKeys.js +28 -0
  59. package/dist/configurator/server/start.d.ts +12 -0
  60. package/dist/configurator/server/start.d.ts.map +1 -0
  61. package/dist/configurator/server/start.js +91 -0
  62. package/dist/configurator/testing.d.ts +11 -0
  63. package/dist/configurator/testing.d.ts.map +1 -0
  64. package/dist/configurator/testing.js +74 -0
  65. package/dist/configurator/ui/bindings/bindings.d.ts +35 -0
  66. package/dist/configurator/ui/bindings/bindings.d.ts.map +1 -0
  67. package/dist/configurator/ui/bindings/bindings.js +5 -0
  68. package/dist/configurator/ui/bindings/parsers.d.ts +7 -0
  69. package/dist/configurator/ui/bindings/parsers.d.ts.map +1 -0
  70. package/dist/configurator/ui/bindings/parsers.js +85 -0
  71. package/dist/configurator/ui/form/users.d.ts +11 -0
  72. package/dist/configurator/ui/form/users.d.ts.map +1 -0
  73. package/dist/configurator/ui/form/users.js +33 -0
  74. package/dist/configurator/ui/plan/dependencyHosts.d.ts +2 -0
  75. package/dist/configurator/ui/plan/dependencyHosts.d.ts.map +1 -0
  76. package/dist/configurator/ui/plan/dependencyHosts.js +36 -0
  77. package/dist/configurator/ui/plan/templateValues.d.ts +11 -0
  78. package/dist/configurator/ui/plan/templateValues.d.ts.map +1 -0
  79. package/dist/configurator/ui/plan/templateValues.js +70 -0
  80. package/dist/configurator/workflows.d.ts +53 -0
  81. package/dist/configurator/workflows.d.ts.map +1 -0
  82. package/dist/configurator/workflows.js +161 -0
  83. package/dist/configurator-assets/forms/bindings.yml +263 -0
  84. package/dist/configurator-assets/templates/README.md +18 -0
  85. package/dist/configurator-assets/templates/charts-values/dependencies/values.override.yaml +4 -0
  86. package/dist/configurator-assets/templates/charts-values/dependencies/values.yaml +99 -0
  87. package/dist/configurator-assets/templates/charts-values/opencrvs-services/values.override.yaml +4 -0
  88. package/dist/configurator-assets/templates/charts-values/opencrvs-services/values.yaml +83 -0
  89. package/dist/configurator-assets/templates/charts-values/opentelemetry/values.yaml +102 -0
  90. package/dist/configurator-assets/templates/charts-values/traefik/values.override.yaml +4 -0
  91. package/dist/configurator-assets/templates/charts-values/traefik/values.yaml +130 -0
  92. package/dist/configurator-assets/templates/inventory/inventory.template.yml +98 -0
  93. package/dist/configurator-assets/ui/apple-touch-icon.png +0 -0
  94. package/dist/configurator-assets/ui/assets/index-Bf3eC7uO.js +169 -0
  95. package/dist/configurator-assets/ui/assets/index-CaqYFJUk.css +6 -0
  96. package/dist/configurator-assets/ui/assets/opencrvs-logo-sIjz08HT.svg +1 -0
  97. package/dist/configurator-assets/ui/assets/poppins-400-BwTUGeWf.woff2 +0 -0
  98. package/dist/configurator-assets/ui/assets/poppins-500-CWICHMj6.woff2 +0 -0
  99. package/dist/configurator-assets/ui/assets/poppins-600-DJVo7c07.woff2 +0 -0
  100. package/dist/configurator-assets/ui/assets/poppins-700-g9MkRaG0.woff2 +0 -0
  101. package/dist/configurator-assets/ui/favicon-32x32.png +0 -0
  102. package/dist/configurator-assets/ui/index.html +25 -0
  103. package/dist/environment/setup-environment.d.ts.map +1 -1
  104. package/dist/environment/setup-environment.js +6 -0
  105. package/dist/events/index.js +188 -65
  106. package/dist/notification/index.js +124 -48
  107. package/dist/roles/index.d.ts +2 -0
  108. package/dist/roles/index.d.ts.map +1 -0
  109. package/dist/roles/index.js +730 -0
  110. package/dist/scopes/index.d.ts +0 -10
  111. package/dist/scopes/index.js +3 -7
  112. package/dist/templates/charts-values/dependencies/values.yaml +2 -0
  113. package/opencrvs-toolkit-2.2.0-rc.25c3c81.tgz +0 -0
  114. package/package.json +15 -3
  115. package/tsconfig.build.json +11 -1
  116. package/tsconfig.build.tsbuildinfo +1 -1
  117. package/tsconfig.json +15 -6
  118. package/opencrvs-toolkit-2.2.0-rc.1a111f2.tgz +0 -0
@@ -0,0 +1,130 @@
1
+ ##################################################################################
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.
8
+ ##################################################################################
9
+
10
+ # Overwriting https://github.com/traefik/traefik-helm-chart/blob/master/traefik/values.yaml
11
+ namespaceOverride: "traefik"
12
+ log:
13
+ # "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL", "PANIC"
14
+ level: "INFO"
15
+ # format: "common" # For local environment
16
+ format: "json" # For server environment
17
+ accessLog:
18
+ # -- To enable access logs
19
+ enabled: true
20
+ format: "json"
21
+
22
+ {{#if monitoring_enabled}}
23
+ tracing:
24
+ serviceName: traefik
25
+ resourceAttributes:
26
+ deployment.environment.name: "{{env}}"
27
+ service.namespace: traefik
28
+ otlp:
29
+ enabled: true
30
+ grpc:
31
+ enabled: true
32
+ endpoint: "{{otel_collector_endpoint}}"
33
+ insecure: true
34
+ {{/if}}
35
+
36
+
37
+ ingressRoute:
38
+ dashboard:
39
+ enabled: false
40
+
41
+ # Be explicit that we only use CRDs, not ingress/gw support
42
+ providers:
43
+ kubernetesCRD:
44
+ enabled: true
45
+ kubernetesIngress:
46
+ enabled: false
47
+ kubernetesGateway:
48
+ enabled: false
49
+
50
+ service:
51
+ enabled: true
52
+ single: false
53
+ spec:
54
+ type: ClusterIP
55
+
56
+ ports:
57
+ web:
58
+ port: 8000
59
+ hostPort: 80
60
+ protocol: TCP
61
+ http:
62
+ redirections:
63
+ entryPoint:
64
+ to: websecure
65
+ scheme: https
66
+ permanent: true
67
+
68
+ websecure:
69
+ port: 8443
70
+ hostPort: 443
71
+ protocol: TCP
72
+ {{#if lets_encrypt}}
73
+ http:
74
+ tls:
75
+ enabled: true
76
+ certResolver: letsencrypt
77
+ {{/if}}
78
+
79
+
80
+ {{#if lets_encrypt}}
81
+ certificatesResolvers:
82
+ letsencrypt:
83
+ acme:
84
+ tlsChallenge: false
85
+ httpChallenge:
86
+ entryPoint: web
87
+ email: admin@opencrvs.org
88
+ # Storage for certificates:
89
+ storage: /certificates/acme.json
90
+ # NOTE: Sometimes Let's Encrypt hit production SSL certificate issuing limits
91
+ # If you are having issues, switch to staging
92
+ # Staging server
93
+ # caServer: https://acme-staging-v02.api.letsencrypt.org/directory
94
+ # Production server
95
+ caServer: https://acme-v02.api.letsencrypt.org/directory
96
+
97
+ additionalVolumeMounts:
98
+ - name: acme
99
+ mountPath: /certificates
100
+ {{/if}}
101
+ {{#if static_ssl}}
102
+ certificatesResolvers: {}
103
+
104
+ # 👇 Custom TLS configuration
105
+ tlsStore:
106
+ default:
107
+ defaultCertificate:
108
+ # Check documentation how to create secret with static SSL certificate
109
+ secretName: traefik-cert
110
+ {{/if}}
111
+
112
+ deployment:
113
+ hostNetwork: true
114
+ podLabels:
115
+ service_name: traefik
116
+ {{#if static_ssl}}
117
+ kind: DaemonSet
118
+ {{/if}}
119
+ {{#if lets_encrypt}}
120
+ additionalVolumes:
121
+ - name: acme
122
+ hostPath:
123
+ path: /data/traefik
124
+ {{/if}}
125
+
126
+ # If you need to run traefik on all cluster nodes
127
+ # Add this line to traefik/values.override.yaml
128
+ # nodeSelector: {}
129
+ nodeSelector:
130
+ traefik-role: ingress
@@ -0,0 +1,98 @@
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
7
+ ##################################################################################
8
+ all:
9
+ vars:
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
+ # kube_api_host: ''
17
+ # IMPORTANT: If master VM has multiple ethernet interfaces, put private IP address at kube_api_host
18
+ kube_api_host: {{kube_api_host}}
19
+
20
+ # Default ansible provision user, keep as is
21
+ ansible_user: provision
22
+ # single_node:
23
+ # For development/qa/testing/staging keep true
24
+ # For production keep false
25
+ # Defaults production configuration:
26
+ # - master node
27
+ # - 2 worker nodes
28
+ single_node: {{single_node}}
29
+ ################################################################
30
+ # DON'T MODIFY THIS SECTION BY HANDS
31
+ # Use: yarn environment:users
32
+ ################################################################
33
+ # users: Add as many users as you wish
34
+ # Configuration example
35
+ # - name: <login>
36
+ # ssh_keys:
37
+ # - <public ssh key 1>
38
+ # - <public ssh key 2>
39
+ # state: present
40
+ # role: admin
41
+ # Allowed roles:
42
+ # - operator: grant read only access to OS and full access to kubernetes cluster
43
+ # - admin: grant full access to OS and kubernetes cluster
44
+ # Allowed states:
45
+ # - present: user is allowed to login
46
+ # - absent: user account is disabled
47
+ # users: []
48
+ {{#if users}}
49
+ users:
50
+ {{#each users as |user|}}
51
+ - name: {{user.name}}
52
+ ssh_keys:
53
+ {{#each user.ssh_keys as |key| }}
54
+ - {{{key}}}
55
+ {{/each}}
56
+ state: {{user.state}}
57
+ role: {{user.role}}
58
+ {{/each}}
59
+ {{else}}
60
+ users: []
61
+ {{/if}}
62
+
63
+ children:
64
+ master:
65
+ hosts:
66
+ # Replace master with value returned by command: hostname
67
+ master:
68
+ # Keep values (ansible_host, ansible_connection) as is
69
+ # Ansible is executed on master node
70
+ ansible_host: localhost
71
+ ansible_connection: local
72
+ labels:
73
+ # traefik-role label is used to identify where to deploy traefik
74
+ traefik-role: ingress
75
+ # By default all datastores are deployed to node with role data1
76
+ role: data1
77
+ {{#if kube_worker_nodes}}
78
+ # Workers section is optional, for single node cluster feel free to remove this section
79
+ # section can be added later
80
+ # more workers can be added later as well
81
+ workers:
82
+ hosts:
83
+ {{#each kube_worker_nodes as |host idx|}}
84
+ worker{{idx}}:
85
+ ansible_host: {{host}}
86
+ labels:
87
+ # Labels have index + 2 for backward compatibility with existing swarm setup
88
+ role: data{{data_label_idx idx}}
89
+ {{/each}}
90
+ {{/if}}
91
+ {{#if backup_host}}
92
+ # backup section is optional, feel free to remove if backups are not enabled
93
+ # section can be added later
94
+ backup:
95
+ hosts:
96
+ backup0:
97
+ ansible_host: {{backup_host}}
98
+ {{/if}}