@opencrvs/toolkit 2.0.0-rc.18f0568 → 2.0.0-rc.18f6ed6
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.
- package/dist/application-config/index.js +17 -9
- package/dist/cli.js +3 -1
- package/dist/commons/api/router.d.ts +412 -30
- package/dist/commons/events/ActionDocument.d.ts +6 -0
- package/dist/commons/events/ActionInput.d.ts +6 -0
- package/dist/commons/events/EventDocument.d.ts +3 -0
- package/dist/commons/events/EventIndex.d.ts +0 -3
- package/dist/commons/events/EventMetadata.d.ts +0 -7
- package/dist/commons/events/WorkqueueConfig.d.ts +146 -146
- package/dist/commons/events/state/index.d.ts +0 -4
- package/dist/commons/events/state/utils.d.ts +3 -2
- package/dist/commons/events/utils.d.ts +3 -0
- package/dist/conditionals/index.js +3 -1
- package/dist/events/index.js +30 -44
- package/dist/migrations/v2.0/index.js +3 -1
- package/dist/notification/index.js +30 -28
- package/dist/scopes/index.js +3 -1
- package/opencrvs-toolkit-2.0.0-rc.18f6ed6.tgz +0 -0
- package/package.json +1 -1
- package/opencrvs-toolkit-2.0.0-rc.18f0568.tgz +0 -0
|
@@ -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;
|
|
@@ -6343,7 +6745,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6343
6745
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
6344
6746
|
createdByUserType?: "system" | "user" | null | undefined;
|
|
6345
6747
|
createdByRole?: string | undefined;
|
|
6346
|
-
createdBySignature?: string | null | undefined;
|
|
6347
6748
|
} | null | undefined;
|
|
6348
6749
|
REGISTERED?: {
|
|
6349
6750
|
createdAt: string;
|
|
@@ -6353,7 +6754,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6353
6754
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
6354
6755
|
createdByUserType?: "system" | "user" | null | undefined;
|
|
6355
6756
|
createdByRole?: string | undefined;
|
|
6356
|
-
createdBySignature?: string | null | undefined;
|
|
6357
6757
|
} | null | undefined;
|
|
6358
6758
|
};
|
|
6359
6759
|
createdAt: string;
|
|
@@ -6371,7 +6771,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6371
6771
|
createdByUserType?: "system" | "user" | null | undefined;
|
|
6372
6772
|
updatedByUserRole?: string | null | undefined;
|
|
6373
6773
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
6374
|
-
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
6375
6774
|
updatedAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
6376
6775
|
assignedTo?: string | null | undefined;
|
|
6377
6776
|
updatedBy?: string | null | undefined;
|
|
@@ -6572,6 +6971,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6572
6971
|
createdAtLocation?: string | null | undefined;
|
|
6573
6972
|
annotation?: Record<string, unknown> | null | undefined;
|
|
6574
6973
|
originalActionId?: string | null | undefined;
|
|
6974
|
+
content?: {
|
|
6975
|
+
immediateCorrection?: boolean | undefined;
|
|
6976
|
+
} | undefined;
|
|
6575
6977
|
} | {
|
|
6576
6978
|
id: string;
|
|
6577
6979
|
transactionId: string;
|
|
@@ -6830,33 +7232,22 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6830
7232
|
input: string[];
|
|
6831
7233
|
output: ({
|
|
6832
7234
|
id: string & import("zod").$brand<"UUID">;
|
|
7235
|
+
type: "user";
|
|
6833
7236
|
name: {
|
|
6834
7237
|
firstname: string;
|
|
6835
7238
|
surname: string;
|
|
6836
7239
|
};
|
|
6837
7240
|
role: string;
|
|
6838
7241
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
6839
|
-
|
|
6840
|
-
status: "active" | "pending" | "deactivated";
|
|
7242
|
+
fullHonorificName?: string | undefined;
|
|
6841
7243
|
avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
6842
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
6843
7244
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
6844
|
-
device?: string | undefined;
|
|
6845
|
-
fullHonorificName?: string | undefined;
|
|
6846
|
-
mobile?: string | undefined;
|
|
6847
|
-
email?: string | undefined;
|
|
6848
|
-
data?: Record<string, import("../commons").FieldValue> | undefined;
|
|
6849
7245
|
} | {
|
|
6850
7246
|
id: string & import("zod").$brand<"UUID">;
|
|
6851
|
-
name: string;
|
|
6852
7247
|
type: "system";
|
|
7248
|
+
name: string;
|
|
6853
7249
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
6854
7250
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
6855
|
-
signature?: undefined;
|
|
6856
|
-
avatar?: undefined;
|
|
6857
|
-
fullHonorificName?: string | undefined;
|
|
6858
|
-
legacyId?: string | undefined;
|
|
6859
|
-
status?: undefined;
|
|
6860
7251
|
})[];
|
|
6861
7252
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
6862
7253
|
}>;
|
|
@@ -6874,33 +7265,24 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6874
7265
|
};
|
|
6875
7266
|
output: ({
|
|
6876
7267
|
id: string & import("zod").$brand<"UUID">;
|
|
7268
|
+
type: "user";
|
|
6877
7269
|
name: {
|
|
6878
7270
|
firstname: string;
|
|
6879
7271
|
surname: string;
|
|
6880
7272
|
};
|
|
6881
7273
|
role: string;
|
|
6882
7274
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
6883
|
-
type: "user";
|
|
6884
7275
|
status: "active" | "pending" | "deactivated";
|
|
7276
|
+
fullHonorificName?: string | undefined;
|
|
6885
7277
|
avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
6886
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
6887
7278
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
6888
|
-
device?: string | undefined;
|
|
6889
|
-
fullHonorificName?: string | undefined;
|
|
6890
|
-
mobile?: string | undefined;
|
|
6891
|
-
email?: string | undefined;
|
|
6892
|
-
data?: Record<string, import("../commons").FieldValue> | undefined;
|
|
6893
7279
|
} | {
|
|
6894
7280
|
id: string & import("zod").$brand<"UUID">;
|
|
6895
|
-
name: string;
|
|
6896
7281
|
type: "system";
|
|
7282
|
+
name: string;
|
|
6897
7283
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
6898
7284
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
6899
|
-
|
|
6900
|
-
avatar?: undefined;
|
|
6901
|
-
fullHonorificName?: string | undefined;
|
|
6902
|
-
legacyId?: string | undefined;
|
|
6903
|
-
status?: undefined;
|
|
7285
|
+
status?: "active" | "pending" | "deactivated" | undefined;
|
|
6904
7286
|
})[];
|
|
6905
7287
|
meta: object;
|
|
6906
7288
|
}>;
|