@opencrvs/toolkit 2.1.0 → 2.2.0-rc.9042a13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/build.sh +2 -2
  2. package/create-countryconfig/package.json +1 -1
  3. package/dist/application-config/index.js +29 -2
  4. package/dist/authentication/index.js +14 -1
  5. package/dist/cli.js +294 -1967
  6. package/dist/commons/api/router.d.ts +1370 -73
  7. package/dist/commons/conditionals/conditionals.d.ts +3 -3
  8. package/dist/commons/events/ActionConfig.d.ts +133 -0
  9. package/dist/commons/events/ActionDocument.d.ts +88 -0
  10. package/dist/commons/events/ActionInput.d.ts +52 -0
  11. package/dist/commons/events/ActionType.d.ts +11 -1
  12. package/dist/commons/events/AdvancedSearchConfig.d.ts +12 -0
  13. package/dist/commons/events/AuditLog.d.ts +4 -0
  14. package/dist/commons/events/CountryConfigQueryInput.d.ts +132 -0
  15. package/dist/commons/events/Draft.d.ts +2 -0
  16. package/dist/commons/events/EventConfig.d.ts +26 -6
  17. package/dist/commons/events/EventDocument.d.ts +88 -0
  18. package/dist/commons/events/EventIndex.d.ts +20 -0
  19. package/dist/commons/events/EventMetadata.d.ts +23 -0
  20. package/dist/commons/events/EventStatus.d.ts +1 -0
  21. package/dist/commons/events/FieldConfig.d.ts +10 -0
  22. package/dist/commons/events/WorkqueueConfig.d.ts +154 -10
  23. package/dist/commons/events/eventConfigValidation.d.ts +17 -1
  24. package/dist/commons/events/scopes.d.ts +2 -0
  25. package/dist/commons/events/state/index.d.ts +10 -2
  26. package/dist/commons/events/state/utils.d.ts +11 -1
  27. package/dist/commons/events/test.utils.d.ts +28 -1
  28. package/dist/commons/events/utils.d.ts +43 -15
  29. package/dist/conditionals/index.js +14 -1
  30. package/dist/environment/derived-variables.d.ts +18 -0
  31. package/dist/environment/derived-variables.d.ts.map +1 -1
  32. package/dist/environment/derived-variables.js +22 -1
  33. package/dist/environment/setup-environment.d.ts.map +1 -1
  34. package/dist/environment/setup-environment.js +29 -10
  35. package/dist/events/index.js +293 -66
  36. package/dist/migrations/add-translations.d.ts +15 -0
  37. package/dist/migrations/add-translations.d.ts.map +1 -0
  38. package/dist/migrations/{v2.1/add-translations.js → add-translations.js} +16 -14
  39. package/dist/migrations/v2.1/index.js +35 -2155
  40. package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts +3 -0
  41. package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts.map +1 -1
  42. package/dist/migrations/v2.1/upgrade-tilt.d.ts +3 -0
  43. package/dist/migrations/v2.1/upgrade-tilt.d.ts.map +1 -1
  44. package/dist/migrations/v2.2/index.d.ts +6 -0
  45. package/dist/migrations/v2.2/index.d.ts.map +1 -0
  46. package/dist/migrations/v2.2/index.js +456 -0
  47. package/dist/migrations/v2.2/read-declaration-through-helper.d.ts +39 -0
  48. package/dist/migrations/v2.2/read-declaration-through-helper.d.ts.map +1 -0
  49. package/dist/migrations/v2.2/read-declaration-through-helper.js +257 -0
  50. package/dist/notification/index.js +271 -86
  51. package/dist/scopes/index.d.ts +29 -6
  52. package/dist/scopes/index.js +14 -1
  53. package/dist/templates/charts-values/traefik/values.yaml +2 -3
  54. package/opencrvs-toolkit-2.2.0-rc.9042a13.tgz +0 -0
  55. package/package.json +1 -1
  56. package/tsconfig.build.tsbuildinfo +1 -1
  57. package/dist/migrations/v2.1/add-translations.d.ts +0 -9
  58. package/dist/migrations/v2.1/add-translations.d.ts.map +0 -1
  59. package/opencrvs-toolkit-2.1.0.tgz +0 -0
@@ -242,6 +242,34 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
242
242
  status: "Accepted" | "Rejected" | "Requested";
243
243
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
244
244
  type: "UNARCHIVE";
245
+ } | {
246
+ id: string & import("zod").$brand<"UUID">;
247
+ transactionId: string;
248
+ createdByUserType: "system" | "user";
249
+ createdAt: string;
250
+ createdBy: string;
251
+ createdByRole?: string | undefined;
252
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
253
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
254
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
255
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
256
+ status: "Accepted" | "Rejected" | "Requested";
257
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
258
+ type: "REVOKE_REGISTRATION";
259
+ } | {
260
+ id: string & import("zod").$brand<"UUID">;
261
+ transactionId: string;
262
+ createdByUserType: "system" | "user";
263
+ createdAt: string;
264
+ createdBy: string;
265
+ createdByRole?: string | undefined;
266
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
267
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
268
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
269
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
270
+ status: "Accepted" | "Rejected" | "Requested";
271
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
272
+ type: "REINSTATE_REGISTRATION";
245
273
  } | {
246
274
  id: string & import("zod").$brand<"UUID">;
247
275
  transactionId: string;
@@ -437,7 +465,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
437
465
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
438
466
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
439
467
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
440
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
468
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE";
441
469
  status: "Rejected";
442
470
  })[];
443
471
  trackingId: string;
@@ -567,6 +595,34 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
567
595
  status: "Accepted" | "Rejected" | "Requested";
568
596
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
569
597
  type: "UNARCHIVE";
598
+ } | {
599
+ id: string & import("zod").$brand<"UUID">;
600
+ transactionId: string;
601
+ createdByUserType: "system" | "user";
602
+ createdAt: string;
603
+ createdBy: string;
604
+ createdByRole?: string | undefined;
605
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
606
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
607
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
608
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
609
+ status: "Accepted" | "Rejected" | "Requested";
610
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
611
+ type: "REVOKE_REGISTRATION";
612
+ } | {
613
+ id: string & import("zod").$brand<"UUID">;
614
+ transactionId: string;
615
+ createdByUserType: "system" | "user";
616
+ createdAt: string;
617
+ createdBy: string;
618
+ createdByRole?: string | undefined;
619
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
620
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
621
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
622
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
623
+ status: "Accepted" | "Rejected" | "Requested";
624
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
625
+ type: "REINSTATE_REGISTRATION";
570
626
  } | {
571
627
  id: string & import("zod").$brand<"UUID">;
572
628
  transactionId: string;
@@ -762,7 +818,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
762
818
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
763
819
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
764
820
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
765
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
821
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE";
766
822
  status: "Rejected";
767
823
  })[];
768
824
  trackingId: string;
@@ -892,6 +948,34 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
892
948
  status: "Accepted" | "Rejected" | "Requested";
893
949
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
894
950
  type: "UNARCHIVE";
951
+ } | {
952
+ id: string & import("zod").$brand<"UUID">;
953
+ transactionId: string;
954
+ createdByUserType: "system" | "user";
955
+ createdAt: string;
956
+ createdBy: string;
957
+ createdByRole?: string | undefined;
958
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
959
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
960
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
961
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
962
+ status: "Accepted" | "Rejected" | "Requested";
963
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
964
+ type: "REVOKE_REGISTRATION";
965
+ } | {
966
+ id: string & import("zod").$brand<"UUID">;
967
+ transactionId: string;
968
+ createdByUserType: "system" | "user";
969
+ createdAt: string;
970
+ createdBy: string;
971
+ createdByRole?: string | undefined;
972
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
973
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
974
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
975
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
976
+ status: "Accepted" | "Rejected" | "Requested";
977
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
978
+ type: "REINSTATE_REGISTRATION";
895
979
  } | {
896
980
  id: string & import("zod").$brand<"UUID">;
897
981
  transactionId: string;
@@ -1087,7 +1171,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1087
1171
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1088
1172
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1089
1173
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1090
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
1174
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE";
1091
1175
  status: "Rejected";
1092
1176
  })[];
1093
1177
  trackingId: string;
@@ -1143,7 +1227,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1143
1227
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1144
1228
  status: "Accepted" | "Rejected" | "Requested";
1145
1229
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1146
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "ASSIGN" | "CREATE" | "CUSTOM" | "DECLARE" | "DUPLICATE_DETECTED" | "EDIT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE" | "UNASSIGN";
1230
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "ASSIGN" | "CREATE" | "CUSTOM" | "DECLARE" | "DUPLICATE_DETECTED" | "EDIT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE" | "UNASSIGN";
1147
1231
  };
1148
1232
  }[];
1149
1233
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1178,7 +1262,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1178
1262
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1179
1263
  status: "Accepted" | "Rejected" | "Requested";
1180
1264
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1181
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "ASSIGN" | "CREATE" | "CUSTOM" | "DECLARE" | "DUPLICATE_DETECTED" | "EDIT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE" | "UNASSIGN";
1265
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "ASSIGN" | "CREATE" | "CUSTOM" | "DECLARE" | "DUPLICATE_DETECTED" | "EDIT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE" | "UNASSIGN";
1182
1266
  };
1183
1267
  };
1184
1268
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1402,6 +1486,30 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1402
1486
  waitFor?: boolean | undefined;
1403
1487
  createdAtLocation?: string | null | undefined;
1404
1488
  type?: "UNARCHIVE" | undefined;
1489
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1490
+ eventId: string;
1491
+ transactionId: string;
1492
+ declaration?: Record<string, unknown> | undefined;
1493
+ annotation?: Record<string, unknown> | undefined;
1494
+ originalActionId?: string | undefined;
1495
+ keepAssignment?: boolean | undefined;
1496
+ keepAssignmentIfAccepted?: boolean | undefined;
1497
+ keepAssignmentIfRejected?: boolean | undefined;
1498
+ waitFor?: boolean | undefined;
1499
+ createdAtLocation?: string | null | undefined;
1500
+ type?: "REVOKE_REGISTRATION" | undefined;
1501
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1502
+ eventId: string;
1503
+ transactionId: string;
1504
+ declaration?: Record<string, unknown> | undefined;
1505
+ annotation?: Record<string, unknown> | undefined;
1506
+ originalActionId?: string | undefined;
1507
+ keepAssignment?: boolean | undefined;
1508
+ keepAssignmentIfAccepted?: boolean | undefined;
1509
+ keepAssignmentIfRejected?: boolean | undefined;
1510
+ waitFor?: boolean | undefined;
1511
+ createdAtLocation?: string | null | undefined;
1512
+ type?: "REINSTATE_REGISTRATION" | undefined;
1405
1513
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1406
1514
  eventId: string;
1407
1515
  transactionId: string;
@@ -1695,6 +1803,34 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1695
1803
  status: "Accepted" | "Rejected" | "Requested";
1696
1804
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1697
1805
  type: "UNARCHIVE";
1806
+ } | {
1807
+ id: string & import("zod").$brand<"UUID">;
1808
+ transactionId: string;
1809
+ createdByUserType: "system" | "user";
1810
+ createdAt: string;
1811
+ createdBy: string;
1812
+ createdByRole?: string | undefined;
1813
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1814
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1815
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1816
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1817
+ status: "Accepted" | "Rejected" | "Requested";
1818
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1819
+ type: "REVOKE_REGISTRATION";
1820
+ } | {
1821
+ id: string & import("zod").$brand<"UUID">;
1822
+ transactionId: string;
1823
+ createdByUserType: "system" | "user";
1824
+ createdAt: string;
1825
+ createdBy: string;
1826
+ createdByRole?: string | undefined;
1827
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1828
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1829
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1830
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1831
+ status: "Accepted" | "Rejected" | "Requested";
1832
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1833
+ type: "REINSTATE_REGISTRATION";
1698
1834
  } | {
1699
1835
  id: string & import("zod").$brand<"UUID">;
1700
1836
  transactionId: string;
@@ -1890,7 +2026,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1890
2026
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1891
2027
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1892
2028
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1893
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
2029
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE";
1894
2030
  status: "Rejected";
1895
2031
  })[];
1896
2032
  trackingId: string;
@@ -2057,6 +2193,30 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2057
2193
  waitFor?: boolean | undefined;
2058
2194
  createdAtLocation?: string | null | undefined;
2059
2195
  type?: "UNARCHIVE" | undefined;
2196
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2197
+ eventId: string;
2198
+ transactionId: string;
2199
+ declaration?: Record<string, unknown> | undefined;
2200
+ annotation?: Record<string, unknown> | undefined;
2201
+ originalActionId?: string | undefined;
2202
+ keepAssignment?: boolean | undefined;
2203
+ keepAssignmentIfAccepted?: boolean | undefined;
2204
+ keepAssignmentIfRejected?: boolean | undefined;
2205
+ waitFor?: boolean | undefined;
2206
+ createdAtLocation?: string | null | undefined;
2207
+ type?: "REVOKE_REGISTRATION" | undefined;
2208
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2209
+ eventId: string;
2210
+ transactionId: string;
2211
+ declaration?: Record<string, unknown> | undefined;
2212
+ annotation?: Record<string, unknown> | undefined;
2213
+ originalActionId?: string | undefined;
2214
+ keepAssignment?: boolean | undefined;
2215
+ keepAssignmentIfAccepted?: boolean | undefined;
2216
+ keepAssignmentIfRejected?: boolean | undefined;
2217
+ waitFor?: boolean | undefined;
2218
+ createdAtLocation?: string | null | undefined;
2219
+ type?: "REINSTATE_REGISTRATION" | undefined;
2060
2220
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2061
2221
  eventId: string;
2062
2222
  transactionId: string;
@@ -2328,6 +2488,34 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2328
2488
  status: "Accepted" | "Rejected" | "Requested";
2329
2489
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2330
2490
  type: "UNARCHIVE";
2491
+ } | {
2492
+ id: string & import("zod").$brand<"UUID">;
2493
+ transactionId: string;
2494
+ createdByUserType: "system" | "user";
2495
+ createdAt: string;
2496
+ createdBy: string;
2497
+ createdByRole?: string | undefined;
2498
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2499
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2500
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
2501
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
2502
+ status: "Accepted" | "Rejected" | "Requested";
2503
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2504
+ type: "REVOKE_REGISTRATION";
2505
+ } | {
2506
+ id: string & import("zod").$brand<"UUID">;
2507
+ transactionId: string;
2508
+ createdByUserType: "system" | "user";
2509
+ createdAt: string;
2510
+ createdBy: string;
2511
+ createdByRole?: string | undefined;
2512
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2513
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2514
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
2515
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
2516
+ status: "Accepted" | "Rejected" | "Requested";
2517
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2518
+ type: "REINSTATE_REGISTRATION";
2331
2519
  } | {
2332
2520
  id: string & import("zod").$brand<"UUID">;
2333
2521
  transactionId: string;
@@ -2523,7 +2711,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2523
2711
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2524
2712
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2525
2713
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2526
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
2714
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE";
2527
2715
  status: "Rejected";
2528
2716
  })[];
2529
2717
  trackingId: string;
@@ -2695,6 +2883,30 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2695
2883
  waitFor?: boolean | undefined;
2696
2884
  createdAtLocation?: string | null | undefined;
2697
2885
  type?: "UNARCHIVE" | undefined;
2886
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2887
+ eventId: string;
2888
+ transactionId: string;
2889
+ declaration?: Record<string, unknown> | undefined;
2890
+ annotation?: Record<string, unknown> | undefined;
2891
+ originalActionId?: string | undefined;
2892
+ keepAssignment?: boolean | undefined;
2893
+ keepAssignmentIfAccepted?: boolean | undefined;
2894
+ keepAssignmentIfRejected?: boolean | undefined;
2895
+ waitFor?: boolean | undefined;
2896
+ createdAtLocation?: string | null | undefined;
2897
+ type?: "REVOKE_REGISTRATION" | undefined;
2898
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2899
+ eventId: string;
2900
+ transactionId: string;
2901
+ declaration?: Record<string, unknown> | undefined;
2902
+ annotation?: Record<string, unknown> | undefined;
2903
+ originalActionId?: string | undefined;
2904
+ keepAssignment?: boolean | undefined;
2905
+ keepAssignmentIfAccepted?: boolean | undefined;
2906
+ keepAssignmentIfRejected?: boolean | undefined;
2907
+ waitFor?: boolean | undefined;
2908
+ createdAtLocation?: string | null | undefined;
2909
+ type?: "REINSTATE_REGISTRATION" | undefined;
2698
2910
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2699
2911
  eventId: string;
2700
2912
  transactionId: string;
@@ -2999,6 +3211,30 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2999
3211
  waitFor?: boolean | undefined;
3000
3212
  createdAtLocation?: string | null | undefined;
3001
3213
  type?: "UNARCHIVE" | undefined;
3214
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3215
+ eventId: string;
3216
+ transactionId: string;
3217
+ declaration?: Record<string, unknown> | undefined;
3218
+ annotation?: Record<string, unknown> | undefined;
3219
+ originalActionId?: string | undefined;
3220
+ keepAssignment?: boolean | undefined;
3221
+ keepAssignmentIfAccepted?: boolean | undefined;
3222
+ keepAssignmentIfRejected?: boolean | undefined;
3223
+ waitFor?: boolean | undefined;
3224
+ createdAtLocation?: string | null | undefined;
3225
+ type?: "REVOKE_REGISTRATION" | undefined;
3226
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3227
+ eventId: string;
3228
+ transactionId: string;
3229
+ declaration?: Record<string, unknown> | undefined;
3230
+ annotation?: Record<string, unknown> | undefined;
3231
+ originalActionId?: string | undefined;
3232
+ keepAssignment?: boolean | undefined;
3233
+ keepAssignmentIfAccepted?: boolean | undefined;
3234
+ keepAssignmentIfRejected?: boolean | undefined;
3235
+ waitFor?: boolean | undefined;
3236
+ createdAtLocation?: string | null | undefined;
3237
+ type?: "REINSTATE_REGISTRATION" | undefined;
3002
3238
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3003
3239
  eventId: string;
3004
3240
  transactionId: string;
@@ -3303,6 +3539,30 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3303
3539
  waitFor?: boolean | undefined;
3304
3540
  createdAtLocation?: string | null | undefined;
3305
3541
  type?: "UNARCHIVE" | undefined;
3542
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3543
+ eventId: string;
3544
+ transactionId: string;
3545
+ declaration?: Record<string, unknown> | undefined;
3546
+ annotation?: Record<string, unknown> | undefined;
3547
+ originalActionId?: string | undefined;
3548
+ keepAssignment?: boolean | undefined;
3549
+ keepAssignmentIfAccepted?: boolean | undefined;
3550
+ keepAssignmentIfRejected?: boolean | undefined;
3551
+ waitFor?: boolean | undefined;
3552
+ createdAtLocation?: string | null | undefined;
3553
+ type?: "REVOKE_REGISTRATION" | undefined;
3554
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3555
+ eventId: string;
3556
+ transactionId: string;
3557
+ declaration?: Record<string, unknown> | undefined;
3558
+ annotation?: Record<string, unknown> | undefined;
3559
+ originalActionId?: string | undefined;
3560
+ keepAssignment?: boolean | undefined;
3561
+ keepAssignmentIfAccepted?: boolean | undefined;
3562
+ keepAssignmentIfRejected?: boolean | undefined;
3563
+ waitFor?: boolean | undefined;
3564
+ createdAtLocation?: string | null | undefined;
3565
+ type?: "REINSTATE_REGISTRATION" | undefined;
3306
3566
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3307
3567
  eventId: string;
3308
3568
  transactionId: string;
@@ -3618,8 +3878,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3618
3878
  keepAssignmentIfRejected?: boolean | undefined;
3619
3879
  waitFor?: boolean | undefined;
3620
3880
  createdAtLocation?: string | null | undefined;
3621
- type: "ASSIGN";
3622
- assignedTo: string;
3881
+ type?: "REVOKE_REGISTRATION" | undefined;
3623
3882
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3624
3883
  eventId: string;
3625
3884
  transactionId: string;
@@ -3631,8 +3890,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3631
3890
  keepAssignmentIfRejected?: boolean | undefined;
3632
3891
  waitFor?: boolean | undefined;
3633
3892
  createdAtLocation?: string | null | undefined;
3634
- type?: "UNASSIGN" | undefined;
3635
- assignedTo?: null | undefined;
3893
+ type?: "REINSTATE_REGISTRATION" | undefined;
3636
3894
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3637
3895
  eventId: string;
3638
3896
  transactionId: string;
@@ -3644,10 +3902,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3644
3902
  keepAssignmentIfRejected?: boolean | undefined;
3645
3903
  waitFor?: boolean | undefined;
3646
3904
  createdAtLocation?: string | null | undefined;
3647
- type?: "PRINT_CERTIFICATE" | undefined;
3648
- content?: {
3649
- templateId?: string | undefined;
3650
- } | undefined;
3905
+ type: "ASSIGN";
3906
+ assignedTo: string;
3651
3907
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3652
3908
  eventId: string;
3653
3909
  transactionId: string;
@@ -3659,7 +3915,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3659
3915
  keepAssignmentIfRejected?: boolean | undefined;
3660
3916
  waitFor?: boolean | undefined;
3661
3917
  createdAtLocation?: string | null | undefined;
3662
- type?: "REQUEST_CORRECTION" | undefined;
3918
+ type?: "UNASSIGN" | undefined;
3919
+ assignedTo?: null | undefined;
3663
3920
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3664
3921
  eventId: string;
3665
3922
  transactionId: string;
@@ -3671,9 +3928,36 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3671
3928
  keepAssignmentIfRejected?: boolean | undefined;
3672
3929
  waitFor?: boolean | undefined;
3673
3930
  createdAtLocation?: string | null | undefined;
3674
- requestId: string;
3675
- type?: "REJECT_CORRECTION" | undefined;
3676
- content: {
3931
+ type?: "PRINT_CERTIFICATE" | undefined;
3932
+ content?: {
3933
+ templateId?: string | undefined;
3934
+ } | undefined;
3935
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3936
+ eventId: string;
3937
+ transactionId: string;
3938
+ declaration?: Record<string, unknown> | undefined;
3939
+ annotation?: Record<string, unknown> | undefined;
3940
+ originalActionId?: string | undefined;
3941
+ keepAssignment?: boolean | undefined;
3942
+ keepAssignmentIfAccepted?: boolean | undefined;
3943
+ keepAssignmentIfRejected?: boolean | undefined;
3944
+ waitFor?: boolean | undefined;
3945
+ createdAtLocation?: string | null | undefined;
3946
+ type?: "REQUEST_CORRECTION" | undefined;
3947
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3948
+ eventId: string;
3949
+ transactionId: string;
3950
+ declaration?: Record<string, unknown> | undefined;
3951
+ annotation?: Record<string, unknown> | undefined;
3952
+ originalActionId?: string | undefined;
3953
+ keepAssignment?: boolean | undefined;
3954
+ keepAssignmentIfAccepted?: boolean | undefined;
3955
+ keepAssignmentIfRejected?: boolean | undefined;
3956
+ waitFor?: boolean | undefined;
3957
+ createdAtLocation?: string | null | undefined;
3958
+ requestId: string;
3959
+ type?: "REJECT_CORRECTION" | undefined;
3960
+ content: {
3677
3961
  reason: string;
3678
3962
  };
3679
3963
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
@@ -3911,6 +4195,30 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3911
4195
  waitFor?: boolean | undefined;
3912
4196
  createdAtLocation?: string | null | undefined;
3913
4197
  type?: "UNARCHIVE" | undefined;
4198
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4199
+ eventId: string;
4200
+ transactionId: string;
4201
+ declaration?: Record<string, unknown> | undefined;
4202
+ annotation?: Record<string, unknown> | undefined;
4203
+ originalActionId?: string | undefined;
4204
+ keepAssignment?: boolean | undefined;
4205
+ keepAssignmentIfAccepted?: boolean | undefined;
4206
+ keepAssignmentIfRejected?: boolean | undefined;
4207
+ waitFor?: boolean | undefined;
4208
+ createdAtLocation?: string | null | undefined;
4209
+ type?: "REVOKE_REGISTRATION" | undefined;
4210
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4211
+ eventId: string;
4212
+ transactionId: string;
4213
+ declaration?: Record<string, unknown> | undefined;
4214
+ annotation?: Record<string, unknown> | undefined;
4215
+ originalActionId?: string | undefined;
4216
+ keepAssignment?: boolean | undefined;
4217
+ keepAssignmentIfAccepted?: boolean | undefined;
4218
+ keepAssignmentIfRejected?: boolean | undefined;
4219
+ waitFor?: boolean | undefined;
4220
+ createdAtLocation?: string | null | undefined;
4221
+ type?: "REINSTATE_REGISTRATION" | undefined;
3914
4222
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3915
4223
  eventId: string;
3916
4224
  transactionId: string;
@@ -4215,6 +4523,30 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4215
4523
  waitFor?: boolean | undefined;
4216
4524
  createdAtLocation?: string | null | undefined;
4217
4525
  type?: "UNARCHIVE" | undefined;
4526
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4527
+ eventId: string;
4528
+ transactionId: string;
4529
+ declaration?: Record<string, unknown> | undefined;
4530
+ annotation?: Record<string, unknown> | undefined;
4531
+ originalActionId?: string | undefined;
4532
+ keepAssignment?: boolean | undefined;
4533
+ keepAssignmentIfAccepted?: boolean | undefined;
4534
+ keepAssignmentIfRejected?: boolean | undefined;
4535
+ waitFor?: boolean | undefined;
4536
+ createdAtLocation?: string | null | undefined;
4537
+ type?: "REVOKE_REGISTRATION" | undefined;
4538
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4539
+ eventId: string;
4540
+ transactionId: string;
4541
+ declaration?: Record<string, unknown> | undefined;
4542
+ annotation?: Record<string, unknown> | undefined;
4543
+ originalActionId?: string | undefined;
4544
+ keepAssignment?: boolean | undefined;
4545
+ keepAssignmentIfAccepted?: boolean | undefined;
4546
+ keepAssignmentIfRejected?: boolean | undefined;
4547
+ waitFor?: boolean | undefined;
4548
+ createdAtLocation?: string | null | undefined;
4549
+ type?: "REINSTATE_REGISTRATION" | undefined;
4218
4550
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4219
4551
  eventId: string;
4220
4552
  transactionId: string;
@@ -4514,6 +4846,30 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4514
4846
  waitFor?: boolean | undefined;
4515
4847
  createdAtLocation?: string | null | undefined;
4516
4848
  type?: "UNARCHIVE" | undefined;
4849
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4850
+ eventId: string;
4851
+ transactionId: string;
4852
+ declaration?: Record<string, unknown> | undefined;
4853
+ annotation?: Record<string, unknown> | undefined;
4854
+ originalActionId?: string | undefined;
4855
+ keepAssignment?: boolean | undefined;
4856
+ keepAssignmentIfAccepted?: boolean | undefined;
4857
+ keepAssignmentIfRejected?: boolean | undefined;
4858
+ waitFor?: boolean | undefined;
4859
+ createdAtLocation?: string | null | undefined;
4860
+ type?: "REVOKE_REGISTRATION" | undefined;
4861
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4862
+ eventId: string;
4863
+ transactionId: string;
4864
+ declaration?: Record<string, unknown> | undefined;
4865
+ annotation?: Record<string, unknown> | undefined;
4866
+ originalActionId?: string | undefined;
4867
+ keepAssignment?: boolean | undefined;
4868
+ keepAssignmentIfAccepted?: boolean | undefined;
4869
+ keepAssignmentIfRejected?: boolean | undefined;
4870
+ waitFor?: boolean | undefined;
4871
+ createdAtLocation?: string | null | undefined;
4872
+ type?: "REINSTATE_REGISTRATION" | undefined;
4517
4873
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4518
4874
  eventId: string;
4519
4875
  transactionId: string;
@@ -4786,6 +5142,34 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4786
5142
  status: "Accepted" | "Rejected" | "Requested";
4787
5143
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4788
5144
  type: "UNARCHIVE";
5145
+ } | {
5146
+ id: string & import("zod").$brand<"UUID">;
5147
+ transactionId: string;
5148
+ createdByUserType: "system" | "user";
5149
+ createdAt: string;
5150
+ createdBy: string;
5151
+ createdByRole?: string | undefined;
5152
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5153
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
5154
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
5155
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
5156
+ status: "Accepted" | "Rejected" | "Requested";
5157
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5158
+ type: "REVOKE_REGISTRATION";
5159
+ } | {
5160
+ id: string & import("zod").$brand<"UUID">;
5161
+ transactionId: string;
5162
+ createdByUserType: "system" | "user";
5163
+ createdAt: string;
5164
+ createdBy: string;
5165
+ createdByRole?: string | undefined;
5166
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5167
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
5168
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
5169
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
5170
+ status: "Accepted" | "Rejected" | "Requested";
5171
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5172
+ type: "REINSTATE_REGISTRATION";
4789
5173
  } | {
4790
5174
  id: string & import("zod").$brand<"UUID">;
4791
5175
  transactionId: string;
@@ -4981,7 +5365,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4981
5365
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4982
5366
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
4983
5367
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4984
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
5368
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE";
4985
5369
  status: "Rejected";
4986
5370
  })[];
4987
5371
  trackingId: string;
@@ -5145,6 +5529,34 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5145
5529
  status: "Accepted" | "Rejected" | "Requested";
5146
5530
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5147
5531
  type: "UNARCHIVE";
5532
+ } | {
5533
+ id: string & import("zod").$brand<"UUID">;
5534
+ transactionId: string;
5535
+ createdByUserType: "system" | "user";
5536
+ createdAt: string;
5537
+ createdBy: string;
5538
+ createdByRole?: string | undefined;
5539
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5540
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
5541
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
5542
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
5543
+ status: "Accepted" | "Rejected" | "Requested";
5544
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5545
+ type: "REVOKE_REGISTRATION";
5546
+ } | {
5547
+ id: string & import("zod").$brand<"UUID">;
5548
+ transactionId: string;
5549
+ createdByUserType: "system" | "user";
5550
+ createdAt: string;
5551
+ createdBy: string;
5552
+ createdByRole?: string | undefined;
5553
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5554
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
5555
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
5556
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
5557
+ status: "Accepted" | "Rejected" | "Requested";
5558
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5559
+ type: "REINSTATE_REGISTRATION";
5148
5560
  } | {
5149
5561
  id: string & import("zod").$brand<"UUID">;
5150
5562
  transactionId: string;
@@ -5340,7 +5752,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5340
5752
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5341
5753
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
5342
5754
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5343
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
5755
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE";
5344
5756
  status: "Rejected";
5345
5757
  })[];
5346
5758
  } & import("zod").$brand<"EventDocumentOnlyLastAction">;
@@ -5480,6 +5892,34 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5480
5892
  status: "Accepted" | "Rejected" | "Requested";
5481
5893
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5482
5894
  type: "UNARCHIVE";
5895
+ } | {
5896
+ id: string & import("zod").$brand<"UUID">;
5897
+ transactionId: string;
5898
+ createdByUserType: "system" | "user";
5899
+ createdAt: string;
5900
+ createdBy: string;
5901
+ createdByRole?: string | undefined;
5902
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5903
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
5904
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
5905
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
5906
+ status: "Accepted" | "Rejected" | "Requested";
5907
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5908
+ type: "REVOKE_REGISTRATION";
5909
+ } | {
5910
+ id: string & import("zod").$brand<"UUID">;
5911
+ transactionId: string;
5912
+ createdByUserType: "system" | "user";
5913
+ createdAt: string;
5914
+ createdBy: string;
5915
+ createdByRole?: string | undefined;
5916
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5917
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
5918
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
5919
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
5920
+ status: "Accepted" | "Rejected" | "Requested";
5921
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5922
+ type: "REINSTATE_REGISTRATION";
5483
5923
  } | {
5484
5924
  id: string & import("zod").$brand<"UUID">;
5485
5925
  transactionId: string;
@@ -5665,46 +6105,702 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5665
6105
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5666
6106
  type: "CUSTOM";
5667
6107
  customActionType: string;
5668
- } | {
5669
- id: string & import("zod").$brand<"UUID">;
6108
+ } | {
6109
+ id: string & import("zod").$brand<"UUID">;
6110
+ transactionId: string;
6111
+ createdByUserType: "system" | "user";
6112
+ createdAt: string;
6113
+ createdBy: string;
6114
+ createdByRole?: string | undefined;
6115
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6116
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
6117
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6118
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE";
6119
+ status: "Rejected";
6120
+ })[];
6121
+ } & import("zod").$brand<"EventDocumentOnlyLastAction">;
6122
+ meta: import("trpc-to-openapi").OpenApiMeta;
6123
+ }>;
6124
+ }>>;
6125
+ correction: import("@trpc/server").TRPCBuiltRouter<{
6126
+ ctx: Partial<{
6127
+ token: `Bearer ${string}`;
6128
+ user: {
6129
+ id: string & import("zod").$brand<"UUID">;
6130
+ role: string;
6131
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6132
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
6133
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6134
+ type: "user";
6135
+ } | {
6136
+ id: string & import("zod").$brand<"UUID">;
6137
+ type: "system";
6138
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6139
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6140
+ signature?: undefined;
6141
+ };
6142
+ }>;
6143
+ meta: import("trpc-to-openapi").OpenApiMeta;
6144
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
6145
+ transformer: true;
6146
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
6147
+ request: import("@trpc/server").TRPCBuiltRouter<{
6148
+ ctx: Partial<{
6149
+ token: `Bearer ${string}`;
6150
+ user: {
6151
+ id: string & import("zod").$brand<"UUID">;
6152
+ role: string;
6153
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6154
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
6155
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6156
+ type: "user";
6157
+ } | {
6158
+ id: string & import("zod").$brand<"UUID">;
6159
+ type: "system";
6160
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6161
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6162
+ signature?: undefined;
6163
+ };
6164
+ }>;
6165
+ meta: import("trpc-to-openapi").OpenApiMeta;
6166
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
6167
+ transformer: true;
6168
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
6169
+ request: import("@trpc/server").TRPCMutationProcedure<{
6170
+ input: import("../commons").ActionInput;
6171
+ output: import("../commons").EventDocument;
6172
+ meta: import("trpc-to-openapi").OpenApiMeta;
6173
+ }>;
6174
+ accept: import("@trpc/server").TRPCMutationProcedure<{
6175
+ input: (Omit<{
6176
+ eventId: string;
6177
+ transactionId: string;
6178
+ declaration?: Record<string, unknown> | undefined;
6179
+ annotation?: Record<string, unknown> | undefined;
6180
+ originalActionId?: string | undefined;
6181
+ keepAssignment?: boolean | undefined;
6182
+ keepAssignmentIfAccepted?: boolean | undefined;
6183
+ keepAssignmentIfRejected?: boolean | undefined;
6184
+ waitFor?: boolean | undefined;
6185
+ type?: "CREATE" | undefined;
6186
+ createdAtLocation?: string | null | undefined;
6187
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6188
+ eventId: string;
6189
+ transactionId: string;
6190
+ declaration?: Record<string, unknown> | undefined;
6191
+ annotation?: Record<string, unknown> | undefined;
6192
+ originalActionId?: string | undefined;
6193
+ keepAssignment?: boolean | undefined;
6194
+ keepAssignmentIfAccepted?: boolean | undefined;
6195
+ keepAssignmentIfRejected?: boolean | undefined;
6196
+ waitFor?: boolean | undefined;
6197
+ createdAtLocation?: string | null | undefined;
6198
+ type?: "REGISTER" | undefined;
6199
+ registrationNumber?: string | undefined;
6200
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6201
+ eventId: string;
6202
+ transactionId: string;
6203
+ declaration?: Record<string, unknown> | undefined;
6204
+ annotation?: Record<string, unknown> | undefined;
6205
+ originalActionId?: string | undefined;
6206
+ keepAssignment?: boolean | undefined;
6207
+ keepAssignmentIfAccepted?: boolean | undefined;
6208
+ keepAssignmentIfRejected?: boolean | undefined;
6209
+ waitFor?: boolean | undefined;
6210
+ type?: "NOTIFY" | undefined;
6211
+ createdAtLocation?: string | null | undefined;
6212
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6213
+ eventId: string;
6214
+ transactionId: string;
6215
+ declaration?: Record<string, unknown> | undefined;
6216
+ annotation?: Record<string, unknown> | undefined;
6217
+ originalActionId?: string | undefined;
6218
+ keepAssignment?: boolean | undefined;
6219
+ keepAssignmentIfAccepted?: boolean | undefined;
6220
+ keepAssignmentIfRejected?: boolean | undefined;
6221
+ waitFor?: boolean | undefined;
6222
+ createdAtLocation?: string | null | undefined;
6223
+ type?: "DECLARE" | undefined;
6224
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6225
+ eventId: string;
6226
+ transactionId: string;
6227
+ declaration?: Record<string, unknown> | undefined;
6228
+ annotation?: Record<string, unknown> | undefined;
6229
+ originalActionId?: string | undefined;
6230
+ keepAssignment?: boolean | undefined;
6231
+ keepAssignmentIfAccepted?: boolean | undefined;
6232
+ keepAssignmentIfRejected?: boolean | undefined;
6233
+ waitFor?: boolean | undefined;
6234
+ createdAtLocation?: string | null | undefined;
6235
+ type?: "REJECT" | undefined;
6236
+ content: {
6237
+ reason: string;
6238
+ };
6239
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6240
+ eventId: string;
6241
+ transactionId: string;
6242
+ declaration?: Record<string, unknown> | undefined;
6243
+ annotation?: Record<string, unknown> | undefined;
6244
+ originalActionId?: string | undefined;
6245
+ keepAssignment?: boolean | undefined;
6246
+ keepAssignmentIfAccepted?: boolean | undefined;
6247
+ keepAssignmentIfRejected?: boolean | undefined;
6248
+ waitFor?: boolean | undefined;
6249
+ createdAtLocation?: string | null | undefined;
6250
+ type?: "DUPLICATE_DETECTED" | undefined;
6251
+ content: {
6252
+ duplicates: {
6253
+ id: string;
6254
+ trackingId: string;
6255
+ }[];
6256
+ };
6257
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6258
+ eventId: string;
6259
+ transactionId: string;
6260
+ declaration?: Record<string, unknown> | undefined;
6261
+ annotation?: Record<string, unknown> | undefined;
6262
+ originalActionId?: string | undefined;
6263
+ keepAssignment?: boolean | undefined;
6264
+ keepAssignmentIfAccepted?: boolean | undefined;
6265
+ keepAssignmentIfRejected?: boolean | undefined;
6266
+ waitFor?: boolean | undefined;
6267
+ createdAtLocation?: string | null | undefined;
6268
+ type?: "MARK_AS_DUPLICATE" | undefined;
6269
+ content?: {
6270
+ duplicateOf: string;
6271
+ } | undefined;
6272
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6273
+ eventId: string;
6274
+ transactionId: string;
6275
+ declaration?: Record<string, unknown> | undefined;
6276
+ annotation?: Record<string, unknown> | undefined;
6277
+ originalActionId?: string | undefined;
6278
+ keepAssignment?: boolean | undefined;
6279
+ keepAssignmentIfAccepted?: boolean | undefined;
6280
+ keepAssignmentIfRejected?: boolean | undefined;
6281
+ waitFor?: boolean | undefined;
6282
+ createdAtLocation?: string | null | undefined;
6283
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
6284
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6285
+ eventId: string;
6286
+ transactionId: string;
6287
+ declaration?: Record<string, unknown> | undefined;
6288
+ annotation?: Record<string, unknown> | undefined;
6289
+ originalActionId?: string | undefined;
6290
+ keepAssignment?: boolean | undefined;
6291
+ keepAssignmentIfAccepted?: boolean | undefined;
6292
+ keepAssignmentIfRejected?: boolean | undefined;
6293
+ waitFor?: boolean | undefined;
6294
+ createdAtLocation?: string | null | undefined;
6295
+ type?: "ARCHIVE" | undefined;
6296
+ content?: {
6297
+ reason: string;
6298
+ } | undefined;
6299
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6300
+ eventId: string;
6301
+ transactionId: string;
6302
+ declaration?: Record<string, unknown> | undefined;
6303
+ annotation?: Record<string, unknown> | undefined;
6304
+ originalActionId?: string | undefined;
6305
+ keepAssignment?: boolean | undefined;
6306
+ keepAssignmentIfAccepted?: boolean | undefined;
6307
+ keepAssignmentIfRejected?: boolean | undefined;
6308
+ waitFor?: boolean | undefined;
6309
+ createdAtLocation?: string | null | undefined;
6310
+ type?: "UNARCHIVE" | undefined;
6311
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6312
+ eventId: string;
6313
+ transactionId: string;
6314
+ declaration?: Record<string, unknown> | undefined;
6315
+ annotation?: Record<string, unknown> | undefined;
6316
+ originalActionId?: string | undefined;
6317
+ keepAssignment?: boolean | undefined;
6318
+ keepAssignmentIfAccepted?: boolean | undefined;
6319
+ keepAssignmentIfRejected?: boolean | undefined;
6320
+ waitFor?: boolean | undefined;
6321
+ createdAtLocation?: string | null | undefined;
6322
+ type?: "REVOKE_REGISTRATION" | undefined;
6323
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6324
+ eventId: string;
6325
+ transactionId: string;
6326
+ declaration?: Record<string, unknown> | undefined;
6327
+ annotation?: Record<string, unknown> | undefined;
6328
+ originalActionId?: string | undefined;
6329
+ keepAssignment?: boolean | undefined;
6330
+ keepAssignmentIfAccepted?: boolean | undefined;
6331
+ keepAssignmentIfRejected?: boolean | undefined;
6332
+ waitFor?: boolean | undefined;
6333
+ createdAtLocation?: string | null | undefined;
6334
+ type?: "REINSTATE_REGISTRATION" | undefined;
6335
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6336
+ eventId: string;
6337
+ transactionId: string;
6338
+ declaration?: Record<string, unknown> | undefined;
6339
+ annotation?: Record<string, unknown> | undefined;
6340
+ originalActionId?: string | undefined;
6341
+ keepAssignment?: boolean | undefined;
6342
+ keepAssignmentIfAccepted?: boolean | undefined;
6343
+ keepAssignmentIfRejected?: boolean | undefined;
6344
+ waitFor?: boolean | undefined;
6345
+ createdAtLocation?: string | null | undefined;
6346
+ type: "ASSIGN";
6347
+ assignedTo: string;
6348
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6349
+ eventId: string;
6350
+ transactionId: string;
6351
+ declaration?: Record<string, unknown> | undefined;
6352
+ annotation?: Record<string, unknown> | undefined;
6353
+ originalActionId?: string | undefined;
6354
+ keepAssignment?: boolean | undefined;
6355
+ keepAssignmentIfAccepted?: boolean | undefined;
6356
+ keepAssignmentIfRejected?: boolean | undefined;
6357
+ waitFor?: boolean | undefined;
6358
+ createdAtLocation?: string | null | undefined;
6359
+ type?: "UNASSIGN" | undefined;
6360
+ assignedTo?: null | undefined;
6361
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6362
+ eventId: string;
6363
+ transactionId: string;
6364
+ declaration?: Record<string, unknown> | undefined;
6365
+ annotation?: Record<string, unknown> | undefined;
6366
+ originalActionId?: string | undefined;
6367
+ keepAssignment?: boolean | undefined;
6368
+ keepAssignmentIfAccepted?: boolean | undefined;
6369
+ keepAssignmentIfRejected?: boolean | undefined;
6370
+ waitFor?: boolean | undefined;
6371
+ createdAtLocation?: string | null | undefined;
6372
+ type?: "PRINT_CERTIFICATE" | undefined;
6373
+ content?: {
6374
+ templateId?: string | undefined;
6375
+ } | undefined;
6376
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6377
+ eventId: string;
6378
+ transactionId: string;
6379
+ declaration?: Record<string, unknown> | undefined;
6380
+ annotation?: Record<string, unknown> | undefined;
6381
+ originalActionId?: string | undefined;
6382
+ keepAssignment?: boolean | undefined;
6383
+ keepAssignmentIfAccepted?: boolean | undefined;
6384
+ keepAssignmentIfRejected?: boolean | undefined;
6385
+ waitFor?: boolean | undefined;
6386
+ createdAtLocation?: string | null | undefined;
6387
+ type?: "REQUEST_CORRECTION" | undefined;
6388
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6389
+ eventId: string;
6390
+ transactionId: string;
6391
+ declaration?: Record<string, unknown> | undefined;
6392
+ annotation?: Record<string, unknown> | undefined;
6393
+ originalActionId?: string | undefined;
6394
+ keepAssignment?: boolean | undefined;
6395
+ keepAssignmentIfAccepted?: boolean | undefined;
6396
+ keepAssignmentIfRejected?: boolean | undefined;
6397
+ waitFor?: boolean | undefined;
6398
+ createdAtLocation?: string | null | undefined;
6399
+ requestId: string;
6400
+ type?: "REJECT_CORRECTION" | undefined;
6401
+ content: {
6402
+ reason: string;
6403
+ };
6404
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6405
+ eventId: string;
6406
+ transactionId: string;
6407
+ declaration?: Record<string, unknown> | undefined;
6408
+ annotation?: Record<string, unknown> | undefined;
6409
+ originalActionId?: string | undefined;
6410
+ keepAssignment?: boolean | undefined;
6411
+ keepAssignmentIfAccepted?: boolean | undefined;
6412
+ keepAssignmentIfRejected?: boolean | undefined;
6413
+ waitFor?: boolean | undefined;
6414
+ createdAtLocation?: string | null | undefined;
6415
+ requestId: string;
6416
+ type?: "APPROVE_CORRECTION" | undefined;
6417
+ content?: {
6418
+ immediateCorrection?: boolean | undefined;
6419
+ } | undefined;
6420
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6421
+ eventId: string;
6422
+ transactionId: string;
6423
+ declaration?: Record<string, unknown> | undefined;
6424
+ annotation?: Record<string, unknown> | undefined;
6425
+ originalActionId?: string | undefined;
6426
+ keepAssignment?: boolean | undefined;
6427
+ keepAssignmentIfAccepted?: boolean | undefined;
6428
+ keepAssignmentIfRejected?: boolean | undefined;
6429
+ waitFor?: boolean | undefined;
6430
+ createdAtLocation?: string | null | undefined;
6431
+ type?: "READ" | undefined;
6432
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6433
+ eventId: string;
6434
+ transactionId: string;
6435
+ declaration?: Record<string, unknown> | undefined;
6436
+ annotation?: Record<string, unknown> | undefined;
6437
+ originalActionId?: string | undefined;
6438
+ keepAssignment?: boolean | undefined;
6439
+ keepAssignmentIfAccepted?: boolean | undefined;
6440
+ keepAssignmentIfRejected?: boolean | undefined;
6441
+ waitFor?: boolean | undefined;
6442
+ createdAtLocation?: string | null | undefined;
6443
+ type?: "CUSTOM" | undefined;
6444
+ customActionType: string;
6445
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6446
+ eventId: string;
6447
+ transactionId: string;
6448
+ declaration?: Record<string, unknown> | undefined;
6449
+ annotation?: Record<string, unknown> | undefined;
6450
+ originalActionId?: string | undefined;
6451
+ keepAssignment?: boolean | undefined;
6452
+ keepAssignmentIfAccepted?: boolean | undefined;
6453
+ keepAssignmentIfRejected?: boolean | undefined;
6454
+ waitFor?: boolean | undefined;
6455
+ createdAtLocation?: string | null | undefined;
6456
+ type?: "EDIT" | undefined;
6457
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
6458
+ actionId: string;
6459
+ };
6460
+ output: import("../commons").EventDocument;
6461
+ meta: import("trpc-to-openapi").OpenApiMeta;
6462
+ }>;
6463
+ reject: import("@trpc/server").TRPCMutationProcedure<{
6464
+ input: import("zod").input<import("zod").ZodObject<{
6465
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
6466
+ transactionId: import("zod").ZodString;
6467
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
6468
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
6469
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
6470
+ }, import("zod/v4/core").$strip>>;
6471
+ output: import("../commons").EventDocument;
6472
+ meta: import("trpc-to-openapi").OpenApiMeta;
6473
+ }>;
6474
+ }>>;
6475
+ approve: import("@trpc/server").TRPCBuiltRouter<{
6476
+ ctx: Partial<{
6477
+ token: `Bearer ${string}`;
6478
+ user: {
6479
+ id: string & import("zod").$brand<"UUID">;
6480
+ role: string;
6481
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6482
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
6483
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6484
+ type: "user";
6485
+ } | {
6486
+ id: string & import("zod").$brand<"UUID">;
6487
+ type: "system";
6488
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6489
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6490
+ signature?: undefined;
6491
+ };
6492
+ }>;
6493
+ meta: import("trpc-to-openapi").OpenApiMeta;
6494
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
6495
+ transformer: true;
6496
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
6497
+ request: import("@trpc/server").TRPCMutationProcedure<{
6498
+ input: import("../commons").ActionInput;
6499
+ output: import("../commons").EventDocument;
6500
+ meta: import("trpc-to-openapi").OpenApiMeta;
6501
+ }>;
6502
+ accept: import("@trpc/server").TRPCMutationProcedure<{
6503
+ input: (Omit<{
6504
+ eventId: string;
6505
+ transactionId: string;
6506
+ declaration?: Record<string, unknown> | undefined;
6507
+ annotation?: Record<string, unknown> | undefined;
6508
+ originalActionId?: string | undefined;
6509
+ keepAssignment?: boolean | undefined;
6510
+ keepAssignmentIfAccepted?: boolean | undefined;
6511
+ keepAssignmentIfRejected?: boolean | undefined;
6512
+ waitFor?: boolean | undefined;
6513
+ type?: "CREATE" | undefined;
6514
+ createdAtLocation?: string | null | undefined;
6515
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6516
+ eventId: string;
6517
+ transactionId: string;
6518
+ declaration?: Record<string, unknown> | undefined;
6519
+ annotation?: Record<string, unknown> | undefined;
6520
+ originalActionId?: string | undefined;
6521
+ keepAssignment?: boolean | undefined;
6522
+ keepAssignmentIfAccepted?: boolean | undefined;
6523
+ keepAssignmentIfRejected?: boolean | undefined;
6524
+ waitFor?: boolean | undefined;
6525
+ createdAtLocation?: string | null | undefined;
6526
+ type?: "REGISTER" | undefined;
6527
+ registrationNumber?: string | undefined;
6528
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6529
+ eventId: string;
6530
+ transactionId: string;
6531
+ declaration?: Record<string, unknown> | undefined;
6532
+ annotation?: Record<string, unknown> | undefined;
6533
+ originalActionId?: string | undefined;
6534
+ keepAssignment?: boolean | undefined;
6535
+ keepAssignmentIfAccepted?: boolean | undefined;
6536
+ keepAssignmentIfRejected?: boolean | undefined;
6537
+ waitFor?: boolean | undefined;
6538
+ type?: "NOTIFY" | undefined;
6539
+ createdAtLocation?: string | null | undefined;
6540
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6541
+ eventId: string;
6542
+ transactionId: string;
6543
+ declaration?: Record<string, unknown> | undefined;
6544
+ annotation?: Record<string, unknown> | undefined;
6545
+ originalActionId?: string | undefined;
6546
+ keepAssignment?: boolean | undefined;
6547
+ keepAssignmentIfAccepted?: boolean | undefined;
6548
+ keepAssignmentIfRejected?: boolean | undefined;
6549
+ waitFor?: boolean | undefined;
6550
+ createdAtLocation?: string | null | undefined;
6551
+ type?: "DECLARE" | undefined;
6552
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6553
+ eventId: string;
6554
+ transactionId: string;
6555
+ declaration?: Record<string, unknown> | undefined;
6556
+ annotation?: Record<string, unknown> | undefined;
6557
+ originalActionId?: string | undefined;
6558
+ keepAssignment?: boolean | undefined;
6559
+ keepAssignmentIfAccepted?: boolean | undefined;
6560
+ keepAssignmentIfRejected?: boolean | undefined;
6561
+ waitFor?: boolean | undefined;
6562
+ createdAtLocation?: string | null | undefined;
6563
+ type?: "REJECT" | undefined;
6564
+ content: {
6565
+ reason: string;
6566
+ };
6567
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6568
+ eventId: string;
6569
+ transactionId: string;
6570
+ declaration?: Record<string, unknown> | undefined;
6571
+ annotation?: Record<string, unknown> | undefined;
6572
+ originalActionId?: string | undefined;
6573
+ keepAssignment?: boolean | undefined;
6574
+ keepAssignmentIfAccepted?: boolean | undefined;
6575
+ keepAssignmentIfRejected?: boolean | undefined;
6576
+ waitFor?: boolean | undefined;
6577
+ createdAtLocation?: string | null | undefined;
6578
+ type?: "DUPLICATE_DETECTED" | undefined;
6579
+ content: {
6580
+ duplicates: {
6581
+ id: string;
6582
+ trackingId: string;
6583
+ }[];
6584
+ };
6585
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6586
+ eventId: string;
6587
+ transactionId: string;
6588
+ declaration?: Record<string, unknown> | undefined;
6589
+ annotation?: Record<string, unknown> | undefined;
6590
+ originalActionId?: string | undefined;
6591
+ keepAssignment?: boolean | undefined;
6592
+ keepAssignmentIfAccepted?: boolean | undefined;
6593
+ keepAssignmentIfRejected?: boolean | undefined;
6594
+ waitFor?: boolean | undefined;
6595
+ createdAtLocation?: string | null | undefined;
6596
+ type?: "MARK_AS_DUPLICATE" | undefined;
6597
+ content?: {
6598
+ duplicateOf: string;
6599
+ } | undefined;
6600
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6601
+ eventId: string;
6602
+ transactionId: string;
6603
+ declaration?: Record<string, unknown> | undefined;
6604
+ annotation?: Record<string, unknown> | undefined;
6605
+ originalActionId?: string | undefined;
6606
+ keepAssignment?: boolean | undefined;
6607
+ keepAssignmentIfAccepted?: boolean | undefined;
6608
+ keepAssignmentIfRejected?: boolean | undefined;
6609
+ waitFor?: boolean | undefined;
6610
+ createdAtLocation?: string | null | undefined;
6611
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
6612
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6613
+ eventId: string;
6614
+ transactionId: string;
6615
+ declaration?: Record<string, unknown> | undefined;
6616
+ annotation?: Record<string, unknown> | undefined;
6617
+ originalActionId?: string | undefined;
6618
+ keepAssignment?: boolean | undefined;
6619
+ keepAssignmentIfAccepted?: boolean | undefined;
6620
+ keepAssignmentIfRejected?: boolean | undefined;
6621
+ waitFor?: boolean | undefined;
6622
+ createdAtLocation?: string | null | undefined;
6623
+ type?: "ARCHIVE" | undefined;
6624
+ content?: {
6625
+ reason: string;
6626
+ } | undefined;
6627
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6628
+ eventId: string;
6629
+ transactionId: string;
6630
+ declaration?: Record<string, unknown> | undefined;
6631
+ annotation?: Record<string, unknown> | undefined;
6632
+ originalActionId?: string | undefined;
6633
+ keepAssignment?: boolean | undefined;
6634
+ keepAssignmentIfAccepted?: boolean | undefined;
6635
+ keepAssignmentIfRejected?: boolean | undefined;
6636
+ waitFor?: boolean | undefined;
6637
+ createdAtLocation?: string | null | undefined;
6638
+ type?: "UNARCHIVE" | undefined;
6639
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6640
+ eventId: string;
6641
+ transactionId: string;
6642
+ declaration?: Record<string, unknown> | undefined;
6643
+ annotation?: Record<string, unknown> | undefined;
6644
+ originalActionId?: string | undefined;
6645
+ keepAssignment?: boolean | undefined;
6646
+ keepAssignmentIfAccepted?: boolean | undefined;
6647
+ keepAssignmentIfRejected?: boolean | undefined;
6648
+ waitFor?: boolean | undefined;
6649
+ createdAtLocation?: string | null | undefined;
6650
+ type?: "REVOKE_REGISTRATION" | undefined;
6651
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6652
+ eventId: string;
6653
+ transactionId: string;
6654
+ declaration?: Record<string, unknown> | undefined;
6655
+ annotation?: Record<string, unknown> | undefined;
6656
+ originalActionId?: string | undefined;
6657
+ keepAssignment?: boolean | undefined;
6658
+ keepAssignmentIfAccepted?: boolean | undefined;
6659
+ keepAssignmentIfRejected?: boolean | undefined;
6660
+ waitFor?: boolean | undefined;
6661
+ createdAtLocation?: string | null | undefined;
6662
+ type?: "REINSTATE_REGISTRATION" | undefined;
6663
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6664
+ eventId: string;
6665
+ transactionId: string;
6666
+ declaration?: Record<string, unknown> | undefined;
6667
+ annotation?: Record<string, unknown> | undefined;
6668
+ originalActionId?: string | undefined;
6669
+ keepAssignment?: boolean | undefined;
6670
+ keepAssignmentIfAccepted?: boolean | undefined;
6671
+ keepAssignmentIfRejected?: boolean | undefined;
6672
+ waitFor?: boolean | undefined;
6673
+ createdAtLocation?: string | null | undefined;
6674
+ type: "ASSIGN";
6675
+ assignedTo: string;
6676
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6677
+ eventId: string;
6678
+ transactionId: string;
6679
+ declaration?: Record<string, unknown> | undefined;
6680
+ annotation?: Record<string, unknown> | undefined;
6681
+ originalActionId?: string | undefined;
6682
+ keepAssignment?: boolean | undefined;
6683
+ keepAssignmentIfAccepted?: boolean | undefined;
6684
+ keepAssignmentIfRejected?: boolean | undefined;
6685
+ waitFor?: boolean | undefined;
6686
+ createdAtLocation?: string | null | undefined;
6687
+ type?: "UNASSIGN" | undefined;
6688
+ assignedTo?: null | undefined;
6689
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6690
+ eventId: string;
6691
+ transactionId: string;
6692
+ declaration?: Record<string, unknown> | undefined;
6693
+ annotation?: Record<string, unknown> | undefined;
6694
+ originalActionId?: string | undefined;
6695
+ keepAssignment?: boolean | undefined;
6696
+ keepAssignmentIfAccepted?: boolean | undefined;
6697
+ keepAssignmentIfRejected?: boolean | undefined;
6698
+ waitFor?: boolean | undefined;
6699
+ createdAtLocation?: string | null | undefined;
6700
+ type?: "PRINT_CERTIFICATE" | undefined;
6701
+ content?: {
6702
+ templateId?: string | undefined;
6703
+ } | undefined;
6704
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6705
+ eventId: string;
6706
+ transactionId: string;
6707
+ declaration?: Record<string, unknown> | undefined;
6708
+ annotation?: Record<string, unknown> | undefined;
6709
+ originalActionId?: string | undefined;
6710
+ keepAssignment?: boolean | undefined;
6711
+ keepAssignmentIfAccepted?: boolean | undefined;
6712
+ keepAssignmentIfRejected?: boolean | undefined;
6713
+ waitFor?: boolean | undefined;
6714
+ createdAtLocation?: string | null | undefined;
6715
+ type?: "REQUEST_CORRECTION" | undefined;
6716
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6717
+ eventId: string;
6718
+ transactionId: string;
6719
+ declaration?: Record<string, unknown> | undefined;
6720
+ annotation?: Record<string, unknown> | undefined;
6721
+ originalActionId?: string | undefined;
6722
+ keepAssignment?: boolean | undefined;
6723
+ keepAssignmentIfAccepted?: boolean | undefined;
6724
+ keepAssignmentIfRejected?: boolean | undefined;
6725
+ waitFor?: boolean | undefined;
6726
+ createdAtLocation?: string | null | undefined;
6727
+ requestId: string;
6728
+ type?: "REJECT_CORRECTION" | undefined;
6729
+ content: {
6730
+ reason: string;
6731
+ };
6732
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6733
+ eventId: string;
6734
+ transactionId: string;
6735
+ declaration?: Record<string, unknown> | undefined;
6736
+ annotation?: Record<string, unknown> | undefined;
6737
+ originalActionId?: string | undefined;
6738
+ keepAssignment?: boolean | undefined;
6739
+ keepAssignmentIfAccepted?: boolean | undefined;
6740
+ keepAssignmentIfRejected?: boolean | undefined;
6741
+ waitFor?: boolean | undefined;
6742
+ createdAtLocation?: string | null | undefined;
6743
+ requestId: string;
6744
+ type?: "APPROVE_CORRECTION" | undefined;
6745
+ content?: {
6746
+ immediateCorrection?: boolean | undefined;
6747
+ } | undefined;
6748
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6749
+ eventId: string;
6750
+ transactionId: string;
6751
+ declaration?: Record<string, unknown> | undefined;
6752
+ annotation?: Record<string, unknown> | undefined;
6753
+ originalActionId?: string | undefined;
6754
+ keepAssignment?: boolean | undefined;
6755
+ keepAssignmentIfAccepted?: boolean | undefined;
6756
+ keepAssignmentIfRejected?: boolean | undefined;
6757
+ waitFor?: boolean | undefined;
6758
+ createdAtLocation?: string | null | undefined;
6759
+ type?: "READ" | undefined;
6760
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6761
+ eventId: string;
6762
+ transactionId: string;
6763
+ declaration?: Record<string, unknown> | undefined;
6764
+ annotation?: Record<string, unknown> | undefined;
6765
+ originalActionId?: string | undefined;
6766
+ keepAssignment?: boolean | undefined;
6767
+ keepAssignmentIfAccepted?: boolean | undefined;
6768
+ keepAssignmentIfRejected?: boolean | undefined;
6769
+ waitFor?: boolean | undefined;
6770
+ createdAtLocation?: string | null | undefined;
6771
+ type?: "CUSTOM" | undefined;
6772
+ customActionType: string;
6773
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6774
+ eventId: string;
5670
6775
  transactionId: string;
5671
- createdByUserType: "system" | "user";
5672
- createdAt: string;
5673
- createdBy: string;
5674
- createdByRole?: string | undefined;
5675
- createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5676
- createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
5677
- originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5678
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
5679
- status: "Rejected";
5680
- })[];
5681
- } & import("zod").$brand<"EventDocumentOnlyLastAction">;
5682
- meta: import("trpc-to-openapi").OpenApiMeta;
5683
- }>;
5684
- }>>;
5685
- correction: import("@trpc/server").TRPCBuiltRouter<{
5686
- ctx: Partial<{
5687
- token: `Bearer ${string}`;
5688
- user: {
5689
- id: string & import("zod").$brand<"UUID">;
5690
- role: string;
5691
- signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5692
- primaryOfficeId: string & import("zod").$brand<"UUID">;
5693
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5694
- type: "user";
5695
- } | {
5696
- id: string & import("zod").$brand<"UUID">;
5697
- type: "system";
5698
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5699
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5700
- signature?: undefined;
5701
- };
5702
- }>;
5703
- meta: import("trpc-to-openapi").OpenApiMeta;
5704
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
5705
- transformer: true;
5706
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
5707
- request: import("@trpc/server").TRPCBuiltRouter<{
6776
+ declaration?: Record<string, unknown> | undefined;
6777
+ annotation?: Record<string, unknown> | undefined;
6778
+ originalActionId?: string | undefined;
6779
+ keepAssignment?: boolean | undefined;
6780
+ keepAssignmentIfAccepted?: boolean | undefined;
6781
+ keepAssignmentIfRejected?: boolean | undefined;
6782
+ waitFor?: boolean | undefined;
6783
+ createdAtLocation?: string | null | undefined;
6784
+ type?: "EDIT" | undefined;
6785
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
6786
+ actionId: string;
6787
+ };
6788
+ output: import("../commons").EventDocument;
6789
+ meta: import("trpc-to-openapi").OpenApiMeta;
6790
+ }>;
6791
+ reject: import("@trpc/server").TRPCMutationProcedure<{
6792
+ input: import("zod").input<import("zod").ZodObject<{
6793
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
6794
+ transactionId: import("zod").ZodString;
6795
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
6796
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
6797
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
6798
+ }, import("zod/v4/core").$strip>>;
6799
+ output: import("../commons").EventDocument;
6800
+ meta: import("trpc-to-openapi").OpenApiMeta;
6801
+ }>;
6802
+ }>>;
6803
+ reject: import("@trpc/server").TRPCBuiltRouter<{
5708
6804
  ctx: Partial<{
5709
6805
  token: `Bearer ${string}`;
5710
6806
  user: {
@@ -5868,6 +6964,30 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5868
6964
  waitFor?: boolean | undefined;
5869
6965
  createdAtLocation?: string | null | undefined;
5870
6966
  type?: "UNARCHIVE" | undefined;
6967
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6968
+ eventId: string;
6969
+ transactionId: string;
6970
+ declaration?: Record<string, unknown> | undefined;
6971
+ annotation?: Record<string, unknown> | undefined;
6972
+ originalActionId?: string | undefined;
6973
+ keepAssignment?: boolean | undefined;
6974
+ keepAssignmentIfAccepted?: boolean | undefined;
6975
+ keepAssignmentIfRejected?: boolean | undefined;
6976
+ waitFor?: boolean | undefined;
6977
+ createdAtLocation?: string | null | undefined;
6978
+ type?: "REVOKE_REGISTRATION" | undefined;
6979
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6980
+ eventId: string;
6981
+ transactionId: string;
6982
+ declaration?: Record<string, unknown> | undefined;
6983
+ annotation?: Record<string, unknown> | undefined;
6984
+ originalActionId?: string | undefined;
6985
+ keepAssignment?: boolean | undefined;
6986
+ keepAssignmentIfAccepted?: boolean | undefined;
6987
+ keepAssignmentIfRejected?: boolean | undefined;
6988
+ waitFor?: boolean | undefined;
6989
+ createdAtLocation?: string | null | undefined;
6990
+ type?: "REINSTATE_REGISTRATION" | undefined;
5871
6991
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5872
6992
  eventId: string;
5873
6993
  transactionId: string;
@@ -6008,7 +7128,30 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6008
7128
  meta: import("trpc-to-openapi").OpenApiMeta;
6009
7129
  }>;
6010
7130
  }>>;
6011
- approve: import("@trpc/server").TRPCBuiltRouter<{
7131
+ }>>;
7132
+ revocation: import("@trpc/server").TRPCBuiltRouter<{
7133
+ ctx: Partial<{
7134
+ token: `Bearer ${string}`;
7135
+ user: {
7136
+ id: string & import("zod").$brand<"UUID">;
7137
+ role: string;
7138
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7139
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
7140
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7141
+ type: "user";
7142
+ } | {
7143
+ id: string & import("zod").$brand<"UUID">;
7144
+ type: "system";
7145
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7146
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7147
+ signature?: undefined;
7148
+ };
7149
+ }>;
7150
+ meta: import("trpc-to-openapi").OpenApiMeta;
7151
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
7152
+ transformer: true;
7153
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
7154
+ revoke: import("@trpc/server").TRPCBuiltRouter<{
6012
7155
  ctx: Partial<{
6013
7156
  token: `Bearer ${string}`;
6014
7157
  user: {
@@ -6172,6 +7315,30 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6172
7315
  waitFor?: boolean | undefined;
6173
7316
  createdAtLocation?: string | null | undefined;
6174
7317
  type?: "UNARCHIVE" | undefined;
7318
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7319
+ eventId: string;
7320
+ transactionId: string;
7321
+ declaration?: Record<string, unknown> | undefined;
7322
+ annotation?: Record<string, unknown> | undefined;
7323
+ originalActionId?: string | undefined;
7324
+ keepAssignment?: boolean | undefined;
7325
+ keepAssignmentIfAccepted?: boolean | undefined;
7326
+ keepAssignmentIfRejected?: boolean | undefined;
7327
+ waitFor?: boolean | undefined;
7328
+ createdAtLocation?: string | null | undefined;
7329
+ type?: "REVOKE_REGISTRATION" | undefined;
7330
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7331
+ eventId: string;
7332
+ transactionId: string;
7333
+ declaration?: Record<string, unknown> | undefined;
7334
+ annotation?: Record<string, unknown> | undefined;
7335
+ originalActionId?: string | undefined;
7336
+ keepAssignment?: boolean | undefined;
7337
+ keepAssignmentIfAccepted?: boolean | undefined;
7338
+ keepAssignmentIfRejected?: boolean | undefined;
7339
+ waitFor?: boolean | undefined;
7340
+ createdAtLocation?: string | null | undefined;
7341
+ type?: "REINSTATE_REGISTRATION" | undefined;
6175
7342
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6176
7343
  eventId: string;
6177
7344
  transactionId: string;
@@ -6312,7 +7479,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6312
7479
  meta: import("trpc-to-openapi").OpenApiMeta;
6313
7480
  }>;
6314
7481
  }>>;
6315
- reject: import("@trpc/server").TRPCBuiltRouter<{
7482
+ reinstate: import("@trpc/server").TRPCBuiltRouter<{
6316
7483
  ctx: Partial<{
6317
7484
  token: `Bearer ${string}`;
6318
7485
  user: {
@@ -6476,6 +7643,30 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6476
7643
  waitFor?: boolean | undefined;
6477
7644
  createdAtLocation?: string | null | undefined;
6478
7645
  type?: "UNARCHIVE" | undefined;
7646
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7647
+ eventId: string;
7648
+ transactionId: string;
7649
+ declaration?: Record<string, unknown> | undefined;
7650
+ annotation?: Record<string, unknown> | undefined;
7651
+ originalActionId?: string | undefined;
7652
+ keepAssignment?: boolean | undefined;
7653
+ keepAssignmentIfAccepted?: boolean | undefined;
7654
+ keepAssignmentIfRejected?: boolean | undefined;
7655
+ waitFor?: boolean | undefined;
7656
+ createdAtLocation?: string | null | undefined;
7657
+ type?: "REVOKE_REGISTRATION" | undefined;
7658
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7659
+ eventId: string;
7660
+ transactionId: string;
7661
+ declaration?: Record<string, unknown> | undefined;
7662
+ annotation?: Record<string, unknown> | undefined;
7663
+ originalActionId?: string | undefined;
7664
+ keepAssignment?: boolean | undefined;
7665
+ keepAssignmentIfAccepted?: boolean | undefined;
7666
+ keepAssignmentIfRejected?: boolean | undefined;
7667
+ waitFor?: boolean | undefined;
7668
+ createdAtLocation?: string | null | undefined;
7669
+ type?: "REINSTATE_REGISTRATION" | undefined;
6479
7670
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6480
7671
  eventId: string;
6481
7672
  transactionId: string;
@@ -6774,6 +7965,34 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6774
7965
  status: "Accepted" | "Rejected" | "Requested";
6775
7966
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6776
7967
  type: "UNARCHIVE";
7968
+ } | {
7969
+ id: string & import("zod").$brand<"UUID">;
7970
+ transactionId: string;
7971
+ createdByUserType: "system" | "user";
7972
+ createdAt: string;
7973
+ createdBy: string;
7974
+ createdByRole?: string | undefined;
7975
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7976
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
7977
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
7978
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
7979
+ status: "Accepted" | "Rejected" | "Requested";
7980
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7981
+ type: "REVOKE_REGISTRATION";
7982
+ } | {
7983
+ id: string & import("zod").$brand<"UUID">;
7984
+ transactionId: string;
7985
+ createdByUserType: "system" | "user";
7986
+ createdAt: string;
7987
+ createdBy: string;
7988
+ createdByRole?: string | undefined;
7989
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7990
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
7991
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
7992
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
7993
+ status: "Accepted" | "Rejected" | "Requested";
7994
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7995
+ type: "REINSTATE_REGISTRATION";
6777
7996
  } | {
6778
7997
  id: string & import("zod").$brand<"UUID">;
6779
7998
  transactionId: string;
@@ -6969,7 +8188,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6969
8188
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6970
8189
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
6971
8190
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6972
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
8191
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE";
6973
8192
  status: "Rejected";
6974
8193
  })[];
6975
8194
  trackingId: string;
@@ -7108,6 +8327,34 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7108
8327
  status: "Accepted" | "Rejected" | "Requested";
7109
8328
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7110
8329
  type: "UNARCHIVE";
8330
+ } | {
8331
+ id: string & import("zod").$brand<"UUID">;
8332
+ transactionId: string;
8333
+ createdByUserType: "system" | "user";
8334
+ createdAt: string;
8335
+ createdBy: string;
8336
+ createdByRole?: string | undefined;
8337
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8338
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
8339
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
8340
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
8341
+ status: "Accepted" | "Rejected" | "Requested";
8342
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8343
+ type: "REVOKE_REGISTRATION";
8344
+ } | {
8345
+ id: string & import("zod").$brand<"UUID">;
8346
+ transactionId: string;
8347
+ createdByUserType: "system" | "user";
8348
+ createdAt: string;
8349
+ createdBy: string;
8350
+ createdByRole?: string | undefined;
8351
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8352
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
8353
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
8354
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
8355
+ status: "Accepted" | "Rejected" | "Requested";
8356
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8357
+ type: "REINSTATE_REGISTRATION";
7111
8358
  } | {
7112
8359
  id: string & import("zod").$brand<"UUID">;
7113
8360
  transactionId: string;
@@ -7303,7 +8550,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7303
8550
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7304
8551
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
7305
8552
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7306
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
8553
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE";
7307
8554
  status: "Rejected";
7308
8555
  })[];
7309
8556
  trackingId: string;
@@ -7323,7 +8570,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7323
8570
  results: {
7324
8571
  id: string & import("zod").$brand<"UUID">;
7325
8572
  type: string;
7326
- status: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
8573
+ status: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED";
7327
8574
  legalStatuses: {
7328
8575
  NOTIFIED?: {
7329
8576
  createdAt: string;
@@ -7350,6 +8597,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7350
8597
  createdByRole?: string | undefined;
7351
8598
  registrationNumber: string;
7352
8599
  } | null | undefined;
8600
+ REVOKED?: {
8601
+ createdAt: string;
8602
+ createdBy: string;
8603
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
8604
+ createdByUserType?: "system" | "user" | null | undefined;
8605
+ acceptedAt: string;
8606
+ createdByRole?: string | undefined;
8607
+ } | null | undefined;
7353
8608
  };
7354
8609
  createdAt: string;
7355
8610
  dateOfEvent?: string | null | undefined;
@@ -7493,6 +8748,34 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7493
8748
  status: "Accepted" | "Rejected" | "Requested";
7494
8749
  originalActionId?: string | null | undefined;
7495
8750
  type: "UNARCHIVE";
8751
+ } | {
8752
+ id: string;
8753
+ transactionId: string;
8754
+ createdByUserType: "system" | "user";
8755
+ createdAt: string;
8756
+ createdBy: string;
8757
+ createdByRole?: string | undefined;
8758
+ createdBySignature?: string | null | undefined;
8759
+ createdAtLocation?: string | null | undefined;
8760
+ declaration: Record<string, unknown>;
8761
+ annotation?: Record<string, unknown> | null | undefined;
8762
+ status: "Accepted" | "Rejected" | "Requested";
8763
+ originalActionId?: string | null | undefined;
8764
+ type: "REVOKE_REGISTRATION";
8765
+ } | {
8766
+ id: string;
8767
+ transactionId: string;
8768
+ createdByUserType: "system" | "user";
8769
+ createdAt: string;
8770
+ createdBy: string;
8771
+ createdByRole?: string | undefined;
8772
+ createdBySignature?: string | null | undefined;
8773
+ createdAtLocation?: string | null | undefined;
8774
+ declaration: Record<string, unknown>;
8775
+ annotation?: Record<string, unknown> | null | undefined;
8776
+ status: "Accepted" | "Rejected" | "Requested";
8777
+ originalActionId?: string | null | undefined;
8778
+ type: "REINSTATE_REGISTRATION";
7496
8779
  } | {
7497
8780
  id: string;
7498
8781
  transactionId: string;
@@ -7688,7 +8971,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7688
8971
  createdBySignature?: string | null | undefined;
7689
8972
  createdAtLocation?: string | null | undefined;
7690
8973
  originalActionId?: string | null | undefined;
7691
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
8974
+ type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE";
7692
8975
  status: "Rejected";
7693
8976
  })[];
7694
8977
  trackingId: string;
@@ -8099,7 +9382,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8099
9382
  clientId: string;
8100
9383
  clientType: "system" | "user";
8101
9384
  createdAt: string;
8102
- 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.unarchive.request" | "event.actions.unassign.request" | "event.actions.validate.request";
9385
+ 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.reinstate_registration.request" | "event.actions.reject.request" | "event.actions.revoke_registration.request" | "event.actions.unarchive.request" | "event.actions.unassign.request" | "event.actions.validate.request";
8103
9386
  requestData: {
8104
9387
  eventId: string;
8105
9388
  actionType: string;
@@ -8613,10 +9896,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8613
9896
  eventType?: string | undefined;
8614
9897
  status?: {
8615
9898
  type: "anyOf";
8616
- terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[];
9899
+ terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
8617
9900
  } | {
8618
9901
  type: "exact";
8619
- term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
9902
+ term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED";
8620
9903
  } | undefined;
8621
9904
  createdAt?: {
8622
9905
  type: "exact";
@@ -8677,6 +9960,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8677
9960
  type: "exact";
8678
9961
  term: string;
8679
9962
  } | undefined;
9963
+ 'legalStatuses.REVOKED.createdAtLocation'?: {
9964
+ type: "within";
9965
+ location: string | {
9966
+ $userField: "administrativeAreaId" | "avatar" | "device" | "firstname" | "fullHonorificName" | "id" | "middlename" | "name" | "primaryOfficeId" | "role" | "signature" | "surname";
9967
+ $location?: string | undefined;
9968
+ };
9969
+ } | undefined;
8680
9970
  createdAtLocation?: {
8681
9971
  type: "within";
8682
9972
  location: string | {
@@ -8752,10 +10042,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8752
10042
  eventType?: string | undefined;
8753
10043
  status?: {
8754
10044
  type: "anyOf";
8755
- terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[];
10045
+ terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
8756
10046
  } | {
8757
10047
  type: "exact";
8758
- term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
10048
+ term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED";
8759
10049
  } | undefined;
8760
10050
  createdAt?: {
8761
10051
  type: "exact";
@@ -8816,6 +10106,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8816
10106
  type: "exact";
8817
10107
  term: string;
8818
10108
  } | undefined;
10109
+ 'legalStatuses.REVOKED.createdAtLocation'?: {
10110
+ type: "within";
10111
+ location: string | {
10112
+ $userField: "administrativeAreaId" | "avatar" | "device" | "firstname" | "fullHonorificName" | "id" | "middlename" | "name" | "primaryOfficeId" | "role" | "signature" | "surname";
10113
+ $location?: string | undefined;
10114
+ };
10115
+ } | undefined;
8819
10116
  createdAtLocation?: {
8820
10117
  type: "within";
8821
10118
  location: string | {
@@ -8887,7 +10184,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8887
10184
  }[];
8888
10185
  };
8889
10186
  action?: {
8890
- type: "ARCHIVE" | "DECLARE" | "DELETE" | "EDIT" | "MARK_AS_DUPLICATE" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REJECT" | "REQUEST_CORRECTION" | "UNARCHIVE";
10187
+ type: "ARCHIVE" | "DECLARE" | "DELETE" | "EDIT" | "MARK_AS_DUPLICATE" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE";
8891
10188
  } | undefined;
8892
10189
  columns: {
8893
10190
  label: {
@@ -9213,7 +10510,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9213
10510
  clientId: string;
9214
10511
  clientType: "system" | "user";
9215
10512
  createdAt: string;
9216
- 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.unarchive.request" | "event.actions.unassign.request" | "event.actions.validate.request";
10513
+ 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.reinstate_registration.request" | "event.actions.reject.request" | "event.actions.revoke_registration.request" | "event.actions.unarchive.request" | "event.actions.unassign.request" | "event.actions.validate.request";
9217
10514
  requestData: {
9218
10515
  eventId: string;
9219
10516
  actionType: string;