@opencrvs/toolkit 2.0.0-rc.9954a7c → 2.0.0-rc.99921a2

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 (113) hide show
  1. package/README.md +15 -0
  2. package/build.sh +5 -4
  3. package/dist/application-config/index.js +82 -40
  4. package/dist/cli.js +3186 -4915
  5. package/dist/commons/api/router.d.ts +700 -22
  6. package/dist/commons/application-config/index.d.ts +1 -0
  7. package/dist/commons/conditionals/conditionals.d.ts +354 -10
  8. package/dist/commons/conditionals/validate.d.ts +51 -2
  9. package/dist/commons/events/ActionConfig.d.ts +230 -2
  10. package/dist/commons/events/ActionDocument.d.ts +50 -0
  11. package/dist/commons/events/ActionInput.d.ts +32 -0
  12. package/dist/commons/events/ActionType.d.ts +6 -1
  13. package/dist/commons/events/AdvancedSearchConfig.d.ts +360 -0
  14. package/dist/commons/events/AuditLog.d.ts +2 -0
  15. package/dist/commons/events/CountryConfigQueryInput.d.ts +42 -0
  16. package/dist/commons/events/Draft.d.ts +2 -0
  17. package/dist/commons/events/EventConfig.d.ts +2 -0
  18. package/dist/commons/events/EventDocument.d.ts +25 -0
  19. package/dist/commons/events/EventIndex.d.ts +25 -0
  20. package/dist/commons/events/EventMetadata.d.ts +26 -0
  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 +44 -2
  26. package/dist/commons/events/field.d.ts +53 -1
  27. package/dist/commons/events/index.d.ts +1 -0
  28. package/dist/commons/events/locations.d.ts +1 -0
  29. package/dist/commons/events/scopes.d.ts +1 -0
  30. package/dist/commons/events/state/flags.d.ts +14 -0
  31. package/dist/commons/events/state/index.d.ts +8 -0
  32. package/dist/commons/events/state/utils.d.ts +21 -287
  33. package/dist/commons/events/test.utils.d.ts +9 -1
  34. package/dist/commons/events/utils.d.ts +27 -2
  35. package/dist/conditionals/index.js +60 -6
  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 +600 -158
  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 -1
  91. package/dist/migrations/v2.0/index.js +88 -5133
  92. package/dist/migrations/v2.1/add-explicit-correction-flags.d.ts +3 -0
  93. package/dist/migrations/v2.1/add-explicit-correction-flags.d.ts.map +1 -0
  94. package/dist/migrations/v2.1/add-explicit-correction-flags.js +234 -0
  95. package/dist/migrations/v2.1/index.d.ts +6 -0
  96. package/dist/migrations/v2.1/index.d.ts.map +1 -0
  97. package/dist/migrations/v2.1/index.js +218 -0
  98. package/dist/notification/index.js +389 -49
  99. package/dist/scopes/index.d.ts +100 -8
  100. package/dist/scopes/index.js +21 -8
  101. package/dist/templates/charts-values/dependencies/values.override.yaml +4 -0
  102. package/dist/templates/charts-values/dependencies/values.yaml +83 -0
  103. package/dist/templates/charts-values/opencrvs-services/values.override.yaml +4 -0
  104. package/dist/templates/charts-values/opencrvs-services/values.yaml +81 -0
  105. package/dist/templates/charts-values/traefik/values.override.yaml +4 -0
  106. package/dist/templates/charts-values/traefik/values.yaml +115 -0
  107. package/dist/templates/inventory/inventory.template.yml +100 -0
  108. package/dist/templates/inventory/production.example.yml +77 -0
  109. package/dist/templates/inventory/qa.example.yml +48 -0
  110. package/opencrvs-toolkit-2.0.0-rc.99921a2.tgz +0 -0
  111. package/package.json +15 -1
  112. package/tsconfig.tsbuildinfo +1 -1
  113. package/opencrvs-toolkit-2.0.0-rc.9954a7c.tgz +0 -0
@@ -226,6 +226,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
226
226
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
227
227
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
228
228
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
229
+ } | {
230
+ id: string & import("zod").$brand<"UUID">;
231
+ transactionId: string;
232
+ createdByUserType: "system" | "user";
233
+ createdAt: string;
234
+ createdBy: string;
235
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
236
+ status: "Requested" | "Accepted" | "Rejected";
237
+ type: "UNARCHIVE";
238
+ createdByRole?: string | undefined;
239
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
240
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
241
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
242
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
229
243
  } | {
230
244
  id: string & import("zod").$brand<"UUID">;
231
245
  transactionId: string;
@@ -313,6 +327,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
313
327
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
314
328
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
315
329
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
330
+ content?: {
331
+ immediateCorrection?: boolean | undefined;
332
+ } | undefined;
316
333
  } | {
317
334
  id: string & import("zod").$brand<"UUID">;
318
335
  transactionId: string;
@@ -414,7 +431,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
414
431
  createdByUserType: "system" | "user";
415
432
  createdAt: string;
416
433
  createdBy: string;
417
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
434
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "UNARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
418
435
  status: "Rejected";
419
436
  createdByRole?: string | undefined;
420
437
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -535,6 +552,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
535
552
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
536
553
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
537
554
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
555
+ } | {
556
+ id: string & import("zod").$brand<"UUID">;
557
+ transactionId: string;
558
+ createdByUserType: "system" | "user";
559
+ createdAt: string;
560
+ createdBy: string;
561
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
562
+ status: "Requested" | "Accepted" | "Rejected";
563
+ type: "UNARCHIVE";
564
+ createdByRole?: string | undefined;
565
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
566
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
567
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
568
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
538
569
  } | {
539
570
  id: string & import("zod").$brand<"UUID">;
540
571
  transactionId: string;
@@ -622,6 +653,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
622
653
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
623
654
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
624
655
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
656
+ content?: {
657
+ immediateCorrection?: boolean | undefined;
658
+ } | undefined;
625
659
  } | {
626
660
  id: string & import("zod").$brand<"UUID">;
627
661
  transactionId: string;
@@ -723,7 +757,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
723
757
  createdByUserType: "system" | "user";
724
758
  createdAt: string;
725
759
  createdBy: string;
726
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
760
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "UNARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
727
761
  status: "Rejected";
728
762
  createdByRole?: string | undefined;
729
763
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -843,6 +877,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
843
877
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
844
878
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
845
879
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
880
+ } | {
881
+ id: string & import("zod").$brand<"UUID">;
882
+ transactionId: string;
883
+ createdByUserType: "system" | "user";
884
+ createdAt: string;
885
+ createdBy: string;
886
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
887
+ status: "Requested" | "Accepted" | "Rejected";
888
+ type: "UNARCHIVE";
889
+ createdByRole?: string | undefined;
890
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
891
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
892
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
893
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
846
894
  } | {
847
895
  id: string & import("zod").$brand<"UUID">;
848
896
  transactionId: string;
@@ -930,6 +978,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
930
978
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
931
979
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
932
980
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
981
+ content?: {
982
+ immediateCorrection?: boolean | undefined;
983
+ } | undefined;
933
984
  } | {
934
985
  id: string & import("zod").$brand<"UUID">;
935
986
  transactionId: string;
@@ -1031,7 +1082,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1031
1082
  createdByUserType: "system" | "user";
1032
1083
  createdAt: string;
1033
1084
  createdBy: string;
1034
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
1085
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "UNARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
1035
1086
  status: "Rejected";
1036
1087
  createdByRole?: string | undefined;
1037
1088
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -1081,7 +1132,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1081
1132
  transactionId: string;
1082
1133
  createdAt: string;
1083
1134
  action: {
1084
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "CUSTOM" | "CREATE" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "ASSIGN" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "UNASSIGN";
1135
+ type: "CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "UNARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM";
1085
1136
  transactionId: string;
1086
1137
  createdByUserType: "system" | "user";
1087
1138
  createdAt: string;
@@ -1100,7 +1151,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1100
1151
  input: {
1101
1152
  transactionId: string;
1102
1153
  eventId: string;
1103
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "CUSTOM" | "CREATE" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "ASSIGN" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "UNASSIGN";
1154
+ type: "CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "UNARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM";
1104
1155
  status: "Requested" | "Accepted" | "Rejected";
1105
1156
  createdAtLocation?: string | null | undefined;
1106
1157
  declaration?: Record<string, unknown> | undefined;
@@ -1116,7 +1167,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1116
1167
  transactionId: string;
1117
1168
  createdAt: string;
1118
1169
  action: {
1119
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "CUSTOM" | "CREATE" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "ASSIGN" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "UNASSIGN";
1170
+ type: "CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "UNARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM";
1120
1171
  transactionId: string;
1121
1172
  createdByUserType: "system" | "user";
1122
1173
  createdAt: string;
@@ -1306,6 +1357,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1306
1357
  waitFor?: boolean | undefined;
1307
1358
  createdAtLocation?: string | null | undefined;
1308
1359
  type?: "ARCHIVE" | undefined;
1360
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1361
+ eventId: string;
1362
+ transactionId: string;
1363
+ declaration?: Record<string, unknown> | undefined;
1364
+ annotation?: Record<string, unknown> | undefined;
1365
+ originalActionId?: string | undefined;
1366
+ keepAssignment?: boolean | undefined;
1367
+ keepAssignmentIfAccepted?: boolean | undefined;
1368
+ keepAssignmentIfRejected?: boolean | undefined;
1369
+ waitFor?: boolean | undefined;
1370
+ createdAtLocation?: string | null | undefined;
1371
+ type?: "UNARCHIVE" | undefined;
1309
1372
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1310
1373
  eventId: string;
1311
1374
  transactionId: string;
@@ -1388,6 +1451,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1388
1451
  waitFor?: boolean | undefined;
1389
1452
  createdAtLocation?: string | null | undefined;
1390
1453
  type?: "APPROVE_CORRECTION" | undefined;
1454
+ content?: {
1455
+ immediateCorrection?: boolean | undefined;
1456
+ } | undefined;
1391
1457
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1392
1458
  eventId: string;
1393
1459
  transactionId: string;
@@ -1585,6 +1651,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1585
1651
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1586
1652
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1587
1653
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1654
+ } | {
1655
+ id: string & import("zod").$brand<"UUID">;
1656
+ transactionId: string;
1657
+ createdByUserType: "system" | "user";
1658
+ createdAt: string;
1659
+ createdBy: string;
1660
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1661
+ status: "Requested" | "Accepted" | "Rejected";
1662
+ type: "UNARCHIVE";
1663
+ createdByRole?: string | undefined;
1664
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1665
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1666
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1667
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1588
1668
  } | {
1589
1669
  id: string & import("zod").$brand<"UUID">;
1590
1670
  transactionId: string;
@@ -1672,6 +1752,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1672
1752
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1673
1753
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1674
1754
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1755
+ content?: {
1756
+ immediateCorrection?: boolean | undefined;
1757
+ } | undefined;
1675
1758
  } | {
1676
1759
  id: string & import("zod").$brand<"UUID">;
1677
1760
  transactionId: string;
@@ -1773,7 +1856,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1773
1856
  createdByUserType: "system" | "user";
1774
1857
  createdAt: string;
1775
1858
  createdBy: string;
1776
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
1859
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "UNARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
1777
1860
  status: "Rejected";
1778
1861
  createdByRole?: string | undefined;
1779
1862
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -1925,6 +2008,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1925
2008
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1926
2009
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1927
2010
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2011
+ } | {
2012
+ id: string & import("zod").$brand<"UUID">;
2013
+ transactionId: string;
2014
+ createdByUserType: "system" | "user";
2015
+ createdAt: string;
2016
+ createdBy: string;
2017
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
2018
+ status: "Requested" | "Accepted" | "Rejected";
2019
+ type: "UNARCHIVE";
2020
+ createdByRole?: string | undefined;
2021
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2022
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2023
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
2024
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1928
2025
  } | {
1929
2026
  id: string & import("zod").$brand<"UUID">;
1930
2027
  transactionId: string;
@@ -2012,6 +2109,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2012
2109
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2013
2110
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
2014
2111
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2112
+ content?: {
2113
+ immediateCorrection?: boolean | undefined;
2114
+ } | undefined;
2015
2115
  } | {
2016
2116
  id: string & import("zod").$brand<"UUID">;
2017
2117
  transactionId: string;
@@ -2113,7 +2213,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2113
2213
  createdByUserType: "system" | "user";
2114
2214
  createdAt: string;
2115
2215
  createdBy: string;
2116
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
2216
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "UNARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
2117
2217
  status: "Rejected";
2118
2218
  createdByRole?: string | undefined;
2119
2219
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -2249,6 +2349,325 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2249
2349
  waitFor?: boolean | undefined;
2250
2350
  createdAtLocation?: string | null | undefined;
2251
2351
  type?: "ARCHIVE" | undefined;
2352
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2353
+ eventId: string;
2354
+ transactionId: string;
2355
+ declaration?: Record<string, unknown> | undefined;
2356
+ annotation?: Record<string, unknown> | undefined;
2357
+ originalActionId?: string | undefined;
2358
+ keepAssignment?: boolean | undefined;
2359
+ keepAssignmentIfAccepted?: boolean | undefined;
2360
+ keepAssignmentIfRejected?: boolean | undefined;
2361
+ waitFor?: boolean | undefined;
2362
+ createdAtLocation?: string | null | undefined;
2363
+ type?: "UNARCHIVE" | undefined;
2364
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2365
+ eventId: string;
2366
+ transactionId: string;
2367
+ type: "ASSIGN";
2368
+ assignedTo: string;
2369
+ declaration?: Record<string, unknown> | undefined;
2370
+ annotation?: Record<string, unknown> | undefined;
2371
+ originalActionId?: string | undefined;
2372
+ keepAssignment?: boolean | undefined;
2373
+ keepAssignmentIfAccepted?: boolean | undefined;
2374
+ keepAssignmentIfRejected?: boolean | undefined;
2375
+ waitFor?: boolean | undefined;
2376
+ createdAtLocation?: string | null | undefined;
2377
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2378
+ eventId: string;
2379
+ transactionId: string;
2380
+ declaration?: Record<string, unknown> | undefined;
2381
+ annotation?: Record<string, unknown> | undefined;
2382
+ originalActionId?: string | undefined;
2383
+ keepAssignment?: boolean | undefined;
2384
+ keepAssignmentIfAccepted?: boolean | undefined;
2385
+ keepAssignmentIfRejected?: boolean | undefined;
2386
+ waitFor?: boolean | undefined;
2387
+ createdAtLocation?: string | null | undefined;
2388
+ type?: "UNASSIGN" | undefined;
2389
+ assignedTo?: null | undefined;
2390
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2391
+ eventId: string;
2392
+ transactionId: string;
2393
+ declaration?: Record<string, unknown> | undefined;
2394
+ annotation?: Record<string, unknown> | undefined;
2395
+ originalActionId?: string | undefined;
2396
+ keepAssignment?: boolean | undefined;
2397
+ keepAssignmentIfAccepted?: boolean | undefined;
2398
+ keepAssignmentIfRejected?: boolean | undefined;
2399
+ waitFor?: boolean | undefined;
2400
+ createdAtLocation?: string | null | undefined;
2401
+ type?: "PRINT_CERTIFICATE" | undefined;
2402
+ content?: {
2403
+ templateId?: string | undefined;
2404
+ } | undefined;
2405
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2406
+ eventId: string;
2407
+ transactionId: string;
2408
+ declaration?: Record<string, unknown> | undefined;
2409
+ annotation?: Record<string, unknown> | undefined;
2410
+ originalActionId?: string | undefined;
2411
+ keepAssignment?: boolean | undefined;
2412
+ keepAssignmentIfAccepted?: boolean | undefined;
2413
+ keepAssignmentIfRejected?: boolean | undefined;
2414
+ waitFor?: boolean | undefined;
2415
+ createdAtLocation?: string | null | undefined;
2416
+ type?: "REQUEST_CORRECTION" | undefined;
2417
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2418
+ eventId: string;
2419
+ transactionId: string;
2420
+ requestId: string;
2421
+ content: {
2422
+ reason: string;
2423
+ };
2424
+ declaration?: Record<string, unknown> | undefined;
2425
+ annotation?: Record<string, unknown> | undefined;
2426
+ originalActionId?: string | undefined;
2427
+ keepAssignment?: boolean | undefined;
2428
+ keepAssignmentIfAccepted?: boolean | undefined;
2429
+ keepAssignmentIfRejected?: boolean | undefined;
2430
+ waitFor?: boolean | undefined;
2431
+ createdAtLocation?: string | null | undefined;
2432
+ type?: "REJECT_CORRECTION" | undefined;
2433
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2434
+ eventId: string;
2435
+ transactionId: string;
2436
+ requestId: string;
2437
+ declaration?: Record<string, unknown> | undefined;
2438
+ annotation?: Record<string, unknown> | undefined;
2439
+ originalActionId?: string | undefined;
2440
+ keepAssignment?: boolean | undefined;
2441
+ keepAssignmentIfAccepted?: boolean | undefined;
2442
+ keepAssignmentIfRejected?: boolean | undefined;
2443
+ waitFor?: boolean | undefined;
2444
+ createdAtLocation?: string | null | undefined;
2445
+ type?: "APPROVE_CORRECTION" | undefined;
2446
+ content?: {
2447
+ immediateCorrection?: boolean | undefined;
2448
+ } | undefined;
2449
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2450
+ eventId: string;
2451
+ transactionId: string;
2452
+ declaration?: Record<string, unknown> | undefined;
2453
+ annotation?: Record<string, unknown> | undefined;
2454
+ originalActionId?: string | undefined;
2455
+ keepAssignment?: boolean | undefined;
2456
+ keepAssignmentIfAccepted?: boolean | undefined;
2457
+ keepAssignmentIfRejected?: boolean | undefined;
2458
+ waitFor?: boolean | undefined;
2459
+ createdAtLocation?: string | null | undefined;
2460
+ type?: "READ" | undefined;
2461
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2462
+ eventId: string;
2463
+ transactionId: string;
2464
+ customActionType: string;
2465
+ declaration?: Record<string, unknown> | undefined;
2466
+ annotation?: Record<string, unknown> | undefined;
2467
+ originalActionId?: string | undefined;
2468
+ keepAssignment?: boolean | undefined;
2469
+ keepAssignmentIfAccepted?: boolean | undefined;
2470
+ keepAssignmentIfRejected?: boolean | undefined;
2471
+ waitFor?: boolean | undefined;
2472
+ createdAtLocation?: string | null | undefined;
2473
+ type?: "CUSTOM" | undefined;
2474
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2475
+ eventId: string;
2476
+ transactionId: string;
2477
+ content: {
2478
+ comment?: string | undefined;
2479
+ };
2480
+ declaration?: Record<string, unknown> | undefined;
2481
+ annotation?: Record<string, unknown> | undefined;
2482
+ originalActionId?: string | undefined;
2483
+ keepAssignment?: boolean | undefined;
2484
+ keepAssignmentIfAccepted?: boolean | undefined;
2485
+ keepAssignmentIfRejected?: boolean | undefined;
2486
+ waitFor?: boolean | undefined;
2487
+ createdAtLocation?: string | null | undefined;
2488
+ type?: "EDIT" | undefined;
2489
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2490
+ actionId: string;
2491
+ };
2492
+ output: import("../commons").EventDocument;
2493
+ meta: import("trpc-to-openapi").OpenApiMeta;
2494
+ }>;
2495
+ reject: import("@trpc/server").TRPCMutationProcedure<{
2496
+ input: import("zod").input<import("zod").ZodObject<{
2497
+ transactionId: import("zod").ZodString;
2498
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2499
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2500
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
2501
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2502
+ }, import("zod/v4/core").$strip>>;
2503
+ output: import("../commons").EventDocument;
2504
+ meta: import("trpc-to-openapi").OpenApiMeta;
2505
+ }>;
2506
+ }>>;
2507
+ edit: import("@trpc/server").TRPCBuiltRouter<{
2508
+ ctx: Partial<{
2509
+ token: `Bearer ${string}`;
2510
+ user: {
2511
+ id: string & import("zod").$brand<"UUID">;
2512
+ type: "system";
2513
+ signature?: undefined;
2514
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2515
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2516
+ } | {
2517
+ id: string & import("zod").$brand<"UUID">;
2518
+ type: "user";
2519
+ role: string;
2520
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
2521
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2522
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2523
+ };
2524
+ }>;
2525
+ meta: import("trpc-to-openapi").OpenApiMeta;
2526
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
2527
+ transformer: true;
2528
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
2529
+ request: import("@trpc/server").TRPCMutationProcedure<{
2530
+ input: import("../commons").ActionInput;
2531
+ output: import("../commons").EventDocument;
2532
+ meta: import("trpc-to-openapi").OpenApiMeta;
2533
+ }>;
2534
+ accept: import("@trpc/server").TRPCMutationProcedure<{
2535
+ input: (Omit<{
2536
+ eventId: string;
2537
+ transactionId: string;
2538
+ declaration?: Record<string, unknown> | undefined;
2539
+ annotation?: Record<string, unknown> | undefined;
2540
+ originalActionId?: string | undefined;
2541
+ keepAssignment?: boolean | undefined;
2542
+ keepAssignmentIfAccepted?: boolean | undefined;
2543
+ keepAssignmentIfRejected?: boolean | undefined;
2544
+ waitFor?: boolean | undefined;
2545
+ type?: "CREATE" | undefined;
2546
+ createdAtLocation?: string | null | undefined;
2547
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2548
+ eventId: string;
2549
+ transactionId: string;
2550
+ declaration?: Record<string, unknown> | undefined;
2551
+ annotation?: Record<string, unknown> | undefined;
2552
+ originalActionId?: string | undefined;
2553
+ keepAssignment?: boolean | undefined;
2554
+ keepAssignmentIfAccepted?: boolean | undefined;
2555
+ keepAssignmentIfRejected?: boolean | undefined;
2556
+ waitFor?: boolean | undefined;
2557
+ createdAtLocation?: string | null | undefined;
2558
+ type?: "REGISTER" | undefined;
2559
+ registrationNumber?: string | undefined;
2560
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2561
+ eventId: string;
2562
+ transactionId: string;
2563
+ declaration?: Record<string, unknown> | undefined;
2564
+ annotation?: Record<string, unknown> | undefined;
2565
+ originalActionId?: string | undefined;
2566
+ keepAssignment?: boolean | undefined;
2567
+ keepAssignmentIfAccepted?: boolean | undefined;
2568
+ keepAssignmentIfRejected?: boolean | undefined;
2569
+ waitFor?: boolean | undefined;
2570
+ type?: "NOTIFY" | undefined;
2571
+ createdAtLocation?: string | null | undefined;
2572
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2573
+ eventId: string;
2574
+ transactionId: string;
2575
+ declaration?: Record<string, unknown> | undefined;
2576
+ annotation?: Record<string, unknown> | undefined;
2577
+ originalActionId?: string | undefined;
2578
+ keepAssignment?: boolean | undefined;
2579
+ keepAssignmentIfAccepted?: boolean | undefined;
2580
+ keepAssignmentIfRejected?: boolean | undefined;
2581
+ waitFor?: boolean | undefined;
2582
+ createdAtLocation?: string | null | undefined;
2583
+ type?: "DECLARE" | undefined;
2584
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2585
+ eventId: string;
2586
+ transactionId: string;
2587
+ content: {
2588
+ reason: string;
2589
+ };
2590
+ declaration?: Record<string, unknown> | undefined;
2591
+ annotation?: Record<string, unknown> | undefined;
2592
+ originalActionId?: string | undefined;
2593
+ keepAssignment?: boolean | undefined;
2594
+ keepAssignmentIfAccepted?: boolean | undefined;
2595
+ keepAssignmentIfRejected?: boolean | undefined;
2596
+ waitFor?: boolean | undefined;
2597
+ createdAtLocation?: string | null | undefined;
2598
+ type?: "REJECT" | undefined;
2599
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2600
+ eventId: string;
2601
+ transactionId: string;
2602
+ content: {
2603
+ duplicates: {
2604
+ id: string;
2605
+ trackingId: string;
2606
+ }[];
2607
+ };
2608
+ declaration?: Record<string, unknown> | undefined;
2609
+ annotation?: Record<string, unknown> | undefined;
2610
+ originalActionId?: string | undefined;
2611
+ keepAssignment?: boolean | undefined;
2612
+ keepAssignmentIfAccepted?: boolean | undefined;
2613
+ keepAssignmentIfRejected?: boolean | undefined;
2614
+ waitFor?: boolean | undefined;
2615
+ createdAtLocation?: string | null | undefined;
2616
+ type?: "DUPLICATE_DETECTED" | undefined;
2617
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2618
+ eventId: string;
2619
+ transactionId: string;
2620
+ declaration?: Record<string, unknown> | undefined;
2621
+ annotation?: Record<string, unknown> | undefined;
2622
+ originalActionId?: string | undefined;
2623
+ keepAssignment?: boolean | undefined;
2624
+ keepAssignmentIfAccepted?: boolean | undefined;
2625
+ keepAssignmentIfRejected?: boolean | undefined;
2626
+ waitFor?: boolean | undefined;
2627
+ createdAtLocation?: string | null | undefined;
2628
+ type?: "MARK_AS_DUPLICATE" | undefined;
2629
+ content?: {
2630
+ duplicateOf: string;
2631
+ } | undefined;
2632
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2633
+ eventId: string;
2634
+ transactionId: string;
2635
+ declaration?: Record<string, unknown> | undefined;
2636
+ annotation?: Record<string, unknown> | undefined;
2637
+ originalActionId?: string | undefined;
2638
+ keepAssignment?: boolean | undefined;
2639
+ keepAssignmentIfAccepted?: boolean | undefined;
2640
+ keepAssignmentIfRejected?: boolean | undefined;
2641
+ waitFor?: boolean | undefined;
2642
+ createdAtLocation?: string | null | undefined;
2643
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
2644
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2645
+ eventId: string;
2646
+ transactionId: string;
2647
+ content: {
2648
+ reason: string;
2649
+ };
2650
+ declaration?: Record<string, unknown> | undefined;
2651
+ annotation?: Record<string, unknown> | undefined;
2652
+ originalActionId?: string | undefined;
2653
+ keepAssignment?: boolean | undefined;
2654
+ keepAssignmentIfAccepted?: boolean | undefined;
2655
+ keepAssignmentIfRejected?: boolean | undefined;
2656
+ waitFor?: boolean | undefined;
2657
+ createdAtLocation?: string | null | undefined;
2658
+ type?: "ARCHIVE" | undefined;
2659
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2660
+ eventId: string;
2661
+ transactionId: string;
2662
+ declaration?: Record<string, unknown> | undefined;
2663
+ annotation?: Record<string, unknown> | undefined;
2664
+ originalActionId?: string | undefined;
2665
+ keepAssignment?: boolean | undefined;
2666
+ keepAssignmentIfAccepted?: boolean | undefined;
2667
+ keepAssignmentIfRejected?: boolean | undefined;
2668
+ waitFor?: boolean | undefined;
2669
+ createdAtLocation?: string | null | undefined;
2670
+ type?: "UNARCHIVE" | undefined;
2252
2671
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2253
2672
  eventId: string;
2254
2673
  transactionId: string;
@@ -2331,6 +2750,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2331
2750
  waitFor?: boolean | undefined;
2332
2751
  createdAtLocation?: string | null | undefined;
2333
2752
  type?: "APPROVE_CORRECTION" | undefined;
2753
+ content?: {
2754
+ immediateCorrection?: boolean | undefined;
2755
+ } | undefined;
2334
2756
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2335
2757
  eventId: string;
2336
2758
  transactionId: string;
@@ -2389,7 +2811,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2389
2811
  meta: import("trpc-to-openapi").OpenApiMeta;
2390
2812
  }>;
2391
2813
  }>>;
2392
- edit: import("@trpc/server").TRPCBuiltRouter<{
2814
+ reject: import("@trpc/server").TRPCBuiltRouter<{
2393
2815
  ctx: Partial<{
2394
2816
  token: `Bearer ${string}`;
2395
2817
  user: {
@@ -2541,6 +2963,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2541
2963
  waitFor?: boolean | undefined;
2542
2964
  createdAtLocation?: string | null | undefined;
2543
2965
  type?: "ARCHIVE" | undefined;
2966
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2967
+ eventId: string;
2968
+ transactionId: string;
2969
+ declaration?: Record<string, unknown> | undefined;
2970
+ annotation?: Record<string, unknown> | undefined;
2971
+ originalActionId?: string | undefined;
2972
+ keepAssignment?: boolean | undefined;
2973
+ keepAssignmentIfAccepted?: boolean | undefined;
2974
+ keepAssignmentIfRejected?: boolean | undefined;
2975
+ waitFor?: boolean | undefined;
2976
+ createdAtLocation?: string | null | undefined;
2977
+ type?: "UNARCHIVE" | undefined;
2544
2978
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2545
2979
  eventId: string;
2546
2980
  transactionId: string;
@@ -2623,6 +3057,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2623
3057
  waitFor?: boolean | undefined;
2624
3058
  createdAtLocation?: string | null | undefined;
2625
3059
  type?: "APPROVE_CORRECTION" | undefined;
3060
+ content?: {
3061
+ immediateCorrection?: boolean | undefined;
3062
+ } | undefined;
2626
3063
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2627
3064
  eventId: string;
2628
3065
  transactionId: string;
@@ -2681,7 +3118,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2681
3118
  meta: import("trpc-to-openapi").OpenApiMeta;
2682
3119
  }>;
2683
3120
  }>>;
2684
- reject: import("@trpc/server").TRPCBuiltRouter<{
3121
+ archive: import("@trpc/server").TRPCBuiltRouter<{
2685
3122
  ctx: Partial<{
2686
3123
  token: `Bearer ${string}`;
2687
3124
  user: {
@@ -2833,6 +3270,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2833
3270
  waitFor?: boolean | undefined;
2834
3271
  createdAtLocation?: string | null | undefined;
2835
3272
  type?: "ARCHIVE" | undefined;
3273
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3274
+ eventId: string;
3275
+ transactionId: string;
3276
+ declaration?: Record<string, unknown> | undefined;
3277
+ annotation?: Record<string, unknown> | undefined;
3278
+ originalActionId?: string | undefined;
3279
+ keepAssignment?: boolean | undefined;
3280
+ keepAssignmentIfAccepted?: boolean | undefined;
3281
+ keepAssignmentIfRejected?: boolean | undefined;
3282
+ waitFor?: boolean | undefined;
3283
+ createdAtLocation?: string | null | undefined;
3284
+ type?: "UNARCHIVE" | undefined;
2836
3285
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2837
3286
  eventId: string;
2838
3287
  transactionId: string;
@@ -2915,6 +3364,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2915
3364
  waitFor?: boolean | undefined;
2916
3365
  createdAtLocation?: string | null | undefined;
2917
3366
  type?: "APPROVE_CORRECTION" | undefined;
3367
+ content?: {
3368
+ immediateCorrection?: boolean | undefined;
3369
+ } | undefined;
2918
3370
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2919
3371
  eventId: string;
2920
3372
  transactionId: string;
@@ -2973,7 +3425,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2973
3425
  meta: import("trpc-to-openapi").OpenApiMeta;
2974
3426
  }>;
2975
3427
  }>>;
2976
- archive: import("@trpc/server").TRPCBuiltRouter<{
3428
+ unarchive: import("@trpc/server").TRPCBuiltRouter<{
2977
3429
  ctx: Partial<{
2978
3430
  token: `Bearer ${string}`;
2979
3431
  user: {
@@ -3125,6 +3577,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3125
3577
  waitFor?: boolean | undefined;
3126
3578
  createdAtLocation?: string | null | undefined;
3127
3579
  type?: "ARCHIVE" | undefined;
3580
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3581
+ eventId: string;
3582
+ transactionId: string;
3583
+ declaration?: Record<string, unknown> | undefined;
3584
+ annotation?: Record<string, unknown> | undefined;
3585
+ originalActionId?: string | undefined;
3586
+ keepAssignment?: boolean | undefined;
3587
+ keepAssignmentIfAccepted?: boolean | undefined;
3588
+ keepAssignmentIfRejected?: boolean | undefined;
3589
+ waitFor?: boolean | undefined;
3590
+ createdAtLocation?: string | null | undefined;
3591
+ type?: "UNARCHIVE" | undefined;
3128
3592
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3129
3593
  eventId: string;
3130
3594
  transactionId: string;
@@ -3207,6 +3671,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3207
3671
  waitFor?: boolean | undefined;
3208
3672
  createdAtLocation?: string | null | undefined;
3209
3673
  type?: "APPROVE_CORRECTION" | undefined;
3674
+ content?: {
3675
+ immediateCorrection?: boolean | undefined;
3676
+ } | undefined;
3210
3677
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3211
3678
  eventId: string;
3212
3679
  transactionId: string;
@@ -3417,6 +3884,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3417
3884
  waitFor?: boolean | undefined;
3418
3885
  createdAtLocation?: string | null | undefined;
3419
3886
  type?: "ARCHIVE" | undefined;
3887
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3888
+ eventId: string;
3889
+ transactionId: string;
3890
+ declaration?: Record<string, unknown> | undefined;
3891
+ annotation?: Record<string, unknown> | undefined;
3892
+ originalActionId?: string | undefined;
3893
+ keepAssignment?: boolean | undefined;
3894
+ keepAssignmentIfAccepted?: boolean | undefined;
3895
+ keepAssignmentIfRejected?: boolean | undefined;
3896
+ waitFor?: boolean | undefined;
3897
+ createdAtLocation?: string | null | undefined;
3898
+ type?: "UNARCHIVE" | undefined;
3420
3899
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3421
3900
  eventId: string;
3422
3901
  transactionId: string;
@@ -3499,6 +3978,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3499
3978
  waitFor?: boolean | undefined;
3500
3979
  createdAtLocation?: string | null | undefined;
3501
3980
  type?: "APPROVE_CORRECTION" | undefined;
3981
+ content?: {
3982
+ immediateCorrection?: boolean | undefined;
3983
+ } | undefined;
3502
3984
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3503
3985
  eventId: string;
3504
3986
  transactionId: string;
@@ -3709,6 +4191,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3709
4191
  waitFor?: boolean | undefined;
3710
4192
  createdAtLocation?: string | null | undefined;
3711
4193
  type?: "ARCHIVE" | undefined;
4194
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4195
+ eventId: string;
4196
+ transactionId: string;
4197
+ declaration?: Record<string, unknown> | undefined;
4198
+ annotation?: Record<string, unknown> | undefined;
4199
+ originalActionId?: string | undefined;
4200
+ keepAssignment?: boolean | undefined;
4201
+ keepAssignmentIfAccepted?: boolean | undefined;
4202
+ keepAssignmentIfRejected?: boolean | undefined;
4203
+ waitFor?: boolean | undefined;
4204
+ createdAtLocation?: string | null | undefined;
4205
+ type?: "UNARCHIVE" | undefined;
3712
4206
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3713
4207
  eventId: string;
3714
4208
  transactionId: string;
@@ -3791,6 +4285,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3791
4285
  waitFor?: boolean | undefined;
3792
4286
  createdAtLocation?: string | null | undefined;
3793
4287
  type?: "APPROVE_CORRECTION" | undefined;
4288
+ content?: {
4289
+ immediateCorrection?: boolean | undefined;
4290
+ } | undefined;
3794
4291
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3795
4292
  eventId: string;
3796
4293
  transactionId: string;
@@ -3990,6 +4487,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3990
4487
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
3991
4488
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
3992
4489
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4490
+ } | {
4491
+ id: string & import("zod").$brand<"UUID">;
4492
+ transactionId: string;
4493
+ createdByUserType: "system" | "user";
4494
+ createdAt: string;
4495
+ createdBy: string;
4496
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
4497
+ status: "Requested" | "Accepted" | "Rejected";
4498
+ type: "UNARCHIVE";
4499
+ createdByRole?: string | undefined;
4500
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4501
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
4502
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
4503
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3993
4504
  } | {
3994
4505
  id: string & import("zod").$brand<"UUID">;
3995
4506
  transactionId: string;
@@ -4077,6 +4588,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4077
4588
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
4078
4589
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
4079
4590
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4591
+ content?: {
4592
+ immediateCorrection?: boolean | undefined;
4593
+ } | undefined;
4080
4594
  } | {
4081
4595
  id: string & import("zod").$brand<"UUID">;
4082
4596
  transactionId: string;
@@ -4178,7 +4692,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4178
4692
  createdByUserType: "system" | "user";
4179
4693
  createdAt: string;
4180
4694
  createdBy: string;
4181
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
4695
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "UNARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
4182
4696
  status: "Rejected";
4183
4697
  createdByRole?: string | undefined;
4184
4698
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -4314,6 +4828,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4314
4828
  waitFor?: boolean | undefined;
4315
4829
  createdAtLocation?: string | null | undefined;
4316
4830
  type?: "ARCHIVE" | undefined;
4831
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4832
+ eventId: string;
4833
+ transactionId: string;
4834
+ declaration?: Record<string, unknown> | undefined;
4835
+ annotation?: Record<string, unknown> | undefined;
4836
+ originalActionId?: string | undefined;
4837
+ keepAssignment?: boolean | undefined;
4838
+ keepAssignmentIfAccepted?: boolean | undefined;
4839
+ keepAssignmentIfRejected?: boolean | undefined;
4840
+ waitFor?: boolean | undefined;
4841
+ createdAtLocation?: string | null | undefined;
4842
+ type?: "UNARCHIVE" | undefined;
4317
4843
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4318
4844
  eventId: string;
4319
4845
  transactionId: string;
@@ -4396,6 +4922,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4396
4922
  waitFor?: boolean | undefined;
4397
4923
  createdAtLocation?: string | null | undefined;
4398
4924
  type?: "APPROVE_CORRECTION" | undefined;
4925
+ content?: {
4926
+ immediateCorrection?: boolean | undefined;
4927
+ } | undefined;
4399
4928
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4400
4929
  eventId: string;
4401
4930
  transactionId: string;
@@ -4595,6 +5124,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4595
5124
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
4596
5125
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
4597
5126
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5127
+ } | {
5128
+ id: string & import("zod").$brand<"UUID">;
5129
+ transactionId: string;
5130
+ createdByUserType: "system" | "user";
5131
+ createdAt: string;
5132
+ createdBy: string;
5133
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
5134
+ status: "Requested" | "Accepted" | "Rejected";
5135
+ type: "UNARCHIVE";
5136
+ createdByRole?: string | undefined;
5137
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5138
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
5139
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
5140
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4598
5141
  } | {
4599
5142
  id: string & import("zod").$brand<"UUID">;
4600
5143
  transactionId: string;
@@ -4682,6 +5225,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4682
5225
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
4683
5226
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
4684
5227
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5228
+ content?: {
5229
+ immediateCorrection?: boolean | undefined;
5230
+ } | undefined;
4685
5231
  } | {
4686
5232
  id: string & import("zod").$brand<"UUID">;
4687
5233
  transactionId: string;
@@ -4783,7 +5329,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4783
5329
  createdByUserType: "system" | "user";
4784
5330
  createdAt: string;
4785
5331
  createdBy: string;
4786
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
5332
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "UNARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
4787
5333
  status: "Rejected";
4788
5334
  createdByRole?: string | undefined;
4789
5335
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -4913,6 +5459,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4913
5459
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
4914
5460
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
4915
5461
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5462
+ } | {
5463
+ id: string & import("zod").$brand<"UUID">;
5464
+ transactionId: string;
5465
+ createdByUserType: "system" | "user";
5466
+ createdAt: string;
5467
+ createdBy: string;
5468
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
5469
+ status: "Requested" | "Accepted" | "Rejected";
5470
+ type: "UNARCHIVE";
5471
+ createdByRole?: string | undefined;
5472
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5473
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
5474
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
5475
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4916
5476
  } | {
4917
5477
  id: string & import("zod").$brand<"UUID">;
4918
5478
  transactionId: string;
@@ -5000,6 +5560,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5000
5560
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
5001
5561
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
5002
5562
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5563
+ content?: {
5564
+ immediateCorrection?: boolean | undefined;
5565
+ } | undefined;
5003
5566
  } | {
5004
5567
  id: string & import("zod").$brand<"UUID">;
5005
5568
  transactionId: string;
@@ -5101,7 +5664,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5101
5664
  createdByUserType: "system" | "user";
5102
5665
  createdAt: string;
5103
5666
  createdBy: string;
5104
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
5667
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "UNARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
5105
5668
  status: "Rejected";
5106
5669
  createdByRole?: string | undefined;
5107
5670
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -5287,6 +5850,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5287
5850
  waitFor?: boolean | undefined;
5288
5851
  createdAtLocation?: string | null | undefined;
5289
5852
  type?: "ARCHIVE" | undefined;
5853
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5854
+ eventId: string;
5855
+ transactionId: string;
5856
+ declaration?: Record<string, unknown> | undefined;
5857
+ annotation?: Record<string, unknown> | undefined;
5858
+ originalActionId?: string | undefined;
5859
+ keepAssignment?: boolean | undefined;
5860
+ keepAssignmentIfAccepted?: boolean | undefined;
5861
+ keepAssignmentIfRejected?: boolean | undefined;
5862
+ waitFor?: boolean | undefined;
5863
+ createdAtLocation?: string | null | undefined;
5864
+ type?: "UNARCHIVE" | undefined;
5290
5865
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5291
5866
  eventId: string;
5292
5867
  transactionId: string;
@@ -5369,6 +5944,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5369
5944
  waitFor?: boolean | undefined;
5370
5945
  createdAtLocation?: string | null | undefined;
5371
5946
  type?: "APPROVE_CORRECTION" | undefined;
5947
+ content?: {
5948
+ immediateCorrection?: boolean | undefined;
5949
+ } | undefined;
5372
5950
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5373
5951
  eventId: string;
5374
5952
  transactionId: string;
@@ -5579,6 +6157,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5579
6157
  waitFor?: boolean | undefined;
5580
6158
  createdAtLocation?: string | null | undefined;
5581
6159
  type?: "ARCHIVE" | undefined;
6160
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6161
+ eventId: string;
6162
+ transactionId: string;
6163
+ declaration?: Record<string, unknown> | undefined;
6164
+ annotation?: Record<string, unknown> | undefined;
6165
+ originalActionId?: string | undefined;
6166
+ keepAssignment?: boolean | undefined;
6167
+ keepAssignmentIfAccepted?: boolean | undefined;
6168
+ keepAssignmentIfRejected?: boolean | undefined;
6169
+ waitFor?: boolean | undefined;
6170
+ createdAtLocation?: string | null | undefined;
6171
+ type?: "UNARCHIVE" | undefined;
5582
6172
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5583
6173
  eventId: string;
5584
6174
  transactionId: string;
@@ -5661,6 +6251,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5661
6251
  waitFor?: boolean | undefined;
5662
6252
  createdAtLocation?: string | null | undefined;
5663
6253
  type?: "APPROVE_CORRECTION" | undefined;
6254
+ content?: {
6255
+ immediateCorrection?: boolean | undefined;
6256
+ } | undefined;
5664
6257
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5665
6258
  eventId: string;
5666
6259
  transactionId: string;
@@ -5871,6 +6464,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5871
6464
  waitFor?: boolean | undefined;
5872
6465
  createdAtLocation?: string | null | undefined;
5873
6466
  type?: "ARCHIVE" | undefined;
6467
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6468
+ eventId: string;
6469
+ transactionId: string;
6470
+ declaration?: Record<string, unknown> | undefined;
6471
+ annotation?: Record<string, unknown> | undefined;
6472
+ originalActionId?: string | undefined;
6473
+ keepAssignment?: boolean | undefined;
6474
+ keepAssignmentIfAccepted?: boolean | undefined;
6475
+ keepAssignmentIfRejected?: boolean | undefined;
6476
+ waitFor?: boolean | undefined;
6477
+ createdAtLocation?: string | null | undefined;
6478
+ type?: "UNARCHIVE" | undefined;
5874
6479
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5875
6480
  eventId: string;
5876
6481
  transactionId: string;
@@ -5953,6 +6558,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5953
6558
  waitFor?: boolean | undefined;
5954
6559
  createdAtLocation?: string | null | undefined;
5955
6560
  type?: "APPROVE_CORRECTION" | undefined;
6561
+ content?: {
6562
+ immediateCorrection?: boolean | undefined;
6563
+ } | undefined;
5956
6564
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5957
6565
  eventId: string;
5958
6566
  transactionId: string;
@@ -6155,6 +6763,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6155
6763
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
6156
6764
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
6157
6765
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6766
+ } | {
6767
+ id: string & import("zod").$brand<"UUID">;
6768
+ transactionId: string;
6769
+ createdByUserType: "system" | "user";
6770
+ createdAt: string;
6771
+ createdBy: string;
6772
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
6773
+ status: "Requested" | "Accepted" | "Rejected";
6774
+ type: "UNARCHIVE";
6775
+ createdByRole?: string | undefined;
6776
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6777
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
6778
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
6779
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6158
6780
  } | {
6159
6781
  id: string & import("zod").$brand<"UUID">;
6160
6782
  transactionId: string;
@@ -6242,6 +6864,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6242
6864
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
6243
6865
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
6244
6866
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6867
+ content?: {
6868
+ immediateCorrection?: boolean | undefined;
6869
+ } | undefined;
6245
6870
  } | {
6246
6871
  id: string & import("zod").$brand<"UUID">;
6247
6872
  transactionId: string;
@@ -6343,7 +6968,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6343
6968
  createdByUserType: "system" | "user";
6344
6969
  createdAt: string;
6345
6970
  createdBy: string;
6346
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
6971
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "UNARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
6347
6972
  status: "Rejected";
6348
6973
  createdByRole?: string | undefined;
6349
6974
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -6472,6 +7097,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6472
7097
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
6473
7098
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
6474
7099
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7100
+ } | {
7101
+ id: string & import("zod").$brand<"UUID">;
7102
+ transactionId: string;
7103
+ createdByUserType: "system" | "user";
7104
+ createdAt: string;
7105
+ createdBy: string;
7106
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
7107
+ status: "Requested" | "Accepted" | "Rejected";
7108
+ type: "UNARCHIVE";
7109
+ createdByRole?: string | undefined;
7110
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7111
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
7112
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
7113
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6475
7114
  } | {
6476
7115
  id: string & import("zod").$brand<"UUID">;
6477
7116
  transactionId: string;
@@ -6559,6 +7198,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6559
7198
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
6560
7199
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
6561
7200
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7201
+ content?: {
7202
+ immediateCorrection?: boolean | undefined;
7203
+ } | undefined;
6562
7204
  } | {
6563
7205
  id: string & import("zod").$brand<"UUID">;
6564
7206
  transactionId: string;
@@ -6660,7 +7302,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6660
7302
  createdByUserType: "system" | "user";
6661
7303
  createdAt: string;
6662
7304
  createdBy: string;
6663
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
7305
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "UNARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
6664
7306
  status: "Rejected";
6665
7307
  createdByRole?: string | undefined;
6666
7308
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -6686,6 +7328,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6686
7328
  type: string;
6687
7329
  status: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
6688
7330
  legalStatuses: {
7331
+ NOTIFIED?: {
7332
+ createdAt: string;
7333
+ createdBy: string;
7334
+ acceptedAt: string;
7335
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
7336
+ createdByUserType?: "system" | "user" | null | undefined;
7337
+ createdByRole?: string | undefined;
7338
+ } | null | undefined;
6689
7339
  DECLARED?: {
6690
7340
  createdAt: string;
6691
7341
  createdBy: string;
@@ -6832,6 +7482,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6832
7482
  createdAtLocation?: string | null | undefined;
6833
7483
  annotation?: Record<string, unknown> | null | undefined;
6834
7484
  originalActionId?: string | null | undefined;
7485
+ } | {
7486
+ id: string;
7487
+ transactionId: string;
7488
+ createdByUserType: "system" | "user";
7489
+ createdAt: string;
7490
+ createdBy: string;
7491
+ declaration: Record<string, unknown>;
7492
+ status: "Requested" | "Accepted" | "Rejected";
7493
+ type: "UNARCHIVE";
7494
+ createdByRole?: string | undefined;
7495
+ createdBySignature?: string | null | undefined;
7496
+ createdAtLocation?: string | null | undefined;
7497
+ annotation?: Record<string, unknown> | null | undefined;
7498
+ originalActionId?: string | null | undefined;
6835
7499
  } | {
6836
7500
  id: string;
6837
7501
  transactionId: string;
@@ -6919,6 +7583,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6919
7583
  createdAtLocation?: string | null | undefined;
6920
7584
  annotation?: Record<string, unknown> | null | undefined;
6921
7585
  originalActionId?: string | null | undefined;
7586
+ content?: {
7587
+ immediateCorrection?: boolean | undefined;
7588
+ } | undefined;
6922
7589
  } | {
6923
7590
  id: string;
6924
7591
  transactionId: string;
@@ -7020,7 +7687,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7020
7687
  createdByUserType: "system" | "user";
7021
7688
  createdAt: string;
7022
7689
  createdBy: string;
7023
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
7690
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "UNARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
7024
7691
  status: "Rejected";
7025
7692
  createdByRole?: string | undefined;
7026
7693
  createdBySignature?: string | null | undefined;
@@ -7238,7 +7905,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7238
7905
  count?: number | undefined;
7239
7906
  timeStart?: string | undefined;
7240
7907
  timeEnd?: string | undefined;
7241
- actionTypes?: ("DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "CUSTOM" | "CREATE" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "ASSIGN" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "UNASSIGN")[] | undefined;
7908
+ actionTypes?: ("CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "UNARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM")[] | undefined;
7242
7909
  };
7243
7910
  output: {
7244
7911
  results: {
@@ -7308,9 +7975,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7308
7975
  output: void;
7309
7976
  meta: import("trpc-to-openapi").OpenApiMeta;
7310
7977
  }>;
7311
- sendVerifyCode: import("@trpc/server").TRPCMutationProcedure<{
7978
+ requestEmailChange: import("@trpc/server").TRPCMutationProcedure<{
7979
+ input: {
7980
+ email: string;
7981
+ };
7982
+ output: {
7983
+ nonce: string;
7984
+ };
7985
+ meta: import("trpc-to-openapi").OpenApiMeta;
7986
+ }>;
7987
+ requestPhoneChange: import("@trpc/server").TRPCMutationProcedure<{
7312
7988
  input: {
7313
- notificationEvent: "change-phone-number" | "change-email-address";
7989
+ phoneNumber: string;
7314
7990
  };
7315
7991
  output: {
7316
7992
  nonce: string;
@@ -7504,7 +8180,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7504
8180
  clientId: string;
7505
8181
  clientType: "system" | "user";
7506
8182
  createdAt: string;
7507
- operation: "event.actions.notify.request" | "event.actions.declare.request" | "event.actions.register.request" | "event.actions.reject.request" | "event.actions.validate.request" | "event.actions.edit.request" | "event.actions.assign.request" | "event.actions.unassign.request" | "event.actions.read.request" | "event.actions.archive.request" | "event.actions.reinstate.request" | "event.actions.print_certificate.request" | "event.actions.correction.request.request" | "event.actions.correction.approve.request" | "event.actions.correction.reject.request" | "event.actions.mark_as_duplicate.request" | "event.actions.mark_as_not_duplicate.request";
8183
+ operation: "event.actions.notify.request" | "event.actions.declare.request" | "event.actions.register.request" | "event.actions.reject.request" | "event.actions.validate.request" | "event.actions.edit.request" | "event.actions.assign.request" | "event.actions.unassign.request" | "event.actions.read.request" | "event.actions.archive.request" | "event.actions.unarchive.request" | "event.actions.reinstate.request" | "event.actions.print_certificate.request" | "event.actions.correction.request.request" | "event.actions.correction.approve.request" | "event.actions.correction.reject.request" | "event.actions.mark_as_duplicate.request" | "event.actions.mark_as_not_duplicate.request";
7508
8184
  requestData: {
7509
8185
  eventId: string;
7510
8186
  actionType: string;
@@ -7938,6 +8614,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7938
8614
  flags?: {
7939
8615
  anyOf?: string[] | undefined;
7940
8616
  noneOf?: string[] | undefined;
8617
+ allOf?: string[] | undefined;
7941
8618
  } | undefined;
7942
8619
  data?: unknown;
7943
8620
  }[];
@@ -8076,6 +8753,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8076
8753
  flags?: {
8077
8754
  anyOf?: string[] | undefined;
8078
8755
  noneOf?: string[] | undefined;
8756
+ allOf?: string[] | undefined;
8079
8757
  } | undefined;
8080
8758
  data?: unknown;
8081
8759
  }[];
@@ -8092,7 +8770,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8092
8770
  }[];
8093
8771
  icon: "File" | "Archived" | "Assigned" | "Briefcase" | "Certified" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "Registered" | "RequiresUpdates" | "Sent" | "Validated" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "PenNib" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Stamp" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "ChatText" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
8094
8772
  action?: {
8095
- type: "DELETE" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ";
8773
+ type: "DELETE" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "UNARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ";
8096
8774
  } | undefined;
8097
8775
  emptyMessage?: {
8098
8776
  id: string;