@opencrvs/toolkit 2.0.0-rc.aa30ed0 → 2.0.0-rc.aaa898a

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.
Files changed (35) hide show
  1. package/create-countryconfig/index.js +50 -20
  2. package/create-countryconfig/package.json +12 -2
  3. package/dist/application-config/index.js +252 -94
  4. package/dist/cli.js +107 -10
  5. package/dist/commons/api/router.d.ts +434 -18
  6. package/dist/commons/application-config/index.d.ts +1 -0
  7. package/dist/commons/conditionals/conditionals.d.ts +354 -4
  8. package/dist/commons/conditionals/validate.d.ts +51 -2
  9. package/dist/commons/events/ActionDocument.d.ts +6 -0
  10. package/dist/commons/events/ActionInput.d.ts +42 -36
  11. package/dist/commons/events/AdvancedSearchConfig.d.ts +342 -0
  12. package/dist/commons/events/Draft.d.ts +2 -3
  13. package/dist/commons/events/EventDocument.d.ts +3 -0
  14. package/dist/commons/events/FieldConfig.d.ts +377 -50
  15. package/dist/commons/events/FieldValue.d.ts +6 -0
  16. package/dist/commons/events/WorkqueueConfig.d.ts +150 -150
  17. package/dist/commons/events/field.d.ts +53 -1
  18. package/dist/commons/events/index.d.ts +2 -0
  19. package/dist/commons/events/state/flags.d.ts +16 -0
  20. package/dist/commons/events/state/utils.d.ts +12 -287
  21. package/dist/commons/events/utils.d.ts +12 -1
  22. package/dist/conditionals/index.js +55 -2
  23. package/dist/events/index.js +930 -204
  24. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.d.ts +3 -0
  25. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.d.ts.map +1 -0
  26. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.js +110 -0
  27. package/dist/migrations/v2.0/index.d.ts.map +1 -1
  28. package/dist/migrations/v2.0/index.js +105 -8
  29. package/dist/notification/index.js +790 -130
  30. package/dist/scopes/index.d.ts +4 -6
  31. package/dist/scopes/index.js +12 -4
  32. package/opencrvs-toolkit-2.0.0-rc.aaa898a.tgz +0 -0
  33. package/package.json +6 -2
  34. package/tsconfig.tsbuildinfo +1 -1
  35. package/opencrvs-toolkit-2.0.0-rc.aa30ed0.tgz +0 -0
@@ -313,6 +313,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
313
313
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
314
314
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
315
315
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
316
+ content?: {
317
+ immediateCorrection?: boolean | undefined;
318
+ } | undefined;
316
319
  } | {
317
320
  id: string & import("zod").$brand<"UUID">;
318
321
  transactionId: string;
@@ -414,7 +417,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
414
417
  createdByUserType: "system" | "user";
415
418
  createdAt: string;
416
419
  createdBy: string;
417
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
420
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
418
421
  status: "Rejected";
419
422
  createdByRole?: string | undefined;
420
423
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -429,6 +432,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
429
432
  input: {
430
433
  eventId: string;
431
434
  customActionType?: string | undefined;
435
+ waitFor?: boolean | undefined;
432
436
  };
433
437
  output: {
434
438
  id: string & import("zod").$brand<"UUID">;
@@ -621,6 +625,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
621
625
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
622
626
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
623
627
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
628
+ content?: {
629
+ immediateCorrection?: boolean | undefined;
630
+ } | undefined;
624
631
  } | {
625
632
  id: string & import("zod").$brand<"UUID">;
626
633
  transactionId: string;
@@ -722,7 +729,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
722
729
  createdByUserType: "system" | "user";
723
730
  createdAt: string;
724
731
  createdBy: string;
725
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
732
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
726
733
  status: "Rejected";
727
734
  createdByRole?: string | undefined;
728
735
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -929,6 +936,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
929
936
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
930
937
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
931
938
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
939
+ content?: {
940
+ immediateCorrection?: boolean | undefined;
941
+ } | undefined;
932
942
  } | {
933
943
  id: string & import("zod").$brand<"UUID">;
934
944
  transactionId: string;
@@ -1030,7 +1040,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1030
1040
  createdByUserType: "system" | "user";
1031
1041
  createdAt: string;
1032
1042
  createdBy: string;
1033
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
1043
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
1034
1044
  status: "Rejected";
1035
1045
  createdByRole?: string | undefined;
1036
1046
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -1080,7 +1090,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1080
1090
  transactionId: string;
1081
1091
  createdAt: string;
1082
1092
  action: {
1083
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "CUSTOM" | "CREATE" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "ASSIGN" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "UNASSIGN";
1093
+ type: "CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM";
1084
1094
  transactionId: string;
1085
1095
  createdByUserType: "system" | "user";
1086
1096
  createdAt: string;
@@ -1097,18 +1107,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1097
1107
  }>;
1098
1108
  create: import("@trpc/server").TRPCMutationProcedure<{
1099
1109
  input: {
1100
- eventId: string;
1101
1110
  transactionId: string;
1102
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "CUSTOM" | "CREATE" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "ASSIGN" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "UNASSIGN";
1111
+ eventId: string;
1112
+ type: "CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM";
1103
1113
  status: "Requested" | "Accepted" | "Rejected";
1114
+ createdAtLocation?: string | null | undefined;
1104
1115
  declaration?: Record<string, unknown> | undefined;
1105
1116
  annotation?: Record<string, unknown> | undefined;
1106
1117
  originalActionId?: string | undefined;
1107
1118
  keepAssignment?: boolean | undefined;
1108
1119
  keepAssignmentIfAccepted?: boolean | undefined;
1109
1120
  keepAssignmentIfRejected?: boolean | undefined;
1110
- waitFor?: boolean | undefined;
1111
- createdAtLocation?: string | null | undefined;
1112
1121
  };
1113
1122
  output: {
1114
1123
  id: string & import("zod").$brand<"UUID">;
@@ -1116,7 +1125,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1116
1125
  transactionId: string;
1117
1126
  createdAt: string;
1118
1127
  action: {
1119
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "CUSTOM" | "CREATE" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "ASSIGN" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "UNASSIGN";
1128
+ type: "CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM";
1120
1129
  transactionId: string;
1121
1130
  createdByUserType: "system" | "user";
1122
1131
  createdAt: string;
@@ -1388,6 +1397,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1388
1397
  waitFor?: boolean | undefined;
1389
1398
  createdAtLocation?: string | null | undefined;
1390
1399
  type?: "APPROVE_CORRECTION" | undefined;
1400
+ content?: {
1401
+ immediateCorrection?: boolean | undefined;
1402
+ } | undefined;
1391
1403
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1392
1404
  eventId: string;
1393
1405
  transactionId: string;
@@ -1439,12 +1451,355 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1439
1451
  transactionId: import("zod").ZodString;
1440
1452
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
1441
1453
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
1454
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
1442
1455
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
1443
1456
  }, import("zod/v4/core").$strip>>;
1444
1457
  output: import("../commons").EventDocument;
1445
1458
  meta: import("trpc-to-openapi").OpenApiMeta;
1446
1459
  }>;
1447
1460
  }>>;
1461
+ createAndNotify: import("@trpc/server").TRPCBuiltRouter<{
1462
+ ctx: Partial<{
1463
+ token: `Bearer ${string}`;
1464
+ user: {
1465
+ id: string & import("zod").$brand<"UUID">;
1466
+ type: "system";
1467
+ signature?: undefined;
1468
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1469
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1470
+ } | {
1471
+ id: string & import("zod").$brand<"UUID">;
1472
+ type: "user";
1473
+ role: string;
1474
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
1475
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1476
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1477
+ };
1478
+ }>;
1479
+ meta: import("trpc-to-openapi").OpenApiMeta;
1480
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1481
+ transformer: true;
1482
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1483
+ request: import("@trpc/server").TRPCMutationProcedure<{
1484
+ input: {
1485
+ transactionId: string;
1486
+ eventType: string;
1487
+ createdAtLocation: string;
1488
+ declaration?: Record<string, unknown> | undefined;
1489
+ annotation?: Record<string, unknown> | undefined;
1490
+ originalActionId?: string | undefined;
1491
+ keepAssignment?: boolean | undefined;
1492
+ keepAssignmentIfAccepted?: boolean | undefined;
1493
+ keepAssignmentIfRejected?: boolean | undefined;
1494
+ waitFor?: boolean | undefined;
1495
+ };
1496
+ output: {
1497
+ id: string & import("zod").$brand<"UUID">;
1498
+ type: string;
1499
+ createdAt: string;
1500
+ updatedAt: string;
1501
+ actions: ({
1502
+ id: string & import("zod").$brand<"UUID">;
1503
+ transactionId: string;
1504
+ createdByUserType: "system" | "user";
1505
+ createdAt: string;
1506
+ createdBy: string;
1507
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1508
+ status: "Requested" | "Accepted" | "Rejected";
1509
+ type: "CREATE";
1510
+ createdByRole?: string | undefined;
1511
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1512
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1513
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1514
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1515
+ } | {
1516
+ id: string & import("zod").$brand<"UUID">;
1517
+ transactionId: string;
1518
+ createdByUserType: "system" | "user";
1519
+ createdAt: string;
1520
+ createdBy: string;
1521
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1522
+ status: "Requested" | "Accepted" | "Rejected";
1523
+ type: "REJECT";
1524
+ content: {
1525
+ reason: string;
1526
+ };
1527
+ createdByRole?: string | undefined;
1528
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1529
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1530
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1531
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1532
+ } | {
1533
+ id: string & import("zod").$brand<"UUID">;
1534
+ transactionId: string;
1535
+ createdByUserType: "system" | "user";
1536
+ createdAt: string;
1537
+ createdBy: string;
1538
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1539
+ status: "Requested" | "Accepted" | "Rejected";
1540
+ type: "DUPLICATE_DETECTED";
1541
+ content: {
1542
+ duplicates: {
1543
+ id: string & import("zod").$brand<"UUID">;
1544
+ trackingId: string;
1545
+ }[];
1546
+ };
1547
+ createdByRole?: string | undefined;
1548
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1549
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1550
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1551
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1552
+ } | {
1553
+ id: string & import("zod").$brand<"UUID">;
1554
+ transactionId: string;
1555
+ createdByUserType: "system" | "user";
1556
+ createdAt: string;
1557
+ createdBy: string;
1558
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1559
+ status: "Requested" | "Accepted" | "Rejected";
1560
+ type: "MARK_AS_NOT_DUPLICATE";
1561
+ createdByRole?: string | undefined;
1562
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1563
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1564
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1565
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1566
+ } | {
1567
+ id: string & import("zod").$brand<"UUID">;
1568
+ transactionId: string;
1569
+ createdByUserType: "system" | "user";
1570
+ createdAt: string;
1571
+ createdBy: string;
1572
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1573
+ status: "Requested" | "Accepted" | "Rejected";
1574
+ type: "MARK_AS_DUPLICATE";
1575
+ createdByRole?: string | undefined;
1576
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1577
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1578
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1579
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1580
+ content?: {
1581
+ duplicateOf: string & import("zod").$brand<"UUID">;
1582
+ } | undefined;
1583
+ } | {
1584
+ id: string & import("zod").$brand<"UUID">;
1585
+ transactionId: string;
1586
+ createdByUserType: "system" | "user";
1587
+ createdAt: string;
1588
+ createdBy: string;
1589
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1590
+ status: "Requested" | "Accepted" | "Rejected";
1591
+ type: "ARCHIVE";
1592
+ content: {
1593
+ reason: string;
1594
+ };
1595
+ createdByRole?: string | undefined;
1596
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1597
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1598
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1599
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1600
+ } | {
1601
+ id: string & import("zod").$brand<"UUID">;
1602
+ transactionId: string;
1603
+ createdByUserType: "system" | "user";
1604
+ createdAt: string;
1605
+ createdBy: string;
1606
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1607
+ status: "Requested" | "Accepted" | "Rejected";
1608
+ type: "NOTIFY";
1609
+ createdByRole?: string | undefined;
1610
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1611
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1612
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1613
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1614
+ } | {
1615
+ id: string & import("zod").$brand<"UUID">;
1616
+ transactionId: string;
1617
+ createdByUserType: "system" | "user";
1618
+ createdAt: string;
1619
+ createdBy: string;
1620
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1621
+ status: "Requested" | "Accepted" | "Rejected";
1622
+ type: "REGISTER";
1623
+ createdByRole?: string | undefined;
1624
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1625
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1626
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1627
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1628
+ registrationNumber?: string | undefined;
1629
+ } | {
1630
+ id: string & import("zod").$brand<"UUID">;
1631
+ transactionId: string;
1632
+ createdByUserType: "system" | "user";
1633
+ createdAt: string;
1634
+ createdBy: string;
1635
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1636
+ status: "Requested" | "Accepted" | "Rejected";
1637
+ type: "DECLARE";
1638
+ createdByRole?: string | undefined;
1639
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1640
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1641
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1642
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1643
+ } | {
1644
+ id: string & import("zod").$brand<"UUID">;
1645
+ transactionId: string;
1646
+ createdByUserType: "system" | "user";
1647
+ createdAt: string;
1648
+ createdBy: string;
1649
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1650
+ status: "Requested" | "Accepted" | "Rejected";
1651
+ type: "ASSIGN";
1652
+ assignedTo: string;
1653
+ createdByRole?: string | undefined;
1654
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1655
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1656
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1657
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1658
+ } | {
1659
+ id: string & import("zod").$brand<"UUID">;
1660
+ transactionId: string;
1661
+ createdByUserType: "system" | "user";
1662
+ createdAt: string;
1663
+ createdBy: string;
1664
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1665
+ status: "Requested" | "Accepted" | "Rejected";
1666
+ type: "REQUEST_CORRECTION";
1667
+ createdByRole?: string | undefined;
1668
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1669
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1670
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1671
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1672
+ } | {
1673
+ id: string & import("zod").$brand<"UUID">;
1674
+ transactionId: string;
1675
+ createdByUserType: "system" | "user";
1676
+ createdAt: string;
1677
+ createdBy: string;
1678
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1679
+ status: "Requested" | "Accepted" | "Rejected";
1680
+ type: "APPROVE_CORRECTION";
1681
+ requestId: string;
1682
+ createdByRole?: string | undefined;
1683
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1684
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1685
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1686
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1687
+ content?: {
1688
+ immediateCorrection?: boolean | undefined;
1689
+ } | undefined;
1690
+ } | {
1691
+ id: string & import("zod").$brand<"UUID">;
1692
+ transactionId: string;
1693
+ createdByUserType: "system" | "user";
1694
+ createdAt: string;
1695
+ createdBy: string;
1696
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1697
+ status: "Requested" | "Accepted" | "Rejected";
1698
+ type: "REJECT_CORRECTION";
1699
+ requestId: string;
1700
+ content: {
1701
+ reason: string;
1702
+ };
1703
+ createdByRole?: string | undefined;
1704
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1705
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1706
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1707
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1708
+ } | {
1709
+ id: string & import("zod").$brand<"UUID">;
1710
+ transactionId: string;
1711
+ createdByUserType: "system" | "user";
1712
+ createdAt: string;
1713
+ createdBy: string;
1714
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1715
+ status: "Requested" | "Accepted" | "Rejected";
1716
+ type: "UNASSIGN";
1717
+ createdByRole?: string | undefined;
1718
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1719
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1720
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1721
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1722
+ } | {
1723
+ id: string & import("zod").$brand<"UUID">;
1724
+ transactionId: string;
1725
+ createdByUserType: "system" | "user";
1726
+ createdAt: string;
1727
+ createdBy: string;
1728
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1729
+ status: "Requested" | "Accepted" | "Rejected";
1730
+ type: "PRINT_CERTIFICATE";
1731
+ createdByRole?: string | undefined;
1732
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1733
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1734
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1735
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1736
+ content?: {
1737
+ templateId?: string | undefined;
1738
+ } | null | undefined;
1739
+ } | {
1740
+ id: string & import("zod").$brand<"UUID">;
1741
+ transactionId: string;
1742
+ createdByUserType: "system" | "user";
1743
+ createdAt: string;
1744
+ createdBy: string;
1745
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1746
+ status: "Requested" | "Accepted" | "Rejected";
1747
+ type: "READ";
1748
+ createdByRole?: string | undefined;
1749
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1750
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1751
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1752
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1753
+ } | {
1754
+ id: string & import("zod").$brand<"UUID">;
1755
+ transactionId: string;
1756
+ createdByUserType: "system" | "user";
1757
+ createdAt: string;
1758
+ createdBy: string;
1759
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1760
+ status: "Requested" | "Accepted" | "Rejected";
1761
+ type: "EDIT";
1762
+ content: {
1763
+ comment?: string | undefined;
1764
+ };
1765
+ createdByRole?: string | undefined;
1766
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1767
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1768
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1769
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1770
+ } | {
1771
+ id: string & import("zod").$brand<"UUID">;
1772
+ transactionId: string;
1773
+ createdByUserType: "system" | "user";
1774
+ createdAt: string;
1775
+ createdBy: string;
1776
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1777
+ status: "Requested" | "Accepted" | "Rejected";
1778
+ type: "CUSTOM";
1779
+ customActionType: string;
1780
+ createdByRole?: string | undefined;
1781
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1782
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1783
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1784
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1785
+ } | {
1786
+ id: string & import("zod").$brand<"UUID">;
1787
+ transactionId: string;
1788
+ createdByUserType: "system" | "user";
1789
+ createdAt: string;
1790
+ createdBy: string;
1791
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
1792
+ status: "Rejected";
1793
+ createdByRole?: string | undefined;
1794
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1795
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1796
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1797
+ })[];
1798
+ trackingId: string;
1799
+ };
1800
+ meta: import("trpc-to-openapi").OpenApiMeta;
1801
+ }>;
1802
+ }>>;
1448
1803
  declare: import("@trpc/server").TRPCBuiltRouter<{
1449
1804
  ctx: Partial<{
1450
1805
  token: `Bearer ${string}`;
@@ -1672,6 +2027,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1672
2027
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1673
2028
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1674
2029
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2030
+ content?: {
2031
+ immediateCorrection?: boolean | undefined;
2032
+ } | undefined;
1675
2033
  } | {
1676
2034
  id: string & import("zod").$brand<"UUID">;
1677
2035
  transactionId: string;
@@ -1773,7 +2131,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1773
2131
  createdByUserType: "system" | "user";
1774
2132
  createdAt: string;
1775
2133
  createdBy: string;
1776
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
2134
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
1777
2135
  status: "Rejected";
1778
2136
  createdByRole?: string | undefined;
1779
2137
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -1991,6 +2349,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1991
2349
  waitFor?: boolean | undefined;
1992
2350
  createdAtLocation?: string | null | undefined;
1993
2351
  type?: "APPROVE_CORRECTION" | undefined;
2352
+ content?: {
2353
+ immediateCorrection?: boolean | undefined;
2354
+ } | undefined;
1994
2355
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1995
2356
  eventId: string;
1996
2357
  transactionId: string;
@@ -2042,6 +2403,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2042
2403
  transactionId: import("zod").ZodString;
2043
2404
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2044
2405
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2406
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
2045
2407
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2046
2408
  }, import("zod/v4/core").$strip>>;
2047
2409
  output: import("../commons").EventDocument;
@@ -2282,6 +2644,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2282
2644
  waitFor?: boolean | undefined;
2283
2645
  createdAtLocation?: string | null | undefined;
2284
2646
  type?: "APPROVE_CORRECTION" | undefined;
2647
+ content?: {
2648
+ immediateCorrection?: boolean | undefined;
2649
+ } | undefined;
2285
2650
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2286
2651
  eventId: string;
2287
2652
  transactionId: string;
@@ -2333,6 +2698,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2333
2698
  transactionId: import("zod").ZodString;
2334
2699
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2335
2700
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2701
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
2336
2702
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2337
2703
  }, import("zod/v4/core").$strip>>;
2338
2704
  output: import("../commons").EventDocument;
@@ -2573,6 +2939,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2573
2939
  waitFor?: boolean | undefined;
2574
2940
  createdAtLocation?: string | null | undefined;
2575
2941
  type?: "APPROVE_CORRECTION" | undefined;
2942
+ content?: {
2943
+ immediateCorrection?: boolean | undefined;
2944
+ } | undefined;
2576
2945
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2577
2946
  eventId: string;
2578
2947
  transactionId: string;
@@ -2624,6 +2993,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2624
2993
  transactionId: import("zod").ZodString;
2625
2994
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2626
2995
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2996
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
2627
2997
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2628
2998
  }, import("zod/v4/core").$strip>>;
2629
2999
  output: import("../commons").EventDocument;
@@ -2864,6 +3234,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2864
3234
  waitFor?: boolean | undefined;
2865
3235
  createdAtLocation?: string | null | undefined;
2866
3236
  type?: "APPROVE_CORRECTION" | undefined;
3237
+ content?: {
3238
+ immediateCorrection?: boolean | undefined;
3239
+ } | undefined;
2867
3240
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2868
3241
  eventId: string;
2869
3242
  transactionId: string;
@@ -2915,6 +3288,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2915
3288
  transactionId: import("zod").ZodString;
2916
3289
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2917
3290
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3291
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
2918
3292
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2919
3293
  }, import("zod/v4/core").$strip>>;
2920
3294
  output: import("../commons").EventDocument;
@@ -3155,6 +3529,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3155
3529
  waitFor?: boolean | undefined;
3156
3530
  createdAtLocation?: string | null | undefined;
3157
3531
  type?: "APPROVE_CORRECTION" | undefined;
3532
+ content?: {
3533
+ immediateCorrection?: boolean | undefined;
3534
+ } | undefined;
3158
3535
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3159
3536
  eventId: string;
3160
3537
  transactionId: string;
@@ -3206,6 +3583,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3206
3583
  transactionId: import("zod").ZodString;
3207
3584
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3208
3585
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3586
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
3209
3587
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3210
3588
  }, import("zod/v4/core").$strip>>;
3211
3589
  output: import("../commons").EventDocument;
@@ -3446,6 +3824,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3446
3824
  waitFor?: boolean | undefined;
3447
3825
  createdAtLocation?: string | null | undefined;
3448
3826
  type?: "APPROVE_CORRECTION" | undefined;
3827
+ content?: {
3828
+ immediateCorrection?: boolean | undefined;
3829
+ } | undefined;
3449
3830
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3450
3831
  eventId: string;
3451
3832
  transactionId: string;
@@ -3497,6 +3878,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3497
3878
  transactionId: import("zod").ZodString;
3498
3879
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3499
3880
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3881
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
3500
3882
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3501
3883
  }, import("zod/v4/core").$strip>>;
3502
3884
  output: import("../commons").EventDocument;
@@ -3731,6 +4113,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3731
4113
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
3732
4114
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
3733
4115
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4116
+ content?: {
4117
+ immediateCorrection?: boolean | undefined;
4118
+ } | undefined;
3734
4119
  } | {
3735
4120
  id: string & import("zod").$brand<"UUID">;
3736
4121
  transactionId: string;
@@ -3832,7 +4217,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3832
4217
  createdByUserType: "system" | "user";
3833
4218
  createdAt: string;
3834
4219
  createdBy: string;
3835
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
4220
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
3836
4221
  status: "Rejected";
3837
4222
  createdByRole?: string | undefined;
3838
4223
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -4050,6 +4435,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4050
4435
  waitFor?: boolean | undefined;
4051
4436
  createdAtLocation?: string | null | undefined;
4052
4437
  type?: "APPROVE_CORRECTION" | undefined;
4438
+ content?: {
4439
+ immediateCorrection?: boolean | undefined;
4440
+ } | undefined;
4053
4441
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4054
4442
  eventId: string;
4055
4443
  transactionId: string;
@@ -4101,6 +4489,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4101
4489
  transactionId: import("zod").ZodString;
4102
4490
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
4103
4491
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
4492
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
4104
4493
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
4105
4494
  }, import("zod/v4/core").$strip>>;
4106
4495
  output: import("../commons").EventDocument;
@@ -4335,6 +4724,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4335
4724
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
4336
4725
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
4337
4726
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4727
+ content?: {
4728
+ immediateCorrection?: boolean | undefined;
4729
+ } | undefined;
4338
4730
  } | {
4339
4731
  id: string & import("zod").$brand<"UUID">;
4340
4732
  transactionId: string;
@@ -4436,7 +4828,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4436
4828
  createdByUserType: "system" | "user";
4437
4829
  createdAt: string;
4438
4830
  createdBy: string;
4439
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
4831
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
4440
4832
  status: "Rejected";
4441
4833
  createdByRole?: string | undefined;
4442
4834
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -4653,6 +5045,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4653
5045
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
4654
5046
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
4655
5047
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5048
+ content?: {
5049
+ immediateCorrection?: boolean | undefined;
5050
+ } | undefined;
4656
5051
  } | {
4657
5052
  id: string & import("zod").$brand<"UUID">;
4658
5053
  transactionId: string;
@@ -4754,7 +5149,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4754
5149
  createdByUserType: "system" | "user";
4755
5150
  createdAt: string;
4756
5151
  createdBy: string;
4757
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
5152
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
4758
5153
  status: "Rejected";
4759
5154
  createdByRole?: string | undefined;
4760
5155
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -5022,6 +5417,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5022
5417
  waitFor?: boolean | undefined;
5023
5418
  createdAtLocation?: string | null | undefined;
5024
5419
  type?: "APPROVE_CORRECTION" | undefined;
5420
+ content?: {
5421
+ immediateCorrection?: boolean | undefined;
5422
+ } | undefined;
5025
5423
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5026
5424
  eventId: string;
5027
5425
  transactionId: string;
@@ -5073,6 +5471,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5073
5471
  transactionId: import("zod").ZodString;
5074
5472
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5075
5473
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
5474
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
5076
5475
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5077
5476
  }, import("zod/v4/core").$strip>>;
5078
5477
  output: import("../commons").EventDocument;
@@ -5313,6 +5712,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5313
5712
  waitFor?: boolean | undefined;
5314
5713
  createdAtLocation?: string | null | undefined;
5315
5714
  type?: "APPROVE_CORRECTION" | undefined;
5715
+ content?: {
5716
+ immediateCorrection?: boolean | undefined;
5717
+ } | undefined;
5316
5718
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5317
5719
  eventId: string;
5318
5720
  transactionId: string;
@@ -5364,6 +5766,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5364
5766
  transactionId: import("zod").ZodString;
5365
5767
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5366
5768
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
5769
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
5367
5770
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5368
5771
  }, import("zod/v4/core").$strip>>;
5369
5772
  output: import("../commons").EventDocument;
@@ -5604,6 +6007,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5604
6007
  waitFor?: boolean | undefined;
5605
6008
  createdAtLocation?: string | null | undefined;
5606
6009
  type?: "APPROVE_CORRECTION" | undefined;
6010
+ content?: {
6011
+ immediateCorrection?: boolean | undefined;
6012
+ } | undefined;
5607
6013
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5608
6014
  eventId: string;
5609
6015
  transactionId: string;
@@ -5655,6 +6061,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5655
6061
  transactionId: import("zod").ZodString;
5656
6062
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5657
6063
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
6064
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
5658
6065
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5659
6066
  }, import("zod/v4/core").$strip>>;
5660
6067
  output: import("../commons").EventDocument;
@@ -5892,6 +6299,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5892
6299
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
5893
6300
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
5894
6301
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6302
+ content?: {
6303
+ immediateCorrection?: boolean | undefined;
6304
+ } | undefined;
5895
6305
  } | {
5896
6306
  id: string & import("zod").$brand<"UUID">;
5897
6307
  transactionId: string;
@@ -5993,7 +6403,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5993
6403
  createdByUserType: "system" | "user";
5994
6404
  createdAt: string;
5995
6405
  createdBy: string;
5996
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
6406
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
5997
6407
  status: "Rejected";
5998
6408
  createdByRole?: string | undefined;
5999
6409
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -6209,6 +6619,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6209
6619
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
6210
6620
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
6211
6621
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6622
+ content?: {
6623
+ immediateCorrection?: boolean | undefined;
6624
+ } | undefined;
6212
6625
  } | {
6213
6626
  id: string & import("zod").$brand<"UUID">;
6214
6627
  transactionId: string;
@@ -6310,7 +6723,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6310
6723
  createdByUserType: "system" | "user";
6311
6724
  createdAt: string;
6312
6725
  createdBy: string;
6313
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
6726
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
6314
6727
  status: "Rejected";
6315
6728
  createdByRole?: string | undefined;
6316
6729
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -6569,6 +6982,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6569
6982
  createdAtLocation?: string | null | undefined;
6570
6983
  annotation?: Record<string, unknown> | null | undefined;
6571
6984
  originalActionId?: string | null | undefined;
6985
+ content?: {
6986
+ immediateCorrection?: boolean | undefined;
6987
+ } | undefined;
6572
6988
  } | {
6573
6989
  id: string;
6574
6990
  transactionId: string;
@@ -6670,7 +7086,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6670
7086
  createdByUserType: "system" | "user";
6671
7087
  createdAt: string;
6672
7088
  createdBy: string;
6673
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
7089
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
6674
7090
  status: "Rejected";
6675
7091
  createdByRole?: string | undefined;
6676
7092
  createdBySignature?: string | null | undefined;
@@ -6888,7 +7304,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6888
7304
  count?: number | undefined;
6889
7305
  timeStart?: string | undefined;
6890
7306
  timeEnd?: string | undefined;
6891
- actionTypes?: ("DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "CUSTOM" | "CREATE" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "ASSIGN" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "UNASSIGN")[] | undefined;
7307
+ actionTypes?: ("CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM")[] | undefined;
6892
7308
  };
6893
7309
  output: {
6894
7310
  results: {
@@ -7740,7 +8156,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7740
8156
  $event: "id" | "createdBy" | "createdAt" | "status" | "createdByUserType" | "createdAtLocation" | "updatedAt" | "assignedTo" | "trackingId" | "type" | "flags" | "dateOfEvent" | "placeOfEvent" | "title" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "outbox";
7741
8157
  };
7742
8158
  }[];
7743
- icon: "Archived" | "Assigned" | "Briefcase" | "Certified" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "Registered" | "RequiresUpdates" | "Sent" | "Validated" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "PenNib" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Stamp" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "ChatText" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
8159
+ icon: "File" | "Archived" | "Assigned" | "Briefcase" | "Certified" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "Registered" | "RequiresUpdates" | "Sent" | "Validated" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "PenNib" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Stamp" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "ChatText" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
7744
8160
  action?: {
7745
8161
  type: "DELETE" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ";
7746
8162
  } | undefined;