@opencrvs/toolkit 2.0.0-rc.d87f90c → 2.0.0-rc.d8e90da

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 (122) hide show
  1. package/README.md +15 -0
  2. package/build.sh +3 -2
  3. package/create-countryconfig/index.js +103 -0
  4. package/create-countryconfig/package.json +21 -0
  5. package/dist/application-config/index.js +291 -126
  6. package/dist/cli.js +3649 -171
  7. package/dist/commons/api/router.d.ts +3387 -237
  8. package/dist/commons/application-config/index.d.ts +1 -0
  9. package/dist/commons/conditionals/conditionals.d.ts +360 -10
  10. package/dist/commons/conditionals/validate.d.ts +52 -2
  11. package/dist/commons/events/ActionConfig.d.ts +204 -2
  12. package/dist/commons/events/ActionDocument.d.ts +6 -0
  13. package/dist/commons/events/ActionInput.d.ts +114 -0
  14. package/dist/commons/events/AdvancedSearchConfig.d.ts +354 -0
  15. package/dist/commons/events/CountryConfigQueryInput.d.ts +42 -0
  16. package/dist/commons/events/Draft.d.ts +4 -2
  17. package/dist/commons/events/EventConfig.d.ts +2 -0
  18. package/dist/commons/events/EventDocument.d.ts +3 -0
  19. package/dist/commons/events/EventIndex.d.ts +25 -3
  20. package/dist/commons/events/EventMetadata.d.ts +26 -7
  21. package/dist/commons/events/FieldConfig.d.ts +393 -50
  22. package/dist/commons/events/FieldType.d.ts +1 -0
  23. package/dist/commons/events/FieldTypeMapping.d.ts +1 -1
  24. package/dist/commons/events/FieldValue.d.ts +6 -0
  25. package/dist/commons/events/WorkqueueConfig.d.ts +189 -150
  26. package/dist/commons/events/field.d.ts +53 -1
  27. package/dist/commons/events/index.d.ts +2 -0
  28. package/dist/commons/events/locations.d.ts +22 -0
  29. package/dist/commons/events/mocks.test.utils.d.ts +19 -0
  30. package/dist/commons/events/scopes.d.ts +24 -1
  31. package/dist/commons/events/state/flags.d.ts +16 -0
  32. package/dist/commons/events/state/index.d.ts +8 -4
  33. package/dist/commons/events/state/utils.d.ts +21 -289
  34. package/dist/commons/events/utils.d.ts +13 -2
  35. package/dist/conditionals/index.js +68 -8
  36. package/dist/environment/custom-types.d.ts +33 -0
  37. package/dist/environment/custom-types.d.ts.map +1 -0
  38. package/dist/environment/custom-types.js +12 -0
  39. package/dist/environment/derived-variables.d.ts +134 -0
  40. package/dist/environment/derived-variables.d.ts.map +1 -0
  41. package/dist/environment/derived-variables.js +169 -0
  42. package/dist/environment/editor-questions.d.ts +4 -0
  43. package/dist/environment/editor-questions.d.ts.map +1 -0
  44. package/dist/environment/editor-questions.js +67 -0
  45. package/dist/environment/git.d.ts +5 -0
  46. package/dist/environment/git.d.ts.map +1 -0
  47. package/dist/environment/git.js +38 -0
  48. package/dist/environment/github.d.ts +26 -0
  49. package/dist/environment/github.d.ts.map +1 -0
  50. package/dist/environment/github.js +247 -0
  51. package/dist/environment/index.d.ts +5 -0
  52. package/dist/environment/index.d.ts.map +1 -0
  53. package/dist/environment/index.js +71 -0
  54. package/dist/environment/logger.d.ts +15 -0
  55. package/dist/environment/logger.d.ts.map +1 -0
  56. package/dist/environment/logger.js +25 -0
  57. package/dist/environment/manage-users.d.ts +11 -0
  58. package/dist/environment/manage-users.d.ts.map +1 -0
  59. package/dist/environment/manage-users.js +497 -0
  60. package/dist/environment/questions-helper.d.ts +15 -0
  61. package/dist/environment/questions-helper.d.ts.map +1 -0
  62. package/dist/environment/questions-helper.js +70 -0
  63. package/dist/environment/questions.d.ts +199 -0
  64. package/dist/environment/questions.d.ts.map +1 -0
  65. package/dist/environment/questions.js +412 -0
  66. package/dist/environment/setup-environment.d.ts +2 -0
  67. package/dist/environment/setup-environment.d.ts.map +1 -0
  68. package/dist/environment/setup-environment.js +794 -0
  69. package/dist/environment/ssh-keygen.d.ts +5 -0
  70. package/dist/environment/ssh-keygen.d.ts.map +1 -0
  71. package/dist/environment/ssh-keygen.js +21 -0
  72. package/dist/environment/swarm-to-k8s.d.ts +2 -0
  73. package/dist/environment/swarm-to-k8s.d.ts.map +1 -0
  74. package/dist/environment/swarm-to-k8s.js +173 -0
  75. package/dist/environment/templates.d.ts +27 -0
  76. package/dist/environment/templates.d.ts.map +1 -0
  77. package/dist/environment/templates.js +163 -0
  78. package/dist/environment/update-workflows.d.ts +2 -0
  79. package/dist/environment/update-workflows.d.ts.map +1 -0
  80. package/dist/environment/update-workflows.js +169 -0
  81. package/dist/environment/users.d.ts +2 -0
  82. package/dist/environment/users.d.ts.map +1 -0
  83. package/dist/environment/users.js +112 -0
  84. package/dist/environment/utils.d.ts +18 -0
  85. package/dist/environment/utils.d.ts.map +1 -0
  86. package/dist/environment/utils.js +100 -0
  87. package/dist/events/index.js +1265 -298
  88. package/dist/migrations/v2.0/checkout-upstream-files.d.ts +1 -1
  89. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
  90. package/dist/migrations/v2.0/checkout-upstream-files.js +1 -2
  91. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts +9 -1
  92. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts.map +1 -1
  93. package/dist/migrations/v2.0/delete-infrastructure-directory.js +66 -20
  94. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.d.ts +3 -0
  95. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.d.ts.map +1 -0
  96. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.js +110 -0
  97. package/dist/migrations/v2.0/index.d.ts +5 -3
  98. package/dist/migrations/v2.0/index.d.ts.map +1 -1
  99. package/dist/migrations/v2.0/index.js +412 -135
  100. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts +11 -1
  101. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts.map +1 -1
  102. package/dist/migrations/v2.0/merge-infrastructure-directory.js +17 -16
  103. package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -1
  104. package/dist/migrations/v2.0/migrate-scopes.js +54 -30
  105. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +1 -1
  106. package/dist/migrations/v2.0/migrate-workqueue-configs.js +140 -59
  107. package/dist/notification/index.js +1010 -165
  108. package/dist/scopes/index.d.ts +99 -8
  109. package/dist/scopes/index.js +25 -10
  110. package/dist/templates/charts-values/dependencies/values.override.yaml +4 -0
  111. package/dist/templates/charts-values/dependencies/values.yaml +83 -0
  112. package/dist/templates/charts-values/opencrvs-services/values.override.yaml +4 -0
  113. package/dist/templates/charts-values/opencrvs-services/values.yaml +81 -0
  114. package/dist/templates/charts-values/traefik/values.override.yaml +4 -0
  115. package/dist/templates/charts-values/traefik/values.yaml +115 -0
  116. package/dist/templates/inventory/inventory.template.yml +100 -0
  117. package/dist/templates/inventory/production.example.yml +77 -0
  118. package/dist/templates/inventory/qa.example.yml +48 -0
  119. package/opencrvs-toolkit-2.0.0-rc.d8e90da.tgz +0 -0
  120. package/package.json +20 -2
  121. package/tsconfig.tsbuildinfo +1 -1
  122. package/opencrvs-toolkit-2.0.0-rc.d87f90c.tgz +0 -0
@@ -91,6 +91,65 @@ export declare const FieldConfigSchema: z.ZodObject<{
91
91
  validator: z.ZodAny;
92
92
  message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
93
93
  }, z.core.$strip>>>;
94
+ allowedLocations: z.ZodOptional<z.ZodObject<{
95
+ $jurisdiction: z.ZodUnion<[z.ZodEnum<{
96
+ administrativeArea: "administrativeArea";
97
+ location: "location";
98
+ all: "all";
99
+ }>, z.ZodObject<{
100
+ $scope: z.ZodEnum<{
101
+ "record.search": "record.search";
102
+ "record.create": "record.create";
103
+ "record.read": "record.read";
104
+ "record.declare": "record.declare";
105
+ "record.notify": "record.notify";
106
+ "record.edit": "record.edit";
107
+ "record.reject": "record.reject";
108
+ "record.archive": "record.archive";
109
+ "record.review-duplicates": "record.review-duplicates";
110
+ "record.register": "record.register";
111
+ "record.print-certified-copies": "record.print-certified-copies";
112
+ "record.request-correction": "record.request-correction";
113
+ "record.correct": "record.correct";
114
+ "record.unassign-others": "record.unassign-others";
115
+ "record.custom-action": "record.custom-action";
116
+ bypassratelimit: "bypassratelimit";
117
+ "record.reindex": "record.reindex";
118
+ "user.data-seeding": "user.data-seeding";
119
+ "integration.create": "integration.create";
120
+ "record.import": "record.import";
121
+ "config.update-all": "config.update-all";
122
+ "attachment.upload": "attachment.upload";
123
+ "profile.electronic-signature": "profile.electronic-signature";
124
+ "user.read-only-my-audit": "user.read-only-my-audit";
125
+ "performance.read": "performance.read";
126
+ "performance.read-dashboards": "performance.read-dashboards";
127
+ "performance.vital-statistics-export": "performance.vital-statistics-export";
128
+ "record.confirm-registration": "record.confirm-registration";
129
+ "record.reject-registration": "record.reject-registration";
130
+ "organisation.read-locations": "organisation.read-locations";
131
+ "user.read": "user.read";
132
+ "user.create": "user.create";
133
+ "user.edit": "user.edit";
134
+ "user.search": "user.search";
135
+ workqueue: "workqueue";
136
+ "dashboard.view": "dashboard.view";
137
+ }>;
138
+ $option: z.ZodEnum<{
139
+ role: "role";
140
+ event: "event";
141
+ placeOfEvent: "placeOfEvent";
142
+ notifiedIn: "notifiedIn";
143
+ notifiedBy: "notifiedBy";
144
+ declaredIn: "declaredIn";
145
+ declaredBy: "declaredBy";
146
+ registeredIn: "registeredIn";
147
+ registeredBy: "registeredBy";
148
+ accessLevel: "accessLevel";
149
+ ids: "ids";
150
+ }>;
151
+ }, z.core.$strip>]>;
152
+ }, z.core.$strip>>;
94
153
  fieldId: z.ZodString;
95
154
  fieldType: z.ZodLiteral<"field">;
96
155
  }, z.core.$strip>;
@@ -211,6 +270,65 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
211
270
  validator: z.ZodAny;
212
271
  message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
213
272
  }, z.core.$strip>>>;
273
+ allowedLocations: z.ZodOptional<z.ZodObject<{
274
+ $jurisdiction: z.ZodUnion<[z.ZodEnum<{
275
+ administrativeArea: "administrativeArea";
276
+ location: "location";
277
+ all: "all";
278
+ }>, z.ZodObject<{
279
+ $scope: z.ZodEnum<{
280
+ "record.search": "record.search";
281
+ "record.create": "record.create";
282
+ "record.read": "record.read";
283
+ "record.declare": "record.declare";
284
+ "record.notify": "record.notify";
285
+ "record.edit": "record.edit";
286
+ "record.reject": "record.reject";
287
+ "record.archive": "record.archive";
288
+ "record.review-duplicates": "record.review-duplicates";
289
+ "record.register": "record.register";
290
+ "record.print-certified-copies": "record.print-certified-copies";
291
+ "record.request-correction": "record.request-correction";
292
+ "record.correct": "record.correct";
293
+ "record.unassign-others": "record.unassign-others";
294
+ "record.custom-action": "record.custom-action";
295
+ bypassratelimit: "bypassratelimit";
296
+ "record.reindex": "record.reindex";
297
+ "user.data-seeding": "user.data-seeding";
298
+ "integration.create": "integration.create";
299
+ "record.import": "record.import";
300
+ "config.update-all": "config.update-all";
301
+ "attachment.upload": "attachment.upload";
302
+ "profile.electronic-signature": "profile.electronic-signature";
303
+ "user.read-only-my-audit": "user.read-only-my-audit";
304
+ "performance.read": "performance.read";
305
+ "performance.read-dashboards": "performance.read-dashboards";
306
+ "performance.vital-statistics-export": "performance.vital-statistics-export";
307
+ "record.confirm-registration": "record.confirm-registration";
308
+ "record.reject-registration": "record.reject-registration";
309
+ "organisation.read-locations": "organisation.read-locations";
310
+ "user.read": "user.read";
311
+ "user.create": "user.create";
312
+ "user.edit": "user.edit";
313
+ "user.search": "user.search";
314
+ workqueue: "workqueue";
315
+ "dashboard.view": "dashboard.view";
316
+ }>;
317
+ $option: z.ZodEnum<{
318
+ role: "role";
319
+ event: "event";
320
+ placeOfEvent: "placeOfEvent";
321
+ notifiedIn: "notifiedIn";
322
+ notifiedBy: "notifiedBy";
323
+ declaredIn: "declaredIn";
324
+ declaredBy: "declaredBy";
325
+ registeredIn: "registeredIn";
326
+ registeredBy: "registeredBy";
327
+ accessLevel: "accessLevel";
328
+ ids: "ids";
329
+ }>;
330
+ }, z.core.$strip>]>;
331
+ }, z.core.$strip>>;
214
332
  fieldId: z.ZodEnum<{
215
333
  "event.updatedAt": "event.updatedAt";
216
334
  "event.status": "event.status";
@@ -307,6 +425,65 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
307
425
  validator: z.ZodAny;
308
426
  message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
309
427
  }, z.core.$strip>>>;
428
+ allowedLocations: z.ZodOptional<z.ZodObject<{
429
+ $jurisdiction: z.ZodUnion<[z.ZodEnum<{
430
+ administrativeArea: "administrativeArea";
431
+ location: "location";
432
+ all: "all";
433
+ }>, z.ZodObject<{
434
+ $scope: z.ZodEnum<{
435
+ "record.search": "record.search";
436
+ "record.create": "record.create";
437
+ "record.read": "record.read";
438
+ "record.declare": "record.declare";
439
+ "record.notify": "record.notify";
440
+ "record.edit": "record.edit";
441
+ "record.reject": "record.reject";
442
+ "record.archive": "record.archive";
443
+ "record.review-duplicates": "record.review-duplicates";
444
+ "record.register": "record.register";
445
+ "record.print-certified-copies": "record.print-certified-copies";
446
+ "record.request-correction": "record.request-correction";
447
+ "record.correct": "record.correct";
448
+ "record.unassign-others": "record.unassign-others";
449
+ "record.custom-action": "record.custom-action";
450
+ bypassratelimit: "bypassratelimit";
451
+ "record.reindex": "record.reindex";
452
+ "user.data-seeding": "user.data-seeding";
453
+ "integration.create": "integration.create";
454
+ "record.import": "record.import";
455
+ "config.update-all": "config.update-all";
456
+ "attachment.upload": "attachment.upload";
457
+ "profile.electronic-signature": "profile.electronic-signature";
458
+ "user.read-only-my-audit": "user.read-only-my-audit";
459
+ "performance.read": "performance.read";
460
+ "performance.read-dashboards": "performance.read-dashboards";
461
+ "performance.vital-statistics-export": "performance.vital-statistics-export";
462
+ "record.confirm-registration": "record.confirm-registration";
463
+ "record.reject-registration": "record.reject-registration";
464
+ "organisation.read-locations": "organisation.read-locations";
465
+ "user.read": "user.read";
466
+ "user.create": "user.create";
467
+ "user.edit": "user.edit";
468
+ "user.search": "user.search";
469
+ workqueue: "workqueue";
470
+ "dashboard.view": "dashboard.view";
471
+ }>;
472
+ $option: z.ZodEnum<{
473
+ role: "role";
474
+ event: "event";
475
+ placeOfEvent: "placeOfEvent";
476
+ notifiedIn: "notifiedIn";
477
+ notifiedBy: "notifiedBy";
478
+ declaredIn: "declaredIn";
479
+ declaredBy: "declaredBy";
480
+ registeredIn: "registeredIn";
481
+ registeredBy: "registeredBy";
482
+ accessLevel: "accessLevel";
483
+ ids: "ids";
484
+ }>;
485
+ }, z.core.$strip>]>;
486
+ }, z.core.$strip>>;
310
487
  fieldId: z.ZodString;
311
488
  fieldType: z.ZodLiteral<"field">;
312
489
  }, z.core.$strip>, z.ZodObject<{
@@ -395,6 +572,65 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
395
572
  validator: z.ZodAny;
396
573
  message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
397
574
  }, z.core.$strip>>>;
575
+ allowedLocations: z.ZodOptional<z.ZodObject<{
576
+ $jurisdiction: z.ZodUnion<[z.ZodEnum<{
577
+ administrativeArea: "administrativeArea";
578
+ location: "location";
579
+ all: "all";
580
+ }>, z.ZodObject<{
581
+ $scope: z.ZodEnum<{
582
+ "record.search": "record.search";
583
+ "record.create": "record.create";
584
+ "record.read": "record.read";
585
+ "record.declare": "record.declare";
586
+ "record.notify": "record.notify";
587
+ "record.edit": "record.edit";
588
+ "record.reject": "record.reject";
589
+ "record.archive": "record.archive";
590
+ "record.review-duplicates": "record.review-duplicates";
591
+ "record.register": "record.register";
592
+ "record.print-certified-copies": "record.print-certified-copies";
593
+ "record.request-correction": "record.request-correction";
594
+ "record.correct": "record.correct";
595
+ "record.unassign-others": "record.unassign-others";
596
+ "record.custom-action": "record.custom-action";
597
+ bypassratelimit: "bypassratelimit";
598
+ "record.reindex": "record.reindex";
599
+ "user.data-seeding": "user.data-seeding";
600
+ "integration.create": "integration.create";
601
+ "record.import": "record.import";
602
+ "config.update-all": "config.update-all";
603
+ "attachment.upload": "attachment.upload";
604
+ "profile.electronic-signature": "profile.electronic-signature";
605
+ "user.read-only-my-audit": "user.read-only-my-audit";
606
+ "performance.read": "performance.read";
607
+ "performance.read-dashboards": "performance.read-dashboards";
608
+ "performance.vital-statistics-export": "performance.vital-statistics-export";
609
+ "record.confirm-registration": "record.confirm-registration";
610
+ "record.reject-registration": "record.reject-registration";
611
+ "organisation.read-locations": "organisation.read-locations";
612
+ "user.read": "user.read";
613
+ "user.create": "user.create";
614
+ "user.edit": "user.edit";
615
+ "user.search": "user.search";
616
+ workqueue: "workqueue";
617
+ "dashboard.view": "dashboard.view";
618
+ }>;
619
+ $option: z.ZodEnum<{
620
+ role: "role";
621
+ event: "event";
622
+ placeOfEvent: "placeOfEvent";
623
+ notifiedIn: "notifiedIn";
624
+ notifiedBy: "notifiedBy";
625
+ declaredIn: "declaredIn";
626
+ declaredBy: "declaredBy";
627
+ registeredIn: "registeredIn";
628
+ registeredBy: "registeredBy";
629
+ accessLevel: "accessLevel";
630
+ ids: "ids";
631
+ }>;
632
+ }, z.core.$strip>]>;
633
+ }, z.core.$strip>>;
398
634
  fieldId: z.ZodEnum<{
399
635
  "event.updatedAt": "event.updatedAt";
400
636
  "event.status": "event.status";
@@ -494,6 +730,65 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
494
730
  validator: z.ZodAny;
495
731
  message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
496
732
  }, z.core.$strip>>>;
733
+ allowedLocations: z.ZodOptional<z.ZodObject<{
734
+ $jurisdiction: z.ZodUnion<[z.ZodEnum<{
735
+ administrativeArea: "administrativeArea";
736
+ location: "location";
737
+ all: "all";
738
+ }>, z.ZodObject<{
739
+ $scope: z.ZodEnum<{
740
+ "record.search": "record.search";
741
+ "record.create": "record.create";
742
+ "record.read": "record.read";
743
+ "record.declare": "record.declare";
744
+ "record.notify": "record.notify";
745
+ "record.edit": "record.edit";
746
+ "record.reject": "record.reject";
747
+ "record.archive": "record.archive";
748
+ "record.review-duplicates": "record.review-duplicates";
749
+ "record.register": "record.register";
750
+ "record.print-certified-copies": "record.print-certified-copies";
751
+ "record.request-correction": "record.request-correction";
752
+ "record.correct": "record.correct";
753
+ "record.unassign-others": "record.unassign-others";
754
+ "record.custom-action": "record.custom-action";
755
+ bypassratelimit: "bypassratelimit";
756
+ "record.reindex": "record.reindex";
757
+ "user.data-seeding": "user.data-seeding";
758
+ "integration.create": "integration.create";
759
+ "record.import": "record.import";
760
+ "config.update-all": "config.update-all";
761
+ "attachment.upload": "attachment.upload";
762
+ "profile.electronic-signature": "profile.electronic-signature";
763
+ "user.read-only-my-audit": "user.read-only-my-audit";
764
+ "performance.read": "performance.read";
765
+ "performance.read-dashboards": "performance.read-dashboards";
766
+ "performance.vital-statistics-export": "performance.vital-statistics-export";
767
+ "record.confirm-registration": "record.confirm-registration";
768
+ "record.reject-registration": "record.reject-registration";
769
+ "organisation.read-locations": "organisation.read-locations";
770
+ "user.read": "user.read";
771
+ "user.create": "user.create";
772
+ "user.edit": "user.edit";
773
+ "user.search": "user.search";
774
+ workqueue: "workqueue";
775
+ "dashboard.view": "dashboard.view";
776
+ }>;
777
+ $option: z.ZodEnum<{
778
+ role: "role";
779
+ event: "event";
780
+ placeOfEvent: "placeOfEvent";
781
+ notifiedIn: "notifiedIn";
782
+ notifiedBy: "notifiedBy";
783
+ declaredIn: "declaredIn";
784
+ declaredBy: "declaredBy";
785
+ registeredIn: "registeredIn";
786
+ registeredBy: "registeredBy";
787
+ accessLevel: "accessLevel";
788
+ ids: "ids";
789
+ }>;
790
+ }, z.core.$strip>]>;
791
+ }, z.core.$strip>>;
497
792
  fieldId: z.ZodString;
498
793
  fieldType: z.ZodLiteral<"field">;
499
794
  }, z.core.$strip>, z.ZodObject<{
@@ -582,6 +877,65 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
582
877
  validator: z.ZodAny;
583
878
  message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
584
879
  }, z.core.$strip>>>;
880
+ allowedLocations: z.ZodOptional<z.ZodObject<{
881
+ $jurisdiction: z.ZodUnion<[z.ZodEnum<{
882
+ administrativeArea: "administrativeArea";
883
+ location: "location";
884
+ all: "all";
885
+ }>, z.ZodObject<{
886
+ $scope: z.ZodEnum<{
887
+ "record.search": "record.search";
888
+ "record.create": "record.create";
889
+ "record.read": "record.read";
890
+ "record.declare": "record.declare";
891
+ "record.notify": "record.notify";
892
+ "record.edit": "record.edit";
893
+ "record.reject": "record.reject";
894
+ "record.archive": "record.archive";
895
+ "record.review-duplicates": "record.review-duplicates";
896
+ "record.register": "record.register";
897
+ "record.print-certified-copies": "record.print-certified-copies";
898
+ "record.request-correction": "record.request-correction";
899
+ "record.correct": "record.correct";
900
+ "record.unassign-others": "record.unassign-others";
901
+ "record.custom-action": "record.custom-action";
902
+ bypassratelimit: "bypassratelimit";
903
+ "record.reindex": "record.reindex";
904
+ "user.data-seeding": "user.data-seeding";
905
+ "integration.create": "integration.create";
906
+ "record.import": "record.import";
907
+ "config.update-all": "config.update-all";
908
+ "attachment.upload": "attachment.upload";
909
+ "profile.electronic-signature": "profile.electronic-signature";
910
+ "user.read-only-my-audit": "user.read-only-my-audit";
911
+ "performance.read": "performance.read";
912
+ "performance.read-dashboards": "performance.read-dashboards";
913
+ "performance.vital-statistics-export": "performance.vital-statistics-export";
914
+ "record.confirm-registration": "record.confirm-registration";
915
+ "record.reject-registration": "record.reject-registration";
916
+ "organisation.read-locations": "organisation.read-locations";
917
+ "user.read": "user.read";
918
+ "user.create": "user.create";
919
+ "user.edit": "user.edit";
920
+ "user.search": "user.search";
921
+ workqueue: "workqueue";
922
+ "dashboard.view": "dashboard.view";
923
+ }>;
924
+ $option: z.ZodEnum<{
925
+ role: "role";
926
+ event: "event";
927
+ placeOfEvent: "placeOfEvent";
928
+ notifiedIn: "notifiedIn";
929
+ notifiedBy: "notifiedBy";
930
+ declaredIn: "declaredIn";
931
+ declaredBy: "declaredBy";
932
+ registeredIn: "registeredIn";
933
+ registeredBy: "registeredBy";
934
+ accessLevel: "accessLevel";
935
+ ids: "ids";
936
+ }>;
937
+ }, z.core.$strip>]>;
938
+ }, z.core.$strip>>;
585
939
  fieldId: z.ZodEnum<{
586
940
  "event.updatedAt": "event.updatedAt";
587
941
  "event.status": "event.status";
@@ -346,6 +346,13 @@ export declare const SerializedQueryExpression: z.ZodObject<{
346
346
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
347
347
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
348
348
  }>]>, z.ZodString]>>>;
349
+ allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
350
+ readonly INCOMPLETE: "incomplete";
351
+ readonly REJECTED: "rejected";
352
+ readonly CORRECTION_REQUESTED: "correction-requested";
353
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
354
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
355
+ }>]>, z.ZodString]>>>;
349
356
  }, z.core.$strip>>>;
350
357
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
351
358
  }, z.core.$strip>;
@@ -657,6 +664,13 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
657
664
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
658
665
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
659
666
  }>]>, z.ZodString]>>>;
667
+ allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
668
+ readonly INCOMPLETE: "incomplete";
669
+ readonly REJECTED: "rejected";
670
+ readonly CORRECTION_REQUESTED: "correction-requested";
671
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
672
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
673
+ }>]>, z.ZodString]>>>;
660
674
  }, z.core.$strip>>>;
661
675
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
662
676
  }, z.core.$strip>>;
@@ -967,6 +981,13 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
967
981
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
968
982
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
969
983
  }>]>, z.ZodString]>>>;
984
+ allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
985
+ readonly INCOMPLETE: "incomplete";
986
+ readonly REJECTED: "rejected";
987
+ readonly CORRECTION_REQUESTED: "correction-requested";
988
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
989
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
990
+ }>]>, z.ZodString]>>>;
970
991
  }, z.core.$strip>>>;
971
992
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
972
993
  }, z.core.$strip>>;
@@ -1277,6 +1298,13 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
1277
1298
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1278
1299
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
1279
1300
  }>]>, z.ZodString]>>>;
1301
+ allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
1302
+ readonly INCOMPLETE: "incomplete";
1303
+ readonly REJECTED: "rejected";
1304
+ readonly CORRECTION_REQUESTED: "correction-requested";
1305
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1306
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
1307
+ }>]>, z.ZodString]>>>;
1280
1308
  }, z.core.$strip>>>;
1281
1309
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1282
1310
  }, z.core.$strip>, z.ZodObject<{
@@ -1586,6 +1614,13 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
1586
1614
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1587
1615
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
1588
1616
  }>]>, z.ZodString]>>>;
1617
+ allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
1618
+ readonly INCOMPLETE: "incomplete";
1619
+ readonly REJECTED: "rejected";
1620
+ readonly CORRECTION_REQUESTED: "correction-requested";
1621
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1622
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
1623
+ }>]>, z.ZodString]>>>;
1589
1624
  }, z.core.$strip>>>;
1590
1625
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1591
1626
  }, z.core.$strip>>;
@@ -1896,6 +1931,13 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
1896
1931
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1897
1932
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
1898
1933
  }>]>, z.ZodString]>>>;
1934
+ allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
1935
+ readonly INCOMPLETE: "incomplete";
1936
+ readonly REJECTED: "rejected";
1937
+ readonly CORRECTION_REQUESTED: "correction-requested";
1938
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1939
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
1940
+ }>]>, z.ZodString]>>>;
1899
1941
  }, z.core.$strip>>>;
1900
1942
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1901
1943
  }, z.core.$strip>>;
@@ -45,13 +45,15 @@ export declare const Draft: z.ZodObject<{
45
45
  }, z.core.$strip>;
46
46
  }, z.core.$strip>;
47
47
  export declare const DraftInput: z.ZodObject<{
48
- eventId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
49
48
  transactionId: z.ZodString;
49
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
50
50
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
51
51
  annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
52
52
  originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
53
+ eventId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
53
54
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
54
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
55
+ keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
56
+ keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
55
57
  type: z.ZodEnum<{
56
58
  CUSTOM: "CUSTOM";
57
59
  CREATE: "CREATE";
@@ -10,6 +10,8 @@ export declare const EventFieldReference: z.ZodObject<{
10
10
  $$event: z.ZodEnum<{
11
11
  updatedAt: "updatedAt";
12
12
  createdAt: "createdAt";
13
+ "legalStatuses.NOTIFIED.createdAt": "legalStatuses.NOTIFIED.createdAt";
14
+ "legalStatuses.NOTIFIED.acceptedAt": "legalStatuses.NOTIFIED.acceptedAt";
13
15
  "legalStatuses.DECLARED.createdAt": "legalStatuses.DECLARED.createdAt";
14
16
  "legalStatuses.DECLARED.acceptedAt": "legalStatuses.DECLARED.acceptedAt";
15
17
  "legalStatuses.REGISTERED.createdAt": "legalStatuses.REGISTERED.createdAt";
@@ -274,6 +274,9 @@ export declare const EventDocument: z.ZodObject<{
274
274
  originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
275
275
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
276
276
  requestId: z.ZodString;
277
+ content: z.ZodOptional<z.ZodObject<{
278
+ immediateCorrection: z.ZodOptional<z.ZodBoolean>;
279
+ }, z.core.$strip>>;
277
280
  }, z.core.$strip>, z.ZodObject<{
278
281
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
279
282
  transactionId: z.ZodString;
@@ -10,6 +10,17 @@ export declare const EventIndex: z.ZodObject<{
10
10
  ARCHIVED: "ARCHIVED";
11
11
  }>;
12
12
  legalStatuses: z.ZodObject<{
13
+ NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
14
+ createdAt: z.ZodISODateTime;
15
+ createdBy: z.ZodString;
16
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
17
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
18
+ user: "user";
19
+ system: "system";
20
+ }>>>;
21
+ acceptedAt: z.ZodISODateTime;
22
+ createdByRole: z.ZodOptional<z.ZodString>;
23
+ }, z.core.$strip>>>;
13
24
  DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
14
25
  createdAt: z.ZodISODateTime;
15
26
  createdBy: z.ZodString;
@@ -20,7 +31,6 @@ export declare const EventIndex: z.ZodObject<{
20
31
  }>>>;
21
32
  acceptedAt: z.ZodISODateTime;
22
33
  createdByRole: z.ZodOptional<z.ZodString>;
23
- createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
34
  }, z.core.$strip>>>;
25
35
  REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
26
36
  createdAt: z.ZodISODateTime;
@@ -32,7 +42,6 @@ export declare const EventIndex: z.ZodObject<{
32
42
  }>>>;
33
43
  acceptedAt: z.ZodISODateTime;
34
44
  createdByRole: z.ZodOptional<z.ZodString>;
35
- createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
45
  registrationNumber: z.ZodString;
37
46
  }, z.core.$strip>>>;
38
47
  }, z.core.$strip>;
@@ -46,7 +55,6 @@ export declare const EventIndex: z.ZodObject<{
46
55
  }>>>;
47
56
  updatedByUserRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
57
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
49
- createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
50
58
  updatedAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
51
59
  updatedAt: z.ZodISODateTime;
52
60
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -130,6 +138,13 @@ export declare const ContainsFlags: z.ZodObject<{
130
138
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
131
139
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
132
140
  }>]>, z.ZodString]>>>;
141
+ allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
142
+ readonly INCOMPLETE: "incomplete";
143
+ readonly REJECTED: "rejected";
144
+ readonly CORRECTION_REQUESTED: "correction-requested";
145
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
146
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
147
+ }>]>, z.ZodString]>>>;
133
148
  }, z.core.$strip>;
134
149
  export declare const Within: z.ZodObject<{
135
150
  type: z.ZodLiteral<"within">;
@@ -309,6 +324,13 @@ export declare const QueryExpression: z.ZodObject<{
309
324
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
310
325
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
311
326
  }>]>, z.ZodString]>>>;
327
+ allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
328
+ readonly INCOMPLETE: "incomplete";
329
+ readonly REJECTED: "rejected";
330
+ readonly CORRECTION_REQUESTED: "correction-requested";
331
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
332
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
333
+ }>]>, z.ZodString]>>>;
312
334
  }, z.core.$strip>>>;
313
335
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
314
336
  }, z.core.$strip>;