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

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.
@@ -1238,6 +1238,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1238
1238
  annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1239
1239
  originalActionId?: string | undefined;
1240
1240
  keepAssignment?: boolean | undefined;
1241
+ keepAssignmentIfAccepted?: boolean | undefined;
1242
+ keepAssignmentIfRejected?: boolean | undefined;
1241
1243
  };
1242
1244
  output: {
1243
1245
  id: string & import("zod").BRAND<"UUID">;
@@ -1309,18 +1311,249 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1309
1311
  meta: import("trpc-to-openapi").OpenApiMeta;
1310
1312
  }>;
1311
1313
  accept: import("@trpc/server").TRPCMutationProcedure<{
1312
- input: import("../commons").ActionInput & {
1314
+ input: (Omit<{
1315
+ transactionId: string;
1316
+ eventId: string;
1317
+ type?: "CREATE" | undefined;
1318
+ createdAtLocation?: string | null | undefined;
1319
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1320
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1321
+ originalActionId?: string | undefined;
1322
+ keepAssignment?: boolean | undefined;
1323
+ keepAssignmentIfAccepted?: boolean | undefined;
1324
+ keepAssignmentIfRejected?: boolean | undefined;
1325
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1326
+ transactionId: string;
1327
+ eventId: string;
1328
+ type?: "VALIDATE" | undefined;
1329
+ createdAtLocation?: string | null | undefined;
1330
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1331
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1332
+ originalActionId?: string | undefined;
1333
+ keepAssignment?: boolean | undefined;
1334
+ keepAssignmentIfAccepted?: boolean | undefined;
1335
+ keepAssignmentIfRejected?: boolean | undefined;
1336
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1337
+ transactionId: string;
1338
+ eventId: string;
1339
+ type?: "REGISTER" | undefined;
1340
+ createdAtLocation?: string | null | undefined;
1341
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1342
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1343
+ originalActionId?: string | undefined;
1344
+ registrationNumber?: string | undefined;
1345
+ keepAssignment?: boolean | undefined;
1346
+ keepAssignmentIfAccepted?: boolean | undefined;
1347
+ keepAssignmentIfRejected?: boolean | undefined;
1348
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1349
+ transactionId: string;
1350
+ eventId: string;
1351
+ type?: "NOTIFY" | undefined;
1352
+ createdAtLocation?: string | null | undefined;
1353
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1354
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1355
+ originalActionId?: string | undefined;
1356
+ keepAssignment?: boolean | undefined;
1357
+ keepAssignmentIfAccepted?: boolean | undefined;
1358
+ keepAssignmentIfRejected?: boolean | undefined;
1359
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1360
+ transactionId: string;
1361
+ eventId: string;
1362
+ type?: "DECLARE" | undefined;
1363
+ createdAtLocation?: string | null | undefined;
1364
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1365
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1366
+ originalActionId?: string | undefined;
1367
+ keepAssignment?: boolean | undefined;
1368
+ keepAssignmentIfAccepted?: boolean | undefined;
1369
+ keepAssignmentIfRejected?: boolean | undefined;
1370
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1371
+ content: {
1372
+ reason: string;
1373
+ };
1374
+ transactionId: string;
1375
+ eventId: string;
1376
+ type?: "REJECT" | undefined;
1377
+ createdAtLocation?: string | null | undefined;
1378
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1379
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1380
+ originalActionId?: string | undefined;
1381
+ keepAssignment?: boolean | undefined;
1382
+ keepAssignmentIfAccepted?: boolean | undefined;
1383
+ keepAssignmentIfRejected?: boolean | undefined;
1384
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1385
+ content: {
1386
+ duplicates: {
1387
+ id: string;
1388
+ trackingId: string;
1389
+ }[];
1390
+ };
1391
+ transactionId: string;
1392
+ eventId: string;
1393
+ type?: "DUPLICATE_DETECTED" | undefined;
1394
+ createdAtLocation?: string | null | undefined;
1395
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1396
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1397
+ originalActionId?: string | undefined;
1398
+ keepAssignment?: boolean | undefined;
1399
+ keepAssignmentIfAccepted?: boolean | undefined;
1400
+ keepAssignmentIfRejected?: boolean | undefined;
1401
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1402
+ transactionId: string;
1403
+ eventId: string;
1404
+ type?: "MARK_AS_DUPLICATE" | undefined;
1405
+ content?: {
1406
+ duplicateOf: string;
1407
+ } | undefined;
1408
+ createdAtLocation?: string | null | undefined;
1409
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1410
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1411
+ originalActionId?: string | undefined;
1412
+ keepAssignment?: boolean | undefined;
1413
+ keepAssignmentIfAccepted?: boolean | undefined;
1414
+ keepAssignmentIfRejected?: boolean | undefined;
1415
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1416
+ transactionId: string;
1417
+ eventId: string;
1418
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
1419
+ createdAtLocation?: string | null | undefined;
1420
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1421
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1422
+ originalActionId?: string | undefined;
1423
+ keepAssignment?: boolean | undefined;
1424
+ keepAssignmentIfAccepted?: boolean | undefined;
1425
+ keepAssignmentIfRejected?: boolean | undefined;
1426
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1427
+ content: {
1428
+ reason: string;
1429
+ };
1430
+ transactionId: string;
1431
+ eventId: string;
1432
+ type?: "ARCHIVE" | undefined;
1433
+ createdAtLocation?: string | null | undefined;
1434
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1435
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1436
+ originalActionId?: string | undefined;
1437
+ keepAssignment?: boolean | undefined;
1438
+ keepAssignmentIfAccepted?: boolean | undefined;
1439
+ keepAssignmentIfRejected?: boolean | undefined;
1440
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1441
+ type: "ASSIGN";
1442
+ transactionId: string;
1443
+ assignedTo: string;
1444
+ eventId: string;
1445
+ createdAtLocation?: string | null | undefined;
1446
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1447
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1448
+ originalActionId?: string | undefined;
1449
+ keepAssignment?: boolean | undefined;
1450
+ keepAssignmentIfAccepted?: boolean | undefined;
1451
+ keepAssignmentIfRejected?: boolean | undefined;
1452
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1453
+ transactionId: string;
1454
+ eventId: string;
1455
+ type?: "UNASSIGN" | undefined;
1456
+ createdAtLocation?: string | null | undefined;
1457
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1458
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1459
+ originalActionId?: string | undefined;
1460
+ assignedTo?: null | undefined;
1461
+ keepAssignment?: boolean | undefined;
1462
+ keepAssignmentIfAccepted?: boolean | undefined;
1463
+ keepAssignmentIfRejected?: boolean | undefined;
1464
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1465
+ transactionId: string;
1466
+ eventId: string;
1467
+ type?: "PRINT_CERTIFICATE" | undefined;
1468
+ content?: {
1469
+ templateId?: string | undefined;
1470
+ } | undefined;
1471
+ createdAtLocation?: string | null | undefined;
1472
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1473
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1474
+ originalActionId?: string | undefined;
1475
+ keepAssignment?: boolean | undefined;
1476
+ keepAssignmentIfAccepted?: boolean | undefined;
1477
+ keepAssignmentIfRejected?: boolean | undefined;
1478
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1479
+ transactionId: string;
1480
+ eventId: string;
1481
+ type?: "REQUEST_CORRECTION" | undefined;
1482
+ createdAtLocation?: string | null | undefined;
1483
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1484
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1485
+ originalActionId?: string | undefined;
1486
+ keepAssignment?: boolean | undefined;
1487
+ keepAssignmentIfAccepted?: boolean | undefined;
1488
+ keepAssignmentIfRejected?: boolean | undefined;
1489
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1490
+ content: {
1491
+ reason: string;
1492
+ };
1493
+ transactionId: string;
1494
+ requestId: string;
1495
+ eventId: string;
1496
+ type?: "REJECT_CORRECTION" | undefined;
1497
+ createdAtLocation?: string | null | undefined;
1498
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1499
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1500
+ originalActionId?: string | undefined;
1501
+ keepAssignment?: boolean | undefined;
1502
+ keepAssignmentIfAccepted?: boolean | undefined;
1503
+ keepAssignmentIfRejected?: boolean | undefined;
1504
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1505
+ transactionId: string;
1506
+ requestId: string;
1507
+ eventId: string;
1508
+ type?: "APPROVE_CORRECTION" | undefined;
1509
+ createdAtLocation?: string | null | undefined;
1510
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1511
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1512
+ originalActionId?: string | undefined;
1513
+ keepAssignment?: boolean | undefined;
1514
+ keepAssignmentIfAccepted?: boolean | undefined;
1515
+ keepAssignmentIfRejected?: boolean | undefined;
1516
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1517
+ transactionId: string;
1518
+ eventId: string;
1519
+ type?: "READ" | undefined;
1520
+ createdAtLocation?: string | null | undefined;
1521
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1522
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1523
+ originalActionId?: string | undefined;
1524
+ keepAssignment?: boolean | undefined;
1525
+ keepAssignmentIfAccepted?: boolean | undefined;
1526
+ keepAssignmentIfRejected?: boolean | undefined;
1527
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
1313
1528
  actionId: string;
1314
1529
  };
1315
1530
  output: import("../commons").EventDocument;
1316
1531
  meta: import("trpc-to-openapi").OpenApiMeta;
1317
1532
  }>;
1318
1533
  reject: import("@trpc/server").TRPCMutationProcedure<{
1319
- input: {
1534
+ input: import("zod").input<import("zod").ZodObject<import("zod").objectUtil.extendShape<Pick<{
1535
+ eventId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
1536
+ transactionId: import("zod").ZodString;
1537
+ declaration: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
1538
+ annotation: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
1539
+ originalActionId: import("zod").ZodOptional<import("zod").ZodBranded<import("zod").ZodString, "UUID">>;
1540
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
1541
+ keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
1542
+ keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
1543
+ createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
1544
+ }, "transactionId" | "eventId" | "keepAssignment">, {
1545
+ actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
1546
+ }>, "strip", import("zod").ZodTypeAny, {
1547
+ transactionId: string;
1548
+ eventId: string & import("zod").BRAND<"UUID">;
1549
+ actionId: string & import("zod").BRAND<"UUID">;
1550
+ keepAssignment?: boolean | undefined;
1551
+ }, {
1552
+ transactionId: string;
1320
1553
  eventId: string;
1321
1554
  actionId: string;
1322
- transactionId: string;
1323
- };
1555
+ keepAssignment?: boolean | undefined;
1556
+ }>>;
1324
1557
  output: import("../commons").EventDocument;
1325
1558
  meta: import("trpc-to-openapi").OpenApiMeta;
1326
1559
  }>;
@@ -1356,6 +1589,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1356
1589
  annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1357
1590
  originalActionId?: string | undefined;
1358
1591
  keepAssignment?: boolean | undefined;
1592
+ keepAssignmentIfAccepted?: boolean | undefined;
1593
+ keepAssignmentIfRejected?: boolean | undefined;
1359
1594
  };
1360
1595
  output: {
1361
1596
  type: string;
@@ -1643,112 +1878,1079 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1643
1878
  meta: import("trpc-to-openapi").OpenApiMeta;
1644
1879
  }>;
1645
1880
  accept: import("@trpc/server").TRPCMutationProcedure<{
1646
- input: import("../commons").ActionInput & {
1647
- actionId: string;
1648
- };
1649
- output: import("../commons").EventDocument;
1650
- meta: import("trpc-to-openapi").OpenApiMeta;
1651
- }>;
1652
- reject: import("@trpc/server").TRPCMutationProcedure<{
1653
- input: {
1881
+ input: (Omit<{
1882
+ transactionId: string;
1654
1883
  eventId: string;
1655
- actionId: string;
1884
+ type?: "CREATE" | undefined;
1885
+ createdAtLocation?: string | null | undefined;
1886
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1887
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1888
+ originalActionId?: string | undefined;
1889
+ keepAssignment?: boolean | undefined;
1890
+ keepAssignmentIfAccepted?: boolean | undefined;
1891
+ keepAssignmentIfRejected?: boolean | undefined;
1892
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1656
1893
  transactionId: string;
1657
- };
1658
- output: import("../commons").EventDocument;
1659
- meta: import("trpc-to-openapi").OpenApiMeta;
1660
- }>;
1661
- }>>;
1662
- validate: import("@trpc/server").TRPCBuiltRouter<{
1663
- ctx: {
1664
- user: {
1665
- type: "user";
1666
- id: string;
1667
- role: string;
1668
- primaryOfficeId: string & import("zod").BRAND<"UUID">;
1669
- signature?: string | undefined;
1670
- } | {
1671
- type: "system";
1672
- id: string;
1673
- role: "HEALTH" | "NATIONAL_ID" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
1674
- primaryOfficeId?: undefined;
1675
- signature?: undefined;
1676
- };
1677
- token: `Bearer ${string}`;
1678
- };
1679
- meta: import("trpc-to-openapi").OpenApiMeta;
1680
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1681
- transformer: true;
1682
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1683
- request: import("@trpc/server").TRPCMutationProcedure<{
1684
- input: import("../commons").ActionInput;
1685
- output: import("../commons").EventDocument;
1686
- meta: import("trpc-to-openapi").OpenApiMeta;
1687
- }>;
1688
- accept: import("@trpc/server").TRPCMutationProcedure<{
1689
- input: import("../commons").ActionInput & {
1690
- actionId: string;
1691
- };
1692
- output: import("../commons").EventDocument;
1693
- meta: import("trpc-to-openapi").OpenApiMeta;
1694
- }>;
1695
- reject: import("@trpc/server").TRPCMutationProcedure<{
1696
- input: {
1697
1894
  eventId: string;
1698
- actionId: string;
1895
+ type?: "VALIDATE" | undefined;
1896
+ createdAtLocation?: string | null | undefined;
1897
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1898
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1899
+ originalActionId?: string | undefined;
1900
+ keepAssignment?: boolean | undefined;
1901
+ keepAssignmentIfAccepted?: boolean | undefined;
1902
+ keepAssignmentIfRejected?: boolean | undefined;
1903
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1699
1904
  transactionId: string;
1700
- };
1701
- output: import("../commons").EventDocument;
1702
- meta: import("trpc-to-openapi").OpenApiMeta;
1703
- }>;
1704
- }>>;
1705
- reject: import("@trpc/server").TRPCBuiltRouter<{
1706
- ctx: {
1707
- user: {
1708
- type: "user";
1709
- id: string;
1710
- role: string;
1711
- primaryOfficeId: string & import("zod").BRAND<"UUID">;
1712
- signature?: string | undefined;
1713
- } | {
1714
- type: "system";
1715
- id: string;
1716
- role: "HEALTH" | "NATIONAL_ID" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
1717
- primaryOfficeId?: undefined;
1718
- signature?: undefined;
1719
- };
1720
- token: `Bearer ${string}`;
1721
- };
1722
- meta: import("trpc-to-openapi").OpenApiMeta;
1723
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1724
- transformer: true;
1725
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1726
- request: import("@trpc/server").TRPCMutationProcedure<{
1727
- input: import("../commons").ActionInput;
1728
- output: import("../commons").EventDocument;
1729
- meta: import("trpc-to-openapi").OpenApiMeta;
1730
- }>;
1731
- accept: import("@trpc/server").TRPCMutationProcedure<{
1732
- input: import("../commons").ActionInput & {
1733
- actionId: string;
1734
- };
1735
- output: import("../commons").EventDocument;
1736
- meta: import("trpc-to-openapi").OpenApiMeta;
1737
- }>;
1738
- reject: import("@trpc/server").TRPCMutationProcedure<{
1739
- input: {
1740
1905
  eventId: string;
1741
- actionId: string;
1906
+ type?: "REGISTER" | undefined;
1907
+ createdAtLocation?: string | null | undefined;
1908
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1909
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1910
+ originalActionId?: string | undefined;
1911
+ registrationNumber?: string | undefined;
1912
+ keepAssignment?: boolean | undefined;
1913
+ keepAssignmentIfAccepted?: boolean | undefined;
1914
+ keepAssignmentIfRejected?: boolean | undefined;
1915
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1742
1916
  transactionId: string;
1743
- };
1744
- output: import("../commons").EventDocument;
1745
- meta: import("trpc-to-openapi").OpenApiMeta;
1746
- }>;
1747
- }>>;
1748
- archive: import("@trpc/server").TRPCBuiltRouter<{
1749
- ctx: {
1750
- user: {
1751
- type: "user";
1917
+ eventId: string;
1918
+ type?: "NOTIFY" | undefined;
1919
+ createdAtLocation?: string | null | undefined;
1920
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1921
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1922
+ originalActionId?: string | undefined;
1923
+ keepAssignment?: boolean | undefined;
1924
+ keepAssignmentIfAccepted?: boolean | undefined;
1925
+ keepAssignmentIfRejected?: boolean | undefined;
1926
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1927
+ transactionId: string;
1928
+ eventId: string;
1929
+ type?: "DECLARE" | undefined;
1930
+ createdAtLocation?: string | null | undefined;
1931
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1932
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1933
+ originalActionId?: string | undefined;
1934
+ keepAssignment?: boolean | undefined;
1935
+ keepAssignmentIfAccepted?: boolean | undefined;
1936
+ keepAssignmentIfRejected?: boolean | undefined;
1937
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1938
+ content: {
1939
+ reason: string;
1940
+ };
1941
+ transactionId: string;
1942
+ eventId: string;
1943
+ type?: "REJECT" | undefined;
1944
+ createdAtLocation?: string | null | undefined;
1945
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1946
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1947
+ originalActionId?: string | undefined;
1948
+ keepAssignment?: boolean | undefined;
1949
+ keepAssignmentIfAccepted?: boolean | undefined;
1950
+ keepAssignmentIfRejected?: boolean | undefined;
1951
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1952
+ content: {
1953
+ duplicates: {
1954
+ id: string;
1955
+ trackingId: string;
1956
+ }[];
1957
+ };
1958
+ transactionId: string;
1959
+ eventId: string;
1960
+ type?: "DUPLICATE_DETECTED" | undefined;
1961
+ createdAtLocation?: string | null | undefined;
1962
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1963
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1964
+ originalActionId?: string | undefined;
1965
+ keepAssignment?: boolean | undefined;
1966
+ keepAssignmentIfAccepted?: boolean | undefined;
1967
+ keepAssignmentIfRejected?: boolean | undefined;
1968
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1969
+ transactionId: string;
1970
+ eventId: string;
1971
+ type?: "MARK_AS_DUPLICATE" | undefined;
1972
+ content?: {
1973
+ duplicateOf: string;
1974
+ } | undefined;
1975
+ createdAtLocation?: string | null | undefined;
1976
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1977
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1978
+ originalActionId?: string | undefined;
1979
+ keepAssignment?: boolean | undefined;
1980
+ keepAssignmentIfAccepted?: boolean | undefined;
1981
+ keepAssignmentIfRejected?: boolean | undefined;
1982
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1983
+ transactionId: string;
1984
+ eventId: string;
1985
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
1986
+ createdAtLocation?: string | null | undefined;
1987
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1988
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1989
+ originalActionId?: string | undefined;
1990
+ keepAssignment?: boolean | undefined;
1991
+ keepAssignmentIfAccepted?: boolean | undefined;
1992
+ keepAssignmentIfRejected?: boolean | undefined;
1993
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1994
+ content: {
1995
+ reason: string;
1996
+ };
1997
+ transactionId: string;
1998
+ eventId: string;
1999
+ type?: "ARCHIVE" | undefined;
2000
+ createdAtLocation?: string | null | undefined;
2001
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2002
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2003
+ originalActionId?: string | undefined;
2004
+ keepAssignment?: boolean | undefined;
2005
+ keepAssignmentIfAccepted?: boolean | undefined;
2006
+ keepAssignmentIfRejected?: boolean | undefined;
2007
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2008
+ type: "ASSIGN";
2009
+ transactionId: string;
2010
+ assignedTo: string;
2011
+ eventId: string;
2012
+ createdAtLocation?: string | null | undefined;
2013
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2014
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2015
+ originalActionId?: string | undefined;
2016
+ keepAssignment?: boolean | undefined;
2017
+ keepAssignmentIfAccepted?: boolean | undefined;
2018
+ keepAssignmentIfRejected?: boolean | undefined;
2019
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2020
+ transactionId: string;
2021
+ eventId: string;
2022
+ type?: "UNASSIGN" | undefined;
2023
+ createdAtLocation?: string | null | undefined;
2024
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2025
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2026
+ originalActionId?: string | undefined;
2027
+ assignedTo?: null | undefined;
2028
+ keepAssignment?: boolean | undefined;
2029
+ keepAssignmentIfAccepted?: boolean | undefined;
2030
+ keepAssignmentIfRejected?: boolean | undefined;
2031
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2032
+ transactionId: string;
2033
+ eventId: string;
2034
+ type?: "PRINT_CERTIFICATE" | undefined;
2035
+ content?: {
2036
+ templateId?: string | undefined;
2037
+ } | undefined;
2038
+ createdAtLocation?: string | null | undefined;
2039
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2040
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2041
+ originalActionId?: string | undefined;
2042
+ keepAssignment?: boolean | undefined;
2043
+ keepAssignmentIfAccepted?: boolean | undefined;
2044
+ keepAssignmentIfRejected?: boolean | undefined;
2045
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2046
+ transactionId: string;
2047
+ eventId: string;
2048
+ type?: "REQUEST_CORRECTION" | undefined;
2049
+ createdAtLocation?: string | null | undefined;
2050
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2051
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2052
+ originalActionId?: string | undefined;
2053
+ keepAssignment?: boolean | undefined;
2054
+ keepAssignmentIfAccepted?: boolean | undefined;
2055
+ keepAssignmentIfRejected?: boolean | undefined;
2056
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2057
+ content: {
2058
+ reason: string;
2059
+ };
2060
+ transactionId: string;
2061
+ requestId: string;
2062
+ eventId: string;
2063
+ type?: "REJECT_CORRECTION" | undefined;
2064
+ createdAtLocation?: string | null | undefined;
2065
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2066
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2067
+ originalActionId?: string | undefined;
2068
+ keepAssignment?: boolean | undefined;
2069
+ keepAssignmentIfAccepted?: boolean | undefined;
2070
+ keepAssignmentIfRejected?: boolean | undefined;
2071
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2072
+ transactionId: string;
2073
+ requestId: string;
2074
+ eventId: string;
2075
+ type?: "APPROVE_CORRECTION" | undefined;
2076
+ createdAtLocation?: string | null | undefined;
2077
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2078
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2079
+ originalActionId?: string | undefined;
2080
+ keepAssignment?: boolean | undefined;
2081
+ keepAssignmentIfAccepted?: boolean | undefined;
2082
+ keepAssignmentIfRejected?: boolean | undefined;
2083
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2084
+ transactionId: string;
2085
+ eventId: string;
2086
+ type?: "READ" | undefined;
2087
+ createdAtLocation?: string | null | undefined;
2088
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2089
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2090
+ originalActionId?: string | undefined;
2091
+ keepAssignment?: boolean | undefined;
2092
+ keepAssignmentIfAccepted?: boolean | undefined;
2093
+ keepAssignmentIfRejected?: boolean | undefined;
2094
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2095
+ actionId: string;
2096
+ };
2097
+ output: import("../commons").EventDocument;
2098
+ meta: import("trpc-to-openapi").OpenApiMeta;
2099
+ }>;
2100
+ reject: import("@trpc/server").TRPCMutationProcedure<{
2101
+ input: import("zod").input<import("zod").ZodObject<import("zod").objectUtil.extendShape<Pick<{
2102
+ eventId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
2103
+ transactionId: import("zod").ZodString;
2104
+ declaration: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
2105
+ annotation: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
2106
+ originalActionId: import("zod").ZodOptional<import("zod").ZodBranded<import("zod").ZodString, "UUID">>;
2107
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2108
+ keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
2109
+ keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
2110
+ createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
2111
+ }, "transactionId" | "eventId" | "keepAssignment">, {
2112
+ actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
2113
+ }>, "strip", import("zod").ZodTypeAny, {
2114
+ transactionId: string;
2115
+ eventId: string & import("zod").BRAND<"UUID">;
2116
+ actionId: string & import("zod").BRAND<"UUID">;
2117
+ keepAssignment?: boolean | undefined;
2118
+ }, {
2119
+ transactionId: string;
2120
+ eventId: string;
2121
+ actionId: string;
2122
+ keepAssignment?: boolean | undefined;
2123
+ }>>;
2124
+ output: import("../commons").EventDocument;
2125
+ meta: import("trpc-to-openapi").OpenApiMeta;
2126
+ }>;
2127
+ }>>;
2128
+ validate: import("@trpc/server").TRPCBuiltRouter<{
2129
+ ctx: {
2130
+ user: {
2131
+ type: "user";
2132
+ id: string;
2133
+ role: string;
2134
+ primaryOfficeId: string & import("zod").BRAND<"UUID">;
2135
+ signature?: string | undefined;
2136
+ } | {
2137
+ type: "system";
2138
+ id: string;
2139
+ role: "HEALTH" | "NATIONAL_ID" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
2140
+ primaryOfficeId?: undefined;
2141
+ signature?: undefined;
2142
+ };
2143
+ token: `Bearer ${string}`;
2144
+ };
2145
+ meta: import("trpc-to-openapi").OpenApiMeta;
2146
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
2147
+ transformer: true;
2148
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
2149
+ request: import("@trpc/server").TRPCMutationProcedure<{
2150
+ input: import("../commons").ActionInput;
2151
+ output: import("../commons").EventDocument;
2152
+ meta: import("trpc-to-openapi").OpenApiMeta;
2153
+ }>;
2154
+ accept: import("@trpc/server").TRPCMutationProcedure<{
2155
+ input: (Omit<{
2156
+ transactionId: string;
2157
+ eventId: string;
2158
+ type?: "CREATE" | undefined;
2159
+ createdAtLocation?: string | null | undefined;
2160
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2161
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2162
+ originalActionId?: string | undefined;
2163
+ keepAssignment?: boolean | undefined;
2164
+ keepAssignmentIfAccepted?: boolean | undefined;
2165
+ keepAssignmentIfRejected?: boolean | undefined;
2166
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2167
+ transactionId: string;
2168
+ eventId: string;
2169
+ type?: "VALIDATE" | undefined;
2170
+ createdAtLocation?: string | null | undefined;
2171
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2172
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2173
+ originalActionId?: string | undefined;
2174
+ keepAssignment?: boolean | undefined;
2175
+ keepAssignmentIfAccepted?: boolean | undefined;
2176
+ keepAssignmentIfRejected?: boolean | undefined;
2177
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2178
+ transactionId: string;
2179
+ eventId: string;
2180
+ type?: "REGISTER" | undefined;
2181
+ createdAtLocation?: string | null | undefined;
2182
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2183
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2184
+ originalActionId?: string | undefined;
2185
+ registrationNumber?: string | undefined;
2186
+ keepAssignment?: boolean | undefined;
2187
+ keepAssignmentIfAccepted?: boolean | undefined;
2188
+ keepAssignmentIfRejected?: boolean | undefined;
2189
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2190
+ transactionId: string;
2191
+ eventId: string;
2192
+ type?: "NOTIFY" | undefined;
2193
+ createdAtLocation?: string | null | undefined;
2194
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2195
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2196
+ originalActionId?: string | undefined;
2197
+ keepAssignment?: boolean | undefined;
2198
+ keepAssignmentIfAccepted?: boolean | undefined;
2199
+ keepAssignmentIfRejected?: boolean | undefined;
2200
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2201
+ transactionId: string;
2202
+ eventId: string;
2203
+ type?: "DECLARE" | undefined;
2204
+ createdAtLocation?: string | null | undefined;
2205
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2206
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2207
+ originalActionId?: string | undefined;
2208
+ keepAssignment?: boolean | undefined;
2209
+ keepAssignmentIfAccepted?: boolean | undefined;
2210
+ keepAssignmentIfRejected?: boolean | undefined;
2211
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2212
+ content: {
2213
+ reason: string;
2214
+ };
2215
+ transactionId: string;
2216
+ eventId: string;
2217
+ type?: "REJECT" | undefined;
2218
+ createdAtLocation?: string | null | undefined;
2219
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2220
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2221
+ originalActionId?: string | undefined;
2222
+ keepAssignment?: boolean | undefined;
2223
+ keepAssignmentIfAccepted?: boolean | undefined;
2224
+ keepAssignmentIfRejected?: boolean | undefined;
2225
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2226
+ content: {
2227
+ duplicates: {
2228
+ id: string;
2229
+ trackingId: string;
2230
+ }[];
2231
+ };
2232
+ transactionId: string;
2233
+ eventId: string;
2234
+ type?: "DUPLICATE_DETECTED" | undefined;
2235
+ createdAtLocation?: string | null | undefined;
2236
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2237
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2238
+ originalActionId?: string | undefined;
2239
+ keepAssignment?: boolean | undefined;
2240
+ keepAssignmentIfAccepted?: boolean | undefined;
2241
+ keepAssignmentIfRejected?: boolean | undefined;
2242
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2243
+ transactionId: string;
2244
+ eventId: string;
2245
+ type?: "MARK_AS_DUPLICATE" | undefined;
2246
+ content?: {
2247
+ duplicateOf: string;
2248
+ } | undefined;
2249
+ createdAtLocation?: string | null | undefined;
2250
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2251
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2252
+ originalActionId?: string | undefined;
2253
+ keepAssignment?: boolean | undefined;
2254
+ keepAssignmentIfAccepted?: boolean | undefined;
2255
+ keepAssignmentIfRejected?: boolean | undefined;
2256
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2257
+ transactionId: string;
2258
+ eventId: string;
2259
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
2260
+ createdAtLocation?: string | null | undefined;
2261
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2262
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2263
+ originalActionId?: string | undefined;
2264
+ keepAssignment?: boolean | undefined;
2265
+ keepAssignmentIfAccepted?: boolean | undefined;
2266
+ keepAssignmentIfRejected?: boolean | undefined;
2267
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2268
+ content: {
2269
+ reason: string;
2270
+ };
2271
+ transactionId: string;
2272
+ eventId: string;
2273
+ type?: "ARCHIVE" | undefined;
2274
+ createdAtLocation?: string | null | undefined;
2275
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2276
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2277
+ originalActionId?: string | undefined;
2278
+ keepAssignment?: boolean | undefined;
2279
+ keepAssignmentIfAccepted?: boolean | undefined;
2280
+ keepAssignmentIfRejected?: boolean | undefined;
2281
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2282
+ type: "ASSIGN";
2283
+ transactionId: string;
2284
+ assignedTo: string;
2285
+ eventId: string;
2286
+ createdAtLocation?: string | null | undefined;
2287
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2288
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2289
+ originalActionId?: string | undefined;
2290
+ keepAssignment?: boolean | undefined;
2291
+ keepAssignmentIfAccepted?: boolean | undefined;
2292
+ keepAssignmentIfRejected?: boolean | undefined;
2293
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2294
+ transactionId: string;
2295
+ eventId: string;
2296
+ type?: "UNASSIGN" | undefined;
2297
+ createdAtLocation?: string | null | undefined;
2298
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2299
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2300
+ originalActionId?: string | undefined;
2301
+ assignedTo?: null | undefined;
2302
+ keepAssignment?: boolean | undefined;
2303
+ keepAssignmentIfAccepted?: boolean | undefined;
2304
+ keepAssignmentIfRejected?: boolean | undefined;
2305
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2306
+ transactionId: string;
2307
+ eventId: string;
2308
+ type?: "PRINT_CERTIFICATE" | undefined;
2309
+ content?: {
2310
+ templateId?: string | undefined;
2311
+ } | undefined;
2312
+ createdAtLocation?: string | null | undefined;
2313
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2314
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2315
+ originalActionId?: string | undefined;
2316
+ keepAssignment?: boolean | undefined;
2317
+ keepAssignmentIfAccepted?: boolean | undefined;
2318
+ keepAssignmentIfRejected?: boolean | undefined;
2319
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2320
+ transactionId: string;
2321
+ eventId: string;
2322
+ type?: "REQUEST_CORRECTION" | undefined;
2323
+ createdAtLocation?: string | null | undefined;
2324
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2325
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2326
+ originalActionId?: string | undefined;
2327
+ keepAssignment?: boolean | undefined;
2328
+ keepAssignmentIfAccepted?: boolean | undefined;
2329
+ keepAssignmentIfRejected?: boolean | undefined;
2330
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2331
+ content: {
2332
+ reason: string;
2333
+ };
2334
+ transactionId: string;
2335
+ requestId: string;
2336
+ eventId: string;
2337
+ type?: "REJECT_CORRECTION" | undefined;
2338
+ createdAtLocation?: string | null | undefined;
2339
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2340
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2341
+ originalActionId?: string | undefined;
2342
+ keepAssignment?: boolean | undefined;
2343
+ keepAssignmentIfAccepted?: boolean | undefined;
2344
+ keepAssignmentIfRejected?: boolean | undefined;
2345
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2346
+ transactionId: string;
2347
+ requestId: string;
2348
+ eventId: string;
2349
+ type?: "APPROVE_CORRECTION" | undefined;
2350
+ createdAtLocation?: string | null | undefined;
2351
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2352
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2353
+ originalActionId?: string | undefined;
2354
+ keepAssignment?: boolean | undefined;
2355
+ keepAssignmentIfAccepted?: boolean | undefined;
2356
+ keepAssignmentIfRejected?: boolean | undefined;
2357
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2358
+ transactionId: string;
2359
+ eventId: string;
2360
+ type?: "READ" | undefined;
2361
+ createdAtLocation?: string | null | undefined;
2362
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2363
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2364
+ originalActionId?: string | undefined;
2365
+ keepAssignment?: boolean | undefined;
2366
+ keepAssignmentIfAccepted?: boolean | undefined;
2367
+ keepAssignmentIfRejected?: boolean | undefined;
2368
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2369
+ actionId: string;
2370
+ };
2371
+ output: import("../commons").EventDocument;
2372
+ meta: import("trpc-to-openapi").OpenApiMeta;
2373
+ }>;
2374
+ reject: import("@trpc/server").TRPCMutationProcedure<{
2375
+ input: import("zod").input<import("zod").ZodObject<import("zod").objectUtil.extendShape<Pick<{
2376
+ eventId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
2377
+ transactionId: import("zod").ZodString;
2378
+ declaration: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
2379
+ annotation: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
2380
+ originalActionId: import("zod").ZodOptional<import("zod").ZodBranded<import("zod").ZodString, "UUID">>;
2381
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2382
+ keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
2383
+ keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
2384
+ createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
2385
+ }, "transactionId" | "eventId" | "keepAssignment">, {
2386
+ actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
2387
+ }>, "strip", import("zod").ZodTypeAny, {
2388
+ transactionId: string;
2389
+ eventId: string & import("zod").BRAND<"UUID">;
2390
+ actionId: string & import("zod").BRAND<"UUID">;
2391
+ keepAssignment?: boolean | undefined;
2392
+ }, {
2393
+ transactionId: string;
2394
+ eventId: string;
2395
+ actionId: string;
2396
+ keepAssignment?: boolean | undefined;
2397
+ }>>;
2398
+ output: import("../commons").EventDocument;
2399
+ meta: import("trpc-to-openapi").OpenApiMeta;
2400
+ }>;
2401
+ }>>;
2402
+ reject: import("@trpc/server").TRPCBuiltRouter<{
2403
+ ctx: {
2404
+ user: {
2405
+ type: "user";
2406
+ id: string;
2407
+ role: string;
2408
+ primaryOfficeId: string & import("zod").BRAND<"UUID">;
2409
+ signature?: string | undefined;
2410
+ } | {
2411
+ type: "system";
2412
+ id: string;
2413
+ role: "HEALTH" | "NATIONAL_ID" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
2414
+ primaryOfficeId?: undefined;
2415
+ signature?: undefined;
2416
+ };
2417
+ token: `Bearer ${string}`;
2418
+ };
2419
+ meta: import("trpc-to-openapi").OpenApiMeta;
2420
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
2421
+ transformer: true;
2422
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
2423
+ request: import("@trpc/server").TRPCMutationProcedure<{
2424
+ input: import("../commons").ActionInput;
2425
+ output: import("../commons").EventDocument;
2426
+ meta: import("trpc-to-openapi").OpenApiMeta;
2427
+ }>;
2428
+ accept: import("@trpc/server").TRPCMutationProcedure<{
2429
+ input: (Omit<{
2430
+ transactionId: string;
2431
+ eventId: string;
2432
+ type?: "CREATE" | undefined;
2433
+ createdAtLocation?: string | null | undefined;
2434
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2435
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2436
+ originalActionId?: string | undefined;
2437
+ keepAssignment?: boolean | undefined;
2438
+ keepAssignmentIfAccepted?: boolean | undefined;
2439
+ keepAssignmentIfRejected?: boolean | undefined;
2440
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2441
+ transactionId: string;
2442
+ eventId: string;
2443
+ type?: "VALIDATE" | undefined;
2444
+ createdAtLocation?: string | null | undefined;
2445
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2446
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2447
+ originalActionId?: string | undefined;
2448
+ keepAssignment?: boolean | undefined;
2449
+ keepAssignmentIfAccepted?: boolean | undefined;
2450
+ keepAssignmentIfRejected?: boolean | undefined;
2451
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2452
+ transactionId: string;
2453
+ eventId: string;
2454
+ type?: "REGISTER" | undefined;
2455
+ createdAtLocation?: string | null | undefined;
2456
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2457
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2458
+ originalActionId?: string | undefined;
2459
+ registrationNumber?: string | undefined;
2460
+ keepAssignment?: boolean | undefined;
2461
+ keepAssignmentIfAccepted?: boolean | undefined;
2462
+ keepAssignmentIfRejected?: boolean | undefined;
2463
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2464
+ transactionId: string;
2465
+ eventId: string;
2466
+ type?: "NOTIFY" | undefined;
2467
+ createdAtLocation?: string | null | undefined;
2468
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2469
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2470
+ originalActionId?: string | undefined;
2471
+ keepAssignment?: boolean | undefined;
2472
+ keepAssignmentIfAccepted?: boolean | undefined;
2473
+ keepAssignmentIfRejected?: boolean | undefined;
2474
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2475
+ transactionId: string;
2476
+ eventId: string;
2477
+ type?: "DECLARE" | undefined;
2478
+ createdAtLocation?: string | null | undefined;
2479
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2480
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2481
+ originalActionId?: string | undefined;
2482
+ keepAssignment?: boolean | undefined;
2483
+ keepAssignmentIfAccepted?: boolean | undefined;
2484
+ keepAssignmentIfRejected?: boolean | undefined;
2485
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2486
+ content: {
2487
+ reason: string;
2488
+ };
2489
+ transactionId: string;
2490
+ eventId: string;
2491
+ type?: "REJECT" | undefined;
2492
+ createdAtLocation?: string | null | undefined;
2493
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2494
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2495
+ originalActionId?: string | undefined;
2496
+ keepAssignment?: boolean | undefined;
2497
+ keepAssignmentIfAccepted?: boolean | undefined;
2498
+ keepAssignmentIfRejected?: boolean | undefined;
2499
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2500
+ content: {
2501
+ duplicates: {
2502
+ id: string;
2503
+ trackingId: string;
2504
+ }[];
2505
+ };
2506
+ transactionId: string;
2507
+ eventId: string;
2508
+ type?: "DUPLICATE_DETECTED" | undefined;
2509
+ createdAtLocation?: string | null | undefined;
2510
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2511
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2512
+ originalActionId?: string | undefined;
2513
+ keepAssignment?: boolean | undefined;
2514
+ keepAssignmentIfAccepted?: boolean | undefined;
2515
+ keepAssignmentIfRejected?: boolean | undefined;
2516
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2517
+ transactionId: string;
2518
+ eventId: string;
2519
+ type?: "MARK_AS_DUPLICATE" | undefined;
2520
+ content?: {
2521
+ duplicateOf: string;
2522
+ } | undefined;
2523
+ createdAtLocation?: string | null | undefined;
2524
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2525
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2526
+ originalActionId?: string | undefined;
2527
+ keepAssignment?: boolean | undefined;
2528
+ keepAssignmentIfAccepted?: boolean | undefined;
2529
+ keepAssignmentIfRejected?: boolean | undefined;
2530
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2531
+ transactionId: string;
2532
+ eventId: string;
2533
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
2534
+ createdAtLocation?: string | null | undefined;
2535
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2536
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2537
+ originalActionId?: string | undefined;
2538
+ keepAssignment?: boolean | undefined;
2539
+ keepAssignmentIfAccepted?: boolean | undefined;
2540
+ keepAssignmentIfRejected?: boolean | undefined;
2541
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2542
+ content: {
2543
+ reason: string;
2544
+ };
2545
+ transactionId: string;
2546
+ eventId: string;
2547
+ type?: "ARCHIVE" | undefined;
2548
+ createdAtLocation?: string | null | undefined;
2549
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2550
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2551
+ originalActionId?: string | undefined;
2552
+ keepAssignment?: boolean | undefined;
2553
+ keepAssignmentIfAccepted?: boolean | undefined;
2554
+ keepAssignmentIfRejected?: boolean | undefined;
2555
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2556
+ type: "ASSIGN";
2557
+ transactionId: string;
2558
+ assignedTo: string;
2559
+ eventId: string;
2560
+ createdAtLocation?: string | null | undefined;
2561
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2562
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2563
+ originalActionId?: string | undefined;
2564
+ keepAssignment?: boolean | undefined;
2565
+ keepAssignmentIfAccepted?: boolean | undefined;
2566
+ keepAssignmentIfRejected?: boolean | undefined;
2567
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2568
+ transactionId: string;
2569
+ eventId: string;
2570
+ type?: "UNASSIGN" | undefined;
2571
+ createdAtLocation?: string | null | undefined;
2572
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2573
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2574
+ originalActionId?: string | undefined;
2575
+ assignedTo?: null | undefined;
2576
+ keepAssignment?: boolean | undefined;
2577
+ keepAssignmentIfAccepted?: boolean | undefined;
2578
+ keepAssignmentIfRejected?: boolean | undefined;
2579
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2580
+ transactionId: string;
2581
+ eventId: string;
2582
+ type?: "PRINT_CERTIFICATE" | undefined;
2583
+ content?: {
2584
+ templateId?: string | undefined;
2585
+ } | undefined;
2586
+ createdAtLocation?: string | null | undefined;
2587
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2588
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2589
+ originalActionId?: string | undefined;
2590
+ keepAssignment?: boolean | undefined;
2591
+ keepAssignmentIfAccepted?: boolean | undefined;
2592
+ keepAssignmentIfRejected?: boolean | undefined;
2593
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2594
+ transactionId: string;
2595
+ eventId: string;
2596
+ type?: "REQUEST_CORRECTION" | undefined;
2597
+ createdAtLocation?: string | null | undefined;
2598
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2599
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2600
+ originalActionId?: string | undefined;
2601
+ keepAssignment?: boolean | undefined;
2602
+ keepAssignmentIfAccepted?: boolean | undefined;
2603
+ keepAssignmentIfRejected?: boolean | undefined;
2604
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2605
+ content: {
2606
+ reason: string;
2607
+ };
2608
+ transactionId: string;
2609
+ requestId: string;
2610
+ eventId: string;
2611
+ type?: "REJECT_CORRECTION" | undefined;
2612
+ createdAtLocation?: string | null | undefined;
2613
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2614
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2615
+ originalActionId?: string | undefined;
2616
+ keepAssignment?: boolean | undefined;
2617
+ keepAssignmentIfAccepted?: boolean | undefined;
2618
+ keepAssignmentIfRejected?: boolean | undefined;
2619
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2620
+ transactionId: string;
2621
+ requestId: string;
2622
+ eventId: string;
2623
+ type?: "APPROVE_CORRECTION" | undefined;
2624
+ createdAtLocation?: string | null | undefined;
2625
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2626
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2627
+ originalActionId?: string | undefined;
2628
+ keepAssignment?: boolean | undefined;
2629
+ keepAssignmentIfAccepted?: boolean | undefined;
2630
+ keepAssignmentIfRejected?: boolean | undefined;
2631
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2632
+ transactionId: string;
2633
+ eventId: string;
2634
+ type?: "READ" | undefined;
2635
+ createdAtLocation?: string | null | undefined;
2636
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2637
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2638
+ originalActionId?: string | undefined;
2639
+ keepAssignment?: boolean | undefined;
2640
+ keepAssignmentIfAccepted?: boolean | undefined;
2641
+ keepAssignmentIfRejected?: boolean | undefined;
2642
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2643
+ actionId: string;
2644
+ };
2645
+ output: import("../commons").EventDocument;
2646
+ meta: import("trpc-to-openapi").OpenApiMeta;
2647
+ }>;
2648
+ reject: import("@trpc/server").TRPCMutationProcedure<{
2649
+ input: import("zod").input<import("zod").ZodObject<import("zod").objectUtil.extendShape<Pick<{
2650
+ eventId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
2651
+ transactionId: import("zod").ZodString;
2652
+ declaration: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
2653
+ annotation: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
2654
+ originalActionId: import("zod").ZodOptional<import("zod").ZodBranded<import("zod").ZodString, "UUID">>;
2655
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2656
+ keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
2657
+ keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
2658
+ createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
2659
+ }, "transactionId" | "eventId" | "keepAssignment">, {
2660
+ actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
2661
+ }>, "strip", import("zod").ZodTypeAny, {
2662
+ transactionId: string;
2663
+ eventId: string & import("zod").BRAND<"UUID">;
2664
+ actionId: string & import("zod").BRAND<"UUID">;
2665
+ keepAssignment?: boolean | undefined;
2666
+ }, {
2667
+ transactionId: string;
2668
+ eventId: string;
2669
+ actionId: string;
2670
+ keepAssignment?: boolean | undefined;
2671
+ }>>;
2672
+ output: import("../commons").EventDocument;
2673
+ meta: import("trpc-to-openapi").OpenApiMeta;
2674
+ }>;
2675
+ }>>;
2676
+ archive: import("@trpc/server").TRPCBuiltRouter<{
2677
+ ctx: {
2678
+ user: {
2679
+ type: "user";
2680
+ id: string;
2681
+ role: string;
2682
+ primaryOfficeId: string & import("zod").BRAND<"UUID">;
2683
+ signature?: string | undefined;
2684
+ } | {
2685
+ type: "system";
2686
+ id: string;
2687
+ role: "HEALTH" | "NATIONAL_ID" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
2688
+ primaryOfficeId?: undefined;
2689
+ signature?: undefined;
2690
+ };
2691
+ token: `Bearer ${string}`;
2692
+ };
2693
+ meta: import("trpc-to-openapi").OpenApiMeta;
2694
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
2695
+ transformer: true;
2696
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
2697
+ request: import("@trpc/server").TRPCMutationProcedure<{
2698
+ input: import("../commons").ActionInput;
2699
+ output: import("../commons").EventDocument;
2700
+ meta: import("trpc-to-openapi").OpenApiMeta;
2701
+ }>;
2702
+ accept: import("@trpc/server").TRPCMutationProcedure<{
2703
+ input: (Omit<{
2704
+ transactionId: string;
2705
+ eventId: string;
2706
+ type?: "CREATE" | undefined;
2707
+ createdAtLocation?: string | null | undefined;
2708
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2709
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2710
+ originalActionId?: string | undefined;
2711
+ keepAssignment?: boolean | undefined;
2712
+ keepAssignmentIfAccepted?: boolean | undefined;
2713
+ keepAssignmentIfRejected?: boolean | undefined;
2714
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2715
+ transactionId: string;
2716
+ eventId: string;
2717
+ type?: "VALIDATE" | undefined;
2718
+ createdAtLocation?: string | null | undefined;
2719
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2720
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2721
+ originalActionId?: string | undefined;
2722
+ keepAssignment?: boolean | undefined;
2723
+ keepAssignmentIfAccepted?: boolean | undefined;
2724
+ keepAssignmentIfRejected?: boolean | undefined;
2725
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2726
+ transactionId: string;
2727
+ eventId: string;
2728
+ type?: "REGISTER" | undefined;
2729
+ createdAtLocation?: string | null | undefined;
2730
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2731
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2732
+ originalActionId?: string | undefined;
2733
+ registrationNumber?: string | undefined;
2734
+ keepAssignment?: boolean | undefined;
2735
+ keepAssignmentIfAccepted?: boolean | undefined;
2736
+ keepAssignmentIfRejected?: boolean | undefined;
2737
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2738
+ transactionId: string;
2739
+ eventId: string;
2740
+ type?: "NOTIFY" | undefined;
2741
+ createdAtLocation?: string | null | undefined;
2742
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2743
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2744
+ originalActionId?: string | undefined;
2745
+ keepAssignment?: boolean | undefined;
2746
+ keepAssignmentIfAccepted?: boolean | undefined;
2747
+ keepAssignmentIfRejected?: boolean | undefined;
2748
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2749
+ transactionId: string;
2750
+ eventId: string;
2751
+ type?: "DECLARE" | undefined;
2752
+ createdAtLocation?: string | null | undefined;
2753
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2754
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2755
+ originalActionId?: string | undefined;
2756
+ keepAssignment?: boolean | undefined;
2757
+ keepAssignmentIfAccepted?: boolean | undefined;
2758
+ keepAssignmentIfRejected?: boolean | undefined;
2759
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2760
+ content: {
2761
+ reason: string;
2762
+ };
2763
+ transactionId: string;
2764
+ eventId: string;
2765
+ type?: "REJECT" | undefined;
2766
+ createdAtLocation?: string | null | undefined;
2767
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2768
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2769
+ originalActionId?: string | undefined;
2770
+ keepAssignment?: boolean | undefined;
2771
+ keepAssignmentIfAccepted?: boolean | undefined;
2772
+ keepAssignmentIfRejected?: boolean | undefined;
2773
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2774
+ content: {
2775
+ duplicates: {
2776
+ id: string;
2777
+ trackingId: string;
2778
+ }[];
2779
+ };
2780
+ transactionId: string;
2781
+ eventId: string;
2782
+ type?: "DUPLICATE_DETECTED" | undefined;
2783
+ createdAtLocation?: string | null | undefined;
2784
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2785
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2786
+ originalActionId?: string | undefined;
2787
+ keepAssignment?: boolean | undefined;
2788
+ keepAssignmentIfAccepted?: boolean | undefined;
2789
+ keepAssignmentIfRejected?: boolean | undefined;
2790
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2791
+ transactionId: string;
2792
+ eventId: string;
2793
+ type?: "MARK_AS_DUPLICATE" | undefined;
2794
+ content?: {
2795
+ duplicateOf: string;
2796
+ } | undefined;
2797
+ createdAtLocation?: string | null | undefined;
2798
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2799
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2800
+ originalActionId?: string | undefined;
2801
+ keepAssignment?: boolean | undefined;
2802
+ keepAssignmentIfAccepted?: boolean | undefined;
2803
+ keepAssignmentIfRejected?: boolean | undefined;
2804
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2805
+ transactionId: string;
2806
+ eventId: string;
2807
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
2808
+ createdAtLocation?: string | null | undefined;
2809
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2810
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2811
+ originalActionId?: string | undefined;
2812
+ keepAssignment?: boolean | undefined;
2813
+ keepAssignmentIfAccepted?: boolean | undefined;
2814
+ keepAssignmentIfRejected?: boolean | undefined;
2815
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2816
+ content: {
2817
+ reason: string;
2818
+ };
2819
+ transactionId: string;
2820
+ eventId: string;
2821
+ type?: "ARCHIVE" | undefined;
2822
+ createdAtLocation?: string | null | undefined;
2823
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2824
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2825
+ originalActionId?: string | undefined;
2826
+ keepAssignment?: boolean | undefined;
2827
+ keepAssignmentIfAccepted?: boolean | undefined;
2828
+ keepAssignmentIfRejected?: boolean | undefined;
2829
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2830
+ type: "ASSIGN";
2831
+ transactionId: string;
2832
+ assignedTo: string;
2833
+ eventId: string;
2834
+ createdAtLocation?: string | null | undefined;
2835
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2836
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2837
+ originalActionId?: string | undefined;
2838
+ keepAssignment?: boolean | undefined;
2839
+ keepAssignmentIfAccepted?: boolean | undefined;
2840
+ keepAssignmentIfRejected?: boolean | undefined;
2841
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2842
+ transactionId: string;
2843
+ eventId: string;
2844
+ type?: "UNASSIGN" | undefined;
2845
+ createdAtLocation?: string | null | undefined;
2846
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2847
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2848
+ originalActionId?: string | undefined;
2849
+ assignedTo?: null | undefined;
2850
+ keepAssignment?: boolean | undefined;
2851
+ keepAssignmentIfAccepted?: boolean | undefined;
2852
+ keepAssignmentIfRejected?: boolean | undefined;
2853
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2854
+ transactionId: string;
2855
+ eventId: string;
2856
+ type?: "PRINT_CERTIFICATE" | undefined;
2857
+ content?: {
2858
+ templateId?: string | undefined;
2859
+ } | undefined;
2860
+ createdAtLocation?: string | null | undefined;
2861
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2862
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2863
+ originalActionId?: string | undefined;
2864
+ keepAssignment?: boolean | undefined;
2865
+ keepAssignmentIfAccepted?: boolean | undefined;
2866
+ keepAssignmentIfRejected?: boolean | undefined;
2867
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2868
+ transactionId: string;
2869
+ eventId: string;
2870
+ type?: "REQUEST_CORRECTION" | undefined;
2871
+ createdAtLocation?: string | null | undefined;
2872
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2873
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2874
+ originalActionId?: string | undefined;
2875
+ keepAssignment?: boolean | undefined;
2876
+ keepAssignmentIfAccepted?: boolean | undefined;
2877
+ keepAssignmentIfRejected?: boolean | undefined;
2878
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2879
+ content: {
2880
+ reason: string;
2881
+ };
2882
+ transactionId: string;
2883
+ requestId: string;
2884
+ eventId: string;
2885
+ type?: "REJECT_CORRECTION" | undefined;
2886
+ createdAtLocation?: string | null | undefined;
2887
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2888
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2889
+ originalActionId?: string | undefined;
2890
+ keepAssignment?: boolean | undefined;
2891
+ keepAssignmentIfAccepted?: boolean | undefined;
2892
+ keepAssignmentIfRejected?: boolean | undefined;
2893
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2894
+ transactionId: string;
2895
+ requestId: string;
2896
+ eventId: string;
2897
+ type?: "APPROVE_CORRECTION" | undefined;
2898
+ createdAtLocation?: string | null | undefined;
2899
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2900
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2901
+ originalActionId?: string | undefined;
2902
+ keepAssignment?: boolean | undefined;
2903
+ keepAssignmentIfAccepted?: boolean | undefined;
2904
+ keepAssignmentIfRejected?: boolean | undefined;
2905
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2906
+ transactionId: string;
2907
+ eventId: string;
2908
+ type?: "READ" | undefined;
2909
+ createdAtLocation?: string | null | undefined;
2910
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2911
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2912
+ originalActionId?: string | undefined;
2913
+ keepAssignment?: boolean | undefined;
2914
+ keepAssignmentIfAccepted?: boolean | undefined;
2915
+ keepAssignmentIfRejected?: boolean | undefined;
2916
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2917
+ actionId: string;
2918
+ };
2919
+ output: import("../commons").EventDocument;
2920
+ meta: import("trpc-to-openapi").OpenApiMeta;
2921
+ }>;
2922
+ reject: import("@trpc/server").TRPCMutationProcedure<{
2923
+ input: import("zod").input<import("zod").ZodObject<import("zod").objectUtil.extendShape<Pick<{
2924
+ eventId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
2925
+ transactionId: import("zod").ZodString;
2926
+ declaration: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
2927
+ annotation: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
2928
+ originalActionId: import("zod").ZodOptional<import("zod").ZodBranded<import("zod").ZodString, "UUID">>;
2929
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2930
+ keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
2931
+ keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
2932
+ createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
2933
+ }, "transactionId" | "eventId" | "keepAssignment">, {
2934
+ actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
2935
+ }>, "strip", import("zod").ZodTypeAny, {
2936
+ transactionId: string;
2937
+ eventId: string & import("zod").BRAND<"UUID">;
2938
+ actionId: string & import("zod").BRAND<"UUID">;
2939
+ keepAssignment?: boolean | undefined;
2940
+ }, {
2941
+ transactionId: string;
2942
+ eventId: string;
2943
+ actionId: string;
2944
+ keepAssignment?: boolean | undefined;
2945
+ }>>;
2946
+ output: import("../commons").EventDocument;
2947
+ meta: import("trpc-to-openapi").OpenApiMeta;
2948
+ }>;
2949
+ }>>;
2950
+ register: import("@trpc/server").TRPCBuiltRouter<{
2951
+ ctx: {
2952
+ user: {
2953
+ type: "user";
1752
2954
  id: string;
1753
2955
  role: string;
1754
2956
  primaryOfficeId: string & import("zod").BRAND<"UUID">;
@@ -1772,23 +2974,254 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1772
2974
  meta: import("trpc-to-openapi").OpenApiMeta;
1773
2975
  }>;
1774
2976
  accept: import("@trpc/server").TRPCMutationProcedure<{
1775
- input: import("../commons").ActionInput & {
2977
+ input: (Omit<{
2978
+ transactionId: string;
2979
+ eventId: string;
2980
+ type?: "CREATE" | undefined;
2981
+ createdAtLocation?: string | null | undefined;
2982
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2983
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2984
+ originalActionId?: string | undefined;
2985
+ keepAssignment?: boolean | undefined;
2986
+ keepAssignmentIfAccepted?: boolean | undefined;
2987
+ keepAssignmentIfRejected?: boolean | undefined;
2988
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2989
+ transactionId: string;
2990
+ eventId: string;
2991
+ type?: "VALIDATE" | undefined;
2992
+ createdAtLocation?: string | null | undefined;
2993
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2994
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2995
+ originalActionId?: string | undefined;
2996
+ keepAssignment?: boolean | undefined;
2997
+ keepAssignmentIfAccepted?: boolean | undefined;
2998
+ keepAssignmentIfRejected?: boolean | undefined;
2999
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3000
+ transactionId: string;
3001
+ eventId: string;
3002
+ type?: "REGISTER" | undefined;
3003
+ createdAtLocation?: string | null | undefined;
3004
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3005
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3006
+ originalActionId?: string | undefined;
3007
+ registrationNumber?: string | undefined;
3008
+ keepAssignment?: boolean | undefined;
3009
+ keepAssignmentIfAccepted?: boolean | undefined;
3010
+ keepAssignmentIfRejected?: boolean | undefined;
3011
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3012
+ transactionId: string;
3013
+ eventId: string;
3014
+ type?: "NOTIFY" | undefined;
3015
+ createdAtLocation?: string | null | undefined;
3016
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3017
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3018
+ originalActionId?: string | undefined;
3019
+ keepAssignment?: boolean | undefined;
3020
+ keepAssignmentIfAccepted?: boolean | undefined;
3021
+ keepAssignmentIfRejected?: boolean | undefined;
3022
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3023
+ transactionId: string;
3024
+ eventId: string;
3025
+ type?: "DECLARE" | undefined;
3026
+ createdAtLocation?: string | null | undefined;
3027
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3028
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3029
+ originalActionId?: string | undefined;
3030
+ keepAssignment?: boolean | undefined;
3031
+ keepAssignmentIfAccepted?: boolean | undefined;
3032
+ keepAssignmentIfRejected?: boolean | undefined;
3033
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3034
+ content: {
3035
+ reason: string;
3036
+ };
3037
+ transactionId: string;
3038
+ eventId: string;
3039
+ type?: "REJECT" | undefined;
3040
+ createdAtLocation?: string | null | undefined;
3041
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3042
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3043
+ originalActionId?: string | undefined;
3044
+ keepAssignment?: boolean | undefined;
3045
+ keepAssignmentIfAccepted?: boolean | undefined;
3046
+ keepAssignmentIfRejected?: boolean | undefined;
3047
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3048
+ content: {
3049
+ duplicates: {
3050
+ id: string;
3051
+ trackingId: string;
3052
+ }[];
3053
+ };
3054
+ transactionId: string;
3055
+ eventId: string;
3056
+ type?: "DUPLICATE_DETECTED" | undefined;
3057
+ createdAtLocation?: string | null | undefined;
3058
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3059
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3060
+ originalActionId?: string | undefined;
3061
+ keepAssignment?: boolean | undefined;
3062
+ keepAssignmentIfAccepted?: boolean | undefined;
3063
+ keepAssignmentIfRejected?: boolean | undefined;
3064
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3065
+ transactionId: string;
3066
+ eventId: string;
3067
+ type?: "MARK_AS_DUPLICATE" | undefined;
3068
+ content?: {
3069
+ duplicateOf: string;
3070
+ } | undefined;
3071
+ createdAtLocation?: string | null | undefined;
3072
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3073
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3074
+ originalActionId?: string | undefined;
3075
+ keepAssignment?: boolean | undefined;
3076
+ keepAssignmentIfAccepted?: boolean | undefined;
3077
+ keepAssignmentIfRejected?: boolean | undefined;
3078
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3079
+ transactionId: string;
3080
+ eventId: string;
3081
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
3082
+ createdAtLocation?: string | null | undefined;
3083
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3084
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3085
+ originalActionId?: string | undefined;
3086
+ keepAssignment?: boolean | undefined;
3087
+ keepAssignmentIfAccepted?: boolean | undefined;
3088
+ keepAssignmentIfRejected?: boolean | undefined;
3089
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3090
+ content: {
3091
+ reason: string;
3092
+ };
3093
+ transactionId: string;
3094
+ eventId: string;
3095
+ type?: "ARCHIVE" | undefined;
3096
+ createdAtLocation?: string | null | undefined;
3097
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3098
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3099
+ originalActionId?: string | undefined;
3100
+ keepAssignment?: boolean | undefined;
3101
+ keepAssignmentIfAccepted?: boolean | undefined;
3102
+ keepAssignmentIfRejected?: boolean | undefined;
3103
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3104
+ type: "ASSIGN";
3105
+ transactionId: string;
3106
+ assignedTo: string;
3107
+ eventId: string;
3108
+ createdAtLocation?: string | null | undefined;
3109
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3110
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3111
+ originalActionId?: string | undefined;
3112
+ keepAssignment?: boolean | undefined;
3113
+ keepAssignmentIfAccepted?: boolean | undefined;
3114
+ keepAssignmentIfRejected?: boolean | undefined;
3115
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3116
+ transactionId: string;
3117
+ eventId: string;
3118
+ type?: "UNASSIGN" | undefined;
3119
+ createdAtLocation?: string | null | undefined;
3120
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3121
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3122
+ originalActionId?: string | undefined;
3123
+ assignedTo?: null | undefined;
3124
+ keepAssignment?: boolean | undefined;
3125
+ keepAssignmentIfAccepted?: boolean | undefined;
3126
+ keepAssignmentIfRejected?: boolean | undefined;
3127
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3128
+ transactionId: string;
3129
+ eventId: string;
3130
+ type?: "PRINT_CERTIFICATE" | undefined;
3131
+ content?: {
3132
+ templateId?: string | undefined;
3133
+ } | undefined;
3134
+ createdAtLocation?: string | null | undefined;
3135
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3136
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3137
+ originalActionId?: string | undefined;
3138
+ keepAssignment?: boolean | undefined;
3139
+ keepAssignmentIfAccepted?: boolean | undefined;
3140
+ keepAssignmentIfRejected?: boolean | undefined;
3141
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3142
+ transactionId: string;
3143
+ eventId: string;
3144
+ type?: "REQUEST_CORRECTION" | undefined;
3145
+ createdAtLocation?: string | null | undefined;
3146
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3147
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3148
+ originalActionId?: string | undefined;
3149
+ keepAssignment?: boolean | undefined;
3150
+ keepAssignmentIfAccepted?: boolean | undefined;
3151
+ keepAssignmentIfRejected?: boolean | undefined;
3152
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3153
+ content: {
3154
+ reason: string;
3155
+ };
3156
+ transactionId: string;
3157
+ requestId: string;
3158
+ eventId: string;
3159
+ type?: "REJECT_CORRECTION" | undefined;
3160
+ createdAtLocation?: string | null | undefined;
3161
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3162
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3163
+ originalActionId?: string | undefined;
3164
+ keepAssignment?: boolean | undefined;
3165
+ keepAssignmentIfAccepted?: boolean | undefined;
3166
+ keepAssignmentIfRejected?: boolean | undefined;
3167
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3168
+ transactionId: string;
3169
+ requestId: string;
3170
+ eventId: string;
3171
+ type?: "APPROVE_CORRECTION" | undefined;
3172
+ createdAtLocation?: string | null | undefined;
3173
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3174
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3175
+ originalActionId?: string | undefined;
3176
+ keepAssignment?: boolean | undefined;
3177
+ keepAssignmentIfAccepted?: boolean | undefined;
3178
+ keepAssignmentIfRejected?: boolean | undefined;
3179
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3180
+ transactionId: string;
3181
+ eventId: string;
3182
+ type?: "READ" | undefined;
3183
+ createdAtLocation?: string | null | undefined;
3184
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3185
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3186
+ originalActionId?: string | undefined;
3187
+ keepAssignment?: boolean | undefined;
3188
+ keepAssignmentIfAccepted?: boolean | undefined;
3189
+ keepAssignmentIfRejected?: boolean | undefined;
3190
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
1776
3191
  actionId: string;
1777
3192
  };
1778
3193
  output: import("../commons").EventDocument;
1779
3194
  meta: import("trpc-to-openapi").OpenApiMeta;
1780
3195
  }>;
1781
3196
  reject: import("@trpc/server").TRPCMutationProcedure<{
1782
- input: {
3197
+ input: import("zod").input<import("zod").ZodObject<import("zod").objectUtil.extendShape<Pick<{
3198
+ eventId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
3199
+ transactionId: import("zod").ZodString;
3200
+ declaration: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
3201
+ annotation: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
3202
+ originalActionId: import("zod").ZodOptional<import("zod").ZodBranded<import("zod").ZodString, "UUID">>;
3203
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3204
+ keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
3205
+ keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
3206
+ createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
3207
+ }, "transactionId" | "eventId" | "keepAssignment">, {
3208
+ actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
3209
+ }>, "strip", import("zod").ZodTypeAny, {
3210
+ transactionId: string;
3211
+ eventId: string & import("zod").BRAND<"UUID">;
3212
+ actionId: string & import("zod").BRAND<"UUID">;
3213
+ keepAssignment?: boolean | undefined;
3214
+ }, {
3215
+ transactionId: string;
1783
3216
  eventId: string;
1784
3217
  actionId: string;
1785
- transactionId: string;
1786
- };
3218
+ keepAssignment?: boolean | undefined;
3219
+ }>>;
1787
3220
  output: import("../commons").EventDocument;
1788
3221
  meta: import("trpc-to-openapi").OpenApiMeta;
1789
3222
  }>;
1790
3223
  }>>;
1791
- register: import("@trpc/server").TRPCBuiltRouter<{
3224
+ printCertificate: import("@trpc/server").TRPCBuiltRouter<{
1792
3225
  ctx: {
1793
3226
  user: {
1794
3227
  type: "user";
@@ -1815,61 +3248,249 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1815
3248
  meta: import("trpc-to-openapi").OpenApiMeta;
1816
3249
  }>;
1817
3250
  accept: import("@trpc/server").TRPCMutationProcedure<{
1818
- input: import("../commons").ActionInput & {
1819
- actionId: string;
1820
- };
1821
- output: import("../commons").EventDocument;
1822
- meta: import("trpc-to-openapi").OpenApiMeta;
1823
- }>;
1824
- reject: import("@trpc/server").TRPCMutationProcedure<{
1825
- input: {
3251
+ input: (Omit<{
3252
+ transactionId: string;
3253
+ eventId: string;
3254
+ type?: "CREATE" | undefined;
3255
+ createdAtLocation?: string | null | undefined;
3256
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3257
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3258
+ originalActionId?: string | undefined;
3259
+ keepAssignment?: boolean | undefined;
3260
+ keepAssignmentIfAccepted?: boolean | undefined;
3261
+ keepAssignmentIfRejected?: boolean | undefined;
3262
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3263
+ transactionId: string;
3264
+ eventId: string;
3265
+ type?: "VALIDATE" | undefined;
3266
+ createdAtLocation?: string | null | undefined;
3267
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3268
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3269
+ originalActionId?: string | undefined;
3270
+ keepAssignment?: boolean | undefined;
3271
+ keepAssignmentIfAccepted?: boolean | undefined;
3272
+ keepAssignmentIfRejected?: boolean | undefined;
3273
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3274
+ transactionId: string;
3275
+ eventId: string;
3276
+ type?: "REGISTER" | undefined;
3277
+ createdAtLocation?: string | null | undefined;
3278
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3279
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3280
+ originalActionId?: string | undefined;
3281
+ registrationNumber?: string | undefined;
3282
+ keepAssignment?: boolean | undefined;
3283
+ keepAssignmentIfAccepted?: boolean | undefined;
3284
+ keepAssignmentIfRejected?: boolean | undefined;
3285
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3286
+ transactionId: string;
3287
+ eventId: string;
3288
+ type?: "NOTIFY" | undefined;
3289
+ createdAtLocation?: string | null | undefined;
3290
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3291
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3292
+ originalActionId?: string | undefined;
3293
+ keepAssignment?: boolean | undefined;
3294
+ keepAssignmentIfAccepted?: boolean | undefined;
3295
+ keepAssignmentIfRejected?: boolean | undefined;
3296
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3297
+ transactionId: string;
3298
+ eventId: string;
3299
+ type?: "DECLARE" | undefined;
3300
+ createdAtLocation?: string | null | undefined;
3301
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3302
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3303
+ originalActionId?: string | undefined;
3304
+ keepAssignment?: boolean | undefined;
3305
+ keepAssignmentIfAccepted?: boolean | undefined;
3306
+ keepAssignmentIfRejected?: boolean | undefined;
3307
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3308
+ content: {
3309
+ reason: string;
3310
+ };
3311
+ transactionId: string;
3312
+ eventId: string;
3313
+ type?: "REJECT" | undefined;
3314
+ createdAtLocation?: string | null | undefined;
3315
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3316
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3317
+ originalActionId?: string | undefined;
3318
+ keepAssignment?: boolean | undefined;
3319
+ keepAssignmentIfAccepted?: boolean | undefined;
3320
+ keepAssignmentIfRejected?: boolean | undefined;
3321
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3322
+ content: {
3323
+ duplicates: {
3324
+ id: string;
3325
+ trackingId: string;
3326
+ }[];
3327
+ };
3328
+ transactionId: string;
3329
+ eventId: string;
3330
+ type?: "DUPLICATE_DETECTED" | undefined;
3331
+ createdAtLocation?: string | null | undefined;
3332
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3333
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3334
+ originalActionId?: string | undefined;
3335
+ keepAssignment?: boolean | undefined;
3336
+ keepAssignmentIfAccepted?: boolean | undefined;
3337
+ keepAssignmentIfRejected?: boolean | undefined;
3338
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3339
+ transactionId: string;
3340
+ eventId: string;
3341
+ type?: "MARK_AS_DUPLICATE" | undefined;
3342
+ content?: {
3343
+ duplicateOf: string;
3344
+ } | undefined;
3345
+ createdAtLocation?: string | null | undefined;
3346
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3347
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3348
+ originalActionId?: string | undefined;
3349
+ keepAssignment?: boolean | undefined;
3350
+ keepAssignmentIfAccepted?: boolean | undefined;
3351
+ keepAssignmentIfRejected?: boolean | undefined;
3352
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3353
+ transactionId: string;
3354
+ eventId: string;
3355
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
3356
+ createdAtLocation?: string | null | undefined;
3357
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3358
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3359
+ originalActionId?: string | undefined;
3360
+ keepAssignment?: boolean | undefined;
3361
+ keepAssignmentIfAccepted?: boolean | undefined;
3362
+ keepAssignmentIfRejected?: boolean | undefined;
3363
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3364
+ content: {
3365
+ reason: string;
3366
+ };
3367
+ transactionId: string;
3368
+ eventId: string;
3369
+ type?: "ARCHIVE" | undefined;
3370
+ createdAtLocation?: string | null | undefined;
3371
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3372
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3373
+ originalActionId?: string | undefined;
3374
+ keepAssignment?: boolean | undefined;
3375
+ keepAssignmentIfAccepted?: boolean | undefined;
3376
+ keepAssignmentIfRejected?: boolean | undefined;
3377
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3378
+ type: "ASSIGN";
3379
+ transactionId: string;
3380
+ assignedTo: string;
3381
+ eventId: string;
3382
+ createdAtLocation?: string | null | undefined;
3383
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3384
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3385
+ originalActionId?: string | undefined;
3386
+ keepAssignment?: boolean | undefined;
3387
+ keepAssignmentIfAccepted?: boolean | undefined;
3388
+ keepAssignmentIfRejected?: boolean | undefined;
3389
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3390
+ transactionId: string;
3391
+ eventId: string;
3392
+ type?: "UNASSIGN" | undefined;
3393
+ createdAtLocation?: string | null | undefined;
3394
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3395
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3396
+ originalActionId?: string | undefined;
3397
+ assignedTo?: null | undefined;
3398
+ keepAssignment?: boolean | undefined;
3399
+ keepAssignmentIfAccepted?: boolean | undefined;
3400
+ keepAssignmentIfRejected?: boolean | undefined;
3401
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3402
+ transactionId: string;
3403
+ eventId: string;
3404
+ type?: "PRINT_CERTIFICATE" | undefined;
3405
+ content?: {
3406
+ templateId?: string | undefined;
3407
+ } | undefined;
3408
+ createdAtLocation?: string | null | undefined;
3409
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3410
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3411
+ originalActionId?: string | undefined;
3412
+ keepAssignment?: boolean | undefined;
3413
+ keepAssignmentIfAccepted?: boolean | undefined;
3414
+ keepAssignmentIfRejected?: boolean | undefined;
3415
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3416
+ transactionId: string;
1826
3417
  eventId: string;
1827
- actionId: string;
3418
+ type?: "REQUEST_CORRECTION" | undefined;
3419
+ createdAtLocation?: string | null | undefined;
3420
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3421
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3422
+ originalActionId?: string | undefined;
3423
+ keepAssignment?: boolean | undefined;
3424
+ keepAssignmentIfAccepted?: boolean | undefined;
3425
+ keepAssignmentIfRejected?: boolean | undefined;
3426
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3427
+ content: {
3428
+ reason: string;
3429
+ };
1828
3430
  transactionId: string;
1829
- };
1830
- output: import("../commons").EventDocument;
1831
- meta: import("trpc-to-openapi").OpenApiMeta;
1832
- }>;
1833
- }>>;
1834
- printCertificate: import("@trpc/server").TRPCBuiltRouter<{
1835
- ctx: {
1836
- user: {
1837
- type: "user";
1838
- id: string;
1839
- role: string;
1840
- primaryOfficeId: string & import("zod").BRAND<"UUID">;
1841
- signature?: string | undefined;
1842
- } | {
1843
- type: "system";
1844
- id: string;
1845
- role: "HEALTH" | "NATIONAL_ID" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
1846
- primaryOfficeId?: undefined;
1847
- signature?: undefined;
1848
- };
1849
- token: `Bearer ${string}`;
1850
- };
1851
- meta: import("trpc-to-openapi").OpenApiMeta;
1852
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1853
- transformer: true;
1854
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1855
- request: import("@trpc/server").TRPCMutationProcedure<{
1856
- input: import("../commons").ActionInput;
1857
- output: import("../commons").EventDocument;
1858
- meta: import("trpc-to-openapi").OpenApiMeta;
1859
- }>;
1860
- accept: import("@trpc/server").TRPCMutationProcedure<{
1861
- input: import("../commons").ActionInput & {
3431
+ requestId: string;
3432
+ eventId: string;
3433
+ type?: "REJECT_CORRECTION" | undefined;
3434
+ createdAtLocation?: string | null | undefined;
3435
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3436
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3437
+ originalActionId?: string | undefined;
3438
+ keepAssignment?: boolean | undefined;
3439
+ keepAssignmentIfAccepted?: boolean | undefined;
3440
+ keepAssignmentIfRejected?: boolean | undefined;
3441
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3442
+ transactionId: string;
3443
+ requestId: string;
3444
+ eventId: string;
3445
+ type?: "APPROVE_CORRECTION" | undefined;
3446
+ createdAtLocation?: string | null | undefined;
3447
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3448
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3449
+ originalActionId?: string | undefined;
3450
+ keepAssignment?: boolean | undefined;
3451
+ keepAssignmentIfAccepted?: boolean | undefined;
3452
+ keepAssignmentIfRejected?: boolean | undefined;
3453
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3454
+ transactionId: string;
3455
+ eventId: string;
3456
+ type?: "READ" | undefined;
3457
+ createdAtLocation?: string | null | undefined;
3458
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3459
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
3460
+ originalActionId?: string | undefined;
3461
+ keepAssignment?: boolean | undefined;
3462
+ keepAssignmentIfAccepted?: boolean | undefined;
3463
+ keepAssignmentIfRejected?: boolean | undefined;
3464
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
1862
3465
  actionId: string;
1863
3466
  };
1864
3467
  output: import("../commons").EventDocument;
1865
3468
  meta: import("trpc-to-openapi").OpenApiMeta;
1866
3469
  }>;
1867
3470
  reject: import("@trpc/server").TRPCMutationProcedure<{
1868
- input: {
3471
+ input: import("zod").input<import("zod").ZodObject<import("zod").objectUtil.extendShape<Pick<{
3472
+ eventId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
3473
+ transactionId: import("zod").ZodString;
3474
+ declaration: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
3475
+ annotation: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
3476
+ originalActionId: import("zod").ZodOptional<import("zod").ZodBranded<import("zod").ZodString, "UUID">>;
3477
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3478
+ keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
3479
+ keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
3480
+ createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
3481
+ }, "transactionId" | "eventId" | "keepAssignment">, {
3482
+ actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
3483
+ }>, "strip", import("zod").ZodTypeAny, {
3484
+ transactionId: string;
3485
+ eventId: string & import("zod").BRAND<"UUID">;
3486
+ actionId: string & import("zod").BRAND<"UUID">;
3487
+ keepAssignment?: boolean | undefined;
3488
+ }, {
3489
+ transactionId: string;
1869
3490
  eventId: string;
1870
3491
  actionId: string;
1871
- transactionId: string;
1872
- };
3492
+ keepAssignment?: boolean | undefined;
3493
+ }>>;
1873
3494
  output: import("../commons").EventDocument;
1874
3495
  meta: import("trpc-to-openapi").OpenApiMeta;
1875
3496
  }>;
@@ -1906,6 +3527,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1906
3527
  annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
1907
3528
  originalActionId?: string | undefined;
1908
3529
  keepAssignment?: boolean | undefined;
3530
+ keepAssignmentIfAccepted?: boolean | undefined;
3531
+ keepAssignmentIfRejected?: boolean | undefined;
1909
3532
  };
1910
3533
  output: {
1911
3534
  type: string;
@@ -2203,6 +3826,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2203
3826
  originalActionId?: string | undefined;
2204
3827
  assignedTo?: null | undefined;
2205
3828
  keepAssignment?: boolean | undefined;
3829
+ keepAssignmentIfAccepted?: boolean | undefined;
3830
+ keepAssignmentIfRejected?: boolean | undefined;
2206
3831
  };
2207
3832
  output: {
2208
3833
  type: string;
@@ -2538,18 +4163,249 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2538
4163
  meta: import("trpc-to-openapi").OpenApiMeta;
2539
4164
  }>;
2540
4165
  accept: import("@trpc/server").TRPCMutationProcedure<{
2541
- input: import("../commons").ActionInput & {
4166
+ input: (Omit<{
4167
+ transactionId: string;
4168
+ eventId: string;
4169
+ type?: "CREATE" | undefined;
4170
+ createdAtLocation?: string | null | undefined;
4171
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4172
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4173
+ originalActionId?: string | undefined;
4174
+ keepAssignment?: boolean | undefined;
4175
+ keepAssignmentIfAccepted?: boolean | undefined;
4176
+ keepAssignmentIfRejected?: boolean | undefined;
4177
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4178
+ transactionId: string;
4179
+ eventId: string;
4180
+ type?: "VALIDATE" | undefined;
4181
+ createdAtLocation?: string | null | undefined;
4182
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4183
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4184
+ originalActionId?: string | undefined;
4185
+ keepAssignment?: boolean | undefined;
4186
+ keepAssignmentIfAccepted?: boolean | undefined;
4187
+ keepAssignmentIfRejected?: boolean | undefined;
4188
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4189
+ transactionId: string;
4190
+ eventId: string;
4191
+ type?: "REGISTER" | undefined;
4192
+ createdAtLocation?: string | null | undefined;
4193
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4194
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4195
+ originalActionId?: string | undefined;
4196
+ registrationNumber?: string | undefined;
4197
+ keepAssignment?: boolean | undefined;
4198
+ keepAssignmentIfAccepted?: boolean | undefined;
4199
+ keepAssignmentIfRejected?: boolean | undefined;
4200
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4201
+ transactionId: string;
4202
+ eventId: string;
4203
+ type?: "NOTIFY" | undefined;
4204
+ createdAtLocation?: string | null | undefined;
4205
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4206
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4207
+ originalActionId?: string | undefined;
4208
+ keepAssignment?: boolean | undefined;
4209
+ keepAssignmentIfAccepted?: boolean | undefined;
4210
+ keepAssignmentIfRejected?: boolean | undefined;
4211
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4212
+ transactionId: string;
4213
+ eventId: string;
4214
+ type?: "DECLARE" | undefined;
4215
+ createdAtLocation?: string | null | undefined;
4216
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4217
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4218
+ originalActionId?: string | undefined;
4219
+ keepAssignment?: boolean | undefined;
4220
+ keepAssignmentIfAccepted?: boolean | undefined;
4221
+ keepAssignmentIfRejected?: boolean | undefined;
4222
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4223
+ content: {
4224
+ reason: string;
4225
+ };
4226
+ transactionId: string;
4227
+ eventId: string;
4228
+ type?: "REJECT" | undefined;
4229
+ createdAtLocation?: string | null | undefined;
4230
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4231
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4232
+ originalActionId?: string | undefined;
4233
+ keepAssignment?: boolean | undefined;
4234
+ keepAssignmentIfAccepted?: boolean | undefined;
4235
+ keepAssignmentIfRejected?: boolean | undefined;
4236
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4237
+ content: {
4238
+ duplicates: {
4239
+ id: string;
4240
+ trackingId: string;
4241
+ }[];
4242
+ };
4243
+ transactionId: string;
4244
+ eventId: string;
4245
+ type?: "DUPLICATE_DETECTED" | undefined;
4246
+ createdAtLocation?: string | null | undefined;
4247
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4248
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4249
+ originalActionId?: string | undefined;
4250
+ keepAssignment?: boolean | undefined;
4251
+ keepAssignmentIfAccepted?: boolean | undefined;
4252
+ keepAssignmentIfRejected?: boolean | undefined;
4253
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4254
+ transactionId: string;
4255
+ eventId: string;
4256
+ type?: "MARK_AS_DUPLICATE" | undefined;
4257
+ content?: {
4258
+ duplicateOf: string;
4259
+ } | undefined;
4260
+ createdAtLocation?: string | null | undefined;
4261
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4262
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4263
+ originalActionId?: string | undefined;
4264
+ keepAssignment?: boolean | undefined;
4265
+ keepAssignmentIfAccepted?: boolean | undefined;
4266
+ keepAssignmentIfRejected?: boolean | undefined;
4267
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4268
+ transactionId: string;
4269
+ eventId: string;
4270
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
4271
+ createdAtLocation?: string | null | undefined;
4272
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4273
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4274
+ originalActionId?: string | undefined;
4275
+ keepAssignment?: boolean | undefined;
4276
+ keepAssignmentIfAccepted?: boolean | undefined;
4277
+ keepAssignmentIfRejected?: boolean | undefined;
4278
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4279
+ content: {
4280
+ reason: string;
4281
+ };
4282
+ transactionId: string;
4283
+ eventId: string;
4284
+ type?: "ARCHIVE" | undefined;
4285
+ createdAtLocation?: string | null | undefined;
4286
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4287
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4288
+ originalActionId?: string | undefined;
4289
+ keepAssignment?: boolean | undefined;
4290
+ keepAssignmentIfAccepted?: boolean | undefined;
4291
+ keepAssignmentIfRejected?: boolean | undefined;
4292
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4293
+ type: "ASSIGN";
4294
+ transactionId: string;
4295
+ assignedTo: string;
4296
+ eventId: string;
4297
+ createdAtLocation?: string | null | undefined;
4298
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4299
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4300
+ originalActionId?: string | undefined;
4301
+ keepAssignment?: boolean | undefined;
4302
+ keepAssignmentIfAccepted?: boolean | undefined;
4303
+ keepAssignmentIfRejected?: boolean | undefined;
4304
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4305
+ transactionId: string;
4306
+ eventId: string;
4307
+ type?: "UNASSIGN" | undefined;
4308
+ createdAtLocation?: string | null | undefined;
4309
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4310
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4311
+ originalActionId?: string | undefined;
4312
+ assignedTo?: null | undefined;
4313
+ keepAssignment?: boolean | undefined;
4314
+ keepAssignmentIfAccepted?: boolean | undefined;
4315
+ keepAssignmentIfRejected?: boolean | undefined;
4316
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4317
+ transactionId: string;
4318
+ eventId: string;
4319
+ type?: "PRINT_CERTIFICATE" | undefined;
4320
+ content?: {
4321
+ templateId?: string | undefined;
4322
+ } | undefined;
4323
+ createdAtLocation?: string | null | undefined;
4324
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4325
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4326
+ originalActionId?: string | undefined;
4327
+ keepAssignment?: boolean | undefined;
4328
+ keepAssignmentIfAccepted?: boolean | undefined;
4329
+ keepAssignmentIfRejected?: boolean | undefined;
4330
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4331
+ transactionId: string;
4332
+ eventId: string;
4333
+ type?: "REQUEST_CORRECTION" | undefined;
4334
+ createdAtLocation?: string | null | undefined;
4335
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4336
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4337
+ originalActionId?: string | undefined;
4338
+ keepAssignment?: boolean | undefined;
4339
+ keepAssignmentIfAccepted?: boolean | undefined;
4340
+ keepAssignmentIfRejected?: boolean | undefined;
4341
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4342
+ content: {
4343
+ reason: string;
4344
+ };
4345
+ transactionId: string;
4346
+ requestId: string;
4347
+ eventId: string;
4348
+ type?: "REJECT_CORRECTION" | undefined;
4349
+ createdAtLocation?: string | null | undefined;
4350
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4351
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4352
+ originalActionId?: string | undefined;
4353
+ keepAssignment?: boolean | undefined;
4354
+ keepAssignmentIfAccepted?: boolean | undefined;
4355
+ keepAssignmentIfRejected?: boolean | undefined;
4356
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4357
+ transactionId: string;
4358
+ requestId: string;
4359
+ eventId: string;
4360
+ type?: "APPROVE_CORRECTION" | undefined;
4361
+ createdAtLocation?: string | null | undefined;
4362
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4363
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4364
+ originalActionId?: string | undefined;
4365
+ keepAssignment?: boolean | undefined;
4366
+ keepAssignmentIfAccepted?: boolean | undefined;
4367
+ keepAssignmentIfRejected?: boolean | undefined;
4368
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4369
+ transactionId: string;
4370
+ eventId: string;
4371
+ type?: "READ" | undefined;
4372
+ createdAtLocation?: string | null | undefined;
4373
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4374
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4375
+ originalActionId?: string | undefined;
4376
+ keepAssignment?: boolean | undefined;
4377
+ keepAssignmentIfAccepted?: boolean | undefined;
4378
+ keepAssignmentIfRejected?: boolean | undefined;
4379
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2542
4380
  actionId: string;
2543
4381
  };
2544
4382
  output: import("../commons").EventDocument;
2545
4383
  meta: import("trpc-to-openapi").OpenApiMeta;
2546
4384
  }>;
2547
4385
  reject: import("@trpc/server").TRPCMutationProcedure<{
2548
- input: {
4386
+ input: import("zod").input<import("zod").ZodObject<import("zod").objectUtil.extendShape<Pick<{
4387
+ eventId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
4388
+ transactionId: import("zod").ZodString;
4389
+ declaration: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
4390
+ annotation: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
4391
+ originalActionId: import("zod").ZodOptional<import("zod").ZodBranded<import("zod").ZodString, "UUID">>;
4392
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
4393
+ keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
4394
+ keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
4395
+ createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
4396
+ }, "transactionId" | "eventId" | "keepAssignment">, {
4397
+ actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
4398
+ }>, "strip", import("zod").ZodTypeAny, {
4399
+ transactionId: string;
4400
+ eventId: string & import("zod").BRAND<"UUID">;
4401
+ actionId: string & import("zod").BRAND<"UUID">;
4402
+ keepAssignment?: boolean | undefined;
4403
+ }, {
4404
+ transactionId: string;
2549
4405
  eventId: string;
2550
4406
  actionId: string;
2551
- transactionId: string;
2552
- };
4407
+ keepAssignment?: boolean | undefined;
4408
+ }>>;
2553
4409
  output: import("../commons").EventDocument;
2554
4410
  meta: import("trpc-to-openapi").OpenApiMeta;
2555
4411
  }>;
@@ -2581,18 +4437,249 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2581
4437
  meta: import("trpc-to-openapi").OpenApiMeta;
2582
4438
  }>;
2583
4439
  accept: import("@trpc/server").TRPCMutationProcedure<{
2584
- input: import("../commons").ActionInput & {
4440
+ input: (Omit<{
4441
+ transactionId: string;
4442
+ eventId: string;
4443
+ type?: "CREATE" | undefined;
4444
+ createdAtLocation?: string | null | undefined;
4445
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4446
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4447
+ originalActionId?: string | undefined;
4448
+ keepAssignment?: boolean | undefined;
4449
+ keepAssignmentIfAccepted?: boolean | undefined;
4450
+ keepAssignmentIfRejected?: boolean | undefined;
4451
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4452
+ transactionId: string;
4453
+ eventId: string;
4454
+ type?: "VALIDATE" | undefined;
4455
+ createdAtLocation?: string | null | undefined;
4456
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4457
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4458
+ originalActionId?: string | undefined;
4459
+ keepAssignment?: boolean | undefined;
4460
+ keepAssignmentIfAccepted?: boolean | undefined;
4461
+ keepAssignmentIfRejected?: boolean | undefined;
4462
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4463
+ transactionId: string;
4464
+ eventId: string;
4465
+ type?: "REGISTER" | undefined;
4466
+ createdAtLocation?: string | null | undefined;
4467
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4468
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4469
+ originalActionId?: string | undefined;
4470
+ registrationNumber?: string | undefined;
4471
+ keepAssignment?: boolean | undefined;
4472
+ keepAssignmentIfAccepted?: boolean | undefined;
4473
+ keepAssignmentIfRejected?: boolean | undefined;
4474
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4475
+ transactionId: string;
4476
+ eventId: string;
4477
+ type?: "NOTIFY" | undefined;
4478
+ createdAtLocation?: string | null | undefined;
4479
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4480
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4481
+ originalActionId?: string | undefined;
4482
+ keepAssignment?: boolean | undefined;
4483
+ keepAssignmentIfAccepted?: boolean | undefined;
4484
+ keepAssignmentIfRejected?: boolean | undefined;
4485
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4486
+ transactionId: string;
4487
+ eventId: string;
4488
+ type?: "DECLARE" | undefined;
4489
+ createdAtLocation?: string | null | undefined;
4490
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4491
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4492
+ originalActionId?: string | undefined;
4493
+ keepAssignment?: boolean | undefined;
4494
+ keepAssignmentIfAccepted?: boolean | undefined;
4495
+ keepAssignmentIfRejected?: boolean | undefined;
4496
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4497
+ content: {
4498
+ reason: string;
4499
+ };
4500
+ transactionId: string;
4501
+ eventId: string;
4502
+ type?: "REJECT" | undefined;
4503
+ createdAtLocation?: string | null | undefined;
4504
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4505
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4506
+ originalActionId?: string | undefined;
4507
+ keepAssignment?: boolean | undefined;
4508
+ keepAssignmentIfAccepted?: boolean | undefined;
4509
+ keepAssignmentIfRejected?: boolean | undefined;
4510
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4511
+ content: {
4512
+ duplicates: {
4513
+ id: string;
4514
+ trackingId: string;
4515
+ }[];
4516
+ };
4517
+ transactionId: string;
4518
+ eventId: string;
4519
+ type?: "DUPLICATE_DETECTED" | undefined;
4520
+ createdAtLocation?: string | null | undefined;
4521
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4522
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4523
+ originalActionId?: string | undefined;
4524
+ keepAssignment?: boolean | undefined;
4525
+ keepAssignmentIfAccepted?: boolean | undefined;
4526
+ keepAssignmentIfRejected?: boolean | undefined;
4527
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4528
+ transactionId: string;
4529
+ eventId: string;
4530
+ type?: "MARK_AS_DUPLICATE" | undefined;
4531
+ content?: {
4532
+ duplicateOf: string;
4533
+ } | undefined;
4534
+ createdAtLocation?: string | null | undefined;
4535
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4536
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4537
+ originalActionId?: string | undefined;
4538
+ keepAssignment?: boolean | undefined;
4539
+ keepAssignmentIfAccepted?: boolean | undefined;
4540
+ keepAssignmentIfRejected?: boolean | undefined;
4541
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4542
+ transactionId: string;
4543
+ eventId: string;
4544
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
4545
+ createdAtLocation?: string | null | undefined;
4546
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4547
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4548
+ originalActionId?: string | undefined;
4549
+ keepAssignment?: boolean | undefined;
4550
+ keepAssignmentIfAccepted?: boolean | undefined;
4551
+ keepAssignmentIfRejected?: boolean | undefined;
4552
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4553
+ content: {
4554
+ reason: string;
4555
+ };
4556
+ transactionId: string;
4557
+ eventId: string;
4558
+ type?: "ARCHIVE" | undefined;
4559
+ createdAtLocation?: string | null | undefined;
4560
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4561
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4562
+ originalActionId?: string | undefined;
4563
+ keepAssignment?: boolean | undefined;
4564
+ keepAssignmentIfAccepted?: boolean | undefined;
4565
+ keepAssignmentIfRejected?: boolean | undefined;
4566
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4567
+ type: "ASSIGN";
4568
+ transactionId: string;
4569
+ assignedTo: string;
4570
+ eventId: string;
4571
+ createdAtLocation?: string | null | undefined;
4572
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4573
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4574
+ originalActionId?: string | undefined;
4575
+ keepAssignment?: boolean | undefined;
4576
+ keepAssignmentIfAccepted?: boolean | undefined;
4577
+ keepAssignmentIfRejected?: boolean | undefined;
4578
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4579
+ transactionId: string;
4580
+ eventId: string;
4581
+ type?: "UNASSIGN" | undefined;
4582
+ createdAtLocation?: string | null | undefined;
4583
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4584
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4585
+ originalActionId?: string | undefined;
4586
+ assignedTo?: null | undefined;
4587
+ keepAssignment?: boolean | undefined;
4588
+ keepAssignmentIfAccepted?: boolean | undefined;
4589
+ keepAssignmentIfRejected?: boolean | undefined;
4590
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4591
+ transactionId: string;
4592
+ eventId: string;
4593
+ type?: "PRINT_CERTIFICATE" | undefined;
4594
+ content?: {
4595
+ templateId?: string | undefined;
4596
+ } | undefined;
4597
+ createdAtLocation?: string | null | undefined;
4598
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4599
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4600
+ originalActionId?: string | undefined;
4601
+ keepAssignment?: boolean | undefined;
4602
+ keepAssignmentIfAccepted?: boolean | undefined;
4603
+ keepAssignmentIfRejected?: boolean | undefined;
4604
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4605
+ transactionId: string;
4606
+ eventId: string;
4607
+ type?: "REQUEST_CORRECTION" | undefined;
4608
+ createdAtLocation?: string | null | undefined;
4609
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4610
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4611
+ originalActionId?: string | undefined;
4612
+ keepAssignment?: boolean | undefined;
4613
+ keepAssignmentIfAccepted?: boolean | undefined;
4614
+ keepAssignmentIfRejected?: boolean | undefined;
4615
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4616
+ content: {
4617
+ reason: string;
4618
+ };
4619
+ transactionId: string;
4620
+ requestId: string;
4621
+ eventId: string;
4622
+ type?: "REJECT_CORRECTION" | undefined;
4623
+ createdAtLocation?: string | null | undefined;
4624
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4625
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4626
+ originalActionId?: string | undefined;
4627
+ keepAssignment?: boolean | undefined;
4628
+ keepAssignmentIfAccepted?: boolean | undefined;
4629
+ keepAssignmentIfRejected?: boolean | undefined;
4630
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4631
+ transactionId: string;
4632
+ requestId: string;
4633
+ eventId: string;
4634
+ type?: "APPROVE_CORRECTION" | undefined;
4635
+ createdAtLocation?: string | null | undefined;
4636
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4637
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4638
+ originalActionId?: string | undefined;
4639
+ keepAssignment?: boolean | undefined;
4640
+ keepAssignmentIfAccepted?: boolean | undefined;
4641
+ keepAssignmentIfRejected?: boolean | undefined;
4642
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4643
+ transactionId: string;
4644
+ eventId: string;
4645
+ type?: "READ" | undefined;
4646
+ createdAtLocation?: string | null | undefined;
4647
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4648
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4649
+ originalActionId?: string | undefined;
4650
+ keepAssignment?: boolean | undefined;
4651
+ keepAssignmentIfAccepted?: boolean | undefined;
4652
+ keepAssignmentIfRejected?: boolean | undefined;
4653
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2585
4654
  actionId: string;
2586
4655
  };
2587
4656
  output: import("../commons").EventDocument;
2588
4657
  meta: import("trpc-to-openapi").OpenApiMeta;
2589
4658
  }>;
2590
4659
  reject: import("@trpc/server").TRPCMutationProcedure<{
2591
- input: {
4660
+ input: import("zod").input<import("zod").ZodObject<import("zod").objectUtil.extendShape<Pick<{
4661
+ eventId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
4662
+ transactionId: import("zod").ZodString;
4663
+ declaration: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
4664
+ annotation: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
4665
+ originalActionId: import("zod").ZodOptional<import("zod").ZodBranded<import("zod").ZodString, "UUID">>;
4666
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
4667
+ keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
4668
+ keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
4669
+ createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
4670
+ }, "transactionId" | "eventId" | "keepAssignment">, {
4671
+ actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
4672
+ }>, "strip", import("zod").ZodTypeAny, {
4673
+ transactionId: string;
4674
+ eventId: string & import("zod").BRAND<"UUID">;
4675
+ actionId: string & import("zod").BRAND<"UUID">;
4676
+ keepAssignment?: boolean | undefined;
4677
+ }, {
4678
+ transactionId: string;
2592
4679
  eventId: string;
2593
4680
  actionId: string;
2594
- transactionId: string;
2595
- };
4681
+ keepAssignment?: boolean | undefined;
4682
+ }>>;
2596
4683
  output: import("../commons").EventDocument;
2597
4684
  meta: import("trpc-to-openapi").OpenApiMeta;
2598
4685
  }>;
@@ -2624,18 +4711,249 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2624
4711
  meta: import("trpc-to-openapi").OpenApiMeta;
2625
4712
  }>;
2626
4713
  accept: import("@trpc/server").TRPCMutationProcedure<{
2627
- input: import("../commons").ActionInput & {
4714
+ input: (Omit<{
4715
+ transactionId: string;
4716
+ eventId: string;
4717
+ type?: "CREATE" | undefined;
4718
+ createdAtLocation?: string | null | undefined;
4719
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4720
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4721
+ originalActionId?: string | undefined;
4722
+ keepAssignment?: boolean | undefined;
4723
+ keepAssignmentIfAccepted?: boolean | undefined;
4724
+ keepAssignmentIfRejected?: boolean | undefined;
4725
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4726
+ transactionId: string;
4727
+ eventId: string;
4728
+ type?: "VALIDATE" | undefined;
4729
+ createdAtLocation?: string | null | undefined;
4730
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4731
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4732
+ originalActionId?: string | undefined;
4733
+ keepAssignment?: boolean | undefined;
4734
+ keepAssignmentIfAccepted?: boolean | undefined;
4735
+ keepAssignmentIfRejected?: boolean | undefined;
4736
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4737
+ transactionId: string;
4738
+ eventId: string;
4739
+ type?: "REGISTER" | undefined;
4740
+ createdAtLocation?: string | null | undefined;
4741
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4742
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4743
+ originalActionId?: string | undefined;
4744
+ registrationNumber?: string | undefined;
4745
+ keepAssignment?: boolean | undefined;
4746
+ keepAssignmentIfAccepted?: boolean | undefined;
4747
+ keepAssignmentIfRejected?: boolean | undefined;
4748
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4749
+ transactionId: string;
4750
+ eventId: string;
4751
+ type?: "NOTIFY" | undefined;
4752
+ createdAtLocation?: string | null | undefined;
4753
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4754
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4755
+ originalActionId?: string | undefined;
4756
+ keepAssignment?: boolean | undefined;
4757
+ keepAssignmentIfAccepted?: boolean | undefined;
4758
+ keepAssignmentIfRejected?: boolean | undefined;
4759
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4760
+ transactionId: string;
4761
+ eventId: string;
4762
+ type?: "DECLARE" | undefined;
4763
+ createdAtLocation?: string | null | undefined;
4764
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4765
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4766
+ originalActionId?: string | undefined;
4767
+ keepAssignment?: boolean | undefined;
4768
+ keepAssignmentIfAccepted?: boolean | undefined;
4769
+ keepAssignmentIfRejected?: boolean | undefined;
4770
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4771
+ content: {
4772
+ reason: string;
4773
+ };
4774
+ transactionId: string;
4775
+ eventId: string;
4776
+ type?: "REJECT" | undefined;
4777
+ createdAtLocation?: string | null | undefined;
4778
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4779
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4780
+ originalActionId?: string | undefined;
4781
+ keepAssignment?: boolean | undefined;
4782
+ keepAssignmentIfAccepted?: boolean | undefined;
4783
+ keepAssignmentIfRejected?: boolean | undefined;
4784
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4785
+ content: {
4786
+ duplicates: {
4787
+ id: string;
4788
+ trackingId: string;
4789
+ }[];
4790
+ };
4791
+ transactionId: string;
4792
+ eventId: string;
4793
+ type?: "DUPLICATE_DETECTED" | undefined;
4794
+ createdAtLocation?: string | null | undefined;
4795
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4796
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4797
+ originalActionId?: string | undefined;
4798
+ keepAssignment?: boolean | undefined;
4799
+ keepAssignmentIfAccepted?: boolean | undefined;
4800
+ keepAssignmentIfRejected?: boolean | undefined;
4801
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4802
+ transactionId: string;
4803
+ eventId: string;
4804
+ type?: "MARK_AS_DUPLICATE" | undefined;
4805
+ content?: {
4806
+ duplicateOf: string;
4807
+ } | undefined;
4808
+ createdAtLocation?: string | null | undefined;
4809
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4810
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4811
+ originalActionId?: string | undefined;
4812
+ keepAssignment?: boolean | undefined;
4813
+ keepAssignmentIfAccepted?: boolean | undefined;
4814
+ keepAssignmentIfRejected?: boolean | undefined;
4815
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4816
+ transactionId: string;
4817
+ eventId: string;
4818
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
4819
+ createdAtLocation?: string | null | undefined;
4820
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4821
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4822
+ originalActionId?: string | undefined;
4823
+ keepAssignment?: boolean | undefined;
4824
+ keepAssignmentIfAccepted?: boolean | undefined;
4825
+ keepAssignmentIfRejected?: boolean | undefined;
4826
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4827
+ content: {
4828
+ reason: string;
4829
+ };
4830
+ transactionId: string;
4831
+ eventId: string;
4832
+ type?: "ARCHIVE" | undefined;
4833
+ createdAtLocation?: string | null | undefined;
4834
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4835
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4836
+ originalActionId?: string | undefined;
4837
+ keepAssignment?: boolean | undefined;
4838
+ keepAssignmentIfAccepted?: boolean | undefined;
4839
+ keepAssignmentIfRejected?: boolean | undefined;
4840
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4841
+ type: "ASSIGN";
4842
+ transactionId: string;
4843
+ assignedTo: string;
4844
+ eventId: string;
4845
+ createdAtLocation?: string | null | undefined;
4846
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4847
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4848
+ originalActionId?: string | undefined;
4849
+ keepAssignment?: boolean | undefined;
4850
+ keepAssignmentIfAccepted?: boolean | undefined;
4851
+ keepAssignmentIfRejected?: boolean | undefined;
4852
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4853
+ transactionId: string;
4854
+ eventId: string;
4855
+ type?: "UNASSIGN" | undefined;
4856
+ createdAtLocation?: string | null | undefined;
4857
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4858
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4859
+ originalActionId?: string | undefined;
4860
+ assignedTo?: null | undefined;
4861
+ keepAssignment?: boolean | undefined;
4862
+ keepAssignmentIfAccepted?: boolean | undefined;
4863
+ keepAssignmentIfRejected?: boolean | undefined;
4864
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4865
+ transactionId: string;
4866
+ eventId: string;
4867
+ type?: "PRINT_CERTIFICATE" | undefined;
4868
+ content?: {
4869
+ templateId?: string | undefined;
4870
+ } | undefined;
4871
+ createdAtLocation?: string | null | undefined;
4872
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4873
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4874
+ originalActionId?: string | undefined;
4875
+ keepAssignment?: boolean | undefined;
4876
+ keepAssignmentIfAccepted?: boolean | undefined;
4877
+ keepAssignmentIfRejected?: boolean | undefined;
4878
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4879
+ transactionId: string;
4880
+ eventId: string;
4881
+ type?: "REQUEST_CORRECTION" | undefined;
4882
+ createdAtLocation?: string | null | undefined;
4883
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4884
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4885
+ originalActionId?: string | undefined;
4886
+ keepAssignment?: boolean | undefined;
4887
+ keepAssignmentIfAccepted?: boolean | undefined;
4888
+ keepAssignmentIfRejected?: boolean | undefined;
4889
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4890
+ content: {
4891
+ reason: string;
4892
+ };
4893
+ transactionId: string;
4894
+ requestId: string;
4895
+ eventId: string;
4896
+ type?: "REJECT_CORRECTION" | undefined;
4897
+ createdAtLocation?: string | null | undefined;
4898
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4899
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4900
+ originalActionId?: string | undefined;
4901
+ keepAssignment?: boolean | undefined;
4902
+ keepAssignmentIfAccepted?: boolean | undefined;
4903
+ keepAssignmentIfRejected?: boolean | undefined;
4904
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4905
+ transactionId: string;
4906
+ requestId: string;
4907
+ eventId: string;
4908
+ type?: "APPROVE_CORRECTION" | undefined;
4909
+ createdAtLocation?: string | null | undefined;
4910
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4911
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4912
+ originalActionId?: string | undefined;
4913
+ keepAssignment?: boolean | undefined;
4914
+ keepAssignmentIfAccepted?: boolean | undefined;
4915
+ keepAssignmentIfRejected?: boolean | undefined;
4916
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4917
+ transactionId: string;
4918
+ eventId: string;
4919
+ type?: "READ" | undefined;
4920
+ createdAtLocation?: string | null | undefined;
4921
+ declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4922
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
4923
+ originalActionId?: string | undefined;
4924
+ keepAssignment?: boolean | undefined;
4925
+ keepAssignmentIfAccepted?: boolean | undefined;
4926
+ keepAssignmentIfRejected?: boolean | undefined;
4927
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2628
4928
  actionId: string;
2629
4929
  };
2630
4930
  output: import("../commons").EventDocument;
2631
4931
  meta: import("trpc-to-openapi").OpenApiMeta;
2632
4932
  }>;
2633
4933
  reject: import("@trpc/server").TRPCMutationProcedure<{
2634
- input: {
4934
+ input: import("zod").input<import("zod").ZodObject<import("zod").objectUtil.extendShape<Pick<{
4935
+ eventId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
4936
+ transactionId: import("zod").ZodString;
4937
+ declaration: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
4938
+ annotation: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("../commons").FieldUpdateValue, import("zod").ZodTypeDef, import("../commons").FieldUpdateValue>>>;
4939
+ originalActionId: import("zod").ZodOptional<import("zod").ZodBranded<import("zod").ZodString, "UUID">>;
4940
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
4941
+ keepAssignmentIfAccepted: import("zod").ZodOptional<import("zod").ZodBoolean>;
4942
+ keepAssignmentIfRejected: import("zod").ZodOptional<import("zod").ZodBoolean>;
4943
+ createdAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
4944
+ }, "transactionId" | "eventId" | "keepAssignment">, {
4945
+ actionId: import("zod").ZodBranded<import("zod").ZodString, "UUID">;
4946
+ }>, "strip", import("zod").ZodTypeAny, {
4947
+ transactionId: string;
4948
+ eventId: string & import("zod").BRAND<"UUID">;
4949
+ actionId: string & import("zod").BRAND<"UUID">;
4950
+ keepAssignment?: boolean | undefined;
4951
+ }, {
4952
+ transactionId: string;
2635
4953
  eventId: string;
2636
4954
  actionId: string;
2637
- transactionId: string;
2638
- };
4955
+ keepAssignment?: boolean | undefined;
4956
+ }>>;
2639
4957
  output: import("../commons").EventDocument;
2640
4958
  meta: import("trpc-to-openapi").OpenApiMeta;
2641
4959
  }>;
@@ -2675,6 +4993,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2675
4993
  annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2676
4994
  originalActionId?: string | undefined;
2677
4995
  keepAssignment?: boolean | undefined;
4996
+ keepAssignmentIfAccepted?: boolean | undefined;
4997
+ keepAssignmentIfRejected?: boolean | undefined;
2678
4998
  };
2679
4999
  output: {
2680
5000
  type: string;
@@ -2971,6 +5291,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2971
5291
  annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
2972
5292
  originalActionId?: string | undefined;
2973
5293
  keepAssignment?: boolean | undefined;
5294
+ keepAssignmentIfAccepted?: boolean | undefined;
5295
+ keepAssignmentIfRejected?: boolean | undefined;
2974
5296
  };
2975
5297
  output: {
2976
5298
  type: string;