@opencrvs/toolkit 2.1.0-rc.ffe0b7f → 2.2.0-rc.9042a13

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 (250) hide show
  1. package/README.md +2 -12
  2. package/build.sh +23 -5
  3. package/create-countryconfig/index.js +441 -59
  4. package/create-countryconfig/node_modules/.bin/degit +21 -0
  5. package/create-countryconfig/package.json +5 -2
  6. package/dist/application-config/index.js +391 -286
  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 +778 -0
  10. package/dist/cli.js +2041 -1311
  11. package/dist/commons/api/router.d.ts +2359 -485
  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 +131 -7
  16. package/dist/commons/events/ActionDocument.d.ts +123 -15
  17. package/dist/commons/events/ActionInput.d.ts +56 -4
  18. package/dist/commons/events/ActionStatus.d.ts +14 -0
  19. package/dist/commons/events/ActionType.d.ts +11 -1
  20. package/dist/commons/events/AdvancedSearchConfig.d.ts +60 -12
  21. package/dist/commons/events/AuditLog.d.ts +152 -0
  22. package/dist/commons/events/CountryConfigQueryInput.d.ts +132 -0
  23. package/dist/commons/events/Draft.d.ts +3 -21
  24. package/dist/commons/events/EventConfig.d.ts +29 -6
  25. package/dist/commons/events/EventDocument.d.ts +560 -4
  26. package/dist/commons/events/EventIndex.d.ts +23 -26
  27. package/dist/commons/events/EventMetadata.d.ts +24 -11
  28. package/dist/commons/events/EventStatus.d.ts +20 -0
  29. package/dist/commons/events/FieldConfig.d.ts +119 -63
  30. package/dist/commons/events/FieldTypeMapping.d.ts +17 -17
  31. package/dist/commons/events/FieldValue.d.ts +3 -2
  32. package/dist/commons/events/Flag.d.ts +42 -0
  33. package/dist/commons/events/FormConfig.d.ts +6 -0
  34. package/dist/commons/events/PageConfig.d.ts +4 -0
  35. package/dist/commons/events/PlainDate.d.ts +8 -0
  36. package/dist/commons/events/SummaryConfig.d.ts +249 -0
  37. package/dist/commons/events/WorkqueueConfig.d.ts +167 -20
  38. package/dist/commons/events/event.d.ts +12 -0
  39. package/dist/commons/events/eventConfigValidation.d.ts +17 -1
  40. package/dist/commons/events/index.d.ts +1 -0
  41. package/dist/commons/events/locationPayloads.d.ts +95 -0
  42. package/dist/commons/events/locations.d.ts +169 -26
  43. package/dist/commons/events/mocks.test.utils.d.ts +30 -0
  44. package/dist/commons/events/scopes.d.ts +23 -1
  45. package/dist/commons/events/state/index.d.ts +10 -2
  46. package/dist/commons/events/state/utils.d.ts +11 -1
  47. package/dist/commons/events/test.utils.d.ts +106 -26
  48. package/dist/commons/events/utils.d.ts +81 -18
  49. package/dist/commons/notification/UserNotifications.d.ts +28 -13
  50. package/dist/commons/notification/dispatch.d.ts +10 -0
  51. package/dist/commons/notification/index.d.ts +1 -0
  52. package/dist/conditionals/index.js +362 -65
  53. package/dist/csv.d.ts +25 -0
  54. package/dist/csv.d.ts.map +1 -0
  55. package/dist/csv.js +120 -0
  56. package/dist/environment/derived-variables.d.ts +18 -0
  57. package/dist/environment/derived-variables.d.ts.map +1 -1
  58. package/dist/environment/derived-variables.js +22 -1
  59. package/dist/environment/index.d.ts.map +1 -1
  60. package/dist/environment/index.js +2 -1
  61. package/dist/environment/logger.d.ts +15 -3
  62. package/dist/environment/logger.d.ts.map +1 -1
  63. package/dist/environment/manage-users.js +1 -1
  64. package/dist/environment/questions.d.ts.map +1 -1
  65. package/dist/environment/questions.js +20 -14
  66. package/dist/environment/setup-environment.d.ts +1 -1
  67. package/dist/environment/setup-environment.d.ts.map +1 -1
  68. package/dist/environment/setup-environment.js +610 -560
  69. package/dist/environment/swarm-to-k8s.js +3 -4
  70. package/dist/environment/templates.d.ts +0 -1
  71. package/dist/environment/templates.d.ts.map +1 -1
  72. package/dist/environment/templates.js +3 -8
  73. package/dist/environment/update-workflows.d.ts.map +1 -1
  74. package/dist/environment/update-workflows.js +4 -0
  75. package/dist/environment/utils.d.ts +0 -12
  76. package/dist/environment/utils.d.ts.map +1 -1
  77. package/dist/environment/utils.js +1 -28
  78. package/dist/events/index.js +7909 -7056
  79. package/dist/migrations/add-translations.d.ts +15 -0
  80. package/dist/migrations/add-translations.d.ts.map +1 -0
  81. package/dist/migrations/add-translations.js +151 -0
  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.0/rename-api-paths.d.ts → v2.1/enable-telemetry.d.ts} +1 -1
  86. package/dist/migrations/v2.1/enable-telemetry.d.ts.map +1 -0
  87. package/dist/migrations/v2.1/enable-telemetry.js +455 -0
  88. package/dist/migrations/v2.1/index.d.ts.map +1 -1
  89. package/dist/migrations/v2.1/index.js +47 -215
  90. package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts +17 -0
  91. package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts.map +1 -0
  92. package/dist/migrations/v2.1/migrate-infrastructure-to-assets.js +348 -0
  93. package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts +2 -0
  94. package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts.map +1 -0
  95. package/dist/migrations/v2.1/remove-metabase-package-installs.js +161 -0
  96. package/dist/migrations/{v2.0/migrate-scopes.d.ts → v2.1/remove-sentry.d.ts} +1 -1
  97. package/dist/migrations/v2.1/remove-sentry.d.ts.map +1 -0
  98. package/dist/migrations/v2.1/remove-sentry.js +354 -0
  99. package/dist/migrations/{v2.0/create-events-index.d.ts → v2.1/rename-trigger-paths.d.ts} +1 -1
  100. package/dist/migrations/v2.1/rename-trigger-paths.d.ts.map +1 -0
  101. package/dist/migrations/{v2.0/rename-api-paths.js → v2.1/rename-trigger-paths.js} +69 -40
  102. package/dist/migrations/v2.1/template-files.d.ts +8 -0
  103. package/dist/migrations/v2.1/template-files.d.ts.map +1 -0
  104. package/dist/migrations/v2.1/template-files.js +49 -0
  105. package/dist/migrations/v2.1/upgrade-tilt.d.ts +11 -0
  106. package/dist/migrations/v2.1/upgrade-tilt.d.ts.map +1 -0
  107. package/dist/migrations/v2.1/upgrade-tilt.js +139 -0
  108. package/dist/migrations/v2.2/index.d.ts +6 -0
  109. package/dist/migrations/v2.2/index.d.ts.map +1 -0
  110. package/dist/migrations/v2.2/index.js +456 -0
  111. package/dist/migrations/v2.2/read-declaration-through-helper.d.ts +39 -0
  112. package/dist/migrations/v2.2/read-declaration-through-helper.d.ts.map +1 -0
  113. package/dist/migrations/v2.2/read-declaration-through-helper.js +257 -0
  114. package/dist/notification/index.js +2090 -1456
  115. package/dist/scopes/index.d.ts +637 -36
  116. package/dist/scopes/index.js +364 -65
  117. package/dist/telemetry/index.d.ts +45 -0
  118. package/dist/telemetry/index.d.ts.map +1 -0
  119. package/dist/telemetry/index.js +43 -0
  120. package/dist/templates/charts-values/dependencies/values.yaml +8 -0
  121. package/dist/templates/charts-values/opencrvs-services/values.yaml +10 -3
  122. package/dist/templates/charts-values/opentelemetry/values.yaml +102 -0
  123. package/dist/templates/charts-values/traefik/values.yaml +25 -12
  124. package/dist/templates/countryconfig-template/.tiltignore +1 -0
  125. package/dist/templates/countryconfig-template/Dockerfile.assets +7 -0
  126. package/dist/templates/countryconfig-template/Tiltfile +112 -0
  127. package/dist/templates/countryconfig-template/assets/README.md +1 -0
  128. package/dist/templates/countryconfig-template/assets/clear-all-data-dev.sh +61 -0
  129. package/dist/templates/countryconfig-template/assets/deployment/deploy.sh +455 -0
  130. package/dist/templates/countryconfig-template/assets/deployment/reindex.sh +168 -0
  131. package/dist/templates/countryconfig-template/assets/deployment/validate-required-variables-in-compose-files.ts +67 -0
  132. package/dist/templates/countryconfig-template/assets/elasticsearch/reindex.sh +168 -0
  133. package/dist/templates/countryconfig-template/assets/metabase/README.md +34 -0
  134. package/dist/templates/countryconfig-template/assets/metabase/environment-configuration.sql +36 -0
  135. package/dist/templates/countryconfig-template/assets/metabase/initialize-database.sh +46 -0
  136. package/dist/templates/countryconfig-template/assets/metabase/metabase.init.db.sql +27737 -0
  137. package/dist/templates/countryconfig-template/assets/metabase/open-shell.sh +21 -0
  138. package/dist/templates/countryconfig-template/assets/metabase/package.json +13 -0
  139. package/dist/templates/countryconfig-template/assets/metabase/run-dev.sh +108 -0
  140. package/dist/templates/countryconfig-template/assets/metabase/run.sh +120 -0
  141. package/dist/templates/countryconfig-template/assets/metabase/update-database.sh +40 -0
  142. package/dist/templates/countryconfig-template/assets/postgres/setup-analytics.sh +135 -0
  143. package/dist/templates/countryconfig-template/assets/postgres/setup-reference-data.sh +108 -0
  144. package/dist/templates/countryconfig-template/tilt/clear-all-data.ps1 +50 -0
  145. package/dist/templates/countryconfig-template/tilt/clear-all-data.sh +35 -0
  146. package/dist/templates/countryconfig-template/tilt/common.tilt +145 -0
  147. package/dist/templates/countryconfig-template/tilt/examples/dependencies/values.yaml +15 -0
  148. package/dist/templates/countryconfig-template/tilt/examples/opencrvs-services/values.yaml +56 -0
  149. package/dist/templates/countryconfig-template/tilt/examples/traefik/values-minikube.yaml +21 -0
  150. package/dist/templates/countryconfig-template/tilt/examples/traefik/values.yaml +38 -0
  151. package/dist/templates/countryconfig-template/tilt/helm/dependencies/values.yaml +17 -0
  152. package/dist/templates/countryconfig-template/tilt/helm/opencrvs-services/values.yaml +16 -0
  153. package/dist/templates/countryconfig-template/tilt/lib.tilt +95 -0
  154. package/dist/templates/countryconfig-template/tilt/opencrvs.tilt +136 -0
  155. package/dist/templates/inventory/inventory.template.yml +1 -3
  156. package/dist/translations/template.d.ts +11 -0
  157. package/dist/translations/template.d.ts.map +1 -0
  158. package/dist/translations/template.js +100 -0
  159. package/dist/verify/endpoints.d.ts +2 -0
  160. package/dist/verify/endpoints.d.ts.map +1 -0
  161. package/dist/verify/endpoints.js +510 -0
  162. package/opencrvs-toolkit-2.2.0-rc.9042a13.tgz +0 -0
  163. package/package.json +13 -7
  164. package/tsconfig.build.json +11 -0
  165. package/tsconfig.build.tsbuildinfo +1 -0
  166. package/tsconfig.json +3 -0
  167. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts +0 -3
  168. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +0 -1
  169. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +0 -429
  170. package/dist/migrations/v2.0/add-resend-invite-notification.d.ts +0 -3
  171. package/dist/migrations/v2.0/add-resend-invite-notification.d.ts.map +0 -1
  172. package/dist/migrations/v2.0/add-resend-invite-notification.js +0 -373
  173. package/dist/migrations/v2.0/checkout-upstream-files.d.ts +0 -22
  174. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +0 -1
  175. package/dist/migrations/v2.0/checkout-upstream-files.js +0 -146
  176. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts +0 -2
  177. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +0 -1
  178. package/dist/migrations/v2.0/convert-config-files-to-ts.js +0 -838
  179. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts +0 -3
  180. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +0 -1
  181. package/dist/migrations/v2.0/convert-paragraph-to-heading.js +0 -158
  182. package/dist/migrations/v2.0/create-events-index.d.ts.map +0 -1
  183. package/dist/migrations/v2.0/create-events-index.js +0 -325
  184. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts +0 -11
  185. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts.map +0 -1
  186. package/dist/migrations/v2.0/delete-infrastructure-directory.js +0 -123
  187. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.d.ts +0 -3
  188. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.d.ts.map +0 -1
  189. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.js +0 -110
  190. package/dist/migrations/v2.0/index.d.ts +0 -13
  191. package/dist/migrations/v2.0/index.d.ts.map +0 -1
  192. package/dist/migrations/v2.0/index.js +0 -103
  193. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts +0 -3
  194. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +0 -1
  195. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +0 -432
  196. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts +0 -13
  197. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts.map +0 -1
  198. package/dist/migrations/v2.0/merge-infrastructure-directory.js +0 -222
  199. package/dist/migrations/v2.0/migrate-application-config-url.d.ts +0 -3
  200. package/dist/migrations/v2.0/migrate-application-config-url.d.ts.map +0 -1
  201. package/dist/migrations/v2.0/migrate-application-config-url.js +0 -343
  202. package/dist/migrations/v2.0/migrate-scopes.d.ts.map +0 -1
  203. package/dist/migrations/v2.0/migrate-scopes.js +0 -305
  204. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts +0 -3
  205. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +0 -1
  206. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +0 -267
  207. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts +0 -3
  208. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +0 -1
  209. package/dist/migrations/v2.0/migrate-workqueue-configs.js +0 -317
  210. package/dist/migrations/v2.0/remove-delete-actions.d.ts +0 -3
  211. package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +0 -1
  212. package/dist/migrations/v2.0/remove-delete-actions.js +0 -156
  213. package/dist/migrations/v2.0/remove-demo-scope.d.ts +0 -3
  214. package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +0 -1
  215. package/dist/migrations/v2.0/remove-demo-scope.js +0 -74
  216. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts +0 -3
  217. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +0 -1
  218. package/dist/migrations/v2.0/remove-deprecated-imports.js +0 -96
  219. package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts +0 -3
  220. package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts.map +0 -1
  221. package/dist/migrations/v2.0/remove-fhir-url-helpers.js +0 -163
  222. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts +0 -3
  223. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +0 -1
  224. package/dist/migrations/v2.0/remove-hearth-migrations.js +0 -87
  225. package/dist/migrations/v2.0/remove-old-statistics-service.d.ts +0 -3
  226. package/dist/migrations/v2.0/remove-old-statistics-service.d.ts.map +0 -1
  227. package/dist/migrations/v2.0/remove-old-statistics-service.js +0 -356
  228. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts +0 -3
  229. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +0 -1
  230. package/dist/migrations/v2.0/remove-pending-certification-flag.js +0 -109
  231. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts +0 -3
  232. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +0 -1
  233. package/dist/migrations/v2.0/remove-review-from-register-action.js +0 -163
  234. package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts +0 -3
  235. package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts.map +0 -1
  236. package/dist/migrations/v2.0/remove-unused-environment-variables.js +0 -186
  237. package/dist/migrations/v2.0/rename-api-paths.d.ts.map +0 -1
  238. package/dist/migrations/v2.0/rename-location-parent-id.d.ts +0 -3
  239. package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +0 -1
  240. package/dist/migrations/v2.0/rename-location-parent-id.js +0 -180
  241. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts +0 -3
  242. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts.map +0 -1
  243. package/dist/migrations/v2.0/simplify-analytics-precalculations.js +0 -195
  244. package/dist/migrations/v2.0/update-package-json.d.ts +0 -3
  245. package/dist/migrations/v2.0/update-package-json.d.ts.map +0 -1
  246. package/dist/migrations/v2.0/update-package-json.js +0 -105
  247. package/dist/templates/inventory/production.example.yml +0 -77
  248. package/dist/templates/inventory/qa.example.yml +0 -48
  249. package/opencrvs-toolkit-2.1.0-rc.ffe0b7f.tgz +0 -0
  250. package/tsconfig.tsbuildinfo +0 -1
@@ -1,4 +1,5 @@
1
1
  import { z, ZodType } from 'zod/v4';
2
+ export { ContainsFlags } from './Flag';
2
3
  export declare const EventIndex: z.ZodObject<{
3
4
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
4
5
  type: z.ZodString;
@@ -8,6 +9,7 @@ export declare const EventIndex: z.ZodObject<{
8
9
  DECLARED: "DECLARED";
9
10
  NOTIFIED: "NOTIFIED";
10
11
  REGISTERED: "REGISTERED";
12
+ REVOKED: "REVOKED";
11
13
  }>;
12
14
  legalStatuses: z.ZodObject<{
13
15
  NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -44,6 +46,17 @@ export declare const EventIndex: z.ZodObject<{
44
46
  createdByRole: z.ZodOptional<z.ZodString>;
45
47
  registrationNumber: z.ZodString;
46
48
  }, z.core.$strip>>>;
49
+ REVOKED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
50
+ createdAt: z.ZodISODateTime;
51
+ createdBy: z.ZodString;
52
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
53
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
54
+ system: "system";
55
+ user: "user";
56
+ }>>>;
57
+ acceptedAt: z.ZodISODateTime;
58
+ createdByRole: z.ZodOptional<z.ZodString>;
59
+ }, z.core.$strip>>>;
47
60
  }, z.core.$strip>;
48
61
  createdAt: z.ZodISODateTime;
49
62
  dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
@@ -95,6 +108,7 @@ export declare const ExactStatus: z.ZodObject<{
95
108
  DECLARED: "DECLARED";
96
109
  NOTIFIED: "NOTIFIED";
97
110
  REGISTERED: "REGISTERED";
111
+ REVOKED: "REVOKED";
98
112
  }>;
99
113
  }, z.core.$strip>;
100
114
  export declare const ExactUserType: z.ZodObject<{
@@ -116,6 +130,7 @@ export declare const AnyOfStatus: z.ZodObject<{
116
130
  DECLARED: "DECLARED";
117
131
  NOTIFIED: "NOTIFIED";
118
132
  REGISTERED: "REGISTERED";
133
+ REVOKED: "REVOKED";
119
134
  }>>;
120
135
  }, z.core.$strip>;
121
136
  export declare const Range: z.ZodObject<{
@@ -123,29 +138,6 @@ export declare const Range: z.ZodObject<{
123
138
  gte: z.ZodString;
124
139
  lte: z.ZodString;
125
140
  }, z.core.$strip>;
126
- export declare const ContainsFlags: z.ZodObject<{
127
- anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
128
- readonly INCOMPLETE: 'incomplete';
129
- readonly REJECTED: 'rejected';
130
- readonly CORRECTION_REQUESTED: 'correction-requested';
131
- readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
132
- readonly EDIT_IN_PROGRESS: 'edit-in-progress';
133
- }>]>, z.ZodString]>>>;
134
- noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
135
- readonly INCOMPLETE: 'incomplete';
136
- readonly REJECTED: 'rejected';
137
- readonly CORRECTION_REQUESTED: 'correction-requested';
138
- readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
139
- readonly EDIT_IN_PROGRESS: 'edit-in-progress';
140
- }>]>, z.ZodString]>>>;
141
- allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
142
- readonly INCOMPLETE: 'incomplete';
143
- readonly REJECTED: 'rejected';
144
- readonly CORRECTION_REQUESTED: 'correction-requested';
145
- readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
146
- readonly EDIT_IN_PROGRESS: 'edit-in-progress';
147
- }>]>, z.ZodString]>>>;
148
- }, z.core.$strip>;
149
141
  export declare const Within: z.ZodObject<{
150
142
  type: z.ZodLiteral<"within">;
151
143
  location: z.ZodString;
@@ -189,6 +181,7 @@ export declare const QueryExpression: z.ZodObject<{
189
181
  DECLARED: "DECLARED";
190
182
  NOTIFIED: "NOTIFIED";
191
183
  REGISTERED: "REGISTERED";
184
+ REVOKED: "REVOKED";
192
185
  }>>;
193
186
  }, z.core.$strip>, z.ZodObject<{
194
187
  type: z.ZodLiteral<"exact">;
@@ -198,6 +191,7 @@ export declare const QueryExpression: z.ZodObject<{
198
191
  DECLARED: "DECLARED";
199
192
  NOTIFIED: "NOTIFIED";
200
193
  REGISTERED: "REGISTERED";
194
+ REVOKED: "REVOKED";
201
195
  }>;
202
196
  }, z.core.$strip>]>>>;
203
197
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -268,6 +262,10 @@ export declare const QueryExpression: z.ZodObject<{
268
262
  type: z.ZodLiteral<"exact">;
269
263
  term: z.ZodString;
270
264
  }, z.core.$strip>>>;
265
+ 'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
266
+ type: z.ZodLiteral<"within">;
267
+ location: z.ZodString;
268
+ }, z.core.$strip>>>>;
271
269
  createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
272
270
  type: z.ZodLiteral<"within">;
273
271
  location: z.ZodString;
@@ -340,10 +338,10 @@ export type QueryTypeShape = {
340
338
  };
341
339
  export declare const QueryType: z.ZodType<QueryTypeShape>;
342
340
  export declare const SearchQuery: z.ZodObject<{
343
- query: z.ZodPipe<z.ZodTransform<any, unknown>, ZodType<QueryTypeShape, unknown, z.core.$ZodTypeInternals<QueryTypeShape, unknown>>>;
341
+ query: z.ZodPreprocess<ZodType<QueryTypeShape, unknown, z.core.$ZodTypeInternals<QueryTypeShape, unknown>>>;
344
342
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
345
343
  offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
346
- sort: z.ZodOptional<z.ZodPipe<z.ZodTransform<any, unknown>, z.ZodArray<z.ZodObject<{
344
+ sort: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodObject<{
347
345
  field: z.ZodString;
348
346
  direction: z.ZodDefault<z.ZodEnum<{
349
347
  asc: "asc";
@@ -354,5 +352,4 @@ export declare const SearchQuery: z.ZodObject<{
354
352
  export type SearchQuery = z.infer<typeof SearchQuery>;
355
353
  export type QueryType = z.infer<typeof QueryType>;
356
354
  export type QueryExpression = z.infer<typeof QueryExpression>;
357
- export {};
358
355
  //# sourceMappingURL=EventIndex.d.ts.map
@@ -1,16 +1,6 @@
1
1
  import * as z from 'zod/v4';
2
2
  import { TranslationConfig } from './TranslationConfig';
3
- /**
4
- * Event statuses recognized by the system
5
- */
6
- export declare const EventStatus: z.ZodEnum<{
7
- ARCHIVED: "ARCHIVED";
8
- CREATED: "CREATED";
9
- DECLARED: "DECLARED";
10
- NOTIFIED: "NOTIFIED";
11
- REGISTERED: "REGISTERED";
12
- }>;
13
- export type EventStatus = z.infer<typeof EventStatus>;
3
+ export { EventStatus } from './EventStatus';
14
4
  export declare const ZodDate: z.ZodISODate;
15
5
  export declare const ZodDateTime: z.ZodString;
16
6
  export declare const ActionCreationMetadata: z.ZodObject<{
@@ -73,6 +63,17 @@ export declare const LegalStatuses: z.ZodObject<{
73
63
  createdByRole: z.ZodOptional<z.ZodString>;
74
64
  registrationNumber: z.ZodString;
75
65
  }, z.core.$strip>>>;
66
+ REVOKED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
67
+ createdAt: z.ZodISODateTime;
68
+ createdBy: z.ZodString;
69
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
70
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
71
+ system: "system";
72
+ user: "user";
73
+ }>>>;
74
+ acceptedAt: z.ZodISODateTime;
75
+ createdByRole: z.ZodOptional<z.ZodString>;
76
+ }, z.core.$strip>>>;
76
77
  }, z.core.$strip>;
77
78
  /**
78
79
  * Event metadata exposed to client.
@@ -88,6 +89,7 @@ export declare const EventMetadata: z.ZodObject<{
88
89
  DECLARED: "DECLARED";
89
90
  NOTIFIED: "NOTIFIED";
90
91
  REGISTERED: "REGISTERED";
92
+ REVOKED: "REVOKED";
91
93
  }>;
92
94
  legalStatuses: z.ZodObject<{
93
95
  NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -124,6 +126,17 @@ export declare const EventMetadata: z.ZodObject<{
124
126
  createdByRole: z.ZodOptional<z.ZodString>;
125
127
  registrationNumber: z.ZodString;
126
128
  }, z.core.$strip>>>;
129
+ REVOKED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
130
+ createdAt: z.ZodISODateTime;
131
+ createdBy: z.ZodString;
132
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
133
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
134
+ system: "system";
135
+ user: "user";
136
+ }>>>;
137
+ acceptedAt: z.ZodISODateTime;
138
+ createdByRole: z.ZodOptional<z.ZodString>;
139
+ }, z.core.$strip>>>;
127
140
  }, z.core.$strip>;
128
141
  createdAt: z.ZodISODateTime;
129
142
  dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
@@ -0,0 +1,20 @@
1
+ import * as z from 'zod/v4';
2
+ /**
3
+ * Event statuses recognized by the system
4
+ *
5
+ * Deliberately kept in its own dependency-free module: `EventMetadata.ts`
6
+ * pulls in `ActionDocument.ts`, which imports back from `../authentication`.
7
+ * `../scopes` needs `EventStatus` and is itself imported by
8
+ * `../authentication`, so importing it from `EventMetadata.ts` there would
9
+ * complete that cycle and break module initialization order.
10
+ */
11
+ export declare const EventStatus: z.ZodEnum<{
12
+ ARCHIVED: "ARCHIVED";
13
+ CREATED: "CREATED";
14
+ DECLARED: "DECLARED";
15
+ NOTIFIED: "NOTIFIED";
16
+ REGISTERED: "REGISTERED";
17
+ REVOKED: "REVOKED";
18
+ }>;
19
+ export type EventStatus = z.infer<typeof EventStatus>;
20
+ //# sourceMappingURL=EventStatus.d.ts.map