@nira-opencrvs/toolkit 1.9.13-rc.992bd0c → 1.9.13-rc.dccb0a5

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.
@@ -108,6 +108,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
108
108
  query: import("../commons").ClauseOutput;
109
109
  label: import("../commons").TranslationConfig;
110
110
  } | undefined;
111
+ } | {
112
+ type: "ESCALATE";
113
+ label: import("../commons").TranslationConfig;
114
+ review: {
115
+ title: import("../commons").TranslationConfig;
116
+ fields: import("../commons").FieldConfig[];
117
+ };
118
+ deduplication?: {
119
+ id: string;
120
+ query: import("../commons").ClauseOutput;
121
+ label: import("../commons").TranslationConfig;
122
+ } | undefined;
111
123
  } | {
112
124
  type: "REJECT";
113
125
  label: import("../commons").TranslationConfig;
@@ -391,6 +403,23 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
391
403
  createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
392
404
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
393
405
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
406
+ } | {
407
+ type: "ESCALATE";
408
+ id: string & import("zod").BRAND<"UUID">;
409
+ status: "Rejected" | "Requested" | "Accepted";
410
+ content: {
411
+ reason: string;
412
+ };
413
+ transactionId: string;
414
+ createdByUserType: "system" | "user";
415
+ createdAt: string;
416
+ createdBy: string;
417
+ createdByRole: string;
418
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
419
+ createdBySignature?: string | null | undefined;
420
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
421
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
422
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
394
423
  } | {
395
424
  type: "REJECT";
396
425
  id: string & import("zod").BRAND<"UUID">;
@@ -583,7 +612,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
583
612
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
584
613
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
585
614
  } | {
586
- type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
615
+ type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "ESCALATE" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
587
616
  id: string & import("zod").BRAND<"UUID">;
588
617
  status: "Rejected";
589
618
  transactionId: string;
@@ -678,6 +707,23 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
678
707
  createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
679
708
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
680
709
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
710
+ } | {
711
+ type: "ESCALATE";
712
+ id: string & import("zod").BRAND<"UUID">;
713
+ status: "Rejected" | "Requested" | "Accepted";
714
+ content: {
715
+ reason: string;
716
+ };
717
+ transactionId: string;
718
+ createdByUserType: "system" | "user";
719
+ createdAt: string;
720
+ createdBy: string;
721
+ createdByRole: string;
722
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
723
+ createdBySignature?: string | null | undefined;
724
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
725
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
726
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
681
727
  } | {
682
728
  type: "REJECT";
683
729
  id: string & import("zod").BRAND<"UUID">;
@@ -870,7 +916,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
870
916
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
871
917
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
872
918
  } | {
873
- type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
919
+ type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "ESCALATE" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
874
920
  id: string & import("zod").BRAND<"UUID">;
875
921
  status: "Rejected";
876
922
  transactionId: string;
@@ -967,6 +1013,23 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
967
1013
  createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
968
1014
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
969
1015
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
1016
+ } | {
1017
+ type: "ESCALATE";
1018
+ id: string & import("zod").BRAND<"UUID">;
1019
+ status: "Rejected" | "Requested" | "Accepted";
1020
+ content: {
1021
+ reason: string;
1022
+ };
1023
+ transactionId: string;
1024
+ createdByUserType: "system" | "user";
1025
+ createdAt: string;
1026
+ createdBy: string;
1027
+ createdByRole: string;
1028
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1029
+ createdBySignature?: string | null | undefined;
1030
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
1031
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1032
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
970
1033
  } | {
971
1034
  type: "REJECT";
972
1035
  id: string & import("zod").BRAND<"UUID">;
@@ -1159,7 +1222,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1159
1222
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1160
1223
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
1161
1224
  } | {
1162
- type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
1225
+ type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "ESCALATE" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
1163
1226
  id: string & import("zod").BRAND<"UUID">;
1164
1227
  status: "Rejected";
1165
1228
  transactionId: string;
@@ -1212,7 +1275,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1212
1275
  createdAt: string;
1213
1276
  eventId: string & import("zod").BRAND<"UUID">;
1214
1277
  action: {
1215
- type: "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
1278
+ type: "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "ESCALATE" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
1216
1279
  status: "Rejected" | "Requested" | "Accepted";
1217
1280
  transactionId: string;
1218
1281
  createdByUserType: "system" | "user";
@@ -1229,7 +1292,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1229
1292
  }>;
1230
1293
  create: import("@trpc/server").TRPCMutationProcedure<{
1231
1294
  input: {
1232
- type: "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
1295
+ type: "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "ESCALATE" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
1233
1296
  status: "Rejected" | "Requested" | "Accepted";
1234
1297
  transactionId: string;
1235
1298
  eventId: string;
@@ -1247,7 +1310,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1247
1310
  createdAt: string;
1248
1311
  eventId: string & import("zod").BRAND<"UUID">;
1249
1312
  action: {
1250
- type: "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
1313
+ type: "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "ESCALATE" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
1251
1314
  status: "Rejected" | "Requested" | "Accepted";
1252
1315
  transactionId: string;
1253
1316
  createdByUserType: "system" | "user";
@@ -1333,6 +1396,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1333
1396
  keepAssignment?: boolean | undefined;
1334
1397
  keepAssignmentIfAccepted?: boolean | undefined;
1335
1398
  keepAssignmentIfRejected?: boolean | undefined;
1399
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1400
+ content: {
1401
+ reason: string;
1402
+ };
1403
+ transactionId: string;
1404
+ eventId: string;
1405
+ type?: "ESCALATE" | undefined;
1406
+ createdAtLocation?: string | null | undefined;
1407
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1408
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1409
+ originalActionId?: string | undefined;
1410
+ keepAssignment?: boolean | undefined;
1411
+ keepAssignmentIfAccepted?: boolean | undefined;
1412
+ keepAssignmentIfRejected?: boolean | undefined;
1336
1413
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1337
1414
  transactionId: string;
1338
1415
  eventId: string;
@@ -1541,16 +1618,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1541
1618
  keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
1542
1619
  keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
1543
1620
  createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
1544
- }, "transactionId" | "eventId" | "keepAssignment">, {
1621
+ }, "eventId" | "transactionId" | "keepAssignment">, {
1545
1622
  actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
1546
1623
  }>, "strip", import("zod").ZodTypeAny, {
1547
- transactionId: string;
1548
1624
  eventId: string & import("zod").BRAND<"UUID">;
1625
+ transactionId: string;
1549
1626
  actionId: string & import("zod").BRAND<"UUID">;
1550
1627
  keepAssignment?: boolean | undefined;
1551
1628
  }, {
1552
- transactionId: string;
1553
1629
  eventId: string;
1630
+ transactionId: string;
1554
1631
  actionId: string;
1555
1632
  keepAssignment?: boolean | undefined;
1556
1633
  }>>;
@@ -1670,6 +1747,23 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1670
1747
  createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
1671
1748
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1672
1749
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
1750
+ } | {
1751
+ type: "ESCALATE";
1752
+ id: string & import("zod").BRAND<"UUID">;
1753
+ status: "Rejected" | "Requested" | "Accepted";
1754
+ content: {
1755
+ reason: string;
1756
+ };
1757
+ transactionId: string;
1758
+ createdByUserType: "system" | "user";
1759
+ createdAt: string;
1760
+ createdBy: string;
1761
+ createdByRole: string;
1762
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1763
+ createdBySignature?: string | null | undefined;
1764
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
1765
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1766
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
1673
1767
  } | {
1674
1768
  type: "REJECT";
1675
1769
  id: string & import("zod").BRAND<"UUID">;
@@ -1862,7 +1956,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1862
1956
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1863
1957
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
1864
1958
  } | {
1865
- type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
1959
+ type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "ESCALATE" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
1866
1960
  id: string & import("zod").BRAND<"UUID">;
1867
1961
  status: "Rejected";
1868
1962
  transactionId: string;
@@ -1900,6 +1994,308 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1900
1994
  keepAssignment?: boolean | undefined;
1901
1995
  keepAssignmentIfAccepted?: boolean | undefined;
1902
1996
  keepAssignmentIfRejected?: boolean | undefined;
1997
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1998
+ content: {
1999
+ reason: string;
2000
+ };
2001
+ transactionId: string;
2002
+ eventId: string;
2003
+ type?: "ESCALATE" | undefined;
2004
+ createdAtLocation?: string | null | undefined;
2005
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2006
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2007
+ originalActionId?: string | undefined;
2008
+ keepAssignment?: boolean | undefined;
2009
+ keepAssignmentIfAccepted?: boolean | undefined;
2010
+ keepAssignmentIfRejected?: boolean | undefined;
2011
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2012
+ transactionId: string;
2013
+ eventId: string;
2014
+ type?: "REGISTER" | undefined;
2015
+ createdAtLocation?: string | null | undefined;
2016
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2017
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2018
+ originalActionId?: string | undefined;
2019
+ registrationNumber?: string | undefined;
2020
+ keepAssignment?: boolean | undefined;
2021
+ keepAssignmentIfAccepted?: boolean | undefined;
2022
+ keepAssignmentIfRejected?: boolean | undefined;
2023
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2024
+ transactionId: string;
2025
+ eventId: string;
2026
+ type?: "NOTIFY" | undefined;
2027
+ createdAtLocation?: string | null | undefined;
2028
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2029
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2030
+ originalActionId?: string | undefined;
2031
+ keepAssignment?: boolean | undefined;
2032
+ keepAssignmentIfAccepted?: boolean | undefined;
2033
+ keepAssignmentIfRejected?: boolean | undefined;
2034
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2035
+ transactionId: string;
2036
+ eventId: string;
2037
+ type?: "DECLARE" | undefined;
2038
+ createdAtLocation?: string | null | undefined;
2039
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2040
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2041
+ originalActionId?: string | undefined;
2042
+ keepAssignment?: boolean | undefined;
2043
+ keepAssignmentIfAccepted?: boolean | undefined;
2044
+ keepAssignmentIfRejected?: boolean | undefined;
2045
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2046
+ content: {
2047
+ reason: string;
2048
+ };
2049
+ transactionId: string;
2050
+ eventId: string;
2051
+ type?: "REJECT" | undefined;
2052
+ createdAtLocation?: string | null | undefined;
2053
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2054
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2055
+ originalActionId?: string | undefined;
2056
+ keepAssignment?: boolean | undefined;
2057
+ keepAssignmentIfAccepted?: boolean | undefined;
2058
+ keepAssignmentIfRejected?: boolean | undefined;
2059
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2060
+ content: {
2061
+ duplicates: {
2062
+ id: string;
2063
+ trackingId: string;
2064
+ }[];
2065
+ };
2066
+ transactionId: string;
2067
+ eventId: string;
2068
+ type?: "DUPLICATE_DETECTED" | undefined;
2069
+ createdAtLocation?: string | null | undefined;
2070
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2071
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2072
+ originalActionId?: string | undefined;
2073
+ keepAssignment?: boolean | undefined;
2074
+ keepAssignmentIfAccepted?: boolean | undefined;
2075
+ keepAssignmentIfRejected?: boolean | undefined;
2076
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2077
+ transactionId: string;
2078
+ eventId: string;
2079
+ type?: "MARK_AS_DUPLICATE" | undefined;
2080
+ content?: {
2081
+ duplicateOf: string;
2082
+ } | undefined;
2083
+ createdAtLocation?: string | null | undefined;
2084
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2085
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2086
+ originalActionId?: string | undefined;
2087
+ keepAssignment?: boolean | undefined;
2088
+ keepAssignmentIfAccepted?: boolean | undefined;
2089
+ keepAssignmentIfRejected?: boolean | undefined;
2090
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2091
+ transactionId: string;
2092
+ eventId: string;
2093
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
2094
+ createdAtLocation?: string | null | undefined;
2095
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2096
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2097
+ originalActionId?: string | undefined;
2098
+ keepAssignment?: boolean | undefined;
2099
+ keepAssignmentIfAccepted?: boolean | undefined;
2100
+ keepAssignmentIfRejected?: boolean | undefined;
2101
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2102
+ content: {
2103
+ reason: string;
2104
+ };
2105
+ transactionId: string;
2106
+ eventId: string;
2107
+ type?: "ARCHIVE" | undefined;
2108
+ createdAtLocation?: string | null | undefined;
2109
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2110
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2111
+ originalActionId?: string | undefined;
2112
+ keepAssignment?: boolean | undefined;
2113
+ keepAssignmentIfAccepted?: boolean | undefined;
2114
+ keepAssignmentIfRejected?: boolean | undefined;
2115
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2116
+ type: "ASSIGN";
2117
+ transactionId: string;
2118
+ assignedTo: string;
2119
+ eventId: string;
2120
+ createdAtLocation?: string | null | undefined;
2121
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2122
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2123
+ originalActionId?: string | undefined;
2124
+ keepAssignment?: boolean | undefined;
2125
+ keepAssignmentIfAccepted?: boolean | undefined;
2126
+ keepAssignmentIfRejected?: boolean | undefined;
2127
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2128
+ transactionId: string;
2129
+ eventId: string;
2130
+ type?: "UNASSIGN" | undefined;
2131
+ createdAtLocation?: string | null | undefined;
2132
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2133
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2134
+ originalActionId?: string | undefined;
2135
+ assignedTo?: null | undefined;
2136
+ keepAssignment?: boolean | undefined;
2137
+ keepAssignmentIfAccepted?: boolean | undefined;
2138
+ keepAssignmentIfRejected?: boolean | undefined;
2139
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2140
+ transactionId: string;
2141
+ eventId: string;
2142
+ type?: "PRINT_CERTIFICATE" | undefined;
2143
+ content?: {
2144
+ templateId?: string | undefined;
2145
+ } | undefined;
2146
+ createdAtLocation?: string | null | undefined;
2147
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2148
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2149
+ originalActionId?: string | undefined;
2150
+ keepAssignment?: boolean | undefined;
2151
+ keepAssignmentIfAccepted?: boolean | undefined;
2152
+ keepAssignmentIfRejected?: boolean | undefined;
2153
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2154
+ transactionId: string;
2155
+ eventId: string;
2156
+ type?: "REQUEST_CORRECTION" | undefined;
2157
+ createdAtLocation?: string | null | undefined;
2158
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2159
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2160
+ originalActionId?: string | undefined;
2161
+ keepAssignment?: boolean | undefined;
2162
+ keepAssignmentIfAccepted?: boolean | undefined;
2163
+ keepAssignmentIfRejected?: boolean | undefined;
2164
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2165
+ content: {
2166
+ reason: string;
2167
+ };
2168
+ transactionId: string;
2169
+ requestId: string;
2170
+ eventId: string;
2171
+ type?: "REJECT_CORRECTION" | undefined;
2172
+ createdAtLocation?: string | null | undefined;
2173
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2174
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2175
+ originalActionId?: string | undefined;
2176
+ keepAssignment?: boolean | undefined;
2177
+ keepAssignmentIfAccepted?: boolean | undefined;
2178
+ keepAssignmentIfRejected?: boolean | undefined;
2179
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2180
+ transactionId: string;
2181
+ requestId: string;
2182
+ eventId: string;
2183
+ type?: "APPROVE_CORRECTION" | undefined;
2184
+ createdAtLocation?: string | null | undefined;
2185
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2186
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2187
+ originalActionId?: string | undefined;
2188
+ keepAssignment?: boolean | undefined;
2189
+ keepAssignmentIfAccepted?: boolean | undefined;
2190
+ keepAssignmentIfRejected?: boolean | undefined;
2191
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2192
+ transactionId: string;
2193
+ eventId: string;
2194
+ type?: "READ" | undefined;
2195
+ createdAtLocation?: string | null | undefined;
2196
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2197
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2198
+ originalActionId?: string | undefined;
2199
+ keepAssignment?: boolean | undefined;
2200
+ keepAssignmentIfAccepted?: boolean | undefined;
2201
+ keepAssignmentIfRejected?: boolean | undefined;
2202
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2203
+ actionId: string;
2204
+ };
2205
+ output: import("../commons").EventDocument;
2206
+ meta: import("trpc-to-openapi").OpenApiMeta;
2207
+ }>;
2208
+ reject: import("@trpc/server").TRPCMutationProcedure<{
2209
+ input: import("zod").input<import("zod").ZodObject<import("zod").objectUtil.extendShape<Pick<{
2210
+ eventId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
2211
+ transactionId: import("zod").ZodString;
2212
+ declaration: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
2213
+ annotation: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
2214
+ originalActionId: import("zod").ZodOptional<import("zod").ZodBranded<import("zod").ZodString, "UUID">>;
2215
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2216
+ keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
2217
+ keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
2218
+ createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
2219
+ }, "eventId" | "transactionId" | "keepAssignment">, {
2220
+ actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
2221
+ }>, "strip", import("zod").ZodTypeAny, {
2222
+ eventId: string & import("zod").BRAND<"UUID">;
2223
+ transactionId: string;
2224
+ actionId: string & import("zod").BRAND<"UUID">;
2225
+ keepAssignment?: boolean | undefined;
2226
+ }, {
2227
+ eventId: string;
2228
+ transactionId: string;
2229
+ actionId: string;
2230
+ keepAssignment?: boolean | undefined;
2231
+ }>>;
2232
+ output: import("../commons").EventDocument;
2233
+ meta: import("trpc-to-openapi").OpenApiMeta;
2234
+ }>;
2235
+ }>>;
2236
+ validate: import("@trpc/server").TRPCBuiltRouter<{
2237
+ ctx: {
2238
+ user: {
2239
+ type: "user";
2240
+ id: string;
2241
+ role: string;
2242
+ primaryOfficeId: string & import("zod").BRAND<"UUID">;
2243
+ signature?: string | undefined;
2244
+ } | {
2245
+ type: "system";
2246
+ id: string;
2247
+ role: "HEALTH" | "NATIONAL_ID" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
2248
+ primaryOfficeId?: undefined;
2249
+ signature?: undefined;
2250
+ };
2251
+ token: `Bearer ${string}`;
2252
+ };
2253
+ meta: import("trpc-to-openapi").OpenApiMeta;
2254
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
2255
+ transformer: true;
2256
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
2257
+ request: import("@trpc/server").TRPCMutationProcedure<{
2258
+ input: import("../commons").ActionInput;
2259
+ output: import("../commons").EventDocument;
2260
+ meta: import("trpc-to-openapi").OpenApiMeta;
2261
+ }>;
2262
+ accept: import("@trpc/server").TRPCMutationProcedure<{
2263
+ input: (Omit<{
2264
+ transactionId: string;
2265
+ eventId: string;
2266
+ type?: "CREATE" | undefined;
2267
+ createdAtLocation?: string | null | undefined;
2268
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2269
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2270
+ originalActionId?: string | undefined;
2271
+ keepAssignment?: boolean | undefined;
2272
+ keepAssignmentIfAccepted?: boolean | undefined;
2273
+ keepAssignmentIfRejected?: boolean | undefined;
2274
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2275
+ transactionId: string;
2276
+ eventId: string;
2277
+ type?: "VALIDATE" | undefined;
2278
+ createdAtLocation?: string | null | undefined;
2279
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2280
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2281
+ originalActionId?: string | undefined;
2282
+ keepAssignment?: boolean | undefined;
2283
+ keepAssignmentIfAccepted?: boolean | undefined;
2284
+ keepAssignmentIfRejected?: boolean | undefined;
2285
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2286
+ content: {
2287
+ reason: string;
2288
+ };
2289
+ transactionId: string;
2290
+ eventId: string;
2291
+ type?: "ESCALATE" | undefined;
2292
+ createdAtLocation?: string | null | undefined;
2293
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2294
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2295
+ originalActionId?: string | undefined;
2296
+ keepAssignment?: boolean | undefined;
2297
+ keepAssignmentIfAccepted?: boolean | undefined;
2298
+ keepAssignmentIfRejected?: boolean | undefined;
1903
2299
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1904
2300
  transactionId: string;
1905
2301
  eventId: string;
@@ -2108,16 +2504,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2108
2504
  keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
2109
2505
  keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
2110
2506
  createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
2111
- }, "transactionId" | "eventId" | "keepAssignment">, {
2507
+ }, "eventId" | "transactionId" | "keepAssignment">, {
2112
2508
  actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
2113
2509
  }>, "strip", import("zod").ZodTypeAny, {
2114
- transactionId: string;
2115
2510
  eventId: string & import("zod").BRAND<"UUID">;
2511
+ transactionId: string;
2116
2512
  actionId: string & import("zod").BRAND<"UUID">;
2117
2513
  keepAssignment?: boolean | undefined;
2118
2514
  }, {
2119
- transactionId: string;
2120
2515
  eventId: string;
2516
+ transactionId: string;
2121
2517
  actionId: string;
2122
2518
  keepAssignment?: boolean | undefined;
2123
2519
  }>>;
@@ -2125,7 +2521,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2125
2521
  meta: import("trpc-to-openapi").OpenApiMeta;
2126
2522
  }>;
2127
2523
  }>>;
2128
- validate: import("@trpc/server").TRPCBuiltRouter<{
2524
+ reject: import("@trpc/server").TRPCBuiltRouter<{
2129
2525
  ctx: {
2130
2526
  user: {
2131
2527
  type: "user";
@@ -2174,6 +2570,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2174
2570
  keepAssignment?: boolean | undefined;
2175
2571
  keepAssignmentIfAccepted?: boolean | undefined;
2176
2572
  keepAssignmentIfRejected?: boolean | undefined;
2573
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2574
+ content: {
2575
+ reason: string;
2576
+ };
2577
+ transactionId: string;
2578
+ eventId: string;
2579
+ type?: "ESCALATE" | undefined;
2580
+ createdAtLocation?: string | null | undefined;
2581
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2582
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2583
+ originalActionId?: string | undefined;
2584
+ keepAssignment?: boolean | undefined;
2585
+ keepAssignmentIfAccepted?: boolean | undefined;
2586
+ keepAssignmentIfRejected?: boolean | undefined;
2177
2587
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2178
2588
  transactionId: string;
2179
2589
  eventId: string;
@@ -2382,16 +2792,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2382
2792
  keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
2383
2793
  keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
2384
2794
  createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
2385
- }, "transactionId" | "eventId" | "keepAssignment">, {
2795
+ }, "eventId" | "transactionId" | "keepAssignment">, {
2386
2796
  actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
2387
2797
  }>, "strip", import("zod").ZodTypeAny, {
2388
- transactionId: string;
2389
2798
  eventId: string & import("zod").BRAND<"UUID">;
2799
+ transactionId: string;
2390
2800
  actionId: string & import("zod").BRAND<"UUID">;
2391
2801
  keepAssignment?: boolean | undefined;
2392
2802
  }, {
2393
- transactionId: string;
2394
2803
  eventId: string;
2804
+ transactionId: string;
2395
2805
  actionId: string;
2396
2806
  keepAssignment?: boolean | undefined;
2397
2807
  }>>;
@@ -2399,7 +2809,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2399
2809
  meta: import("trpc-to-openapi").OpenApiMeta;
2400
2810
  }>;
2401
2811
  }>>;
2402
- reject: import("@trpc/server").TRPCBuiltRouter<{
2812
+ archive: import("@trpc/server").TRPCBuiltRouter<{
2403
2813
  ctx: {
2404
2814
  user: {
2405
2815
  type: "user";
@@ -2448,6 +2858,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2448
2858
  keepAssignment?: boolean | undefined;
2449
2859
  keepAssignmentIfAccepted?: boolean | undefined;
2450
2860
  keepAssignmentIfRejected?: boolean | undefined;
2861
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2862
+ content: {
2863
+ reason: string;
2864
+ };
2865
+ transactionId: string;
2866
+ eventId: string;
2867
+ type?: "ESCALATE" | undefined;
2868
+ createdAtLocation?: string | null | undefined;
2869
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2870
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2871
+ originalActionId?: string | undefined;
2872
+ keepAssignment?: boolean | undefined;
2873
+ keepAssignmentIfAccepted?: boolean | undefined;
2874
+ keepAssignmentIfRejected?: boolean | undefined;
2451
2875
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2452
2876
  transactionId: string;
2453
2877
  eventId: string;
@@ -2656,16 +3080,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2656
3080
  keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
2657
3081
  keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
2658
3082
  createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
2659
- }, "transactionId" | "eventId" | "keepAssignment">, {
3083
+ }, "eventId" | "transactionId" | "keepAssignment">, {
2660
3084
  actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
2661
3085
  }>, "strip", import("zod").ZodTypeAny, {
2662
- transactionId: string;
2663
3086
  eventId: string & import("zod").BRAND<"UUID">;
3087
+ transactionId: string;
2664
3088
  actionId: string & import("zod").BRAND<"UUID">;
2665
3089
  keepAssignment?: boolean | undefined;
2666
3090
  }, {
2667
- transactionId: string;
2668
3091
  eventId: string;
3092
+ transactionId: string;
2669
3093
  actionId: string;
2670
3094
  keepAssignment?: boolean | undefined;
2671
3095
  }>>;
@@ -2673,7 +3097,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2673
3097
  meta: import("trpc-to-openapi").OpenApiMeta;
2674
3098
  }>;
2675
3099
  }>>;
2676
- archive: import("@trpc/server").TRPCBuiltRouter<{
3100
+ register: import("@trpc/server").TRPCBuiltRouter<{
2677
3101
  ctx: {
2678
3102
  user: {
2679
3103
  type: "user";
@@ -2722,6 +3146,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2722
3146
  keepAssignment?: boolean | undefined;
2723
3147
  keepAssignmentIfAccepted?: boolean | undefined;
2724
3148
  keepAssignmentIfRejected?: boolean | undefined;
3149
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3150
+ content: {
3151
+ reason: string;
3152
+ };
3153
+ transactionId: string;
3154
+ eventId: string;
3155
+ type?: "ESCALATE" | undefined;
3156
+ createdAtLocation?: string | null | undefined;
3157
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3158
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3159
+ originalActionId?: string | undefined;
3160
+ keepAssignment?: boolean | undefined;
3161
+ keepAssignmentIfAccepted?: boolean | undefined;
3162
+ keepAssignmentIfRejected?: boolean | undefined;
2725
3163
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2726
3164
  transactionId: string;
2727
3165
  eventId: string;
@@ -2930,16 +3368,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2930
3368
  keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
2931
3369
  keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
2932
3370
  createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
2933
- }, "transactionId" | "eventId" | "keepAssignment">, {
3371
+ }, "eventId" | "transactionId" | "keepAssignment">, {
2934
3372
  actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
2935
3373
  }>, "strip", import("zod").ZodTypeAny, {
2936
- transactionId: string;
2937
3374
  eventId: string & import("zod").BRAND<"UUID">;
3375
+ transactionId: string;
2938
3376
  actionId: string & import("zod").BRAND<"UUID">;
2939
3377
  keepAssignment?: boolean | undefined;
2940
3378
  }, {
2941
- transactionId: string;
2942
3379
  eventId: string;
3380
+ transactionId: string;
2943
3381
  actionId: string;
2944
3382
  keepAssignment?: boolean | undefined;
2945
3383
  }>>;
@@ -2947,7 +3385,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2947
3385
  meta: import("trpc-to-openapi").OpenApiMeta;
2948
3386
  }>;
2949
3387
  }>>;
2950
- register: import("@trpc/server").TRPCBuiltRouter<{
3388
+ escalate: import("@trpc/server").TRPCBuiltRouter<{
2951
3389
  ctx: {
2952
3390
  user: {
2953
3391
  type: "user";
@@ -2996,6 +3434,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2996
3434
  keepAssignment?: boolean | undefined;
2997
3435
  keepAssignmentIfAccepted?: boolean | undefined;
2998
3436
  keepAssignmentIfRejected?: boolean | undefined;
3437
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3438
+ content: {
3439
+ reason: string;
3440
+ };
3441
+ transactionId: string;
3442
+ eventId: string;
3443
+ type?: "ESCALATE" | undefined;
3444
+ createdAtLocation?: string | null | undefined;
3445
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3446
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3447
+ originalActionId?: string | undefined;
3448
+ keepAssignment?: boolean | undefined;
3449
+ keepAssignmentIfAccepted?: boolean | undefined;
3450
+ keepAssignmentIfRejected?: boolean | undefined;
2999
3451
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3000
3452
  transactionId: string;
3001
3453
  eventId: string;
@@ -3204,16 +3656,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3204
3656
  keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
3205
3657
  keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
3206
3658
  createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
3207
- }, "transactionId" | "eventId" | "keepAssignment">, {
3659
+ }, "eventId" | "transactionId" | "keepAssignment">, {
3208
3660
  actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
3209
3661
  }>, "strip", import("zod").ZodTypeAny, {
3210
- transactionId: string;
3211
3662
  eventId: string & import("zod").BRAND<"UUID">;
3663
+ transactionId: string;
3212
3664
  actionId: string & import("zod").BRAND<"UUID">;
3213
3665
  keepAssignment?: boolean | undefined;
3214
3666
  }, {
3215
- transactionId: string;
3216
3667
  eventId: string;
3668
+ transactionId: string;
3217
3669
  actionId: string;
3218
3670
  keepAssignment?: boolean | undefined;
3219
3671
  }>>;
@@ -3270,6 +3722,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3270
3722
  keepAssignment?: boolean | undefined;
3271
3723
  keepAssignmentIfAccepted?: boolean | undefined;
3272
3724
  keepAssignmentIfRejected?: boolean | undefined;
3725
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3726
+ content: {
3727
+ reason: string;
3728
+ };
3729
+ transactionId: string;
3730
+ eventId: string;
3731
+ type?: "ESCALATE" | undefined;
3732
+ createdAtLocation?: string | null | undefined;
3733
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3734
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3735
+ originalActionId?: string | undefined;
3736
+ keepAssignment?: boolean | undefined;
3737
+ keepAssignmentIfAccepted?: boolean | undefined;
3738
+ keepAssignmentIfRejected?: boolean | undefined;
3273
3739
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3274
3740
  transactionId: string;
3275
3741
  eventId: string;
@@ -3478,16 +3944,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3478
3944
  keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
3479
3945
  keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
3480
3946
  createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
3481
- }, "transactionId" | "eventId" | "keepAssignment">, {
3947
+ }, "eventId" | "transactionId" | "keepAssignment">, {
3482
3948
  actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
3483
3949
  }>, "strip", import("zod").ZodTypeAny, {
3484
- transactionId: string;
3485
3950
  eventId: string & import("zod").BRAND<"UUID">;
3951
+ transactionId: string;
3486
3952
  actionId: string & import("zod").BRAND<"UUID">;
3487
3953
  keepAssignment?: boolean | undefined;
3488
3954
  }, {
3489
- transactionId: string;
3490
3955
  eventId: string;
3956
+ transactionId: string;
3491
3957
  actionId: string;
3492
3958
  keepAssignment?: boolean | undefined;
3493
3959
  }>>;
@@ -3608,6 +4074,23 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3608
4074
  createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
3609
4075
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
3610
4076
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
4077
+ } | {
4078
+ type: "ESCALATE";
4079
+ id: string & import("zod").BRAND<"UUID">;
4080
+ status: "Rejected" | "Requested" | "Accepted";
4081
+ content: {
4082
+ reason: string;
4083
+ };
4084
+ transactionId: string;
4085
+ createdByUserType: "system" | "user";
4086
+ createdAt: string;
4087
+ createdBy: string;
4088
+ createdByRole: string;
4089
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
4090
+ createdBySignature?: string | null | undefined;
4091
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
4092
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
4093
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
3611
4094
  } | {
3612
4095
  type: "REJECT";
3613
4096
  id: string & import("zod").BRAND<"UUID">;
@@ -3800,7 +4283,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3800
4283
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
3801
4284
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
3802
4285
  } | {
3803
- type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
4286
+ type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "ESCALATE" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
3804
4287
  id: string & import("zod").BRAND<"UUID">;
3805
4288
  status: "Rejected";
3806
4289
  transactionId: string;
@@ -3907,6 +4390,23 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3907
4390
  createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
3908
4391
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
3909
4392
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
4393
+ } | {
4394
+ type: "ESCALATE";
4395
+ id: string & import("zod").BRAND<"UUID">;
4396
+ status: "Rejected" | "Requested" | "Accepted";
4397
+ content: {
4398
+ reason: string;
4399
+ };
4400
+ transactionId: string;
4401
+ createdByUserType: "system" | "user";
4402
+ createdAt: string;
4403
+ createdBy: string;
4404
+ createdByRole: string;
4405
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
4406
+ createdBySignature?: string | null | undefined;
4407
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
4408
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
4409
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
3910
4410
  } | {
3911
4411
  type: "REJECT";
3912
4412
  id: string & import("zod").BRAND<"UUID">;
@@ -4099,7 +4599,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4099
4599
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
4100
4600
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
4101
4601
  } | {
4102
- type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
4602
+ type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "ESCALATE" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
4103
4603
  id: string & import("zod").BRAND<"UUID">;
4104
4604
  status: "Rejected";
4105
4605
  transactionId: string;
@@ -4185,6 +4685,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4185
4685
  keepAssignment?: boolean | undefined;
4186
4686
  keepAssignmentIfAccepted?: boolean | undefined;
4187
4687
  keepAssignmentIfRejected?: boolean | undefined;
4688
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4689
+ content: {
4690
+ reason: string;
4691
+ };
4692
+ transactionId: string;
4693
+ eventId: string;
4694
+ type?: "ESCALATE" | undefined;
4695
+ createdAtLocation?: string | null | undefined;
4696
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4697
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4698
+ originalActionId?: string | undefined;
4699
+ keepAssignment?: boolean | undefined;
4700
+ keepAssignmentIfAccepted?: boolean | undefined;
4701
+ keepAssignmentIfRejected?: boolean | undefined;
4188
4702
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4189
4703
  transactionId: string;
4190
4704
  eventId: string;
@@ -4393,16 +4907,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4393
4907
  keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
4394
4908
  keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
4395
4909
  createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
4396
- }, "transactionId" | "eventId" | "keepAssignment">, {
4910
+ }, "eventId" | "transactionId" | "keepAssignment">, {
4397
4911
  actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
4398
4912
  }>, "strip", import("zod").ZodTypeAny, {
4399
- transactionId: string;
4400
4913
  eventId: string & import("zod").BRAND<"UUID">;
4914
+ transactionId: string;
4401
4915
  actionId: string & import("zod").BRAND<"UUID">;
4402
4916
  keepAssignment?: boolean | undefined;
4403
4917
  }, {
4404
- transactionId: string;
4405
4918
  eventId: string;
4919
+ transactionId: string;
4406
4920
  actionId: string;
4407
4921
  keepAssignment?: boolean | undefined;
4408
4922
  }>>;
@@ -4459,6 +4973,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4459
4973
  keepAssignment?: boolean | undefined;
4460
4974
  keepAssignmentIfAccepted?: boolean | undefined;
4461
4975
  keepAssignmentIfRejected?: boolean | undefined;
4976
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4977
+ content: {
4978
+ reason: string;
4979
+ };
4980
+ transactionId: string;
4981
+ eventId: string;
4982
+ type?: "ESCALATE" | undefined;
4983
+ createdAtLocation?: string | null | undefined;
4984
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4985
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4986
+ originalActionId?: string | undefined;
4987
+ keepAssignment?: boolean | undefined;
4988
+ keepAssignmentIfAccepted?: boolean | undefined;
4989
+ keepAssignmentIfRejected?: boolean | undefined;
4462
4990
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4463
4991
  transactionId: string;
4464
4992
  eventId: string;
@@ -4667,16 +5195,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4667
5195
  keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
4668
5196
  keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
4669
5197
  createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
4670
- }, "transactionId" | "eventId" | "keepAssignment">, {
5198
+ }, "eventId" | "transactionId" | "keepAssignment">, {
4671
5199
  actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
4672
5200
  }>, "strip", import("zod").ZodTypeAny, {
4673
- transactionId: string;
4674
5201
  eventId: string & import("zod").BRAND<"UUID">;
5202
+ transactionId: string;
4675
5203
  actionId: string & import("zod").BRAND<"UUID">;
4676
5204
  keepAssignment?: boolean | undefined;
4677
5205
  }, {
4678
- transactionId: string;
4679
5206
  eventId: string;
5207
+ transactionId: string;
4680
5208
  actionId: string;
4681
5209
  keepAssignment?: boolean | undefined;
4682
5210
  }>>;
@@ -4733,6 +5261,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4733
5261
  keepAssignment?: boolean | undefined;
4734
5262
  keepAssignmentIfAccepted?: boolean | undefined;
4735
5263
  keepAssignmentIfRejected?: boolean | undefined;
5264
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5265
+ content: {
5266
+ reason: string;
5267
+ };
5268
+ transactionId: string;
5269
+ eventId: string;
5270
+ type?: "ESCALATE" | undefined;
5271
+ createdAtLocation?: string | null | undefined;
5272
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
5273
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
5274
+ originalActionId?: string | undefined;
5275
+ keepAssignment?: boolean | undefined;
5276
+ keepAssignmentIfAccepted?: boolean | undefined;
5277
+ keepAssignmentIfRejected?: boolean | undefined;
4736
5278
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4737
5279
  transactionId: string;
4738
5280
  eventId: string;
@@ -4941,16 +5483,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4941
5483
  keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
4942
5484
  keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
4943
5485
  createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
4944
- }, "transactionId" | "eventId" | "keepAssignment">, {
5486
+ }, "eventId" | "transactionId" | "keepAssignment">, {
4945
5487
  actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
4946
5488
  }>, "strip", import("zod").ZodTypeAny, {
4947
- transactionId: string;
4948
5489
  eventId: string & import("zod").BRAND<"UUID">;
5490
+ transactionId: string;
4949
5491
  actionId: string & import("zod").BRAND<"UUID">;
4950
5492
  keepAssignment?: boolean | undefined;
4951
5493
  }, {
4952
- transactionId: string;
4953
5494
  eventId: string;
5495
+ transactionId: string;
4954
5496
  actionId: string;
4955
5497
  keepAssignment?: boolean | undefined;
4956
5498
  }>>;
@@ -5074,6 +5616,23 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5074
5616
  createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
5075
5617
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
5076
5618
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
5619
+ } | {
5620
+ type: "ESCALATE";
5621
+ id: string & import("zod").BRAND<"UUID">;
5622
+ status: "Rejected" | "Requested" | "Accepted";
5623
+ content: {
5624
+ reason: string;
5625
+ };
5626
+ transactionId: string;
5627
+ createdByUserType: "system" | "user";
5628
+ createdAt: string;
5629
+ createdBy: string;
5630
+ createdByRole: string;
5631
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
5632
+ createdBySignature?: string | null | undefined;
5633
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
5634
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
5635
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
5077
5636
  } | {
5078
5637
  type: "REJECT";
5079
5638
  id: string & import("zod").BRAND<"UUID">;
@@ -5266,7 +5825,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5266
5825
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
5267
5826
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
5268
5827
  } | {
5269
- type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
5828
+ type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "ESCALATE" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
5270
5829
  id: string & import("zod").BRAND<"UUID">;
5271
5830
  status: "Rejected";
5272
5831
  transactionId: string;
@@ -5372,6 +5931,23 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5372
5931
  createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
5373
5932
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
5374
5933
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
5934
+ } | {
5935
+ type: "ESCALATE";
5936
+ id: string & import("zod").BRAND<"UUID">;
5937
+ status: "Rejected" | "Requested" | "Accepted";
5938
+ content: {
5939
+ reason: string;
5940
+ };
5941
+ transactionId: string;
5942
+ createdByUserType: "system" | "user";
5943
+ createdAt: string;
5944
+ createdBy: string;
5945
+ createdByRole: string;
5946
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
5947
+ createdBySignature?: string | null | undefined;
5948
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
5949
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
5950
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
5375
5951
  } | {
5376
5952
  type: "REJECT";
5377
5953
  id: string & import("zod").BRAND<"UUID">;
@@ -5564,7 +6140,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5564
6140
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
5565
6141
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
5566
6142
  } | {
5567
- type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
6143
+ type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "ESCALATE" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
5568
6144
  id: string & import("zod").BRAND<"UUID">;
5569
6145
  status: "Rejected";
5570
6146
  transactionId: string;
@@ -5716,6 +6292,23 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5716
6292
  createdAtLocation?: string | null | undefined;
5717
6293
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
5718
6294
  originalActionId?: string | null | undefined;
6295
+ } | {
6296
+ type: "ESCALATE";
6297
+ id: string;
6298
+ status: "Rejected" | "Requested" | "Accepted";
6299
+ content: {
6300
+ reason: string;
6301
+ };
6302
+ transactionId: string;
6303
+ createdByUserType: "system" | "user";
6304
+ createdAt: string;
6305
+ createdBy: string;
6306
+ createdByRole: string;
6307
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
6308
+ createdBySignature?: string | null | undefined;
6309
+ createdAtLocation?: string | null | undefined;
6310
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
6311
+ originalActionId?: string | null | undefined;
5719
6312
  } | {
5720
6313
  type: "REJECT";
5721
6314
  id: string;
@@ -5908,7 +6501,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5908
6501
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
5909
6502
  originalActionId?: string | null | undefined;
5910
6503
  } | {
5911
- type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
6504
+ type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "ESCALATE" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
5912
6505
  id: string;
5913
6506
  status: "Rejected";
5914
6507
  transactionId: string;
@@ -6058,7 +6651,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6058
6651
  count?: number | undefined;
6059
6652
  timeStart?: string | undefined;
6060
6653
  timeEnd?: string | undefined;
6061
- actionTypes?: ("READ" | "DECLARE" | "VALIDATE" | "REJECT" | "ARCHIVE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CREATE" | "NOTIFY" | "DUPLICATE_DETECTED" | "MARK_AS_DUPLICATE" | "ASSIGN" | "UNASSIGN" | "MARK_AS_NOT_DUPLICATE")[] | undefined;
6654
+ actionTypes?: ("READ" | "DECLARE" | "VALIDATE" | "ESCALATE" | "REJECT" | "ARCHIVE" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CREATE" | "NOTIFY" | "DUPLICATE_DETECTED" | "MARK_AS_DUPLICATE" | "ASSIGN" | "UNASSIGN" | "MARK_AS_NOT_DUPLICATE")[] | undefined;
6062
6655
  };
6063
6656
  output: {
6064
6657
  results: {
@@ -6067,20 +6660,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6067
6660
  eventType: string | null;
6068
6661
  createdAt: string | null;
6069
6662
  updatedAt: string | null;
6070
- transactionId: string | null;
6071
- eventId: string & import("zod").BRAND<"UUID">;
6072
6663
  actionType: import("../storage/postgres/events/schema/app/ActionType").default;
6073
- declaration: Record<string, any>;
6074
6664
  annotation: Record<string, any> | null;
6665
+ assignedTo: string | null;
6666
+ createdAtLocation: (string & import("zod").BRAND<"UUID">) | null;
6075
6667
  createdBy: string;
6076
6668
  createdByRole: string;
6077
- createdByUserType: import("../storage/postgres/events/schema/app/UserType").default;
6078
6669
  createdBySignature: string | null;
6079
- createdAtLocation: (string & import("zod").BRAND<"UUID">) | null;
6080
- assignedTo: string | null;
6670
+ createdByUserType: import("../storage/postgres/events/schema/app/UserType").default;
6671
+ declaration: Record<string, any>;
6672
+ eventId: string & import("zod").BRAND<"UUID">;
6081
6673
  originalActionId: (string & import("zod").BRAND<"UUID">) | null;
6082
6674
  registrationNumber: string | null;
6083
6675
  requestId: string | null;
6676
+ transactionId: string | null;
6084
6677
  content: Record<string, any> | null;
6085
6678
  trackingId: string | null;
6086
6679
  }[];
@@ -6189,7 +6782,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6189
6782
  output: {
6190
6783
  name: import("../commons").TranslationConfig;
6191
6784
  actions: {
6192
- type: "DELETE" | "DECLARE" | "VALIDATE" | "REGISTER" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
6785
+ type: "DELETE" | "DECLARE" | "VALIDATE" | "REGISTER" | "ESCALATE" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
6193
6786
  conditionals?: import("../commons").JSONSchema[] | undefined;
6194
6787
  }[];
6195
6788
  query: {