@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
@@ -27,6 +27,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
27
27
  DECLARED: "DECLARED";
28
28
  NOTIFIED: "NOTIFIED";
29
29
  REGISTERED: "REGISTERED";
30
+ REVOKED: "REVOKED";
30
31
  }>>;
31
32
  }, z.core.$strip>, z.ZodObject<{
32
33
  type: z.ZodLiteral<"exact">;
@@ -36,6 +37,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
36
37
  DECLARED: "DECLARED";
37
38
  NOTIFIED: "NOTIFIED";
38
39
  REGISTERED: "REGISTERED";
40
+ REVOKED: "REVOKED";
39
41
  }>;
40
42
  }, z.core.$strip>]>>>;
41
43
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -138,6 +140,26 @@ export declare const WorkqueueConfig: z.ZodObject<{
138
140
  type: z.ZodLiteral<"exact">;
139
141
  term: z.ZodString;
140
142
  }, z.core.$strip>>>;
143
+ 'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
144
+ type: z.ZodLiteral<"within">;
145
+ location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
146
+ $userField: z.ZodEnum<{
147
+ administrativeAreaId: "administrativeAreaId";
148
+ avatar: "avatar";
149
+ device: "device";
150
+ firstname: "firstname";
151
+ fullHonorificName: "fullHonorificName";
152
+ id: "id";
153
+ middlename: "middlename";
154
+ name: "name";
155
+ primaryOfficeId: "primaryOfficeId";
156
+ role: "role";
157
+ signature: "signature";
158
+ surname: "surname";
159
+ }>;
160
+ $location: z.ZodOptional<z.ZodString>;
161
+ }, z.core.$strip>]>;
162
+ }, z.core.$strip>>>;
141
163
  createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
142
164
  type: z.ZodLiteral<"within">;
143
165
  location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
@@ -344,6 +366,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
344
366
  DECLARED: "DECLARED";
345
367
  NOTIFIED: "NOTIFIED";
346
368
  REGISTERED: "REGISTERED";
369
+ REVOKED: "REVOKED";
347
370
  }>>;
348
371
  }, z.core.$strip>, z.ZodObject<{
349
372
  type: z.ZodLiteral<"exact">;
@@ -353,6 +376,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
353
376
  DECLARED: "DECLARED";
354
377
  NOTIFIED: "NOTIFIED";
355
378
  REGISTERED: "REGISTERED";
379
+ REVOKED: "REVOKED";
356
380
  }>;
357
381
  }, z.core.$strip>]>>>;
358
382
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -455,6 +479,26 @@ export declare const WorkqueueConfig: z.ZodObject<{
455
479
  type: z.ZodLiteral<"exact">;
456
480
  term: z.ZodString;
457
481
  }, z.core.$strip>>>;
482
+ 'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
483
+ type: z.ZodLiteral<"within">;
484
+ location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
485
+ $userField: z.ZodEnum<{
486
+ administrativeAreaId: "administrativeAreaId";
487
+ avatar: "avatar";
488
+ device: "device";
489
+ firstname: "firstname";
490
+ fullHonorificName: "fullHonorificName";
491
+ id: "id";
492
+ middlename: "middlename";
493
+ name: "name";
494
+ primaryOfficeId: "primaryOfficeId";
495
+ role: "role";
496
+ signature: "signature";
497
+ surname: "surname";
498
+ }>;
499
+ $location: z.ZodOptional<z.ZodString>;
500
+ }, z.core.$strip>]>;
501
+ }, z.core.$strip>>>;
458
502
  createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
459
503
  type: z.ZodLiteral<"within">;
460
504
  location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
@@ -660,8 +704,10 @@ export declare const WorkqueueConfig: z.ZodObject<{
660
704
  PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
661
705
  READ: "READ";
662
706
  REGISTER: "REGISTER";
707
+ REINSTATE_REGISTRATION: "REINSTATE_REGISTRATION";
663
708
  REJECT: "REJECT";
664
709
  REQUEST_CORRECTION: "REQUEST_CORRECTION";
710
+ REVOKE_REGISTRATION: "REVOKE_REGISTRATION";
665
711
  UNARCHIVE: "UNARCHIVE";
666
712
  }>;
667
713
  }, z.core.$strip>>;
@@ -737,6 +783,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
737
783
  File: "File";
738
784
  FileArrowUp: "FileArrowUp";
739
785
  FileDotted: "FileDotted";
786
+ FileLock: "FileLock";
740
787
  FileMinus: "FileMinus";
741
788
  FilePlus: "FilePlus";
742
789
  FileSearch: "FileSearch";
@@ -811,8 +858,10 @@ export declare const WorkqueueConfigWithoutQuery: z.ZodObject<{
811
858
  PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
812
859
  READ: "READ";
813
860
  REGISTER: "REGISTER";
861
+ REINSTATE_REGISTRATION: "REINSTATE_REGISTRATION";
814
862
  REJECT: "REJECT";
815
863
  REQUEST_CORRECTION: "REQUEST_CORRECTION";
864
+ REVOKE_REGISTRATION: "REVOKE_REGISTRATION";
816
865
  UNARCHIVE: "UNARCHIVE";
817
866
  }>;
818
867
  }, z.core.$strip>>;
@@ -862,6 +911,7 @@ export declare const WorkqueueConfigWithoutQuery: z.ZodObject<{
862
911
  File: "File";
863
912
  FileArrowUp: "FileArrowUp";
864
913
  FileDotted: "FileDotted";
914
+ FileLock: "FileLock";
865
915
  FileMinus: "FileMinus";
866
916
  FilePlus: "FilePlus";
867
917
  FileSearch: "FileSearch";
@@ -936,8 +986,10 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
936
986
  PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
937
987
  READ: "READ";
938
988
  REGISTER: "REGISTER";
989
+ REINSTATE_REGISTRATION: "REINSTATE_REGISTRATION";
939
990
  REJECT: "REJECT";
940
991
  REQUEST_CORRECTION: "REQUEST_CORRECTION";
992
+ REVOKE_REGISTRATION: "REVOKE_REGISTRATION";
941
993
  UNARCHIVE: "UNARCHIVE";
942
994
  }>;
943
995
  }, z.core.$strip>>;
@@ -1013,6 +1065,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1013
1065
  File: "File";
1014
1066
  FileArrowUp: "FileArrowUp";
1015
1067
  FileDotted: "FileDotted";
1068
+ FileLock: "FileLock";
1016
1069
  FileMinus: "FileMinus";
1017
1070
  FilePlus: "FilePlus";
1018
1071
  FileSearch: "FileSearch";
@@ -1083,6 +1136,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1083
1136
  DECLARED: "DECLARED";
1084
1137
  NOTIFIED: "NOTIFIED";
1085
1138
  REGISTERED: "REGISTERED";
1139
+ REVOKED: "REVOKED";
1086
1140
  }>>;
1087
1141
  }, z.core.$strip>, z.ZodObject<{
1088
1142
  type: z.ZodLiteral<"exact">;
@@ -1092,6 +1146,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1092
1146
  DECLARED: "DECLARED";
1093
1147
  NOTIFIED: "NOTIFIED";
1094
1148
  REGISTERED: "REGISTERED";
1149
+ REVOKED: "REVOKED";
1095
1150
  }>;
1096
1151
  }, z.core.$strip>]>>>;
1097
1152
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -1194,6 +1249,26 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1194
1249
  type: z.ZodLiteral<"exact">;
1195
1250
  term: z.ZodString;
1196
1251
  }, z.core.$strip>>>;
1252
+ 'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
1253
+ type: z.ZodLiteral<"within">;
1254
+ location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1255
+ $userField: z.ZodEnum<{
1256
+ administrativeAreaId: "administrativeAreaId";
1257
+ avatar: "avatar";
1258
+ device: "device";
1259
+ firstname: "firstname";
1260
+ fullHonorificName: "fullHonorificName";
1261
+ id: "id";
1262
+ middlename: "middlename";
1263
+ name: "name";
1264
+ primaryOfficeId: "primaryOfficeId";
1265
+ role: "role";
1266
+ signature: "signature";
1267
+ surname: "surname";
1268
+ }>;
1269
+ $location: z.ZodOptional<z.ZodString>;
1270
+ }, z.core.$strip>]>;
1271
+ }, z.core.$strip>>>;
1197
1272
  createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1198
1273
  type: z.ZodLiteral<"within">;
1199
1274
  location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
@@ -1399,6 +1474,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1399
1474
  DECLARED: "DECLARED";
1400
1475
  NOTIFIED: "NOTIFIED";
1401
1476
  REGISTERED: "REGISTERED";
1477
+ REVOKED: "REVOKED";
1402
1478
  }>>;
1403
1479
  }, z.core.$strip>, z.ZodObject<{
1404
1480
  type: z.ZodLiteral<"exact">;
@@ -1408,6 +1484,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1408
1484
  DECLARED: "DECLARED";
1409
1485
  NOTIFIED: "NOTIFIED";
1410
1486
  REGISTERED: "REGISTERED";
1487
+ REVOKED: "REVOKED";
1411
1488
  }>;
1412
1489
  }, z.core.$strip>]>>>;
1413
1490
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -1510,6 +1587,26 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1510
1587
  type: z.ZodLiteral<"exact">;
1511
1588
  term: z.ZodString;
1512
1589
  }, z.core.$strip>>>;
1590
+ 'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
1591
+ type: z.ZodLiteral<"within">;
1592
+ location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1593
+ $userField: z.ZodEnum<{
1594
+ administrativeAreaId: "administrativeAreaId";
1595
+ avatar: "avatar";
1596
+ device: "device";
1597
+ firstname: "firstname";
1598
+ fullHonorificName: "fullHonorificName";
1599
+ id: "id";
1600
+ middlename: "middlename";
1601
+ name: "name";
1602
+ primaryOfficeId: "primaryOfficeId";
1603
+ role: "role";
1604
+ signature: "signature";
1605
+ surname: "surname";
1606
+ }>;
1607
+ $location: z.ZodOptional<z.ZodString>;
1608
+ }, z.core.$strip>]>;
1609
+ }, z.core.$strip>>>;
1513
1610
  createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1514
1611
  type: z.ZodLiteral<"within">;
1515
1612
  location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
@@ -1716,6 +1813,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1716
1813
  DECLARED: "DECLARED";
1717
1814
  NOTIFIED: "NOTIFIED";
1718
1815
  REGISTERED: "REGISTERED";
1816
+ REVOKED: "REVOKED";
1719
1817
  }>>;
1720
1818
  }, z.core.$strip>, z.ZodObject<{
1721
1819
  type: z.ZodLiteral<"exact">;
@@ -1725,6 +1823,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1725
1823
  DECLARED: "DECLARED";
1726
1824
  NOTIFIED: "NOTIFIED";
1727
1825
  REGISTERED: "REGISTERED";
1826
+ REVOKED: "REVOKED";
1728
1827
  }>;
1729
1828
  }, z.core.$strip>]>>>;
1730
1829
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -1827,6 +1926,26 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1827
1926
  type: z.ZodLiteral<"exact">;
1828
1927
  term: z.ZodString;
1829
1928
  }, z.core.$strip>>>;
1929
+ 'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
1930
+ type: z.ZodLiteral<"within">;
1931
+ location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1932
+ $userField: z.ZodEnum<{
1933
+ administrativeAreaId: "administrativeAreaId";
1934
+ avatar: "avatar";
1935
+ device: "device";
1936
+ firstname: "firstname";
1937
+ fullHonorificName: "fullHonorificName";
1938
+ id: "id";
1939
+ middlename: "middlename";
1940
+ name: "name";
1941
+ primaryOfficeId: "primaryOfficeId";
1942
+ role: "role";
1943
+ signature: "signature";
1944
+ surname: "surname";
1945
+ }>;
1946
+ $location: z.ZodOptional<z.ZodString>;
1947
+ }, z.core.$strip>]>;
1948
+ }, z.core.$strip>>>;
1830
1949
  createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1831
1950
  type: z.ZodLiteral<"within">;
1832
1951
  location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
@@ -2038,11 +2157,11 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
2038
2157
  clauses: {
2039
2158
  eventType?: string | undefined;
2040
2159
  status?: {
2041
- type: "anyOf";
2042
- terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[];
2043
- } | {
2044
2160
  type: "exact";
2045
- term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
2161
+ term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED";
2162
+ } | {
2163
+ type: "anyOf";
2164
+ terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
2046
2165
  } | undefined;
2047
2166
  createdAt?: {
2048
2167
  type: "range";
@@ -2103,6 +2222,13 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
2103
2222
  type: "exact";
2104
2223
  term: string;
2105
2224
  } | undefined;
2225
+ 'legalStatuses.REVOKED.createdAtLocation'?: {
2226
+ type: "within";
2227
+ location: string | {
2228
+ $userField: "administrativeAreaId" | "avatar" | "device" | "firstname" | "fullHonorificName" | "id" | "middlename" | "name" | "primaryOfficeId" | "role" | "signature" | "surname";
2229
+ $location?: string | undefined;
2230
+ };
2231
+ } | undefined;
2106
2232
  createdAtLocation?: {
2107
2233
  type: "within";
2108
2234
  location: string | {
@@ -2177,11 +2303,11 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
2177
2303
  clauses: {
2178
2304
  eventType?: string | undefined;
2179
2305
  status?: {
2180
- type: "anyOf";
2181
- terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[];
2182
- } | {
2183
2306
  type: "exact";
2184
- term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
2307
+ term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED";
2308
+ } | {
2309
+ type: "anyOf";
2310
+ terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
2185
2311
  } | undefined;
2186
2312
  createdAt?: {
2187
2313
  type: "range";
@@ -2242,6 +2368,13 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
2242
2368
  type: "exact";
2243
2369
  term: string;
2244
2370
  } | undefined;
2371
+ 'legalStatuses.REVOKED.createdAtLocation'?: {
2372
+ type: "within";
2373
+ location: string | {
2374
+ $userField: "administrativeAreaId" | "avatar" | "device" | "firstname" | "fullHonorificName" | "id" | "middlename" | "name" | "primaryOfficeId" | "role" | "signature" | "surname";
2375
+ $location?: string | undefined;
2376
+ };
2377
+ } | undefined;
2245
2378
  createdAtLocation?: {
2246
2379
  type: "within";
2247
2380
  location: string | {
@@ -2313,7 +2446,7 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
2313
2446
  }[];
2314
2447
  };
2315
2448
  action?: {
2316
- type: "ARCHIVE" | "DECLARE" | "DELETE" | "EDIT" | "MARK_AS_DUPLICATE" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REJECT" | "REQUEST_CORRECTION" | "UNARCHIVE";
2449
+ type: "ARCHIVE" | "DECLARE" | "DELETE" | "EDIT" | "MARK_AS_DUPLICATE" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE";
2317
2450
  } | undefined;
2318
2451
  columns: {
2319
2452
  label: {
@@ -2325,7 +2458,7 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
2325
2458
  $event: "assignedTo" | "createdAt" | "createdAtLocation" | "createdBy" | "createdByUserType" | "dateOfEvent" | "flags" | "id" | "legalStatuses" | "outbox" | "placeOfEvent" | "status" | "title" | "trackingId" | "type" | "updatedAt" | "updatedAtLocation" | "updatedBy" | "updatedByUserRole";
2326
2459
  };
2327
2460
  }[];
2328
- icon: "Activity" | "Archive" | "ArchiveBox" | "ArchiveTray" | "Archived" | "ArrowCircleDown" | "ArrowCounterClockwise" | "ArrowLeft" | "ArrowRight" | "Assigned" | "Briefcase" | "Buildings" | "CaretDown" | "CaretLeft" | "CaretRight" | "Certified" | "ChartActivity" | "ChartBar" | "ChartLine" | "ChatCircle" | "ChatText" | "Check" | "CheckSquare" | "Circle" | "CircleWavyCheck" | "CircleWavyQuestion" | "Clock" | "Close" | "Collapse" | "Compass" | "Copy" | "Database" | "DeviceTabletCamera" | "DotsThreeVertical" | "Draft" | "DuplicateYellow" | "Envelope" | "Expand" | "Export" | "ExternalValidate" | "Eye" | "EyeSlash" | "File" | "FileArrowUp" | "FileDotted" | "FileMinus" | "FilePlus" | "FileSearch" | "FileText" | "FileX" | "Files" | "FilledCheck" | "Fingerprint" | "Gear" | "GitBranch" | "Globe" | "Handshake" | "IdentificationCard" | "InReview" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "MapPin" | "Medal" | "NotePencil" | "Offline" | "PaperPlaneTilt" | "Paperclip" | "Pen" | "PenNib" | "Pencil" | "PencilCircle" | "PencilLine" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "PushPin" | "QrCode" | "Registered" | "RequiresUpdates" | "Sent" | "SignOut" | "Stamp" | "Star" | "Sun" | "Target" | "TextT" | "Timer" | "Trash" | "UploadSimple" | "User" | "UserCircle" | "UserPlus" | "Users" | "Validated" | "WaitingApproval" | "WarningCircle" | "Webcam" | "X";
2461
+ icon: "Activity" | "Archive" | "ArchiveBox" | "ArchiveTray" | "Archived" | "ArrowCircleDown" | "ArrowCounterClockwise" | "ArrowLeft" | "ArrowRight" | "Assigned" | "Briefcase" | "Buildings" | "CaretDown" | "CaretLeft" | "CaretRight" | "Certified" | "ChartActivity" | "ChartBar" | "ChartLine" | "ChatCircle" | "ChatText" | "Check" | "CheckSquare" | "Circle" | "CircleWavyCheck" | "CircleWavyQuestion" | "Clock" | "Close" | "Collapse" | "Compass" | "Copy" | "Database" | "DeviceTabletCamera" | "DotsThreeVertical" | "Draft" | "DuplicateYellow" | "Envelope" | "Expand" | "Export" | "ExternalValidate" | "Eye" | "EyeSlash" | "File" | "FileArrowUp" | "FileDotted" | "FileLock" | "FileMinus" | "FilePlus" | "FileSearch" | "FileText" | "FileX" | "Files" | "FilledCheck" | "Fingerprint" | "Gear" | "GitBranch" | "Globe" | "Handshake" | "IdentificationCard" | "InReview" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "MapPin" | "Medal" | "NotePencil" | "Offline" | "PaperPlaneTilt" | "Paperclip" | "Pen" | "PenNib" | "Pencil" | "PencilCircle" | "PencilLine" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "PushPin" | "QrCode" | "Registered" | "RequiresUpdates" | "Sent" | "SignOut" | "Stamp" | "Star" | "Sun" | "Target" | "TextT" | "Timer" | "Trash" | "UploadSimple" | "User" | "UserCircle" | "UserPlus" | "Users" | "Validated" | "WaitingApproval" | "WarningCircle" | "Webcam" | "X";
2329
2462
  emptyMessage?: {
2330
2463
  id: string;
2331
2464
  defaultMessage: string;
@@ -2349,11 +2482,11 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInputWithV19
2349
2482
  clauses: {
2350
2483
  eventType?: string | undefined;
2351
2484
  status?: {
2352
- type: "anyOf";
2353
- terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[];
2354
- } | {
2355
2485
  type: "exact";
2356
- term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
2486
+ term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED";
2487
+ } | {
2488
+ type: "anyOf";
2489
+ terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
2357
2490
  } | undefined;
2358
2491
  createdAt?: {
2359
2492
  type: "range";
@@ -2414,6 +2547,13 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInputWithV19
2414
2547
  type: "exact";
2415
2548
  term: string;
2416
2549
  } | undefined;
2550
+ 'legalStatuses.REVOKED.createdAtLocation'?: {
2551
+ type: "within";
2552
+ location: string | {
2553
+ $userField: "administrativeAreaId" | "avatar" | "device" | "firstname" | "fullHonorificName" | "id" | "middlename" | "name" | "primaryOfficeId" | "role" | "signature" | "surname";
2554
+ $location?: string | undefined;
2555
+ };
2556
+ } | undefined;
2417
2557
  createdAtLocation?: {
2418
2558
  type: "within";
2419
2559
  location: string | {
@@ -2488,11 +2628,11 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInputWithV19
2488
2628
  clauses: {
2489
2629
  eventType?: string | undefined;
2490
2630
  status?: {
2491
- type: "anyOf";
2492
- terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[];
2493
- } | {
2494
2631
  type: "exact";
2495
- term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
2632
+ term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED";
2633
+ } | {
2634
+ type: "anyOf";
2635
+ terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
2496
2636
  } | undefined;
2497
2637
  createdAt?: {
2498
2638
  type: "range";
@@ -2553,6 +2693,13 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInputWithV19
2553
2693
  type: "exact";
2554
2694
  term: string;
2555
2695
  } | undefined;
2696
+ 'legalStatuses.REVOKED.createdAtLocation'?: {
2697
+ type: "within";
2698
+ location: string | {
2699
+ $userField: "administrativeAreaId" | "avatar" | "device" | "firstname" | "fullHonorificName" | "id" | "middlename" | "name" | "primaryOfficeId" | "role" | "signature" | "surname";
2700
+ $location?: string | undefined;
2701
+ };
2702
+ } | undefined;
2556
2703
  createdAtLocation?: {
2557
2704
  type: "within";
2558
2705
  location: string | {
@@ -2624,7 +2771,7 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInputWithV19
2624
2771
  }[];
2625
2772
  };
2626
2773
  action?: {
2627
- type: "ARCHIVE" | "DECLARE" | "DELETE" | "EDIT" | "MARK_AS_DUPLICATE" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REJECT" | "REQUEST_CORRECTION" | "UNARCHIVE";
2774
+ type: "ARCHIVE" | "DECLARE" | "DELETE" | "EDIT" | "MARK_AS_DUPLICATE" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE";
2628
2775
  } | undefined;
2629
2776
  columns: {
2630
2777
  label: {
@@ -2636,7 +2783,7 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInputWithV19
2636
2783
  $event: "assignedTo" | "createdAt" | "createdAtLocation" | "createdBy" | "createdByUserType" | "dateOfEvent" | "flags" | "id" | "legalStatuses" | "outbox" | "placeOfEvent" | "status" | "title" | "trackingId" | "type" | "updatedAt" | "updatedAtLocation" | "updatedBy" | "updatedByUserRole";
2637
2784
  };
2638
2785
  }[];
2639
- icon: "Activity" | "Archive" | "ArchiveBox" | "ArchiveTray" | "Archived" | "ArrowCircleDown" | "ArrowCounterClockwise" | "ArrowLeft" | "ArrowRight" | "Assigned" | "Briefcase" | "Buildings" | "CaretDown" | "CaretLeft" | "CaretRight" | "Certified" | "ChartActivity" | "ChartBar" | "ChartLine" | "ChatCircle" | "ChatText" | "Check" | "CheckSquare" | "Circle" | "CircleWavyCheck" | "CircleWavyQuestion" | "Clock" | "Close" | "Collapse" | "Compass" | "Copy" | "Database" | "DeviceTabletCamera" | "DotsThreeVertical" | "Draft" | "DuplicateYellow" | "Envelope" | "Expand" | "Export" | "ExternalValidate" | "Eye" | "EyeSlash" | "File" | "FileArrowUp" | "FileDotted" | "FileMinus" | "FilePlus" | "FileSearch" | "FileText" | "FileX" | "Files" | "FilledCheck" | "Fingerprint" | "Gear" | "GitBranch" | "Globe" | "Handshake" | "IdentificationCard" | "InReview" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "MapPin" | "Medal" | "NotePencil" | "Offline" | "PaperPlaneTilt" | "Paperclip" | "Pen" | "PenNib" | "Pencil" | "PencilCircle" | "PencilLine" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "PushPin" | "QrCode" | "Registered" | "RequiresUpdates" | "Sent" | "SignOut" | "Stamp" | "Star" | "Sun" | "Target" | "TextT" | "Timer" | "Trash" | "UploadSimple" | "User" | "UserCircle" | "UserPlus" | "Users" | "Validated" | "WaitingApproval" | "WarningCircle" | "Webcam" | "X";
2786
+ icon: "Activity" | "Archive" | "ArchiveBox" | "ArchiveTray" | "Archived" | "ArrowCircleDown" | "ArrowCounterClockwise" | "ArrowLeft" | "ArrowRight" | "Assigned" | "Briefcase" | "Buildings" | "CaretDown" | "CaretLeft" | "CaretRight" | "Certified" | "ChartActivity" | "ChartBar" | "ChartLine" | "ChatCircle" | "ChatText" | "Check" | "CheckSquare" | "Circle" | "CircleWavyCheck" | "CircleWavyQuestion" | "Clock" | "Close" | "Collapse" | "Compass" | "Copy" | "Database" | "DeviceTabletCamera" | "DotsThreeVertical" | "Draft" | "DuplicateYellow" | "Envelope" | "Expand" | "Export" | "ExternalValidate" | "Eye" | "EyeSlash" | "File" | "FileArrowUp" | "FileDotted" | "FileLock" | "FileMinus" | "FilePlus" | "FileSearch" | "FileText" | "FileX" | "Files" | "FilledCheck" | "Fingerprint" | "Gear" | "GitBranch" | "Globe" | "Handshake" | "IdentificationCard" | "InReview" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "MapPin" | "Medal" | "NotePencil" | "Offline" | "PaperPlaneTilt" | "Paperclip" | "Pen" | "PenNib" | "Pencil" | "PencilCircle" | "PencilLine" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "PushPin" | "QrCode" | "Registered" | "RequiresUpdates" | "Sent" | "SignOut" | "Stamp" | "Star" | "Sun" | "Target" | "TextT" | "Timer" | "Trash" | "UploadSimple" | "User" | "UserCircle" | "UserPlus" | "Users" | "Validated" | "WaitingApproval" | "WarningCircle" | "Webcam" | "X";
2640
2787
  emptyMessage?: {
2641
2788
  id: string;
2642
2789
  defaultMessage: string;
@@ -1,6 +1,8 @@
1
1
  import { NonSearchableEventMetadataTimeFieldIdInput, AdvancedSearchConfig } from '../event-config/event-configuration';
2
2
  import { ActionType } from './ActionType';
3
3
  import { EventFieldIdInput } from './AdvancedSearchConfig';
4
+ import { EventStatus } from './EventMetadata';
5
+ import { Flag } from './Flag';
4
6
  import { WorkqueueColumnKeys, WorkqueueColumnValue } from './WorkqueueColumnConfig';
5
7
  /**
6
8
  * Creates a function that acts like a callable + static method container.
@@ -75,6 +77,16 @@ declare const event: typeof eventFn & {
75
77
  };
76
78
  };
77
79
  field(field: WorkqueueColumnKeys): WorkqueueColumnValue;
80
+ /**
81
+ * Checks if the event currently has the given status.
82
+ * @param eventStatus - The status to check for.
83
+ */
84
+ hasStatus: (eventStatus: EventStatus) => import("../conditionals/conditionals").JSONSchema;
85
+ /**
86
+ * Checks if the event currently carries the given flag.
87
+ * @param flagValue - The flag to check for.
88
+ */
89
+ hasFlag: (flagValue: Flag) => import("../conditionals/conditionals").JSONSchema;
78
90
  };
79
91
  export { event };
80
92
  //# sourceMappingURL=event.d.ts.map
@@ -1,8 +1,24 @@
1
1
  import * as z from 'zod/v4';
2
- import { EventConfig } from './EventConfig';
2
+ import { EventConfig, EventConfigInput } from './EventConfig';
3
3
  export declare function validateAdvancedSearchConfig(event: EventConfig, ctx: z.RefinementCtx<EventConfig>): void;
4
4
  export declare function validateDateOfEvent(event: EventConfig, ctx: z.RefinementCtx<EventConfig>): void;
5
5
  export declare function validatePlaceOfEvent(event: EventConfig, ctx: z.RefinementCtx<EventConfig>): void;
6
6
  export declare function validateActionFlags(event: EventConfig, ctx: z.RefinementCtx<EventConfig>): void;
7
7
  export declare function validateActionOrder(event: EventConfig, ctx: z.RefinementCtx<EventConfig>): void;
8
+ /**
9
+ * Runs on both the `defineConfig` input and the parsed `EventConfig`.
10
+ *
11
+ * @returns whether the event has exactly one DECLARE action.
12
+ */
13
+ export declare function validateExactlyOneDeclareAction<T extends {
14
+ id: string;
15
+ actions: Array<{
16
+ type: string;
17
+ }>;
18
+ }>(event: T, ctx: z.RefinementCtx<T>): boolean;
19
+ /**
20
+ * `declaration` must be given exactly once: at the top level (kept for backwards
21
+ * compatibility) or on the DECLARE action.
22
+ */
23
+ export declare function validateDeclarationGivenExactlyOnce(config: EventConfigInput, ctx: z.RefinementCtx<EventConfigInput>): void;
8
24
  //# sourceMappingURL=eventConfigValidation.d.ts.map
@@ -45,6 +45,7 @@ export * from './field';
45
45
  export * from './Flag';
46
46
  export * from './event';
47
47
  export * from './locations';
48
+ export * from './locationPayloads';
48
49
  export { UUID } from '../uuid';
49
50
  export { DocumentPath } from '../documents';
50
51
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,95 @@
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