@opencrvs/toolkit 2.1.0-rc.28fe5a3 → 2.1.0-rc.3028b2e

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 (247) hide show
  1. package/README.md +3 -12
  2. package/build.sh +22 -4
  3. package/create-countryconfig/index.js +441 -59
  4. package/create-countryconfig/node_modules/.bin/degit +21 -0
  5. package/create-countryconfig/package.json +4 -1
  6. package/dist/application-config/index.js +364 -285
  7. package/dist/authentication/index.d.ts +66 -0
  8. package/dist/authentication/index.d.ts.map +1 -0
  9. package/dist/authentication/index.js +765 -0
  10. package/dist/cli.js +3778 -1231
  11. package/dist/commons/api/router.d.ts +980 -420
  12. package/dist/commons/application-config/index.d.ts +0 -2
  13. package/dist/commons/conditionals/conditionals.d.ts +6 -6
  14. package/dist/commons/conditionals/validate.d.ts +34 -8
  15. package/dist/commons/events/ActionConfig.d.ts +5 -14
  16. package/dist/commons/events/ActionDocument.d.ts +41 -21
  17. package/dist/commons/events/ActionInput.d.ts +4 -10
  18. package/dist/commons/events/ActionStatus.d.ts +14 -0
  19. package/dist/commons/events/AdvancedSearchConfig.d.ts +48 -12
  20. package/dist/commons/events/AuditLog.d.ts +148 -0
  21. package/dist/commons/events/Draft.d.ts +1 -21
  22. package/dist/commons/events/EventConfig.d.ts +3 -0
  23. package/dist/commons/events/EventDocument.d.ts +474 -6
  24. package/dist/commons/events/EventIndex.d.ts +3 -26
  25. package/dist/commons/events/EventMetadata.d.ts +1 -11
  26. package/dist/commons/events/EventStatus.d.ts +19 -0
  27. package/dist/commons/events/FieldConfig.d.ts +109 -63
  28. package/dist/commons/events/FieldTypeMapping.d.ts +17 -17
  29. package/dist/commons/events/FieldValue.d.ts +3 -2
  30. package/dist/commons/events/Flag.d.ts +42 -0
  31. package/dist/commons/events/FormConfig.d.ts +6 -0
  32. package/dist/commons/events/PageConfig.d.ts +4 -0
  33. package/dist/commons/events/PlainDate.d.ts +8 -0
  34. package/dist/commons/events/SummaryConfig.d.ts +249 -0
  35. package/dist/commons/events/WorkqueueConfig.d.ts +17 -14
  36. package/dist/commons/events/event.d.ts +12 -0
  37. package/dist/commons/events/index.d.ts +1 -0
  38. package/dist/commons/events/locationPayloads.d.ts +95 -0
  39. package/dist/commons/events/locations.d.ts +246 -13
  40. package/dist/commons/events/mocks.test.utils.d.ts +46 -2
  41. package/dist/commons/events/scopes.d.ts +21 -1
  42. package/dist/commons/events/test.utils.d.ts +82 -32
  43. package/dist/commons/events/utils.d.ts +41 -6
  44. package/dist/commons/notification/UserNotifications.d.ts +28 -13
  45. package/dist/commons/notification/dispatch.d.ts +10 -0
  46. package/dist/commons/notification/index.d.ts +1 -0
  47. package/dist/conditionals/index.js +349 -65
  48. package/dist/csv.d.ts +25 -0
  49. package/dist/csv.d.ts.map +1 -0
  50. package/dist/csv.js +120 -0
  51. package/dist/environment/derived-variables.d.ts +12 -0
  52. package/dist/environment/derived-variables.d.ts.map +1 -1
  53. package/dist/environment/derived-variables.js +14 -0
  54. package/dist/environment/index.d.ts +1 -0
  55. package/dist/environment/index.d.ts.map +1 -1
  56. package/dist/environment/index.js +12 -1
  57. package/dist/environment/logger.d.ts +15 -3
  58. package/dist/environment/logger.d.ts.map +1 -1
  59. package/dist/environment/manage-users.js +1 -1
  60. package/dist/environment/paths.d.ts +7 -0
  61. package/dist/environment/paths.d.ts.map +1 -0
  62. package/dist/environment/paths.js +72 -0
  63. package/dist/environment/questions.d.ts.map +1 -1
  64. package/dist/environment/questions.js +20 -14
  65. package/dist/environment/setup-environment.d.ts +1 -1
  66. package/dist/environment/setup-environment.d.ts.map +1 -1
  67. package/dist/environment/setup-environment.js +603 -562
  68. package/dist/environment/swarm-to-k8s.js +3 -4
  69. package/dist/environment/templates.d.ts +0 -1
  70. package/dist/environment/templates.d.ts.map +1 -1
  71. package/dist/environment/templates.js +5 -9
  72. package/dist/environment/update-workflows.d.ts.map +1 -1
  73. package/dist/environment/update-workflows.js +21 -5
  74. package/dist/environment/upgrade.d.ts +2 -0
  75. package/dist/environment/upgrade.d.ts.map +1 -0
  76. package/dist/environment/upgrade.js +82 -0
  77. package/dist/environment/users.js +11 -13
  78. package/dist/environment/utils.d.ts +0 -12
  79. package/dist/environment/utils.d.ts.map +1 -1
  80. package/dist/environment/utils.js +1 -28
  81. package/dist/events/index.js +7842 -7212
  82. package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts +3 -0
  83. package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts.map +1 -0
  84. package/dist/migrations/v2.1/add-recovery-link-notifications.js +511 -0
  85. package/dist/migrations/v2.1/add-translations.d.ts +9 -0
  86. package/dist/migrations/v2.1/add-translations.d.ts.map +1 -0
  87. package/dist/migrations/v2.1/add-translations.js +149 -0
  88. package/dist/migrations/{v2.0/rename-api-paths.d.ts → v2.1/enable-telemetry.d.ts} +1 -1
  89. package/dist/migrations/v2.1/enable-telemetry.d.ts.map +1 -0
  90. package/dist/migrations/v2.1/enable-telemetry.js +455 -0
  91. package/dist/migrations/v2.1/index.d.ts.map +1 -1
  92. package/dist/migrations/v2.1/index.js +1952 -0
  93. package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts +14 -0
  94. package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts.map +1 -0
  95. package/dist/migrations/v2.1/migrate-infrastructure-to-assets.js +348 -0
  96. package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts +2 -0
  97. package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts.map +1 -0
  98. package/dist/migrations/v2.1/remove-metabase-package-installs.js +161 -0
  99. package/dist/migrations/{v2.0/migrate-scopes.d.ts → v2.1/remove-sentry.d.ts} +1 -1
  100. package/dist/migrations/v2.1/remove-sentry.d.ts.map +1 -0
  101. package/dist/migrations/v2.1/remove-sentry.js +354 -0
  102. package/dist/migrations/{v2.0/create-events-index.d.ts → v2.1/rename-trigger-paths.d.ts} +1 -1
  103. package/dist/migrations/v2.1/rename-trigger-paths.d.ts.map +1 -0
  104. package/dist/migrations/{v2.0/rename-api-paths.js → v2.1/rename-trigger-paths.js} +69 -40
  105. package/dist/migrations/v2.1/template-files.d.ts +8 -0
  106. package/dist/migrations/v2.1/template-files.d.ts.map +1 -0
  107. package/dist/migrations/v2.1/template-files.js +49 -0
  108. package/dist/migrations/v2.1/upgrade-tilt.d.ts +8 -0
  109. package/dist/migrations/v2.1/upgrade-tilt.d.ts.map +1 -0
  110. package/dist/migrations/v2.1/upgrade-tilt.js +139 -0
  111. package/dist/notification/index.js +1925 -1485
  112. package/dist/scopes/index.d.ts +614 -36
  113. package/dist/scopes/index.js +351 -65
  114. package/dist/telemetry/index.d.ts +45 -0
  115. package/dist/telemetry/index.d.ts.map +1 -0
  116. package/dist/telemetry/index.js +43 -0
  117. package/dist/templates/charts-values/dependencies/values.yaml +8 -0
  118. package/dist/templates/charts-values/opencrvs-services/values.yaml +10 -3
  119. package/dist/templates/charts-values/opentelemetry/values.yaml +102 -0
  120. package/dist/templates/charts-values/traefik/values.yaml +23 -9
  121. package/dist/templates/countryconfig-template/.tiltignore +1 -0
  122. package/dist/templates/countryconfig-template/Dockerfile.assets +7 -0
  123. package/dist/templates/countryconfig-template/Tiltfile +112 -0
  124. package/dist/templates/countryconfig-template/assets/README.md +1 -0
  125. package/dist/templates/countryconfig-template/assets/clear-all-data-dev.sh +61 -0
  126. package/dist/templates/countryconfig-template/assets/deployment/deploy.sh +455 -0
  127. package/dist/templates/countryconfig-template/assets/deployment/reindex.sh +168 -0
  128. package/dist/templates/countryconfig-template/assets/deployment/validate-required-variables-in-compose-files.ts +67 -0
  129. package/dist/templates/countryconfig-template/assets/elasticsearch/reindex.sh +168 -0
  130. package/dist/templates/countryconfig-template/assets/metabase/README.md +34 -0
  131. package/dist/templates/countryconfig-template/assets/metabase/environment-configuration.sql +36 -0
  132. package/dist/templates/countryconfig-template/assets/metabase/initialize-database.sh +46 -0
  133. package/dist/templates/countryconfig-template/assets/metabase/metabase.init.db.sql +27737 -0
  134. package/dist/templates/countryconfig-template/assets/metabase/open-shell.sh +21 -0
  135. package/dist/templates/countryconfig-template/assets/metabase/package.json +13 -0
  136. package/dist/templates/countryconfig-template/assets/metabase/run-dev.sh +108 -0
  137. package/dist/templates/countryconfig-template/assets/metabase/run.sh +120 -0
  138. package/dist/templates/countryconfig-template/assets/metabase/update-database.sh +40 -0
  139. package/dist/templates/countryconfig-template/assets/postgres/setup-analytics.sh +135 -0
  140. package/dist/templates/countryconfig-template/assets/postgres/setup-reference-data.sh +108 -0
  141. package/dist/templates/countryconfig-template/tilt/clear-all-data.ps1 +50 -0
  142. package/dist/templates/countryconfig-template/tilt/clear-all-data.sh +35 -0
  143. package/dist/templates/countryconfig-template/tilt/common.tilt +145 -0
  144. package/dist/templates/countryconfig-template/tilt/examples/dependencies/values.yaml +15 -0
  145. package/dist/templates/countryconfig-template/tilt/examples/opencrvs-services/values.yaml +56 -0
  146. package/dist/templates/countryconfig-template/tilt/examples/traefik/values-minikube.yaml +21 -0
  147. package/dist/templates/countryconfig-template/tilt/examples/traefik/values.yaml +38 -0
  148. package/dist/templates/countryconfig-template/tilt/helm/dependencies/values.yaml +17 -0
  149. package/dist/templates/countryconfig-template/tilt/helm/opencrvs-services/values.yaml +16 -0
  150. package/dist/templates/countryconfig-template/tilt/lib.tilt +95 -0
  151. package/dist/templates/countryconfig-template/tilt/opencrvs.tilt +136 -0
  152. package/dist/templates/inventory/inventory.template.yml +1 -3
  153. package/dist/translations/template.d.ts +11 -0
  154. package/dist/translations/template.d.ts.map +1 -0
  155. package/dist/translations/template.js +100 -0
  156. package/dist/verify/endpoints.d.ts +2 -0
  157. package/dist/verify/endpoints.d.ts.map +1 -0
  158. package/dist/verify/endpoints.js +510 -0
  159. package/opencrvs-toolkit-2.1.0-rc.3028b2e.tgz +0 -0
  160. package/package.json +14 -7
  161. package/tsconfig.build.json +11 -0
  162. package/tsconfig.build.tsbuildinfo +1 -0
  163. package/tsconfig.json +3 -0
  164. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts +0 -3
  165. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +0 -1
  166. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +0 -429
  167. package/dist/migrations/v2.0/add-resend-invite-notification.d.ts +0 -3
  168. package/dist/migrations/v2.0/add-resend-invite-notification.d.ts.map +0 -1
  169. package/dist/migrations/v2.0/add-resend-invite-notification.js +0 -373
  170. package/dist/migrations/v2.0/checkout-upstream-files.d.ts +0 -22
  171. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +0 -1
  172. package/dist/migrations/v2.0/checkout-upstream-files.js +0 -146
  173. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts +0 -2
  174. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +0 -1
  175. package/dist/migrations/v2.0/convert-config-files-to-ts.js +0 -838
  176. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts +0 -3
  177. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +0 -1
  178. package/dist/migrations/v2.0/convert-paragraph-to-heading.js +0 -158
  179. package/dist/migrations/v2.0/create-events-index.d.ts.map +0 -1
  180. package/dist/migrations/v2.0/create-events-index.js +0 -325
  181. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts +0 -11
  182. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts.map +0 -1
  183. package/dist/migrations/v2.0/delete-infrastructure-directory.js +0 -123
  184. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.d.ts +0 -3
  185. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.d.ts.map +0 -1
  186. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.js +0 -110
  187. package/dist/migrations/v2.0/index.d.ts +0 -13
  188. package/dist/migrations/v2.0/index.d.ts.map +0 -1
  189. package/dist/migrations/v2.0/index.js +0 -103
  190. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts +0 -3
  191. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +0 -1
  192. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +0 -432
  193. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts +0 -13
  194. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts.map +0 -1
  195. package/dist/migrations/v2.0/merge-infrastructure-directory.js +0 -222
  196. package/dist/migrations/v2.0/migrate-application-config-url.d.ts +0 -3
  197. package/dist/migrations/v2.0/migrate-application-config-url.d.ts.map +0 -1
  198. package/dist/migrations/v2.0/migrate-application-config-url.js +0 -343
  199. package/dist/migrations/v2.0/migrate-scopes.d.ts.map +0 -1
  200. package/dist/migrations/v2.0/migrate-scopes.js +0 -305
  201. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts +0 -3
  202. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +0 -1
  203. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +0 -267
  204. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts +0 -3
  205. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +0 -1
  206. package/dist/migrations/v2.0/migrate-workqueue-configs.js +0 -317
  207. package/dist/migrations/v2.0/remove-delete-actions.d.ts +0 -3
  208. package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +0 -1
  209. package/dist/migrations/v2.0/remove-delete-actions.js +0 -156
  210. package/dist/migrations/v2.0/remove-demo-scope.d.ts +0 -3
  211. package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +0 -1
  212. package/dist/migrations/v2.0/remove-demo-scope.js +0 -74
  213. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts +0 -3
  214. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +0 -1
  215. package/dist/migrations/v2.0/remove-deprecated-imports.js +0 -96
  216. package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts +0 -3
  217. package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts.map +0 -1
  218. package/dist/migrations/v2.0/remove-fhir-url-helpers.js +0 -163
  219. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts +0 -3
  220. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +0 -1
  221. package/dist/migrations/v2.0/remove-hearth-migrations.js +0 -87
  222. package/dist/migrations/v2.0/remove-old-statistics-service.d.ts +0 -3
  223. package/dist/migrations/v2.0/remove-old-statistics-service.d.ts.map +0 -1
  224. package/dist/migrations/v2.0/remove-old-statistics-service.js +0 -356
  225. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts +0 -3
  226. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +0 -1
  227. package/dist/migrations/v2.0/remove-pending-certification-flag.js +0 -109
  228. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts +0 -3
  229. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +0 -1
  230. package/dist/migrations/v2.0/remove-review-from-register-action.js +0 -163
  231. package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts +0 -3
  232. package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts.map +0 -1
  233. package/dist/migrations/v2.0/remove-unused-environment-variables.js +0 -186
  234. package/dist/migrations/v2.0/rename-api-paths.d.ts.map +0 -1
  235. package/dist/migrations/v2.0/rename-location-parent-id.d.ts +0 -3
  236. package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +0 -1
  237. package/dist/migrations/v2.0/rename-location-parent-id.js +0 -180
  238. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts +0 -3
  239. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts.map +0 -1
  240. package/dist/migrations/v2.0/simplify-analytics-precalculations.js +0 -195
  241. package/dist/migrations/v2.0/update-package-json.d.ts +0 -3
  242. package/dist/migrations/v2.0/update-package-json.d.ts.map +0 -1
  243. package/dist/migrations/v2.0/update-package-json.js +0 -105
  244. package/dist/templates/inventory/production.example.yml +0 -77
  245. package/dist/templates/inventory/qa.example.yml +0 -48
  246. package/opencrvs-toolkit-2.1.0-rc.28fe5a3.tgz +0 -0
  247. package/tsconfig.tsbuildinfo +0 -1
@@ -47,7 +47,7 @@ __export(conditionals_exports, {
47
47
  user: () => user
48
48
  });
49
49
  module.exports = __toCommonJS(conditionals_exports);
50
- var z8 = __toESM(require("zod/v4"));
50
+ var z13 = __toESM(require("zod/v4"));
51
51
 
52
52
  // ../commons/src/conditionals/conditionals.ts
53
53
  var objectHash = __toESM(require("object-hash"));
@@ -124,7 +124,7 @@ function todayDateTimeValueSerializer() {
124
124
  }
125
125
 
126
126
  // ../commons/src/scopes.ts
127
- var z6 = __toESM(require("zod/v4"));
127
+ var z11 = __toESM(require("zod/v4"));
128
128
  var qs = __toESM(require("qs"));
129
129
 
130
130
  // ../commons/src/uuid.ts
@@ -138,12 +138,267 @@ var z5 = __toESM(require("zod/v4"));
138
138
  var TokenUserType = z5.enum(["user", "system"]);
139
139
  var TokenWithBearer = z5.string().regex(/^Bearer\s/);
140
140
 
141
+ // ../commons/src/events/ActionType.ts
142
+ var z6 = __toESM(require("zod/v4"));
143
+ var ActionType = {
144
+ // Pre-declaration actions
145
+ DELETE: "DELETE",
146
+ CREATE: "CREATE",
147
+ NOTIFY: "NOTIFY",
148
+ // Declaration actions
149
+ DECLARE: "DECLARE",
150
+ REGISTER: "REGISTER",
151
+ EDIT: "EDIT",
152
+ // Declaration system actions. Non-configurable.
153
+ DUPLICATE_DETECTED: "DUPLICATE_DETECTED",
154
+ REJECT: "REJECT",
155
+ // REJECT_DECLARATION
156
+ MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE",
157
+ MARK_AS_NOT_DUPLICATE: "MARK_AS_NOT_DUPLICATE",
158
+ ARCHIVE: "ARCHIVE",
159
+ UNARCHIVE: "UNARCHIVE",
160
+ // Record actions
161
+ PRINT_CERTIFICATE: "PRINT_CERTIFICATE",
162
+ REQUEST_CORRECTION: "REQUEST_CORRECTION",
163
+ REJECT_CORRECTION: "REJECT_CORRECTION",
164
+ APPROVE_CORRECTION: "APPROVE_CORRECTION",
165
+ // General actions
166
+ READ: "READ",
167
+ ASSIGN: "ASSIGN",
168
+ UNASSIGN: "UNASSIGN",
169
+ // Custom action
170
+ CUSTOM: "CUSTOM"
171
+ };
172
+ var ConfirmableActions = [
173
+ ActionType.NOTIFY,
174
+ ActionType.DECLARE,
175
+ ActionType.EDIT,
176
+ ActionType.REGISTER,
177
+ ActionType.REJECT,
178
+ ActionType.ARCHIVE,
179
+ ActionType.UNARCHIVE,
180
+ ActionType.PRINT_CERTIFICATE,
181
+ ActionType.REQUEST_CORRECTION,
182
+ ActionType.APPROVE_CORRECTION,
183
+ ActionType.REJECT_CORRECTION,
184
+ ActionType.CUSTOM
185
+ ];
186
+ var ActionTypes = z6.enum([
187
+ "DELETE",
188
+ "CREATE",
189
+ "NOTIFY",
190
+ "DECLARE",
191
+ "EDIT",
192
+ "REGISTER",
193
+ "DUPLICATE_DETECTED",
194
+ "REJECT",
195
+ "MARK_AS_DUPLICATE",
196
+ "MARK_AS_NOT_DUPLICATE",
197
+ "ARCHIVE",
198
+ "UNARCHIVE",
199
+ "PRINT_CERTIFICATE",
200
+ "REQUEST_CORRECTION",
201
+ "REJECT_CORRECTION",
202
+ "APPROVE_CORRECTION",
203
+ "READ",
204
+ "ASSIGN",
205
+ "UNASSIGN",
206
+ "CUSTOM"
207
+ ]);
208
+ var declarationActionValues = [
209
+ ActionTypes.enum.DECLARE,
210
+ ActionTypes.enum.EDIT,
211
+ ActionTypes.enum.REGISTER,
212
+ ActionTypes.enum.NOTIFY,
213
+ ActionTypes.enum.DUPLICATE_DETECTED
214
+ ];
215
+ var DeclarationActions = ActionTypes.extract(declarationActionValues);
216
+ var declarationUpdateActionValues = [
217
+ ...declarationActionValues,
218
+ ActionTypes.enum.REQUEST_CORRECTION
219
+ ];
220
+ var DeclarationUpdateActions = ActionTypes.extract(
221
+ declarationUpdateActionValues
222
+ );
223
+ var annotationActions = ActionTypes.exclude(declarationActionValues);
224
+ var writeActions = ActionTypes.exclude([
225
+ ActionType.CREATE,
226
+ ActionType.READ,
227
+ ActionType.ASSIGN,
228
+ ActionType.UNASSIGN
229
+ ]);
230
+ var WorkqueueActionType = ActionTypes.extract([
231
+ ActionType.READ,
232
+ ActionType.DELETE,
233
+ ActionType.DECLARE,
234
+ ActionType.REGISTER,
235
+ ActionType.EDIT,
236
+ ActionType.REJECT,
237
+ ActionType.MARK_AS_DUPLICATE,
238
+ ActionType.ARCHIVE,
239
+ ActionType.UNARCHIVE,
240
+ ActionType.PRINT_CERTIFICATE,
241
+ ActionType.REQUEST_CORRECTION
242
+ ]);
243
+ var META_ACTIONS = [
244
+ ActionType.ASSIGN,
245
+ ActionType.UNASSIGN,
246
+ ActionType.READ
247
+ ];
248
+
249
+ // ../commons/src/events/ActionStatus.ts
250
+ var ActionStatus = {
251
+ Requested: "Requested",
252
+ Accepted: "Accepted",
253
+ Rejected: "Rejected"
254
+ };
255
+
256
+ // ../commons/src/events/Flag.ts
257
+ var z9 = __toESM(require("zod/v4"));
258
+
259
+ // ../commons/src/events/TranslationConfig.ts
260
+ var z7 = __toESM(require("zod/v4"));
261
+ var TranslationConfig = z7.object({
262
+ id: z7.string().describe(
263
+ "The identifier of the translation referred in translation CSV files"
264
+ ),
265
+ defaultMessage: z7.string().describe("Default translation message"),
266
+ description: z7.string().describe(
267
+ "Describe the translation for a translator to be able to identify it."
268
+ )
269
+ }).meta({
270
+ description: "Translation configuration",
271
+ id: "TranslationConfig"
272
+ });
273
+
274
+ // ../commons/src/events/Conditional.ts
275
+ var z8 = __toESM(require("zod/v4"));
276
+ var Conditional = z8.any().describe("JSONSchema").meta({
277
+ description: "JSON schema conditional configuration",
278
+ id: "Conditional"
279
+ });
280
+ var ConditionalType = {
281
+ SHOW: "SHOW",
282
+ ENABLE: "ENABLE",
283
+ DISPLAY_ON_REVIEW: "DISPLAY_ON_REVIEW"
284
+ };
285
+ var ShowConditional = z8.object({
286
+ type: z8.literal(ConditionalType.SHOW),
287
+ conditional: Conditional
288
+ }).describe(
289
+ "If 'SHOW' conditional is defined, the component is shown to the user only if the condition is met"
290
+ );
291
+ var EnableConditional = z8.object({
292
+ type: z8.literal(ConditionalType.ENABLE),
293
+ conditional: Conditional
294
+ }).describe(
295
+ "If 'ENABLE' conditional is defined, the component is enabled only if the condition is met"
296
+ );
297
+ var ActionConditional = z8.discriminatedUnion("type", [
298
+ // Action can be shown / hidden
299
+ ShowConditional,
300
+ // Action can be shown to the user in the list but as disabled
301
+ EnableConditional
302
+ ]).meta({
303
+ id: "ActionConditional",
304
+ description: "Conditional gating whether an action is shown (SHOW) or enabled (ENABLE). When omitted from an action, the action is shown and enabled for everyone."
305
+ });
306
+ var DisplayOnReviewConditional = z8.object({
307
+ type: z8.literal(ConditionalType.DISPLAY_ON_REVIEW),
308
+ conditional: Conditional
309
+ }).describe(
310
+ "If 'DISPLAY_ON_REVIEW' conditional is defined, the component is shown on the review page only if both the 'DISPLAY_ON_REVIEW' and 'SHOW' conditions are met. This should only be used for fields within declaration forms, as they are the only ones with review pages."
311
+ );
312
+ var FieldConditional = z8.discriminatedUnion("type", [
313
+ // Field input can be shown / hidden
314
+ ShowConditional,
315
+ // Field input can be shown to the user but as disabled
316
+ EnableConditional,
317
+ // Field output can be shown / hidden on the review page
318
+ DisplayOnReviewConditional
319
+ ]).meta({
320
+ id: "FieldConditional",
321
+ description: "Conditional gating whether a form field is shown (SHOW), enabled (ENABLE), or displayed on the review page (DISPLAY_ON_REVIEW). When omitted, the field is shown and enabled for everyone, and is displayed on review whenever it has a value."
322
+ });
323
+
324
+ // ../commons/src/events/Flag.ts
325
+ var InherentFlags = {
326
+ INCOMPLETE: "incomplete",
327
+ REJECTED: "rejected",
328
+ CORRECTION_REQUESTED: "correction-requested",
329
+ POTENTIAL_DUPLICATE: "potential-duplicate",
330
+ /**
331
+ * This flag is set by the Edit-action and removed after the declaration or registration.
332
+ * A record should never stay with the EDIT_IN_PROGRESS flag, since it should always be declared or registered right after.
333
+ *
334
+ * We only use this flag to determine that a NOTIFY, DECLARE or REGISTER action is allowed next.
335
+ */
336
+ EDIT_IN_PROGRESS: "edit-in-progress"
337
+ };
338
+ var actionFlagPattern;
339
+ function getActionFlagPattern() {
340
+ actionFlagPattern ??= new RegExp(
341
+ `^(${Object.values(ActionType).join("|").toLowerCase()}):(${Object.values(
342
+ ActionStatus
343
+ ).join("|").toLowerCase()})$`
344
+ );
345
+ return actionFlagPattern;
346
+ }
347
+ var ActionFlag = z9.string().refine((value) => getActionFlagPattern().test(value), {
348
+ message: "Flag must be in the format ActionType:ActionStatus (lowerCase)"
349
+ });
350
+ var CustomFlag = z9.string().refine((val) => !Object.values(InherentFlags).includes(val), {
351
+ message: `Custom flag cannot be one of the inherent flags: ${Object.values(
352
+ InherentFlags
353
+ ).join(", ")}`
354
+ }).refine((val) => !ActionFlag.safeParse(val).success, {
355
+ message: "Custom flag cannot match the ActionFlag pattern (ActionType:ActionStatus)."
356
+ }).describe("Custom flag identifier defined by the country config.");
357
+ var Flag = ActionFlag.or(z9.enum(InherentFlags)).or(CustomFlag);
358
+ var ContainsFlags = z9.object({
359
+ anyOf: z9.array(Flag).optional(),
360
+ noneOf: z9.array(Flag).optional(),
361
+ allOf: z9.array(Flag).optional()
362
+ }).meta({
363
+ id: "ContainsFlags"
364
+ });
365
+ var FlagConfig = z9.object({
366
+ id: CustomFlag,
367
+ requiresAction: z9.boolean().describe(
368
+ "Indicates if this flag expects an action to be performed to be cleared."
369
+ ),
370
+ label: TranslationConfig.describe("Human readable label of the flag.")
371
+ }).meta({
372
+ id: "FlagConfig",
373
+ description: "Configuration for a custom flag that can be added to or removed from records by event actions."
374
+ });
375
+ var ActionFlagConfig = z9.object({
376
+ id: Flag,
377
+ operation: z9.enum(["add", "remove"]).describe("Operation to perform on the flag."),
378
+ conditional: Conditional.optional().describe(
379
+ "When conditional is met, the operation is performed on the flag. If not provided, the operation is performed unconditionally."
380
+ )
381
+ }).meta({
382
+ id: "ActionFlagConfig",
383
+ description: "Add or remove operation applied to a flag when the parent action is accepted. Optionally gated by a conditional."
384
+ });
385
+
386
+ // ../commons/src/events/EventStatus.ts
387
+ var z10 = __toESM(require("zod/v4"));
388
+ var EventStatus = z10.enum([
389
+ "CREATED",
390
+ "NOTIFIED",
391
+ "DECLARED",
392
+ "REGISTERED",
393
+ "ARCHIVED"
394
+ ]);
395
+
141
396
  // ../commons/src/scopes.ts
142
- var JurisdictionFilter = z6.enum(["administrativeArea", "location", "all"]).describe(
397
+ var JurisdictionFilter = z11.enum(["administrativeArea", "location", "all"]).describe(
143
398
  "Filters based on user jurisdiction relative to their office location in hierarchy."
144
399
  );
145
- var UserFilter = z6.enum(["user"]).describe("Filters based on the user. Limits to self.");
146
- var RecordScopeTypeV2 = z6.enum([
400
+ var UserFilter = z11.enum(["user"]).describe("Filters based on the user. Limits to self.");
401
+ var RecordScopeTypeV2 = z11.enum([
147
402
  "record.search",
148
403
  "record.create",
149
404
  "record.read",
@@ -159,93 +414,111 @@ var RecordScopeTypeV2 = z6.enum([
159
414
  "record.request-correction",
160
415
  "record.correct",
161
416
  "record.unassign-others",
162
- "record.custom-action"
417
+ "record.custom-action",
418
+ "record.action.accept",
419
+ "record.action.reject"
163
420
  ]);
164
- var PlainScopeType = z6.enum([
421
+ var PlainScopeType = z11.enum([
165
422
  // Misc. system scopes
166
423
  "bypassratelimit",
167
424
  "record.reindex",
168
425
  "user.data-seeding",
169
426
  "integration.create",
427
+ // Reading an integration's audit log. Deliberately separate from
428
+ // 'integration.create' so read-only oversight can be granted on its own, and
429
+ // deliberately option-less: system clients have no office and no
430
+ // administrative area, so jurisdiction options would have nothing to bind to.
431
+ "integration.audit.read",
170
432
  "record.import",
171
433
  "config.update-all",
434
+ "location.edit",
172
435
  "attachment.upload",
173
436
  "profile.electronic-signature",
174
437
  "user.read-only-my-audit",
175
438
  // Performance dashboard
176
439
  "performance.read",
177
440
  "performance.read-dashboards",
178
- "performance.vital-statistics-export",
179
- // Scopes used exclusively by countryconfig integration token
180
- "record.confirm-registration",
181
- "record.reject-registration"
441
+ "performance.vital-statistics-export"
182
442
  ]);
183
- var scopeByEvent = z6.preprocess(
443
+ var scopeByEvent = z11.preprocess(
184
444
  (val) => val === void 0 ? void 0 : [val].flat(),
185
- z6.array(z6.string()).optional()
445
+ z11.array(z11.string()).optional()
186
446
  ).describe("Event type, e.g. birth, death");
187
- var userRole = z6.preprocess(
447
+ var scopeByStatus = z11.preprocess(
448
+ (val) => val === void 0 ? void 0 : [val].flat(),
449
+ z11.array(EventStatus).optional()
450
+ ).describe(
451
+ "Restricts the scope to records currently in one of these statuses."
452
+ );
453
+ var userRole = z11.preprocess(
188
454
  (val) => val === void 0 ? void 0 : [val].flat(),
189
- z6.array(z6.string()).optional()
455
+ z11.array(z11.string()).optional()
190
456
  ).describe("User role, e.g. admin, field agent");
191
- var scopeOptionsPlaceEvent = z6.object({
457
+ var scopeOptionsPlaceEvent = z11.object({
192
458
  event: scopeByEvent,
193
- placeOfEvent: JurisdictionFilter.optional()
459
+ placeOfEvent: JurisdictionFilter.optional(),
460
+ createdBy: UserFilter.optional(),
461
+ createdIn: JurisdictionFilter.optional()
194
462
  }).describe("Options applicable to all record scopes.");
195
463
  var scopeOptionsDeclaredOrNotified = scopeOptionsPlaceEvent.extend({
196
464
  notifiedIn: JurisdictionFilter.optional(),
197
465
  notifiedBy: UserFilter.optional(),
198
466
  declaredIn: JurisdictionFilter.optional(),
199
- declaredBy: UserFilter.optional()
467
+ declaredBy: UserFilter.optional(),
468
+ status: scopeByStatus
200
469
  }).describe("Options applicable to actions that may take place after DECLARE");
201
470
  var AllRecordScopeOptions = scopeOptionsDeclaredOrNotified.extend({
202
471
  registeredIn: JurisdictionFilter.optional(),
203
- registeredBy: UserFilter.optional()
472
+ registeredBy: UserFilter.optional(),
473
+ flags: ContainsFlags.optional()
204
474
  }).describe(
205
475
  "Options applicable to actions that may take place after REGISTER, with full filtering capabilities."
206
476
  );
207
477
  var CustomActionScopeOptions = AllRecordScopeOptions.extend({
208
- customActionTypes: z6.preprocess(
478
+ customActionTypes: z11.preprocess(
209
479
  (val) => val === void 0 ? void 0 : [val].flat(),
210
- z6.array(z6.string()).optional()
480
+ z11.array(z11.string()).optional()
211
481
  ).describe("Allowed custom action types")
212
482
  });
213
- var AccessLevelOptions = z6.object({
483
+ var AccessLevelOptions = z11.object({
214
484
  accessLevel: JurisdictionFilter.optional()
215
485
  });
216
486
  var AllUserScopeOptions = AccessLevelOptions.extend({
217
487
  role: userRole.optional()
218
488
  });
219
- var WorkqueueOrDashboardOptions = z6.object({
220
- ids: z6.preprocess(
489
+ var WorkqueueOrDashboardOptions = z11.object({
490
+ ids: z11.preprocess(
221
491
  (val) => val === void 0 ? void 0 : [val].flat(),
222
- z6.array(z6.string())
492
+ z11.array(z11.string())
223
493
  ).describe("Must contain a list of workqueue or dashboard ids.")
224
494
  });
225
- var AllScopeOptions = z6.object({
495
+ var AllScopeOptions = z11.object({
226
496
  ...AllRecordScopeOptions.shape,
227
497
  ...AccessLevelOptions.shape,
228
498
  ...AllUserScopeOptions.shape,
229
499
  ...WorkqueueOrDashboardOptions.shape
230
500
  });
231
501
  var ScopeOptionKey = AllScopeOptions.keyof();
232
- var ResolvedScopeOptionsPlaceEvent = z6.object({
502
+ var ResolvedScopeOptionsPlaceEvent = z11.object({
233
503
  event: scopeByEvent,
234
- placeOfEvent: UUID.nullish()
504
+ placeOfEvent: UUID.nullish(),
505
+ createdBy: z11.string().optional(),
506
+ createdIn: UUID.nullish()
235
507
  }).describe(
236
508
  "Resolved options applicable to all record scopes, with location ID instead of jurisdiction filter."
237
509
  );
238
510
  var ResolvedScopeOptionsDeclared = ResolvedScopeOptionsPlaceEvent.extend({
239
511
  notifiedIn: UUID.nullish(),
240
- notifiedBy: z6.string().optional(),
512
+ notifiedBy: z11.string().optional(),
241
513
  declaredIn: UUID.nullish(),
242
- declaredBy: z6.string().optional()
514
+ declaredBy: z11.string().optional()
243
515
  }).describe(
244
516
  "Resolved options applicable to actions that may take place after DECLARE, with location ID and user ID instead of filters."
245
517
  );
246
518
  var ResolvedScopeOptionsFull = ResolvedScopeOptionsDeclared.extend({
247
519
  registeredIn: UUID.nullish(),
248
- registeredBy: z6.string().optional()
520
+ registeredBy: z11.string().optional(),
521
+ flags: ContainsFlags.optional()
249
522
  }).describe(
250
523
  "Resolved options applicable to actions that may take place after REGISTER, with full filtering capabilities and location/user IDs instead of filters."
251
524
  );
@@ -259,7 +532,6 @@ var ScopesWithDeclaredOptions = RecordScopeTypeV2.extract([
259
532
  "record.reject",
260
533
  "record.archive",
261
534
  "record.unarchive",
262
- "record.review-duplicates",
263
535
  "record.register"
264
536
  ]);
265
537
  var ScopesWithFullOptions = RecordScopeTypeV2.extract([
@@ -267,41 +539,53 @@ var ScopesWithFullOptions = RecordScopeTypeV2.extract([
267
539
  "record.read",
268
540
  "record.request-correction",
269
541
  "record.correct",
270
- "record.unassign-others"
542
+ "record.unassign-others",
543
+ "record.review-duplicates"
271
544
  ]);
272
545
  var ScopeOptionsPrintCertifiedCopies = AllRecordScopeOptions.extend({
273
- templates: z6.preprocess(
546
+ templates: z11.preprocess(
274
547
  (val) => val === void 0 ? void 0 : [val].flat(),
275
- z6.array(z6.string()).optional()
548
+ z11.array(z11.string()).optional()
276
549
  ).describe(
277
550
  "Template IDs for certified copies. Controls which certificate templates are returned to the client via the config service. Certificate printing is a client-side operation \u2014 this option is not validated when the printCertificate action is submitted."
278
551
  )
279
552
  });
280
- var RecordScopeV2 = z6.discriminatedUnion("type", [
281
- z6.object({
553
+ var ActionConfirmationScopeType = RecordScopeTypeV2.extract([
554
+ "record.action.accept",
555
+ "record.action.reject"
556
+ ]);
557
+ var ActionConfirmationScopeOptions = AllRecordScopeOptions.describe(
558
+ "Options for confirming (accepting or rejecting) an action."
559
+ );
560
+ var RecordScopeV2 = z11.discriminatedUnion("type", [
561
+ z11.object({
282
562
  type: ScopesWithPlaceEventOptions,
283
563
  options: scopeOptionsPlaceEvent.optional()
284
564
  }),
285
- z6.object({
565
+ z11.object({
286
566
  type: ScopesWithDeclaredOptions,
287
567
  options: scopeOptionsDeclaredOrNotified.optional()
288
568
  }),
289
- z6.object({
569
+ z11.object({
290
570
  type: ScopesWithFullOptions,
291
571
  options: AllRecordScopeOptions.optional()
292
572
  }),
293
- z6.object({
294
- type: z6.literal("record.custom-action"),
573
+ z11.object({
574
+ type: z11.literal("record.custom-action"),
295
575
  options: CustomActionScopeOptions.optional()
296
576
  }),
297
- z6.object({
298
- type: z6.literal("record.print-certified-copies"),
577
+ z11.object({
578
+ type: z11.literal("record.print-certified-copies"),
299
579
  options: ScopeOptionsPrintCertifiedCopies.optional()
580
+ }),
581
+ z11.object({
582
+ type: ActionConfirmationScopeType,
583
+ options: ActionConfirmationScopeOptions.optional()
300
584
  })
301
585
  ]).describe(
302
586
  "Scopes used to check user's permission to perform actions on a record."
303
587
  );
304
- var SystemScopeType = z6.enum([
588
+ var SystemScopeType = z11.enum([
305
589
  "organisation.read-locations",
306
590
  "user.read",
307
591
  "user.create",
@@ -315,61 +599,61 @@ var UserScopeType = SystemScopeType.extract([
315
599
  "user.search"
316
600
  ]);
317
601
  var ScopesWithRoleOption = UserScopeType.extract(["user.edit", "user.create"]);
318
- var UserScopeV2 = z6.discriminatedUnion("type", [
319
- z6.object({
602
+ var UserScopeV2 = z11.discriminatedUnion("type", [
603
+ z11.object({
320
604
  type: ScopesWithRoleOption,
321
605
  options: AllUserScopeOptions.optional()
322
606
  }),
323
- z6.object({
607
+ z11.object({
324
608
  type: UserScopeType.extract(["user.read", "user.search"]),
325
609
  options: AccessLevelOptions.optional()
326
610
  })
327
611
  ]);
328
- var ResolvedRecordScopeV2 = z6.discriminatedUnion("type", [
329
- z6.object({
612
+ var ResolvedRecordScopeV2 = z11.discriminatedUnion("type", [
613
+ z11.object({
330
614
  type: ScopesWithPlaceEventOptions,
331
615
  options: ResolvedScopeOptionsPlaceEvent.optional()
332
616
  }),
333
- z6.object({
617
+ z11.object({
334
618
  type: ScopesWithDeclaredOptions,
335
619
  options: ResolvedScopeOptionsDeclared.optional()
336
620
  }),
337
- z6.object({
621
+ z11.object({
338
622
  type: ScopesWithFullOptions,
339
623
  options: ResolvedScopeOptionsFull.optional()
340
624
  }),
341
- z6.object({
342
- type: z6.literal("record.print-certified-copies"),
625
+ z11.object({
626
+ type: z11.literal("record.print-certified-copies"),
343
627
  options: ResolvedScopeOptionsFull.extend({
344
- templates: z6.array(z6.string()).optional()
628
+ templates: z11.array(z11.string()).optional()
345
629
  }).optional()
346
630
  })
347
631
  ]).describe("Resolved scope with location/user IDs instead of filters.");
348
- var Scope2 = z6.discriminatedUnion("type", [
349
- z6.object({ type: PlainScopeType }),
632
+ var Scope2 = z11.discriminatedUnion("type", [
633
+ z11.object({ type: PlainScopeType }),
350
634
  ...RecordScopeV2.options,
351
635
  ...UserScopeV2.options,
352
- z6.object({
353
- type: z6.literal("organisation.read-locations"),
636
+ z11.object({
637
+ type: z11.literal("organisation.read-locations"),
354
638
  options: AccessLevelOptions.optional()
355
639
  }),
356
- z6.object({
357
- type: z6.literal("workqueue"),
640
+ z11.object({
641
+ type: z11.literal("workqueue"),
358
642
  options: WorkqueueOrDashboardOptions
359
643
  }),
360
- z6.object({
361
- type: z6.literal("dashboard.view"),
644
+ z11.object({
645
+ type: z11.literal("dashboard.view"),
362
646
  options: WorkqueueOrDashboardOptions
363
647
  })
364
648
  ]);
365
- var ScopeType2 = z6.enum([
649
+ var ScopeType2 = z11.enum([
366
650
  ...SystemScopeType.options,
367
651
  ...RecordScopeTypeV2.options,
368
652
  ...PlainScopeType.options,
369
653
  "workqueue",
370
654
  "dashboard.view"
371
655
  ]);
372
- var EncodedScope2 = z6.string().brand("EncodedScope");
656
+ var EncodedScope2 = z11.string().brand("EncodedScope");
373
657
  var DEFAULT_SCOPE_OPTIONS = {
374
658
  placeOfEvent: JurisdictionFilter.enum.all,
375
659
  accessLevel: JurisdictionFilter.enum.all,
@@ -1064,4 +1348,4 @@ function createFieldConditionals(fieldId) {
1064
1348
  }
1065
1349
 
1066
1350
  // src/conditionals/index.ts
1067
- z8.globalRegistry.clear();
1351
+ z13.globalRegistry.clear();
package/dist/csv.d.ts ADDED
@@ -0,0 +1,25 @@
1
+ export type CsvFile = {
2
+ header: string;
3
+ body: string[];
4
+ /** Preserved so a file written on Windows stays written on Windows. */
5
+ newline: string;
6
+ trailingNewline: boolean;
7
+ };
8
+ export declare function parseCsvLine(line: string): string[];
9
+ export declare function toCsvLine(values: string[]): string;
10
+ /**
11
+ * The id of a row, which is its first column. Translation ids never contain a
12
+ * comma or a quote, so this does not need the parser.
13
+ */
14
+ export declare function idOf(line: string): string;
15
+ export declare function readCsvFile(path: string): CsvFile | undefined;
16
+ export declare function writeCsvFile(path: string, file: CsvFile): void;
17
+ /**
18
+ * Adds the rows the file does not already have an id for, in place. Rows go in
19
+ * sorted position when the file is sorted by id, and at the end when it is not,
20
+ * so a country config that keeps its own order keeps it.
21
+ *
22
+ * Returns the ids that were added.
23
+ */
24
+ export declare function addRows(file: CsvFile, rows: string[]): string[];
25
+ //# sourceMappingURL=csv.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"csv.d.ts","sourceRoot":"","sources":["../src/csv.ts"],"names":[],"mappings":"AAuBA,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,uEAAuE;IACvE,OAAO,EAAE,MAAM,CAAA;IACf,eAAe,EAAE,OAAO,CAAA;CACzB,CAAA;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAiCnD;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAMlD;AAED;;;GAGG;AACH,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAKzC;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAe7D;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,CAM9D;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CA4B/D"}