@opencrvs/toolkit 2.0.0-rc.b6a4023 → 2.0.0-rc.b99f685

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.
@@ -1105,8 +1105,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1105
1105
  annotation?: Record<string, unknown> | undefined;
1106
1106
  originalActionId?: string | undefined;
1107
1107
  keepAssignment?: boolean | undefined;
1108
- keepAssignmentIfAccepted?: boolean | undefined;
1109
- keepAssignmentIfRejected?: boolean | undefined;
1110
1108
  waitFor?: boolean | undefined;
1111
1109
  createdAtLocation?: string | null | undefined;
1112
1110
  };
@@ -1182,265 +1180,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1182
1180
  meta: import("trpc-to-openapi").OpenApiMeta;
1183
1181
  }>;
1184
1182
  accept: import("@trpc/server").TRPCMutationProcedure<{
1185
- input: (Omit<{
1186
- eventId: string;
1187
- transactionId: string;
1188
- declaration?: Record<string, unknown> | undefined;
1189
- annotation?: Record<string, unknown> | undefined;
1190
- originalActionId?: string | undefined;
1191
- keepAssignment?: boolean | undefined;
1192
- keepAssignmentIfAccepted?: boolean | undefined;
1193
- keepAssignmentIfRejected?: boolean | undefined;
1194
- waitFor?: boolean | undefined;
1195
- type?: "CREATE" | undefined;
1196
- createdAtLocation?: string | null | undefined;
1197
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1198
- eventId: string;
1199
- transactionId: string;
1200
- declaration?: Record<string, unknown> | undefined;
1201
- annotation?: Record<string, unknown> | undefined;
1202
- originalActionId?: string | undefined;
1203
- keepAssignment?: boolean | undefined;
1204
- keepAssignmentIfAccepted?: boolean | undefined;
1205
- keepAssignmentIfRejected?: boolean | undefined;
1206
- waitFor?: boolean | undefined;
1207
- createdAtLocation?: string | null | undefined;
1208
- type?: "REGISTER" | undefined;
1209
- registrationNumber?: string | undefined;
1210
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1211
- eventId: string;
1212
- transactionId: string;
1213
- declaration?: Record<string, unknown> | undefined;
1214
- annotation?: Record<string, unknown> | undefined;
1215
- originalActionId?: string | undefined;
1216
- keepAssignment?: boolean | undefined;
1217
- keepAssignmentIfAccepted?: boolean | undefined;
1218
- keepAssignmentIfRejected?: boolean | undefined;
1219
- waitFor?: boolean | undefined;
1220
- type?: "NOTIFY" | undefined;
1221
- createdAtLocation?: string | null | undefined;
1222
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1223
- eventId: string;
1224
- transactionId: string;
1225
- declaration?: Record<string, unknown> | undefined;
1226
- annotation?: Record<string, unknown> | undefined;
1227
- originalActionId?: string | undefined;
1228
- keepAssignment?: boolean | undefined;
1229
- keepAssignmentIfAccepted?: boolean | undefined;
1230
- keepAssignmentIfRejected?: boolean | undefined;
1231
- waitFor?: boolean | undefined;
1232
- createdAtLocation?: string | null | undefined;
1233
- type?: "DECLARE" | undefined;
1234
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1235
- eventId: string;
1236
- transactionId: string;
1237
- content: {
1238
- reason: string;
1239
- };
1240
- declaration?: Record<string, unknown> | undefined;
1241
- annotation?: Record<string, unknown> | undefined;
1242
- originalActionId?: string | undefined;
1243
- keepAssignment?: boolean | undefined;
1244
- keepAssignmentIfAccepted?: boolean | undefined;
1245
- keepAssignmentIfRejected?: boolean | undefined;
1246
- waitFor?: boolean | undefined;
1247
- createdAtLocation?: string | null | undefined;
1248
- type?: "REJECT" | undefined;
1249
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1250
- eventId: string;
1251
- transactionId: string;
1252
- content: {
1253
- duplicates: {
1254
- id: string;
1255
- trackingId: string;
1256
- }[];
1257
- };
1258
- declaration?: Record<string, unknown> | undefined;
1259
- annotation?: Record<string, unknown> | undefined;
1260
- originalActionId?: string | undefined;
1261
- keepAssignment?: boolean | undefined;
1262
- keepAssignmentIfAccepted?: boolean | undefined;
1263
- keepAssignmentIfRejected?: boolean | undefined;
1264
- waitFor?: boolean | undefined;
1265
- createdAtLocation?: string | null | undefined;
1266
- type?: "DUPLICATE_DETECTED" | undefined;
1267
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1268
- eventId: string;
1269
- transactionId: string;
1270
- declaration?: Record<string, unknown> | undefined;
1271
- annotation?: Record<string, unknown> | undefined;
1272
- originalActionId?: string | undefined;
1273
- keepAssignment?: boolean | undefined;
1274
- keepAssignmentIfAccepted?: boolean | undefined;
1275
- keepAssignmentIfRejected?: boolean | undefined;
1276
- waitFor?: boolean | undefined;
1277
- createdAtLocation?: string | null | undefined;
1278
- type?: "MARK_AS_DUPLICATE" | undefined;
1279
- content?: {
1280
- duplicateOf: string;
1281
- } | undefined;
1282
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1283
- eventId: string;
1284
- transactionId: string;
1285
- declaration?: Record<string, unknown> | undefined;
1286
- annotation?: Record<string, unknown> | undefined;
1287
- originalActionId?: string | undefined;
1288
- keepAssignment?: boolean | undefined;
1289
- keepAssignmentIfAccepted?: boolean | undefined;
1290
- keepAssignmentIfRejected?: boolean | undefined;
1291
- waitFor?: boolean | undefined;
1292
- createdAtLocation?: string | null | undefined;
1293
- type?: "MARK_AS_NOT_DUPLICATE" | undefined;
1294
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1295
- eventId: string;
1296
- transactionId: string;
1297
- content: {
1298
- reason: string;
1299
- };
1300
- declaration?: Record<string, unknown> | undefined;
1301
- annotation?: Record<string, unknown> | undefined;
1302
- originalActionId?: string | undefined;
1303
- keepAssignment?: boolean | undefined;
1304
- keepAssignmentIfAccepted?: boolean | undefined;
1305
- keepAssignmentIfRejected?: boolean | undefined;
1306
- waitFor?: boolean | undefined;
1307
- createdAtLocation?: string | null | undefined;
1308
- type?: "ARCHIVE" | undefined;
1309
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1310
- eventId: string;
1311
- transactionId: string;
1312
- type: "ASSIGN";
1313
- assignedTo: string;
1314
- declaration?: Record<string, unknown> | undefined;
1315
- annotation?: Record<string, unknown> | undefined;
1316
- originalActionId?: string | undefined;
1317
- keepAssignment?: boolean | undefined;
1318
- keepAssignmentIfAccepted?: boolean | undefined;
1319
- keepAssignmentIfRejected?: boolean | undefined;
1320
- waitFor?: boolean | undefined;
1321
- createdAtLocation?: string | null | undefined;
1322
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1323
- eventId: string;
1324
- transactionId: string;
1325
- declaration?: Record<string, unknown> | undefined;
1326
- annotation?: Record<string, unknown> | undefined;
1327
- originalActionId?: string | undefined;
1328
- keepAssignment?: boolean | undefined;
1329
- keepAssignmentIfAccepted?: boolean | undefined;
1330
- keepAssignmentIfRejected?: boolean | undefined;
1331
- waitFor?: boolean | undefined;
1332
- createdAtLocation?: string | null | undefined;
1333
- type?: "UNASSIGN" | undefined;
1334
- assignedTo?: null | undefined;
1335
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1336
- eventId: string;
1337
- transactionId: string;
1338
- declaration?: Record<string, unknown> | undefined;
1339
- annotation?: Record<string, unknown> | undefined;
1340
- originalActionId?: string | undefined;
1341
- keepAssignment?: boolean | undefined;
1342
- keepAssignmentIfAccepted?: boolean | undefined;
1343
- keepAssignmentIfRejected?: boolean | undefined;
1344
- waitFor?: boolean | undefined;
1345
- createdAtLocation?: string | null | undefined;
1346
- type?: "PRINT_CERTIFICATE" | undefined;
1347
- content?: {
1348
- templateId?: string | undefined;
1349
- } | undefined;
1350
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1351
- eventId: string;
1352
- transactionId: string;
1353
- declaration?: Record<string, unknown> | undefined;
1354
- annotation?: Record<string, unknown> | undefined;
1355
- originalActionId?: string | undefined;
1356
- keepAssignment?: boolean | undefined;
1357
- keepAssignmentIfAccepted?: boolean | undefined;
1358
- keepAssignmentIfRejected?: boolean | undefined;
1359
- waitFor?: boolean | undefined;
1360
- createdAtLocation?: string | null | undefined;
1361
- type?: "REQUEST_CORRECTION" | undefined;
1362
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1363
- eventId: string;
1364
- transactionId: string;
1365
- requestId: string;
1366
- content: {
1367
- reason: string;
1368
- };
1369
- declaration?: Record<string, unknown> | undefined;
1370
- annotation?: Record<string, unknown> | undefined;
1371
- originalActionId?: string | undefined;
1372
- keepAssignment?: boolean | undefined;
1373
- keepAssignmentIfAccepted?: boolean | undefined;
1374
- keepAssignmentIfRejected?: boolean | undefined;
1375
- waitFor?: boolean | undefined;
1376
- createdAtLocation?: string | null | undefined;
1377
- type?: "REJECT_CORRECTION" | undefined;
1378
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1379
- eventId: string;
1380
- transactionId: string;
1381
- requestId: string;
1382
- declaration?: Record<string, unknown> | undefined;
1383
- annotation?: Record<string, unknown> | undefined;
1384
- originalActionId?: string | undefined;
1385
- keepAssignment?: boolean | undefined;
1386
- keepAssignmentIfAccepted?: boolean | undefined;
1387
- keepAssignmentIfRejected?: boolean | undefined;
1388
- waitFor?: boolean | undefined;
1389
- createdAtLocation?: string | null | undefined;
1390
- type?: "APPROVE_CORRECTION" | undefined;
1391
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1392
- eventId: string;
1393
- transactionId: string;
1394
- declaration?: Record<string, unknown> | undefined;
1395
- annotation?: Record<string, unknown> | undefined;
1396
- originalActionId?: string | undefined;
1397
- keepAssignment?: boolean | undefined;
1398
- keepAssignmentIfAccepted?: boolean | undefined;
1399
- keepAssignmentIfRejected?: boolean | undefined;
1400
- waitFor?: boolean | undefined;
1401
- createdAtLocation?: string | null | undefined;
1402
- type?: "READ" | undefined;
1403
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1404
- eventId: string;
1405
- transactionId: string;
1406
- customActionType: string;
1407
- declaration?: Record<string, unknown> | undefined;
1408
- annotation?: Record<string, unknown> | undefined;
1409
- originalActionId?: string | undefined;
1410
- keepAssignment?: boolean | undefined;
1411
- keepAssignmentIfAccepted?: boolean | undefined;
1412
- keepAssignmentIfRejected?: boolean | undefined;
1413
- waitFor?: boolean | undefined;
1414
- createdAtLocation?: string | null | undefined;
1415
- type?: "CUSTOM" | undefined;
1416
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1417
- eventId: string;
1418
- transactionId: string;
1419
- content: {
1420
- comment?: string | undefined;
1421
- };
1422
- declaration?: Record<string, unknown> | undefined;
1423
- annotation?: Record<string, unknown> | undefined;
1424
- originalActionId?: string | undefined;
1425
- keepAssignment?: boolean | undefined;
1426
- keepAssignmentIfAccepted?: boolean | undefined;
1427
- keepAssignmentIfRejected?: boolean | undefined;
1428
- waitFor?: boolean | undefined;
1429
- createdAtLocation?: string | null | undefined;
1430
- type?: "EDIT" | undefined;
1431
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
1183
+ input: import("../commons").ActionInput & {
1432
1184
  actionId: string;
1433
1185
  };
1434
1186
  output: import("../commons").EventDocument;
1435
1187
  meta: import("trpc-to-openapi").OpenApiMeta;
1436
1188
  }>;
1437
1189
  reject: import("@trpc/server").TRPCMutationProcedure<{
1438
- input: import("zod").input<import("zod").ZodObject<{
1439
- transactionId: import("zod").ZodString;
1440
- eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
1441
- keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
1442
- actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
1443
- }, import("zod/v4/core").$strip>>;
1190
+ input: {
1191
+ eventId: string;
1192
+ actionId: string;
1193
+ transactionId: string;
1194
+ };
1444
1195
  output: import("../commons").EventDocument;
1445
1196
  meta: import("trpc-to-openapi").OpenApiMeta;
1446
1197
  }>;
@@ -1475,8 +1226,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1475
1226
  annotation?: Record<string, unknown> | undefined;
1476
1227
  originalActionId?: string | undefined;
1477
1228
  keepAssignment?: boolean | undefined;
1478
- keepAssignmentIfAccepted?: boolean | undefined;
1479
- keepAssignmentIfRejected?: boolean | undefined;
1480
1229
  waitFor?: boolean | undefined;
1481
1230
  createdAtLocation?: string | null | undefined;
1482
1231
  type?: "DECLARE" | undefined;
@@ -1785,1434 +1534,111 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1785
1534
  meta: import("trpc-to-openapi").OpenApiMeta;
1786
1535
  }>;
1787
1536
  accept: import("@trpc/server").TRPCMutationProcedure<{
1788
- input: (Omit<{
1789
- eventId: string;
1790
- transactionId: string;
1791
- declaration?: Record<string, unknown> | undefined;
1792
- annotation?: Record<string, unknown> | undefined;
1793
- originalActionId?: string | undefined;
1794
- keepAssignment?: boolean | undefined;
1795
- keepAssignmentIfAccepted?: boolean | undefined;
1796
- keepAssignmentIfRejected?: boolean | undefined;
1797
- waitFor?: boolean | undefined;
1798
- type?: "CREATE" | undefined;
1799
- createdAtLocation?: string | null | undefined;
1800
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1801
- eventId: string;
1802
- transactionId: string;
1803
- declaration?: Record<string, unknown> | undefined;
1804
- annotation?: Record<string, unknown> | undefined;
1805
- originalActionId?: string | undefined;
1806
- keepAssignment?: boolean | undefined;
1807
- keepAssignmentIfAccepted?: boolean | undefined;
1808
- keepAssignmentIfRejected?: boolean | undefined;
1809
- waitFor?: boolean | undefined;
1810
- createdAtLocation?: string | null | undefined;
1811
- type?: "REGISTER" | undefined;
1812
- registrationNumber?: string | undefined;
1813
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1814
- eventId: string;
1815
- transactionId: string;
1816
- declaration?: Record<string, unknown> | undefined;
1817
- annotation?: Record<string, unknown> | undefined;
1818
- originalActionId?: string | undefined;
1819
- keepAssignment?: boolean | undefined;
1820
- keepAssignmentIfAccepted?: boolean | undefined;
1821
- keepAssignmentIfRejected?: boolean | undefined;
1822
- waitFor?: boolean | undefined;
1823
- type?: "NOTIFY" | undefined;
1824
- createdAtLocation?: string | null | undefined;
1825
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1537
+ input: import("../commons").ActionInput & {
1538
+ actionId: string;
1539
+ };
1540
+ output: import("../commons").EventDocument;
1541
+ meta: import("trpc-to-openapi").OpenApiMeta;
1542
+ }>;
1543
+ reject: import("@trpc/server").TRPCMutationProcedure<{
1544
+ input: {
1826
1545
  eventId: string;
1546
+ actionId: string;
1827
1547
  transactionId: string;
1828
- declaration?: Record<string, unknown> | undefined;
1829
- annotation?: Record<string, unknown> | undefined;
1830
- originalActionId?: string | undefined;
1831
- keepAssignment?: boolean | undefined;
1832
- keepAssignmentIfAccepted?: boolean | undefined;
1833
- keepAssignmentIfRejected?: boolean | undefined;
1834
- waitFor?: boolean | undefined;
1835
- createdAtLocation?: string | null | undefined;
1836
- type?: "DECLARE" | undefined;
1837
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1548
+ };
1549
+ output: import("../commons").EventDocument;
1550
+ meta: import("trpc-to-openapi").OpenApiMeta;
1551
+ }>;
1552
+ }>>;
1553
+ edit: import("@trpc/server").TRPCBuiltRouter<{
1554
+ ctx: Partial<{
1555
+ token: `Bearer ${string}`;
1556
+ user: {
1557
+ id: string & import("zod").$brand<"UUID">;
1558
+ type: "system";
1559
+ signature?: undefined;
1560
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1561
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1562
+ } | {
1563
+ id: string & import("zod").$brand<"UUID">;
1564
+ type: "user";
1565
+ role: string;
1566
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
1567
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1568
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1569
+ };
1570
+ }>;
1571
+ meta: import("trpc-to-openapi").OpenApiMeta;
1572
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1573
+ transformer: true;
1574
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1575
+ request: import("@trpc/server").TRPCMutationProcedure<{
1576
+ input: import("../commons").ActionInput;
1577
+ output: import("../commons").EventDocument;
1578
+ meta: import("trpc-to-openapi").OpenApiMeta;
1579
+ }>;
1580
+ accept: import("@trpc/server").TRPCMutationProcedure<{
1581
+ input: import("../commons").ActionInput & {
1582
+ actionId: string;
1583
+ };
1584
+ output: import("../commons").EventDocument;
1585
+ meta: import("trpc-to-openapi").OpenApiMeta;
1586
+ }>;
1587
+ reject: import("@trpc/server").TRPCMutationProcedure<{
1588
+ input: {
1838
1589
  eventId: string;
1590
+ actionId: string;
1839
1591
  transactionId: string;
1840
- content: {
1841
- reason: string;
1842
- };
1843
- declaration?: Record<string, unknown> | undefined;
1844
- annotation?: Record<string, unknown> | undefined;
1845
- originalActionId?: string | undefined;
1846
- keepAssignment?: boolean | undefined;
1847
- keepAssignmentIfAccepted?: boolean | undefined;
1848
- keepAssignmentIfRejected?: boolean | undefined;
1849
- waitFor?: boolean | undefined;
1850
- createdAtLocation?: string | null | undefined;
1851
- type?: "REJECT" | undefined;
1852
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1853
- eventId: string;
1854
- transactionId: string;
1855
- content: {
1856
- duplicates: {
1857
- id: string;
1858
- trackingId: string;
1859
- }[];
1860
- };
1861
- declaration?: Record<string, unknown> | undefined;
1862
- annotation?: Record<string, unknown> | undefined;
1863
- originalActionId?: string | undefined;
1864
- keepAssignment?: boolean | undefined;
1865
- keepAssignmentIfAccepted?: boolean | undefined;
1866
- keepAssignmentIfRejected?: boolean | undefined;
1867
- waitFor?: boolean | undefined;
1868
- createdAtLocation?: string | null | undefined;
1869
- type?: "DUPLICATE_DETECTED" | undefined;
1870
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1871
- eventId: string;
1872
- transactionId: string;
1873
- declaration?: Record<string, unknown> | undefined;
1874
- annotation?: Record<string, unknown> | undefined;
1875
- originalActionId?: string | undefined;
1876
- keepAssignment?: boolean | undefined;
1877
- keepAssignmentIfAccepted?: boolean | undefined;
1878
- keepAssignmentIfRejected?: boolean | undefined;
1879
- waitFor?: boolean | undefined;
1880
- createdAtLocation?: string | null | undefined;
1881
- type?: "MARK_AS_DUPLICATE" | undefined;
1882
- content?: {
1883
- duplicateOf: string;
1884
- } | undefined;
1885
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1886
- eventId: string;
1887
- transactionId: string;
1888
- declaration?: Record<string, unknown> | undefined;
1889
- annotation?: Record<string, unknown> | undefined;
1890
- originalActionId?: string | undefined;
1891
- keepAssignment?: boolean | undefined;
1892
- keepAssignmentIfAccepted?: boolean | undefined;
1893
- keepAssignmentIfRejected?: boolean | undefined;
1894
- waitFor?: boolean | undefined;
1895
- createdAtLocation?: string | null | undefined;
1896
- type?: "MARK_AS_NOT_DUPLICATE" | undefined;
1897
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1898
- eventId: string;
1899
- transactionId: string;
1900
- content: {
1901
- reason: string;
1902
- };
1903
- declaration?: Record<string, unknown> | undefined;
1904
- annotation?: Record<string, unknown> | undefined;
1905
- originalActionId?: string | undefined;
1906
- keepAssignment?: boolean | undefined;
1907
- keepAssignmentIfAccepted?: boolean | undefined;
1908
- keepAssignmentIfRejected?: boolean | undefined;
1909
- waitFor?: boolean | undefined;
1910
- createdAtLocation?: string | null | undefined;
1911
- type?: "ARCHIVE" | undefined;
1912
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1913
- eventId: string;
1914
- transactionId: string;
1915
- type: "ASSIGN";
1916
- assignedTo: string;
1917
- declaration?: Record<string, unknown> | undefined;
1918
- annotation?: Record<string, unknown> | undefined;
1919
- originalActionId?: string | undefined;
1920
- keepAssignment?: boolean | undefined;
1921
- keepAssignmentIfAccepted?: boolean | undefined;
1922
- keepAssignmentIfRejected?: boolean | undefined;
1923
- waitFor?: boolean | undefined;
1924
- createdAtLocation?: string | null | undefined;
1925
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1926
- eventId: string;
1927
- transactionId: string;
1928
- declaration?: Record<string, unknown> | undefined;
1929
- annotation?: Record<string, unknown> | undefined;
1930
- originalActionId?: string | undefined;
1931
- keepAssignment?: boolean | undefined;
1932
- keepAssignmentIfAccepted?: boolean | undefined;
1933
- keepAssignmentIfRejected?: boolean | undefined;
1934
- waitFor?: boolean | undefined;
1935
- createdAtLocation?: string | null | undefined;
1936
- type?: "UNASSIGN" | undefined;
1937
- assignedTo?: null | undefined;
1938
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1939
- eventId: string;
1940
- transactionId: string;
1941
- declaration?: Record<string, unknown> | undefined;
1942
- annotation?: Record<string, unknown> | undefined;
1943
- originalActionId?: string | undefined;
1944
- keepAssignment?: boolean | undefined;
1945
- keepAssignmentIfAccepted?: boolean | undefined;
1946
- keepAssignmentIfRejected?: boolean | undefined;
1947
- waitFor?: boolean | undefined;
1948
- createdAtLocation?: string | null | undefined;
1949
- type?: "PRINT_CERTIFICATE" | undefined;
1950
- content?: {
1951
- templateId?: string | undefined;
1952
- } | undefined;
1953
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1954
- eventId: string;
1955
- transactionId: string;
1956
- declaration?: Record<string, unknown> | undefined;
1957
- annotation?: Record<string, unknown> | undefined;
1958
- originalActionId?: string | undefined;
1959
- keepAssignment?: boolean | undefined;
1960
- keepAssignmentIfAccepted?: boolean | undefined;
1961
- keepAssignmentIfRejected?: boolean | undefined;
1962
- waitFor?: boolean | undefined;
1963
- createdAtLocation?: string | null | undefined;
1964
- type?: "REQUEST_CORRECTION" | undefined;
1965
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1966
- eventId: string;
1967
- transactionId: string;
1968
- requestId: string;
1969
- content: {
1970
- reason: string;
1971
- };
1972
- declaration?: Record<string, unknown> | undefined;
1973
- annotation?: Record<string, unknown> | undefined;
1974
- originalActionId?: string | undefined;
1975
- keepAssignment?: boolean | undefined;
1976
- keepAssignmentIfAccepted?: boolean | undefined;
1977
- keepAssignmentIfRejected?: boolean | undefined;
1978
- waitFor?: boolean | undefined;
1979
- createdAtLocation?: string | null | undefined;
1980
- type?: "REJECT_CORRECTION" | undefined;
1981
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1982
- eventId: string;
1983
- transactionId: string;
1984
- requestId: string;
1985
- declaration?: Record<string, unknown> | undefined;
1986
- annotation?: Record<string, unknown> | undefined;
1987
- originalActionId?: string | undefined;
1988
- keepAssignment?: boolean | undefined;
1989
- keepAssignmentIfAccepted?: boolean | undefined;
1990
- keepAssignmentIfRejected?: boolean | undefined;
1991
- waitFor?: boolean | undefined;
1992
- createdAtLocation?: string | null | undefined;
1993
- type?: "APPROVE_CORRECTION" | undefined;
1994
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1995
- eventId: string;
1996
- transactionId: string;
1997
- declaration?: Record<string, unknown> | undefined;
1998
- annotation?: Record<string, unknown> | undefined;
1999
- originalActionId?: string | undefined;
2000
- keepAssignment?: boolean | undefined;
2001
- keepAssignmentIfAccepted?: boolean | undefined;
2002
- keepAssignmentIfRejected?: boolean | undefined;
2003
- waitFor?: boolean | undefined;
2004
- createdAtLocation?: string | null | undefined;
2005
- type?: "READ" | undefined;
2006
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2007
- eventId: string;
2008
- transactionId: string;
2009
- customActionType: string;
2010
- declaration?: Record<string, unknown> | undefined;
2011
- annotation?: Record<string, unknown> | undefined;
2012
- originalActionId?: string | undefined;
2013
- keepAssignment?: boolean | undefined;
2014
- keepAssignmentIfAccepted?: boolean | undefined;
2015
- keepAssignmentIfRejected?: boolean | undefined;
2016
- waitFor?: boolean | undefined;
2017
- createdAtLocation?: string | null | undefined;
2018
- type?: "CUSTOM" | undefined;
2019
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2020
- eventId: string;
2021
- transactionId: string;
2022
- content: {
2023
- comment?: string | undefined;
2024
- };
2025
- declaration?: Record<string, unknown> | undefined;
2026
- annotation?: Record<string, unknown> | undefined;
2027
- originalActionId?: string | undefined;
2028
- keepAssignment?: boolean | undefined;
2029
- keepAssignmentIfAccepted?: boolean | undefined;
2030
- keepAssignmentIfRejected?: boolean | undefined;
2031
- waitFor?: boolean | undefined;
2032
- createdAtLocation?: string | null | undefined;
2033
- type?: "EDIT" | undefined;
2034
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2035
- actionId: string;
2036
- };
2037
- output: import("../commons").EventDocument;
2038
- meta: import("trpc-to-openapi").OpenApiMeta;
2039
- }>;
2040
- reject: import("@trpc/server").TRPCMutationProcedure<{
2041
- input: import("zod").input<import("zod").ZodObject<{
2042
- transactionId: import("zod").ZodString;
2043
- eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2044
- keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2045
- actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2046
- }, import("zod/v4/core").$strip>>;
2047
- output: import("../commons").EventDocument;
2048
- meta: import("trpc-to-openapi").OpenApiMeta;
2049
- }>;
2050
- }>>;
2051
- edit: import("@trpc/server").TRPCBuiltRouter<{
2052
- ctx: Partial<{
2053
- token: `Bearer ${string}`;
2054
- user: {
2055
- id: string & import("zod").$brand<"UUID">;
2056
- type: "system";
2057
- signature?: undefined;
2058
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2059
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2060
- } | {
2061
- id: string & import("zod").$brand<"UUID">;
2062
- type: "user";
2063
- role: string;
2064
- primaryOfficeId: string & import("zod").$brand<"UUID">;
2065
- signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2066
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2067
- };
2068
- }>;
2069
- meta: import("trpc-to-openapi").OpenApiMeta;
2070
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
2071
- transformer: true;
2072
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
2073
- request: import("@trpc/server").TRPCMutationProcedure<{
2074
- input: import("../commons").ActionInput;
2075
- output: import("../commons").EventDocument;
2076
- meta: import("trpc-to-openapi").OpenApiMeta;
2077
- }>;
2078
- accept: import("@trpc/server").TRPCMutationProcedure<{
2079
- input: (Omit<{
2080
- eventId: string;
2081
- transactionId: string;
2082
- declaration?: Record<string, unknown> | undefined;
2083
- annotation?: Record<string, unknown> | undefined;
2084
- originalActionId?: string | undefined;
2085
- keepAssignment?: boolean | undefined;
2086
- keepAssignmentIfAccepted?: boolean | undefined;
2087
- keepAssignmentIfRejected?: boolean | undefined;
2088
- waitFor?: boolean | undefined;
2089
- type?: "CREATE" | undefined;
2090
- createdAtLocation?: string | null | undefined;
2091
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2092
- eventId: string;
2093
- transactionId: string;
2094
- declaration?: Record<string, unknown> | undefined;
2095
- annotation?: Record<string, unknown> | undefined;
2096
- originalActionId?: string | undefined;
2097
- keepAssignment?: boolean | undefined;
2098
- keepAssignmentIfAccepted?: boolean | undefined;
2099
- keepAssignmentIfRejected?: boolean | undefined;
2100
- waitFor?: boolean | undefined;
2101
- createdAtLocation?: string | null | undefined;
2102
- type?: "REGISTER" | undefined;
2103
- registrationNumber?: string | undefined;
2104
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2105
- eventId: string;
2106
- transactionId: string;
2107
- declaration?: Record<string, unknown> | undefined;
2108
- annotation?: Record<string, unknown> | undefined;
2109
- originalActionId?: string | undefined;
2110
- keepAssignment?: boolean | undefined;
2111
- keepAssignmentIfAccepted?: boolean | undefined;
2112
- keepAssignmentIfRejected?: boolean | undefined;
2113
- waitFor?: boolean | undefined;
2114
- type?: "NOTIFY" | undefined;
2115
- createdAtLocation?: string | null | undefined;
2116
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2117
- eventId: string;
2118
- transactionId: string;
2119
- declaration?: Record<string, unknown> | undefined;
2120
- annotation?: Record<string, unknown> | undefined;
2121
- originalActionId?: string | undefined;
2122
- keepAssignment?: boolean | undefined;
2123
- keepAssignmentIfAccepted?: boolean | undefined;
2124
- keepAssignmentIfRejected?: boolean | undefined;
2125
- waitFor?: boolean | undefined;
2126
- createdAtLocation?: string | null | undefined;
2127
- type?: "DECLARE" | undefined;
2128
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2129
- eventId: string;
2130
- transactionId: string;
2131
- content: {
2132
- reason: string;
2133
- };
2134
- declaration?: Record<string, unknown> | undefined;
2135
- annotation?: Record<string, unknown> | undefined;
2136
- originalActionId?: string | undefined;
2137
- keepAssignment?: boolean | undefined;
2138
- keepAssignmentIfAccepted?: boolean | undefined;
2139
- keepAssignmentIfRejected?: boolean | undefined;
2140
- waitFor?: boolean | undefined;
2141
- createdAtLocation?: string | null | undefined;
2142
- type?: "REJECT" | undefined;
2143
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2144
- eventId: string;
2145
- transactionId: string;
2146
- content: {
2147
- duplicates: {
2148
- id: string;
2149
- trackingId: string;
2150
- }[];
2151
- };
2152
- declaration?: Record<string, unknown> | undefined;
2153
- annotation?: Record<string, unknown> | undefined;
2154
- originalActionId?: string | undefined;
2155
- keepAssignment?: boolean | undefined;
2156
- keepAssignmentIfAccepted?: boolean | undefined;
2157
- keepAssignmentIfRejected?: boolean | undefined;
2158
- waitFor?: boolean | undefined;
2159
- createdAtLocation?: string | null | undefined;
2160
- type?: "DUPLICATE_DETECTED" | undefined;
2161
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2162
- eventId: string;
2163
- transactionId: string;
2164
- declaration?: Record<string, unknown> | undefined;
2165
- annotation?: Record<string, unknown> | undefined;
2166
- originalActionId?: string | undefined;
2167
- keepAssignment?: boolean | undefined;
2168
- keepAssignmentIfAccepted?: boolean | undefined;
2169
- keepAssignmentIfRejected?: boolean | undefined;
2170
- waitFor?: boolean | undefined;
2171
- createdAtLocation?: string | null | undefined;
2172
- type?: "MARK_AS_DUPLICATE" | undefined;
2173
- content?: {
2174
- duplicateOf: string;
2175
- } | undefined;
2176
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2177
- eventId: string;
2178
- transactionId: string;
2179
- declaration?: Record<string, unknown> | undefined;
2180
- annotation?: Record<string, unknown> | undefined;
2181
- originalActionId?: string | undefined;
2182
- keepAssignment?: boolean | undefined;
2183
- keepAssignmentIfAccepted?: boolean | undefined;
2184
- keepAssignmentIfRejected?: boolean | undefined;
2185
- waitFor?: boolean | undefined;
2186
- createdAtLocation?: string | null | undefined;
2187
- type?: "MARK_AS_NOT_DUPLICATE" | undefined;
2188
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2189
- eventId: string;
2190
- transactionId: string;
2191
- content: {
2192
- reason: string;
2193
- };
2194
- declaration?: Record<string, unknown> | undefined;
2195
- annotation?: Record<string, unknown> | undefined;
2196
- originalActionId?: string | undefined;
2197
- keepAssignment?: boolean | undefined;
2198
- keepAssignmentIfAccepted?: boolean | undefined;
2199
- keepAssignmentIfRejected?: boolean | undefined;
2200
- waitFor?: boolean | undefined;
2201
- createdAtLocation?: string | null | undefined;
2202
- type?: "ARCHIVE" | undefined;
2203
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2204
- eventId: string;
2205
- transactionId: string;
2206
- type: "ASSIGN";
2207
- assignedTo: string;
2208
- declaration?: Record<string, unknown> | undefined;
2209
- annotation?: Record<string, unknown> | undefined;
2210
- originalActionId?: string | undefined;
2211
- keepAssignment?: boolean | undefined;
2212
- keepAssignmentIfAccepted?: boolean | undefined;
2213
- keepAssignmentIfRejected?: boolean | undefined;
2214
- waitFor?: boolean | undefined;
2215
- createdAtLocation?: string | null | undefined;
2216
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2217
- eventId: string;
2218
- transactionId: string;
2219
- declaration?: Record<string, unknown> | undefined;
2220
- annotation?: Record<string, unknown> | undefined;
2221
- originalActionId?: string | undefined;
2222
- keepAssignment?: boolean | undefined;
2223
- keepAssignmentIfAccepted?: boolean | undefined;
2224
- keepAssignmentIfRejected?: boolean | undefined;
2225
- waitFor?: boolean | undefined;
2226
- createdAtLocation?: string | null | undefined;
2227
- type?: "UNASSIGN" | undefined;
2228
- assignedTo?: null | undefined;
2229
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2230
- eventId: string;
2231
- transactionId: string;
2232
- declaration?: Record<string, unknown> | undefined;
2233
- annotation?: Record<string, unknown> | undefined;
2234
- originalActionId?: string | undefined;
2235
- keepAssignment?: boolean | undefined;
2236
- keepAssignmentIfAccepted?: boolean | undefined;
2237
- keepAssignmentIfRejected?: boolean | undefined;
2238
- waitFor?: boolean | undefined;
2239
- createdAtLocation?: string | null | undefined;
2240
- type?: "PRINT_CERTIFICATE" | undefined;
2241
- content?: {
2242
- templateId?: string | undefined;
2243
- } | undefined;
2244
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2245
- eventId: string;
2246
- transactionId: string;
2247
- declaration?: Record<string, unknown> | undefined;
2248
- annotation?: Record<string, unknown> | undefined;
2249
- originalActionId?: string | undefined;
2250
- keepAssignment?: boolean | undefined;
2251
- keepAssignmentIfAccepted?: boolean | undefined;
2252
- keepAssignmentIfRejected?: boolean | undefined;
2253
- waitFor?: boolean | undefined;
2254
- createdAtLocation?: string | null | undefined;
2255
- type?: "REQUEST_CORRECTION" | undefined;
2256
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2257
- eventId: string;
2258
- transactionId: string;
2259
- requestId: string;
2260
- content: {
2261
- reason: string;
2262
- };
2263
- declaration?: Record<string, unknown> | undefined;
2264
- annotation?: Record<string, unknown> | undefined;
2265
- originalActionId?: string | undefined;
2266
- keepAssignment?: boolean | undefined;
2267
- keepAssignmentIfAccepted?: boolean | undefined;
2268
- keepAssignmentIfRejected?: boolean | undefined;
2269
- waitFor?: boolean | undefined;
2270
- createdAtLocation?: string | null | undefined;
2271
- type?: "REJECT_CORRECTION" | undefined;
2272
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2273
- eventId: string;
2274
- transactionId: string;
2275
- requestId: string;
2276
- declaration?: Record<string, unknown> | undefined;
2277
- annotation?: Record<string, unknown> | undefined;
2278
- originalActionId?: string | undefined;
2279
- keepAssignment?: boolean | undefined;
2280
- keepAssignmentIfAccepted?: boolean | undefined;
2281
- keepAssignmentIfRejected?: boolean | undefined;
2282
- waitFor?: boolean | undefined;
2283
- createdAtLocation?: string | null | undefined;
2284
- type?: "APPROVE_CORRECTION" | undefined;
2285
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2286
- eventId: string;
2287
- transactionId: string;
2288
- declaration?: Record<string, unknown> | undefined;
2289
- annotation?: Record<string, unknown> | undefined;
2290
- originalActionId?: string | undefined;
2291
- keepAssignment?: boolean | undefined;
2292
- keepAssignmentIfAccepted?: boolean | undefined;
2293
- keepAssignmentIfRejected?: boolean | undefined;
2294
- waitFor?: boolean | undefined;
2295
- createdAtLocation?: string | null | undefined;
2296
- type?: "READ" | undefined;
2297
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2298
- eventId: string;
2299
- transactionId: string;
2300
- customActionType: string;
2301
- declaration?: Record<string, unknown> | undefined;
2302
- annotation?: Record<string, unknown> | undefined;
2303
- originalActionId?: string | undefined;
2304
- keepAssignment?: boolean | undefined;
2305
- keepAssignmentIfAccepted?: boolean | undefined;
2306
- keepAssignmentIfRejected?: boolean | undefined;
2307
- waitFor?: boolean | undefined;
2308
- createdAtLocation?: string | null | undefined;
2309
- type?: "CUSTOM" | undefined;
2310
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2311
- eventId: string;
2312
- transactionId: string;
2313
- content: {
2314
- comment?: string | undefined;
2315
- };
2316
- declaration?: Record<string, unknown> | undefined;
2317
- annotation?: Record<string, unknown> | undefined;
2318
- originalActionId?: string | undefined;
2319
- keepAssignment?: boolean | undefined;
2320
- keepAssignmentIfAccepted?: boolean | undefined;
2321
- keepAssignmentIfRejected?: boolean | undefined;
2322
- waitFor?: boolean | undefined;
2323
- createdAtLocation?: string | null | undefined;
2324
- type?: "EDIT" | undefined;
2325
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2326
- actionId: string;
2327
- };
2328
- output: import("../commons").EventDocument;
2329
- meta: import("trpc-to-openapi").OpenApiMeta;
2330
- }>;
2331
- reject: import("@trpc/server").TRPCMutationProcedure<{
2332
- input: import("zod").input<import("zod").ZodObject<{
2333
- transactionId: import("zod").ZodString;
2334
- eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2335
- keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2336
- actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2337
- }, import("zod/v4/core").$strip>>;
2338
- output: import("../commons").EventDocument;
2339
- meta: import("trpc-to-openapi").OpenApiMeta;
2340
- }>;
2341
- }>>;
2342
- reject: import("@trpc/server").TRPCBuiltRouter<{
2343
- ctx: Partial<{
2344
- token: `Bearer ${string}`;
2345
- user: {
2346
- id: string & import("zod").$brand<"UUID">;
2347
- type: "system";
2348
- signature?: undefined;
2349
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2350
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2351
- } | {
2352
- id: string & import("zod").$brand<"UUID">;
2353
- type: "user";
2354
- role: string;
2355
- primaryOfficeId: string & import("zod").$brand<"UUID">;
2356
- signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2357
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2358
- };
2359
- }>;
2360
- meta: import("trpc-to-openapi").OpenApiMeta;
2361
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
2362
- transformer: true;
2363
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
2364
- request: import("@trpc/server").TRPCMutationProcedure<{
2365
- input: import("../commons").ActionInput;
2366
- output: import("../commons").EventDocument;
2367
- meta: import("trpc-to-openapi").OpenApiMeta;
2368
- }>;
2369
- accept: import("@trpc/server").TRPCMutationProcedure<{
2370
- input: (Omit<{
2371
- eventId: string;
2372
- transactionId: string;
2373
- declaration?: Record<string, unknown> | undefined;
2374
- annotation?: Record<string, unknown> | undefined;
2375
- originalActionId?: string | undefined;
2376
- keepAssignment?: boolean | undefined;
2377
- keepAssignmentIfAccepted?: boolean | undefined;
2378
- keepAssignmentIfRejected?: boolean | undefined;
2379
- waitFor?: boolean | undefined;
2380
- type?: "CREATE" | undefined;
2381
- createdAtLocation?: string | null | undefined;
2382
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2383
- eventId: string;
2384
- transactionId: string;
2385
- declaration?: Record<string, unknown> | undefined;
2386
- annotation?: Record<string, unknown> | undefined;
2387
- originalActionId?: string | undefined;
2388
- keepAssignment?: boolean | undefined;
2389
- keepAssignmentIfAccepted?: boolean | undefined;
2390
- keepAssignmentIfRejected?: boolean | undefined;
2391
- waitFor?: boolean | undefined;
2392
- createdAtLocation?: string | null | undefined;
2393
- type?: "REGISTER" | undefined;
2394
- registrationNumber?: string | undefined;
2395
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2396
- eventId: string;
2397
- transactionId: string;
2398
- declaration?: Record<string, unknown> | undefined;
2399
- annotation?: Record<string, unknown> | undefined;
2400
- originalActionId?: string | undefined;
2401
- keepAssignment?: boolean | undefined;
2402
- keepAssignmentIfAccepted?: boolean | undefined;
2403
- keepAssignmentIfRejected?: boolean | undefined;
2404
- waitFor?: boolean | undefined;
2405
- type?: "NOTIFY" | undefined;
2406
- createdAtLocation?: string | null | undefined;
2407
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2408
- eventId: string;
2409
- transactionId: string;
2410
- declaration?: Record<string, unknown> | undefined;
2411
- annotation?: Record<string, unknown> | undefined;
2412
- originalActionId?: string | undefined;
2413
- keepAssignment?: boolean | undefined;
2414
- keepAssignmentIfAccepted?: boolean | undefined;
2415
- keepAssignmentIfRejected?: boolean | undefined;
2416
- waitFor?: boolean | undefined;
2417
- createdAtLocation?: string | null | undefined;
2418
- type?: "DECLARE" | undefined;
2419
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2420
- eventId: string;
2421
- transactionId: string;
2422
- content: {
2423
- reason: string;
2424
- };
2425
- declaration?: Record<string, unknown> | undefined;
2426
- annotation?: Record<string, unknown> | undefined;
2427
- originalActionId?: string | undefined;
2428
- keepAssignment?: boolean | undefined;
2429
- keepAssignmentIfAccepted?: boolean | undefined;
2430
- keepAssignmentIfRejected?: boolean | undefined;
2431
- waitFor?: boolean | undefined;
2432
- createdAtLocation?: string | null | undefined;
2433
- type?: "REJECT" | undefined;
2434
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2435
- eventId: string;
2436
- transactionId: string;
2437
- content: {
2438
- duplicates: {
2439
- id: string;
2440
- trackingId: string;
2441
- }[];
2442
- };
2443
- declaration?: Record<string, unknown> | undefined;
2444
- annotation?: Record<string, unknown> | undefined;
2445
- originalActionId?: string | undefined;
2446
- keepAssignment?: boolean | undefined;
2447
- keepAssignmentIfAccepted?: boolean | undefined;
2448
- keepAssignmentIfRejected?: boolean | undefined;
2449
- waitFor?: boolean | undefined;
2450
- createdAtLocation?: string | null | undefined;
2451
- type?: "DUPLICATE_DETECTED" | undefined;
2452
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2453
- eventId: string;
2454
- transactionId: string;
2455
- declaration?: Record<string, unknown> | undefined;
2456
- annotation?: Record<string, unknown> | undefined;
2457
- originalActionId?: string | undefined;
2458
- keepAssignment?: boolean | undefined;
2459
- keepAssignmentIfAccepted?: boolean | undefined;
2460
- keepAssignmentIfRejected?: boolean | undefined;
2461
- waitFor?: boolean | undefined;
2462
- createdAtLocation?: string | null | undefined;
2463
- type?: "MARK_AS_DUPLICATE" | undefined;
2464
- content?: {
2465
- duplicateOf: string;
2466
- } | undefined;
2467
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2468
- eventId: string;
2469
- transactionId: string;
2470
- declaration?: Record<string, unknown> | undefined;
2471
- annotation?: Record<string, unknown> | undefined;
2472
- originalActionId?: string | undefined;
2473
- keepAssignment?: boolean | undefined;
2474
- keepAssignmentIfAccepted?: boolean | undefined;
2475
- keepAssignmentIfRejected?: boolean | undefined;
2476
- waitFor?: boolean | undefined;
2477
- createdAtLocation?: string | null | undefined;
2478
- type?: "MARK_AS_NOT_DUPLICATE" | undefined;
2479
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2480
- eventId: string;
2481
- transactionId: string;
2482
- content: {
2483
- reason: string;
2484
- };
2485
- declaration?: Record<string, unknown> | undefined;
2486
- annotation?: Record<string, unknown> | undefined;
2487
- originalActionId?: string | undefined;
2488
- keepAssignment?: boolean | undefined;
2489
- keepAssignmentIfAccepted?: boolean | undefined;
2490
- keepAssignmentIfRejected?: boolean | undefined;
2491
- waitFor?: boolean | undefined;
2492
- createdAtLocation?: string | null | undefined;
2493
- type?: "ARCHIVE" | undefined;
2494
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2495
- eventId: string;
2496
- transactionId: string;
2497
- type: "ASSIGN";
2498
- assignedTo: string;
2499
- declaration?: Record<string, unknown> | undefined;
2500
- annotation?: Record<string, unknown> | undefined;
2501
- originalActionId?: string | undefined;
2502
- keepAssignment?: boolean | undefined;
2503
- keepAssignmentIfAccepted?: boolean | undefined;
2504
- keepAssignmentIfRejected?: boolean | undefined;
2505
- waitFor?: boolean | undefined;
2506
- createdAtLocation?: string | null | undefined;
2507
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2508
- eventId: string;
2509
- transactionId: string;
2510
- declaration?: Record<string, unknown> | undefined;
2511
- annotation?: Record<string, unknown> | undefined;
2512
- originalActionId?: string | undefined;
2513
- keepAssignment?: boolean | undefined;
2514
- keepAssignmentIfAccepted?: boolean | undefined;
2515
- keepAssignmentIfRejected?: boolean | undefined;
2516
- waitFor?: boolean | undefined;
2517
- createdAtLocation?: string | null | undefined;
2518
- type?: "UNASSIGN" | undefined;
2519
- assignedTo?: null | undefined;
2520
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2521
- eventId: string;
2522
- transactionId: string;
2523
- declaration?: Record<string, unknown> | undefined;
2524
- annotation?: Record<string, unknown> | undefined;
2525
- originalActionId?: string | undefined;
2526
- keepAssignment?: boolean | undefined;
2527
- keepAssignmentIfAccepted?: boolean | undefined;
2528
- keepAssignmentIfRejected?: boolean | undefined;
2529
- waitFor?: boolean | undefined;
2530
- createdAtLocation?: string | null | undefined;
2531
- type?: "PRINT_CERTIFICATE" | undefined;
2532
- content?: {
2533
- templateId?: string | undefined;
2534
- } | undefined;
2535
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2536
- eventId: string;
2537
- transactionId: string;
2538
- declaration?: Record<string, unknown> | undefined;
2539
- annotation?: Record<string, unknown> | undefined;
2540
- originalActionId?: string | undefined;
2541
- keepAssignment?: boolean | undefined;
2542
- keepAssignmentIfAccepted?: boolean | undefined;
2543
- keepAssignmentIfRejected?: boolean | undefined;
2544
- waitFor?: boolean | undefined;
2545
- createdAtLocation?: string | null | undefined;
2546
- type?: "REQUEST_CORRECTION" | undefined;
2547
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2548
- eventId: string;
2549
- transactionId: string;
2550
- requestId: string;
2551
- content: {
2552
- reason: string;
2553
- };
2554
- declaration?: Record<string, unknown> | undefined;
2555
- annotation?: Record<string, unknown> | undefined;
2556
- originalActionId?: string | undefined;
2557
- keepAssignment?: boolean | undefined;
2558
- keepAssignmentIfAccepted?: boolean | undefined;
2559
- keepAssignmentIfRejected?: boolean | undefined;
2560
- waitFor?: boolean | undefined;
2561
- createdAtLocation?: string | null | undefined;
2562
- type?: "REJECT_CORRECTION" | undefined;
2563
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2564
- eventId: string;
2565
- transactionId: string;
2566
- requestId: string;
2567
- declaration?: Record<string, unknown> | undefined;
2568
- annotation?: Record<string, unknown> | undefined;
2569
- originalActionId?: string | undefined;
2570
- keepAssignment?: boolean | undefined;
2571
- keepAssignmentIfAccepted?: boolean | undefined;
2572
- keepAssignmentIfRejected?: boolean | undefined;
2573
- waitFor?: boolean | undefined;
2574
- createdAtLocation?: string | null | undefined;
2575
- type?: "APPROVE_CORRECTION" | undefined;
2576
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2577
- eventId: string;
2578
- transactionId: string;
2579
- declaration?: Record<string, unknown> | undefined;
2580
- annotation?: Record<string, unknown> | undefined;
2581
- originalActionId?: string | undefined;
2582
- keepAssignment?: boolean | undefined;
2583
- keepAssignmentIfAccepted?: boolean | undefined;
2584
- keepAssignmentIfRejected?: boolean | undefined;
2585
- waitFor?: boolean | undefined;
2586
- createdAtLocation?: string | null | undefined;
2587
- type?: "READ" | undefined;
2588
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2589
- eventId: string;
2590
- transactionId: string;
2591
- customActionType: string;
2592
- declaration?: Record<string, unknown> | undefined;
2593
- annotation?: Record<string, unknown> | undefined;
2594
- originalActionId?: string | undefined;
2595
- keepAssignment?: boolean | undefined;
2596
- keepAssignmentIfAccepted?: boolean | undefined;
2597
- keepAssignmentIfRejected?: boolean | undefined;
2598
- waitFor?: boolean | undefined;
2599
- createdAtLocation?: string | null | undefined;
2600
- type?: "CUSTOM" | undefined;
2601
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2602
- eventId: string;
2603
- transactionId: string;
2604
- content: {
2605
- comment?: string | undefined;
2606
- };
2607
- declaration?: Record<string, unknown> | undefined;
2608
- annotation?: Record<string, unknown> | undefined;
2609
- originalActionId?: string | undefined;
2610
- keepAssignment?: boolean | undefined;
2611
- keepAssignmentIfAccepted?: boolean | undefined;
2612
- keepAssignmentIfRejected?: boolean | undefined;
2613
- waitFor?: boolean | undefined;
2614
- createdAtLocation?: string | null | undefined;
2615
- type?: "EDIT" | undefined;
2616
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2617
- actionId: string;
2618
- };
2619
- output: import("../commons").EventDocument;
2620
- meta: import("trpc-to-openapi").OpenApiMeta;
2621
- }>;
2622
- reject: import("@trpc/server").TRPCMutationProcedure<{
2623
- input: import("zod").input<import("zod").ZodObject<{
2624
- transactionId: import("zod").ZodString;
2625
- eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2626
- keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2627
- actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2628
- }, import("zod/v4/core").$strip>>;
2629
- output: import("../commons").EventDocument;
2630
- meta: import("trpc-to-openapi").OpenApiMeta;
2631
- }>;
2632
- }>>;
2633
- archive: import("@trpc/server").TRPCBuiltRouter<{
2634
- ctx: Partial<{
2635
- token: `Bearer ${string}`;
2636
- user: {
2637
- id: string & import("zod").$brand<"UUID">;
2638
- type: "system";
2639
- signature?: undefined;
2640
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2641
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2642
- } | {
2643
- id: string & import("zod").$brand<"UUID">;
2644
- type: "user";
2645
- role: string;
2646
- primaryOfficeId: string & import("zod").$brand<"UUID">;
2647
- signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2648
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2649
- };
2650
- }>;
2651
- meta: import("trpc-to-openapi").OpenApiMeta;
2652
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
2653
- transformer: true;
2654
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
2655
- request: import("@trpc/server").TRPCMutationProcedure<{
2656
- input: import("../commons").ActionInput;
2657
- output: import("../commons").EventDocument;
2658
- meta: import("trpc-to-openapi").OpenApiMeta;
2659
- }>;
2660
- accept: import("@trpc/server").TRPCMutationProcedure<{
2661
- input: (Omit<{
2662
- eventId: string;
2663
- transactionId: string;
2664
- declaration?: Record<string, unknown> | undefined;
2665
- annotation?: Record<string, unknown> | undefined;
2666
- originalActionId?: string | undefined;
2667
- keepAssignment?: boolean | undefined;
2668
- keepAssignmentIfAccepted?: boolean | undefined;
2669
- keepAssignmentIfRejected?: boolean | undefined;
2670
- waitFor?: boolean | undefined;
2671
- type?: "CREATE" | undefined;
2672
- createdAtLocation?: string | null | undefined;
2673
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2674
- eventId: string;
2675
- transactionId: string;
2676
- declaration?: Record<string, unknown> | undefined;
2677
- annotation?: Record<string, unknown> | undefined;
2678
- originalActionId?: string | undefined;
2679
- keepAssignment?: boolean | undefined;
2680
- keepAssignmentIfAccepted?: boolean | undefined;
2681
- keepAssignmentIfRejected?: boolean | undefined;
2682
- waitFor?: boolean | undefined;
2683
- createdAtLocation?: string | null | undefined;
2684
- type?: "REGISTER" | undefined;
2685
- registrationNumber?: string | undefined;
2686
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2687
- eventId: string;
2688
- transactionId: string;
2689
- declaration?: Record<string, unknown> | undefined;
2690
- annotation?: Record<string, unknown> | undefined;
2691
- originalActionId?: string | undefined;
2692
- keepAssignment?: boolean | undefined;
2693
- keepAssignmentIfAccepted?: boolean | undefined;
2694
- keepAssignmentIfRejected?: boolean | undefined;
2695
- waitFor?: boolean | undefined;
2696
- type?: "NOTIFY" | undefined;
2697
- createdAtLocation?: string | null | undefined;
2698
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2699
- eventId: string;
2700
- transactionId: string;
2701
- declaration?: Record<string, unknown> | undefined;
2702
- annotation?: Record<string, unknown> | undefined;
2703
- originalActionId?: string | undefined;
2704
- keepAssignment?: boolean | undefined;
2705
- keepAssignmentIfAccepted?: boolean | undefined;
2706
- keepAssignmentIfRejected?: boolean | undefined;
2707
- waitFor?: boolean | undefined;
2708
- createdAtLocation?: string | null | undefined;
2709
- type?: "DECLARE" | undefined;
2710
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2711
- eventId: string;
2712
- transactionId: string;
2713
- content: {
2714
- reason: string;
2715
- };
2716
- declaration?: Record<string, unknown> | undefined;
2717
- annotation?: Record<string, unknown> | undefined;
2718
- originalActionId?: string | undefined;
2719
- keepAssignment?: boolean | undefined;
2720
- keepAssignmentIfAccepted?: boolean | undefined;
2721
- keepAssignmentIfRejected?: boolean | undefined;
2722
- waitFor?: boolean | undefined;
2723
- createdAtLocation?: string | null | undefined;
2724
- type?: "REJECT" | undefined;
2725
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2726
- eventId: string;
2727
- transactionId: string;
2728
- content: {
2729
- duplicates: {
2730
- id: string;
2731
- trackingId: string;
2732
- }[];
2733
- };
2734
- declaration?: Record<string, unknown> | undefined;
2735
- annotation?: Record<string, unknown> | undefined;
2736
- originalActionId?: string | undefined;
2737
- keepAssignment?: boolean | undefined;
2738
- keepAssignmentIfAccepted?: boolean | undefined;
2739
- keepAssignmentIfRejected?: boolean | undefined;
2740
- waitFor?: boolean | undefined;
2741
- createdAtLocation?: string | null | undefined;
2742
- type?: "DUPLICATE_DETECTED" | undefined;
2743
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2744
- eventId: string;
2745
- transactionId: string;
2746
- declaration?: Record<string, unknown> | undefined;
2747
- annotation?: Record<string, unknown> | undefined;
2748
- originalActionId?: string | undefined;
2749
- keepAssignment?: boolean | undefined;
2750
- keepAssignmentIfAccepted?: boolean | undefined;
2751
- keepAssignmentIfRejected?: boolean | undefined;
2752
- waitFor?: boolean | undefined;
2753
- createdAtLocation?: string | null | undefined;
2754
- type?: "MARK_AS_DUPLICATE" | undefined;
2755
- content?: {
2756
- duplicateOf: string;
2757
- } | undefined;
2758
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2759
- eventId: string;
2760
- transactionId: string;
2761
- declaration?: Record<string, unknown> | undefined;
2762
- annotation?: Record<string, unknown> | undefined;
2763
- originalActionId?: string | undefined;
2764
- keepAssignment?: boolean | undefined;
2765
- keepAssignmentIfAccepted?: boolean | undefined;
2766
- keepAssignmentIfRejected?: boolean | undefined;
2767
- waitFor?: boolean | undefined;
2768
- createdAtLocation?: string | null | undefined;
2769
- type?: "MARK_AS_NOT_DUPLICATE" | undefined;
2770
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2771
- eventId: string;
2772
- transactionId: string;
2773
- content: {
2774
- reason: string;
2775
- };
2776
- declaration?: Record<string, unknown> | undefined;
2777
- annotation?: Record<string, unknown> | undefined;
2778
- originalActionId?: string | undefined;
2779
- keepAssignment?: boolean | undefined;
2780
- keepAssignmentIfAccepted?: boolean | undefined;
2781
- keepAssignmentIfRejected?: boolean | undefined;
2782
- waitFor?: boolean | undefined;
2783
- createdAtLocation?: string | null | undefined;
2784
- type?: "ARCHIVE" | undefined;
2785
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2786
- eventId: string;
2787
- transactionId: string;
2788
- type: "ASSIGN";
2789
- assignedTo: string;
2790
- declaration?: Record<string, unknown> | undefined;
2791
- annotation?: Record<string, unknown> | undefined;
2792
- originalActionId?: string | undefined;
2793
- keepAssignment?: boolean | undefined;
2794
- keepAssignmentIfAccepted?: boolean | undefined;
2795
- keepAssignmentIfRejected?: boolean | undefined;
2796
- waitFor?: boolean | undefined;
2797
- createdAtLocation?: string | null | undefined;
2798
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2799
- eventId: string;
2800
- transactionId: string;
2801
- declaration?: Record<string, unknown> | undefined;
2802
- annotation?: Record<string, unknown> | undefined;
2803
- originalActionId?: string | undefined;
2804
- keepAssignment?: boolean | undefined;
2805
- keepAssignmentIfAccepted?: boolean | undefined;
2806
- keepAssignmentIfRejected?: boolean | undefined;
2807
- waitFor?: boolean | undefined;
2808
- createdAtLocation?: string | null | undefined;
2809
- type?: "UNASSIGN" | undefined;
2810
- assignedTo?: null | undefined;
2811
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2812
- eventId: string;
2813
- transactionId: string;
2814
- declaration?: Record<string, unknown> | undefined;
2815
- annotation?: Record<string, unknown> | undefined;
2816
- originalActionId?: string | undefined;
2817
- keepAssignment?: boolean | undefined;
2818
- keepAssignmentIfAccepted?: boolean | undefined;
2819
- keepAssignmentIfRejected?: boolean | undefined;
2820
- waitFor?: boolean | undefined;
2821
- createdAtLocation?: string | null | undefined;
2822
- type?: "PRINT_CERTIFICATE" | undefined;
2823
- content?: {
2824
- templateId?: string | undefined;
2825
- } | undefined;
2826
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2827
- eventId: string;
2828
- transactionId: string;
2829
- declaration?: Record<string, unknown> | undefined;
2830
- annotation?: Record<string, unknown> | undefined;
2831
- originalActionId?: string | undefined;
2832
- keepAssignment?: boolean | undefined;
2833
- keepAssignmentIfAccepted?: boolean | undefined;
2834
- keepAssignmentIfRejected?: boolean | undefined;
2835
- waitFor?: boolean | undefined;
2836
- createdAtLocation?: string | null | undefined;
2837
- type?: "REQUEST_CORRECTION" | undefined;
2838
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2839
- eventId: string;
2840
- transactionId: string;
2841
- requestId: string;
2842
- content: {
2843
- reason: string;
2844
- };
2845
- declaration?: Record<string, unknown> | undefined;
2846
- annotation?: Record<string, unknown> | undefined;
2847
- originalActionId?: string | undefined;
2848
- keepAssignment?: boolean | undefined;
2849
- keepAssignmentIfAccepted?: boolean | undefined;
2850
- keepAssignmentIfRejected?: boolean | undefined;
2851
- waitFor?: boolean | undefined;
2852
- createdAtLocation?: string | null | undefined;
2853
- type?: "REJECT_CORRECTION" | undefined;
2854
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2855
- eventId: string;
2856
- transactionId: string;
2857
- requestId: string;
2858
- declaration?: Record<string, unknown> | undefined;
2859
- annotation?: Record<string, unknown> | undefined;
2860
- originalActionId?: string | undefined;
2861
- keepAssignment?: boolean | undefined;
2862
- keepAssignmentIfAccepted?: boolean | undefined;
2863
- keepAssignmentIfRejected?: boolean | undefined;
2864
- waitFor?: boolean | undefined;
2865
- createdAtLocation?: string | null | undefined;
2866
- type?: "APPROVE_CORRECTION" | undefined;
2867
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2868
- eventId: string;
2869
- transactionId: string;
2870
- declaration?: Record<string, unknown> | undefined;
2871
- annotation?: Record<string, unknown> | undefined;
2872
- originalActionId?: string | undefined;
2873
- keepAssignment?: boolean | undefined;
2874
- keepAssignmentIfAccepted?: boolean | undefined;
2875
- keepAssignmentIfRejected?: boolean | undefined;
2876
- waitFor?: boolean | undefined;
2877
- createdAtLocation?: string | null | undefined;
2878
- type?: "READ" | undefined;
2879
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2880
- eventId: string;
2881
- transactionId: string;
2882
- customActionType: string;
2883
- declaration?: Record<string, unknown> | undefined;
2884
- annotation?: Record<string, unknown> | undefined;
2885
- originalActionId?: string | undefined;
2886
- keepAssignment?: boolean | undefined;
2887
- keepAssignmentIfAccepted?: boolean | undefined;
2888
- keepAssignmentIfRejected?: boolean | undefined;
2889
- waitFor?: boolean | undefined;
2890
- createdAtLocation?: string | null | undefined;
2891
- type?: "CUSTOM" | undefined;
2892
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2893
- eventId: string;
2894
- transactionId: string;
2895
- content: {
2896
- comment?: string | undefined;
2897
- };
2898
- declaration?: Record<string, unknown> | undefined;
2899
- annotation?: Record<string, unknown> | undefined;
2900
- originalActionId?: string | undefined;
2901
- keepAssignment?: boolean | undefined;
2902
- keepAssignmentIfAccepted?: boolean | undefined;
2903
- keepAssignmentIfRejected?: boolean | undefined;
2904
- waitFor?: boolean | undefined;
2905
- createdAtLocation?: string | null | undefined;
2906
- type?: "EDIT" | undefined;
2907
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2908
- actionId: string;
2909
- };
2910
- output: import("../commons").EventDocument;
2911
- meta: import("trpc-to-openapi").OpenApiMeta;
2912
- }>;
2913
- reject: import("@trpc/server").TRPCMutationProcedure<{
2914
- input: import("zod").input<import("zod").ZodObject<{
2915
- transactionId: import("zod").ZodString;
2916
- eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2917
- keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2918
- actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2919
- }, import("zod/v4/core").$strip>>;
2920
- output: import("../commons").EventDocument;
2921
- meta: import("trpc-to-openapi").OpenApiMeta;
2922
- }>;
2923
- }>>;
2924
- register: import("@trpc/server").TRPCBuiltRouter<{
2925
- ctx: Partial<{
2926
- token: `Bearer ${string}`;
2927
- user: {
2928
- id: string & import("zod").$brand<"UUID">;
2929
- type: "system";
2930
- signature?: undefined;
2931
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2932
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2933
- } | {
2934
- id: string & import("zod").$brand<"UUID">;
2935
- type: "user";
2936
- role: string;
2937
- primaryOfficeId: string & import("zod").$brand<"UUID">;
2938
- signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2939
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2940
- };
2941
- }>;
2942
- meta: import("trpc-to-openapi").OpenApiMeta;
2943
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
2944
- transformer: true;
2945
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
2946
- request: import("@trpc/server").TRPCMutationProcedure<{
2947
- input: import("../commons").ActionInput;
2948
- output: import("../commons").EventDocument;
2949
- meta: import("trpc-to-openapi").OpenApiMeta;
2950
- }>;
2951
- accept: import("@trpc/server").TRPCMutationProcedure<{
2952
- input: (Omit<{
2953
- eventId: string;
2954
- transactionId: string;
2955
- declaration?: Record<string, unknown> | undefined;
2956
- annotation?: Record<string, unknown> | undefined;
2957
- originalActionId?: string | undefined;
2958
- keepAssignment?: boolean | undefined;
2959
- keepAssignmentIfAccepted?: boolean | undefined;
2960
- keepAssignmentIfRejected?: boolean | undefined;
2961
- waitFor?: boolean | undefined;
2962
- type?: "CREATE" | undefined;
2963
- createdAtLocation?: string | null | undefined;
2964
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2965
- eventId: string;
2966
- transactionId: string;
2967
- declaration?: Record<string, unknown> | undefined;
2968
- annotation?: Record<string, unknown> | undefined;
2969
- originalActionId?: string | undefined;
2970
- keepAssignment?: boolean | undefined;
2971
- keepAssignmentIfAccepted?: boolean | undefined;
2972
- keepAssignmentIfRejected?: boolean | undefined;
2973
- waitFor?: boolean | undefined;
2974
- createdAtLocation?: string | null | undefined;
2975
- type?: "REGISTER" | undefined;
2976
- registrationNumber?: string | undefined;
2977
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2978
- eventId: string;
2979
- transactionId: string;
2980
- declaration?: Record<string, unknown> | undefined;
2981
- annotation?: Record<string, unknown> | undefined;
2982
- originalActionId?: string | undefined;
2983
- keepAssignment?: boolean | undefined;
2984
- keepAssignmentIfAccepted?: boolean | undefined;
2985
- keepAssignmentIfRejected?: boolean | undefined;
2986
- waitFor?: boolean | undefined;
2987
- type?: "NOTIFY" | undefined;
2988
- createdAtLocation?: string | null | undefined;
2989
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2990
- eventId: string;
2991
- transactionId: string;
2992
- declaration?: Record<string, unknown> | undefined;
2993
- annotation?: Record<string, unknown> | undefined;
2994
- originalActionId?: string | undefined;
2995
- keepAssignment?: boolean | undefined;
2996
- keepAssignmentIfAccepted?: boolean | undefined;
2997
- keepAssignmentIfRejected?: boolean | undefined;
2998
- waitFor?: boolean | undefined;
2999
- createdAtLocation?: string | null | undefined;
3000
- type?: "DECLARE" | undefined;
3001
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3002
- eventId: string;
3003
- transactionId: string;
3004
- content: {
3005
- reason: string;
3006
- };
3007
- declaration?: Record<string, unknown> | undefined;
3008
- annotation?: Record<string, unknown> | undefined;
3009
- originalActionId?: string | undefined;
3010
- keepAssignment?: boolean | undefined;
3011
- keepAssignmentIfAccepted?: boolean | undefined;
3012
- keepAssignmentIfRejected?: boolean | undefined;
3013
- waitFor?: boolean | undefined;
3014
- createdAtLocation?: string | null | undefined;
3015
- type?: "REJECT" | undefined;
3016
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3017
- eventId: string;
3018
- transactionId: string;
3019
- content: {
3020
- duplicates: {
3021
- id: string;
3022
- trackingId: string;
3023
- }[];
3024
- };
3025
- declaration?: Record<string, unknown> | undefined;
3026
- annotation?: Record<string, unknown> | undefined;
3027
- originalActionId?: string | undefined;
3028
- keepAssignment?: boolean | undefined;
3029
- keepAssignmentIfAccepted?: boolean | undefined;
3030
- keepAssignmentIfRejected?: boolean | undefined;
3031
- waitFor?: boolean | undefined;
3032
- createdAtLocation?: string | null | undefined;
3033
- type?: "DUPLICATE_DETECTED" | undefined;
3034
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3035
- eventId: string;
3036
- transactionId: string;
3037
- declaration?: Record<string, unknown> | undefined;
3038
- annotation?: Record<string, unknown> | undefined;
3039
- originalActionId?: string | undefined;
3040
- keepAssignment?: boolean | undefined;
3041
- keepAssignmentIfAccepted?: boolean | undefined;
3042
- keepAssignmentIfRejected?: boolean | undefined;
3043
- waitFor?: boolean | undefined;
3044
- createdAtLocation?: string | null | undefined;
3045
- type?: "MARK_AS_DUPLICATE" | undefined;
3046
- content?: {
3047
- duplicateOf: string;
3048
- } | undefined;
3049
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3050
- eventId: string;
3051
- transactionId: string;
3052
- declaration?: Record<string, unknown> | undefined;
3053
- annotation?: Record<string, unknown> | undefined;
3054
- originalActionId?: string | undefined;
3055
- keepAssignment?: boolean | undefined;
3056
- keepAssignmentIfAccepted?: boolean | undefined;
3057
- keepAssignmentIfRejected?: boolean | undefined;
3058
- waitFor?: boolean | undefined;
3059
- createdAtLocation?: string | null | undefined;
3060
- type?: "MARK_AS_NOT_DUPLICATE" | undefined;
3061
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3062
- eventId: string;
3063
- transactionId: string;
3064
- content: {
3065
- reason: string;
3066
- };
3067
- declaration?: Record<string, unknown> | undefined;
3068
- annotation?: Record<string, unknown> | undefined;
3069
- originalActionId?: string | undefined;
3070
- keepAssignment?: boolean | undefined;
3071
- keepAssignmentIfAccepted?: boolean | undefined;
3072
- keepAssignmentIfRejected?: boolean | undefined;
3073
- waitFor?: boolean | undefined;
3074
- createdAtLocation?: string | null | undefined;
3075
- type?: "ARCHIVE" | undefined;
3076
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3077
- eventId: string;
3078
- transactionId: string;
3079
- type: "ASSIGN";
3080
- assignedTo: string;
3081
- declaration?: Record<string, unknown> | undefined;
3082
- annotation?: Record<string, unknown> | undefined;
3083
- originalActionId?: string | undefined;
3084
- keepAssignment?: boolean | undefined;
3085
- keepAssignmentIfAccepted?: boolean | undefined;
3086
- keepAssignmentIfRejected?: boolean | undefined;
3087
- waitFor?: boolean | undefined;
3088
- createdAtLocation?: string | null | undefined;
3089
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3090
- eventId: string;
3091
- transactionId: string;
3092
- declaration?: Record<string, unknown> | undefined;
3093
- annotation?: Record<string, unknown> | undefined;
3094
- originalActionId?: string | undefined;
3095
- keepAssignment?: boolean | undefined;
3096
- keepAssignmentIfAccepted?: boolean | undefined;
3097
- keepAssignmentIfRejected?: boolean | undefined;
3098
- waitFor?: boolean | undefined;
3099
- createdAtLocation?: string | null | undefined;
3100
- type?: "UNASSIGN" | undefined;
3101
- assignedTo?: null | undefined;
3102
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3103
- eventId: string;
3104
- transactionId: string;
3105
- declaration?: Record<string, unknown> | undefined;
3106
- annotation?: Record<string, unknown> | undefined;
3107
- originalActionId?: string | undefined;
3108
- keepAssignment?: boolean | undefined;
3109
- keepAssignmentIfAccepted?: boolean | undefined;
3110
- keepAssignmentIfRejected?: boolean | undefined;
3111
- waitFor?: boolean | undefined;
3112
- createdAtLocation?: string | null | undefined;
3113
- type?: "PRINT_CERTIFICATE" | undefined;
3114
- content?: {
3115
- templateId?: string | undefined;
3116
- } | undefined;
3117
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3118
- eventId: string;
3119
- transactionId: string;
3120
- declaration?: Record<string, unknown> | undefined;
3121
- annotation?: Record<string, unknown> | undefined;
3122
- originalActionId?: string | undefined;
3123
- keepAssignment?: boolean | undefined;
3124
- keepAssignmentIfAccepted?: boolean | undefined;
3125
- keepAssignmentIfRejected?: boolean | undefined;
3126
- waitFor?: boolean | undefined;
3127
- createdAtLocation?: string | null | undefined;
3128
- type?: "REQUEST_CORRECTION" | undefined;
3129
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3130
- eventId: string;
3131
- transactionId: string;
3132
- requestId: string;
3133
- content: {
3134
- reason: string;
3135
- };
3136
- declaration?: Record<string, unknown> | undefined;
3137
- annotation?: Record<string, unknown> | undefined;
3138
- originalActionId?: string | undefined;
3139
- keepAssignment?: boolean | undefined;
3140
- keepAssignmentIfAccepted?: boolean | undefined;
3141
- keepAssignmentIfRejected?: boolean | undefined;
3142
- waitFor?: boolean | undefined;
3143
- createdAtLocation?: string | null | undefined;
3144
- type?: "REJECT_CORRECTION" | undefined;
3145
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3146
- eventId: string;
3147
- transactionId: string;
3148
- requestId: string;
3149
- declaration?: Record<string, unknown> | undefined;
3150
- annotation?: Record<string, unknown> | undefined;
3151
- originalActionId?: string | undefined;
3152
- keepAssignment?: boolean | undefined;
3153
- keepAssignmentIfAccepted?: boolean | undefined;
3154
- keepAssignmentIfRejected?: boolean | undefined;
3155
- waitFor?: boolean | undefined;
3156
- createdAtLocation?: string | null | undefined;
3157
- type?: "APPROVE_CORRECTION" | undefined;
3158
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3159
- eventId: string;
3160
- transactionId: string;
3161
- declaration?: Record<string, unknown> | undefined;
3162
- annotation?: Record<string, unknown> | undefined;
3163
- originalActionId?: string | undefined;
3164
- keepAssignment?: boolean | undefined;
3165
- keepAssignmentIfAccepted?: boolean | undefined;
3166
- keepAssignmentIfRejected?: boolean | undefined;
3167
- waitFor?: boolean | undefined;
3168
- createdAtLocation?: string | null | undefined;
3169
- type?: "READ" | undefined;
3170
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3171
- eventId: string;
3172
- transactionId: string;
3173
- customActionType: string;
3174
- declaration?: Record<string, unknown> | undefined;
3175
- annotation?: Record<string, unknown> | undefined;
3176
- originalActionId?: string | undefined;
3177
- keepAssignment?: boolean | undefined;
3178
- keepAssignmentIfAccepted?: boolean | undefined;
3179
- keepAssignmentIfRejected?: boolean | undefined;
3180
- waitFor?: boolean | undefined;
3181
- createdAtLocation?: string | null | undefined;
3182
- type?: "CUSTOM" | undefined;
3183
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3184
- eventId: string;
3185
- transactionId: string;
3186
- content: {
3187
- comment?: string | undefined;
3188
- };
3189
- declaration?: Record<string, unknown> | undefined;
3190
- annotation?: Record<string, unknown> | undefined;
3191
- originalActionId?: string | undefined;
3192
- keepAssignment?: boolean | undefined;
3193
- keepAssignmentIfAccepted?: boolean | undefined;
3194
- keepAssignmentIfRejected?: boolean | undefined;
3195
- waitFor?: boolean | undefined;
3196
- createdAtLocation?: string | null | undefined;
3197
- type?: "EDIT" | undefined;
3198
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
1592
+ };
1593
+ output: import("../commons").EventDocument;
1594
+ meta: import("trpc-to-openapi").OpenApiMeta;
1595
+ }>;
1596
+ }>>;
1597
+ reject: import("@trpc/server").TRPCBuiltRouter<{
1598
+ ctx: Partial<{
1599
+ token: `Bearer ${string}`;
1600
+ user: {
1601
+ id: string & import("zod").$brand<"UUID">;
1602
+ type: "system";
1603
+ signature?: undefined;
1604
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1605
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1606
+ } | {
1607
+ id: string & import("zod").$brand<"UUID">;
1608
+ type: "user";
1609
+ role: string;
1610
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
1611
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1612
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1613
+ };
1614
+ }>;
1615
+ meta: import("trpc-to-openapi").OpenApiMeta;
1616
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1617
+ transformer: true;
1618
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1619
+ request: import("@trpc/server").TRPCMutationProcedure<{
1620
+ input: import("../commons").ActionInput;
1621
+ output: import("../commons").EventDocument;
1622
+ meta: import("trpc-to-openapi").OpenApiMeta;
1623
+ }>;
1624
+ accept: import("@trpc/server").TRPCMutationProcedure<{
1625
+ input: import("../commons").ActionInput & {
3199
1626
  actionId: string;
3200
1627
  };
3201
1628
  output: import("../commons").EventDocument;
3202
1629
  meta: import("trpc-to-openapi").OpenApiMeta;
3203
1630
  }>;
3204
1631
  reject: import("@trpc/server").TRPCMutationProcedure<{
3205
- input: import("zod").input<import("zod").ZodObject<{
3206
- transactionId: import("zod").ZodString;
3207
- eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3208
- keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3209
- actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3210
- }, import("zod/v4/core").$strip>>;
1632
+ input: {
1633
+ eventId: string;
1634
+ actionId: string;
1635
+ transactionId: string;
1636
+ };
3211
1637
  output: import("../commons").EventDocument;
3212
1638
  meta: import("trpc-to-openapi").OpenApiMeta;
3213
1639
  }>;
3214
1640
  }>>;
3215
- printCertificate: import("@trpc/server").TRPCBuiltRouter<{
1641
+ archive: import("@trpc/server").TRPCBuiltRouter<{
3216
1642
  ctx: Partial<{
3217
1643
  token: `Bearer ${string}`;
3218
1644
  user: {
@@ -3240,265 +1666,106 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3240
1666
  meta: import("trpc-to-openapi").OpenApiMeta;
3241
1667
  }>;
3242
1668
  accept: import("@trpc/server").TRPCMutationProcedure<{
3243
- input: (Omit<{
3244
- eventId: string;
3245
- transactionId: string;
3246
- declaration?: Record<string, unknown> | undefined;
3247
- annotation?: Record<string, unknown> | undefined;
3248
- originalActionId?: string | undefined;
3249
- keepAssignment?: boolean | undefined;
3250
- keepAssignmentIfAccepted?: boolean | undefined;
3251
- keepAssignmentIfRejected?: boolean | undefined;
3252
- waitFor?: boolean | undefined;
3253
- type?: "CREATE" | undefined;
3254
- createdAtLocation?: string | null | undefined;
3255
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3256
- eventId: string;
3257
- transactionId: string;
3258
- declaration?: Record<string, unknown> | undefined;
3259
- annotation?: Record<string, unknown> | undefined;
3260
- originalActionId?: string | undefined;
3261
- keepAssignment?: boolean | undefined;
3262
- keepAssignmentIfAccepted?: boolean | undefined;
3263
- keepAssignmentIfRejected?: boolean | undefined;
3264
- waitFor?: boolean | undefined;
3265
- createdAtLocation?: string | null | undefined;
3266
- type?: "REGISTER" | undefined;
3267
- registrationNumber?: string | undefined;
3268
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3269
- eventId: string;
3270
- transactionId: string;
3271
- declaration?: Record<string, unknown> | undefined;
3272
- annotation?: Record<string, unknown> | undefined;
3273
- originalActionId?: string | undefined;
3274
- keepAssignment?: boolean | undefined;
3275
- keepAssignmentIfAccepted?: boolean | undefined;
3276
- keepAssignmentIfRejected?: boolean | undefined;
3277
- waitFor?: boolean | undefined;
3278
- type?: "NOTIFY" | undefined;
3279
- createdAtLocation?: string | null | undefined;
3280
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3281
- eventId: string;
3282
- transactionId: string;
3283
- declaration?: Record<string, unknown> | undefined;
3284
- annotation?: Record<string, unknown> | undefined;
3285
- originalActionId?: string | undefined;
3286
- keepAssignment?: boolean | undefined;
3287
- keepAssignmentIfAccepted?: boolean | undefined;
3288
- keepAssignmentIfRejected?: boolean | undefined;
3289
- waitFor?: boolean | undefined;
3290
- createdAtLocation?: string | null | undefined;
3291
- type?: "DECLARE" | undefined;
3292
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3293
- eventId: string;
3294
- transactionId: string;
3295
- content: {
3296
- reason: string;
3297
- };
3298
- declaration?: Record<string, unknown> | undefined;
3299
- annotation?: Record<string, unknown> | undefined;
3300
- originalActionId?: string | undefined;
3301
- keepAssignment?: boolean | undefined;
3302
- keepAssignmentIfAccepted?: boolean | undefined;
3303
- keepAssignmentIfRejected?: boolean | undefined;
3304
- waitFor?: boolean | undefined;
3305
- createdAtLocation?: string | null | undefined;
3306
- type?: "REJECT" | undefined;
3307
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3308
- eventId: string;
3309
- transactionId: string;
3310
- content: {
3311
- duplicates: {
3312
- id: string;
3313
- trackingId: string;
3314
- }[];
3315
- };
3316
- declaration?: Record<string, unknown> | undefined;
3317
- annotation?: Record<string, unknown> | undefined;
3318
- originalActionId?: string | undefined;
3319
- keepAssignment?: boolean | undefined;
3320
- keepAssignmentIfAccepted?: boolean | undefined;
3321
- keepAssignmentIfRejected?: boolean | undefined;
3322
- waitFor?: boolean | undefined;
3323
- createdAtLocation?: string | null | undefined;
3324
- type?: "DUPLICATE_DETECTED" | undefined;
3325
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3326
- eventId: string;
3327
- transactionId: string;
3328
- declaration?: Record<string, unknown> | undefined;
3329
- annotation?: Record<string, unknown> | undefined;
3330
- originalActionId?: string | undefined;
3331
- keepAssignment?: boolean | undefined;
3332
- keepAssignmentIfAccepted?: boolean | undefined;
3333
- keepAssignmentIfRejected?: boolean | undefined;
3334
- waitFor?: boolean | undefined;
3335
- createdAtLocation?: string | null | undefined;
3336
- type?: "MARK_AS_DUPLICATE" | undefined;
3337
- content?: {
3338
- duplicateOf: string;
3339
- } | undefined;
3340
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3341
- eventId: string;
3342
- transactionId: string;
3343
- declaration?: Record<string, unknown> | undefined;
3344
- annotation?: Record<string, unknown> | undefined;
3345
- originalActionId?: string | undefined;
3346
- keepAssignment?: boolean | undefined;
3347
- keepAssignmentIfAccepted?: boolean | undefined;
3348
- keepAssignmentIfRejected?: boolean | undefined;
3349
- waitFor?: boolean | undefined;
3350
- createdAtLocation?: string | null | undefined;
3351
- type?: "MARK_AS_NOT_DUPLICATE" | undefined;
3352
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3353
- eventId: string;
3354
- transactionId: string;
3355
- content: {
3356
- reason: string;
3357
- };
3358
- declaration?: Record<string, unknown> | undefined;
3359
- annotation?: Record<string, unknown> | undefined;
3360
- originalActionId?: string | undefined;
3361
- keepAssignment?: boolean | undefined;
3362
- keepAssignmentIfAccepted?: boolean | undefined;
3363
- keepAssignmentIfRejected?: boolean | undefined;
3364
- waitFor?: boolean | undefined;
3365
- createdAtLocation?: string | null | undefined;
3366
- type?: "ARCHIVE" | undefined;
3367
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3368
- eventId: string;
3369
- transactionId: string;
3370
- type: "ASSIGN";
3371
- assignedTo: string;
3372
- declaration?: Record<string, unknown> | undefined;
3373
- annotation?: Record<string, unknown> | undefined;
3374
- originalActionId?: string | undefined;
3375
- keepAssignment?: boolean | undefined;
3376
- keepAssignmentIfAccepted?: boolean | undefined;
3377
- keepAssignmentIfRejected?: boolean | undefined;
3378
- waitFor?: boolean | undefined;
3379
- createdAtLocation?: string | null | undefined;
3380
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3381
- eventId: string;
3382
- transactionId: string;
3383
- declaration?: Record<string, unknown> | undefined;
3384
- annotation?: Record<string, unknown> | undefined;
3385
- originalActionId?: string | undefined;
3386
- keepAssignment?: boolean | undefined;
3387
- keepAssignmentIfAccepted?: boolean | undefined;
3388
- keepAssignmentIfRejected?: boolean | undefined;
3389
- waitFor?: boolean | undefined;
3390
- createdAtLocation?: string | null | undefined;
3391
- type?: "UNASSIGN" | undefined;
3392
- assignedTo?: null | undefined;
3393
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3394
- eventId: string;
3395
- transactionId: string;
3396
- declaration?: Record<string, unknown> | undefined;
3397
- annotation?: Record<string, unknown> | undefined;
3398
- originalActionId?: string | undefined;
3399
- keepAssignment?: boolean | undefined;
3400
- keepAssignmentIfAccepted?: boolean | undefined;
3401
- keepAssignmentIfRejected?: boolean | undefined;
3402
- waitFor?: boolean | undefined;
3403
- createdAtLocation?: string | null | undefined;
3404
- type?: "PRINT_CERTIFICATE" | undefined;
3405
- content?: {
3406
- templateId?: string | undefined;
3407
- } | undefined;
3408
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3409
- eventId: string;
3410
- transactionId: string;
3411
- declaration?: Record<string, unknown> | undefined;
3412
- annotation?: Record<string, unknown> | undefined;
3413
- originalActionId?: string | undefined;
3414
- keepAssignment?: boolean | undefined;
3415
- keepAssignmentIfAccepted?: boolean | undefined;
3416
- keepAssignmentIfRejected?: boolean | undefined;
3417
- waitFor?: boolean | undefined;
3418
- createdAtLocation?: string | null | undefined;
3419
- type?: "REQUEST_CORRECTION" | undefined;
3420
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3421
- eventId: string;
3422
- transactionId: string;
3423
- requestId: string;
3424
- content: {
3425
- reason: string;
3426
- };
3427
- declaration?: Record<string, unknown> | undefined;
3428
- annotation?: Record<string, unknown> | undefined;
3429
- originalActionId?: string | undefined;
3430
- keepAssignment?: boolean | undefined;
3431
- keepAssignmentIfAccepted?: boolean | undefined;
3432
- keepAssignmentIfRejected?: boolean | undefined;
3433
- waitFor?: boolean | undefined;
3434
- createdAtLocation?: string | null | undefined;
3435
- type?: "REJECT_CORRECTION" | undefined;
3436
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3437
- eventId: string;
3438
- transactionId: string;
3439
- requestId: string;
3440
- declaration?: Record<string, unknown> | undefined;
3441
- annotation?: Record<string, unknown> | undefined;
3442
- originalActionId?: string | undefined;
3443
- keepAssignment?: boolean | undefined;
3444
- keepAssignmentIfAccepted?: boolean | undefined;
3445
- keepAssignmentIfRejected?: boolean | undefined;
3446
- waitFor?: boolean | undefined;
3447
- createdAtLocation?: string | null | undefined;
3448
- type?: "APPROVE_CORRECTION" | undefined;
3449
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3450
- eventId: string;
3451
- transactionId: string;
3452
- declaration?: Record<string, unknown> | undefined;
3453
- annotation?: Record<string, unknown> | undefined;
3454
- originalActionId?: string | undefined;
3455
- keepAssignment?: boolean | undefined;
3456
- keepAssignmentIfAccepted?: boolean | undefined;
3457
- keepAssignmentIfRejected?: boolean | undefined;
3458
- waitFor?: boolean | undefined;
3459
- createdAtLocation?: string | null | undefined;
3460
- type?: "READ" | undefined;
3461
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1669
+ input: import("../commons").ActionInput & {
1670
+ actionId: string;
1671
+ };
1672
+ output: import("../commons").EventDocument;
1673
+ meta: import("trpc-to-openapi").OpenApiMeta;
1674
+ }>;
1675
+ reject: import("@trpc/server").TRPCMutationProcedure<{
1676
+ input: {
3462
1677
  eventId: string;
1678
+ actionId: string;
3463
1679
  transactionId: string;
3464
- customActionType: string;
3465
- declaration?: Record<string, unknown> | undefined;
3466
- annotation?: Record<string, unknown> | undefined;
3467
- originalActionId?: string | undefined;
3468
- keepAssignment?: boolean | undefined;
3469
- keepAssignmentIfAccepted?: boolean | undefined;
3470
- keepAssignmentIfRejected?: boolean | undefined;
3471
- waitFor?: boolean | undefined;
3472
- createdAtLocation?: string | null | undefined;
3473
- type?: "CUSTOM" | undefined;
3474
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1680
+ };
1681
+ output: import("../commons").EventDocument;
1682
+ meta: import("trpc-to-openapi").OpenApiMeta;
1683
+ }>;
1684
+ }>>;
1685
+ register: import("@trpc/server").TRPCBuiltRouter<{
1686
+ ctx: Partial<{
1687
+ token: `Bearer ${string}`;
1688
+ user: {
1689
+ id: string & import("zod").$brand<"UUID">;
1690
+ type: "system";
1691
+ signature?: undefined;
1692
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1693
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1694
+ } | {
1695
+ id: string & import("zod").$brand<"UUID">;
1696
+ type: "user";
1697
+ role: string;
1698
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
1699
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1700
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1701
+ };
1702
+ }>;
1703
+ meta: import("trpc-to-openapi").OpenApiMeta;
1704
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1705
+ transformer: true;
1706
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1707
+ request: import("@trpc/server").TRPCMutationProcedure<{
1708
+ input: import("../commons").ActionInput;
1709
+ output: import("../commons").EventDocument;
1710
+ meta: import("trpc-to-openapi").OpenApiMeta;
1711
+ }>;
1712
+ accept: import("@trpc/server").TRPCMutationProcedure<{
1713
+ input: import("../commons").ActionInput & {
1714
+ actionId: string;
1715
+ };
1716
+ output: import("../commons").EventDocument;
1717
+ meta: import("trpc-to-openapi").OpenApiMeta;
1718
+ }>;
1719
+ reject: import("@trpc/server").TRPCMutationProcedure<{
1720
+ input: {
3475
1721
  eventId: string;
1722
+ actionId: string;
3476
1723
  transactionId: string;
3477
- content: {
3478
- comment?: string | undefined;
3479
- };
3480
- declaration?: Record<string, unknown> | undefined;
3481
- annotation?: Record<string, unknown> | undefined;
3482
- originalActionId?: string | undefined;
3483
- keepAssignment?: boolean | undefined;
3484
- keepAssignmentIfAccepted?: boolean | undefined;
3485
- keepAssignmentIfRejected?: boolean | undefined;
3486
- waitFor?: boolean | undefined;
3487
- createdAtLocation?: string | null | undefined;
3488
- type?: "EDIT" | undefined;
3489
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
1724
+ };
1725
+ output: import("../commons").EventDocument;
1726
+ meta: import("trpc-to-openapi").OpenApiMeta;
1727
+ }>;
1728
+ }>>;
1729
+ printCertificate: import("@trpc/server").TRPCBuiltRouter<{
1730
+ ctx: Partial<{
1731
+ token: `Bearer ${string}`;
1732
+ user: {
1733
+ id: string & import("zod").$brand<"UUID">;
1734
+ type: "system";
1735
+ signature?: undefined;
1736
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1737
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1738
+ } | {
1739
+ id: string & import("zod").$brand<"UUID">;
1740
+ type: "user";
1741
+ role: string;
1742
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
1743
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1744
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1745
+ };
1746
+ }>;
1747
+ meta: import("trpc-to-openapi").OpenApiMeta;
1748
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1749
+ transformer: true;
1750
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1751
+ request: import("@trpc/server").TRPCMutationProcedure<{
1752
+ input: import("../commons").ActionInput;
1753
+ output: import("../commons").EventDocument;
1754
+ meta: import("trpc-to-openapi").OpenApiMeta;
1755
+ }>;
1756
+ accept: import("@trpc/server").TRPCMutationProcedure<{
1757
+ input: import("../commons").ActionInput & {
3490
1758
  actionId: string;
3491
1759
  };
3492
1760
  output: import("../commons").EventDocument;
3493
1761
  meta: import("trpc-to-openapi").OpenApiMeta;
3494
1762
  }>;
3495
1763
  reject: import("@trpc/server").TRPCMutationProcedure<{
3496
- input: import("zod").input<import("zod").ZodObject<{
3497
- transactionId: import("zod").ZodString;
3498
- eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3499
- keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3500
- actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3501
- }, import("zod/v4/core").$strip>>;
1764
+ input: {
1765
+ eventId: string;
1766
+ actionId: string;
1767
+ transactionId: string;
1768
+ };
3502
1769
  output: import("../commons").EventDocument;
3503
1770
  meta: import("trpc-to-openapi").OpenApiMeta;
3504
1771
  }>;
@@ -3534,8 +1801,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3534
1801
  annotation?: Record<string, unknown> | undefined;
3535
1802
  originalActionId?: string | undefined;
3536
1803
  keepAssignment?: boolean | undefined;
3537
- keepAssignmentIfAccepted?: boolean | undefined;
3538
- keepAssignmentIfRejected?: boolean | undefined;
3539
1804
  waitFor?: boolean | undefined;
3540
1805
  createdAtLocation?: string | null | undefined;
3541
1806
  type?: "CUSTOM" | undefined;
@@ -3830,279 +2095,32 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3830
2095
  id: string & import("zod").$brand<"UUID">;
3831
2096
  transactionId: string;
3832
2097
  createdByUserType: "system" | "user";
3833
- createdAt: string;
3834
- createdBy: string;
3835
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
3836
- status: "Rejected";
3837
- createdByRole?: string | undefined;
3838
- createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3839
- createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
3840
- originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3841
- })[];
3842
- trackingId: string;
3843
- };
3844
- meta: import("trpc-to-openapi").OpenApiMeta;
3845
- }>;
3846
- accept: import("@trpc/server").TRPCMutationProcedure<{
3847
- input: (Omit<{
3848
- eventId: string;
3849
- transactionId: string;
3850
- declaration?: Record<string, unknown> | undefined;
3851
- annotation?: Record<string, unknown> | undefined;
3852
- originalActionId?: string | undefined;
3853
- keepAssignment?: boolean | undefined;
3854
- keepAssignmentIfAccepted?: boolean | undefined;
3855
- keepAssignmentIfRejected?: boolean | undefined;
3856
- waitFor?: boolean | undefined;
3857
- type?: "CREATE" | undefined;
3858
- createdAtLocation?: string | null | undefined;
3859
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3860
- eventId: string;
3861
- transactionId: string;
3862
- declaration?: Record<string, unknown> | undefined;
3863
- annotation?: Record<string, unknown> | undefined;
3864
- originalActionId?: string | undefined;
3865
- keepAssignment?: boolean | undefined;
3866
- keepAssignmentIfAccepted?: boolean | undefined;
3867
- keepAssignmentIfRejected?: boolean | undefined;
3868
- waitFor?: boolean | undefined;
3869
- createdAtLocation?: string | null | undefined;
3870
- type?: "REGISTER" | undefined;
3871
- registrationNumber?: string | undefined;
3872
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3873
- eventId: string;
3874
- transactionId: string;
3875
- declaration?: Record<string, unknown> | undefined;
3876
- annotation?: Record<string, unknown> | undefined;
3877
- originalActionId?: string | undefined;
3878
- keepAssignment?: boolean | undefined;
3879
- keepAssignmentIfAccepted?: boolean | undefined;
3880
- keepAssignmentIfRejected?: boolean | undefined;
3881
- waitFor?: boolean | undefined;
3882
- type?: "NOTIFY" | undefined;
3883
- createdAtLocation?: string | null | undefined;
3884
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3885
- eventId: string;
3886
- transactionId: string;
3887
- declaration?: Record<string, unknown> | undefined;
3888
- annotation?: Record<string, unknown> | undefined;
3889
- originalActionId?: string | undefined;
3890
- keepAssignment?: boolean | undefined;
3891
- keepAssignmentIfAccepted?: boolean | undefined;
3892
- keepAssignmentIfRejected?: boolean | undefined;
3893
- waitFor?: boolean | undefined;
3894
- createdAtLocation?: string | null | undefined;
3895
- type?: "DECLARE" | undefined;
3896
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3897
- eventId: string;
3898
- transactionId: string;
3899
- content: {
3900
- reason: string;
3901
- };
3902
- declaration?: Record<string, unknown> | undefined;
3903
- annotation?: Record<string, unknown> | undefined;
3904
- originalActionId?: string | undefined;
3905
- keepAssignment?: boolean | undefined;
3906
- keepAssignmentIfAccepted?: boolean | undefined;
3907
- keepAssignmentIfRejected?: boolean | undefined;
3908
- waitFor?: boolean | undefined;
3909
- createdAtLocation?: string | null | undefined;
3910
- type?: "REJECT" | undefined;
3911
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3912
- eventId: string;
3913
- transactionId: string;
3914
- content: {
3915
- duplicates: {
3916
- id: string;
3917
- trackingId: string;
3918
- }[];
3919
- };
3920
- declaration?: Record<string, unknown> | undefined;
3921
- annotation?: Record<string, unknown> | undefined;
3922
- originalActionId?: string | undefined;
3923
- keepAssignment?: boolean | undefined;
3924
- keepAssignmentIfAccepted?: boolean | undefined;
3925
- keepAssignmentIfRejected?: boolean | undefined;
3926
- waitFor?: boolean | undefined;
3927
- createdAtLocation?: string | null | undefined;
3928
- type?: "DUPLICATE_DETECTED" | undefined;
3929
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3930
- eventId: string;
3931
- transactionId: string;
3932
- declaration?: Record<string, unknown> | undefined;
3933
- annotation?: Record<string, unknown> | undefined;
3934
- originalActionId?: string | undefined;
3935
- keepAssignment?: boolean | undefined;
3936
- keepAssignmentIfAccepted?: boolean | undefined;
3937
- keepAssignmentIfRejected?: boolean | undefined;
3938
- waitFor?: boolean | undefined;
3939
- createdAtLocation?: string | null | undefined;
3940
- type?: "MARK_AS_DUPLICATE" | undefined;
3941
- content?: {
3942
- duplicateOf: string;
3943
- } | undefined;
3944
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3945
- eventId: string;
3946
- transactionId: string;
3947
- declaration?: Record<string, unknown> | undefined;
3948
- annotation?: Record<string, unknown> | undefined;
3949
- originalActionId?: string | undefined;
3950
- keepAssignment?: boolean | undefined;
3951
- keepAssignmentIfAccepted?: boolean | undefined;
3952
- keepAssignmentIfRejected?: boolean | undefined;
3953
- waitFor?: boolean | undefined;
3954
- createdAtLocation?: string | null | undefined;
3955
- type?: "MARK_AS_NOT_DUPLICATE" | undefined;
3956
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3957
- eventId: string;
3958
- transactionId: string;
3959
- content: {
3960
- reason: string;
3961
- };
3962
- declaration?: Record<string, unknown> | undefined;
3963
- annotation?: Record<string, unknown> | undefined;
3964
- originalActionId?: string | undefined;
3965
- keepAssignment?: boolean | undefined;
3966
- keepAssignmentIfAccepted?: boolean | undefined;
3967
- keepAssignmentIfRejected?: boolean | undefined;
3968
- waitFor?: boolean | undefined;
3969
- createdAtLocation?: string | null | undefined;
3970
- type?: "ARCHIVE" | undefined;
3971
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3972
- eventId: string;
3973
- transactionId: string;
3974
- type: "ASSIGN";
3975
- assignedTo: string;
3976
- declaration?: Record<string, unknown> | undefined;
3977
- annotation?: Record<string, unknown> | undefined;
3978
- originalActionId?: string | undefined;
3979
- keepAssignment?: boolean | undefined;
3980
- keepAssignmentIfAccepted?: boolean | undefined;
3981
- keepAssignmentIfRejected?: boolean | undefined;
3982
- waitFor?: boolean | undefined;
3983
- createdAtLocation?: string | null | undefined;
3984
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3985
- eventId: string;
3986
- transactionId: string;
3987
- declaration?: Record<string, unknown> | undefined;
3988
- annotation?: Record<string, unknown> | undefined;
3989
- originalActionId?: string | undefined;
3990
- keepAssignment?: boolean | undefined;
3991
- keepAssignmentIfAccepted?: boolean | undefined;
3992
- keepAssignmentIfRejected?: boolean | undefined;
3993
- waitFor?: boolean | undefined;
3994
- createdAtLocation?: string | null | undefined;
3995
- type?: "UNASSIGN" | undefined;
3996
- assignedTo?: null | undefined;
3997
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3998
- eventId: string;
3999
- transactionId: string;
4000
- declaration?: Record<string, unknown> | undefined;
4001
- annotation?: Record<string, unknown> | undefined;
4002
- originalActionId?: string | undefined;
4003
- keepAssignment?: boolean | undefined;
4004
- keepAssignmentIfAccepted?: boolean | undefined;
4005
- keepAssignmentIfRejected?: boolean | undefined;
4006
- waitFor?: boolean | undefined;
4007
- createdAtLocation?: string | null | undefined;
4008
- type?: "PRINT_CERTIFICATE" | undefined;
4009
- content?: {
4010
- templateId?: string | undefined;
4011
- } | undefined;
4012
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4013
- eventId: string;
4014
- transactionId: string;
4015
- declaration?: Record<string, unknown> | undefined;
4016
- annotation?: Record<string, unknown> | undefined;
4017
- originalActionId?: string | undefined;
4018
- keepAssignment?: boolean | undefined;
4019
- keepAssignmentIfAccepted?: boolean | undefined;
4020
- keepAssignmentIfRejected?: boolean | undefined;
4021
- waitFor?: boolean | undefined;
4022
- createdAtLocation?: string | null | undefined;
4023
- type?: "REQUEST_CORRECTION" | undefined;
4024
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4025
- eventId: string;
4026
- transactionId: string;
4027
- requestId: string;
4028
- content: {
4029
- reason: string;
4030
- };
4031
- declaration?: Record<string, unknown> | undefined;
4032
- annotation?: Record<string, unknown> | undefined;
4033
- originalActionId?: string | undefined;
4034
- keepAssignment?: boolean | undefined;
4035
- keepAssignmentIfAccepted?: boolean | undefined;
4036
- keepAssignmentIfRejected?: boolean | undefined;
4037
- waitFor?: boolean | undefined;
4038
- createdAtLocation?: string | null | undefined;
4039
- type?: "REJECT_CORRECTION" | undefined;
4040
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4041
- eventId: string;
4042
- transactionId: string;
4043
- requestId: string;
4044
- declaration?: Record<string, unknown> | undefined;
4045
- annotation?: Record<string, unknown> | undefined;
4046
- originalActionId?: string | undefined;
4047
- keepAssignment?: boolean | undefined;
4048
- keepAssignmentIfAccepted?: boolean | undefined;
4049
- keepAssignmentIfRejected?: boolean | undefined;
4050
- waitFor?: boolean | undefined;
4051
- createdAtLocation?: string | null | undefined;
4052
- type?: "APPROVE_CORRECTION" | undefined;
4053
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4054
- eventId: string;
4055
- transactionId: string;
4056
- declaration?: Record<string, unknown> | undefined;
4057
- annotation?: Record<string, unknown> | undefined;
4058
- originalActionId?: string | undefined;
4059
- keepAssignment?: boolean | undefined;
4060
- keepAssignmentIfAccepted?: boolean | undefined;
4061
- keepAssignmentIfRejected?: boolean | undefined;
4062
- waitFor?: boolean | undefined;
4063
- createdAtLocation?: string | null | undefined;
4064
- type?: "READ" | undefined;
4065
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4066
- eventId: string;
4067
- transactionId: string;
4068
- customActionType: string;
4069
- declaration?: Record<string, unknown> | undefined;
4070
- annotation?: Record<string, unknown> | undefined;
4071
- originalActionId?: string | undefined;
4072
- keepAssignment?: boolean | undefined;
4073
- keepAssignmentIfAccepted?: boolean | undefined;
4074
- keepAssignmentIfRejected?: boolean | undefined;
4075
- waitFor?: boolean | undefined;
4076
- createdAtLocation?: string | null | undefined;
4077
- type?: "CUSTOM" | undefined;
4078
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4079
- eventId: string;
4080
- transactionId: string;
4081
- content: {
4082
- comment?: string | undefined;
4083
- };
4084
- declaration?: Record<string, unknown> | undefined;
4085
- annotation?: Record<string, unknown> | undefined;
4086
- originalActionId?: string | undefined;
4087
- keepAssignment?: boolean | undefined;
4088
- keepAssignmentIfAccepted?: boolean | undefined;
4089
- keepAssignmentIfRejected?: boolean | undefined;
4090
- waitFor?: boolean | undefined;
4091
- createdAtLocation?: string | null | undefined;
4092
- type?: "EDIT" | undefined;
4093
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2098
+ createdAt: string;
2099
+ createdBy: string;
2100
+ type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
2101
+ status: "Rejected";
2102
+ createdByRole?: string | undefined;
2103
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2104
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2105
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2106
+ })[];
2107
+ trackingId: string;
2108
+ };
2109
+ meta: import("trpc-to-openapi").OpenApiMeta;
2110
+ }>;
2111
+ accept: import("@trpc/server").TRPCMutationProcedure<{
2112
+ input: import("../commons").ActionInput & {
4094
2113
  actionId: string;
4095
2114
  };
4096
2115
  output: import("../commons").EventDocument;
4097
2116
  meta: import("trpc-to-openapi").OpenApiMeta;
4098
2117
  }>;
4099
2118
  reject: import("@trpc/server").TRPCMutationProcedure<{
4100
- input: import("zod").input<import("zod").ZodObject<{
4101
- transactionId: import("zod").ZodString;
4102
- eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
4103
- keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
4104
- actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
4105
- }, import("zod/v4/core").$strip>>;
2119
+ input: {
2120
+ eventId: string;
2121
+ actionId: string;
2122
+ transactionId: string;
2123
+ };
4106
2124
  output: import("../commons").EventDocument;
4107
2125
  meta: import("trpc-to-openapi").OpenApiMeta;
4108
2126
  }>;
@@ -4139,8 +2157,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4139
2157
  annotation?: Record<string, unknown> | undefined;
4140
2158
  originalActionId?: string | undefined;
4141
2159
  keepAssignment?: boolean | undefined;
4142
- keepAssignmentIfAccepted?: boolean | undefined;
4143
- keepAssignmentIfRejected?: boolean | undefined;
4144
2160
  waitFor?: boolean | undefined;
4145
2161
  createdAtLocation?: string | null | undefined;
4146
2162
  };
@@ -4455,8 +2471,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4455
2471
  annotation?: Record<string, unknown> | undefined;
4456
2472
  originalActionId?: string | undefined;
4457
2473
  keepAssignment?: boolean | undefined;
4458
- keepAssignmentIfAccepted?: boolean | undefined;
4459
- keepAssignmentIfRejected?: boolean | undefined;
4460
2474
  waitFor?: boolean | undefined;
4461
2475
  createdAtLocation?: string | null | undefined;
4462
2476
  type?: "UNASSIGN" | undefined;
@@ -4816,265 +2830,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4816
2830
  meta: import("trpc-to-openapi").OpenApiMeta;
4817
2831
  }>;
4818
2832
  accept: import("@trpc/server").TRPCMutationProcedure<{
4819
- input: (Omit<{
4820
- eventId: string;
4821
- transactionId: string;
4822
- declaration?: Record<string, unknown> | undefined;
4823
- annotation?: Record<string, unknown> | undefined;
4824
- originalActionId?: string | undefined;
4825
- keepAssignment?: boolean | undefined;
4826
- keepAssignmentIfAccepted?: boolean | undefined;
4827
- keepAssignmentIfRejected?: boolean | undefined;
4828
- waitFor?: boolean | undefined;
4829
- type?: "CREATE" | undefined;
4830
- createdAtLocation?: string | null | undefined;
4831
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4832
- eventId: string;
4833
- transactionId: string;
4834
- declaration?: Record<string, unknown> | undefined;
4835
- annotation?: Record<string, unknown> | undefined;
4836
- originalActionId?: string | undefined;
4837
- keepAssignment?: boolean | undefined;
4838
- keepAssignmentIfAccepted?: boolean | undefined;
4839
- keepAssignmentIfRejected?: boolean | undefined;
4840
- waitFor?: boolean | undefined;
4841
- createdAtLocation?: string | null | undefined;
4842
- type?: "REGISTER" | undefined;
4843
- registrationNumber?: string | undefined;
4844
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4845
- eventId: string;
4846
- transactionId: string;
4847
- declaration?: Record<string, unknown> | undefined;
4848
- annotation?: Record<string, unknown> | undefined;
4849
- originalActionId?: string | undefined;
4850
- keepAssignment?: boolean | undefined;
4851
- keepAssignmentIfAccepted?: boolean | undefined;
4852
- keepAssignmentIfRejected?: boolean | undefined;
4853
- waitFor?: boolean | undefined;
4854
- type?: "NOTIFY" | undefined;
4855
- createdAtLocation?: string | null | undefined;
4856
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4857
- eventId: string;
4858
- transactionId: string;
4859
- declaration?: Record<string, unknown> | undefined;
4860
- annotation?: Record<string, unknown> | undefined;
4861
- originalActionId?: string | undefined;
4862
- keepAssignment?: boolean | undefined;
4863
- keepAssignmentIfAccepted?: boolean | undefined;
4864
- keepAssignmentIfRejected?: boolean | undefined;
4865
- waitFor?: boolean | undefined;
4866
- createdAtLocation?: string | null | undefined;
4867
- type?: "DECLARE" | undefined;
4868
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4869
- eventId: string;
4870
- transactionId: string;
4871
- content: {
4872
- reason: string;
4873
- };
4874
- declaration?: Record<string, unknown> | undefined;
4875
- annotation?: Record<string, unknown> | undefined;
4876
- originalActionId?: string | undefined;
4877
- keepAssignment?: boolean | undefined;
4878
- keepAssignmentIfAccepted?: boolean | undefined;
4879
- keepAssignmentIfRejected?: boolean | undefined;
4880
- waitFor?: boolean | undefined;
4881
- createdAtLocation?: string | null | undefined;
4882
- type?: "REJECT" | undefined;
4883
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4884
- eventId: string;
4885
- transactionId: string;
4886
- content: {
4887
- duplicates: {
4888
- id: string;
4889
- trackingId: string;
4890
- }[];
4891
- };
4892
- declaration?: Record<string, unknown> | undefined;
4893
- annotation?: Record<string, unknown> | undefined;
4894
- originalActionId?: string | undefined;
4895
- keepAssignment?: boolean | undefined;
4896
- keepAssignmentIfAccepted?: boolean | undefined;
4897
- keepAssignmentIfRejected?: boolean | undefined;
4898
- waitFor?: boolean | undefined;
4899
- createdAtLocation?: string | null | undefined;
4900
- type?: "DUPLICATE_DETECTED" | undefined;
4901
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4902
- eventId: string;
4903
- transactionId: string;
4904
- declaration?: Record<string, unknown> | undefined;
4905
- annotation?: Record<string, unknown> | undefined;
4906
- originalActionId?: string | undefined;
4907
- keepAssignment?: boolean | undefined;
4908
- keepAssignmentIfAccepted?: boolean | undefined;
4909
- keepAssignmentIfRejected?: boolean | undefined;
4910
- waitFor?: boolean | undefined;
4911
- createdAtLocation?: string | null | undefined;
4912
- type?: "MARK_AS_DUPLICATE" | undefined;
4913
- content?: {
4914
- duplicateOf: string;
4915
- } | undefined;
4916
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4917
- eventId: string;
4918
- transactionId: string;
4919
- declaration?: Record<string, unknown> | undefined;
4920
- annotation?: Record<string, unknown> | undefined;
4921
- originalActionId?: string | undefined;
4922
- keepAssignment?: boolean | undefined;
4923
- keepAssignmentIfAccepted?: boolean | undefined;
4924
- keepAssignmentIfRejected?: boolean | undefined;
4925
- waitFor?: boolean | undefined;
4926
- createdAtLocation?: string | null | undefined;
4927
- type?: "MARK_AS_NOT_DUPLICATE" | undefined;
4928
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4929
- eventId: string;
4930
- transactionId: string;
4931
- content: {
4932
- reason: string;
4933
- };
4934
- declaration?: Record<string, unknown> | undefined;
4935
- annotation?: Record<string, unknown> | undefined;
4936
- originalActionId?: string | undefined;
4937
- keepAssignment?: boolean | undefined;
4938
- keepAssignmentIfAccepted?: boolean | undefined;
4939
- keepAssignmentIfRejected?: boolean | undefined;
4940
- waitFor?: boolean | undefined;
4941
- createdAtLocation?: string | null | undefined;
4942
- type?: "ARCHIVE" | undefined;
4943
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4944
- eventId: string;
4945
- transactionId: string;
4946
- type: "ASSIGN";
4947
- assignedTo: string;
4948
- declaration?: Record<string, unknown> | undefined;
4949
- annotation?: Record<string, unknown> | undefined;
4950
- originalActionId?: string | undefined;
4951
- keepAssignment?: boolean | undefined;
4952
- keepAssignmentIfAccepted?: boolean | undefined;
4953
- keepAssignmentIfRejected?: boolean | undefined;
4954
- waitFor?: boolean | undefined;
4955
- createdAtLocation?: string | null | undefined;
4956
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4957
- eventId: string;
4958
- transactionId: string;
4959
- declaration?: Record<string, unknown> | undefined;
4960
- annotation?: Record<string, unknown> | undefined;
4961
- originalActionId?: string | undefined;
4962
- keepAssignment?: boolean | undefined;
4963
- keepAssignmentIfAccepted?: boolean | undefined;
4964
- keepAssignmentIfRejected?: boolean | undefined;
4965
- waitFor?: boolean | undefined;
4966
- createdAtLocation?: string | null | undefined;
4967
- type?: "UNASSIGN" | undefined;
4968
- assignedTo?: null | undefined;
4969
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4970
- eventId: string;
4971
- transactionId: string;
4972
- declaration?: Record<string, unknown> | undefined;
4973
- annotation?: Record<string, unknown> | undefined;
4974
- originalActionId?: string | undefined;
4975
- keepAssignment?: boolean | undefined;
4976
- keepAssignmentIfAccepted?: boolean | undefined;
4977
- keepAssignmentIfRejected?: boolean | undefined;
4978
- waitFor?: boolean | undefined;
4979
- createdAtLocation?: string | null | undefined;
4980
- type?: "PRINT_CERTIFICATE" | undefined;
4981
- content?: {
4982
- templateId?: string | undefined;
4983
- } | undefined;
4984
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4985
- eventId: string;
4986
- transactionId: string;
4987
- declaration?: Record<string, unknown> | undefined;
4988
- annotation?: Record<string, unknown> | undefined;
4989
- originalActionId?: string | undefined;
4990
- keepAssignment?: boolean | undefined;
4991
- keepAssignmentIfAccepted?: boolean | undefined;
4992
- keepAssignmentIfRejected?: boolean | undefined;
4993
- waitFor?: boolean | undefined;
4994
- createdAtLocation?: string | null | undefined;
4995
- type?: "REQUEST_CORRECTION" | undefined;
4996
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4997
- eventId: string;
4998
- transactionId: string;
4999
- requestId: string;
5000
- content: {
5001
- reason: string;
5002
- };
5003
- declaration?: Record<string, unknown> | undefined;
5004
- annotation?: Record<string, unknown> | undefined;
5005
- originalActionId?: string | undefined;
5006
- keepAssignment?: boolean | undefined;
5007
- keepAssignmentIfAccepted?: boolean | undefined;
5008
- keepAssignmentIfRejected?: boolean | undefined;
5009
- waitFor?: boolean | undefined;
5010
- createdAtLocation?: string | null | undefined;
5011
- type?: "REJECT_CORRECTION" | undefined;
5012
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5013
- eventId: string;
5014
- transactionId: string;
5015
- requestId: string;
5016
- declaration?: Record<string, unknown> | undefined;
5017
- annotation?: Record<string, unknown> | undefined;
5018
- originalActionId?: string | undefined;
5019
- keepAssignment?: boolean | undefined;
5020
- keepAssignmentIfAccepted?: boolean | undefined;
5021
- keepAssignmentIfRejected?: boolean | undefined;
5022
- waitFor?: boolean | undefined;
5023
- createdAtLocation?: string | null | undefined;
5024
- type?: "APPROVE_CORRECTION" | undefined;
5025
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5026
- eventId: string;
5027
- transactionId: string;
5028
- declaration?: Record<string, unknown> | undefined;
5029
- annotation?: Record<string, unknown> | undefined;
5030
- originalActionId?: string | undefined;
5031
- keepAssignment?: boolean | undefined;
5032
- keepAssignmentIfAccepted?: boolean | undefined;
5033
- keepAssignmentIfRejected?: boolean | undefined;
5034
- waitFor?: boolean | undefined;
5035
- createdAtLocation?: string | null | undefined;
5036
- type?: "READ" | undefined;
5037
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5038
- eventId: string;
5039
- transactionId: string;
5040
- customActionType: string;
5041
- declaration?: Record<string, unknown> | undefined;
5042
- annotation?: Record<string, unknown> | undefined;
5043
- originalActionId?: string | undefined;
5044
- keepAssignment?: boolean | undefined;
5045
- keepAssignmentIfAccepted?: boolean | undefined;
5046
- keepAssignmentIfRejected?: boolean | undefined;
5047
- waitFor?: boolean | undefined;
5048
- createdAtLocation?: string | null | undefined;
5049
- type?: "CUSTOM" | undefined;
5050
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5051
- eventId: string;
5052
- transactionId: string;
5053
- content: {
5054
- comment?: string | undefined;
5055
- };
5056
- declaration?: Record<string, unknown> | undefined;
5057
- annotation?: Record<string, unknown> | undefined;
5058
- originalActionId?: string | undefined;
5059
- keepAssignment?: boolean | undefined;
5060
- keepAssignmentIfAccepted?: boolean | undefined;
5061
- keepAssignmentIfRejected?: boolean | undefined;
5062
- waitFor?: boolean | undefined;
5063
- createdAtLocation?: string | null | undefined;
5064
- type?: "EDIT" | undefined;
5065
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2833
+ input: import("../commons").ActionInput & {
5066
2834
  actionId: string;
5067
2835
  };
5068
2836
  output: import("../commons").EventDocument;
5069
2837
  meta: import("trpc-to-openapi").OpenApiMeta;
5070
2838
  }>;
5071
2839
  reject: import("@trpc/server").TRPCMutationProcedure<{
5072
- input: import("zod").input<import("zod").ZodObject<{
5073
- transactionId: import("zod").ZodString;
5074
- eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5075
- keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
5076
- actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5077
- }, import("zod/v4/core").$strip>>;
2840
+ input: {
2841
+ eventId: string;
2842
+ actionId: string;
2843
+ transactionId: string;
2844
+ };
5078
2845
  output: import("../commons").EventDocument;
5079
2846
  meta: import("trpc-to-openapi").OpenApiMeta;
5080
2847
  }>;
@@ -5107,265 +2874,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5107
2874
  meta: import("trpc-to-openapi").OpenApiMeta;
5108
2875
  }>;
5109
2876
  accept: import("@trpc/server").TRPCMutationProcedure<{
5110
- input: (Omit<{
5111
- eventId: string;
5112
- transactionId: string;
5113
- declaration?: Record<string, unknown> | undefined;
5114
- annotation?: Record<string, unknown> | undefined;
5115
- originalActionId?: string | undefined;
5116
- keepAssignment?: boolean | undefined;
5117
- keepAssignmentIfAccepted?: boolean | undefined;
5118
- keepAssignmentIfRejected?: boolean | undefined;
5119
- waitFor?: boolean | undefined;
5120
- type?: "CREATE" | undefined;
5121
- createdAtLocation?: string | null | undefined;
5122
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5123
- eventId: string;
5124
- transactionId: string;
5125
- declaration?: Record<string, unknown> | undefined;
5126
- annotation?: Record<string, unknown> | undefined;
5127
- originalActionId?: string | undefined;
5128
- keepAssignment?: boolean | undefined;
5129
- keepAssignmentIfAccepted?: boolean | undefined;
5130
- keepAssignmentIfRejected?: boolean | undefined;
5131
- waitFor?: boolean | undefined;
5132
- createdAtLocation?: string | null | undefined;
5133
- type?: "REGISTER" | undefined;
5134
- registrationNumber?: string | undefined;
5135
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5136
- eventId: string;
5137
- transactionId: string;
5138
- declaration?: Record<string, unknown> | undefined;
5139
- annotation?: Record<string, unknown> | undefined;
5140
- originalActionId?: string | undefined;
5141
- keepAssignment?: boolean | undefined;
5142
- keepAssignmentIfAccepted?: boolean | undefined;
5143
- keepAssignmentIfRejected?: boolean | undefined;
5144
- waitFor?: boolean | undefined;
5145
- type?: "NOTIFY" | undefined;
5146
- createdAtLocation?: string | null | undefined;
5147
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5148
- eventId: string;
5149
- transactionId: string;
5150
- declaration?: Record<string, unknown> | undefined;
5151
- annotation?: Record<string, unknown> | undefined;
5152
- originalActionId?: string | undefined;
5153
- keepAssignment?: boolean | undefined;
5154
- keepAssignmentIfAccepted?: boolean | undefined;
5155
- keepAssignmentIfRejected?: boolean | undefined;
5156
- waitFor?: boolean | undefined;
5157
- createdAtLocation?: string | null | undefined;
5158
- type?: "DECLARE" | undefined;
5159
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5160
- eventId: string;
5161
- transactionId: string;
5162
- content: {
5163
- reason: string;
5164
- };
5165
- declaration?: Record<string, unknown> | undefined;
5166
- annotation?: Record<string, unknown> | undefined;
5167
- originalActionId?: string | undefined;
5168
- keepAssignment?: boolean | undefined;
5169
- keepAssignmentIfAccepted?: boolean | undefined;
5170
- keepAssignmentIfRejected?: boolean | undefined;
5171
- waitFor?: boolean | undefined;
5172
- createdAtLocation?: string | null | undefined;
5173
- type?: "REJECT" | undefined;
5174
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5175
- eventId: string;
5176
- transactionId: string;
5177
- content: {
5178
- duplicates: {
5179
- id: string;
5180
- trackingId: string;
5181
- }[];
5182
- };
5183
- declaration?: Record<string, unknown> | undefined;
5184
- annotation?: Record<string, unknown> | undefined;
5185
- originalActionId?: string | undefined;
5186
- keepAssignment?: boolean | undefined;
5187
- keepAssignmentIfAccepted?: boolean | undefined;
5188
- keepAssignmentIfRejected?: boolean | undefined;
5189
- waitFor?: boolean | undefined;
5190
- createdAtLocation?: string | null | undefined;
5191
- type?: "DUPLICATE_DETECTED" | undefined;
5192
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5193
- eventId: string;
5194
- transactionId: string;
5195
- declaration?: Record<string, unknown> | undefined;
5196
- annotation?: Record<string, unknown> | undefined;
5197
- originalActionId?: string | undefined;
5198
- keepAssignment?: boolean | undefined;
5199
- keepAssignmentIfAccepted?: boolean | undefined;
5200
- keepAssignmentIfRejected?: boolean | undefined;
5201
- waitFor?: boolean | undefined;
5202
- createdAtLocation?: string | null | undefined;
5203
- type?: "MARK_AS_DUPLICATE" | undefined;
5204
- content?: {
5205
- duplicateOf: string;
5206
- } | undefined;
5207
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5208
- eventId: string;
5209
- transactionId: string;
5210
- declaration?: Record<string, unknown> | undefined;
5211
- annotation?: Record<string, unknown> | undefined;
5212
- originalActionId?: string | undefined;
5213
- keepAssignment?: boolean | undefined;
5214
- keepAssignmentIfAccepted?: boolean | undefined;
5215
- keepAssignmentIfRejected?: boolean | undefined;
5216
- waitFor?: boolean | undefined;
5217
- createdAtLocation?: string | null | undefined;
5218
- type?: "MARK_AS_NOT_DUPLICATE" | undefined;
5219
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5220
- eventId: string;
5221
- transactionId: string;
5222
- content: {
5223
- reason: string;
5224
- };
5225
- declaration?: Record<string, unknown> | undefined;
5226
- annotation?: Record<string, unknown> | undefined;
5227
- originalActionId?: string | undefined;
5228
- keepAssignment?: boolean | undefined;
5229
- keepAssignmentIfAccepted?: boolean | undefined;
5230
- keepAssignmentIfRejected?: boolean | undefined;
5231
- waitFor?: boolean | undefined;
5232
- createdAtLocation?: string | null | undefined;
5233
- type?: "ARCHIVE" | undefined;
5234
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5235
- eventId: string;
5236
- transactionId: string;
5237
- type: "ASSIGN";
5238
- assignedTo: string;
5239
- declaration?: Record<string, unknown> | undefined;
5240
- annotation?: Record<string, unknown> | undefined;
5241
- originalActionId?: string | undefined;
5242
- keepAssignment?: boolean | undefined;
5243
- keepAssignmentIfAccepted?: boolean | undefined;
5244
- keepAssignmentIfRejected?: boolean | undefined;
5245
- waitFor?: boolean | undefined;
5246
- createdAtLocation?: string | null | undefined;
5247
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5248
- eventId: string;
5249
- transactionId: string;
5250
- declaration?: Record<string, unknown> | undefined;
5251
- annotation?: Record<string, unknown> | undefined;
5252
- originalActionId?: string | undefined;
5253
- keepAssignment?: boolean | undefined;
5254
- keepAssignmentIfAccepted?: boolean | undefined;
5255
- keepAssignmentIfRejected?: boolean | undefined;
5256
- waitFor?: boolean | undefined;
5257
- createdAtLocation?: string | null | undefined;
5258
- type?: "UNASSIGN" | undefined;
5259
- assignedTo?: null | undefined;
5260
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5261
- eventId: string;
5262
- transactionId: string;
5263
- declaration?: Record<string, unknown> | undefined;
5264
- annotation?: Record<string, unknown> | undefined;
5265
- originalActionId?: string | undefined;
5266
- keepAssignment?: boolean | undefined;
5267
- keepAssignmentIfAccepted?: boolean | undefined;
5268
- keepAssignmentIfRejected?: boolean | undefined;
5269
- waitFor?: boolean | undefined;
5270
- createdAtLocation?: string | null | undefined;
5271
- type?: "PRINT_CERTIFICATE" | undefined;
5272
- content?: {
5273
- templateId?: string | undefined;
5274
- } | undefined;
5275
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5276
- eventId: string;
5277
- transactionId: string;
5278
- declaration?: Record<string, unknown> | undefined;
5279
- annotation?: Record<string, unknown> | undefined;
5280
- originalActionId?: string | undefined;
5281
- keepAssignment?: boolean | undefined;
5282
- keepAssignmentIfAccepted?: boolean | undefined;
5283
- keepAssignmentIfRejected?: boolean | undefined;
5284
- waitFor?: boolean | undefined;
5285
- createdAtLocation?: string | null | undefined;
5286
- type?: "REQUEST_CORRECTION" | undefined;
5287
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5288
- eventId: string;
5289
- transactionId: string;
5290
- requestId: string;
5291
- content: {
5292
- reason: string;
5293
- };
5294
- declaration?: Record<string, unknown> | undefined;
5295
- annotation?: Record<string, unknown> | undefined;
5296
- originalActionId?: string | undefined;
5297
- keepAssignment?: boolean | undefined;
5298
- keepAssignmentIfAccepted?: boolean | undefined;
5299
- keepAssignmentIfRejected?: boolean | undefined;
5300
- waitFor?: boolean | undefined;
5301
- createdAtLocation?: string | null | undefined;
5302
- type?: "REJECT_CORRECTION" | undefined;
5303
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5304
- eventId: string;
5305
- transactionId: string;
5306
- requestId: string;
5307
- declaration?: Record<string, unknown> | undefined;
5308
- annotation?: Record<string, unknown> | undefined;
5309
- originalActionId?: string | undefined;
5310
- keepAssignment?: boolean | undefined;
5311
- keepAssignmentIfAccepted?: boolean | undefined;
5312
- keepAssignmentIfRejected?: boolean | undefined;
5313
- waitFor?: boolean | undefined;
5314
- createdAtLocation?: string | null | undefined;
5315
- type?: "APPROVE_CORRECTION" | undefined;
5316
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5317
- eventId: string;
5318
- transactionId: string;
5319
- declaration?: Record<string, unknown> | undefined;
5320
- annotation?: Record<string, unknown> | undefined;
5321
- originalActionId?: string | undefined;
5322
- keepAssignment?: boolean | undefined;
5323
- keepAssignmentIfAccepted?: boolean | undefined;
5324
- keepAssignmentIfRejected?: boolean | undefined;
5325
- waitFor?: boolean | undefined;
5326
- createdAtLocation?: string | null | undefined;
5327
- type?: "READ" | undefined;
5328
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5329
- eventId: string;
5330
- transactionId: string;
5331
- customActionType: string;
5332
- declaration?: Record<string, unknown> | undefined;
5333
- annotation?: Record<string, unknown> | undefined;
5334
- originalActionId?: string | undefined;
5335
- keepAssignment?: boolean | undefined;
5336
- keepAssignmentIfAccepted?: boolean | undefined;
5337
- keepAssignmentIfRejected?: boolean | undefined;
5338
- waitFor?: boolean | undefined;
5339
- createdAtLocation?: string | null | undefined;
5340
- type?: "CUSTOM" | undefined;
5341
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5342
- eventId: string;
5343
- transactionId: string;
5344
- content: {
5345
- comment?: string | undefined;
5346
- };
5347
- declaration?: Record<string, unknown> | undefined;
5348
- annotation?: Record<string, unknown> | undefined;
5349
- originalActionId?: string | undefined;
5350
- keepAssignment?: boolean | undefined;
5351
- keepAssignmentIfAccepted?: boolean | undefined;
5352
- keepAssignmentIfRejected?: boolean | undefined;
5353
- waitFor?: boolean | undefined;
5354
- createdAtLocation?: string | null | undefined;
5355
- type?: "EDIT" | undefined;
5356
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2877
+ input: import("../commons").ActionInput & {
5357
2878
  actionId: string;
5358
2879
  };
5359
2880
  output: import("../commons").EventDocument;
5360
2881
  meta: import("trpc-to-openapi").OpenApiMeta;
5361
2882
  }>;
5362
2883
  reject: import("@trpc/server").TRPCMutationProcedure<{
5363
- input: import("zod").input<import("zod").ZodObject<{
5364
- transactionId: import("zod").ZodString;
5365
- eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5366
- keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
5367
- actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5368
- }, import("zod/v4/core").$strip>>;
2884
+ input: {
2885
+ eventId: string;
2886
+ actionId: string;
2887
+ transactionId: string;
2888
+ };
5369
2889
  output: import("../commons").EventDocument;
5370
2890
  meta: import("trpc-to-openapi").OpenApiMeta;
5371
2891
  }>;
@@ -5398,265 +2918,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5398
2918
  meta: import("trpc-to-openapi").OpenApiMeta;
5399
2919
  }>;
5400
2920
  accept: import("@trpc/server").TRPCMutationProcedure<{
5401
- input: (Omit<{
5402
- eventId: string;
5403
- transactionId: string;
5404
- declaration?: Record<string, unknown> | undefined;
5405
- annotation?: Record<string, unknown> | undefined;
5406
- originalActionId?: string | undefined;
5407
- keepAssignment?: boolean | undefined;
5408
- keepAssignmentIfAccepted?: boolean | undefined;
5409
- keepAssignmentIfRejected?: boolean | undefined;
5410
- waitFor?: boolean | undefined;
5411
- type?: "CREATE" | undefined;
5412
- createdAtLocation?: string | null | undefined;
5413
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5414
- eventId: string;
5415
- transactionId: string;
5416
- declaration?: Record<string, unknown> | undefined;
5417
- annotation?: Record<string, unknown> | undefined;
5418
- originalActionId?: string | undefined;
5419
- keepAssignment?: boolean | undefined;
5420
- keepAssignmentIfAccepted?: boolean | undefined;
5421
- keepAssignmentIfRejected?: boolean | undefined;
5422
- waitFor?: boolean | undefined;
5423
- createdAtLocation?: string | null | undefined;
5424
- type?: "REGISTER" | undefined;
5425
- registrationNumber?: string | undefined;
5426
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5427
- eventId: string;
5428
- transactionId: string;
5429
- declaration?: Record<string, unknown> | undefined;
5430
- annotation?: Record<string, unknown> | undefined;
5431
- originalActionId?: string | undefined;
5432
- keepAssignment?: boolean | undefined;
5433
- keepAssignmentIfAccepted?: boolean | undefined;
5434
- keepAssignmentIfRejected?: boolean | undefined;
5435
- waitFor?: boolean | undefined;
5436
- type?: "NOTIFY" | undefined;
5437
- createdAtLocation?: string | null | undefined;
5438
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5439
- eventId: string;
5440
- transactionId: string;
5441
- declaration?: Record<string, unknown> | undefined;
5442
- annotation?: Record<string, unknown> | undefined;
5443
- originalActionId?: string | undefined;
5444
- keepAssignment?: boolean | undefined;
5445
- keepAssignmentIfAccepted?: boolean | undefined;
5446
- keepAssignmentIfRejected?: boolean | undefined;
5447
- waitFor?: boolean | undefined;
5448
- createdAtLocation?: string | null | undefined;
5449
- type?: "DECLARE" | undefined;
5450
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5451
- eventId: string;
5452
- transactionId: string;
5453
- content: {
5454
- reason: string;
5455
- };
5456
- declaration?: Record<string, unknown> | undefined;
5457
- annotation?: Record<string, unknown> | undefined;
5458
- originalActionId?: string | undefined;
5459
- keepAssignment?: boolean | undefined;
5460
- keepAssignmentIfAccepted?: boolean | undefined;
5461
- keepAssignmentIfRejected?: boolean | undefined;
5462
- waitFor?: boolean | undefined;
5463
- createdAtLocation?: string | null | undefined;
5464
- type?: "REJECT" | undefined;
5465
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5466
- eventId: string;
5467
- transactionId: string;
5468
- content: {
5469
- duplicates: {
5470
- id: string;
5471
- trackingId: string;
5472
- }[];
5473
- };
5474
- declaration?: Record<string, unknown> | undefined;
5475
- annotation?: Record<string, unknown> | undefined;
5476
- originalActionId?: string | undefined;
5477
- keepAssignment?: boolean | undefined;
5478
- keepAssignmentIfAccepted?: boolean | undefined;
5479
- keepAssignmentIfRejected?: boolean | undefined;
5480
- waitFor?: boolean | undefined;
5481
- createdAtLocation?: string | null | undefined;
5482
- type?: "DUPLICATE_DETECTED" | undefined;
5483
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5484
- eventId: string;
5485
- transactionId: string;
5486
- declaration?: Record<string, unknown> | undefined;
5487
- annotation?: Record<string, unknown> | undefined;
5488
- originalActionId?: string | undefined;
5489
- keepAssignment?: boolean | undefined;
5490
- keepAssignmentIfAccepted?: boolean | undefined;
5491
- keepAssignmentIfRejected?: boolean | undefined;
5492
- waitFor?: boolean | undefined;
5493
- createdAtLocation?: string | null | undefined;
5494
- type?: "MARK_AS_DUPLICATE" | undefined;
5495
- content?: {
5496
- duplicateOf: string;
5497
- } | undefined;
5498
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5499
- eventId: string;
5500
- transactionId: string;
5501
- declaration?: Record<string, unknown> | undefined;
5502
- annotation?: Record<string, unknown> | undefined;
5503
- originalActionId?: string | undefined;
5504
- keepAssignment?: boolean | undefined;
5505
- keepAssignmentIfAccepted?: boolean | undefined;
5506
- keepAssignmentIfRejected?: boolean | undefined;
5507
- waitFor?: boolean | undefined;
5508
- createdAtLocation?: string | null | undefined;
5509
- type?: "MARK_AS_NOT_DUPLICATE" | undefined;
5510
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5511
- eventId: string;
5512
- transactionId: string;
5513
- content: {
5514
- reason: string;
5515
- };
5516
- declaration?: Record<string, unknown> | undefined;
5517
- annotation?: Record<string, unknown> | undefined;
5518
- originalActionId?: string | undefined;
5519
- keepAssignment?: boolean | undefined;
5520
- keepAssignmentIfAccepted?: boolean | undefined;
5521
- keepAssignmentIfRejected?: boolean | undefined;
5522
- waitFor?: boolean | undefined;
5523
- createdAtLocation?: string | null | undefined;
5524
- type?: "ARCHIVE" | undefined;
5525
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5526
- eventId: string;
5527
- transactionId: string;
5528
- type: "ASSIGN";
5529
- assignedTo: string;
5530
- declaration?: Record<string, unknown> | undefined;
5531
- annotation?: Record<string, unknown> | undefined;
5532
- originalActionId?: string | undefined;
5533
- keepAssignment?: boolean | undefined;
5534
- keepAssignmentIfAccepted?: boolean | undefined;
5535
- keepAssignmentIfRejected?: boolean | undefined;
5536
- waitFor?: boolean | undefined;
5537
- createdAtLocation?: string | null | undefined;
5538
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5539
- eventId: string;
5540
- transactionId: string;
5541
- declaration?: Record<string, unknown> | undefined;
5542
- annotation?: Record<string, unknown> | undefined;
5543
- originalActionId?: string | undefined;
5544
- keepAssignment?: boolean | undefined;
5545
- keepAssignmentIfAccepted?: boolean | undefined;
5546
- keepAssignmentIfRejected?: boolean | undefined;
5547
- waitFor?: boolean | undefined;
5548
- createdAtLocation?: string | null | undefined;
5549
- type?: "UNASSIGN" | undefined;
5550
- assignedTo?: null | undefined;
5551
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5552
- eventId: string;
5553
- transactionId: string;
5554
- declaration?: Record<string, unknown> | undefined;
5555
- annotation?: Record<string, unknown> | undefined;
5556
- originalActionId?: string | undefined;
5557
- keepAssignment?: boolean | undefined;
5558
- keepAssignmentIfAccepted?: boolean | undefined;
5559
- keepAssignmentIfRejected?: boolean | undefined;
5560
- waitFor?: boolean | undefined;
5561
- createdAtLocation?: string | null | undefined;
5562
- type?: "PRINT_CERTIFICATE" | undefined;
5563
- content?: {
5564
- templateId?: string | undefined;
5565
- } | undefined;
5566
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5567
- eventId: string;
5568
- transactionId: string;
5569
- declaration?: Record<string, unknown> | undefined;
5570
- annotation?: Record<string, unknown> | undefined;
5571
- originalActionId?: string | undefined;
5572
- keepAssignment?: boolean | undefined;
5573
- keepAssignmentIfAccepted?: boolean | undefined;
5574
- keepAssignmentIfRejected?: boolean | undefined;
5575
- waitFor?: boolean | undefined;
5576
- createdAtLocation?: string | null | undefined;
5577
- type?: "REQUEST_CORRECTION" | undefined;
5578
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5579
- eventId: string;
5580
- transactionId: string;
5581
- requestId: string;
5582
- content: {
5583
- reason: string;
5584
- };
5585
- declaration?: Record<string, unknown> | undefined;
5586
- annotation?: Record<string, unknown> | undefined;
5587
- originalActionId?: string | undefined;
5588
- keepAssignment?: boolean | undefined;
5589
- keepAssignmentIfAccepted?: boolean | undefined;
5590
- keepAssignmentIfRejected?: boolean | undefined;
5591
- waitFor?: boolean | undefined;
5592
- createdAtLocation?: string | null | undefined;
5593
- type?: "REJECT_CORRECTION" | undefined;
5594
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5595
- eventId: string;
5596
- transactionId: string;
5597
- requestId: string;
5598
- declaration?: Record<string, unknown> | undefined;
5599
- annotation?: Record<string, unknown> | undefined;
5600
- originalActionId?: string | undefined;
5601
- keepAssignment?: boolean | undefined;
5602
- keepAssignmentIfAccepted?: boolean | undefined;
5603
- keepAssignmentIfRejected?: boolean | undefined;
5604
- waitFor?: boolean | undefined;
5605
- createdAtLocation?: string | null | undefined;
5606
- type?: "APPROVE_CORRECTION" | undefined;
5607
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5608
- eventId: string;
5609
- transactionId: string;
5610
- declaration?: Record<string, unknown> | undefined;
5611
- annotation?: Record<string, unknown> | undefined;
5612
- originalActionId?: string | undefined;
5613
- keepAssignment?: boolean | undefined;
5614
- keepAssignmentIfAccepted?: boolean | undefined;
5615
- keepAssignmentIfRejected?: boolean | undefined;
5616
- waitFor?: boolean | undefined;
5617
- createdAtLocation?: string | null | undefined;
5618
- type?: "READ" | undefined;
5619
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5620
- eventId: string;
5621
- transactionId: string;
5622
- customActionType: string;
5623
- declaration?: Record<string, unknown> | undefined;
5624
- annotation?: Record<string, unknown> | undefined;
5625
- originalActionId?: string | undefined;
5626
- keepAssignment?: boolean | undefined;
5627
- keepAssignmentIfAccepted?: boolean | undefined;
5628
- keepAssignmentIfRejected?: boolean | undefined;
5629
- waitFor?: boolean | undefined;
5630
- createdAtLocation?: string | null | undefined;
5631
- type?: "CUSTOM" | undefined;
5632
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5633
- eventId: string;
5634
- transactionId: string;
5635
- content: {
5636
- comment?: string | undefined;
5637
- };
5638
- declaration?: Record<string, unknown> | undefined;
5639
- annotation?: Record<string, unknown> | undefined;
5640
- originalActionId?: string | undefined;
5641
- keepAssignment?: boolean | undefined;
5642
- keepAssignmentIfAccepted?: boolean | undefined;
5643
- keepAssignmentIfRejected?: boolean | undefined;
5644
- waitFor?: boolean | undefined;
5645
- createdAtLocation?: string | null | undefined;
5646
- type?: "EDIT" | undefined;
5647
- }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2921
+ input: import("../commons").ActionInput & {
5648
2922
  actionId: string;
5649
2923
  };
5650
2924
  output: import("../commons").EventDocument;
5651
2925
  meta: import("trpc-to-openapi").OpenApiMeta;
5652
2926
  }>;
5653
2927
  reject: import("@trpc/server").TRPCMutationProcedure<{
5654
- input: import("zod").input<import("zod").ZodObject<{
5655
- transactionId: import("zod").ZodString;
5656
- eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5657
- keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
5658
- actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5659
- }, import("zod/v4/core").$strip>>;
2928
+ input: {
2929
+ eventId: string;
2930
+ actionId: string;
2931
+ transactionId: string;
2932
+ };
5660
2933
  output: import("../commons").EventDocument;
5661
2934
  meta: import("trpc-to-openapi").OpenApiMeta;
5662
2935
  }>;
@@ -5692,8 +2965,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5692
2965
  annotation?: Record<string, unknown> | undefined;
5693
2966
  originalActionId?: string | undefined;
5694
2967
  keepAssignment?: boolean | undefined;
5695
- keepAssignmentIfAccepted?: boolean | undefined;
5696
- keepAssignmentIfRejected?: boolean | undefined;
5697
2968
  waitFor?: boolean | undefined;
5698
2969
  createdAtLocation?: string | null | undefined;
5699
2970
  type?: "MARK_AS_DUPLICATE" | undefined;
@@ -6012,8 +3283,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6012
3283
  annotation?: Record<string, unknown> | undefined;
6013
3284
  originalActionId?: string | undefined;
6014
3285
  keepAssignment?: boolean | undefined;
6015
- keepAssignmentIfAccepted?: boolean | undefined;
6016
- keepAssignmentIfRejected?: boolean | undefined;
6017
3286
  waitFor?: boolean | undefined;
6018
3287
  createdAtLocation?: string | null | undefined;
6019
3288
  type?: "MARK_AS_NOT_DUPLICATE" | undefined;
@@ -6374,6 +3643,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6374
3643
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6375
3644
  updatedAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
6376
3645
  assignedTo?: string | null | undefined;
3646
+ assignedToSignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6377
3647
  updatedBy?: string | null | undefined;
6378
3648
  }[];
6379
3649
  total: number;
@@ -6830,33 +4100,22 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6830
4100
  input: string[];
6831
4101
  output: ({
6832
4102
  id: string & import("zod").$brand<"UUID">;
4103
+ type: "user";
6833
4104
  name: {
6834
4105
  firstname: string;
6835
4106
  surname: string;
6836
4107
  };
6837
4108
  role: string;
6838
4109
  primaryOfficeId: string & import("zod").$brand<"UUID">;
6839
- type: "user";
6840
- status: "active" | "pending" | "deactivated";
4110
+ fullHonorificName?: string | undefined;
6841
4111
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
6842
- signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6843
4112
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6844
- device?: string | undefined;
6845
- fullHonorificName?: string | undefined;
6846
- mobile?: string | undefined;
6847
- email?: string | undefined;
6848
- data?: Record<string, import("../commons").FieldValue> | undefined;
6849
4113
  } | {
6850
4114
  id: string & import("zod").$brand<"UUID">;
6851
- name: string;
6852
4115
  type: "system";
4116
+ name: string;
6853
4117
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6854
4118
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6855
- signature?: undefined;
6856
- avatar?: undefined;
6857
- fullHonorificName?: string | undefined;
6858
- legacyId?: string | undefined;
6859
- status?: undefined;
6860
4119
  })[];
6861
4120
  meta: import("trpc-to-openapi").OpenApiMeta;
6862
4121
  }>;
@@ -6874,33 +4133,24 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6874
4133
  };
6875
4134
  output: ({
6876
4135
  id: string & import("zod").$brand<"UUID">;
4136
+ type: "user";
6877
4137
  name: {
6878
4138
  firstname: string;
6879
4139
  surname: string;
6880
4140
  };
6881
4141
  role: string;
6882
4142
  primaryOfficeId: string & import("zod").$brand<"UUID">;
6883
- type: "user";
6884
4143
  status: "active" | "pending" | "deactivated";
4144
+ fullHonorificName?: string | undefined;
6885
4145
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
6886
- signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6887
4146
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6888
- device?: string | undefined;
6889
- fullHonorificName?: string | undefined;
6890
- mobile?: string | undefined;
6891
- email?: string | undefined;
6892
- data?: Record<string, import("../commons").FieldValue> | undefined;
6893
4147
  } | {
6894
4148
  id: string & import("zod").$brand<"UUID">;
6895
- name: string;
6896
4149
  type: "system";
4150
+ name: string;
6897
4151
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6898
4152
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6899
- signature?: undefined;
6900
- avatar?: undefined;
6901
- fullHonorificName?: string | undefined;
6902
- legacyId?: string | undefined;
6903
- status?: undefined;
4153
+ status?: "active" | "pending" | "deactivated" | undefined;
6904
4154
  })[];
6905
4155
  meta: object;
6906
4156
  }>;