@opencrvs/toolkit 2.0.0-rc.5e06f40 → 2.0.0-rc.5eac868

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 (107) hide show
  1. package/README.md +15 -0
  2. package/build.sh +3 -2
  3. package/create-countryconfig/index.js +50 -20
  4. package/create-countryconfig/package.json +12 -2
  5. package/dist/application-config/index.js +269 -103
  6. package/dist/cli.js +3263 -49
  7. package/dist/commons/api/router.d.ts +222 -126
  8. package/dist/commons/application-config/index.d.ts +1 -0
  9. package/dist/commons/conditionals/conditionals.d.ts +1943 -41
  10. package/dist/commons/conditionals/validate.d.ts +51 -2
  11. package/dist/commons/events/ActionConfig.d.ts +28 -2
  12. package/dist/commons/events/ActionDocument.d.ts +6 -0
  13. package/dist/commons/events/ActionInput.d.ts +42 -36
  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 +2 -3
  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 -0
  20. package/dist/commons/events/EventMetadata.d.ts +26 -0
  21. package/dist/commons/events/FieldConfig.d.ts +388 -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 -5
  26. package/dist/commons/events/field.d.ts +775 -35
  27. package/dist/commons/events/index.d.ts +2 -0
  28. package/dist/commons/events/locations.d.ts +1 -0
  29. package/dist/commons/events/state/flags.d.ts +16 -0
  30. package/dist/commons/events/state/index.d.ts +8 -0
  31. package/dist/commons/events/state/utils.d.ts +21 -287
  32. package/dist/commons/events/utils.d.ts +12 -1
  33. package/dist/conditionals/index.js +63 -5
  34. package/dist/environment/custom-types.d.ts +33 -0
  35. package/dist/environment/custom-types.d.ts.map +1 -0
  36. package/dist/environment/custom-types.js +12 -0
  37. package/dist/environment/derived-variables.d.ts +134 -0
  38. package/dist/environment/derived-variables.d.ts.map +1 -0
  39. package/dist/environment/derived-variables.js +169 -0
  40. package/dist/environment/editor-questions.d.ts +4 -0
  41. package/dist/environment/editor-questions.d.ts.map +1 -0
  42. package/dist/environment/editor-questions.js +67 -0
  43. package/dist/environment/git.d.ts +5 -0
  44. package/dist/environment/git.d.ts.map +1 -0
  45. package/dist/environment/git.js +38 -0
  46. package/dist/environment/github.d.ts +26 -0
  47. package/dist/environment/github.d.ts.map +1 -0
  48. package/dist/environment/github.js +247 -0
  49. package/dist/environment/index.d.ts +5 -0
  50. package/dist/environment/index.d.ts.map +1 -0
  51. package/dist/environment/index.js +71 -0
  52. package/dist/environment/logger.d.ts +6 -0
  53. package/dist/environment/logger.d.ts.map +1 -0
  54. package/dist/environment/logger.js +25 -0
  55. package/dist/environment/manage-users.d.ts +11 -0
  56. package/dist/environment/manage-users.d.ts.map +1 -0
  57. package/dist/environment/manage-users.js +507 -0
  58. package/dist/environment/questions-helper.d.ts +15 -0
  59. package/dist/environment/questions-helper.d.ts.map +1 -0
  60. package/dist/environment/questions-helper.js +70 -0
  61. package/dist/environment/questions.d.ts +199 -0
  62. package/dist/environment/questions.d.ts.map +1 -0
  63. package/dist/environment/questions.js +412 -0
  64. package/dist/environment/setup-environment.d.ts +2 -0
  65. package/dist/environment/setup-environment.d.ts.map +1 -0
  66. package/dist/environment/setup-environment.js +794 -0
  67. package/dist/environment/ssh-keygen.d.ts +5 -0
  68. package/dist/environment/ssh-keygen.d.ts.map +1 -0
  69. package/dist/environment/ssh-keygen.js +21 -0
  70. package/dist/environment/swarm-to-k8s.d.ts +2 -0
  71. package/dist/environment/swarm-to-k8s.d.ts.map +1 -0
  72. package/dist/environment/swarm-to-k8s.js +183 -0
  73. package/dist/environment/templates.d.ts +27 -0
  74. package/dist/environment/templates.d.ts.map +1 -0
  75. package/dist/environment/templates.js +163 -0
  76. package/dist/environment/update-workflows.d.ts +2 -0
  77. package/dist/environment/update-workflows.d.ts.map +1 -0
  78. package/dist/environment/update-workflows.js +179 -0
  79. package/dist/environment/users.d.ts +2 -0
  80. package/dist/environment/users.d.ts.map +1 -0
  81. package/dist/environment/users.js +122 -0
  82. package/dist/environment/utils.d.ts +18 -0
  83. package/dist/environment/utils.d.ts.map +1 -0
  84. package/dist/environment/utils.js +110 -0
  85. package/dist/events/index.js +1079 -230
  86. package/dist/migrations/v2.0/checkout-upstream-files.d.ts +1 -1
  87. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
  88. package/dist/migrations/v2.0/checkout-upstream-files.js +1 -1
  89. package/dist/migrations/v2.0/convert-config-files-to-ts.js +17 -7
  90. package/dist/migrations/v2.0/index.js +21 -8
  91. package/dist/migrations/v2.0/remove-hearth-migrations.js +17 -7
  92. package/dist/notification/index.js +890 -128
  93. package/dist/scopes/index.d.ts +93 -7
  94. package/dist/scopes/index.js +20 -7
  95. package/dist/templates/charts-values/dependencies/values.override.yaml +4 -0
  96. package/dist/templates/charts-values/dependencies/values.yaml +83 -0
  97. package/dist/templates/charts-values/opencrvs-services/values.override.yaml +4 -0
  98. package/dist/templates/charts-values/opencrvs-services/values.yaml +81 -0
  99. package/dist/templates/charts-values/traefik/values.override.yaml +4 -0
  100. package/dist/templates/charts-values/traefik/values.yaml +115 -0
  101. package/dist/templates/inventory/inventory.template.yml +100 -0
  102. package/dist/templates/inventory/production.example.yml +77 -0
  103. package/dist/templates/inventory/qa.example.yml +48 -0
  104. package/opencrvs-toolkit-2.0.0-rc.5eac868.tgz +0 -0
  105. package/package.json +21 -3
  106. package/tsconfig.tsbuildinfo +1 -1
  107. package/opencrvs-toolkit-2.0.0-rc.5e06f40.tgz +0 -0
@@ -4,14 +4,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4
4
  user: {
5
5
  id: string & import("zod").$brand<"UUID">;
6
6
  type: "system";
7
- signature?: undefined;
8
7
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9
8
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9
+ signature?: undefined;
10
10
  } | {
11
11
  id: string & import("zod").$brand<"UUID">;
12
- type: "user";
13
12
  role: string;
14
13
  primaryOfficeId: string & import("zod").$brand<"UUID">;
14
+ type: "user";
15
15
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
16
16
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
17
17
  };
@@ -26,14 +26,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
26
26
  user: {
27
27
  id: string & import("zod").$brand<"UUID">;
28
28
  type: "system";
29
- signature?: undefined;
30
29
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
31
30
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
31
+ signature?: undefined;
32
32
  } | {
33
33
  id: string & import("zod").$brand<"UUID">;
34
- type: "user";
35
34
  role: string;
36
35
  primaryOfficeId: string & import("zod").$brand<"UUID">;
36
+ type: "user";
37
37
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
38
38
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
39
39
  };
@@ -48,14 +48,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
48
48
  user: {
49
49
  id: string & import("zod").$brand<"UUID">;
50
50
  type: "system";
51
- signature?: undefined;
52
51
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
53
52
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
53
+ signature?: undefined;
54
54
  } | {
55
55
  id: string & import("zod").$brand<"UUID">;
56
- type: "user";
57
56
  role: string;
58
57
  primaryOfficeId: string & import("zod").$brand<"UUID">;
58
+ type: "user";
59
59
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
60
60
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
61
61
  };
@@ -94,14 +94,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
94
94
  user: {
95
95
  id: string & import("zod").$brand<"UUID">;
96
96
  type: "system";
97
- signature?: undefined;
98
97
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
99
98
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
99
+ signature?: undefined;
100
100
  } | {
101
101
  id: string & import("zod").$brand<"UUID">;
102
- type: "user";
103
102
  role: string;
104
103
  primaryOfficeId: string & import("zod").$brand<"UUID">;
104
+ type: "user";
105
105
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
106
106
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
107
107
  };
@@ -313,6 +313,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
313
313
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
314
314
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
315
315
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
316
+ content?: {
317
+ immediateCorrection?: boolean | undefined;
318
+ } | undefined;
316
319
  } | {
317
320
  id: string & import("zod").$brand<"UUID">;
318
321
  transactionId: string;
@@ -414,7 +417,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
414
417
  createdByUserType: "system" | "user";
415
418
  createdAt: string;
416
419
  createdBy: string;
417
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
420
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
418
421
  status: "Rejected";
419
422
  createdByRole?: string | undefined;
420
423
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -429,6 +432,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
429
432
  input: {
430
433
  eventId: string;
431
434
  customActionType?: string | undefined;
435
+ waitFor?: boolean | undefined;
432
436
  };
433
437
  output: {
434
438
  id: string & import("zod").$brand<"UUID">;
@@ -621,6 +625,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
621
625
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
622
626
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
623
627
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
628
+ content?: {
629
+ immediateCorrection?: boolean | undefined;
630
+ } | undefined;
624
631
  } | {
625
632
  id: string & import("zod").$brand<"UUID">;
626
633
  transactionId: string;
@@ -722,7 +729,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
722
729
  createdByUserType: "system" | "user";
723
730
  createdAt: string;
724
731
  createdBy: string;
725
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
732
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
726
733
  status: "Rejected";
727
734
  createdByRole?: string | undefined;
728
735
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -929,6 +936,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
929
936
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
930
937
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
931
938
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
939
+ content?: {
940
+ immediateCorrection?: boolean | undefined;
941
+ } | undefined;
932
942
  } | {
933
943
  id: string & import("zod").$brand<"UUID">;
934
944
  transactionId: string;
@@ -1030,7 +1040,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1030
1040
  createdByUserType: "system" | "user";
1031
1041
  createdAt: string;
1032
1042
  createdBy: string;
1033
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
1043
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
1034
1044
  status: "Rejected";
1035
1045
  createdByRole?: string | undefined;
1036
1046
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -1056,14 +1066,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1056
1066
  user: {
1057
1067
  id: string & import("zod").$brand<"UUID">;
1058
1068
  type: "system";
1059
- signature?: undefined;
1060
1069
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1061
1070
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1071
+ signature?: undefined;
1062
1072
  } | {
1063
1073
  id: string & import("zod").$brand<"UUID">;
1064
- type: "user";
1065
1074
  role: string;
1066
1075
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1076
+ type: "user";
1067
1077
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1068
1078
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1069
1079
  };
@@ -1080,13 +1090,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1080
1090
  transactionId: string;
1081
1091
  createdAt: string;
1082
1092
  action: {
1083
- 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";
1084
1093
  transactionId: string;
1085
1094
  createdByUserType: "system" | "user";
1086
1095
  createdAt: string;
1087
1096
  createdBy: string;
1088
1097
  declaration: Record<string, import("../commons").FieldUpdateValue>;
1089
1098
  status: "Requested" | "Accepted" | "Rejected";
1099
+ type: "CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM";
1090
1100
  createdByRole?: string | undefined;
1091
1101
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1092
1102
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
@@ -1099,7 +1109,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1099
1109
  input: {
1100
1110
  eventId: string;
1101
1111
  transactionId: string;
1102
- 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";
1112
+ type: "CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM";
1103
1113
  status: "Requested" | "Accepted" | "Rejected";
1104
1114
  declaration?: Record<string, unknown> | undefined;
1105
1115
  annotation?: Record<string, unknown> | undefined;
@@ -1107,7 +1117,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1107
1117
  keepAssignment?: boolean | undefined;
1108
1118
  keepAssignmentIfAccepted?: boolean | undefined;
1109
1119
  keepAssignmentIfRejected?: boolean | undefined;
1110
- waitFor?: boolean | undefined;
1111
1120
  createdAtLocation?: string | null | undefined;
1112
1121
  };
1113
1122
  output: {
@@ -1116,13 +1125,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1116
1125
  transactionId: string;
1117
1126
  createdAt: string;
1118
1127
  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";
1120
1128
  transactionId: string;
1121
1129
  createdByUserType: "system" | "user";
1122
1130
  createdAt: string;
1123
1131
  createdBy: string;
1124
1132
  declaration: Record<string, import("../commons").FieldUpdateValue>;
1125
1133
  status: "Requested" | "Accepted" | "Rejected";
1134
+ type: "CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM";
1126
1135
  createdByRole?: string | undefined;
1127
1136
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1128
1137
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
@@ -1138,14 +1147,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1138
1147
  user: {
1139
1148
  id: string & import("zod").$brand<"UUID">;
1140
1149
  type: "system";
1141
- signature?: undefined;
1142
1150
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1143
1151
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1152
+ signature?: undefined;
1144
1153
  } | {
1145
1154
  id: string & import("zod").$brand<"UUID">;
1146
- type: "user";
1147
1155
  role: string;
1148
1156
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1157
+ type: "user";
1149
1158
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1150
1159
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1151
1160
  };
@@ -1160,14 +1169,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1160
1169
  user: {
1161
1170
  id: string & import("zod").$brand<"UUID">;
1162
1171
  type: "system";
1163
- signature?: undefined;
1164
1172
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1165
1173
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1174
+ signature?: undefined;
1166
1175
  } | {
1167
1176
  id: string & import("zod").$brand<"UUID">;
1168
- type: "user";
1169
1177
  role: string;
1170
1178
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1179
+ type: "user";
1171
1180
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1172
1181
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1173
1182
  };
@@ -1388,6 +1397,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1388
1397
  waitFor?: boolean | undefined;
1389
1398
  createdAtLocation?: string | null | undefined;
1390
1399
  type?: "APPROVE_CORRECTION" | undefined;
1400
+ content?: {
1401
+ immediateCorrection?: boolean | undefined;
1402
+ } | undefined;
1391
1403
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1392
1404
  eventId: string;
1393
1405
  transactionId: string;
@@ -1439,6 +1451,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1439
1451
  transactionId: import("zod").ZodString;
1440
1452
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
1441
1453
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
1454
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
1442
1455
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
1443
1456
  }, import("zod/v4/core").$strip>>;
1444
1457
  output: import("../commons").EventDocument;
@@ -1451,14 +1464,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1451
1464
  user: {
1452
1465
  id: string & import("zod").$brand<"UUID">;
1453
1466
  type: "system";
1454
- signature?: undefined;
1455
1467
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1456
1468
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1469
+ signature?: undefined;
1457
1470
  } | {
1458
1471
  id: string & import("zod").$brand<"UUID">;
1459
- type: "user";
1460
1472
  role: string;
1461
1473
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1474
+ type: "user";
1462
1475
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1463
1476
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1464
1477
  };
@@ -1671,6 +1684,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1671
1684
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1672
1685
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1673
1686
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1687
+ content?: {
1688
+ immediateCorrection?: boolean | undefined;
1689
+ } | undefined;
1674
1690
  } | {
1675
1691
  id: string & import("zod").$brand<"UUID">;
1676
1692
  transactionId: string;
@@ -1772,7 +1788,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1772
1788
  createdByUserType: "system" | "user";
1773
1789
  createdAt: string;
1774
1790
  createdBy: string;
1775
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
1791
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
1776
1792
  status: "Rejected";
1777
1793
  createdByRole?: string | undefined;
1778
1794
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -1790,14 +1806,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1790
1806
  user: {
1791
1807
  id: string & import("zod").$brand<"UUID">;
1792
1808
  type: "system";
1793
- signature?: undefined;
1794
1809
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1795
1810
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1811
+ signature?: undefined;
1796
1812
  } | {
1797
1813
  id: string & import("zod").$brand<"UUID">;
1798
- type: "user";
1799
1814
  role: string;
1800
1815
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1816
+ type: "user";
1801
1817
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1802
1818
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1803
1819
  };
@@ -2011,6 +2027,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2011
2027
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2012
2028
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
2013
2029
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2030
+ content?: {
2031
+ immediateCorrection?: boolean | undefined;
2032
+ } | undefined;
2014
2033
  } | {
2015
2034
  id: string & import("zod").$brand<"UUID">;
2016
2035
  transactionId: string;
@@ -2112,7 +2131,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2112
2131
  createdByUserType: "system" | "user";
2113
2132
  createdAt: string;
2114
2133
  createdBy: string;
2115
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
2134
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
2116
2135
  status: "Rejected";
2117
2136
  createdByRole?: string | undefined;
2118
2137
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -2330,6 +2349,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2330
2349
  waitFor?: boolean | undefined;
2331
2350
  createdAtLocation?: string | null | undefined;
2332
2351
  type?: "APPROVE_CORRECTION" | undefined;
2352
+ content?: {
2353
+ immediateCorrection?: boolean | undefined;
2354
+ } | undefined;
2333
2355
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2334
2356
  eventId: string;
2335
2357
  transactionId: string;
@@ -2381,6 +2403,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2381
2403
  transactionId: import("zod").ZodString;
2382
2404
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2383
2405
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2406
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
2384
2407
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2385
2408
  }, import("zod/v4/core").$strip>>;
2386
2409
  output: import("../commons").EventDocument;
@@ -2393,14 +2416,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2393
2416
  user: {
2394
2417
  id: string & import("zod").$brand<"UUID">;
2395
2418
  type: "system";
2396
- signature?: undefined;
2397
2419
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2398
2420
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2421
+ signature?: undefined;
2399
2422
  } | {
2400
2423
  id: string & import("zod").$brand<"UUID">;
2401
- type: "user";
2402
2424
  role: string;
2403
2425
  primaryOfficeId: string & import("zod").$brand<"UUID">;
2426
+ type: "user";
2404
2427
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2405
2428
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2406
2429
  };
@@ -2621,6 +2644,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2621
2644
  waitFor?: boolean | undefined;
2622
2645
  createdAtLocation?: string | null | undefined;
2623
2646
  type?: "APPROVE_CORRECTION" | undefined;
2647
+ content?: {
2648
+ immediateCorrection?: boolean | undefined;
2649
+ } | undefined;
2624
2650
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2625
2651
  eventId: string;
2626
2652
  transactionId: string;
@@ -2672,6 +2698,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2672
2698
  transactionId: import("zod").ZodString;
2673
2699
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2674
2700
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2701
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
2675
2702
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2676
2703
  }, import("zod/v4/core").$strip>>;
2677
2704
  output: import("../commons").EventDocument;
@@ -2684,14 +2711,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2684
2711
  user: {
2685
2712
  id: string & import("zod").$brand<"UUID">;
2686
2713
  type: "system";
2687
- signature?: undefined;
2688
2714
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2689
2715
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2716
+ signature?: undefined;
2690
2717
  } | {
2691
2718
  id: string & import("zod").$brand<"UUID">;
2692
- type: "user";
2693
2719
  role: string;
2694
2720
  primaryOfficeId: string & import("zod").$brand<"UUID">;
2721
+ type: "user";
2695
2722
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2696
2723
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2697
2724
  };
@@ -2912,6 +2939,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2912
2939
  waitFor?: boolean | undefined;
2913
2940
  createdAtLocation?: string | null | undefined;
2914
2941
  type?: "APPROVE_CORRECTION" | undefined;
2942
+ content?: {
2943
+ immediateCorrection?: boolean | undefined;
2944
+ } | undefined;
2915
2945
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2916
2946
  eventId: string;
2917
2947
  transactionId: string;
@@ -2963,6 +2993,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2963
2993
  transactionId: import("zod").ZodString;
2964
2994
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2965
2995
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2996
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
2966
2997
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2967
2998
  }, import("zod/v4/core").$strip>>;
2968
2999
  output: import("../commons").EventDocument;
@@ -2975,14 +3006,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2975
3006
  user: {
2976
3007
  id: string & import("zod").$brand<"UUID">;
2977
3008
  type: "system";
2978
- signature?: undefined;
2979
3009
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2980
3010
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3011
+ signature?: undefined;
2981
3012
  } | {
2982
3013
  id: string & import("zod").$brand<"UUID">;
2983
- type: "user";
2984
3014
  role: string;
2985
3015
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3016
+ type: "user";
2986
3017
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2987
3018
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2988
3019
  };
@@ -3203,6 +3234,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3203
3234
  waitFor?: boolean | undefined;
3204
3235
  createdAtLocation?: string | null | undefined;
3205
3236
  type?: "APPROVE_CORRECTION" | undefined;
3237
+ content?: {
3238
+ immediateCorrection?: boolean | undefined;
3239
+ } | undefined;
3206
3240
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3207
3241
  eventId: string;
3208
3242
  transactionId: string;
@@ -3254,6 +3288,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3254
3288
  transactionId: import("zod").ZodString;
3255
3289
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3256
3290
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3291
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
3257
3292
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3258
3293
  }, import("zod/v4/core").$strip>>;
3259
3294
  output: import("../commons").EventDocument;
@@ -3266,14 +3301,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3266
3301
  user: {
3267
3302
  id: string & import("zod").$brand<"UUID">;
3268
3303
  type: "system";
3269
- signature?: undefined;
3270
3304
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3271
3305
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3306
+ signature?: undefined;
3272
3307
  } | {
3273
3308
  id: string & import("zod").$brand<"UUID">;
3274
- type: "user";
3275
3309
  role: string;
3276
3310
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3311
+ type: "user";
3277
3312
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3278
3313
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3279
3314
  };
@@ -3494,6 +3529,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3494
3529
  waitFor?: boolean | undefined;
3495
3530
  createdAtLocation?: string | null | undefined;
3496
3531
  type?: "APPROVE_CORRECTION" | undefined;
3532
+ content?: {
3533
+ immediateCorrection?: boolean | undefined;
3534
+ } | undefined;
3497
3535
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3498
3536
  eventId: string;
3499
3537
  transactionId: string;
@@ -3545,6 +3583,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3545
3583
  transactionId: import("zod").ZodString;
3546
3584
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3547
3585
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3586
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
3548
3587
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3549
3588
  }, import("zod/v4/core").$strip>>;
3550
3589
  output: import("../commons").EventDocument;
@@ -3557,14 +3596,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3557
3596
  user: {
3558
3597
  id: string & import("zod").$brand<"UUID">;
3559
3598
  type: "system";
3560
- signature?: undefined;
3561
3599
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3562
3600
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3601
+ signature?: undefined;
3563
3602
  } | {
3564
3603
  id: string & import("zod").$brand<"UUID">;
3565
- type: "user";
3566
3604
  role: string;
3567
3605
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3606
+ type: "user";
3568
3607
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3569
3608
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3570
3609
  };
@@ -3785,6 +3824,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3785
3824
  waitFor?: boolean | undefined;
3786
3825
  createdAtLocation?: string | null | undefined;
3787
3826
  type?: "APPROVE_CORRECTION" | undefined;
3827
+ content?: {
3828
+ immediateCorrection?: boolean | undefined;
3829
+ } | undefined;
3788
3830
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3789
3831
  eventId: string;
3790
3832
  transactionId: string;
@@ -3836,6 +3878,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3836
3878
  transactionId: import("zod").ZodString;
3837
3879
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3838
3880
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3881
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
3839
3882
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3840
3883
  }, import("zod/v4/core").$strip>>;
3841
3884
  output: import("../commons").EventDocument;
@@ -3848,14 +3891,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3848
3891
  user: {
3849
3892
  id: string & import("zod").$brand<"UUID">;
3850
3893
  type: "system";
3851
- signature?: undefined;
3852
3894
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3853
3895
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3896
+ signature?: undefined;
3854
3897
  } | {
3855
3898
  id: string & import("zod").$brand<"UUID">;
3856
- type: "user";
3857
3899
  role: string;
3858
3900
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3901
+ type: "user";
3859
3902
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3860
3903
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3861
3904
  };
@@ -4070,6 +4113,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4070
4113
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
4071
4114
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
4072
4115
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4116
+ content?: {
4117
+ immediateCorrection?: boolean | undefined;
4118
+ } | undefined;
4073
4119
  } | {
4074
4120
  id: string & import("zod").$brand<"UUID">;
4075
4121
  transactionId: string;
@@ -4171,7 +4217,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4171
4217
  createdByUserType: "system" | "user";
4172
4218
  createdAt: string;
4173
4219
  createdBy: string;
4174
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
4220
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
4175
4221
  status: "Rejected";
4176
4222
  createdByRole?: string | undefined;
4177
4223
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -4389,6 +4435,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4389
4435
  waitFor?: boolean | undefined;
4390
4436
  createdAtLocation?: string | null | undefined;
4391
4437
  type?: "APPROVE_CORRECTION" | undefined;
4438
+ content?: {
4439
+ immediateCorrection?: boolean | undefined;
4440
+ } | undefined;
4392
4441
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4393
4442
  eventId: string;
4394
4443
  transactionId: string;
@@ -4440,6 +4489,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4440
4489
  transactionId: import("zod").ZodString;
4441
4490
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
4442
4491
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
4492
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
4443
4493
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
4444
4494
  }, import("zod/v4/core").$strip>>;
4445
4495
  output: import("../commons").EventDocument;
@@ -4452,14 +4502,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4452
4502
  user: {
4453
4503
  id: string & import("zod").$brand<"UUID">;
4454
4504
  type: "system";
4455
- signature?: undefined;
4456
4505
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4457
4506
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4507
+ signature?: undefined;
4458
4508
  } | {
4459
4509
  id: string & import("zod").$brand<"UUID">;
4460
- type: "user";
4461
4510
  role: string;
4462
4511
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4512
+ type: "user";
4463
4513
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4464
4514
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4465
4515
  };
@@ -4674,6 +4724,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4674
4724
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
4675
4725
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
4676
4726
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4727
+ content?: {
4728
+ immediateCorrection?: boolean | undefined;
4729
+ } | undefined;
4677
4730
  } | {
4678
4731
  id: string & import("zod").$brand<"UUID">;
4679
4732
  transactionId: string;
@@ -4775,7 +4828,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4775
4828
  createdByUserType: "system" | "user";
4776
4829
  createdAt: string;
4777
4830
  createdBy: string;
4778
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
4831
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
4779
4832
  status: "Rejected";
4780
4833
  createdByRole?: string | undefined;
4781
4834
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -4992,6 +5045,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4992
5045
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
4993
5046
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
4994
5047
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5048
+ content?: {
5049
+ immediateCorrection?: boolean | undefined;
5050
+ } | undefined;
4995
5051
  } | {
4996
5052
  id: string & import("zod").$brand<"UUID">;
4997
5053
  transactionId: string;
@@ -5093,7 +5149,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5093
5149
  createdByUserType: "system" | "user";
5094
5150
  createdAt: string;
5095
5151
  createdBy: string;
5096
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
5152
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
5097
5153
  status: "Rejected";
5098
5154
  createdByRole?: string | undefined;
5099
5155
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -5111,14 +5167,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5111
5167
  user: {
5112
5168
  id: string & import("zod").$brand<"UUID">;
5113
5169
  type: "system";
5114
- signature?: undefined;
5115
5170
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5116
5171
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5172
+ signature?: undefined;
5117
5173
  } | {
5118
5174
  id: string & import("zod").$brand<"UUID">;
5119
- type: "user";
5120
5175
  role: string;
5121
5176
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5177
+ type: "user";
5122
5178
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5123
5179
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5124
5180
  };
@@ -5133,14 +5189,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5133
5189
  user: {
5134
5190
  id: string & import("zod").$brand<"UUID">;
5135
5191
  type: "system";
5136
- signature?: undefined;
5137
5192
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5138
5193
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5194
+ signature?: undefined;
5139
5195
  } | {
5140
5196
  id: string & import("zod").$brand<"UUID">;
5141
- type: "user";
5142
5197
  role: string;
5143
5198
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5199
+ type: "user";
5144
5200
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5145
5201
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5146
5202
  };
@@ -5361,6 +5417,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5361
5417
  waitFor?: boolean | undefined;
5362
5418
  createdAtLocation?: string | null | undefined;
5363
5419
  type?: "APPROVE_CORRECTION" | undefined;
5420
+ content?: {
5421
+ immediateCorrection?: boolean | undefined;
5422
+ } | undefined;
5364
5423
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5365
5424
  eventId: string;
5366
5425
  transactionId: string;
@@ -5412,6 +5471,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5412
5471
  transactionId: import("zod").ZodString;
5413
5472
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5414
5473
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
5474
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
5415
5475
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5416
5476
  }, import("zod/v4/core").$strip>>;
5417
5477
  output: import("../commons").EventDocument;
@@ -5424,14 +5484,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5424
5484
  user: {
5425
5485
  id: string & import("zod").$brand<"UUID">;
5426
5486
  type: "system";
5427
- signature?: undefined;
5428
5487
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5429
5488
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5489
+ signature?: undefined;
5430
5490
  } | {
5431
5491
  id: string & import("zod").$brand<"UUID">;
5432
- type: "user";
5433
5492
  role: string;
5434
5493
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5494
+ type: "user";
5435
5495
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5436
5496
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5437
5497
  };
@@ -5652,6 +5712,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5652
5712
  waitFor?: boolean | undefined;
5653
5713
  createdAtLocation?: string | null | undefined;
5654
5714
  type?: "APPROVE_CORRECTION" | undefined;
5715
+ content?: {
5716
+ immediateCorrection?: boolean | undefined;
5717
+ } | undefined;
5655
5718
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5656
5719
  eventId: string;
5657
5720
  transactionId: string;
@@ -5703,6 +5766,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5703
5766
  transactionId: import("zod").ZodString;
5704
5767
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5705
5768
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
5769
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
5706
5770
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5707
5771
  }, import("zod/v4/core").$strip>>;
5708
5772
  output: import("../commons").EventDocument;
@@ -5715,14 +5779,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5715
5779
  user: {
5716
5780
  id: string & import("zod").$brand<"UUID">;
5717
5781
  type: "system";
5718
- signature?: undefined;
5719
5782
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5720
5783
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5784
+ signature?: undefined;
5721
5785
  } | {
5722
5786
  id: string & import("zod").$brand<"UUID">;
5723
- type: "user";
5724
5787
  role: string;
5725
5788
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5789
+ type: "user";
5726
5790
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5727
5791
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5728
5792
  };
@@ -5943,6 +6007,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5943
6007
  waitFor?: boolean | undefined;
5944
6008
  createdAtLocation?: string | null | undefined;
5945
6009
  type?: "APPROVE_CORRECTION" | undefined;
6010
+ content?: {
6011
+ immediateCorrection?: boolean | undefined;
6012
+ } | undefined;
5946
6013
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5947
6014
  eventId: string;
5948
6015
  transactionId: string;
@@ -5994,6 +6061,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5994
6061
  transactionId: import("zod").ZodString;
5995
6062
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5996
6063
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
6064
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
5997
6065
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5998
6066
  }, import("zod/v4/core").$strip>>;
5999
6067
  output: import("../commons").EventDocument;
@@ -6007,14 +6075,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6007
6075
  user: {
6008
6076
  id: string & import("zod").$brand<"UUID">;
6009
6077
  type: "system";
6010
- signature?: undefined;
6011
6078
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6012
6079
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6080
+ signature?: undefined;
6013
6081
  } | {
6014
6082
  id: string & import("zod").$brand<"UUID">;
6015
- type: "user";
6016
6083
  role: string;
6017
6084
  primaryOfficeId: string & import("zod").$brand<"UUID">;
6085
+ type: "user";
6018
6086
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6019
6087
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6020
6088
  };
@@ -6231,6 +6299,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6231
6299
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
6232
6300
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
6233
6301
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6302
+ content?: {
6303
+ immediateCorrection?: boolean | undefined;
6304
+ } | undefined;
6234
6305
  } | {
6235
6306
  id: string & import("zod").$brand<"UUID">;
6236
6307
  transactionId: string;
@@ -6332,7 +6403,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6332
6403
  createdByUserType: "system" | "user";
6333
6404
  createdAt: string;
6334
6405
  createdBy: string;
6335
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
6406
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
6336
6407
  status: "Rejected";
6337
6408
  createdByRole?: string | undefined;
6338
6409
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -6548,6 +6619,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6548
6619
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
6549
6620
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
6550
6621
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6622
+ content?: {
6623
+ immediateCorrection?: boolean | undefined;
6624
+ } | undefined;
6551
6625
  } | {
6552
6626
  id: string & import("zod").$brand<"UUID">;
6553
6627
  transactionId: string;
@@ -6649,7 +6723,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6649
6723
  createdByUserType: "system" | "user";
6650
6724
  createdAt: string;
6651
6725
  createdBy: string;
6652
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
6726
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
6653
6727
  status: "Rejected";
6654
6728
  createdByRole?: string | undefined;
6655
6729
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -6673,8 +6747,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6673
6747
  results: {
6674
6748
  id: string & import("zod").$brand<"UUID">;
6675
6749
  type: string;
6676
- status: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
6750
+ status: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
6677
6751
  legalStatuses: {
6752
+ NOTIFIED?: {
6753
+ createdAt: string;
6754
+ createdBy: string;
6755
+ acceptedAt: string;
6756
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
6757
+ createdByUserType?: "system" | "user" | null | undefined;
6758
+ createdByRole?: string | undefined;
6759
+ } | null | undefined;
6678
6760
  DECLARED?: {
6679
6761
  createdAt: string;
6680
6762
  createdBy: string;
@@ -6908,6 +6990,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6908
6990
  createdAtLocation?: string | null | undefined;
6909
6991
  annotation?: Record<string, unknown> | null | undefined;
6910
6992
  originalActionId?: string | null | undefined;
6993
+ content?: {
6994
+ immediateCorrection?: boolean | undefined;
6995
+ } | undefined;
6911
6996
  } | {
6912
6997
  id: string;
6913
6998
  transactionId: string;
@@ -7009,7 +7094,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7009
7094
  createdByUserType: "system" | "user";
7010
7095
  createdAt: string;
7011
7096
  createdBy: string;
7012
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
7097
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
7013
7098
  status: "Rejected";
7014
7099
  createdByRole?: string | undefined;
7015
7100
  createdBySignature?: string | null | undefined;
@@ -7028,14 +7113,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7028
7113
  user: {
7029
7114
  id: string & import("zod").$brand<"UUID">;
7030
7115
  type: "system";
7031
- signature?: undefined;
7032
7116
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7033
7117
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7118
+ signature?: undefined;
7034
7119
  } | {
7035
7120
  id: string & import("zod").$brand<"UUID">;
7036
- type: "user";
7037
7121
  role: string;
7038
7122
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7123
+ type: "user";
7039
7124
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7040
7125
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7041
7126
  };
@@ -7086,11 +7171,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7086
7171
  };
7087
7172
  role: string;
7088
7173
  primaryOfficeId: string;
7089
- data?: Record<string, unknown> | undefined;
7090
- fullHonorificName?: string | undefined;
7091
7174
  device?: string | undefined;
7092
- email?: string | undefined;
7175
+ fullHonorificName?: string | undefined;
7093
7176
  mobile?: string | undefined;
7177
+ email?: string | undefined;
7178
+ data?: Record<string, unknown> | undefined;
7094
7179
  username?: undefined;
7095
7180
  password?: undefined;
7096
7181
  signature?: {
@@ -7123,17 +7208,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7123
7208
  update: import("@trpc/server").TRPCMutationProcedure<{
7124
7209
  input: {
7125
7210
  id: string;
7126
- data?: Record<string, unknown> | undefined;
7127
7211
  name?: {
7128
7212
  firstname: string;
7129
7213
  surname: string;
7130
7214
  } | undefined;
7131
7215
  role?: string | undefined;
7132
- fullHonorificName?: string | undefined;
7133
- device?: string | undefined;
7134
7216
  primaryOfficeId?: string | undefined;
7135
- email?: string | undefined;
7217
+ device?: string | undefined;
7218
+ fullHonorificName?: string | undefined;
7136
7219
  mobile?: string | undefined;
7220
+ email?: string | undefined;
7221
+ data?: Record<string, unknown> | undefined;
7137
7222
  signature?: {
7138
7223
  path: string;
7139
7224
  originalFilename: string;
@@ -7166,20 +7251,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7166
7251
  input: string[];
7167
7252
  output: ({
7168
7253
  id: string & import("zod").$brand<"UUID">;
7169
- type: "user";
7170
7254
  name: {
7171
7255
  firstname: string;
7172
7256
  surname: string;
7173
7257
  };
7174
7258
  role: string;
7175
7259
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7176
- fullHonorificName?: string | undefined;
7260
+ type: "user";
7177
7261
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
7178
7262
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7263
+ fullHonorificName?: string | undefined;
7179
7264
  } | {
7180
7265
  id: string & import("zod").$brand<"UUID">;
7181
- type: "system";
7182
7266
  name: string;
7267
+ type: "system";
7183
7268
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7184
7269
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7185
7270
  })[];
@@ -7199,21 +7284,21 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7199
7284
  };
7200
7285
  output: ({
7201
7286
  id: string & import("zod").$brand<"UUID">;
7202
- type: "user";
7203
7287
  name: {
7204
7288
  firstname: string;
7205
7289
  surname: string;
7206
7290
  };
7207
7291
  role: string;
7208
7292
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7293
+ type: "user";
7209
7294
  status: "active" | "pending" | "deactivated";
7210
- fullHonorificName?: string | undefined;
7211
7295
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
7212
7296
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7297
+ fullHonorificName?: string | undefined;
7213
7298
  } | {
7214
7299
  id: string & import("zod").$brand<"UUID">;
7215
- type: "system";
7216
7300
  name: string;
7301
+ type: "system";
7217
7302
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7218
7303
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7219
7304
  status?: "active" | "pending" | "deactivated" | undefined;
@@ -7227,7 +7312,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7227
7312
  count?: number | undefined;
7228
7313
  timeStart?: string | undefined;
7229
7314
  timeEnd?: string | undefined;
7230
- 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;
7315
+ actionTypes?: ("CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM")[] | undefined;
7231
7316
  };
7232
7317
  output: {
7233
7318
  results: {
@@ -7264,14 +7349,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7264
7349
  user: {
7265
7350
  id: string & import("zod").$brand<"UUID">;
7266
7351
  type: "system";
7267
- signature?: undefined;
7268
7352
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7269
7353
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7354
+ signature?: undefined;
7270
7355
  } | {
7271
7356
  id: string & import("zod").$brand<"UUID">;
7272
- type: "user";
7273
7357
  role: string;
7274
7358
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7359
+ type: "user";
7275
7360
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7276
7361
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7277
7362
  };
@@ -7297,9 +7382,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7297
7382
  output: void;
7298
7383
  meta: import("trpc-to-openapi").OpenApiMeta;
7299
7384
  }>;
7300
- sendVerifyCode: import("@trpc/server").TRPCMutationProcedure<{
7385
+ requestEmailChange: import("@trpc/server").TRPCMutationProcedure<{
7386
+ input: {
7387
+ email: string;
7388
+ };
7389
+ output: {
7390
+ nonce: string;
7391
+ };
7392
+ meta: import("trpc-to-openapi").OpenApiMeta;
7393
+ }>;
7394
+ requestPhoneChange: import("@trpc/server").TRPCMutationProcedure<{
7301
7395
  input: {
7302
- notificationEvent: "change-phone-number" | "change-email-address";
7396
+ phoneNumber: string;
7303
7397
  };
7304
7398
  output: {
7305
7399
  nonce: string;
@@ -7379,14 +7473,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7379
7473
  user: {
7380
7474
  id: string & import("zod").$brand<"UUID">;
7381
7475
  type: "system";
7382
- signature?: undefined;
7383
7476
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7384
7477
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7478
+ signature?: undefined;
7385
7479
  } | {
7386
7480
  id: string & import("zod").$brand<"UUID">;
7387
- type: "user";
7388
7481
  role: string;
7389
7482
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7483
+ type: "user";
7390
7484
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7391
7485
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7392
7486
  };
@@ -7493,7 +7587,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7493
7587
  clientId: string;
7494
7588
  clientType: "system" | "user";
7495
7589
  createdAt: string;
7496
- 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";
7590
+ operation: "event.actions.archive.request" | "event.actions.assign.request" | "event.actions.correction.approve.request" | "event.actions.correction.reject.request" | "event.actions.correction.request.request" | "event.actions.declare.request" | "event.actions.edit.request" | "event.actions.mark_as_duplicate.request" | "event.actions.mark_as_not_duplicate.request" | "event.actions.notify.request" | "event.actions.print_certificate.request" | "event.actions.read.request" | "event.actions.register.request" | "event.actions.reinstate.request" | "event.actions.reject.request" | "event.actions.unassign.request" | "event.actions.validate.request";
7497
7591
  requestData: {
7498
7592
  eventId: string;
7499
7593
  actionType: string;
@@ -7672,14 +7766,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7672
7766
  user: {
7673
7767
  id: string & import("zod").$brand<"UUID">;
7674
7768
  type: "system";
7675
- signature?: undefined;
7676
7769
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7677
7770
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7771
+ signature?: undefined;
7678
7772
  } | {
7679
7773
  id: string & import("zod").$brand<"UUID">;
7680
- type: "user";
7681
7774
  role: string;
7682
7775
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7776
+ type: "user";
7683
7777
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7684
7778
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7685
7779
  };
@@ -7745,14 +7839,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7745
7839
  user: {
7746
7840
  id: string & import("zod").$brand<"UUID">;
7747
7841
  type: "system";
7748
- signature?: undefined;
7749
7842
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7750
7843
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7844
+ signature?: undefined;
7751
7845
  } | {
7752
7846
  id: string & import("zod").$brand<"UUID">;
7753
- type: "user";
7754
7847
  role: string;
7755
7848
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7849
+ type: "user";
7756
7850
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7757
7851
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7758
7852
  };
@@ -7767,14 +7861,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7767
7861
  user: {
7768
7862
  id: string & import("zod").$brand<"UUID">;
7769
7863
  type: "system";
7770
- signature?: undefined;
7771
7864
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7772
7865
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7866
+ signature?: undefined;
7773
7867
  } | {
7774
7868
  id: string & import("zod").$brand<"UUID">;
7775
- type: "user";
7776
7869
  role: string;
7777
7870
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7871
+ type: "user";
7778
7872
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7779
7873
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7780
7874
  };
@@ -7798,10 +7892,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7798
7892
  eventType?: string | undefined;
7799
7893
  status?: {
7800
7894
  type: "anyOf";
7801
- terms: ("CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED")[];
7895
+ terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[];
7802
7896
  } | {
7803
7897
  type: "exact";
7804
- term: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
7898
+ term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
7805
7899
  } | undefined;
7806
7900
  createdAt?: {
7807
7901
  type: "exact";
@@ -7812,7 +7906,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7812
7906
  lte: string;
7813
7907
  } | {
7814
7908
  type: "timePeriod";
7815
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
7909
+ term: "last30Days" | "last365Days" | "last7Days" | "last90Days";
7816
7910
  } | undefined;
7817
7911
  updatedAt?: {
7818
7912
  type: "exact";
@@ -7823,12 +7917,12 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7823
7917
  lte: string;
7824
7918
  } | {
7825
7919
  type: "timePeriod";
7826
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
7920
+ term: "last30Days" | "last365Days" | "last7Days" | "last90Days";
7827
7921
  } | undefined;
7828
7922
  'legalStatuses.DECLARED.createdAtLocation'?: {
7829
7923
  type: "within";
7830
7924
  location: string | {
7831
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
7925
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
7832
7926
  $location?: string | undefined;
7833
7927
  };
7834
7928
  } | undefined;
@@ -7845,12 +7939,12 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7845
7939
  lte: string;
7846
7940
  } | {
7847
7941
  type: "timePeriod";
7848
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
7942
+ term: "last30Days" | "last365Days" | "last7Days" | "last90Days";
7849
7943
  } | undefined;
7850
7944
  'legalStatuses.REGISTERED.createdAtLocation'?: {
7851
7945
  type: "within";
7852
7946
  location: string | {
7853
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
7947
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
7854
7948
  $location?: string | undefined;
7855
7949
  };
7856
7950
  } | undefined;
@@ -7865,47 +7959,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7865
7959
  createdAtLocation?: {
7866
7960
  type: "within";
7867
7961
  location: string | {
7868
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
7962
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
7869
7963
  $location?: string | undefined;
7870
7964
  };
7871
7965
  } | {
7872
7966
  type: "exact";
7873
7967
  term: string | {
7874
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
7968
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
7875
7969
  $location?: string | undefined;
7876
7970
  };
7877
7971
  } | undefined;
7878
7972
  updatedAtLocation?: {
7879
7973
  type: "within";
7880
7974
  location: string | {
7881
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
7975
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
7882
7976
  $location?: string | undefined;
7883
7977
  };
7884
7978
  } | {
7885
7979
  type: "exact";
7886
7980
  term: string | {
7887
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
7981
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
7888
7982
  $location?: string | undefined;
7889
7983
  };
7890
7984
  } | undefined;
7891
7985
  updatedByUserRole?: {
7892
7986
  type: "exact";
7893
7987
  term: string | {
7894
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
7988
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
7895
7989
  $location?: string | undefined;
7896
7990
  };
7897
7991
  } | undefined;
7898
7992
  assignedTo?: {
7899
7993
  type: "exact";
7900
7994
  term: string | {
7901
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
7995
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
7902
7996
  $location?: string | undefined;
7903
7997
  };
7904
7998
  } | undefined;
7905
7999
  createdBy?: {
7906
8000
  type: "exact";
7907
8001
  term: string | {
7908
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
8002
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
7909
8003
  $location?: string | undefined;
7910
8004
  };
7911
8005
  } | undefined;
@@ -7916,7 +8010,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7916
8010
  updatedBy?: {
7917
8011
  type: "exact";
7918
8012
  term: string | {
7919
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
8013
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
7920
8014
  $location?: string | undefined;
7921
8015
  };
7922
8016
  } | undefined;
@@ -7927,6 +8021,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7927
8021
  flags?: {
7928
8022
  anyOf?: string[] | undefined;
7929
8023
  noneOf?: string[] | undefined;
8024
+ allOf?: string[] | undefined;
7930
8025
  } | undefined;
7931
8026
  data?: unknown;
7932
8027
  }[];
@@ -7936,10 +8031,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7936
8031
  eventType?: string | undefined;
7937
8032
  status?: {
7938
8033
  type: "anyOf";
7939
- terms: ("CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED")[];
8034
+ terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[];
7940
8035
  } | {
7941
8036
  type: "exact";
7942
- term: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
8037
+ term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
7943
8038
  } | undefined;
7944
8039
  createdAt?: {
7945
8040
  type: "exact";
@@ -7950,7 +8045,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7950
8045
  lte: string;
7951
8046
  } | {
7952
8047
  type: "timePeriod";
7953
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
8048
+ term: "last30Days" | "last365Days" | "last7Days" | "last90Days";
7954
8049
  } | undefined;
7955
8050
  updatedAt?: {
7956
8051
  type: "exact";
@@ -7961,12 +8056,12 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7961
8056
  lte: string;
7962
8057
  } | {
7963
8058
  type: "timePeriod";
7964
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
8059
+ term: "last30Days" | "last365Days" | "last7Days" | "last90Days";
7965
8060
  } | undefined;
7966
8061
  'legalStatuses.DECLARED.createdAtLocation'?: {
7967
8062
  type: "within";
7968
8063
  location: string | {
7969
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
8064
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
7970
8065
  $location?: string | undefined;
7971
8066
  };
7972
8067
  } | undefined;
@@ -7983,12 +8078,12 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7983
8078
  lte: string;
7984
8079
  } | {
7985
8080
  type: "timePeriod";
7986
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
8081
+ term: "last30Days" | "last365Days" | "last7Days" | "last90Days";
7987
8082
  } | undefined;
7988
8083
  'legalStatuses.REGISTERED.createdAtLocation'?: {
7989
8084
  type: "within";
7990
8085
  location: string | {
7991
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
8086
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
7992
8087
  $location?: string | undefined;
7993
8088
  };
7994
8089
  } | undefined;
@@ -8003,47 +8098,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8003
8098
  createdAtLocation?: {
8004
8099
  type: "within";
8005
8100
  location: string | {
8006
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
8101
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
8007
8102
  $location?: string | undefined;
8008
8103
  };
8009
8104
  } | {
8010
8105
  type: "exact";
8011
8106
  term: string | {
8012
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
8107
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
8013
8108
  $location?: string | undefined;
8014
8109
  };
8015
8110
  } | undefined;
8016
8111
  updatedAtLocation?: {
8017
8112
  type: "within";
8018
8113
  location: string | {
8019
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
8114
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
8020
8115
  $location?: string | undefined;
8021
8116
  };
8022
8117
  } | {
8023
8118
  type: "exact";
8024
8119
  term: string | {
8025
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
8120
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
8026
8121
  $location?: string | undefined;
8027
8122
  };
8028
8123
  } | undefined;
8029
8124
  updatedByUserRole?: {
8030
8125
  type: "exact";
8031
8126
  term: string | {
8032
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
8127
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
8033
8128
  $location?: string | undefined;
8034
8129
  };
8035
8130
  } | undefined;
8036
8131
  assignedTo?: {
8037
8132
  type: "exact";
8038
8133
  term: string | {
8039
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
8134
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
8040
8135
  $location?: string | undefined;
8041
8136
  };
8042
8137
  } | undefined;
8043
8138
  createdBy?: {
8044
8139
  type: "exact";
8045
8140
  term: string | {
8046
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
8141
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
8047
8142
  $location?: string | undefined;
8048
8143
  };
8049
8144
  } | undefined;
@@ -8054,7 +8149,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8054
8149
  updatedBy?: {
8055
8150
  type: "exact";
8056
8151
  term: string | {
8057
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
8152
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
8058
8153
  $location?: string | undefined;
8059
8154
  };
8060
8155
  } | undefined;
@@ -8065,6 +8160,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8065
8160
  flags?: {
8066
8161
  anyOf?: string[] | undefined;
8067
8162
  noneOf?: string[] | undefined;
8163
+ allOf?: string[] | undefined;
8068
8164
  } | undefined;
8069
8165
  data?: unknown;
8070
8166
  }[];
@@ -8079,7 +8175,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8079
8175
  $event: "id" | "createdBy" | "createdAt" | "status" | "createdByUserType" | "createdAtLocation" | "updatedAt" | "assignedTo" | "trackingId" | "type" | "flags" | "dateOfEvent" | "placeOfEvent" | "title" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "outbox";
8080
8176
  };
8081
8177
  }[];
8082
- icon: "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" | "File" | "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";
8178
+ icon: "Activity" | "Archive" | "ArchiveBox" | "ArchiveTray" | "Archived" | "ArrowCircleDown" | "ArrowCounterClockwise" | "ArrowLeft" | "ArrowRight" | "Assigned" | "Briefcase" | "Buildings" | "CaretDown" | "CaretLeft" | "CaretRight" | "Certified" | "ChartActivity" | "ChartBar" | "ChartLine" | "ChatCircle" | "ChatText" | "Check" | "CheckSquare" | "Circle" | "CircleWavyCheck" | "CircleWavyQuestion" | "Clock" | "Close" | "Collapse" | "Compass" | "Copy" | "Database" | "DeviceTabletCamera" | "DotsThreeVertical" | "Draft" | "DuplicateYellow" | "Envelope" | "Expand" | "Export" | "ExternalValidate" | "Eye" | "EyeSlash" | "File" | "FileArrowUp" | "FileDotted" | "FileMinus" | "FilePlus" | "FileSearch" | "FileText" | "FileX" | "Files" | "FilledCheck" | "Fingerprint" | "Gear" | "GitBranch" | "Globe" | "Handshake" | "IdentificationCard" | "InReview" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "MapPin" | "Medal" | "NotePencil" | "Offline" | "PaperPlaneTilt" | "Paperclip" | "Pen" | "PenNib" | "Pencil" | "PencilCircle" | "PencilLine" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "PushPin" | "QrCode" | "Registered" | "RequiresUpdates" | "Sent" | "SignOut" | "Stamp" | "Star" | "Sun" | "Target" | "TextT" | "Timer" | "Trash" | "UploadSimple" | "User" | "UserCircle" | "UserPlus" | "Users" | "Validated" | "WaitingApproval" | "WarningCircle" | "Webcam" | "X";
8083
8179
  action?: {
8084
8180
  type: "DELETE" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ";
8085
8181
  } | undefined;
@@ -8107,14 +8203,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8107
8203
  user: {
8108
8204
  id: string & import("zod").$brand<"UUID">;
8109
8205
  type: "system";
8110
- signature?: undefined;
8111
8206
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8112
8207
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8208
+ signature?: undefined;
8113
8209
  } | {
8114
8210
  id: string & import("zod").$brand<"UUID">;
8115
- type: "user";
8116
8211
  role: string;
8117
8212
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8213
+ type: "user";
8118
8214
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8119
8215
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8120
8216
  };
@@ -8155,14 +8251,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8155
8251
  user: {
8156
8252
  id: string & import("zod").$brand<"UUID">;
8157
8253
  type: "system";
8158
- signature?: undefined;
8159
8254
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8160
8255
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8256
+ signature?: undefined;
8161
8257
  } | {
8162
8258
  id: string & import("zod").$brand<"UUID">;
8163
- type: "user";
8164
8259
  role: string;
8165
8260
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8261
+ type: "user";
8166
8262
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8167
8263
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8168
8264
  };
@@ -8273,14 +8369,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8273
8369
  user: {
8274
8370
  id: string & import("zod").$brand<"UUID">;
8275
8371
  type: "system";
8276
- signature?: undefined;
8277
8372
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8278
8373
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8374
+ signature?: undefined;
8279
8375
  } | {
8280
8376
  id: string & import("zod").$brand<"UUID">;
8281
- type: "user";
8282
8377
  role: string;
8283
8378
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8379
+ type: "user";
8284
8380
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8285
8381
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8286
8382
  };
@@ -8308,14 +8404,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8308
8404
  user: {
8309
8405
  id: string & import("zod").$brand<"UUID">;
8310
8406
  type: "system";
8311
- signature?: undefined;
8312
8407
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8313
8408
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8409
+ signature?: undefined;
8314
8410
  } | {
8315
8411
  id: string & import("zod").$brand<"UUID">;
8316
- type: "user";
8317
8412
  role: string;
8318
8413
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8414
+ type: "user";
8319
8415
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8320
8416
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8321
8417
  };