@opencrvs/toolkit 2.0.0-rc.bfc4add → 2.0.0-rc.c0c2dcd

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.
@@ -313,6 +313,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
313
313
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
314
314
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
315
315
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
316
+ content?: {
317
+ immediateCorrection?: boolean | undefined;
318
+ } | undefined;
316
319
  } | {
317
320
  id: string & import("zod").$brand<"UUID">;
318
321
  transactionId: string;
@@ -621,6 +624,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
621
624
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
622
625
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
623
626
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
627
+ content?: {
628
+ immediateCorrection?: boolean | undefined;
629
+ } | undefined;
624
630
  } | {
625
631
  id: string & import("zod").$brand<"UUID">;
626
632
  transactionId: string;
@@ -929,6 +935,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
929
935
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
930
936
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
931
937
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
938
+ content?: {
939
+ immediateCorrection?: boolean | undefined;
940
+ } | undefined;
932
941
  } | {
933
942
  id: string & import("zod").$brand<"UUID">;
934
943
  transactionId: string;
@@ -1388,6 +1397,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1388
1397
  waitFor?: boolean | undefined;
1389
1398
  createdAtLocation?: string | null | undefined;
1390
1399
  type?: "APPROVE_CORRECTION" | undefined;
1400
+ content?: {
1401
+ immediateCorrection?: boolean | undefined;
1402
+ } | undefined;
1391
1403
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1392
1404
  eventId: string;
1393
1405
  transactionId: string;
@@ -1445,6 +1457,348 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1445
1457
  meta: import("trpc-to-openapi").OpenApiMeta;
1446
1458
  }>;
1447
1459
  }>>;
1460
+ createAndNotify: import("@trpc/server").TRPCBuiltRouter<{
1461
+ ctx: Partial<{
1462
+ token: `Bearer ${string}`;
1463
+ user: {
1464
+ id: string & import("zod").$brand<"UUID">;
1465
+ type: "system";
1466
+ signature?: undefined;
1467
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1468
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1469
+ } | {
1470
+ id: string & import("zod").$brand<"UUID">;
1471
+ type: "user";
1472
+ role: string;
1473
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
1474
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1475
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1476
+ };
1477
+ }>;
1478
+ meta: import("trpc-to-openapi").OpenApiMeta;
1479
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1480
+ transformer: true;
1481
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1482
+ request: import("@trpc/server").TRPCMutationProcedure<{
1483
+ input: {
1484
+ transactionId: string;
1485
+ eventType: string;
1486
+ createdAtLocation: string;
1487
+ declaration?: Record<string, unknown> | undefined;
1488
+ annotation?: Record<string, unknown> | undefined;
1489
+ originalActionId?: string | undefined;
1490
+ keepAssignment?: boolean | undefined;
1491
+ keepAssignmentIfAccepted?: boolean | undefined;
1492
+ keepAssignmentIfRejected?: boolean | undefined;
1493
+ waitFor?: boolean | undefined;
1494
+ };
1495
+ output: {
1496
+ id: string & import("zod").$brand<"UUID">;
1497
+ type: string;
1498
+ createdAt: string;
1499
+ updatedAt: string;
1500
+ actions: ({
1501
+ id: string & import("zod").$brand<"UUID">;
1502
+ transactionId: string;
1503
+ createdByUserType: "system" | "user";
1504
+ createdAt: string;
1505
+ createdBy: string;
1506
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1507
+ status: "Requested" | "Accepted" | "Rejected";
1508
+ type: "CREATE";
1509
+ createdByRole?: string | undefined;
1510
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1511
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1512
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1513
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1514
+ } | {
1515
+ id: string & import("zod").$brand<"UUID">;
1516
+ transactionId: string;
1517
+ createdByUserType: "system" | "user";
1518
+ createdAt: string;
1519
+ createdBy: string;
1520
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1521
+ status: "Requested" | "Accepted" | "Rejected";
1522
+ type: "REJECT";
1523
+ content: {
1524
+ reason: string;
1525
+ };
1526
+ createdByRole?: string | undefined;
1527
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1528
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1529
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1530
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1531
+ } | {
1532
+ id: string & import("zod").$brand<"UUID">;
1533
+ transactionId: string;
1534
+ createdByUserType: "system" | "user";
1535
+ createdAt: string;
1536
+ createdBy: string;
1537
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1538
+ status: "Requested" | "Accepted" | "Rejected";
1539
+ type: "DUPLICATE_DETECTED";
1540
+ content: {
1541
+ duplicates: {
1542
+ id: string & import("zod").$brand<"UUID">;
1543
+ trackingId: string;
1544
+ }[];
1545
+ };
1546
+ createdByRole?: string | undefined;
1547
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1548
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1549
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1550
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1551
+ } | {
1552
+ id: string & import("zod").$brand<"UUID">;
1553
+ transactionId: string;
1554
+ createdByUserType: "system" | "user";
1555
+ createdAt: string;
1556
+ createdBy: string;
1557
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1558
+ status: "Requested" | "Accepted" | "Rejected";
1559
+ type: "MARK_AS_NOT_DUPLICATE";
1560
+ createdByRole?: string | undefined;
1561
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1562
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1563
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1564
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1565
+ } | {
1566
+ id: string & import("zod").$brand<"UUID">;
1567
+ transactionId: string;
1568
+ createdByUserType: "system" | "user";
1569
+ createdAt: string;
1570
+ createdBy: string;
1571
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1572
+ status: "Requested" | "Accepted" | "Rejected";
1573
+ type: "MARK_AS_DUPLICATE";
1574
+ createdByRole?: string | undefined;
1575
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1576
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1577
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1578
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1579
+ content?: {
1580
+ duplicateOf: string & import("zod").$brand<"UUID">;
1581
+ } | undefined;
1582
+ } | {
1583
+ id: string & import("zod").$brand<"UUID">;
1584
+ transactionId: string;
1585
+ createdByUserType: "system" | "user";
1586
+ createdAt: string;
1587
+ createdBy: string;
1588
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1589
+ status: "Requested" | "Accepted" | "Rejected";
1590
+ type: "ARCHIVE";
1591
+ content: {
1592
+ reason: string;
1593
+ };
1594
+ createdByRole?: string | undefined;
1595
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1596
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1597
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1598
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1599
+ } | {
1600
+ id: string & import("zod").$brand<"UUID">;
1601
+ transactionId: string;
1602
+ createdByUserType: "system" | "user";
1603
+ createdAt: string;
1604
+ createdBy: string;
1605
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1606
+ status: "Requested" | "Accepted" | "Rejected";
1607
+ type: "NOTIFY";
1608
+ createdByRole?: string | undefined;
1609
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1610
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1611
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1612
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1613
+ } | {
1614
+ id: string & import("zod").$brand<"UUID">;
1615
+ transactionId: string;
1616
+ createdByUserType: "system" | "user";
1617
+ createdAt: string;
1618
+ createdBy: string;
1619
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1620
+ status: "Requested" | "Accepted" | "Rejected";
1621
+ type: "REGISTER";
1622
+ createdByRole?: string | undefined;
1623
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1624
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1625
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1626
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1627
+ registrationNumber?: string | undefined;
1628
+ } | {
1629
+ id: string & import("zod").$brand<"UUID">;
1630
+ transactionId: string;
1631
+ createdByUserType: "system" | "user";
1632
+ createdAt: string;
1633
+ createdBy: string;
1634
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1635
+ status: "Requested" | "Accepted" | "Rejected";
1636
+ type: "DECLARE";
1637
+ createdByRole?: string | undefined;
1638
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1639
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1640
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1641
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1642
+ } | {
1643
+ id: string & import("zod").$brand<"UUID">;
1644
+ transactionId: string;
1645
+ createdByUserType: "system" | "user";
1646
+ createdAt: string;
1647
+ createdBy: string;
1648
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1649
+ status: "Requested" | "Accepted" | "Rejected";
1650
+ type: "ASSIGN";
1651
+ assignedTo: string;
1652
+ createdByRole?: string | undefined;
1653
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1654
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1655
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1656
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1657
+ } | {
1658
+ id: string & import("zod").$brand<"UUID">;
1659
+ transactionId: string;
1660
+ createdByUserType: "system" | "user";
1661
+ createdAt: string;
1662
+ createdBy: string;
1663
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1664
+ status: "Requested" | "Accepted" | "Rejected";
1665
+ type: "REQUEST_CORRECTION";
1666
+ createdByRole?: string | undefined;
1667
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1668
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1669
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1670
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1671
+ } | {
1672
+ id: string & import("zod").$brand<"UUID">;
1673
+ transactionId: string;
1674
+ createdByUserType: "system" | "user";
1675
+ createdAt: string;
1676
+ createdBy: string;
1677
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1678
+ status: "Requested" | "Accepted" | "Rejected";
1679
+ type: "APPROVE_CORRECTION";
1680
+ requestId: string;
1681
+ createdByRole?: string | undefined;
1682
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1683
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1684
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1685
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1686
+ content?: {
1687
+ immediateCorrection?: boolean | undefined;
1688
+ } | undefined;
1689
+ } | {
1690
+ id: string & import("zod").$brand<"UUID">;
1691
+ transactionId: string;
1692
+ createdByUserType: "system" | "user";
1693
+ createdAt: string;
1694
+ createdBy: string;
1695
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1696
+ status: "Requested" | "Accepted" | "Rejected";
1697
+ type: "REJECT_CORRECTION";
1698
+ requestId: string;
1699
+ content: {
1700
+ reason: string;
1701
+ };
1702
+ createdByRole?: string | undefined;
1703
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1704
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1705
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1706
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1707
+ } | {
1708
+ id: string & import("zod").$brand<"UUID">;
1709
+ transactionId: string;
1710
+ createdByUserType: "system" | "user";
1711
+ createdAt: string;
1712
+ createdBy: string;
1713
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1714
+ status: "Requested" | "Accepted" | "Rejected";
1715
+ type: "UNASSIGN";
1716
+ createdByRole?: string | undefined;
1717
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1718
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1719
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1720
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1721
+ } | {
1722
+ id: string & import("zod").$brand<"UUID">;
1723
+ transactionId: string;
1724
+ createdByUserType: "system" | "user";
1725
+ createdAt: string;
1726
+ createdBy: string;
1727
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1728
+ status: "Requested" | "Accepted" | "Rejected";
1729
+ type: "PRINT_CERTIFICATE";
1730
+ createdByRole?: string | undefined;
1731
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1732
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1733
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1734
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1735
+ content?: {
1736
+ templateId?: string | undefined;
1737
+ } | null | undefined;
1738
+ } | {
1739
+ id: string & import("zod").$brand<"UUID">;
1740
+ transactionId: string;
1741
+ createdByUserType: "system" | "user";
1742
+ createdAt: string;
1743
+ createdBy: string;
1744
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1745
+ status: "Requested" | "Accepted" | "Rejected";
1746
+ type: "READ";
1747
+ createdByRole?: string | undefined;
1748
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1749
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1750
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1751
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1752
+ } | {
1753
+ id: string & import("zod").$brand<"UUID">;
1754
+ transactionId: string;
1755
+ createdByUserType: "system" | "user";
1756
+ createdAt: string;
1757
+ createdBy: string;
1758
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1759
+ status: "Requested" | "Accepted" | "Rejected";
1760
+ type: "EDIT";
1761
+ content: {
1762
+ comment?: string | undefined;
1763
+ };
1764
+ createdByRole?: string | undefined;
1765
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1766
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1767
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1768
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1769
+ } | {
1770
+ id: string & import("zod").$brand<"UUID">;
1771
+ transactionId: string;
1772
+ createdByUserType: "system" | "user";
1773
+ createdAt: string;
1774
+ createdBy: string;
1775
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1776
+ status: "Requested" | "Accepted" | "Rejected";
1777
+ type: "CUSTOM";
1778
+ customActionType: string;
1779
+ createdByRole?: string | undefined;
1780
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1781
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1782
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1783
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1784
+ } | {
1785
+ id: string & import("zod").$brand<"UUID">;
1786
+ transactionId: string;
1787
+ createdByUserType: "system" | "user";
1788
+ createdAt: string;
1789
+ createdBy: string;
1790
+ type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
1791
+ status: "Rejected";
1792
+ createdByRole?: string | undefined;
1793
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1794
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1795
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1796
+ })[];
1797
+ trackingId: string;
1798
+ };
1799
+ meta: import("trpc-to-openapi").OpenApiMeta;
1800
+ }>;
1801
+ }>>;
1448
1802
  declare: import("@trpc/server").TRPCBuiltRouter<{
1449
1803
  ctx: Partial<{
1450
1804
  token: `Bearer ${string}`;
@@ -1672,6 +2026,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1672
2026
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1673
2027
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1674
2028
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2029
+ content?: {
2030
+ immediateCorrection?: boolean | undefined;
2031
+ } | undefined;
1675
2032
  } | {
1676
2033
  id: string & import("zod").$brand<"UUID">;
1677
2034
  transactionId: string;
@@ -1991,6 +2348,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1991
2348
  waitFor?: boolean | undefined;
1992
2349
  createdAtLocation?: string | null | undefined;
1993
2350
  type?: "APPROVE_CORRECTION" | undefined;
2351
+ content?: {
2352
+ immediateCorrection?: boolean | undefined;
2353
+ } | undefined;
1994
2354
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1995
2355
  eventId: string;
1996
2356
  transactionId: string;
@@ -2282,6 +2642,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2282
2642
  waitFor?: boolean | undefined;
2283
2643
  createdAtLocation?: string | null | undefined;
2284
2644
  type?: "APPROVE_CORRECTION" | undefined;
2645
+ content?: {
2646
+ immediateCorrection?: boolean | undefined;
2647
+ } | undefined;
2285
2648
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2286
2649
  eventId: string;
2287
2650
  transactionId: string;
@@ -2573,6 +2936,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2573
2936
  waitFor?: boolean | undefined;
2574
2937
  createdAtLocation?: string | null | undefined;
2575
2938
  type?: "APPROVE_CORRECTION" | undefined;
2939
+ content?: {
2940
+ immediateCorrection?: boolean | undefined;
2941
+ } | undefined;
2576
2942
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2577
2943
  eventId: string;
2578
2944
  transactionId: string;
@@ -2864,6 +3230,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2864
3230
  waitFor?: boolean | undefined;
2865
3231
  createdAtLocation?: string | null | undefined;
2866
3232
  type?: "APPROVE_CORRECTION" | undefined;
3233
+ content?: {
3234
+ immediateCorrection?: boolean | undefined;
3235
+ } | undefined;
2867
3236
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2868
3237
  eventId: string;
2869
3238
  transactionId: string;
@@ -3155,6 +3524,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3155
3524
  waitFor?: boolean | undefined;
3156
3525
  createdAtLocation?: string | null | undefined;
3157
3526
  type?: "APPROVE_CORRECTION" | undefined;
3527
+ content?: {
3528
+ immediateCorrection?: boolean | undefined;
3529
+ } | undefined;
3158
3530
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3159
3531
  eventId: string;
3160
3532
  transactionId: string;
@@ -3446,6 +3818,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3446
3818
  waitFor?: boolean | undefined;
3447
3819
  createdAtLocation?: string | null | undefined;
3448
3820
  type?: "APPROVE_CORRECTION" | undefined;
3821
+ content?: {
3822
+ immediateCorrection?: boolean | undefined;
3823
+ } | undefined;
3449
3824
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3450
3825
  eventId: string;
3451
3826
  transactionId: string;
@@ -3731,6 +4106,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3731
4106
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
3732
4107
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
3733
4108
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4109
+ content?: {
4110
+ immediateCorrection?: boolean | undefined;
4111
+ } | undefined;
3734
4112
  } | {
3735
4113
  id: string & import("zod").$brand<"UUID">;
3736
4114
  transactionId: string;
@@ -4050,6 +4428,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4050
4428
  waitFor?: boolean | undefined;
4051
4429
  createdAtLocation?: string | null | undefined;
4052
4430
  type?: "APPROVE_CORRECTION" | undefined;
4431
+ content?: {
4432
+ immediateCorrection?: boolean | undefined;
4433
+ } | undefined;
4053
4434
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4054
4435
  eventId: string;
4055
4436
  transactionId: string;
@@ -4335,6 +4716,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4335
4716
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
4336
4717
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
4337
4718
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4719
+ content?: {
4720
+ immediateCorrection?: boolean | undefined;
4721
+ } | undefined;
4338
4722
  } | {
4339
4723
  id: string & import("zod").$brand<"UUID">;
4340
4724
  transactionId: string;
@@ -4653,6 +5037,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4653
5037
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
4654
5038
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
4655
5039
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5040
+ content?: {
5041
+ immediateCorrection?: boolean | undefined;
5042
+ } | undefined;
4656
5043
  } | {
4657
5044
  id: string & import("zod").$brand<"UUID">;
4658
5045
  transactionId: string;
@@ -5022,6 +5409,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5022
5409
  waitFor?: boolean | undefined;
5023
5410
  createdAtLocation?: string | null | undefined;
5024
5411
  type?: "APPROVE_CORRECTION" | undefined;
5412
+ content?: {
5413
+ immediateCorrection?: boolean | undefined;
5414
+ } | undefined;
5025
5415
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5026
5416
  eventId: string;
5027
5417
  transactionId: string;
@@ -5313,6 +5703,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5313
5703
  waitFor?: boolean | undefined;
5314
5704
  createdAtLocation?: string | null | undefined;
5315
5705
  type?: "APPROVE_CORRECTION" | undefined;
5706
+ content?: {
5707
+ immediateCorrection?: boolean | undefined;
5708
+ } | undefined;
5316
5709
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5317
5710
  eventId: string;
5318
5711
  transactionId: string;
@@ -5604,6 +5997,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5604
5997
  waitFor?: boolean | undefined;
5605
5998
  createdAtLocation?: string | null | undefined;
5606
5999
  type?: "APPROVE_CORRECTION" | undefined;
6000
+ content?: {
6001
+ immediateCorrection?: boolean | undefined;
6002
+ } | undefined;
5607
6003
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5608
6004
  eventId: string;
5609
6005
  transactionId: string;
@@ -5892,6 +6288,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5892
6288
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
5893
6289
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
5894
6290
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6291
+ content?: {
6292
+ immediateCorrection?: boolean | undefined;
6293
+ } | undefined;
5895
6294
  } | {
5896
6295
  id: string & import("zod").$brand<"UUID">;
5897
6296
  transactionId: string;
@@ -6209,6 +6608,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6209
6608
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
6210
6609
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
6211
6610
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6611
+ content?: {
6612
+ immediateCorrection?: boolean | undefined;
6613
+ } | undefined;
6212
6614
  } | {
6213
6615
  id: string & import("zod").$brand<"UUID">;
6214
6616
  transactionId: string;
@@ -6569,6 +6971,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6569
6971
  createdAtLocation?: string | null | undefined;
6570
6972
  annotation?: Record<string, unknown> | null | undefined;
6571
6973
  originalActionId?: string | null | undefined;
6974
+ content?: {
6975
+ immediateCorrection?: boolean | undefined;
6976
+ } | undefined;
6572
6977
  } | {
6573
6978
  id: string;
6574
6979
  transactionId: string;
@@ -7740,7 +8145,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7740
8145
  $event: "id" | "createdBy" | "createdAt" | "status" | "createdByUserType" | "createdAtLocation" | "updatedAt" | "assignedTo" | "trackingId" | "type" | "flags" | "dateOfEvent" | "placeOfEvent" | "title" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "outbox";
7741
8146
  };
7742
8147
  }[];
7743
- icon: "Archived" | "Assigned" | "Briefcase" | "Certified" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "Registered" | "RequiresUpdates" | "Sent" | "Validated" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "PenNib" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Stamp" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "ChatText" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
8148
+ icon: "File" | "Archived" | "Assigned" | "Briefcase" | "Certified" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "Registered" | "RequiresUpdates" | "Sent" | "Validated" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "PenNib" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Stamp" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "ChatText" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
7744
8149
  action?: {
7745
8150
  type: "DELETE" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ";
7746
8151
  } | undefined;
@@ -517,6 +517,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<[z.ZodObject<{
517
517
  originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
518
518
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
519
519
  requestId: z.ZodString;
520
+ content: z.ZodOptional<z.ZodObject<{
521
+ immediateCorrection: z.ZodOptional<z.ZodBoolean>;
522
+ }, z.core.$strip>>;
520
523
  }, z.core.$strip>, z.ZodObject<{
521
524
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
522
525
  transactionId: z.ZodString;
@@ -955,6 +958,9 @@ export declare const Action: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.Zod
955
958
  originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
956
959
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
957
960
  requestId: z.ZodString;
961
+ content: z.ZodOptional<z.ZodObject<{
962
+ immediateCorrection: z.ZodOptional<z.ZodBoolean>;
963
+ }, z.core.$strip>>;
958
964
  }, z.core.$strip>, z.ZodObject<{
959
965
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
960
966
  transactionId: z.ZodString;
@@ -246,6 +246,9 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<{
246
246
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
247
247
  requestId: z.ZodString;
248
248
  type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
249
+ content: z.ZodOptional<z.ZodObject<{
250
+ immediateCorrection: z.ZodOptional<z.ZodBoolean>;
251
+ }, z.core.$strip>>;
249
252
  }, z.core.$strip>;
250
253
  export type ApproveCorrectionActionInput = z.infer<typeof ApproveCorrectionActionInput>;
251
254
  export declare const ReadActionInput: z.ZodObject<{
@@ -495,6 +498,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
495
498
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
496
499
  requestId: z.ZodString;
497
500
  type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
501
+ content: z.ZodOptional<z.ZodObject<{
502
+ immediateCorrection: z.ZodOptional<z.ZodBoolean>;
503
+ }, z.core.$strip>>;
498
504
  }, z.core.$strip>, z.ZodObject<{
499
505
  eventId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
500
506
  transactionId: z.ZodString;
@@ -274,6 +274,9 @@ export declare const EventDocument: z.ZodObject<{
274
274
  originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
275
275
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
276
276
  requestId: z.ZodString;
277
+ content: z.ZodOptional<z.ZodObject<{
278
+ immediateCorrection: z.ZodOptional<z.ZodBoolean>;
279
+ }, z.core.$strip>>;
277
280
  }, z.core.$strip>, z.ZodObject<{
278
281
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
279
282
  transactionId: z.ZodString;