@opencrvs/toolkit 2.2.0-rc.ab91cce → 2.2.0-rc.e6591c5

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 (252) hide show
  1. package/build.sh +17 -14
  2. package/dist/application-config/index.js +57 -14
  3. package/dist/authentication/index.d.ts +2 -1
  4. package/dist/authentication/index.js +34 -14
  5. package/dist/cli.js +2631 -377
  6. package/dist/commons/api/router.d.ts +1564 -248
  7. package/dist/commons/application-config/index.d.ts +3 -3
  8. package/dist/commons/conditionals/conditionals.d.ts +7 -7
  9. package/dist/commons/conditionals/index.d.ts +1 -0
  10. package/dist/commons/conditionals/validate.d.ts +6 -1
  11. package/dist/commons/events/ActionConfig.d.ts +68 -21
  12. package/dist/commons/events/ActionDocument.d.ts +89 -0
  13. package/dist/commons/events/ActionInput.d.ts +56 -4
  14. package/dist/commons/events/ActionStatus.d.ts +2 -2
  15. package/dist/commons/events/ActionType.d.ts +13 -1
  16. package/dist/commons/events/AdvancedSearchConfig.d.ts +15 -0
  17. package/dist/commons/events/AuditLog.d.ts +4 -0
  18. package/dist/commons/events/CompositeFieldValue.d.ts +5 -1
  19. package/dist/commons/events/CountryConfigQueryInput.d.ts +192 -18
  20. package/dist/commons/events/Draft.d.ts +36 -1
  21. package/dist/commons/events/EventConfig.d.ts +448 -1
  22. package/dist/commons/events/EventDocument.d.ts +90 -0
  23. package/dist/commons/events/EventIndex.d.ts +44 -6
  24. package/dist/commons/events/EventInput.d.ts +1 -0
  25. package/dist/commons/events/EventMetadata.d.ts +24 -1
  26. package/dist/commons/events/EventStatus.d.ts +1 -0
  27. package/dist/commons/events/FieldConfig.d.ts +11 -1
  28. package/dist/commons/events/FieldTypeMapping.d.ts +17 -17
  29. package/dist/commons/events/Flag.d.ts +1 -7
  30. package/dist/commons/events/PlainDate.d.ts +6 -0
  31. package/dist/commons/events/WorkqueueConfig.d.ts +224 -33
  32. package/dist/commons/events/defineConfig.d.ts +7 -2
  33. package/dist/commons/events/event.d.ts +4 -1
  34. package/dist/commons/events/eventConfigValidation.d.ts +9 -0
  35. package/dist/commons/events/field.d.ts +5 -0
  36. package/dist/commons/events/index.d.ts +3 -0
  37. package/dist/commons/events/locations.d.ts +1 -1
  38. package/dist/commons/events/scopes.d.ts +4 -1
  39. package/dist/commons/events/state/flags.d.ts +1 -1
  40. package/dist/commons/events/state/index.d.ts +11 -2
  41. package/dist/commons/events/state/utils.d.ts +11 -1
  42. package/dist/commons/events/test.utils.d.ts +85 -8
  43. package/dist/commons/events/toNotificationForm.d.ts +17 -0
  44. package/dist/commons/events/utils.d.ts +88 -8
  45. package/dist/commons/users/Role.d.ts +23 -0
  46. package/dist/commons/users/User.d.ts +263 -0
  47. package/dist/commons/users/authentication.d.ts +67 -0
  48. package/dist/commons/users/index.d.ts +5 -0
  49. package/dist/commons/users/roleValidations.d.ts +15 -0
  50. package/dist/commons/users/scopes.d.ts +1402 -0
  51. package/dist/commons/users/userReferences.d.ts +176 -0
  52. package/dist/conditionals/index.js +19 -7
  53. package/dist/configurator/index.d.ts +24 -0
  54. package/dist/configurator/index.d.ts.map +1 -0
  55. package/dist/configurator/index.js +161 -0
  56. package/dist/configurator/layout.d.ts +29 -0
  57. package/dist/configurator/layout.d.ts.map +1 -0
  58. package/dist/configurator/layout.js +78 -0
  59. package/dist/configurator/paths.d.ts +13 -0
  60. package/dist/configurator/paths.d.ts.map +1 -0
  61. package/dist/configurator/paths.js +48 -0
  62. package/dist/configurator/server/environments.d.ts +20 -0
  63. package/dist/configurator/server/environments.d.ts.map +1 -0
  64. package/dist/configurator/server/environments.js +143 -0
  65. package/dist/configurator/server/files.d.ts +11 -0
  66. package/dist/configurator/server/files.d.ts.map +1 -0
  67. package/dist/configurator/server/files.js +67 -0
  68. package/dist/configurator/server/github.d.ts +56 -0
  69. package/dist/configurator/server/github.d.ts.map +1 -0
  70. package/dist/configurator/server/github.js +239 -0
  71. package/dist/configurator/server/plugin.d.ts +39 -0
  72. package/dist/configurator/server/plugin.d.ts.map +1 -0
  73. package/dist/configurator/server/plugin.js +298 -0
  74. package/dist/configurator/server/seal.d.ts +2 -0
  75. package/dist/configurator/server/seal.d.ts.map +1 -0
  76. package/dist/configurator/server/seal.js +36 -0
  77. package/dist/configurator/server/sshKeys.d.ts +5 -0
  78. package/dist/configurator/server/sshKeys.d.ts.map +1 -0
  79. package/dist/configurator/server/sshKeys.js +28 -0
  80. package/dist/configurator/server/start.d.ts +12 -0
  81. package/dist/configurator/server/start.d.ts.map +1 -0
  82. package/dist/configurator/server/start.js +91 -0
  83. package/dist/configurator/testing.d.ts +11 -0
  84. package/dist/configurator/testing.d.ts.map +1 -0
  85. package/dist/configurator/testing.js +74 -0
  86. package/dist/configurator/ui/bindings/bindings.d.ts +35 -0
  87. package/dist/configurator/ui/bindings/bindings.d.ts.map +1 -0
  88. package/dist/configurator/ui/bindings/bindings.js +5 -0
  89. package/dist/configurator/ui/bindings/parsers.d.ts +7 -0
  90. package/dist/configurator/ui/bindings/parsers.d.ts.map +1 -0
  91. package/dist/configurator/ui/bindings/parsers.js +85 -0
  92. package/dist/configurator/ui/form/users.d.ts +11 -0
  93. package/dist/configurator/ui/form/users.d.ts.map +1 -0
  94. package/dist/configurator/ui/form/users.js +33 -0
  95. package/dist/configurator/ui/plan/dependencyHosts.d.ts +2 -0
  96. package/dist/configurator/ui/plan/dependencyHosts.d.ts.map +1 -0
  97. package/dist/configurator/ui/plan/dependencyHosts.js +36 -0
  98. package/dist/configurator/ui/plan/templateValues.d.ts +11 -0
  99. package/dist/configurator/ui/plan/templateValues.d.ts.map +1 -0
  100. package/dist/configurator/ui/plan/templateValues.js +70 -0
  101. package/dist/configurator/workflows.d.ts +54 -0
  102. package/dist/configurator/workflows.d.ts.map +1 -0
  103. package/dist/configurator/workflows.js +161 -0
  104. package/dist/configurator-assets/forms/bindings.yml +265 -0
  105. package/dist/configurator-assets/templates/README.md +18 -0
  106. package/dist/configurator-assets/templates/charts-values/dependencies/values.override.yaml +4 -0
  107. package/dist/configurator-assets/templates/charts-values/dependencies/values.yaml +96 -0
  108. package/dist/configurator-assets/templates/charts-values/opencrvs-services/values.override.yaml +4 -0
  109. package/dist/configurator-assets/templates/charts-values/opencrvs-services/values.yaml +83 -0
  110. package/dist/configurator-assets/templates/charts-values/opentelemetry/values.yaml +102 -0
  111. package/dist/configurator-assets/templates/charts-values/traefik/values.override.yaml +4 -0
  112. package/dist/configurator-assets/templates/charts-values/traefik/values.yaml +130 -0
  113. package/dist/configurator-assets/templates/inventory/inventory.template.yml +98 -0
  114. package/dist/configurator-assets/ui/apple-touch-icon.png +0 -0
  115. package/dist/configurator-assets/ui/assets/index-CaqYFJUk.css +6 -0
  116. package/dist/configurator-assets/ui/assets/index-DU1Y6E0b.js +169 -0
  117. package/dist/configurator-assets/ui/assets/opencrvs-logo-sIjz08HT.svg +1 -0
  118. package/dist/configurator-assets/ui/assets/poppins-400-BwTUGeWf.woff2 +0 -0
  119. package/dist/configurator-assets/ui/assets/poppins-500-CWICHMj6.woff2 +0 -0
  120. package/dist/configurator-assets/ui/assets/poppins-600-DJVo7c07.woff2 +0 -0
  121. package/dist/configurator-assets/ui/assets/poppins-700-g9MkRaG0.woff2 +0 -0
  122. package/dist/configurator-assets/ui/favicon-32x32.png +0 -0
  123. package/dist/configurator-assets/ui/index.html +25 -0
  124. package/dist/environment/custom-types.d.ts +1 -0
  125. package/dist/environment/custom-types.d.ts.map +1 -1
  126. package/dist/environment/derived-variables.d.ts +18 -4
  127. package/dist/environment/derived-variables.d.ts.map +1 -1
  128. package/dist/environment/derived-variables.js +20 -4
  129. package/dist/environment/questions.d.ts +42 -9
  130. package/dist/environment/questions.d.ts.map +1 -1
  131. package/dist/environment/questions.js +71 -48
  132. package/dist/environment/registry.d.ts +15 -0
  133. package/dist/environment/registry.d.ts.map +1 -0
  134. package/dist/environment/registry.js +112 -0
  135. package/dist/environment/setup-environment.d.ts.map +1 -1
  136. package/dist/environment/setup-environment.js +145 -25
  137. package/dist/environment/templates.d.ts.map +1 -1
  138. package/dist/events/index.js +957 -215
  139. package/dist/migrations/add-notify-config.d.ts +40 -0
  140. package/dist/migrations/add-notify-config.d.ts.map +1 -0
  141. package/dist/migrations/add-notify-config.js +249 -0
  142. package/dist/migrations/index.d.ts +9 -0
  143. package/dist/migrations/index.d.ts.map +1 -0
  144. package/dist/migrations/index.js +1306 -0
  145. package/dist/migrations/move-declaration-to-declare-action.d.ts +38 -0
  146. package/dist/migrations/move-declaration-to-declare-action.d.ts.map +1 -0
  147. package/dist/migrations/move-declaration-to-declare-action.js +260 -0
  148. package/dist/migrations/{add-translations.d.ts → persistent/add-translations.d.ts} +1 -1
  149. package/dist/migrations/persistent/add-translations.d.ts.map +1 -0
  150. package/dist/migrations/{add-translations.js → persistent/add-translations.js} +2 -2
  151. package/dist/migrations/persistent/check-upgrade-path.d.ts +36 -0
  152. package/dist/migrations/persistent/check-upgrade-path.d.ts.map +1 -0
  153. package/dist/migrations/persistent/check-upgrade-path.js +105 -0
  154. package/dist/migrations/persistent/update-toolkit-dependency.d.ts +7 -0
  155. package/dist/migrations/persistent/update-toolkit-dependency.d.ts.map +1 -0
  156. package/dist/migrations/persistent/update-toolkit-dependency.js +77 -0
  157. package/dist/migrations/{v2.2/read-declaration-through-helper.d.ts → read-declaration-through-helper.d.ts} +1 -1
  158. package/dist/migrations/read-declaration-through-helper.d.ts.map +1 -0
  159. package/dist/migrations/{v2.2/read-declaration-through-helper.js → read-declaration-through-helper.js} +4 -62
  160. package/dist/migrations/replace-incomplete-flag.d.ts +26 -0
  161. package/dist/migrations/replace-incomplete-flag.d.ts.map +1 -0
  162. package/dist/migrations/replace-incomplete-flag.js +126 -0
  163. package/dist/migrations/resolve-versioned-event-config.d.ts +56 -0
  164. package/dist/migrations/resolve-versioned-event-config.d.ts.map +1 -0
  165. package/dist/migrations/resolve-versioned-event-config.js +353 -0
  166. package/dist/migrations/utils.d.ts +61 -0
  167. package/dist/migrations/utils.d.ts.map +1 -0
  168. package/dist/migrations/utils.js +218 -0
  169. package/dist/notification/index.js +810 -84
  170. package/dist/roles/index.d.ts +2 -0
  171. package/dist/roles/index.d.ts.map +1 -0
  172. package/dist/roles/index.js +730 -0
  173. package/dist/scopes/index.d.ts +83 -100
  174. package/dist/scopes/index.js +29 -13
  175. package/dist/templates/charts-values/dependencies/values.yaml +5 -2
  176. package/dist/templates/charts-values/opencrvs-services/values.yaml +5 -7
  177. package/dist/templates/charts-values/traefik/values.yaml +2 -0
  178. package/dist/verify/endpoints.d.ts +11 -0
  179. package/dist/verify/endpoints.d.ts.map +1 -1
  180. package/dist/verify/endpoints.js +21 -27
  181. package/opencrvs-toolkit-2.2.0-rc.e6591c5.tgz +0 -0
  182. package/package.json +17 -4
  183. package/tsconfig.build.json +11 -1
  184. package/tsconfig.build.tsbuildinfo +1 -1
  185. package/tsconfig.json +15 -6
  186. package/dist/migrations/add-translations.d.ts.map +0 -1
  187. package/dist/migrations/v2.1/add-explicit-correction-flags.d.ts +0 -3
  188. package/dist/migrations/v2.1/add-explicit-correction-flags.d.ts.map +0 -1
  189. package/dist/migrations/v2.1/add-explicit-correction-flags.js +0 -234
  190. package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts +0 -3
  191. package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts.map +0 -1
  192. package/dist/migrations/v2.1/add-recovery-link-notifications.js +0 -511
  193. package/dist/migrations/v2.1/enable-telemetry.d.ts +0 -3
  194. package/dist/migrations/v2.1/enable-telemetry.d.ts.map +0 -1
  195. package/dist/migrations/v2.1/enable-telemetry.js +0 -455
  196. package/dist/migrations/v2.1/index.d.ts +0 -6
  197. package/dist/migrations/v2.1/index.d.ts.map +0 -1
  198. package/dist/migrations/v2.1/index.js +0 -50
  199. package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts +0 -17
  200. package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts.map +0 -1
  201. package/dist/migrations/v2.1/migrate-infrastructure-to-assets.js +0 -348
  202. package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts +0 -2
  203. package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts.map +0 -1
  204. package/dist/migrations/v2.1/remove-metabase-package-installs.js +0 -161
  205. package/dist/migrations/v2.1/remove-sentry.d.ts +0 -3
  206. package/dist/migrations/v2.1/remove-sentry.d.ts.map +0 -1
  207. package/dist/migrations/v2.1/remove-sentry.js +0 -354
  208. package/dist/migrations/v2.1/rename-trigger-paths.d.ts +0 -3
  209. package/dist/migrations/v2.1/rename-trigger-paths.d.ts.map +0 -1
  210. package/dist/migrations/v2.1/rename-trigger-paths.js +0 -216
  211. package/dist/migrations/v2.1/template-files.d.ts +0 -8
  212. package/dist/migrations/v2.1/template-files.d.ts.map +0 -1
  213. package/dist/migrations/v2.1/template-files.js +0 -49
  214. package/dist/migrations/v2.1/upgrade-tilt.d.ts +0 -11
  215. package/dist/migrations/v2.1/upgrade-tilt.d.ts.map +0 -1
  216. package/dist/migrations/v2.1/upgrade-tilt.js +0 -139
  217. package/dist/migrations/v2.2/index.d.ts +0 -6
  218. package/dist/migrations/v2.2/index.d.ts.map +0 -1
  219. package/dist/migrations/v2.2/index.js +0 -456
  220. package/dist/migrations/v2.2/read-declaration-through-helper.d.ts.map +0 -1
  221. package/dist/templates/countryconfig-template/.tiltignore +0 -1
  222. package/dist/templates/countryconfig-template/Dockerfile.assets +0 -7
  223. package/dist/templates/countryconfig-template/Tiltfile +0 -112
  224. package/dist/templates/countryconfig-template/assets/README.md +0 -1
  225. package/dist/templates/countryconfig-template/assets/clear-all-data-dev.sh +0 -61
  226. package/dist/templates/countryconfig-template/assets/deployment/deploy.sh +0 -455
  227. package/dist/templates/countryconfig-template/assets/deployment/reindex.sh +0 -168
  228. package/dist/templates/countryconfig-template/assets/deployment/validate-required-variables-in-compose-files.ts +0 -67
  229. package/dist/templates/countryconfig-template/assets/elasticsearch/reindex.sh +0 -168
  230. package/dist/templates/countryconfig-template/assets/metabase/README.md +0 -34
  231. package/dist/templates/countryconfig-template/assets/metabase/environment-configuration.sql +0 -36
  232. package/dist/templates/countryconfig-template/assets/metabase/initialize-database.sh +0 -46
  233. package/dist/templates/countryconfig-template/assets/metabase/metabase.init.db.sql +0 -27737
  234. package/dist/templates/countryconfig-template/assets/metabase/open-shell.sh +0 -21
  235. package/dist/templates/countryconfig-template/assets/metabase/package.json +0 -13
  236. package/dist/templates/countryconfig-template/assets/metabase/run-dev.sh +0 -108
  237. package/dist/templates/countryconfig-template/assets/metabase/run.sh +0 -120
  238. package/dist/templates/countryconfig-template/assets/metabase/update-database.sh +0 -40
  239. package/dist/templates/countryconfig-template/assets/postgres/setup-analytics.sh +0 -135
  240. package/dist/templates/countryconfig-template/assets/postgres/setup-reference-data.sh +0 -108
  241. package/dist/templates/countryconfig-template/tilt/clear-all-data.ps1 +0 -50
  242. package/dist/templates/countryconfig-template/tilt/clear-all-data.sh +0 -35
  243. package/dist/templates/countryconfig-template/tilt/common.tilt +0 -145
  244. package/dist/templates/countryconfig-template/tilt/examples/dependencies/values.yaml +0 -15
  245. package/dist/templates/countryconfig-template/tilt/examples/opencrvs-services/values.yaml +0 -56
  246. package/dist/templates/countryconfig-template/tilt/examples/traefik/values-minikube.yaml +0 -21
  247. package/dist/templates/countryconfig-template/tilt/examples/traefik/values.yaml +0 -38
  248. package/dist/templates/countryconfig-template/tilt/helm/dependencies/values.yaml +0 -17
  249. package/dist/templates/countryconfig-template/tilt/helm/opencrvs-services/values.yaml +0 -16
  250. package/dist/templates/countryconfig-template/tilt/lib.tilt +0 -95
  251. package/dist/templates/countryconfig-template/tilt/opencrvs.tilt +0 -136
  252. package/opencrvs-toolkit-2.2.0-rc.ab91cce.tgz +0 -0
@@ -27,6 +27,17 @@ export declare const WorkqueueConfig: z.ZodObject<{
27
27
  DECLARED: "DECLARED";
28
28
  NOTIFIED: "NOTIFIED";
29
29
  REGISTERED: "REGISTERED";
30
+ REVOKED: "REVOKED";
31
+ }>>;
32
+ }, z.core.$strip>, z.ZodObject<{
33
+ type: z.ZodLiteral<"noneOf">;
34
+ terms: z.ZodArray<z.ZodEnum<{
35
+ ARCHIVED: "ARCHIVED";
36
+ CREATED: "CREATED";
37
+ DECLARED: "DECLARED";
38
+ NOTIFIED: "NOTIFIED";
39
+ REGISTERED: "REGISTERED";
40
+ REVOKED: "REVOKED";
30
41
  }>>;
31
42
  }, z.core.$strip>, z.ZodObject<{
32
43
  type: z.ZodLiteral<"exact">;
@@ -36,6 +47,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
36
47
  DECLARED: "DECLARED";
37
48
  NOTIFIED: "NOTIFIED";
38
49
  REGISTERED: "REGISTERED";
50
+ REVOKED: "REVOKED";
39
51
  }>;
40
52
  }, z.core.$strip>]>>>;
41
53
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -138,6 +150,26 @@ export declare const WorkqueueConfig: z.ZodObject<{
138
150
  type: z.ZodLiteral<"exact">;
139
151
  term: z.ZodString;
140
152
  }, z.core.$strip>>>;
153
+ 'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
154
+ type: z.ZodLiteral<"within">;
155
+ location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
156
+ $userField: z.ZodEnum<{
157
+ administrativeAreaId: "administrativeAreaId";
158
+ avatar: "avatar";
159
+ device: "device";
160
+ firstname: "firstname";
161
+ fullHonorificName: "fullHonorificName";
162
+ id: "id";
163
+ middlename: "middlename";
164
+ name: "name";
165
+ primaryOfficeId: "primaryOfficeId";
166
+ role: "role";
167
+ signature: "signature";
168
+ surname: "surname";
169
+ }>;
170
+ $location: z.ZodOptional<z.ZodString>;
171
+ }, z.core.$strip>]>;
172
+ }, z.core.$strip>>>;
141
173
  createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
142
174
  type: z.ZodLiteral<"within">;
143
175
  location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
@@ -309,21 +341,18 @@ export declare const WorkqueueConfig: z.ZodObject<{
309
341
  }, z.core.$strip>>>;
310
342
  flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
311
343
  anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
312
- readonly INCOMPLETE: 'incomplete';
313
344
  readonly REJECTED: 'rejected';
314
345
  readonly CORRECTION_REQUESTED: 'correction-requested';
315
346
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
316
347
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
317
348
  }>]>, z.ZodString]>>>;
318
349
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
319
- readonly INCOMPLETE: 'incomplete';
320
350
  readonly REJECTED: 'rejected';
321
351
  readonly CORRECTION_REQUESTED: 'correction-requested';
322
352
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
323
353
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
324
354
  }>]>, z.ZodString]>>>;
325
355
  allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
326
- readonly INCOMPLETE: 'incomplete';
327
356
  readonly REJECTED: 'rejected';
328
357
  readonly CORRECTION_REQUESTED: 'correction-requested';
329
358
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
@@ -344,6 +373,17 @@ export declare const WorkqueueConfig: z.ZodObject<{
344
373
  DECLARED: "DECLARED";
345
374
  NOTIFIED: "NOTIFIED";
346
375
  REGISTERED: "REGISTERED";
376
+ REVOKED: "REVOKED";
377
+ }>>;
378
+ }, z.core.$strip>, z.ZodObject<{
379
+ type: z.ZodLiteral<"noneOf">;
380
+ terms: z.ZodArray<z.ZodEnum<{
381
+ ARCHIVED: "ARCHIVED";
382
+ CREATED: "CREATED";
383
+ DECLARED: "DECLARED";
384
+ NOTIFIED: "NOTIFIED";
385
+ REGISTERED: "REGISTERED";
386
+ REVOKED: "REVOKED";
347
387
  }>>;
348
388
  }, z.core.$strip>, z.ZodObject<{
349
389
  type: z.ZodLiteral<"exact">;
@@ -353,6 +393,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
353
393
  DECLARED: "DECLARED";
354
394
  NOTIFIED: "NOTIFIED";
355
395
  REGISTERED: "REGISTERED";
396
+ REVOKED: "REVOKED";
356
397
  }>;
357
398
  }, z.core.$strip>]>>>;
358
399
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -455,6 +496,26 @@ export declare const WorkqueueConfig: z.ZodObject<{
455
496
  type: z.ZodLiteral<"exact">;
456
497
  term: z.ZodString;
457
498
  }, z.core.$strip>>>;
499
+ 'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
500
+ type: z.ZodLiteral<"within">;
501
+ location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
502
+ $userField: z.ZodEnum<{
503
+ administrativeAreaId: "administrativeAreaId";
504
+ avatar: "avatar";
505
+ device: "device";
506
+ firstname: "firstname";
507
+ fullHonorificName: "fullHonorificName";
508
+ id: "id";
509
+ middlename: "middlename";
510
+ name: "name";
511
+ primaryOfficeId: "primaryOfficeId";
512
+ role: "role";
513
+ signature: "signature";
514
+ surname: "surname";
515
+ }>;
516
+ $location: z.ZodOptional<z.ZodString>;
517
+ }, z.core.$strip>]>;
518
+ }, z.core.$strip>>>;
458
519
  createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
459
520
  type: z.ZodLiteral<"within">;
460
521
  location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
@@ -626,21 +687,18 @@ export declare const WorkqueueConfig: z.ZodObject<{
626
687
  }, z.core.$strip>>>;
627
688
  flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
628
689
  anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
629
- readonly INCOMPLETE: 'incomplete';
630
690
  readonly REJECTED: 'rejected';
631
691
  readonly CORRECTION_REQUESTED: 'correction-requested';
632
692
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
633
693
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
634
694
  }>]>, z.ZodString]>>>;
635
695
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
636
- readonly INCOMPLETE: 'incomplete';
637
696
  readonly REJECTED: 'rejected';
638
697
  readonly CORRECTION_REQUESTED: 'correction-requested';
639
698
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
640
699
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
641
700
  }>]>, z.ZodString]>>>;
642
701
  allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
643
- readonly INCOMPLETE: 'incomplete';
644
702
  readonly REJECTED: 'rejected';
645
703
  readonly CORRECTION_REQUESTED: 'correction-requested';
646
704
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
@@ -660,8 +718,10 @@ export declare const WorkqueueConfig: z.ZodObject<{
660
718
  PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
661
719
  READ: "READ";
662
720
  REGISTER: "REGISTER";
721
+ REINSTATE_REGISTRATION: "REINSTATE_REGISTRATION";
663
722
  REJECT: "REJECT";
664
723
  REQUEST_CORRECTION: "REQUEST_CORRECTION";
724
+ REVOKE_REGISTRATION: "REVOKE_REGISTRATION";
665
725
  UNARCHIVE: "UNARCHIVE";
666
726
  }>;
667
727
  }, z.core.$strip>>;
@@ -812,8 +872,10 @@ export declare const WorkqueueConfigWithoutQuery: z.ZodObject<{
812
872
  PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
813
873
  READ: "READ";
814
874
  REGISTER: "REGISTER";
875
+ REINSTATE_REGISTRATION: "REINSTATE_REGISTRATION";
815
876
  REJECT: "REJECT";
816
877
  REQUEST_CORRECTION: "REQUEST_CORRECTION";
878
+ REVOKE_REGISTRATION: "REVOKE_REGISTRATION";
817
879
  UNARCHIVE: "UNARCHIVE";
818
880
  }>;
819
881
  }, z.core.$strip>>;
@@ -938,8 +1000,10 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
938
1000
  PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
939
1001
  READ: "READ";
940
1002
  REGISTER: "REGISTER";
1003
+ REINSTATE_REGISTRATION: "REINSTATE_REGISTRATION";
941
1004
  REJECT: "REJECT";
942
1005
  REQUEST_CORRECTION: "REQUEST_CORRECTION";
1006
+ REVOKE_REGISTRATION: "REVOKE_REGISTRATION";
943
1007
  UNARCHIVE: "UNARCHIVE";
944
1008
  }>;
945
1009
  }, z.core.$strip>>;
@@ -1086,6 +1150,17 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1086
1150
  DECLARED: "DECLARED";
1087
1151
  NOTIFIED: "NOTIFIED";
1088
1152
  REGISTERED: "REGISTERED";
1153
+ REVOKED: "REVOKED";
1154
+ }>>;
1155
+ }, z.core.$strip>, z.ZodObject<{
1156
+ type: z.ZodLiteral<"noneOf">;
1157
+ terms: z.ZodArray<z.ZodEnum<{
1158
+ ARCHIVED: "ARCHIVED";
1159
+ CREATED: "CREATED";
1160
+ DECLARED: "DECLARED";
1161
+ NOTIFIED: "NOTIFIED";
1162
+ REGISTERED: "REGISTERED";
1163
+ REVOKED: "REVOKED";
1089
1164
  }>>;
1090
1165
  }, z.core.$strip>, z.ZodObject<{
1091
1166
  type: z.ZodLiteral<"exact">;
@@ -1095,6 +1170,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1095
1170
  DECLARED: "DECLARED";
1096
1171
  NOTIFIED: "NOTIFIED";
1097
1172
  REGISTERED: "REGISTERED";
1173
+ REVOKED: "REVOKED";
1098
1174
  }>;
1099
1175
  }, z.core.$strip>]>>>;
1100
1176
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -1197,6 +1273,26 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1197
1273
  type: z.ZodLiteral<"exact">;
1198
1274
  term: z.ZodString;
1199
1275
  }, z.core.$strip>>>;
1276
+ 'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
1277
+ type: z.ZodLiteral<"within">;
1278
+ location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1279
+ $userField: z.ZodEnum<{
1280
+ administrativeAreaId: "administrativeAreaId";
1281
+ avatar: "avatar";
1282
+ device: "device";
1283
+ firstname: "firstname";
1284
+ fullHonorificName: "fullHonorificName";
1285
+ id: "id";
1286
+ middlename: "middlename";
1287
+ name: "name";
1288
+ primaryOfficeId: "primaryOfficeId";
1289
+ role: "role";
1290
+ signature: "signature";
1291
+ surname: "surname";
1292
+ }>;
1293
+ $location: z.ZodOptional<z.ZodString>;
1294
+ }, z.core.$strip>]>;
1295
+ }, z.core.$strip>>>;
1200
1296
  createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1201
1297
  type: z.ZodLiteral<"within">;
1202
1298
  location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
@@ -1368,21 +1464,18 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1368
1464
  }, z.core.$strip>>>;
1369
1465
  flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1370
1466
  anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
1371
- readonly INCOMPLETE: 'incomplete';
1372
1467
  readonly REJECTED: 'rejected';
1373
1468
  readonly CORRECTION_REQUESTED: 'correction-requested';
1374
1469
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
1375
1470
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
1376
1471
  }>]>, z.ZodString]>>>;
1377
1472
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
1378
- readonly INCOMPLETE: 'incomplete';
1379
1473
  readonly REJECTED: 'rejected';
1380
1474
  readonly CORRECTION_REQUESTED: 'correction-requested';
1381
1475
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
1382
1476
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
1383
1477
  }>]>, z.ZodString]>>>;
1384
1478
  allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
1385
- readonly INCOMPLETE: 'incomplete';
1386
1479
  readonly REJECTED: 'rejected';
1387
1480
  readonly CORRECTION_REQUESTED: 'correction-requested';
1388
1481
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
@@ -1402,6 +1495,17 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1402
1495
  DECLARED: "DECLARED";
1403
1496
  NOTIFIED: "NOTIFIED";
1404
1497
  REGISTERED: "REGISTERED";
1498
+ REVOKED: "REVOKED";
1499
+ }>>;
1500
+ }, z.core.$strip>, z.ZodObject<{
1501
+ type: z.ZodLiteral<"noneOf">;
1502
+ terms: z.ZodArray<z.ZodEnum<{
1503
+ ARCHIVED: "ARCHIVED";
1504
+ CREATED: "CREATED";
1505
+ DECLARED: "DECLARED";
1506
+ NOTIFIED: "NOTIFIED";
1507
+ REGISTERED: "REGISTERED";
1508
+ REVOKED: "REVOKED";
1405
1509
  }>>;
1406
1510
  }, z.core.$strip>, z.ZodObject<{
1407
1511
  type: z.ZodLiteral<"exact">;
@@ -1411,6 +1515,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1411
1515
  DECLARED: "DECLARED";
1412
1516
  NOTIFIED: "NOTIFIED";
1413
1517
  REGISTERED: "REGISTERED";
1518
+ REVOKED: "REVOKED";
1414
1519
  }>;
1415
1520
  }, z.core.$strip>]>>>;
1416
1521
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -1513,6 +1618,26 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1513
1618
  type: z.ZodLiteral<"exact">;
1514
1619
  term: z.ZodString;
1515
1620
  }, z.core.$strip>>>;
1621
+ 'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
1622
+ type: z.ZodLiteral<"within">;
1623
+ location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1624
+ $userField: z.ZodEnum<{
1625
+ administrativeAreaId: "administrativeAreaId";
1626
+ avatar: "avatar";
1627
+ device: "device";
1628
+ firstname: "firstname";
1629
+ fullHonorificName: "fullHonorificName";
1630
+ id: "id";
1631
+ middlename: "middlename";
1632
+ name: "name";
1633
+ primaryOfficeId: "primaryOfficeId";
1634
+ role: "role";
1635
+ signature: "signature";
1636
+ surname: "surname";
1637
+ }>;
1638
+ $location: z.ZodOptional<z.ZodString>;
1639
+ }, z.core.$strip>]>;
1640
+ }, z.core.$strip>>>;
1516
1641
  createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1517
1642
  type: z.ZodLiteral<"within">;
1518
1643
  location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
@@ -1684,21 +1809,18 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1684
1809
  }, z.core.$strip>>>;
1685
1810
  flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1686
1811
  anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
1687
- readonly INCOMPLETE: 'incomplete';
1688
1812
  readonly REJECTED: 'rejected';
1689
1813
  readonly CORRECTION_REQUESTED: 'correction-requested';
1690
1814
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
1691
1815
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
1692
1816
  }>]>, z.ZodString]>>>;
1693
1817
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
1694
- readonly INCOMPLETE: 'incomplete';
1695
1818
  readonly REJECTED: 'rejected';
1696
1819
  readonly CORRECTION_REQUESTED: 'correction-requested';
1697
1820
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
1698
1821
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
1699
1822
  }>]>, z.ZodString]>>>;
1700
1823
  allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
1701
- readonly INCOMPLETE: 'incomplete';
1702
1824
  readonly REJECTED: 'rejected';
1703
1825
  readonly CORRECTION_REQUESTED: 'correction-requested';
1704
1826
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
@@ -1719,6 +1841,17 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1719
1841
  DECLARED: "DECLARED";
1720
1842
  NOTIFIED: "NOTIFIED";
1721
1843
  REGISTERED: "REGISTERED";
1844
+ REVOKED: "REVOKED";
1845
+ }>>;
1846
+ }, z.core.$strip>, z.ZodObject<{
1847
+ type: z.ZodLiteral<"noneOf">;
1848
+ terms: z.ZodArray<z.ZodEnum<{
1849
+ ARCHIVED: "ARCHIVED";
1850
+ CREATED: "CREATED";
1851
+ DECLARED: "DECLARED";
1852
+ NOTIFIED: "NOTIFIED";
1853
+ REGISTERED: "REGISTERED";
1854
+ REVOKED: "REVOKED";
1722
1855
  }>>;
1723
1856
  }, z.core.$strip>, z.ZodObject<{
1724
1857
  type: z.ZodLiteral<"exact">;
@@ -1728,6 +1861,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1728
1861
  DECLARED: "DECLARED";
1729
1862
  NOTIFIED: "NOTIFIED";
1730
1863
  REGISTERED: "REGISTERED";
1864
+ REVOKED: "REVOKED";
1731
1865
  }>;
1732
1866
  }, z.core.$strip>]>>>;
1733
1867
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -1830,6 +1964,26 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1830
1964
  type: z.ZodLiteral<"exact">;
1831
1965
  term: z.ZodString;
1832
1966
  }, z.core.$strip>>>;
1967
+ 'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
1968
+ type: z.ZodLiteral<"within">;
1969
+ location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1970
+ $userField: z.ZodEnum<{
1971
+ administrativeAreaId: "administrativeAreaId";
1972
+ avatar: "avatar";
1973
+ device: "device";
1974
+ firstname: "firstname";
1975
+ fullHonorificName: "fullHonorificName";
1976
+ id: "id";
1977
+ middlename: "middlename";
1978
+ name: "name";
1979
+ primaryOfficeId: "primaryOfficeId";
1980
+ role: "role";
1981
+ signature: "signature";
1982
+ surname: "surname";
1983
+ }>;
1984
+ $location: z.ZodOptional<z.ZodString>;
1985
+ }, z.core.$strip>]>;
1986
+ }, z.core.$strip>>>;
1833
1987
  createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1834
1988
  type: z.ZodLiteral<"within">;
1835
1989
  location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
@@ -2001,21 +2155,18 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
2001
2155
  }, z.core.$strip>>>;
2002
2156
  flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2003
2157
  anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
2004
- readonly INCOMPLETE: 'incomplete';
2005
2158
  readonly REJECTED: 'rejected';
2006
2159
  readonly CORRECTION_REQUESTED: 'correction-requested';
2007
2160
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
2008
2161
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
2009
2162
  }>]>, z.ZodString]>>>;
2010
2163
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
2011
- readonly INCOMPLETE: 'incomplete';
2012
2164
  readonly REJECTED: 'rejected';
2013
2165
  readonly CORRECTION_REQUESTED: 'correction-requested';
2014
2166
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
2015
2167
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
2016
2168
  }>]>, z.ZodString]>>>;
2017
2169
  allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
2018
- readonly INCOMPLETE: 'incomplete';
2019
2170
  readonly REJECTED: 'rejected';
2020
2171
  readonly CORRECTION_REQUESTED: 'correction-requested';
2021
2172
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
@@ -2041,11 +2192,14 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
2041
2192
  clauses: {
2042
2193
  eventType?: string | undefined;
2043
2194
  status?: {
2044
- type: "exact";
2045
- term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
2046
- } | {
2047
2195
  type: "anyOf";
2048
- terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[];
2196
+ terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
2197
+ } | {
2198
+ type: "noneOf";
2199
+ terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
2200
+ } | {
2201
+ type: "exact";
2202
+ term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED";
2049
2203
  } | undefined;
2050
2204
  createdAt?: {
2051
2205
  type: "range";
@@ -2106,6 +2260,13 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
2106
2260
  type: "exact";
2107
2261
  term: string;
2108
2262
  } | undefined;
2263
+ 'legalStatuses.REVOKED.createdAtLocation'?: {
2264
+ type: "within";
2265
+ location: string | {
2266
+ $userField: "administrativeAreaId" | "avatar" | "device" | "firstname" | "fullHonorificName" | "id" | "middlename" | "name" | "primaryOfficeId" | "role" | "signature" | "surname";
2267
+ $location?: string | undefined;
2268
+ };
2269
+ } | undefined;
2109
2270
  createdAtLocation?: {
2110
2271
  type: "within";
2111
2272
  location: string | {
@@ -2180,11 +2341,14 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
2180
2341
  clauses: {
2181
2342
  eventType?: string | undefined;
2182
2343
  status?: {
2183
- type: "exact";
2184
- term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
2185
- } | {
2186
2344
  type: "anyOf";
2187
- terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[];
2345
+ terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
2346
+ } | {
2347
+ type: "noneOf";
2348
+ terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
2349
+ } | {
2350
+ type: "exact";
2351
+ term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED";
2188
2352
  } | undefined;
2189
2353
  createdAt?: {
2190
2354
  type: "range";
@@ -2245,6 +2409,13 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
2245
2409
  type: "exact";
2246
2410
  term: string;
2247
2411
  } | undefined;
2412
+ 'legalStatuses.REVOKED.createdAtLocation'?: {
2413
+ type: "within";
2414
+ location: string | {
2415
+ $userField: "administrativeAreaId" | "avatar" | "device" | "firstname" | "fullHonorificName" | "id" | "middlename" | "name" | "primaryOfficeId" | "role" | "signature" | "surname";
2416
+ $location?: string | undefined;
2417
+ };
2418
+ } | undefined;
2248
2419
  createdAtLocation?: {
2249
2420
  type: "within";
2250
2421
  location: string | {
@@ -2316,7 +2487,7 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
2316
2487
  }[];
2317
2488
  };
2318
2489
  action?: {
2319
- type: "ARCHIVE" | "DECLARE" | "DELETE" | "EDIT" | "MARK_AS_DUPLICATE" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REJECT" | "REQUEST_CORRECTION" | "UNARCHIVE";
2490
+ type: "ARCHIVE" | "DECLARE" | "DELETE" | "EDIT" | "MARK_AS_DUPLICATE" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE";
2320
2491
  } | undefined;
2321
2492
  columns: {
2322
2493
  label: {
@@ -2352,11 +2523,14 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInputWithV19
2352
2523
  clauses: {
2353
2524
  eventType?: string | undefined;
2354
2525
  status?: {
2355
- type: "exact";
2356
- term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
2357
- } | {
2358
2526
  type: "anyOf";
2359
- terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[];
2527
+ terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
2528
+ } | {
2529
+ type: "noneOf";
2530
+ terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
2531
+ } | {
2532
+ type: "exact";
2533
+ term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED";
2360
2534
  } | undefined;
2361
2535
  createdAt?: {
2362
2536
  type: "range";
@@ -2417,6 +2591,13 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInputWithV19
2417
2591
  type: "exact";
2418
2592
  term: string;
2419
2593
  } | undefined;
2594
+ 'legalStatuses.REVOKED.createdAtLocation'?: {
2595
+ type: "within";
2596
+ location: string | {
2597
+ $userField: "administrativeAreaId" | "avatar" | "device" | "firstname" | "fullHonorificName" | "id" | "middlename" | "name" | "primaryOfficeId" | "role" | "signature" | "surname";
2598
+ $location?: string | undefined;
2599
+ };
2600
+ } | undefined;
2420
2601
  createdAtLocation?: {
2421
2602
  type: "within";
2422
2603
  location: string | {
@@ -2491,11 +2672,14 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInputWithV19
2491
2672
  clauses: {
2492
2673
  eventType?: string | undefined;
2493
2674
  status?: {
2494
- type: "exact";
2495
- term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
2496
- } | {
2497
2675
  type: "anyOf";
2498
- terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[];
2676
+ terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
2677
+ } | {
2678
+ type: "noneOf";
2679
+ terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
2680
+ } | {
2681
+ type: "exact";
2682
+ term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED";
2499
2683
  } | undefined;
2500
2684
  createdAt?: {
2501
2685
  type: "range";
@@ -2556,6 +2740,13 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInputWithV19
2556
2740
  type: "exact";
2557
2741
  term: string;
2558
2742
  } | undefined;
2743
+ 'legalStatuses.REVOKED.createdAtLocation'?: {
2744
+ type: "within";
2745
+ location: string | {
2746
+ $userField: "administrativeAreaId" | "avatar" | "device" | "firstname" | "fullHonorificName" | "id" | "middlename" | "name" | "primaryOfficeId" | "role" | "signature" | "surname";
2747
+ $location?: string | undefined;
2748
+ };
2749
+ } | undefined;
2559
2750
  createdAtLocation?: {
2560
2751
  type: "within";
2561
2752
  location: string | {
@@ -2627,7 +2818,7 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInputWithV19
2627
2818
  }[];
2628
2819
  };
2629
2820
  action?: {
2630
- type: "ARCHIVE" | "DECLARE" | "DELETE" | "EDIT" | "MARK_AS_DUPLICATE" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REJECT" | "REQUEST_CORRECTION" | "UNARCHIVE";
2821
+ type: "ARCHIVE" | "DECLARE" | "DELETE" | "EDIT" | "MARK_AS_DUPLICATE" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE";
2631
2822
  } | undefined;
2632
2823
  columns: {
2633
2824
  label: {
@@ -1,3 +1,8 @@
1
- import { EventConfig, EventConfigInput } from './EventConfig';
2
- export declare const defineConfig: (config: EventConfigInput) => EventConfig;
1
+ import { EventConfigInput, VersionedEventConfig, VersionedEventConfigInput } from './EventConfig';
2
+ /**
3
+ * Validates an event configuration. Accepts an event with `versions`, or, as before
4
+ * versioning, an event without them, which is taken as a single version with id
5
+ * `initial`, effective from the beginning of time.
6
+ */
7
+ export declare const defineConfig: (config: EventConfigInput | VersionedEventConfigInput) => VersionedEventConfig;
3
8
  //# sourceMappingURL=defineConfig.d.ts.map
@@ -17,7 +17,10 @@ declare function eventFn(fieldId: NonSearchableEventMetadataTimeFieldIdInput): {
17
17
  };
18
18
  declare const event: typeof eventFn & {
19
19
  /**
20
- * Checks if the event contains a specific action type.
20
+ * Checks if the event contains a specific accepted action type.
21
+ * Only Accepted actions are matched: a confirmable action is stored as a
22
+ * Requested and an Accepted action, and a pending or rejected request must
23
+ * not count as the action having happened.
21
24
  * Can be used directly as a conditional or chained with additional methods.
22
25
  * @param action - The action type to check for.
23
26
  */
@@ -21,4 +21,13 @@ export declare function validateExactlyOneDeclareAction<T extends {
21
21
  * compatibility) or on the DECLARE action.
22
22
  */
23
23
  export declare function validateDeclarationGivenExactlyOnce(config: EventConfigInput, ctx: z.RefinementCtx<EventConfigInput>): void;
24
+ /**
25
+ * Validation which ensures that a NOTIFY notificationForm:
26
+ * - only includes fields with ids that are also in the declaration form
27
+ * - the field types match the ones on the declaration form
28
+ *
29
+ * This is because the notification form is used as pre-filled values during declaration.
30
+ * For now we have made the design decision to not allow fields that are not present in the declaration form.
31
+ */
32
+ export declare function validateNotificationForm(event: EventConfig, ctx: z.RefinementCtx<EventConfig>): void;
24
33
  //# sourceMappingURL=eventConfigValidation.d.ts.map
@@ -37,6 +37,7 @@ export declare function field(fieldId: string, options?: {
37
37
  validations?: ValidationConfig[];
38
38
  searchCriteriaLabelPrefix?: TranslationConfig;
39
39
  allowedLocations?: JurisdictionReference;
40
+ defaultValue?: boolean | string | number;
40
41
  }): {
41
42
  $$field: string;
42
43
  $$subfield: string[];
@@ -387,6 +388,7 @@ export declare function field(fieldId: string, options?: {
387
388
  validations?: ValidationConfig[];
388
389
  searchCriteriaLabelPrefix?: TranslationConfig;
389
390
  allowedLocations?: JurisdictionReference;
391
+ defaultValue?: boolean | string | number;
390
392
  fieldId: string;
391
393
  fieldType: 'field';
392
394
  } & {
@@ -400,6 +402,7 @@ export declare function field(fieldId: string, options?: {
400
402
  validations?: ValidationConfig[];
401
403
  searchCriteriaLabelPrefix?: TranslationConfig;
402
404
  allowedLocations?: JurisdictionReference;
405
+ defaultValue?: boolean | string | number;
403
406
  fieldId: string;
404
407
  fieldType: 'field';
405
408
  } & {
@@ -413,6 +416,7 @@ export declare function field(fieldId: string, options?: {
413
416
  validations?: ValidationConfig[];
414
417
  searchCriteriaLabelPrefix?: TranslationConfig;
415
418
  allowedLocations?: JurisdictionReference;
419
+ defaultValue?: boolean | string | number;
416
420
  fieldId: string;
417
421
  fieldType: 'field';
418
422
  } & {
@@ -426,6 +430,7 @@ export declare function field(fieldId: string, options?: {
426
430
  validations?: ValidationConfig[];
427
431
  searchCriteriaLabelPrefix?: TranslationConfig;
428
432
  allowedLocations?: JurisdictionReference;
433
+ defaultValue?: boolean | string | number;
429
434
  fieldId: string;
430
435
  fieldType: 'field';
431
436
  } & {
@@ -1,3 +1,4 @@
1
+ import 'zod/compile';
1
2
  export * from './AuditLog';
2
3
  export * from './Constants';
3
4
  export * from './ActionConfig';
@@ -25,6 +26,7 @@ export * from './state';
25
26
  export * from './state/flags';
26
27
  export * from './utils';
27
28
  export * from './defineConfig';
29
+ export * from './toNotificationForm';
28
30
  export * from './DeduplicationConfig';
29
31
  export * from './transactions';
30
32
  export * from './FieldType';
@@ -46,6 +48,7 @@ export * from './Flag';
46
48
  export * from './event';
47
49
  export * from './locations';
48
50
  export * from './locationPayloads';
51
+ export * from './PlainDate';
49
52
  export { UUID } from '../uuid';
50
53
  export { DocumentPath } from '../documents';
51
54
  //# sourceMappingURL=index.d.ts.map
@@ -3,7 +3,7 @@ import * as z from 'zod/v4';
3
3
  import { PlainDate } from './PlainDate';
4
4
  import { EventIndex } from './EventIndex';
5
5
  import { ActionCreationMetadata, RegistrationCreationMetadata } from './EventMetadata';
6
- import { RecordScopeV2, UserScopeV2 } from '../scopes';
6
+ import { RecordScopeV2, UserScopeV2 } from '../users/scopes';
7
7
  import { SystemContext, UserContext } from '../users/User';
8
8
  /** @deprecated Moving on, location types are arbitrary and defined by the country config. */
9
9
  export declare const LocationTypeV1: z.ZodEnum<{