@opencrvs/toolkit 2.0.0-rc.18f0568 → 2.0.0-rc.1b5d54a
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 +12 -7
- package/dist/commons/api/router.d.ts +346 -30
- 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 +0 -2
- package/dist/events/index.js +23 -41
- package/dist/notification/index.js +23 -25
- package/opencrvs-toolkit-2.0.0-rc.1b5d54a.tgz +0 -0
- package/package.json +1 -1
- package/opencrvs-toolkit-2.0.0-rc.18f0568.tgz +0 -0
|
@@ -75,7 +75,10 @@ var ActionConditional = z.discriminatedUnion("type", [
|
|
|
75
75
|
ShowConditional,
|
|
76
76
|
// Action can be shown to the user in the list but as disabled
|
|
77
77
|
EnableConditional
|
|
78
|
-
])
|
|
78
|
+
]).meta({
|
|
79
|
+
description: "Action conditional configuration",
|
|
80
|
+
id: "ActionConditional"
|
|
81
|
+
});
|
|
79
82
|
var DisplayOnReviewConditional = z.object({
|
|
80
83
|
type: z.literal(ConditionalType.DISPLAY_ON_REVIEW),
|
|
81
84
|
conditional: Conditional
|
|
@@ -1077,6 +1080,9 @@ var FlagConfig = z14.object({
|
|
|
1077
1080
|
"Indicates if this flag expects an action to be performed to be cleared."
|
|
1078
1081
|
),
|
|
1079
1082
|
label: TranslationConfig.describe("Human readable label of the flag.")
|
|
1083
|
+
}).meta({
|
|
1084
|
+
description: "Flag configuration",
|
|
1085
|
+
id: "FlagConfig"
|
|
1080
1086
|
});
|
|
1081
1087
|
var ActionFlagConfig = z14.object({
|
|
1082
1088
|
id: Flag,
|
|
@@ -1084,6 +1090,9 @@ var ActionFlagConfig = z14.object({
|
|
|
1084
1090
|
conditional: Conditional.optional().describe(
|
|
1085
1091
|
"When conditional is met, the operation is performed on the flag. If not provided, the operation is performed unconditionally."
|
|
1086
1092
|
)
|
|
1093
|
+
}).meta({
|
|
1094
|
+
description: "Action flag configuration",
|
|
1095
|
+
id: "ActionFlagConfig"
|
|
1087
1096
|
});
|
|
1088
1097
|
|
|
1089
1098
|
// ../commons/src/events/EventMetadata.ts
|
|
@@ -1105,8 +1114,7 @@ var ActionCreationMetadata = z15.object({
|
|
|
1105
1114
|
),
|
|
1106
1115
|
createdByUserType: z15.enum(["user", "system"]).nullish().describe("Whether the user is a normal user or a system."),
|
|
1107
1116
|
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.")
|
|
1109
|
-
createdBySignature: z15.string().nullish().describe("Signature of the user who created the action request.")
|
|
1117
|
+
createdByRole: z15.string().optional().describe("Role of the user at the time of action request creation.")
|
|
1110
1118
|
});
|
|
1111
1119
|
var RegistrationCreationMetadata = ActionCreationMetadata.extend({
|
|
1112
1120
|
registrationNumber: z15.string().describe(
|
|
@@ -1134,9 +1142,6 @@ var EventMetadata = z15.object({
|
|
|
1134
1142
|
createdAtLocation: UUID.nullish().describe(
|
|
1135
1143
|
"Location of the user who created the event."
|
|
1136
1144
|
),
|
|
1137
|
-
createdBySignature: DocumentPath.nullish().describe(
|
|
1138
|
-
"Signature of the user who created the event."
|
|
1139
|
-
),
|
|
1140
1145
|
updatedAtLocation: UUID.nullish().describe(
|
|
1141
1146
|
"Location of the user who last changed the status."
|
|
1142
1147
|
),
|
|
@@ -1400,7 +1405,7 @@ var FieldId = import_v43.default.string().superRefine((val, ctx) => {
|
|
|
1400
1405
|
}
|
|
1401
1406
|
}).describe("Unique identifier for the field");
|
|
1402
1407
|
var FieldReference = import_v43.default.object({
|
|
1403
|
-
$$field: FieldId,
|
|
1408
|
+
$$field: FieldId.describe("Id of the field to reference"),
|
|
1404
1409
|
$$subfield: import_v43.default.array(import_v43.default.string()).optional().default([]).describe(
|
|
1405
1410
|
'If the FieldValue is an object, subfield can be used to refer to e.g. `["foo", "bar"]` in `{ foo: { bar: 3 } }`'
|
|
1406
1411
|
)
|
|
@@ -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,7 +6682,6 @@ 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;
|
|
6346
|
-
createdBySignature?: string | null | undefined;
|
|
6347
6685
|
} | null | undefined;
|
|
6348
6686
|
REGISTERED?: {
|
|
6349
6687
|
createdAt: string;
|
|
@@ -6353,7 +6691,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6353
6691
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
6354
6692
|
createdByUserType?: "system" | "user" | null | undefined;
|
|
6355
6693
|
createdByRole?: string | undefined;
|
|
6356
|
-
createdBySignature?: string | null | undefined;
|
|
6357
6694
|
} | null | undefined;
|
|
6358
6695
|
};
|
|
6359
6696
|
createdAt: string;
|
|
@@ -6371,7 +6708,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6371
6708
|
createdByUserType?: "system" | "user" | null | undefined;
|
|
6372
6709
|
updatedByUserRole?: string | null | undefined;
|
|
6373
6710
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
6374
|
-
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
6375
6711
|
updatedAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
6376
6712
|
assignedTo?: string | null | undefined;
|
|
6377
6713
|
updatedBy?: string | null | undefined;
|
|
@@ -6830,33 +7166,22 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6830
7166
|
input: string[];
|
|
6831
7167
|
output: ({
|
|
6832
7168
|
id: string & import("zod").$brand<"UUID">;
|
|
7169
|
+
type: "user";
|
|
6833
7170
|
name: {
|
|
6834
7171
|
firstname: string;
|
|
6835
7172
|
surname: string;
|
|
6836
7173
|
};
|
|
6837
7174
|
role: string;
|
|
6838
7175
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
6839
|
-
|
|
6840
|
-
status: "active" | "pending" | "deactivated";
|
|
7176
|
+
fullHonorificName?: string | undefined;
|
|
6841
7177
|
avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
6842
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
6843
7178
|
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
7179
|
} | {
|
|
6850
7180
|
id: string & import("zod").$brand<"UUID">;
|
|
6851
|
-
name: string;
|
|
6852
7181
|
type: "system";
|
|
7182
|
+
name: string;
|
|
6853
7183
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
6854
7184
|
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
7185
|
})[];
|
|
6861
7186
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
6862
7187
|
}>;
|
|
@@ -6874,33 +7199,24 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6874
7199
|
};
|
|
6875
7200
|
output: ({
|
|
6876
7201
|
id: string & import("zod").$brand<"UUID">;
|
|
7202
|
+
type: "user";
|
|
6877
7203
|
name: {
|
|
6878
7204
|
firstname: string;
|
|
6879
7205
|
surname: string;
|
|
6880
7206
|
};
|
|
6881
7207
|
role: string;
|
|
6882
7208
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
6883
|
-
type: "user";
|
|
6884
7209
|
status: "active" | "pending" | "deactivated";
|
|
7210
|
+
fullHonorificName?: string | undefined;
|
|
6885
7211
|
avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
6886
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
6887
7212
|
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
7213
|
} | {
|
|
6894
7214
|
id: string & import("zod").$brand<"UUID">;
|
|
6895
|
-
name: string;
|
|
6896
7215
|
type: "system";
|
|
7216
|
+
name: string;
|
|
6897
7217
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
6898
7218
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
6899
|
-
|
|
6900
|
-
avatar?: undefined;
|
|
6901
|
-
fullHonorificName?: string | undefined;
|
|
6902
|
-
legacyId?: string | undefined;
|
|
6903
|
-
status?: undefined;
|
|
7219
|
+
status?: "active" | "pending" | "deactivated" | undefined;
|
|
6904
7220
|
})[];
|
|
6905
7221
|
meta: object;
|
|
6906
7222
|
}>;
|
|
@@ -20,7 +20,6 @@ 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>>;
|
|
24
23
|
}, z.core.$strip>>>;
|
|
25
24
|
REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
26
25
|
createdAt: z.ZodISODateTime;
|
|
@@ -32,7 +31,6 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
32
31
|
}>>>;
|
|
33
32
|
acceptedAt: z.ZodISODateTime;
|
|
34
33
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
35
|
-
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
34
|
registrationNumber: z.ZodString;
|
|
37
35
|
}, z.core.$strip>>>;
|
|
38
36
|
}, z.core.$strip>;
|
|
@@ -46,7 +44,6 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
46
44
|
}>>>;
|
|
47
45
|
updatedByUserRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
46
|
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">>>;
|
|
50
47
|
updatedAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
51
48
|
updatedAt: z.ZodISODateTime;
|
|
52
49
|
assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -23,7 +23,6 @@ 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>>;
|
|
27
26
|
}, z.core.$strip>;
|
|
28
27
|
export type ActionCreationMetadata = z.infer<typeof ActionCreationMetadata>;
|
|
29
28
|
export declare const RegistrationCreationMetadata: z.ZodObject<{
|
|
@@ -36,7 +35,6 @@ export declare const RegistrationCreationMetadata: z.ZodObject<{
|
|
|
36
35
|
}>>>;
|
|
37
36
|
acceptedAt: z.ZodISODateTime;
|
|
38
37
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
39
|
-
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
38
|
registrationNumber: z.ZodString;
|
|
41
39
|
}, z.core.$strip>;
|
|
42
40
|
export type RegistrationCreationMetadata = z.infer<typeof RegistrationCreationMetadata>;
|
|
@@ -51,7 +49,6 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
|
51
49
|
}>>>;
|
|
52
50
|
acceptedAt: z.ZodISODateTime;
|
|
53
51
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
54
|
-
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
52
|
}, z.core.$strip>>>;
|
|
56
53
|
REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
57
54
|
createdAt: z.ZodISODateTime;
|
|
@@ -63,7 +60,6 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
|
63
60
|
}>>>;
|
|
64
61
|
acceptedAt: z.ZodISODateTime;
|
|
65
62
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
66
|
-
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
63
|
registrationNumber: z.ZodString;
|
|
68
64
|
}, z.core.$strip>>>;
|
|
69
65
|
}, z.core.$strip>;
|
|
@@ -93,7 +89,6 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
93
89
|
}>>>;
|
|
94
90
|
acceptedAt: z.ZodISODateTime;
|
|
95
91
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
96
|
-
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
92
|
}, z.core.$strip>>>;
|
|
98
93
|
REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
99
94
|
createdAt: z.ZodISODateTime;
|
|
@@ -105,7 +100,6 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
105
100
|
}>>>;
|
|
106
101
|
acceptedAt: z.ZodISODateTime;
|
|
107
102
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
108
|
-
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
109
103
|
registrationNumber: z.ZodString;
|
|
110
104
|
}, z.core.$strip>>>;
|
|
111
105
|
}, z.core.$strip>;
|
|
@@ -119,7 +113,6 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
119
113
|
}>>>;
|
|
120
114
|
updatedByUserRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
115
|
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">>>;
|
|
123
116
|
updatedAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
124
117
|
updatedAt: z.ZodISODateTime;
|
|
125
118
|
assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -910,6 +910,152 @@ export declare const WorkqueueConfigWithoutQuery: z.ZodObject<{
|
|
|
910
910
|
export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
911
911
|
slug: z.ZodString;
|
|
912
912
|
name: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
913
|
+
action: z.ZodOptional<z.ZodObject<{
|
|
914
|
+
type: z.ZodEnum<{
|
|
915
|
+
DELETE: "DELETE";
|
|
916
|
+
DECLARE: "DECLARE";
|
|
917
|
+
REGISTER: "REGISTER";
|
|
918
|
+
EDIT: "EDIT";
|
|
919
|
+
REJECT: "REJECT";
|
|
920
|
+
MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
|
|
921
|
+
ARCHIVE: "ARCHIVE";
|
|
922
|
+
PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
923
|
+
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
924
|
+
READ: "READ";
|
|
925
|
+
}>;
|
|
926
|
+
}, z.core.$strip>>;
|
|
927
|
+
columns: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
928
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
929
|
+
value: z.ZodObject<{
|
|
930
|
+
$event: z.ZodEnum<{
|
|
931
|
+
id: "id";
|
|
932
|
+
title: "title";
|
|
933
|
+
type: "type";
|
|
934
|
+
updatedAt: "updatedAt";
|
|
935
|
+
placeOfEvent: "placeOfEvent";
|
|
936
|
+
createdByUserType: "createdByUserType";
|
|
937
|
+
createdAt: "createdAt";
|
|
938
|
+
createdBy: "createdBy";
|
|
939
|
+
createdAtLocation: "createdAtLocation";
|
|
940
|
+
status: "status";
|
|
941
|
+
assignedTo: "assignedTo";
|
|
942
|
+
trackingId: "trackingId";
|
|
943
|
+
legalStatuses: "legalStatuses";
|
|
944
|
+
dateOfEvent: "dateOfEvent";
|
|
945
|
+
updatedByUserRole: "updatedByUserRole";
|
|
946
|
+
updatedAtLocation: "updatedAtLocation";
|
|
947
|
+
updatedBy: "updatedBy";
|
|
948
|
+
flags: "flags";
|
|
949
|
+
outbox: "outbox";
|
|
950
|
+
}>;
|
|
951
|
+
}, z.core.$strip>;
|
|
952
|
+
}, z.core.$strip>>>;
|
|
953
|
+
icon: z.ZodEnum<{
|
|
954
|
+
Archived: "Archived";
|
|
955
|
+
Assigned: "Assigned";
|
|
956
|
+
Briefcase: "Briefcase";
|
|
957
|
+
Certified: "Certified";
|
|
958
|
+
Close: "Close";
|
|
959
|
+
Collapse: "Collapse";
|
|
960
|
+
Draft: "Draft";
|
|
961
|
+
DuplicateYellow: "DuplicateYellow";
|
|
962
|
+
Expand: "Expand";
|
|
963
|
+
ExternalValidate: "ExternalValidate";
|
|
964
|
+
FilledCheck: "FilledCheck";
|
|
965
|
+
InReview: "InReview";
|
|
966
|
+
Offline: "Offline";
|
|
967
|
+
Registered: "Registered";
|
|
968
|
+
RequiresUpdates: "RequiresUpdates";
|
|
969
|
+
Sent: "Sent";
|
|
970
|
+
Validated: "Validated";
|
|
971
|
+
WaitingApproval: "WaitingApproval";
|
|
972
|
+
ChartActivity: "ChartActivity";
|
|
973
|
+
Activity: "Activity";
|
|
974
|
+
Archive: "Archive";
|
|
975
|
+
ArchiveTray: "ArchiveTray";
|
|
976
|
+
ArrowLeft: "ArrowLeft";
|
|
977
|
+
ArrowRight: "ArrowRight";
|
|
978
|
+
Buildings: "Buildings";
|
|
979
|
+
Circle: "Circle";
|
|
980
|
+
CaretDown: "CaretDown";
|
|
981
|
+
CaretLeft: "CaretLeft";
|
|
982
|
+
CaretRight: "CaretRight";
|
|
983
|
+
ChartBar: "ChartBar";
|
|
984
|
+
ChartLine: "ChartLine";
|
|
985
|
+
ChatCircle: "ChatCircle";
|
|
986
|
+
CheckSquare: "CheckSquare";
|
|
987
|
+
Compass: "Compass";
|
|
988
|
+
Check: "Check";
|
|
989
|
+
Copy: "Copy";
|
|
990
|
+
Database: "Database";
|
|
991
|
+
DotsThreeVertical: "DotsThreeVertical";
|
|
992
|
+
ArrowCounterClockwise: "ArrowCounterClockwise";
|
|
993
|
+
MagnifyingGlassMinus: "MagnifyingGlassMinus";
|
|
994
|
+
MagnifyingGlassPlus: "MagnifyingGlassPlus";
|
|
995
|
+
Export: "Export";
|
|
996
|
+
Eye: "Eye";
|
|
997
|
+
EyeSlash: "EyeSlash";
|
|
998
|
+
Envelope: "Envelope";
|
|
999
|
+
File: "File";
|
|
1000
|
+
FileSearch: "FileSearch";
|
|
1001
|
+
FileMinus: "FileMinus";
|
|
1002
|
+
FilePlus: "FilePlus";
|
|
1003
|
+
FileText: "FileText";
|
|
1004
|
+
FileX: "FileX";
|
|
1005
|
+
Handshake: "Handshake";
|
|
1006
|
+
Gear: "Gear";
|
|
1007
|
+
GitBranch: "GitBranch";
|
|
1008
|
+
IdentificationCard: "IdentificationCard";
|
|
1009
|
+
List: "List";
|
|
1010
|
+
ListBullets: "ListBullets";
|
|
1011
|
+
Lock: "Lock";
|
|
1012
|
+
MagnifyingGlass: "MagnifyingGlass";
|
|
1013
|
+
MapPin: "MapPin";
|
|
1014
|
+
Medal: "Medal";
|
|
1015
|
+
NotePencil: "NotePencil";
|
|
1016
|
+
Paperclip: "Paperclip";
|
|
1017
|
+
PaperPlaneTilt: "PaperPlaneTilt";
|
|
1018
|
+
Pen: "Pen";
|
|
1019
|
+
PenNib: "PenNib";
|
|
1020
|
+
Pencil: "Pencil";
|
|
1021
|
+
PencilSimpleLine: "PencilSimpleLine";
|
|
1022
|
+
Phone: "Phone";
|
|
1023
|
+
Plus: "Plus";
|
|
1024
|
+
Printer: "Printer";
|
|
1025
|
+
SignOut: "SignOut";
|
|
1026
|
+
Stamp: "Stamp";
|
|
1027
|
+
Star: "Star";
|
|
1028
|
+
Target: "Target";
|
|
1029
|
+
TextT: "TextT";
|
|
1030
|
+
Trash: "Trash";
|
|
1031
|
+
UploadSimple: "UploadSimple";
|
|
1032
|
+
User: "User";
|
|
1033
|
+
UserPlus: "UserPlus";
|
|
1034
|
+
Users: "Users";
|
|
1035
|
+
WarningCircle: "WarningCircle";
|
|
1036
|
+
X: "X";
|
|
1037
|
+
ChatText: "ChatText";
|
|
1038
|
+
CircleWavyCheck: "CircleWavyCheck";
|
|
1039
|
+
CircleWavyQuestion: "CircleWavyQuestion";
|
|
1040
|
+
ArchiveBox: "ArchiveBox";
|
|
1041
|
+
ArrowCircleDown: "ArrowCircleDown";
|
|
1042
|
+
FileArrowUp: "FileArrowUp";
|
|
1043
|
+
FileDotted: "FileDotted";
|
|
1044
|
+
Files: "Files";
|
|
1045
|
+
PencilLine: "PencilLine";
|
|
1046
|
+
PencilCircle: "PencilCircle";
|
|
1047
|
+
UserCircle: "UserCircle";
|
|
1048
|
+
Clock: "Clock";
|
|
1049
|
+
QrCode: "QrCode";
|
|
1050
|
+
Webcam: "Webcam";
|
|
1051
|
+
Sun: "Sun";
|
|
1052
|
+
DeviceTabletCamera: "DeviceTabletCamera";
|
|
1053
|
+
Globe: "Globe";
|
|
1054
|
+
Fingerprint: "Fingerprint";
|
|
1055
|
+
PushPin: "PushPin";
|
|
1056
|
+
Timer: "Timer";
|
|
1057
|
+
}>;
|
|
1058
|
+
emptyMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
913
1059
|
query: z.ZodUnion<readonly [z.ZodObject<{
|
|
914
1060
|
eventType: z.ZodOptional<z.ZodString>;
|
|
915
1061
|
status: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1838,152 +1984,6 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
|
1838
1984
|
data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1839
1985
|
}, z.core.$strip>>;
|
|
1840
1986
|
}, z.core.$strip>]>;
|
|
1841
|
-
action: z.ZodOptional<z.ZodObject<{
|
|
1842
|
-
type: z.ZodEnum<{
|
|
1843
|
-
DELETE: "DELETE";
|
|
1844
|
-
DECLARE: "DECLARE";
|
|
1845
|
-
REGISTER: "REGISTER";
|
|
1846
|
-
EDIT: "EDIT";
|
|
1847
|
-
REJECT: "REJECT";
|
|
1848
|
-
MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
|
|
1849
|
-
ARCHIVE: "ARCHIVE";
|
|
1850
|
-
PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
1851
|
-
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
1852
|
-
READ: "READ";
|
|
1853
|
-
}>;
|
|
1854
|
-
}, z.core.$strip>>;
|
|
1855
|
-
columns: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1856
|
-
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
1857
|
-
value: z.ZodObject<{
|
|
1858
|
-
$event: z.ZodEnum<{
|
|
1859
|
-
id: "id";
|
|
1860
|
-
title: "title";
|
|
1861
|
-
type: "type";
|
|
1862
|
-
updatedAt: "updatedAt";
|
|
1863
|
-
placeOfEvent: "placeOfEvent";
|
|
1864
|
-
createdByUserType: "createdByUserType";
|
|
1865
|
-
createdAt: "createdAt";
|
|
1866
|
-
createdBy: "createdBy";
|
|
1867
|
-
createdAtLocation: "createdAtLocation";
|
|
1868
|
-
status: "status";
|
|
1869
|
-
assignedTo: "assignedTo";
|
|
1870
|
-
trackingId: "trackingId";
|
|
1871
|
-
legalStatuses: "legalStatuses";
|
|
1872
|
-
dateOfEvent: "dateOfEvent";
|
|
1873
|
-
updatedByUserRole: "updatedByUserRole";
|
|
1874
|
-
updatedAtLocation: "updatedAtLocation";
|
|
1875
|
-
updatedBy: "updatedBy";
|
|
1876
|
-
flags: "flags";
|
|
1877
|
-
outbox: "outbox";
|
|
1878
|
-
}>;
|
|
1879
|
-
}, z.core.$strip>;
|
|
1880
|
-
}, z.core.$strip>>>;
|
|
1881
|
-
icon: z.ZodEnum<{
|
|
1882
|
-
Archived: "Archived";
|
|
1883
|
-
Assigned: "Assigned";
|
|
1884
|
-
Briefcase: "Briefcase";
|
|
1885
|
-
Certified: "Certified";
|
|
1886
|
-
Close: "Close";
|
|
1887
|
-
Collapse: "Collapse";
|
|
1888
|
-
Draft: "Draft";
|
|
1889
|
-
DuplicateYellow: "DuplicateYellow";
|
|
1890
|
-
Expand: "Expand";
|
|
1891
|
-
ExternalValidate: "ExternalValidate";
|
|
1892
|
-
FilledCheck: "FilledCheck";
|
|
1893
|
-
InReview: "InReview";
|
|
1894
|
-
Offline: "Offline";
|
|
1895
|
-
Registered: "Registered";
|
|
1896
|
-
RequiresUpdates: "RequiresUpdates";
|
|
1897
|
-
Sent: "Sent";
|
|
1898
|
-
Validated: "Validated";
|
|
1899
|
-
WaitingApproval: "WaitingApproval";
|
|
1900
|
-
ChartActivity: "ChartActivity";
|
|
1901
|
-
Activity: "Activity";
|
|
1902
|
-
Archive: "Archive";
|
|
1903
|
-
ArchiveTray: "ArchiveTray";
|
|
1904
|
-
ArrowLeft: "ArrowLeft";
|
|
1905
|
-
ArrowRight: "ArrowRight";
|
|
1906
|
-
Buildings: "Buildings";
|
|
1907
|
-
Circle: "Circle";
|
|
1908
|
-
CaretDown: "CaretDown";
|
|
1909
|
-
CaretLeft: "CaretLeft";
|
|
1910
|
-
CaretRight: "CaretRight";
|
|
1911
|
-
ChartBar: "ChartBar";
|
|
1912
|
-
ChartLine: "ChartLine";
|
|
1913
|
-
ChatCircle: "ChatCircle";
|
|
1914
|
-
CheckSquare: "CheckSquare";
|
|
1915
|
-
Compass: "Compass";
|
|
1916
|
-
Check: "Check";
|
|
1917
|
-
Copy: "Copy";
|
|
1918
|
-
Database: "Database";
|
|
1919
|
-
DotsThreeVertical: "DotsThreeVertical";
|
|
1920
|
-
ArrowCounterClockwise: "ArrowCounterClockwise";
|
|
1921
|
-
MagnifyingGlassMinus: "MagnifyingGlassMinus";
|
|
1922
|
-
MagnifyingGlassPlus: "MagnifyingGlassPlus";
|
|
1923
|
-
Export: "Export";
|
|
1924
|
-
Eye: "Eye";
|
|
1925
|
-
EyeSlash: "EyeSlash";
|
|
1926
|
-
Envelope: "Envelope";
|
|
1927
|
-
File: "File";
|
|
1928
|
-
FileSearch: "FileSearch";
|
|
1929
|
-
FileMinus: "FileMinus";
|
|
1930
|
-
FilePlus: "FilePlus";
|
|
1931
|
-
FileText: "FileText";
|
|
1932
|
-
FileX: "FileX";
|
|
1933
|
-
Handshake: "Handshake";
|
|
1934
|
-
Gear: "Gear";
|
|
1935
|
-
GitBranch: "GitBranch";
|
|
1936
|
-
IdentificationCard: "IdentificationCard";
|
|
1937
|
-
List: "List";
|
|
1938
|
-
ListBullets: "ListBullets";
|
|
1939
|
-
Lock: "Lock";
|
|
1940
|
-
MagnifyingGlass: "MagnifyingGlass";
|
|
1941
|
-
MapPin: "MapPin";
|
|
1942
|
-
Medal: "Medal";
|
|
1943
|
-
NotePencil: "NotePencil";
|
|
1944
|
-
Paperclip: "Paperclip";
|
|
1945
|
-
PaperPlaneTilt: "PaperPlaneTilt";
|
|
1946
|
-
Pen: "Pen";
|
|
1947
|
-
PenNib: "PenNib";
|
|
1948
|
-
Pencil: "Pencil";
|
|
1949
|
-
PencilSimpleLine: "PencilSimpleLine";
|
|
1950
|
-
Phone: "Phone";
|
|
1951
|
-
Plus: "Plus";
|
|
1952
|
-
Printer: "Printer";
|
|
1953
|
-
SignOut: "SignOut";
|
|
1954
|
-
Stamp: "Stamp";
|
|
1955
|
-
Star: "Star";
|
|
1956
|
-
Target: "Target";
|
|
1957
|
-
TextT: "TextT";
|
|
1958
|
-
Trash: "Trash";
|
|
1959
|
-
UploadSimple: "UploadSimple";
|
|
1960
|
-
User: "User";
|
|
1961
|
-
UserPlus: "UserPlus";
|
|
1962
|
-
Users: "Users";
|
|
1963
|
-
WarningCircle: "WarningCircle";
|
|
1964
|
-
X: "X";
|
|
1965
|
-
ChatText: "ChatText";
|
|
1966
|
-
CircleWavyCheck: "CircleWavyCheck";
|
|
1967
|
-
CircleWavyQuestion: "CircleWavyQuestion";
|
|
1968
|
-
ArchiveBox: "ArchiveBox";
|
|
1969
|
-
ArrowCircleDown: "ArrowCircleDown";
|
|
1970
|
-
FileArrowUp: "FileArrowUp";
|
|
1971
|
-
FileDotted: "FileDotted";
|
|
1972
|
-
Files: "Files";
|
|
1973
|
-
PencilLine: "PencilLine";
|
|
1974
|
-
PencilCircle: "PencilCircle";
|
|
1975
|
-
UserCircle: "UserCircle";
|
|
1976
|
-
Clock: "Clock";
|
|
1977
|
-
QrCode: "QrCode";
|
|
1978
|
-
Webcam: "Webcam";
|
|
1979
|
-
Sun: "Sun";
|
|
1980
|
-
DeviceTabletCamera: "DeviceTabletCamera";
|
|
1981
|
-
Globe: "Globe";
|
|
1982
|
-
Fingerprint: "Fingerprint";
|
|
1983
|
-
PushPin: "PushPin";
|
|
1984
|
-
Timer: "Timer";
|
|
1985
|
-
}>;
|
|
1986
|
-
emptyMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
1987
1987
|
}, z.core.$strip>;
|
|
1988
1988
|
export type WorkqueueConfig = z.infer<typeof WorkqueueConfig>;
|
|
1989
1989
|
export type WorkqueueConfigWithoutQuery = z.infer<typeof WorkqueueConfigWithoutQuery>;
|
|
@@ -9,7 +9,6 @@ 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;
|
|
13
12
|
type NonNullableDeep<T> = T extends [unknown, ...unknown[]] ? {
|
|
14
13
|
[K in keyof T]: NonNullableDeep<NonNullable<T[K]>>;
|
|
15
14
|
} : T extends UUID ? T : T extends DocumentPath ? T : T extends string ? NonNullable<T> : T extends (infer U)[] ? NonNullableDeep<U>[] : T extends object ? {
|
|
@@ -73,7 +72,6 @@ export declare function applyDraftToEventIndex(eventIndex: EventIndex, draft: Dr
|
|
|
73
72
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
74
73
|
createdByUserType?: "user" | "system" | null | undefined;
|
|
75
74
|
createdByRole?: string | undefined;
|
|
76
|
-
createdBySignature?: string | null | undefined;
|
|
77
75
|
} | null | undefined;
|
|
78
76
|
REGISTERED?: {
|
|
79
77
|
createdAt: string;
|
|
@@ -83,7 +81,6 @@ export declare function applyDraftToEventIndex(eventIndex: EventIndex, draft: Dr
|
|
|
83
81
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
84
82
|
createdByUserType?: "user" | "system" | null | undefined;
|
|
85
83
|
createdByRole?: string | undefined;
|
|
86
|
-
createdBySignature?: string | null | undefined;
|
|
87
84
|
} | null | undefined;
|
|
88
85
|
};
|
|
89
86
|
createdAt: string;
|
|
@@ -101,7 +98,6 @@ export declare function applyDraftToEventIndex(eventIndex: EventIndex, draft: Dr
|
|
|
101
98
|
createdByUserType?: "user" | "system" | null | undefined;
|
|
102
99
|
updatedByUserRole?: string | null | undefined;
|
|
103
100
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
104
|
-
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
105
101
|
updatedAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
106
102
|
assignedTo?: string | null | undefined;
|
|
107
103
|
updatedBy?: string | null | undefined;
|
|
@@ -312,7 +312,6 @@ 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;
|
|
316
315
|
registrationNumber: string | null | undefined;
|
|
317
316
|
} | null;
|
|
318
317
|
REGISTERED: {
|
|
@@ -322,7 +321,6 @@ export declare function getLegalStatuses(actions: Action[]): {
|
|
|
322
321
|
createdAtLocation: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
323
322
|
acceptedAt: string;
|
|
324
323
|
createdByRole: string | undefined;
|
|
325
|
-
createdBySignature: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
326
324
|
registrationNumber: string | null | undefined;
|
|
327
325
|
} | null;
|
|
328
326
|
};
|
package/dist/events/index.js
CHANGED
|
@@ -306,7 +306,6 @@ __export(events_exports, {
|
|
|
306
306
|
getAllUniqueFields: () => getAllUniqueFields,
|
|
307
307
|
getAnnotationFromDrafts: () => getAnnotationFromDrafts,
|
|
308
308
|
getAssignedUserFromActions: () => getAssignedUserFromActions,
|
|
309
|
-
getAssignedUserSignatureFromActions: () => getAssignedUserSignatureFromActions,
|
|
310
309
|
getAssignmentStatus: () => getAssignmentStatus,
|
|
311
310
|
getAvailableActionsForEvent: () => getAvailableActionsForEvent,
|
|
312
311
|
getAvailableRolesForUserUpdatePayload: () => getAvailableRolesForUserUpdatePayload,
|
|
@@ -1078,7 +1077,10 @@ var ActionConditional = z7.discriminatedUnion("type", [
|
|
|
1078
1077
|
ShowConditional,
|
|
1079
1078
|
// Action can be shown to the user in the list but as disabled
|
|
1080
1079
|
EnableConditional
|
|
1081
|
-
])
|
|
1080
|
+
]).meta({
|
|
1081
|
+
description: "Action conditional configuration",
|
|
1082
|
+
id: "ActionConditional"
|
|
1083
|
+
});
|
|
1082
1084
|
var DisplayOnReviewConditional = z7.object({
|
|
1083
1085
|
type: z7.literal(ConditionalType.DISPLAY_ON_REVIEW),
|
|
1084
1086
|
conditional: Conditional
|
|
@@ -1737,6 +1739,9 @@ var FlagConfig = z15.object({
|
|
|
1737
1739
|
"Indicates if this flag expects an action to be performed to be cleared."
|
|
1738
1740
|
),
|
|
1739
1741
|
label: TranslationConfig.describe("Human readable label of the flag.")
|
|
1742
|
+
}).meta({
|
|
1743
|
+
description: "Flag configuration",
|
|
1744
|
+
id: "FlagConfig"
|
|
1740
1745
|
});
|
|
1741
1746
|
var ActionFlagConfig = z15.object({
|
|
1742
1747
|
id: Flag,
|
|
@@ -1744,6 +1749,9 @@ var ActionFlagConfig = z15.object({
|
|
|
1744
1749
|
conditional: Conditional.optional().describe(
|
|
1745
1750
|
"When conditional is met, the operation is performed on the flag. If not provided, the operation is performed unconditionally."
|
|
1746
1751
|
)
|
|
1752
|
+
}).meta({
|
|
1753
|
+
description: "Action flag configuration",
|
|
1754
|
+
id: "ActionFlagConfig"
|
|
1747
1755
|
});
|
|
1748
1756
|
|
|
1749
1757
|
// ../commons/src/events/EventMetadata.ts
|
|
@@ -1765,8 +1773,7 @@ var ActionCreationMetadata = z16.object({
|
|
|
1765
1773
|
),
|
|
1766
1774
|
createdByUserType: z16.enum(["user", "system"]).nullish().describe("Whether the user is a normal user or a system."),
|
|
1767
1775
|
acceptedAt: z16.iso.datetime().describe("Timestamp when the action request was accepted."),
|
|
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.")
|
|
1776
|
+
createdByRole: z16.string().optional().describe("Role of the user at the time of action request creation.")
|
|
1770
1777
|
});
|
|
1771
1778
|
var RegistrationCreationMetadata = ActionCreationMetadata.extend({
|
|
1772
1779
|
registrationNumber: z16.string().describe(
|
|
@@ -1794,9 +1801,6 @@ var EventMetadata = z16.object({
|
|
|
1794
1801
|
createdAtLocation: UUID.nullish().describe(
|
|
1795
1802
|
"Location of the user who created the event."
|
|
1796
1803
|
),
|
|
1797
|
-
createdBySignature: DocumentPath.nullish().describe(
|
|
1798
|
-
"Signature of the user who created the event."
|
|
1799
|
-
),
|
|
1800
1804
|
updatedAtLocation: UUID.nullish().describe(
|
|
1801
1805
|
"Location of the user who last changed the status."
|
|
1802
1806
|
),
|
|
@@ -2171,7 +2175,7 @@ var FieldId = import_v43.default.string().superRefine((val, ctx) => {
|
|
|
2171
2175
|
}
|
|
2172
2176
|
}).describe("Unique identifier for the field");
|
|
2173
2177
|
var FieldReference = import_v43.default.object({
|
|
2174
|
-
$$field: FieldId,
|
|
2178
|
+
$$field: FieldId.describe("Id of the field to reference"),
|
|
2175
2179
|
$$subfield: import_v43.default.array(import_v43.default.string()).optional().default([]).describe(
|
|
2176
2180
|
'If the FieldValue is an object, subfield can be used to refer to e.g. `["foo", "bar"]` in `{ foo: { bar: 3 } }`'
|
|
2177
2181
|
)
|
|
@@ -2884,10 +2888,10 @@ var VerificationPageConfig = FormPageConfig.extend({
|
|
|
2884
2888
|
type: z21.literal(PageTypes.enum.VERIFICATION),
|
|
2885
2889
|
actions: VerificationActionConfig
|
|
2886
2890
|
});
|
|
2887
|
-
var PageConfig = z21.discriminatedUnion("type", [
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
+
var PageConfig = z21.discriminatedUnion("type", [FormPageConfig, VerificationPageConfig]).meta({
|
|
2892
|
+
description: "Page configuration",
|
|
2893
|
+
id: "PageConfig"
|
|
2894
|
+
});
|
|
2891
2895
|
|
|
2892
2896
|
// ../commons/src/events/FormConfig.ts
|
|
2893
2897
|
var DeclarationFormConfig = z22.object({
|
|
@@ -5368,7 +5372,7 @@ var _EventConfigBase = z33.object({
|
|
|
5368
5372
|
),
|
|
5369
5373
|
label: TranslationConfig.describe("Human-readable label for the event type."),
|
|
5370
5374
|
actions: z33.array(ActionConfig).describe(
|
|
5371
|
-
"Configuration of
|
|
5375
|
+
"Configuration of core and custom actions associated with the event."
|
|
5372
5376
|
),
|
|
5373
5377
|
actionOrder: z33.array(z33.string()).optional().describe(
|
|
5374
5378
|
"Order of actions in the action menu. Use either the action type for core actions or the customActionType for custom actions."
|
|
@@ -5380,7 +5384,7 @@ var _EventConfigBase = z33.object({
|
|
|
5380
5384
|
"Configuration of fields available in the advanced search feature."
|
|
5381
5385
|
),
|
|
5382
5386
|
flags: z33.array(FlagConfig).optional().default([]).describe(
|
|
5383
|
-
"Configuration of flags associated with the actions of this event type."
|
|
5387
|
+
"Configuration of custom flags associated with the actions of this event type."
|
|
5384
5388
|
),
|
|
5385
5389
|
analytics: z33.boolean().optional().default(true).describe(
|
|
5386
5390
|
"Indicates whether the records of this event type are included in analytics"
|
|
@@ -5819,18 +5823,11 @@ var WorkqueueConfigWithoutQuery = WorkqueueConfig.omit({
|
|
|
5819
5823
|
query: true,
|
|
5820
5824
|
columns: true
|
|
5821
5825
|
});
|
|
5822
|
-
var WorkqueueConfigInput =
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
query: CountryConfigQueryInputType,
|
|
5828
|
-
action: z37.object({ type: WorkqueueActionType }).optional().describe(
|
|
5829
|
-
"Workqueue call-to-action button configuration. This determines the quick action button shown on each event card and the action taken when the button is clicked."
|
|
5830
|
-
),
|
|
5831
|
-
columns: z37.array(WorkqueueColumn).default(mandatoryColumns),
|
|
5832
|
-
icon: AvailableIcons,
|
|
5833
|
-
emptyMessage: TranslationConfig.optional()
|
|
5826
|
+
var WorkqueueConfigInput = WorkqueueConfig.extend({
|
|
5827
|
+
query: CountryConfigQueryInputType
|
|
5828
|
+
}).meta({
|
|
5829
|
+
description: "Workqueue configuration",
|
|
5830
|
+
id: "WorkqueueConfig"
|
|
5834
5831
|
});
|
|
5835
5832
|
function defineWorkqueue(workqueueInput) {
|
|
5836
5833
|
const queryInput = workqueueInput.query;
|
|
@@ -6147,7 +6144,6 @@ function getDeclarationActionCreationMetadata(actionType, actions) {
|
|
|
6147
6144
|
createdAtLocation: requestAction?.createdAtLocation ?? acceptAction.createdAtLocation,
|
|
6148
6145
|
acceptedAt: acceptAction.createdAt,
|
|
6149
6146
|
createdByRole: requestAction?.createdByRole ?? acceptAction.createdByRole,
|
|
6150
|
-
createdBySignature: requestAction?.createdBySignature ?? acceptAction.createdBySignature,
|
|
6151
6147
|
registrationNumber
|
|
6152
6148
|
};
|
|
6153
6149
|
}
|
|
@@ -6361,17 +6357,6 @@ function getAssignedUserFromActions(actions) {
|
|
|
6361
6357
|
return user2;
|
|
6362
6358
|
}, null);
|
|
6363
6359
|
}
|
|
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
|
-
}
|
|
6375
6360
|
function deepDropNulls(obj) {
|
|
6376
6361
|
if (Array.isArray(obj)) {
|
|
6377
6362
|
return obj.map(deepDropNulls);
|
|
@@ -6467,10 +6452,8 @@ function getCurrentEventState(event2, config) {
|
|
|
6467
6452
|
createdBy: creationAction.createdBy,
|
|
6468
6453
|
createdByUserType: creationAction.createdByUserType,
|
|
6469
6454
|
createdAtLocation: creationAction.createdAtLocation,
|
|
6470
|
-
createdBySignature: creationAction.createdBySignature,
|
|
6471
6455
|
updatedAt: acceptedActionMetadata.createdAt,
|
|
6472
6456
|
assignedTo: getAssignedUserFromActions(acceptedActions),
|
|
6473
|
-
assignedToSignature: getAssignedUserSignatureFromActions(acceptedActions),
|
|
6474
6457
|
updatedBy: requestActionMetadata.createdBy,
|
|
6475
6458
|
updatedAtLocation: requestActionMetadata.createdAtLocation,
|
|
6476
6459
|
declaration,
|
|
@@ -9729,7 +9712,6 @@ var eventQueryDataGenerator = (overrides = {}, seed = 1) => {
|
|
|
9729
9712
|
createdBy: overrides.createdBy ?? generateUuid(rng),
|
|
9730
9713
|
createdAtLocation: overrides.createdAtLocation ?? generateUuid(rng),
|
|
9731
9714
|
updatedAtLocation: overrides.updatedAtLocation ?? generateUuid(rng),
|
|
9732
|
-
createdBySignature: overrides.createdBySignature ?? generateRandomSignature(rng),
|
|
9733
9715
|
updatedAt: overrides.updatedAt ?? (0, import_date_fns4.addDays)(new Date(createdAt), 1).toISOString(),
|
|
9734
9716
|
assignedTo: overrides.assignedTo ?? null,
|
|
9735
9717
|
updatedBy: overrides.updatedBy ?? generateUuid(rng),
|
|
@@ -652,7 +652,10 @@ var ActionConditional = z7.discriminatedUnion("type", [
|
|
|
652
652
|
ShowConditional,
|
|
653
653
|
// Action can be shown to the user in the list but as disabled
|
|
654
654
|
EnableConditional
|
|
655
|
-
])
|
|
655
|
+
]).meta({
|
|
656
|
+
description: "Action conditional configuration",
|
|
657
|
+
id: "ActionConditional"
|
|
658
|
+
});
|
|
656
659
|
var DisplayOnReviewConditional = z7.object({
|
|
657
660
|
type: z7.literal(ConditionalType.DISPLAY_ON_REVIEW),
|
|
658
661
|
conditional: Conditional
|
|
@@ -1303,6 +1306,9 @@ var FlagConfig = z15.object({
|
|
|
1303
1306
|
"Indicates if this flag expects an action to be performed to be cleared."
|
|
1304
1307
|
),
|
|
1305
1308
|
label: TranslationConfig.describe("Human readable label of the flag.")
|
|
1309
|
+
}).meta({
|
|
1310
|
+
description: "Flag configuration",
|
|
1311
|
+
id: "FlagConfig"
|
|
1306
1312
|
});
|
|
1307
1313
|
var ActionFlagConfig = z15.object({
|
|
1308
1314
|
id: Flag,
|
|
@@ -1310,6 +1316,9 @@ var ActionFlagConfig = z15.object({
|
|
|
1310
1316
|
conditional: Conditional.optional().describe(
|
|
1311
1317
|
"When conditional is met, the operation is performed on the flag. If not provided, the operation is performed unconditionally."
|
|
1312
1318
|
)
|
|
1319
|
+
}).meta({
|
|
1320
|
+
description: "Action flag configuration",
|
|
1321
|
+
id: "ActionFlagConfig"
|
|
1313
1322
|
});
|
|
1314
1323
|
|
|
1315
1324
|
// ../commons/src/events/EventMetadata.ts
|
|
@@ -1331,8 +1340,7 @@ var ActionCreationMetadata = z16.object({
|
|
|
1331
1340
|
),
|
|
1332
1341
|
createdByUserType: z16.enum(["user", "system"]).nullish().describe("Whether the user is a normal user or a system."),
|
|
1333
1342
|
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.")
|
|
1335
|
-
createdBySignature: z16.string().nullish().describe("Signature of the user who created the action request.")
|
|
1343
|
+
createdByRole: z16.string().optional().describe("Role of the user at the time of action request creation.")
|
|
1336
1344
|
});
|
|
1337
1345
|
var RegistrationCreationMetadata = ActionCreationMetadata.extend({
|
|
1338
1346
|
registrationNumber: z16.string().describe(
|
|
@@ -1360,9 +1368,6 @@ var EventMetadata = z16.object({
|
|
|
1360
1368
|
createdAtLocation: UUID.nullish().describe(
|
|
1361
1369
|
"Location of the user who created the event."
|
|
1362
1370
|
),
|
|
1363
|
-
createdBySignature: DocumentPath.nullish().describe(
|
|
1364
|
-
"Signature of the user who created the event."
|
|
1365
|
-
),
|
|
1366
1371
|
updatedAtLocation: UUID.nullish().describe(
|
|
1367
1372
|
"Location of the user who last changed the status."
|
|
1368
1373
|
),
|
|
@@ -1655,7 +1660,7 @@ var FieldId = import_v43.default.string().superRefine((val, ctx) => {
|
|
|
1655
1660
|
}
|
|
1656
1661
|
}).describe("Unique identifier for the field");
|
|
1657
1662
|
var FieldReference = import_v43.default.object({
|
|
1658
|
-
$$field: FieldId,
|
|
1663
|
+
$$field: FieldId.describe("Id of the field to reference"),
|
|
1659
1664
|
$$subfield: import_v43.default.array(import_v43.default.string()).optional().default([]).describe(
|
|
1660
1665
|
'If the FieldValue is an object, subfield can be used to refer to e.g. `["foo", "bar"]` in `{ foo: { bar: 3 } }`'
|
|
1661
1666
|
)
|
|
@@ -2368,10 +2373,10 @@ var VerificationPageConfig = FormPageConfig.extend({
|
|
|
2368
2373
|
type: z21.literal(PageTypes.enum.VERIFICATION),
|
|
2369
2374
|
actions: VerificationActionConfig
|
|
2370
2375
|
});
|
|
2371
|
-
var PageConfig = z21.discriminatedUnion("type", [
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2376
|
+
var PageConfig = z21.discriminatedUnion("type", [FormPageConfig, VerificationPageConfig]).meta({
|
|
2377
|
+
description: "Page configuration",
|
|
2378
|
+
id: "PageConfig"
|
|
2379
|
+
});
|
|
2375
2380
|
|
|
2376
2381
|
// ../commons/src/events/FormConfig.ts
|
|
2377
2382
|
var DeclarationFormConfig = z22.object({
|
|
@@ -3671,7 +3676,7 @@ var _EventConfigBase = z33.object({
|
|
|
3671
3676
|
),
|
|
3672
3677
|
label: TranslationConfig.describe("Human-readable label for the event type."),
|
|
3673
3678
|
actions: z33.array(ActionConfig).describe(
|
|
3674
|
-
"Configuration of
|
|
3679
|
+
"Configuration of core and custom actions associated with the event."
|
|
3675
3680
|
),
|
|
3676
3681
|
actionOrder: z33.array(z33.string()).optional().describe(
|
|
3677
3682
|
"Order of actions in the action menu. Use either the action type for core actions or the customActionType for custom actions."
|
|
@@ -3683,7 +3688,7 @@ var _EventConfigBase = z33.object({
|
|
|
3683
3688
|
"Configuration of fields available in the advanced search feature."
|
|
3684
3689
|
),
|
|
3685
3690
|
flags: z33.array(FlagConfig).optional().default([]).describe(
|
|
3686
|
-
"Configuration of flags associated with the actions of this event type."
|
|
3691
|
+
"Configuration of custom flags associated with the actions of this event type."
|
|
3687
3692
|
),
|
|
3688
3693
|
analytics: z33.boolean().optional().default(true).describe(
|
|
3689
3694
|
"Indicates whether the records of this event type are included in analytics"
|
|
@@ -4121,18 +4126,11 @@ var WorkqueueConfigWithoutQuery = WorkqueueConfig.omit({
|
|
|
4121
4126
|
query: true,
|
|
4122
4127
|
columns: true
|
|
4123
4128
|
});
|
|
4124
|
-
var WorkqueueConfigInput =
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
query: CountryConfigQueryInputType,
|
|
4130
|
-
action: z37.object({ type: WorkqueueActionType }).optional().describe(
|
|
4131
|
-
"Workqueue call-to-action button configuration. This determines the quick action button shown on each event card and the action taken when the button is clicked."
|
|
4132
|
-
),
|
|
4133
|
-
columns: z37.array(WorkqueueColumn).default(mandatoryColumns),
|
|
4134
|
-
icon: AvailableIcons,
|
|
4135
|
-
emptyMessage: TranslationConfig.optional()
|
|
4129
|
+
var WorkqueueConfigInput = WorkqueueConfig.extend({
|
|
4130
|
+
query: CountryConfigQueryInputType
|
|
4131
|
+
}).meta({
|
|
4132
|
+
description: "Workqueue configuration",
|
|
4133
|
+
id: "WorkqueueConfig"
|
|
4136
4134
|
});
|
|
4137
4135
|
var WorkqueueCountInput = z37.array(
|
|
4138
4136
|
z37.object({ slug: z37.string(), query: QueryType })
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|