@opencrvs/toolkit 2.0.0-rc.ca1536b → 2.0.0-rc.cb6a4d5
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 +5 -1
- package/dist/commons/api/router.d.ts +369 -7
- package/dist/commons/events/EventIndex.d.ts +3 -0
- package/dist/commons/events/EventMetadata.d.ts +7 -0
- package/dist/commons/events/state/index.d.ts +4 -0
- package/dist/commons/events/state/utils.d.ts +2 -0
- package/dist/events/index.js +21 -1
- package/dist/notification/index.js +5 -1
- package/opencrvs-toolkit-2.0.0-rc.cb6a4d5.tgz +0 -0
- package/package.json +1 -1
- package/opencrvs-toolkit-2.0.0-rc.ca1536b.tgz +0 -0
|
@@ -1105,7 +1105,8 @@ var ActionCreationMetadata = z15.object({
|
|
|
1105
1105
|
),
|
|
1106
1106
|
createdByUserType: z15.enum(["user", "system"]).nullish().describe("Whether the user is a normal user or a system."),
|
|
1107
1107
|
acceptedAt: z15.iso.datetime().describe("Timestamp when the action request was accepted."),
|
|
1108
|
-
createdByRole: z15.string().optional().describe("Role of the user at the time of action request creation.")
|
|
1108
|
+
createdByRole: z15.string().optional().describe("Role of the user at the time of action request creation."),
|
|
1109
|
+
createdBySignature: z15.string().nullish().describe("Signature of the user who created the action request.")
|
|
1109
1110
|
});
|
|
1110
1111
|
var RegistrationCreationMetadata = ActionCreationMetadata.extend({
|
|
1111
1112
|
registrationNumber: z15.string().describe(
|
|
@@ -1133,6 +1134,9 @@ var EventMetadata = z15.object({
|
|
|
1133
1134
|
createdAtLocation: UUID.nullish().describe(
|
|
1134
1135
|
"Location of the user who created the event."
|
|
1135
1136
|
),
|
|
1137
|
+
createdBySignature: DocumentPath.nullish().describe(
|
|
1138
|
+
"Signature of the user who created the event."
|
|
1139
|
+
),
|
|
1136
1140
|
updatedAtLocation: UUID.nullish().describe(
|
|
1137
1141
|
"Location of the user who last changed the status."
|
|
1138
1142
|
),
|
|
@@ -1445,6 +1445,345 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1445
1445
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
1446
1446
|
}>;
|
|
1447
1447
|
}>>;
|
|
1448
|
+
createAndNotify: import("@trpc/server").TRPCBuiltRouter<{
|
|
1449
|
+
ctx: Partial<{
|
|
1450
|
+
token: `Bearer ${string}`;
|
|
1451
|
+
user: {
|
|
1452
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1453
|
+
type: "system";
|
|
1454
|
+
signature?: undefined;
|
|
1455
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1456
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1457
|
+
} | {
|
|
1458
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1459
|
+
type: "user";
|
|
1460
|
+
role: string;
|
|
1461
|
+
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
1462
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1463
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1464
|
+
};
|
|
1465
|
+
}>;
|
|
1466
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
1467
|
+
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
1468
|
+
transformer: true;
|
|
1469
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
1470
|
+
request: import("@trpc/server").TRPCMutationProcedure<{
|
|
1471
|
+
input: {
|
|
1472
|
+
transactionId: string;
|
|
1473
|
+
eventType: string;
|
|
1474
|
+
createdAtLocation: string;
|
|
1475
|
+
declaration?: Record<string, unknown> | undefined;
|
|
1476
|
+
annotation?: Record<string, unknown> | undefined;
|
|
1477
|
+
originalActionId?: string | undefined;
|
|
1478
|
+
keepAssignment?: boolean | undefined;
|
|
1479
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1480
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1481
|
+
waitFor?: boolean | undefined;
|
|
1482
|
+
};
|
|
1483
|
+
output: {
|
|
1484
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1485
|
+
type: string;
|
|
1486
|
+
createdAt: string;
|
|
1487
|
+
updatedAt: string;
|
|
1488
|
+
actions: ({
|
|
1489
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1490
|
+
transactionId: string;
|
|
1491
|
+
createdByUserType: "system" | "user";
|
|
1492
|
+
createdAt: string;
|
|
1493
|
+
createdBy: string;
|
|
1494
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1495
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1496
|
+
type: "CREATE";
|
|
1497
|
+
createdByRole?: string | undefined;
|
|
1498
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1499
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1500
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1501
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1502
|
+
} | {
|
|
1503
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1504
|
+
transactionId: string;
|
|
1505
|
+
createdByUserType: "system" | "user";
|
|
1506
|
+
createdAt: string;
|
|
1507
|
+
createdBy: string;
|
|
1508
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1509
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1510
|
+
type: "REJECT";
|
|
1511
|
+
content: {
|
|
1512
|
+
reason: string;
|
|
1513
|
+
};
|
|
1514
|
+
createdByRole?: string | undefined;
|
|
1515
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1516
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1517
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1518
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1519
|
+
} | {
|
|
1520
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1521
|
+
transactionId: string;
|
|
1522
|
+
createdByUserType: "system" | "user";
|
|
1523
|
+
createdAt: string;
|
|
1524
|
+
createdBy: string;
|
|
1525
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1526
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1527
|
+
type: "DUPLICATE_DETECTED";
|
|
1528
|
+
content: {
|
|
1529
|
+
duplicates: {
|
|
1530
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1531
|
+
trackingId: string;
|
|
1532
|
+
}[];
|
|
1533
|
+
};
|
|
1534
|
+
createdByRole?: string | undefined;
|
|
1535
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1536
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1537
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1538
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1539
|
+
} | {
|
|
1540
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1541
|
+
transactionId: string;
|
|
1542
|
+
createdByUserType: "system" | "user";
|
|
1543
|
+
createdAt: string;
|
|
1544
|
+
createdBy: string;
|
|
1545
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1546
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1547
|
+
type: "MARK_AS_NOT_DUPLICATE";
|
|
1548
|
+
createdByRole?: string | undefined;
|
|
1549
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1550
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1551
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1552
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1553
|
+
} | {
|
|
1554
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1555
|
+
transactionId: string;
|
|
1556
|
+
createdByUserType: "system" | "user";
|
|
1557
|
+
createdAt: string;
|
|
1558
|
+
createdBy: string;
|
|
1559
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1560
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1561
|
+
type: "MARK_AS_DUPLICATE";
|
|
1562
|
+
createdByRole?: string | undefined;
|
|
1563
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1564
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1565
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1566
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1567
|
+
content?: {
|
|
1568
|
+
duplicateOf: string & import("zod").$brand<"UUID">;
|
|
1569
|
+
} | undefined;
|
|
1570
|
+
} | {
|
|
1571
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1572
|
+
transactionId: string;
|
|
1573
|
+
createdByUserType: "system" | "user";
|
|
1574
|
+
createdAt: string;
|
|
1575
|
+
createdBy: string;
|
|
1576
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1577
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1578
|
+
type: "ARCHIVE";
|
|
1579
|
+
content: {
|
|
1580
|
+
reason: string;
|
|
1581
|
+
};
|
|
1582
|
+
createdByRole?: string | undefined;
|
|
1583
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1584
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1585
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1586
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1587
|
+
} | {
|
|
1588
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1589
|
+
transactionId: string;
|
|
1590
|
+
createdByUserType: "system" | "user";
|
|
1591
|
+
createdAt: string;
|
|
1592
|
+
createdBy: string;
|
|
1593
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1594
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1595
|
+
type: "NOTIFY";
|
|
1596
|
+
createdByRole?: string | undefined;
|
|
1597
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1598
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1599
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1600
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1601
|
+
} | {
|
|
1602
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1603
|
+
transactionId: string;
|
|
1604
|
+
createdByUserType: "system" | "user";
|
|
1605
|
+
createdAt: string;
|
|
1606
|
+
createdBy: string;
|
|
1607
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1608
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1609
|
+
type: "REGISTER";
|
|
1610
|
+
createdByRole?: string | undefined;
|
|
1611
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1612
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1613
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1614
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1615
|
+
registrationNumber?: string | undefined;
|
|
1616
|
+
} | {
|
|
1617
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1618
|
+
transactionId: string;
|
|
1619
|
+
createdByUserType: "system" | "user";
|
|
1620
|
+
createdAt: string;
|
|
1621
|
+
createdBy: string;
|
|
1622
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1623
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1624
|
+
type: "DECLARE";
|
|
1625
|
+
createdByRole?: string | undefined;
|
|
1626
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1627
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1628
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1629
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1630
|
+
} | {
|
|
1631
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1632
|
+
transactionId: string;
|
|
1633
|
+
createdByUserType: "system" | "user";
|
|
1634
|
+
createdAt: string;
|
|
1635
|
+
createdBy: string;
|
|
1636
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1637
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1638
|
+
type: "ASSIGN";
|
|
1639
|
+
assignedTo: string;
|
|
1640
|
+
createdByRole?: string | undefined;
|
|
1641
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1642
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1643
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1644
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1645
|
+
} | {
|
|
1646
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1647
|
+
transactionId: string;
|
|
1648
|
+
createdByUserType: "system" | "user";
|
|
1649
|
+
createdAt: string;
|
|
1650
|
+
createdBy: string;
|
|
1651
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1652
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1653
|
+
type: "REQUEST_CORRECTION";
|
|
1654
|
+
createdByRole?: string | undefined;
|
|
1655
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1656
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1657
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1658
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1659
|
+
} | {
|
|
1660
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1661
|
+
transactionId: string;
|
|
1662
|
+
createdByUserType: "system" | "user";
|
|
1663
|
+
createdAt: string;
|
|
1664
|
+
createdBy: string;
|
|
1665
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1666
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1667
|
+
type: "APPROVE_CORRECTION";
|
|
1668
|
+
requestId: string;
|
|
1669
|
+
createdByRole?: string | undefined;
|
|
1670
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1671
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1672
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1673
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1674
|
+
} | {
|
|
1675
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1676
|
+
transactionId: string;
|
|
1677
|
+
createdByUserType: "system" | "user";
|
|
1678
|
+
createdAt: string;
|
|
1679
|
+
createdBy: string;
|
|
1680
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1681
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1682
|
+
type: "REJECT_CORRECTION";
|
|
1683
|
+
requestId: string;
|
|
1684
|
+
content: {
|
|
1685
|
+
reason: string;
|
|
1686
|
+
};
|
|
1687
|
+
createdByRole?: string | undefined;
|
|
1688
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1689
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1690
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1691
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1692
|
+
} | {
|
|
1693
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1694
|
+
transactionId: string;
|
|
1695
|
+
createdByUserType: "system" | "user";
|
|
1696
|
+
createdAt: string;
|
|
1697
|
+
createdBy: string;
|
|
1698
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1699
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1700
|
+
type: "UNASSIGN";
|
|
1701
|
+
createdByRole?: string | undefined;
|
|
1702
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1703
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1704
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1705
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1706
|
+
} | {
|
|
1707
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1708
|
+
transactionId: string;
|
|
1709
|
+
createdByUserType: "system" | "user";
|
|
1710
|
+
createdAt: string;
|
|
1711
|
+
createdBy: string;
|
|
1712
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1713
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1714
|
+
type: "PRINT_CERTIFICATE";
|
|
1715
|
+
createdByRole?: string | undefined;
|
|
1716
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1717
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1718
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1719
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1720
|
+
content?: {
|
|
1721
|
+
templateId?: string | undefined;
|
|
1722
|
+
} | null | undefined;
|
|
1723
|
+
} | {
|
|
1724
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1725
|
+
transactionId: string;
|
|
1726
|
+
createdByUserType: "system" | "user";
|
|
1727
|
+
createdAt: string;
|
|
1728
|
+
createdBy: string;
|
|
1729
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1730
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1731
|
+
type: "READ";
|
|
1732
|
+
createdByRole?: string | undefined;
|
|
1733
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1734
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1735
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1736
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1737
|
+
} | {
|
|
1738
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1739
|
+
transactionId: string;
|
|
1740
|
+
createdByUserType: "system" | "user";
|
|
1741
|
+
createdAt: string;
|
|
1742
|
+
createdBy: string;
|
|
1743
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1744
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1745
|
+
type: "EDIT";
|
|
1746
|
+
content: {
|
|
1747
|
+
comment?: string | undefined;
|
|
1748
|
+
};
|
|
1749
|
+
createdByRole?: string | undefined;
|
|
1750
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1751
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1752
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1753
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1754
|
+
} | {
|
|
1755
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1756
|
+
transactionId: string;
|
|
1757
|
+
createdByUserType: "system" | "user";
|
|
1758
|
+
createdAt: string;
|
|
1759
|
+
createdBy: string;
|
|
1760
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1761
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1762
|
+
type: "CUSTOM";
|
|
1763
|
+
customActionType: string;
|
|
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
|
+
type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
|
|
1776
|
+
status: "Rejected";
|
|
1777
|
+
createdByRole?: string | undefined;
|
|
1778
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1779
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1780
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1781
|
+
})[];
|
|
1782
|
+
trackingId: string;
|
|
1783
|
+
};
|
|
1784
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
1785
|
+
}>;
|
|
1786
|
+
}>>;
|
|
1448
1787
|
declare: import("@trpc/server").TRPCBuiltRouter<{
|
|
1449
1788
|
ctx: Partial<{
|
|
1450
1789
|
token: `Bearer ${string}`;
|
|
@@ -6343,6 +6682,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6343
6682
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
6344
6683
|
createdByUserType?: "system" | "user" | null | undefined;
|
|
6345
6684
|
createdByRole?: string | undefined;
|
|
6685
|
+
createdBySignature?: string | null | undefined;
|
|
6346
6686
|
} | null | undefined;
|
|
6347
6687
|
REGISTERED?: {
|
|
6348
6688
|
createdAt: string;
|
|
@@ -6352,6 +6692,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6352
6692
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
6353
6693
|
createdByUserType?: "system" | "user" | null | undefined;
|
|
6354
6694
|
createdByRole?: string | undefined;
|
|
6695
|
+
createdBySignature?: string | null | undefined;
|
|
6355
6696
|
} | null | undefined;
|
|
6356
6697
|
};
|
|
6357
6698
|
createdAt: string;
|
|
@@ -6369,6 +6710,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6369
6710
|
createdByUserType?: "system" | "user" | null | undefined;
|
|
6370
6711
|
updatedByUserRole?: string | null | undefined;
|
|
6371
6712
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
6713
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
6372
6714
|
updatedAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
6373
6715
|
assignedTo?: string | null | undefined;
|
|
6374
6716
|
updatedBy?: string | null | undefined;
|
|
@@ -6827,22 +7169,33 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6827
7169
|
input: string[];
|
|
6828
7170
|
output: ({
|
|
6829
7171
|
id: string & import("zod").$brand<"UUID">;
|
|
6830
|
-
type: "user";
|
|
6831
7172
|
name: {
|
|
6832
7173
|
firstname: string;
|
|
6833
7174
|
surname: string;
|
|
6834
7175
|
};
|
|
6835
7176
|
role: string;
|
|
6836
7177
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
6837
|
-
|
|
7178
|
+
type: "user";
|
|
7179
|
+
status: "active" | "pending" | "deactivated";
|
|
6838
7180
|
avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
7181
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
6839
7182
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
7183
|
+
device?: string | undefined;
|
|
7184
|
+
fullHonorificName?: string | undefined;
|
|
7185
|
+
mobile?: string | undefined;
|
|
7186
|
+
email?: string | undefined;
|
|
7187
|
+
data?: Record<string, import("../commons").FieldValue> | undefined;
|
|
6840
7188
|
} | {
|
|
6841
7189
|
id: string & import("zod").$brand<"UUID">;
|
|
6842
|
-
type: "system";
|
|
6843
7190
|
name: string;
|
|
7191
|
+
type: "system";
|
|
6844
7192
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
6845
7193
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
7194
|
+
signature?: undefined;
|
|
7195
|
+
avatar?: undefined;
|
|
7196
|
+
fullHonorificName?: string | undefined;
|
|
7197
|
+
legacyId?: string | undefined;
|
|
7198
|
+
status?: undefined;
|
|
6846
7199
|
})[];
|
|
6847
7200
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
6848
7201
|
}>;
|
|
@@ -6860,24 +7213,33 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6860
7213
|
};
|
|
6861
7214
|
output: ({
|
|
6862
7215
|
id: string & import("zod").$brand<"UUID">;
|
|
6863
|
-
type: "user";
|
|
6864
7216
|
name: {
|
|
6865
7217
|
firstname: string;
|
|
6866
7218
|
surname: string;
|
|
6867
7219
|
};
|
|
6868
7220
|
role: string;
|
|
6869
7221
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
7222
|
+
type: "user";
|
|
6870
7223
|
status: "active" | "pending" | "deactivated";
|
|
6871
|
-
fullHonorificName?: string | undefined;
|
|
6872
7224
|
avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
7225
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
6873
7226
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
7227
|
+
device?: string | undefined;
|
|
7228
|
+
fullHonorificName?: string | undefined;
|
|
7229
|
+
mobile?: string | undefined;
|
|
7230
|
+
email?: string | undefined;
|
|
7231
|
+
data?: Record<string, import("../commons").FieldValue> | undefined;
|
|
6874
7232
|
} | {
|
|
6875
7233
|
id: string & import("zod").$brand<"UUID">;
|
|
6876
|
-
type: "system";
|
|
6877
7234
|
name: string;
|
|
7235
|
+
type: "system";
|
|
6878
7236
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
6879
7237
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
6880
|
-
|
|
7238
|
+
signature?: undefined;
|
|
7239
|
+
avatar?: undefined;
|
|
7240
|
+
fullHonorificName?: string | undefined;
|
|
7241
|
+
legacyId?: string | undefined;
|
|
7242
|
+
status?: undefined;
|
|
6881
7243
|
})[];
|
|
6882
7244
|
meta: object;
|
|
6883
7245
|
}>;
|
|
@@ -20,6 +20,7 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
20
20
|
}>>>;
|
|
21
21
|
acceptedAt: z.ZodISODateTime;
|
|
22
22
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
23
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
24
|
}, z.core.$strip>>>;
|
|
24
25
|
REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
25
26
|
createdAt: z.ZodISODateTime;
|
|
@@ -31,6 +32,7 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
31
32
|
}>>>;
|
|
32
33
|
acceptedAt: z.ZodISODateTime;
|
|
33
34
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
35
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
36
|
registrationNumber: z.ZodString;
|
|
35
37
|
}, z.core.$strip>>>;
|
|
36
38
|
}, z.core.$strip>;
|
|
@@ -44,6 +46,7 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
44
46
|
}>>>;
|
|
45
47
|
updatedByUserRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
48
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
49
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
|
|
47
50
|
updatedAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
48
51
|
updatedAt: z.ZodISODateTime;
|
|
49
52
|
assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -23,6 +23,7 @@ export declare const ActionCreationMetadata: z.ZodObject<{
|
|
|
23
23
|
}>>>;
|
|
24
24
|
acceptedAt: z.ZodISODateTime;
|
|
25
25
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
26
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
27
|
}, z.core.$strip>;
|
|
27
28
|
export type ActionCreationMetadata = z.infer<typeof ActionCreationMetadata>;
|
|
28
29
|
export declare const RegistrationCreationMetadata: z.ZodObject<{
|
|
@@ -35,6 +36,7 @@ export declare const RegistrationCreationMetadata: z.ZodObject<{
|
|
|
35
36
|
}>>>;
|
|
36
37
|
acceptedAt: z.ZodISODateTime;
|
|
37
38
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
39
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
40
|
registrationNumber: z.ZodString;
|
|
39
41
|
}, z.core.$strip>;
|
|
40
42
|
export type RegistrationCreationMetadata = z.infer<typeof RegistrationCreationMetadata>;
|
|
@@ -49,6 +51,7 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
|
49
51
|
}>>>;
|
|
50
52
|
acceptedAt: z.ZodISODateTime;
|
|
51
53
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
54
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
55
|
}, z.core.$strip>>>;
|
|
53
56
|
REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
54
57
|
createdAt: z.ZodISODateTime;
|
|
@@ -60,6 +63,7 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
|
60
63
|
}>>>;
|
|
61
64
|
acceptedAt: z.ZodISODateTime;
|
|
62
65
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
66
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
67
|
registrationNumber: z.ZodString;
|
|
64
68
|
}, z.core.$strip>>>;
|
|
65
69
|
}, z.core.$strip>;
|
|
@@ -89,6 +93,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
89
93
|
}>>>;
|
|
90
94
|
acceptedAt: z.ZodISODateTime;
|
|
91
95
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
96
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
97
|
}, z.core.$strip>>>;
|
|
93
98
|
REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
94
99
|
createdAt: z.ZodISODateTime;
|
|
@@ -100,6 +105,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
100
105
|
}>>>;
|
|
101
106
|
acceptedAt: z.ZodISODateTime;
|
|
102
107
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
108
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
103
109
|
registrationNumber: z.ZodString;
|
|
104
110
|
}, z.core.$strip>>>;
|
|
105
111
|
}, z.core.$strip>;
|
|
@@ -113,6 +119,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
113
119
|
}>>>;
|
|
114
120
|
updatedByUserRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
115
121
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
122
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
|
|
116
123
|
updatedAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
117
124
|
updatedAt: z.ZodISODateTime;
|
|
118
125
|
assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -9,6 +9,7 @@ import { UUID } from '../../uuid';
|
|
|
9
9
|
import { DocumentPath } from '../../documents';
|
|
10
10
|
export declare function getStatusFromActions(actions: Array<Action>): "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
|
|
11
11
|
export declare function getAssignedUserFromActions(actions: Array<ActionDocument>): string | null;
|
|
12
|
+
export declare function getAssignedUserSignatureFromActions(actions: Array<ActionDocument>): string | null;
|
|
12
13
|
type NonNullableDeep<T> = T extends [unknown, ...unknown[]] ? {
|
|
13
14
|
[K in keyof T]: NonNullableDeep<NonNullable<T[K]>>;
|
|
14
15
|
} : T extends UUID ? T : T extends DocumentPath ? T : T extends string ? NonNullable<T> : T extends (infer U)[] ? NonNullableDeep<U>[] : T extends object ? {
|
|
@@ -72,6 +73,7 @@ export declare function applyDraftToEventIndex(eventIndex: EventIndex, draft: Dr
|
|
|
72
73
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
73
74
|
createdByUserType?: "user" | "system" | null | undefined;
|
|
74
75
|
createdByRole?: string | undefined;
|
|
76
|
+
createdBySignature?: string | null | undefined;
|
|
75
77
|
} | null | undefined;
|
|
76
78
|
REGISTERED?: {
|
|
77
79
|
createdAt: string;
|
|
@@ -81,6 +83,7 @@ export declare function applyDraftToEventIndex(eventIndex: EventIndex, draft: Dr
|
|
|
81
83
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
82
84
|
createdByUserType?: "user" | "system" | null | undefined;
|
|
83
85
|
createdByRole?: string | undefined;
|
|
86
|
+
createdBySignature?: string | null | undefined;
|
|
84
87
|
} | null | undefined;
|
|
85
88
|
};
|
|
86
89
|
createdAt: string;
|
|
@@ -98,6 +101,7 @@ export declare function applyDraftToEventIndex(eventIndex: EventIndex, draft: Dr
|
|
|
98
101
|
createdByUserType?: "user" | "system" | null | undefined;
|
|
99
102
|
updatedByUserRole?: string | null | undefined;
|
|
100
103
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
104
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
101
105
|
updatedAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
102
106
|
assignedTo?: string | null | undefined;
|
|
103
107
|
updatedBy?: string | null | undefined;
|
|
@@ -312,6 +312,7 @@ export declare function getLegalStatuses(actions: Action[]): {
|
|
|
312
312
|
createdAtLocation: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
313
313
|
acceptedAt: string;
|
|
314
314
|
createdByRole: string | undefined;
|
|
315
|
+
createdBySignature: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
315
316
|
registrationNumber: string | null | undefined;
|
|
316
317
|
} | null;
|
|
317
318
|
REGISTERED: {
|
|
@@ -321,6 +322,7 @@ export declare function getLegalStatuses(actions: Action[]): {
|
|
|
321
322
|
createdAtLocation: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
322
323
|
acceptedAt: string;
|
|
323
324
|
createdByRole: string | undefined;
|
|
325
|
+
createdBySignature: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
324
326
|
registrationNumber: string | null | undefined;
|
|
325
327
|
} | null;
|
|
326
328
|
};
|
package/dist/events/index.js
CHANGED
|
@@ -306,6 +306,7 @@ __export(events_exports, {
|
|
|
306
306
|
getAllUniqueFields: () => getAllUniqueFields,
|
|
307
307
|
getAnnotationFromDrafts: () => getAnnotationFromDrafts,
|
|
308
308
|
getAssignedUserFromActions: () => getAssignedUserFromActions,
|
|
309
|
+
getAssignedUserSignatureFromActions: () => getAssignedUserSignatureFromActions,
|
|
309
310
|
getAssignmentStatus: () => getAssignmentStatus,
|
|
310
311
|
getAvailableActionsForEvent: () => getAvailableActionsForEvent,
|
|
311
312
|
getAvailableRolesForUserUpdatePayload: () => getAvailableRolesForUserUpdatePayload,
|
|
@@ -1764,7 +1765,8 @@ var ActionCreationMetadata = z16.object({
|
|
|
1764
1765
|
),
|
|
1765
1766
|
createdByUserType: z16.enum(["user", "system"]).nullish().describe("Whether the user is a normal user or a system."),
|
|
1766
1767
|
acceptedAt: z16.iso.datetime().describe("Timestamp when the action request was accepted."),
|
|
1767
|
-
createdByRole: z16.string().optional().describe("Role of the user at the time of action request creation.")
|
|
1768
|
+
createdByRole: z16.string().optional().describe("Role of the user at the time of action request creation."),
|
|
1769
|
+
createdBySignature: z16.string().nullish().describe("Signature of the user who created the action request.")
|
|
1768
1770
|
});
|
|
1769
1771
|
var RegistrationCreationMetadata = ActionCreationMetadata.extend({
|
|
1770
1772
|
registrationNumber: z16.string().describe(
|
|
@@ -1792,6 +1794,9 @@ var EventMetadata = z16.object({
|
|
|
1792
1794
|
createdAtLocation: UUID.nullish().describe(
|
|
1793
1795
|
"Location of the user who created the event."
|
|
1794
1796
|
),
|
|
1797
|
+
createdBySignature: DocumentPath.nullish().describe(
|
|
1798
|
+
"Signature of the user who created the event."
|
|
1799
|
+
),
|
|
1795
1800
|
updatedAtLocation: UUID.nullish().describe(
|
|
1796
1801
|
"Location of the user who last changed the status."
|
|
1797
1802
|
),
|
|
@@ -6142,6 +6147,7 @@ function getDeclarationActionCreationMetadata(actionType, actions) {
|
|
|
6142
6147
|
createdAtLocation: requestAction?.createdAtLocation ?? acceptAction.createdAtLocation,
|
|
6143
6148
|
acceptedAt: acceptAction.createdAt,
|
|
6144
6149
|
createdByRole: requestAction?.createdByRole ?? acceptAction.createdByRole,
|
|
6150
|
+
createdBySignature: requestAction?.createdBySignature ?? acceptAction.createdBySignature,
|
|
6145
6151
|
registrationNumber
|
|
6146
6152
|
};
|
|
6147
6153
|
}
|
|
@@ -6355,6 +6361,17 @@ function getAssignedUserFromActions(actions) {
|
|
|
6355
6361
|
return user2;
|
|
6356
6362
|
}, null);
|
|
6357
6363
|
}
|
|
6364
|
+
function getAssignedUserSignatureFromActions(actions) {
|
|
6365
|
+
return actions.reduce((signature, action) => {
|
|
6366
|
+
if (action.type === ActionType.ASSIGN) {
|
|
6367
|
+
return action.createdBySignature || null;
|
|
6368
|
+
}
|
|
6369
|
+
if (action.type === ActionType.UNASSIGN) {
|
|
6370
|
+
return null;
|
|
6371
|
+
}
|
|
6372
|
+
return signature;
|
|
6373
|
+
}, null);
|
|
6374
|
+
}
|
|
6358
6375
|
function deepDropNulls(obj) {
|
|
6359
6376
|
if (Array.isArray(obj)) {
|
|
6360
6377
|
return obj.map(deepDropNulls);
|
|
@@ -6450,8 +6467,10 @@ function getCurrentEventState(event2, config) {
|
|
|
6450
6467
|
createdBy: creationAction.createdBy,
|
|
6451
6468
|
createdByUserType: creationAction.createdByUserType,
|
|
6452
6469
|
createdAtLocation: creationAction.createdAtLocation,
|
|
6470
|
+
createdBySignature: creationAction.createdBySignature,
|
|
6453
6471
|
updatedAt: acceptedActionMetadata.createdAt,
|
|
6454
6472
|
assignedTo: getAssignedUserFromActions(acceptedActions),
|
|
6473
|
+
assignedToSignature: getAssignedUserSignatureFromActions(acceptedActions),
|
|
6455
6474
|
updatedBy: requestActionMetadata.createdBy,
|
|
6456
6475
|
updatedAtLocation: requestActionMetadata.createdAtLocation,
|
|
6457
6476
|
declaration,
|
|
@@ -9710,6 +9729,7 @@ var eventQueryDataGenerator = (overrides = {}, seed = 1) => {
|
|
|
9710
9729
|
createdBy: overrides.createdBy ?? generateUuid(rng),
|
|
9711
9730
|
createdAtLocation: overrides.createdAtLocation ?? generateUuid(rng),
|
|
9712
9731
|
updatedAtLocation: overrides.updatedAtLocation ?? generateUuid(rng),
|
|
9732
|
+
createdBySignature: overrides.createdBySignature ?? generateRandomSignature(rng),
|
|
9713
9733
|
updatedAt: overrides.updatedAt ?? (0, import_date_fns4.addDays)(new Date(createdAt), 1).toISOString(),
|
|
9714
9734
|
assignedTo: overrides.assignedTo ?? null,
|
|
9715
9735
|
updatedBy: overrides.updatedBy ?? generateUuid(rng),
|
|
@@ -1331,7 +1331,8 @@ var ActionCreationMetadata = z16.object({
|
|
|
1331
1331
|
),
|
|
1332
1332
|
createdByUserType: z16.enum(["user", "system"]).nullish().describe("Whether the user is a normal user or a system."),
|
|
1333
1333
|
acceptedAt: z16.iso.datetime().describe("Timestamp when the action request was accepted."),
|
|
1334
|
-
createdByRole: z16.string().optional().describe("Role of the user at the time of action request creation.")
|
|
1334
|
+
createdByRole: z16.string().optional().describe("Role of the user at the time of action request creation."),
|
|
1335
|
+
createdBySignature: z16.string().nullish().describe("Signature of the user who created the action request.")
|
|
1335
1336
|
});
|
|
1336
1337
|
var RegistrationCreationMetadata = ActionCreationMetadata.extend({
|
|
1337
1338
|
registrationNumber: z16.string().describe(
|
|
@@ -1359,6 +1360,9 @@ var EventMetadata = z16.object({
|
|
|
1359
1360
|
createdAtLocation: UUID.nullish().describe(
|
|
1360
1361
|
"Location of the user who created the event."
|
|
1361
1362
|
),
|
|
1363
|
+
createdBySignature: DocumentPath.nullish().describe(
|
|
1364
|
+
"Signature of the user who created the event."
|
|
1365
|
+
),
|
|
1362
1366
|
updatedAtLocation: UUID.nullish().describe(
|
|
1363
1367
|
"Location of the user who last changed the status."
|
|
1364
1368
|
),
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|