@opencrvs/toolkit 1.9.13-rc.2e6f2fb → 1.9.13-rc.309c8c5

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