@opencrvs/toolkit 1.9.13-rc.c089a0b → 1.9.13-rc.c2005d3
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.
|
@@ -1238,6 +1238,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1238
1238
|
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1239
1239
|
originalActionId?: string | undefined;
|
|
1240
1240
|
keepAssignment?: boolean | undefined;
|
|
1241
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1242
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1241
1243
|
};
|
|
1242
1244
|
output: {
|
|
1243
1245
|
id: string & import("zod").BRAND<"UUID">;
|
|
@@ -1309,7 +1311,220 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1309
1311
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
1310
1312
|
}>;
|
|
1311
1313
|
accept: import("@trpc/server").TRPCMutationProcedure<{
|
|
1312
|
-
input:
|
|
1314
|
+
input: (Omit<{
|
|
1315
|
+
transactionId: string;
|
|
1316
|
+
eventId: string;
|
|
1317
|
+
type?: "CREATE" | undefined;
|
|
1318
|
+
createdAtLocation?: string | null | undefined;
|
|
1319
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1320
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1321
|
+
originalActionId?: string | undefined;
|
|
1322
|
+
keepAssignment?: boolean | undefined;
|
|
1323
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1324
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1325
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
1326
|
+
transactionId: string;
|
|
1327
|
+
eventId: string;
|
|
1328
|
+
type?: "VALIDATE" | undefined;
|
|
1329
|
+
createdAtLocation?: string | null | undefined;
|
|
1330
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1331
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1332
|
+
originalActionId?: string | undefined;
|
|
1333
|
+
keepAssignment?: boolean | undefined;
|
|
1334
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1335
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1336
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
1337
|
+
transactionId: string;
|
|
1338
|
+
eventId: string;
|
|
1339
|
+
type?: "REGISTER" | undefined;
|
|
1340
|
+
createdAtLocation?: string | null | undefined;
|
|
1341
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1342
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1343
|
+
originalActionId?: string | undefined;
|
|
1344
|
+
registrationNumber?: string | undefined;
|
|
1345
|
+
keepAssignment?: boolean | undefined;
|
|
1346
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1347
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1348
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
1349
|
+
transactionId: string;
|
|
1350
|
+
eventId: string;
|
|
1351
|
+
type?: "NOTIFY" | undefined;
|
|
1352
|
+
createdAtLocation?: string | null | undefined;
|
|
1353
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1354
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1355
|
+
originalActionId?: string | undefined;
|
|
1356
|
+
keepAssignment?: boolean | undefined;
|
|
1357
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1358
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1359
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
1360
|
+
transactionId: string;
|
|
1361
|
+
eventId: string;
|
|
1362
|
+
type?: "DECLARE" | undefined;
|
|
1363
|
+
createdAtLocation?: string | null | undefined;
|
|
1364
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1365
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1366
|
+
originalActionId?: string | undefined;
|
|
1367
|
+
keepAssignment?: boolean | undefined;
|
|
1368
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1369
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1370
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
1371
|
+
content: {
|
|
1372
|
+
reason: string;
|
|
1373
|
+
};
|
|
1374
|
+
transactionId: string;
|
|
1375
|
+
eventId: string;
|
|
1376
|
+
type?: "REJECT" | undefined;
|
|
1377
|
+
createdAtLocation?: string | null | undefined;
|
|
1378
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1379
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1380
|
+
originalActionId?: string | undefined;
|
|
1381
|
+
keepAssignment?: boolean | undefined;
|
|
1382
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1383
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1384
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
1385
|
+
content: {
|
|
1386
|
+
duplicates: {
|
|
1387
|
+
id: string;
|
|
1388
|
+
trackingId: string;
|
|
1389
|
+
}[];
|
|
1390
|
+
};
|
|
1391
|
+
transactionId: string;
|
|
1392
|
+
eventId: string;
|
|
1393
|
+
type?: "DUPLICATE_DETECTED" | undefined;
|
|
1394
|
+
createdAtLocation?: string | null | undefined;
|
|
1395
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1396
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1397
|
+
originalActionId?: string | undefined;
|
|
1398
|
+
keepAssignment?: boolean | undefined;
|
|
1399
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1400
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1401
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
1402
|
+
transactionId: string;
|
|
1403
|
+
eventId: string;
|
|
1404
|
+
type?: "MARK_AS_DUPLICATE" | undefined;
|
|
1405
|
+
content?: {
|
|
1406
|
+
duplicateOf: string;
|
|
1407
|
+
} | undefined;
|
|
1408
|
+
createdAtLocation?: string | null | undefined;
|
|
1409
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1410
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1411
|
+
originalActionId?: string | undefined;
|
|
1412
|
+
keepAssignment?: boolean | undefined;
|
|
1413
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1414
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1415
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
1416
|
+
transactionId: string;
|
|
1417
|
+
eventId: string;
|
|
1418
|
+
type?: "MARK_AS_NOT_DUPLICATE" | undefined;
|
|
1419
|
+
createdAtLocation?: string | null | undefined;
|
|
1420
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1421
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1422
|
+
originalActionId?: string | undefined;
|
|
1423
|
+
keepAssignment?: boolean | undefined;
|
|
1424
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1425
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1426
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
1427
|
+
content: {
|
|
1428
|
+
reason: string;
|
|
1429
|
+
};
|
|
1430
|
+
transactionId: string;
|
|
1431
|
+
eventId: string;
|
|
1432
|
+
type?: "ARCHIVE" | undefined;
|
|
1433
|
+
createdAtLocation?: string | null | undefined;
|
|
1434
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1435
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1436
|
+
originalActionId?: string | undefined;
|
|
1437
|
+
keepAssignment?: boolean | undefined;
|
|
1438
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1439
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1440
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
1441
|
+
type: "ASSIGN";
|
|
1442
|
+
transactionId: string;
|
|
1443
|
+
assignedTo: string;
|
|
1444
|
+
eventId: string;
|
|
1445
|
+
createdAtLocation?: string | null | undefined;
|
|
1446
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1447
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1448
|
+
originalActionId?: string | undefined;
|
|
1449
|
+
keepAssignment?: boolean | undefined;
|
|
1450
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1451
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1452
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
1453
|
+
transactionId: string;
|
|
1454
|
+
eventId: string;
|
|
1455
|
+
type?: "UNASSIGN" | undefined;
|
|
1456
|
+
createdAtLocation?: string | null | undefined;
|
|
1457
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1458
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1459
|
+
originalActionId?: string | undefined;
|
|
1460
|
+
assignedTo?: null | undefined;
|
|
1461
|
+
keepAssignment?: boolean | undefined;
|
|
1462
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1463
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1464
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
1465
|
+
transactionId: string;
|
|
1466
|
+
eventId: string;
|
|
1467
|
+
type?: "PRINT_CERTIFICATE" | undefined;
|
|
1468
|
+
content?: {
|
|
1469
|
+
templateId?: string | undefined;
|
|
1470
|
+
} | undefined;
|
|
1471
|
+
createdAtLocation?: string | null | undefined;
|
|
1472
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1473
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1474
|
+
originalActionId?: string | undefined;
|
|
1475
|
+
keepAssignment?: boolean | undefined;
|
|
1476
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1477
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1478
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
1479
|
+
transactionId: string;
|
|
1480
|
+
eventId: string;
|
|
1481
|
+
type?: "REQUEST_CORRECTION" | undefined;
|
|
1482
|
+
createdAtLocation?: string | null | undefined;
|
|
1483
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1484
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1485
|
+
originalActionId?: string | undefined;
|
|
1486
|
+
keepAssignment?: boolean | undefined;
|
|
1487
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1488
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1489
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
1490
|
+
content: {
|
|
1491
|
+
reason: string;
|
|
1492
|
+
};
|
|
1493
|
+
transactionId: string;
|
|
1494
|
+
requestId: string;
|
|
1495
|
+
eventId: string;
|
|
1496
|
+
type?: "REJECT_CORRECTION" | undefined;
|
|
1497
|
+
createdAtLocation?: string | null | undefined;
|
|
1498
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1499
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1500
|
+
originalActionId?: string | undefined;
|
|
1501
|
+
keepAssignment?: boolean | undefined;
|
|
1502
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1503
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1504
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
1505
|
+
transactionId: string;
|
|
1506
|
+
requestId: string;
|
|
1507
|
+
eventId: string;
|
|
1508
|
+
type?: "APPROVE_CORRECTION" | undefined;
|
|
1509
|
+
createdAtLocation?: string | null | undefined;
|
|
1510
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1511
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1512
|
+
originalActionId?: string | undefined;
|
|
1513
|
+
keepAssignment?: boolean | undefined;
|
|
1514
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1515
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1516
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
1517
|
+
transactionId: string;
|
|
1518
|
+
eventId: string;
|
|
1519
|
+
type?: "READ" | undefined;
|
|
1520
|
+
createdAtLocation?: string | null | undefined;
|
|
1521
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1522
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1523
|
+
originalActionId?: string | undefined;
|
|
1524
|
+
keepAssignment?: boolean | undefined;
|
|
1525
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1526
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1527
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
|
|
1313
1528
|
actionId: string;
|
|
1314
1529
|
};
|
|
1315
1530
|
output: import("../commons").EventDocument;
|
|
@@ -1356,6 +1571,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1356
1571
|
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1357
1572
|
originalActionId?: string | undefined;
|
|
1358
1573
|
keepAssignment?: boolean | undefined;
|
|
1574
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1575
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1359
1576
|
};
|
|
1360
1577
|
output: {
|
|
1361
1578
|
type: string;
|
|
@@ -1643,119 +1860,1014 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1643
1860
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
1644
1861
|
}>;
|
|
1645
1862
|
accept: import("@trpc/server").TRPCMutationProcedure<{
|
|
1646
|
-
input:
|
|
1647
|
-
|
|
1648
|
-
};
|
|
1649
|
-
output: import("../commons").EventDocument;
|
|
1650
|
-
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
1651
|
-
}>;
|
|
1652
|
-
reject: import("@trpc/server").TRPCMutationProcedure<{
|
|
1653
|
-
input: {
|
|
1863
|
+
input: (Omit<{
|
|
1864
|
+
transactionId: string;
|
|
1654
1865
|
eventId: string;
|
|
1655
|
-
|
|
1866
|
+
type?: "CREATE" | undefined;
|
|
1867
|
+
createdAtLocation?: string | null | undefined;
|
|
1868
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1869
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1870
|
+
originalActionId?: string | undefined;
|
|
1871
|
+
keepAssignment?: boolean | undefined;
|
|
1872
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1873
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1874
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
1656
1875
|
transactionId: string;
|
|
1657
|
-
};
|
|
1658
|
-
output: import("../commons").EventDocument;
|
|
1659
|
-
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
1660
|
-
}>;
|
|
1661
|
-
}>>;
|
|
1662
|
-
validate: import("@trpc/server").TRPCBuiltRouter<{
|
|
1663
|
-
ctx: {
|
|
1664
|
-
user: {
|
|
1665
|
-
type: "user";
|
|
1666
|
-
id: string;
|
|
1667
|
-
role: string;
|
|
1668
|
-
primaryOfficeId: string & import("zod").BRAND<"UUID">;
|
|
1669
|
-
signature?: string | undefined;
|
|
1670
|
-
} | {
|
|
1671
|
-
type: "system";
|
|
1672
|
-
id: string;
|
|
1673
|
-
role: "HEALTH" | "NATIONAL_ID" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
1674
|
-
primaryOfficeId?: undefined;
|
|
1675
|
-
signature?: undefined;
|
|
1676
|
-
};
|
|
1677
|
-
token: `Bearer ${string}`;
|
|
1678
|
-
};
|
|
1679
|
-
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
1680
|
-
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
1681
|
-
transformer: true;
|
|
1682
|
-
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
1683
|
-
request: import("@trpc/server").TRPCMutationProcedure<{
|
|
1684
|
-
input: import("../commons").ActionInput;
|
|
1685
|
-
output: import("../commons").EventDocument;
|
|
1686
|
-
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
1687
|
-
}>;
|
|
1688
|
-
accept: import("@trpc/server").TRPCMutationProcedure<{
|
|
1689
|
-
input: import("../commons").ActionInput & {
|
|
1690
|
-
actionId: string;
|
|
1691
|
-
};
|
|
1692
|
-
output: import("../commons").EventDocument;
|
|
1693
|
-
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
1694
|
-
}>;
|
|
1695
|
-
reject: import("@trpc/server").TRPCMutationProcedure<{
|
|
1696
|
-
input: {
|
|
1697
1876
|
eventId: string;
|
|
1698
|
-
|
|
1877
|
+
type?: "VALIDATE" | undefined;
|
|
1878
|
+
createdAtLocation?: string | null | undefined;
|
|
1879
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1880
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1881
|
+
originalActionId?: string | undefined;
|
|
1882
|
+
keepAssignment?: boolean | undefined;
|
|
1883
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1884
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1885
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
1699
1886
|
transactionId: string;
|
|
1700
|
-
};
|
|
1701
|
-
output: import("../commons").EventDocument;
|
|
1702
|
-
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
1703
|
-
}>;
|
|
1704
|
-
}>>;
|
|
1705
|
-
reject: import("@trpc/server").TRPCBuiltRouter<{
|
|
1706
|
-
ctx: {
|
|
1707
|
-
user: {
|
|
1708
|
-
type: "user";
|
|
1709
|
-
id: string;
|
|
1710
|
-
role: string;
|
|
1711
|
-
primaryOfficeId: string & import("zod").BRAND<"UUID">;
|
|
1712
|
-
signature?: string | undefined;
|
|
1713
|
-
} | {
|
|
1714
|
-
type: "system";
|
|
1715
|
-
id: string;
|
|
1716
|
-
role: "HEALTH" | "NATIONAL_ID" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
1717
|
-
primaryOfficeId?: undefined;
|
|
1718
|
-
signature?: undefined;
|
|
1719
|
-
};
|
|
1720
|
-
token: `Bearer ${string}`;
|
|
1721
|
-
};
|
|
1722
|
-
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
1723
|
-
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
1724
|
-
transformer: true;
|
|
1725
|
-
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
1726
|
-
request: import("@trpc/server").TRPCMutationProcedure<{
|
|
1727
|
-
input: import("../commons").ActionInput;
|
|
1728
|
-
output: import("../commons").EventDocument;
|
|
1729
|
-
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
1730
|
-
}>;
|
|
1731
|
-
accept: import("@trpc/server").TRPCMutationProcedure<{
|
|
1732
|
-
input: import("../commons").ActionInput & {
|
|
1733
|
-
actionId: string;
|
|
1734
|
-
};
|
|
1735
|
-
output: import("../commons").EventDocument;
|
|
1736
|
-
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
1737
|
-
}>;
|
|
1738
|
-
reject: import("@trpc/server").TRPCMutationProcedure<{
|
|
1739
|
-
input: {
|
|
1740
1887
|
eventId: string;
|
|
1741
|
-
|
|
1888
|
+
type?: "REGISTER" | undefined;
|
|
1889
|
+
createdAtLocation?: string | null | undefined;
|
|
1890
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1891
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1892
|
+
originalActionId?: string | undefined;
|
|
1893
|
+
registrationNumber?: string | undefined;
|
|
1894
|
+
keepAssignment?: boolean | undefined;
|
|
1895
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1896
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1897
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
1742
1898
|
transactionId: string;
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1899
|
+
eventId: string;
|
|
1900
|
+
type?: "NOTIFY" | undefined;
|
|
1901
|
+
createdAtLocation?: string | null | undefined;
|
|
1902
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1903
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1904
|
+
originalActionId?: string | undefined;
|
|
1905
|
+
keepAssignment?: boolean | undefined;
|
|
1906
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1907
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1908
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
1909
|
+
transactionId: string;
|
|
1910
|
+
eventId: string;
|
|
1911
|
+
type?: "DECLARE" | undefined;
|
|
1912
|
+
createdAtLocation?: string | null | undefined;
|
|
1913
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1914
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1915
|
+
originalActionId?: string | undefined;
|
|
1916
|
+
keepAssignment?: boolean | undefined;
|
|
1917
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1918
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1919
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
1920
|
+
content: {
|
|
1921
|
+
reason: string;
|
|
1922
|
+
};
|
|
1923
|
+
transactionId: string;
|
|
1924
|
+
eventId: string;
|
|
1925
|
+
type?: "REJECT" | undefined;
|
|
1926
|
+
createdAtLocation?: string | null | undefined;
|
|
1927
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1928
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1929
|
+
originalActionId?: string | undefined;
|
|
1930
|
+
keepAssignment?: boolean | undefined;
|
|
1931
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1932
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1933
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
1934
|
+
content: {
|
|
1935
|
+
duplicates: {
|
|
1936
|
+
id: string;
|
|
1937
|
+
trackingId: string;
|
|
1938
|
+
}[];
|
|
1939
|
+
};
|
|
1940
|
+
transactionId: string;
|
|
1941
|
+
eventId: string;
|
|
1942
|
+
type?: "DUPLICATE_DETECTED" | undefined;
|
|
1943
|
+
createdAtLocation?: string | null | undefined;
|
|
1944
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1945
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1946
|
+
originalActionId?: string | undefined;
|
|
1947
|
+
keepAssignment?: boolean | undefined;
|
|
1948
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1949
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1950
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
1951
|
+
transactionId: string;
|
|
1952
|
+
eventId: string;
|
|
1953
|
+
type?: "MARK_AS_DUPLICATE" | undefined;
|
|
1954
|
+
content?: {
|
|
1955
|
+
duplicateOf: string;
|
|
1956
|
+
} | undefined;
|
|
1957
|
+
createdAtLocation?: string | null | undefined;
|
|
1958
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1959
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1960
|
+
originalActionId?: string | undefined;
|
|
1961
|
+
keepAssignment?: boolean | undefined;
|
|
1962
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1963
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1964
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
1965
|
+
transactionId: string;
|
|
1966
|
+
eventId: string;
|
|
1967
|
+
type?: "MARK_AS_NOT_DUPLICATE" | undefined;
|
|
1968
|
+
createdAtLocation?: string | null | undefined;
|
|
1969
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1970
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1971
|
+
originalActionId?: string | undefined;
|
|
1972
|
+
keepAssignment?: boolean | undefined;
|
|
1973
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1974
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1975
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
1976
|
+
content: {
|
|
1977
|
+
reason: string;
|
|
1978
|
+
};
|
|
1979
|
+
transactionId: string;
|
|
1980
|
+
eventId: string;
|
|
1981
|
+
type?: "ARCHIVE" | undefined;
|
|
1982
|
+
createdAtLocation?: string | null | undefined;
|
|
1983
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1984
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1985
|
+
originalActionId?: string | undefined;
|
|
1986
|
+
keepAssignment?: boolean | undefined;
|
|
1987
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
1988
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1989
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
1990
|
+
type: "ASSIGN";
|
|
1991
|
+
transactionId: string;
|
|
1992
|
+
assignedTo: string;
|
|
1993
|
+
eventId: string;
|
|
1994
|
+
createdAtLocation?: string | null | undefined;
|
|
1995
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1996
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1997
|
+
originalActionId?: string | undefined;
|
|
1998
|
+
keepAssignment?: boolean | undefined;
|
|
1999
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2000
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2001
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2002
|
+
transactionId: string;
|
|
2003
|
+
eventId: string;
|
|
2004
|
+
type?: "UNASSIGN" | undefined;
|
|
2005
|
+
createdAtLocation?: string | null | undefined;
|
|
2006
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2007
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2008
|
+
originalActionId?: string | undefined;
|
|
2009
|
+
assignedTo?: null | undefined;
|
|
2010
|
+
keepAssignment?: boolean | undefined;
|
|
2011
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2012
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2013
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2014
|
+
transactionId: string;
|
|
2015
|
+
eventId: string;
|
|
2016
|
+
type?: "PRINT_CERTIFICATE" | undefined;
|
|
2017
|
+
content?: {
|
|
2018
|
+
templateId?: string | undefined;
|
|
2019
|
+
} | undefined;
|
|
2020
|
+
createdAtLocation?: string | null | undefined;
|
|
2021
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2022
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2023
|
+
originalActionId?: string | undefined;
|
|
2024
|
+
keepAssignment?: boolean | undefined;
|
|
2025
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2026
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2027
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2028
|
+
transactionId: string;
|
|
2029
|
+
eventId: string;
|
|
2030
|
+
type?: "REQUEST_CORRECTION" | undefined;
|
|
2031
|
+
createdAtLocation?: string | null | undefined;
|
|
2032
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2033
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2034
|
+
originalActionId?: string | undefined;
|
|
2035
|
+
keepAssignment?: boolean | undefined;
|
|
2036
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2037
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2038
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2039
|
+
content: {
|
|
2040
|
+
reason: string;
|
|
2041
|
+
};
|
|
2042
|
+
transactionId: string;
|
|
2043
|
+
requestId: string;
|
|
2044
|
+
eventId: string;
|
|
2045
|
+
type?: "REJECT_CORRECTION" | undefined;
|
|
2046
|
+
createdAtLocation?: string | null | undefined;
|
|
2047
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2048
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2049
|
+
originalActionId?: string | undefined;
|
|
2050
|
+
keepAssignment?: boolean | undefined;
|
|
2051
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2052
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2053
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2054
|
+
transactionId: string;
|
|
2055
|
+
requestId: string;
|
|
2056
|
+
eventId: string;
|
|
2057
|
+
type?: "APPROVE_CORRECTION" | undefined;
|
|
2058
|
+
createdAtLocation?: string | null | undefined;
|
|
2059
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2060
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2061
|
+
originalActionId?: string | undefined;
|
|
2062
|
+
keepAssignment?: boolean | undefined;
|
|
2063
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2064
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2065
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2066
|
+
transactionId: string;
|
|
2067
|
+
eventId: string;
|
|
2068
|
+
type?: "READ" | undefined;
|
|
2069
|
+
createdAtLocation?: string | null | undefined;
|
|
2070
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2071
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2072
|
+
originalActionId?: string | undefined;
|
|
2073
|
+
keepAssignment?: boolean | undefined;
|
|
2074
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2075
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2076
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
|
|
2077
|
+
actionId: string;
|
|
2078
|
+
};
|
|
2079
|
+
output: import("../commons").EventDocument;
|
|
2080
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
2081
|
+
}>;
|
|
2082
|
+
reject: import("@trpc/server").TRPCMutationProcedure<{
|
|
2083
|
+
input: {
|
|
2084
|
+
eventId: string;
|
|
2085
|
+
actionId: string;
|
|
2086
|
+
transactionId: string;
|
|
2087
|
+
};
|
|
2088
|
+
output: import("../commons").EventDocument;
|
|
2089
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
2090
|
+
}>;
|
|
2091
|
+
}>>;
|
|
2092
|
+
validate: import("@trpc/server").TRPCBuiltRouter<{
|
|
2093
|
+
ctx: {
|
|
2094
|
+
user: {
|
|
2095
|
+
type: "user";
|
|
2096
|
+
id: string;
|
|
2097
|
+
role: string;
|
|
2098
|
+
primaryOfficeId: string & import("zod").BRAND<"UUID">;
|
|
2099
|
+
signature?: string | undefined;
|
|
2100
|
+
} | {
|
|
2101
|
+
type: "system";
|
|
2102
|
+
id: string;
|
|
2103
|
+
role: "HEALTH" | "NATIONAL_ID" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
2104
|
+
primaryOfficeId?: undefined;
|
|
2105
|
+
signature?: undefined;
|
|
2106
|
+
};
|
|
2107
|
+
token: `Bearer ${string}`;
|
|
2108
|
+
};
|
|
2109
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
2110
|
+
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
2111
|
+
transformer: true;
|
|
2112
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
2113
|
+
request: import("@trpc/server").TRPCMutationProcedure<{
|
|
2114
|
+
input: import("../commons").ActionInput;
|
|
2115
|
+
output: import("../commons").EventDocument;
|
|
2116
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
2117
|
+
}>;
|
|
2118
|
+
accept: import("@trpc/server").TRPCMutationProcedure<{
|
|
2119
|
+
input: (Omit<{
|
|
2120
|
+
transactionId: string;
|
|
2121
|
+
eventId: string;
|
|
2122
|
+
type?: "CREATE" | undefined;
|
|
2123
|
+
createdAtLocation?: string | null | undefined;
|
|
2124
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2125
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2126
|
+
originalActionId?: string | undefined;
|
|
2127
|
+
keepAssignment?: boolean | undefined;
|
|
2128
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2129
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2130
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2131
|
+
transactionId: string;
|
|
2132
|
+
eventId: string;
|
|
2133
|
+
type?: "VALIDATE" | undefined;
|
|
2134
|
+
createdAtLocation?: string | null | undefined;
|
|
2135
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2136
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2137
|
+
originalActionId?: string | undefined;
|
|
2138
|
+
keepAssignment?: boolean | undefined;
|
|
2139
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2140
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2141
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2142
|
+
transactionId: string;
|
|
2143
|
+
eventId: string;
|
|
2144
|
+
type?: "REGISTER" | undefined;
|
|
2145
|
+
createdAtLocation?: string | null | undefined;
|
|
2146
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2147
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2148
|
+
originalActionId?: string | undefined;
|
|
2149
|
+
registrationNumber?: string | undefined;
|
|
2150
|
+
keepAssignment?: boolean | undefined;
|
|
2151
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2152
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2153
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2154
|
+
transactionId: string;
|
|
2155
|
+
eventId: string;
|
|
2156
|
+
type?: "NOTIFY" | undefined;
|
|
2157
|
+
createdAtLocation?: string | null | undefined;
|
|
2158
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2159
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2160
|
+
originalActionId?: string | undefined;
|
|
2161
|
+
keepAssignment?: boolean | undefined;
|
|
2162
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2163
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2164
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2165
|
+
transactionId: string;
|
|
2166
|
+
eventId: string;
|
|
2167
|
+
type?: "DECLARE" | undefined;
|
|
2168
|
+
createdAtLocation?: string | null | undefined;
|
|
2169
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2170
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2171
|
+
originalActionId?: string | undefined;
|
|
2172
|
+
keepAssignment?: boolean | undefined;
|
|
2173
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2174
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2175
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2176
|
+
content: {
|
|
2177
|
+
reason: string;
|
|
2178
|
+
};
|
|
2179
|
+
transactionId: string;
|
|
2180
|
+
eventId: string;
|
|
2181
|
+
type?: "REJECT" | undefined;
|
|
2182
|
+
createdAtLocation?: string | null | undefined;
|
|
2183
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2184
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2185
|
+
originalActionId?: string | undefined;
|
|
2186
|
+
keepAssignment?: boolean | undefined;
|
|
2187
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2188
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2189
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2190
|
+
content: {
|
|
2191
|
+
duplicates: {
|
|
2192
|
+
id: string;
|
|
2193
|
+
trackingId: string;
|
|
2194
|
+
}[];
|
|
2195
|
+
};
|
|
2196
|
+
transactionId: string;
|
|
2197
|
+
eventId: string;
|
|
2198
|
+
type?: "DUPLICATE_DETECTED" | undefined;
|
|
2199
|
+
createdAtLocation?: string | null | undefined;
|
|
2200
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2201
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2202
|
+
originalActionId?: string | undefined;
|
|
2203
|
+
keepAssignment?: boolean | undefined;
|
|
2204
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2205
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2206
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2207
|
+
transactionId: string;
|
|
2208
|
+
eventId: string;
|
|
2209
|
+
type?: "MARK_AS_DUPLICATE" | undefined;
|
|
2210
|
+
content?: {
|
|
2211
|
+
duplicateOf: string;
|
|
2212
|
+
} | undefined;
|
|
2213
|
+
createdAtLocation?: string | null | undefined;
|
|
2214
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2215
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2216
|
+
originalActionId?: string | undefined;
|
|
2217
|
+
keepAssignment?: boolean | undefined;
|
|
2218
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2219
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2220
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2221
|
+
transactionId: string;
|
|
2222
|
+
eventId: string;
|
|
2223
|
+
type?: "MARK_AS_NOT_DUPLICATE" | undefined;
|
|
2224
|
+
createdAtLocation?: string | null | undefined;
|
|
2225
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2226
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2227
|
+
originalActionId?: string | undefined;
|
|
2228
|
+
keepAssignment?: boolean | undefined;
|
|
2229
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2230
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2231
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2232
|
+
content: {
|
|
2233
|
+
reason: string;
|
|
2234
|
+
};
|
|
2235
|
+
transactionId: string;
|
|
2236
|
+
eventId: string;
|
|
2237
|
+
type?: "ARCHIVE" | undefined;
|
|
2238
|
+
createdAtLocation?: string | null | undefined;
|
|
2239
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2240
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2241
|
+
originalActionId?: string | undefined;
|
|
2242
|
+
keepAssignment?: boolean | undefined;
|
|
2243
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2244
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2245
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2246
|
+
type: "ASSIGN";
|
|
2247
|
+
transactionId: string;
|
|
2248
|
+
assignedTo: string;
|
|
2249
|
+
eventId: string;
|
|
2250
|
+
createdAtLocation?: string | null | undefined;
|
|
2251
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2252
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2253
|
+
originalActionId?: string | undefined;
|
|
2254
|
+
keepAssignment?: boolean | undefined;
|
|
2255
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2256
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2257
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2258
|
+
transactionId: string;
|
|
2259
|
+
eventId: string;
|
|
2260
|
+
type?: "UNASSIGN" | undefined;
|
|
2261
|
+
createdAtLocation?: string | null | undefined;
|
|
2262
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2263
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2264
|
+
originalActionId?: string | undefined;
|
|
2265
|
+
assignedTo?: null | undefined;
|
|
2266
|
+
keepAssignment?: boolean | undefined;
|
|
2267
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2268
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2269
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2270
|
+
transactionId: string;
|
|
2271
|
+
eventId: string;
|
|
2272
|
+
type?: "PRINT_CERTIFICATE" | undefined;
|
|
2273
|
+
content?: {
|
|
2274
|
+
templateId?: string | undefined;
|
|
2275
|
+
} | undefined;
|
|
2276
|
+
createdAtLocation?: string | null | undefined;
|
|
2277
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2278
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2279
|
+
originalActionId?: string | undefined;
|
|
2280
|
+
keepAssignment?: boolean | undefined;
|
|
2281
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2282
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2283
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2284
|
+
transactionId: string;
|
|
2285
|
+
eventId: string;
|
|
2286
|
+
type?: "REQUEST_CORRECTION" | undefined;
|
|
2287
|
+
createdAtLocation?: string | null | undefined;
|
|
2288
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2289
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2290
|
+
originalActionId?: string | undefined;
|
|
2291
|
+
keepAssignment?: boolean | undefined;
|
|
2292
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2293
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2294
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2295
|
+
content: {
|
|
2296
|
+
reason: string;
|
|
2297
|
+
};
|
|
2298
|
+
transactionId: string;
|
|
2299
|
+
requestId: string;
|
|
2300
|
+
eventId: string;
|
|
2301
|
+
type?: "REJECT_CORRECTION" | undefined;
|
|
2302
|
+
createdAtLocation?: string | null | undefined;
|
|
2303
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2304
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2305
|
+
originalActionId?: string | undefined;
|
|
2306
|
+
keepAssignment?: boolean | undefined;
|
|
2307
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2308
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2309
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2310
|
+
transactionId: string;
|
|
2311
|
+
requestId: string;
|
|
2312
|
+
eventId: string;
|
|
2313
|
+
type?: "APPROVE_CORRECTION" | undefined;
|
|
2314
|
+
createdAtLocation?: string | null | undefined;
|
|
2315
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2316
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2317
|
+
originalActionId?: string | undefined;
|
|
2318
|
+
keepAssignment?: boolean | undefined;
|
|
2319
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2320
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2321
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2322
|
+
transactionId: string;
|
|
2323
|
+
eventId: string;
|
|
2324
|
+
type?: "READ" | undefined;
|
|
2325
|
+
createdAtLocation?: string | null | undefined;
|
|
2326
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2327
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2328
|
+
originalActionId?: string | undefined;
|
|
2329
|
+
keepAssignment?: boolean | undefined;
|
|
2330
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2331
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2332
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
|
|
2333
|
+
actionId: string;
|
|
2334
|
+
};
|
|
2335
|
+
output: import("../commons").EventDocument;
|
|
2336
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
2337
|
+
}>;
|
|
2338
|
+
reject: import("@trpc/server").TRPCMutationProcedure<{
|
|
2339
|
+
input: {
|
|
2340
|
+
eventId: string;
|
|
2341
|
+
actionId: string;
|
|
2342
|
+
transactionId: string;
|
|
2343
|
+
};
|
|
2344
|
+
output: import("../commons").EventDocument;
|
|
2345
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
2346
|
+
}>;
|
|
2347
|
+
}>>;
|
|
2348
|
+
reject: import("@trpc/server").TRPCBuiltRouter<{
|
|
2349
|
+
ctx: {
|
|
2350
|
+
user: {
|
|
2351
|
+
type: "user";
|
|
2352
|
+
id: string;
|
|
2353
|
+
role: string;
|
|
2354
|
+
primaryOfficeId: string & import("zod").BRAND<"UUID">;
|
|
2355
|
+
signature?: string | undefined;
|
|
2356
|
+
} | {
|
|
2357
|
+
type: "system";
|
|
2358
|
+
id: string;
|
|
2359
|
+
role: "HEALTH" | "NATIONAL_ID" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
2360
|
+
primaryOfficeId?: undefined;
|
|
2361
|
+
signature?: undefined;
|
|
2362
|
+
};
|
|
2363
|
+
token: `Bearer ${string}`;
|
|
2364
|
+
};
|
|
2365
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
2366
|
+
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
2367
|
+
transformer: true;
|
|
2368
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
2369
|
+
request: import("@trpc/server").TRPCMutationProcedure<{
|
|
2370
|
+
input: import("../commons").ActionInput;
|
|
2371
|
+
output: import("../commons").EventDocument;
|
|
2372
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
2373
|
+
}>;
|
|
2374
|
+
accept: import("@trpc/server").TRPCMutationProcedure<{
|
|
2375
|
+
input: (Omit<{
|
|
2376
|
+
transactionId: string;
|
|
2377
|
+
eventId: string;
|
|
2378
|
+
type?: "CREATE" | undefined;
|
|
2379
|
+
createdAtLocation?: string | null | undefined;
|
|
2380
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2381
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2382
|
+
originalActionId?: string | undefined;
|
|
2383
|
+
keepAssignment?: boolean | undefined;
|
|
2384
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2385
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2386
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2387
|
+
transactionId: string;
|
|
2388
|
+
eventId: string;
|
|
2389
|
+
type?: "VALIDATE" | undefined;
|
|
2390
|
+
createdAtLocation?: string | null | undefined;
|
|
2391
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2392
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2393
|
+
originalActionId?: string | undefined;
|
|
2394
|
+
keepAssignment?: boolean | undefined;
|
|
2395
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2396
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2397
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2398
|
+
transactionId: string;
|
|
2399
|
+
eventId: string;
|
|
2400
|
+
type?: "REGISTER" | undefined;
|
|
2401
|
+
createdAtLocation?: string | null | undefined;
|
|
2402
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2403
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2404
|
+
originalActionId?: string | undefined;
|
|
2405
|
+
registrationNumber?: string | undefined;
|
|
2406
|
+
keepAssignment?: boolean | undefined;
|
|
2407
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2408
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2409
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2410
|
+
transactionId: string;
|
|
2411
|
+
eventId: string;
|
|
2412
|
+
type?: "NOTIFY" | undefined;
|
|
2413
|
+
createdAtLocation?: string | null | undefined;
|
|
2414
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2415
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2416
|
+
originalActionId?: string | undefined;
|
|
2417
|
+
keepAssignment?: boolean | undefined;
|
|
2418
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2419
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2420
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2421
|
+
transactionId: string;
|
|
2422
|
+
eventId: string;
|
|
2423
|
+
type?: "DECLARE" | undefined;
|
|
2424
|
+
createdAtLocation?: string | null | undefined;
|
|
2425
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2426
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2427
|
+
originalActionId?: string | undefined;
|
|
2428
|
+
keepAssignment?: boolean | undefined;
|
|
2429
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2430
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2431
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2432
|
+
content: {
|
|
2433
|
+
reason: string;
|
|
2434
|
+
};
|
|
2435
|
+
transactionId: string;
|
|
2436
|
+
eventId: string;
|
|
2437
|
+
type?: "REJECT" | undefined;
|
|
2438
|
+
createdAtLocation?: string | null | undefined;
|
|
2439
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2440
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2441
|
+
originalActionId?: string | undefined;
|
|
2442
|
+
keepAssignment?: boolean | undefined;
|
|
2443
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2444
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2445
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2446
|
+
content: {
|
|
2447
|
+
duplicates: {
|
|
2448
|
+
id: string;
|
|
2449
|
+
trackingId: string;
|
|
2450
|
+
}[];
|
|
2451
|
+
};
|
|
2452
|
+
transactionId: string;
|
|
2453
|
+
eventId: string;
|
|
2454
|
+
type?: "DUPLICATE_DETECTED" | undefined;
|
|
2455
|
+
createdAtLocation?: string | null | undefined;
|
|
2456
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2457
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2458
|
+
originalActionId?: string | undefined;
|
|
2459
|
+
keepAssignment?: boolean | undefined;
|
|
2460
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2461
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2462
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2463
|
+
transactionId: string;
|
|
2464
|
+
eventId: string;
|
|
2465
|
+
type?: "MARK_AS_DUPLICATE" | undefined;
|
|
2466
|
+
content?: {
|
|
2467
|
+
duplicateOf: string;
|
|
2468
|
+
} | undefined;
|
|
2469
|
+
createdAtLocation?: string | null | undefined;
|
|
2470
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2471
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2472
|
+
originalActionId?: string | undefined;
|
|
2473
|
+
keepAssignment?: boolean | undefined;
|
|
2474
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2475
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2476
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2477
|
+
transactionId: string;
|
|
2478
|
+
eventId: string;
|
|
2479
|
+
type?: "MARK_AS_NOT_DUPLICATE" | undefined;
|
|
2480
|
+
createdAtLocation?: string | null | undefined;
|
|
2481
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2482
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2483
|
+
originalActionId?: string | undefined;
|
|
2484
|
+
keepAssignment?: boolean | undefined;
|
|
2485
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2486
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2487
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2488
|
+
content: {
|
|
2489
|
+
reason: string;
|
|
2490
|
+
};
|
|
2491
|
+
transactionId: string;
|
|
2492
|
+
eventId: string;
|
|
2493
|
+
type?: "ARCHIVE" | undefined;
|
|
2494
|
+
createdAtLocation?: string | null | undefined;
|
|
2495
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2496
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2497
|
+
originalActionId?: string | undefined;
|
|
2498
|
+
keepAssignment?: boolean | undefined;
|
|
2499
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2500
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2501
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2502
|
+
type: "ASSIGN";
|
|
2503
|
+
transactionId: string;
|
|
2504
|
+
assignedTo: string;
|
|
2505
|
+
eventId: string;
|
|
2506
|
+
createdAtLocation?: string | null | undefined;
|
|
2507
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2508
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2509
|
+
originalActionId?: string | undefined;
|
|
2510
|
+
keepAssignment?: boolean | undefined;
|
|
2511
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2512
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2513
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2514
|
+
transactionId: string;
|
|
2515
|
+
eventId: string;
|
|
2516
|
+
type?: "UNASSIGN" | undefined;
|
|
2517
|
+
createdAtLocation?: string | null | undefined;
|
|
2518
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2519
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2520
|
+
originalActionId?: string | undefined;
|
|
2521
|
+
assignedTo?: null | undefined;
|
|
2522
|
+
keepAssignment?: boolean | undefined;
|
|
2523
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2524
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2525
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2526
|
+
transactionId: string;
|
|
2527
|
+
eventId: string;
|
|
2528
|
+
type?: "PRINT_CERTIFICATE" | undefined;
|
|
2529
|
+
content?: {
|
|
2530
|
+
templateId?: string | undefined;
|
|
2531
|
+
} | undefined;
|
|
2532
|
+
createdAtLocation?: string | null | undefined;
|
|
2533
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2534
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2535
|
+
originalActionId?: string | undefined;
|
|
2536
|
+
keepAssignment?: boolean | undefined;
|
|
2537
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2538
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2539
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2540
|
+
transactionId: string;
|
|
2541
|
+
eventId: string;
|
|
2542
|
+
type?: "REQUEST_CORRECTION" | undefined;
|
|
2543
|
+
createdAtLocation?: string | null | undefined;
|
|
2544
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2545
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2546
|
+
originalActionId?: string | undefined;
|
|
2547
|
+
keepAssignment?: boolean | undefined;
|
|
2548
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2549
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2550
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2551
|
+
content: {
|
|
2552
|
+
reason: string;
|
|
2553
|
+
};
|
|
2554
|
+
transactionId: string;
|
|
2555
|
+
requestId: string;
|
|
2556
|
+
eventId: string;
|
|
2557
|
+
type?: "REJECT_CORRECTION" | undefined;
|
|
2558
|
+
createdAtLocation?: string | null | undefined;
|
|
2559
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2560
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2561
|
+
originalActionId?: string | undefined;
|
|
2562
|
+
keepAssignment?: boolean | undefined;
|
|
2563
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2564
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2565
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2566
|
+
transactionId: string;
|
|
2567
|
+
requestId: string;
|
|
2568
|
+
eventId: string;
|
|
2569
|
+
type?: "APPROVE_CORRECTION" | undefined;
|
|
2570
|
+
createdAtLocation?: string | null | undefined;
|
|
2571
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2572
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2573
|
+
originalActionId?: string | undefined;
|
|
2574
|
+
keepAssignment?: boolean | undefined;
|
|
2575
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2576
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2577
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2578
|
+
transactionId: string;
|
|
2579
|
+
eventId: string;
|
|
2580
|
+
type?: "READ" | undefined;
|
|
2581
|
+
createdAtLocation?: string | null | undefined;
|
|
2582
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2583
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2584
|
+
originalActionId?: string | undefined;
|
|
2585
|
+
keepAssignment?: boolean | undefined;
|
|
2586
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2587
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2588
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
|
|
2589
|
+
actionId: string;
|
|
2590
|
+
};
|
|
2591
|
+
output: import("../commons").EventDocument;
|
|
2592
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
2593
|
+
}>;
|
|
2594
|
+
reject: import("@trpc/server").TRPCMutationProcedure<{
|
|
2595
|
+
input: {
|
|
2596
|
+
eventId: string;
|
|
2597
|
+
actionId: string;
|
|
2598
|
+
transactionId: string;
|
|
2599
|
+
};
|
|
2600
|
+
output: import("../commons").EventDocument;
|
|
2601
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
2602
|
+
}>;
|
|
2603
|
+
}>>;
|
|
2604
|
+
archive: import("@trpc/server").TRPCBuiltRouter<{
|
|
2605
|
+
ctx: {
|
|
2606
|
+
user: {
|
|
2607
|
+
type: "user";
|
|
2608
|
+
id: string;
|
|
2609
|
+
role: string;
|
|
2610
|
+
primaryOfficeId: string & import("zod").BRAND<"UUID">;
|
|
2611
|
+
signature?: string | undefined;
|
|
2612
|
+
} | {
|
|
2613
|
+
type: "system";
|
|
2614
|
+
id: string;
|
|
2615
|
+
role: "HEALTH" | "NATIONAL_ID" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
2616
|
+
primaryOfficeId?: undefined;
|
|
2617
|
+
signature?: undefined;
|
|
2618
|
+
};
|
|
2619
|
+
token: `Bearer ${string}`;
|
|
2620
|
+
};
|
|
2621
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
2622
|
+
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
2623
|
+
transformer: true;
|
|
2624
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
2625
|
+
request: import("@trpc/server").TRPCMutationProcedure<{
|
|
2626
|
+
input: import("../commons").ActionInput;
|
|
2627
|
+
output: import("../commons").EventDocument;
|
|
2628
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
2629
|
+
}>;
|
|
2630
|
+
accept: import("@trpc/server").TRPCMutationProcedure<{
|
|
2631
|
+
input: (Omit<{
|
|
2632
|
+
transactionId: string;
|
|
2633
|
+
eventId: string;
|
|
2634
|
+
type?: "CREATE" | undefined;
|
|
2635
|
+
createdAtLocation?: string | null | undefined;
|
|
2636
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2637
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2638
|
+
originalActionId?: string | undefined;
|
|
2639
|
+
keepAssignment?: boolean | undefined;
|
|
2640
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2641
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2642
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2643
|
+
transactionId: string;
|
|
2644
|
+
eventId: string;
|
|
2645
|
+
type?: "VALIDATE" | undefined;
|
|
2646
|
+
createdAtLocation?: string | null | undefined;
|
|
2647
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2648
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2649
|
+
originalActionId?: string | undefined;
|
|
2650
|
+
keepAssignment?: boolean | undefined;
|
|
2651
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2652
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2653
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2654
|
+
transactionId: string;
|
|
2655
|
+
eventId: string;
|
|
2656
|
+
type?: "REGISTER" | undefined;
|
|
2657
|
+
createdAtLocation?: string | null | undefined;
|
|
2658
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2659
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2660
|
+
originalActionId?: string | undefined;
|
|
2661
|
+
registrationNumber?: string | undefined;
|
|
2662
|
+
keepAssignment?: boolean | undefined;
|
|
2663
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2664
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2665
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2666
|
+
transactionId: string;
|
|
2667
|
+
eventId: string;
|
|
2668
|
+
type?: "NOTIFY" | undefined;
|
|
2669
|
+
createdAtLocation?: string | null | undefined;
|
|
2670
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2671
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2672
|
+
originalActionId?: string | undefined;
|
|
2673
|
+
keepAssignment?: boolean | undefined;
|
|
2674
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2675
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2676
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2677
|
+
transactionId: string;
|
|
2678
|
+
eventId: string;
|
|
2679
|
+
type?: "DECLARE" | undefined;
|
|
2680
|
+
createdAtLocation?: string | null | undefined;
|
|
2681
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2682
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2683
|
+
originalActionId?: string | undefined;
|
|
2684
|
+
keepAssignment?: boolean | undefined;
|
|
2685
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2686
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2687
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2688
|
+
content: {
|
|
2689
|
+
reason: string;
|
|
2690
|
+
};
|
|
2691
|
+
transactionId: string;
|
|
2692
|
+
eventId: string;
|
|
2693
|
+
type?: "REJECT" | undefined;
|
|
2694
|
+
createdAtLocation?: string | null | undefined;
|
|
2695
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2696
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2697
|
+
originalActionId?: string | undefined;
|
|
2698
|
+
keepAssignment?: boolean | undefined;
|
|
2699
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2700
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2701
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2702
|
+
content: {
|
|
2703
|
+
duplicates: {
|
|
2704
|
+
id: string;
|
|
2705
|
+
trackingId: string;
|
|
2706
|
+
}[];
|
|
2707
|
+
};
|
|
2708
|
+
transactionId: string;
|
|
2709
|
+
eventId: string;
|
|
2710
|
+
type?: "DUPLICATE_DETECTED" | undefined;
|
|
2711
|
+
createdAtLocation?: string | null | undefined;
|
|
2712
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2713
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2714
|
+
originalActionId?: string | undefined;
|
|
2715
|
+
keepAssignment?: boolean | undefined;
|
|
2716
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2717
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2718
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2719
|
+
transactionId: string;
|
|
2720
|
+
eventId: string;
|
|
2721
|
+
type?: "MARK_AS_DUPLICATE" | undefined;
|
|
2722
|
+
content?: {
|
|
2723
|
+
duplicateOf: string;
|
|
2724
|
+
} | undefined;
|
|
2725
|
+
createdAtLocation?: string | null | undefined;
|
|
2726
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2727
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2728
|
+
originalActionId?: string | undefined;
|
|
2729
|
+
keepAssignment?: boolean | undefined;
|
|
2730
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2731
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2732
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2733
|
+
transactionId: string;
|
|
2734
|
+
eventId: string;
|
|
2735
|
+
type?: "MARK_AS_NOT_DUPLICATE" | undefined;
|
|
2736
|
+
createdAtLocation?: string | null | undefined;
|
|
2737
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2738
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2739
|
+
originalActionId?: string | undefined;
|
|
2740
|
+
keepAssignment?: boolean | undefined;
|
|
2741
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2742
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2743
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2744
|
+
content: {
|
|
2745
|
+
reason: string;
|
|
2746
|
+
};
|
|
2747
|
+
transactionId: string;
|
|
2748
|
+
eventId: string;
|
|
2749
|
+
type?: "ARCHIVE" | undefined;
|
|
2750
|
+
createdAtLocation?: string | null | undefined;
|
|
2751
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2752
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2753
|
+
originalActionId?: string | undefined;
|
|
2754
|
+
keepAssignment?: boolean | undefined;
|
|
2755
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2756
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2757
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2758
|
+
type: "ASSIGN";
|
|
2759
|
+
transactionId: string;
|
|
2760
|
+
assignedTo: string;
|
|
2761
|
+
eventId: string;
|
|
2762
|
+
createdAtLocation?: string | null | undefined;
|
|
2763
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2764
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2765
|
+
originalActionId?: string | undefined;
|
|
2766
|
+
keepAssignment?: boolean | undefined;
|
|
2767
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2768
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2769
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2770
|
+
transactionId: string;
|
|
2771
|
+
eventId: string;
|
|
2772
|
+
type?: "UNASSIGN" | undefined;
|
|
2773
|
+
createdAtLocation?: string | null | undefined;
|
|
2774
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2775
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2776
|
+
originalActionId?: string | undefined;
|
|
2777
|
+
assignedTo?: null | undefined;
|
|
2778
|
+
keepAssignment?: boolean | undefined;
|
|
2779
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2780
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2781
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2782
|
+
transactionId: string;
|
|
2783
|
+
eventId: string;
|
|
2784
|
+
type?: "PRINT_CERTIFICATE" | undefined;
|
|
2785
|
+
content?: {
|
|
2786
|
+
templateId?: string | undefined;
|
|
2787
|
+
} | undefined;
|
|
2788
|
+
createdAtLocation?: string | null | undefined;
|
|
2789
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2790
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2791
|
+
originalActionId?: string | undefined;
|
|
2792
|
+
keepAssignment?: boolean | undefined;
|
|
2793
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2794
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2795
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2796
|
+
transactionId: string;
|
|
2797
|
+
eventId: string;
|
|
2798
|
+
type?: "REQUEST_CORRECTION" | undefined;
|
|
2799
|
+
createdAtLocation?: string | null | undefined;
|
|
2800
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2801
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2802
|
+
originalActionId?: string | undefined;
|
|
2803
|
+
keepAssignment?: boolean | undefined;
|
|
2804
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2805
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2806
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2807
|
+
content: {
|
|
2808
|
+
reason: string;
|
|
2809
|
+
};
|
|
2810
|
+
transactionId: string;
|
|
2811
|
+
requestId: string;
|
|
2812
|
+
eventId: string;
|
|
2813
|
+
type?: "REJECT_CORRECTION" | undefined;
|
|
2814
|
+
createdAtLocation?: string | null | undefined;
|
|
2815
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2816
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2817
|
+
originalActionId?: string | undefined;
|
|
2818
|
+
keepAssignment?: boolean | undefined;
|
|
2819
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2820
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2821
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2822
|
+
transactionId: string;
|
|
2823
|
+
requestId: string;
|
|
2824
|
+
eventId: string;
|
|
2825
|
+
type?: "APPROVE_CORRECTION" | undefined;
|
|
2826
|
+
createdAtLocation?: string | null | undefined;
|
|
2827
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2828
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2829
|
+
originalActionId?: string | undefined;
|
|
2830
|
+
keepAssignment?: boolean | undefined;
|
|
2831
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2832
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2833
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2834
|
+
transactionId: string;
|
|
2835
|
+
eventId: string;
|
|
2836
|
+
type?: "READ" | undefined;
|
|
2837
|
+
createdAtLocation?: string | null | undefined;
|
|
2838
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2839
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2840
|
+
originalActionId?: string | undefined;
|
|
2841
|
+
keepAssignment?: boolean | undefined;
|
|
2842
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2843
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2844
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
|
|
2845
|
+
actionId: string;
|
|
2846
|
+
};
|
|
2847
|
+
output: import("../commons").EventDocument;
|
|
2848
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
2849
|
+
}>;
|
|
2850
|
+
reject: import("@trpc/server").TRPCMutationProcedure<{
|
|
2851
|
+
input: {
|
|
2852
|
+
eventId: string;
|
|
2853
|
+
actionId: string;
|
|
2854
|
+
transactionId: string;
|
|
2855
|
+
};
|
|
2856
|
+
output: import("../commons").EventDocument;
|
|
2857
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
2858
|
+
}>;
|
|
2859
|
+
}>>;
|
|
2860
|
+
register: import("@trpc/server").TRPCBuiltRouter<{
|
|
2861
|
+
ctx: {
|
|
2862
|
+
user: {
|
|
2863
|
+
type: "user";
|
|
2864
|
+
id: string;
|
|
2865
|
+
role: string;
|
|
2866
|
+
primaryOfficeId: string & import("zod").BRAND<"UUID">;
|
|
2867
|
+
signature?: string | undefined;
|
|
2868
|
+
} | {
|
|
2869
|
+
type: "system";
|
|
2870
|
+
id: string;
|
|
1759
2871
|
role: "HEALTH" | "NATIONAL_ID" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
1760
2872
|
primaryOfficeId?: undefined;
|
|
1761
2873
|
signature?: undefined;
|
|
@@ -1772,7 +2884,220 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1772
2884
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
1773
2885
|
}>;
|
|
1774
2886
|
accept: import("@trpc/server").TRPCMutationProcedure<{
|
|
1775
|
-
input:
|
|
2887
|
+
input: (Omit<{
|
|
2888
|
+
transactionId: string;
|
|
2889
|
+
eventId: string;
|
|
2890
|
+
type?: "CREATE" | undefined;
|
|
2891
|
+
createdAtLocation?: string | null | undefined;
|
|
2892
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2893
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2894
|
+
originalActionId?: string | undefined;
|
|
2895
|
+
keepAssignment?: boolean | undefined;
|
|
2896
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2897
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2898
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2899
|
+
transactionId: string;
|
|
2900
|
+
eventId: string;
|
|
2901
|
+
type?: "VALIDATE" | undefined;
|
|
2902
|
+
createdAtLocation?: string | null | undefined;
|
|
2903
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2904
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2905
|
+
originalActionId?: string | undefined;
|
|
2906
|
+
keepAssignment?: boolean | undefined;
|
|
2907
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2908
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2909
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2910
|
+
transactionId: string;
|
|
2911
|
+
eventId: string;
|
|
2912
|
+
type?: "REGISTER" | undefined;
|
|
2913
|
+
createdAtLocation?: string | null | undefined;
|
|
2914
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2915
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2916
|
+
originalActionId?: string | undefined;
|
|
2917
|
+
registrationNumber?: string | undefined;
|
|
2918
|
+
keepAssignment?: boolean | undefined;
|
|
2919
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2920
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2921
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2922
|
+
transactionId: string;
|
|
2923
|
+
eventId: string;
|
|
2924
|
+
type?: "NOTIFY" | undefined;
|
|
2925
|
+
createdAtLocation?: string | null | undefined;
|
|
2926
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2927
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2928
|
+
originalActionId?: string | undefined;
|
|
2929
|
+
keepAssignment?: boolean | undefined;
|
|
2930
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2931
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2932
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2933
|
+
transactionId: string;
|
|
2934
|
+
eventId: string;
|
|
2935
|
+
type?: "DECLARE" | undefined;
|
|
2936
|
+
createdAtLocation?: string | null | undefined;
|
|
2937
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2938
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2939
|
+
originalActionId?: string | undefined;
|
|
2940
|
+
keepAssignment?: boolean | undefined;
|
|
2941
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2942
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2943
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2944
|
+
content: {
|
|
2945
|
+
reason: string;
|
|
2946
|
+
};
|
|
2947
|
+
transactionId: string;
|
|
2948
|
+
eventId: string;
|
|
2949
|
+
type?: "REJECT" | undefined;
|
|
2950
|
+
createdAtLocation?: string | null | undefined;
|
|
2951
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2952
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2953
|
+
originalActionId?: string | undefined;
|
|
2954
|
+
keepAssignment?: boolean | undefined;
|
|
2955
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2956
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2957
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2958
|
+
content: {
|
|
2959
|
+
duplicates: {
|
|
2960
|
+
id: string;
|
|
2961
|
+
trackingId: string;
|
|
2962
|
+
}[];
|
|
2963
|
+
};
|
|
2964
|
+
transactionId: string;
|
|
2965
|
+
eventId: string;
|
|
2966
|
+
type?: "DUPLICATE_DETECTED" | undefined;
|
|
2967
|
+
createdAtLocation?: string | null | undefined;
|
|
2968
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2969
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2970
|
+
originalActionId?: string | undefined;
|
|
2971
|
+
keepAssignment?: boolean | undefined;
|
|
2972
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2973
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2974
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2975
|
+
transactionId: string;
|
|
2976
|
+
eventId: string;
|
|
2977
|
+
type?: "MARK_AS_DUPLICATE" | undefined;
|
|
2978
|
+
content?: {
|
|
2979
|
+
duplicateOf: string;
|
|
2980
|
+
} | undefined;
|
|
2981
|
+
createdAtLocation?: string | null | undefined;
|
|
2982
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2983
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2984
|
+
originalActionId?: string | undefined;
|
|
2985
|
+
keepAssignment?: boolean | undefined;
|
|
2986
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2987
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2988
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
2989
|
+
transactionId: string;
|
|
2990
|
+
eventId: string;
|
|
2991
|
+
type?: "MARK_AS_NOT_DUPLICATE" | undefined;
|
|
2992
|
+
createdAtLocation?: string | null | undefined;
|
|
2993
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2994
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2995
|
+
originalActionId?: string | undefined;
|
|
2996
|
+
keepAssignment?: boolean | undefined;
|
|
2997
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
2998
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2999
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
3000
|
+
content: {
|
|
3001
|
+
reason: string;
|
|
3002
|
+
};
|
|
3003
|
+
transactionId: string;
|
|
3004
|
+
eventId: string;
|
|
3005
|
+
type?: "ARCHIVE" | undefined;
|
|
3006
|
+
createdAtLocation?: string | null | undefined;
|
|
3007
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3008
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3009
|
+
originalActionId?: string | undefined;
|
|
3010
|
+
keepAssignment?: boolean | undefined;
|
|
3011
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
3012
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
3013
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
3014
|
+
type: "ASSIGN";
|
|
3015
|
+
transactionId: string;
|
|
3016
|
+
assignedTo: string;
|
|
3017
|
+
eventId: string;
|
|
3018
|
+
createdAtLocation?: string | null | undefined;
|
|
3019
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3020
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3021
|
+
originalActionId?: string | undefined;
|
|
3022
|
+
keepAssignment?: boolean | undefined;
|
|
3023
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
3024
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
3025
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
3026
|
+
transactionId: string;
|
|
3027
|
+
eventId: string;
|
|
3028
|
+
type?: "UNASSIGN" | undefined;
|
|
3029
|
+
createdAtLocation?: string | null | undefined;
|
|
3030
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3031
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3032
|
+
originalActionId?: string | undefined;
|
|
3033
|
+
assignedTo?: null | undefined;
|
|
3034
|
+
keepAssignment?: boolean | undefined;
|
|
3035
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
3036
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
3037
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
3038
|
+
transactionId: string;
|
|
3039
|
+
eventId: string;
|
|
3040
|
+
type?: "PRINT_CERTIFICATE" | undefined;
|
|
3041
|
+
content?: {
|
|
3042
|
+
templateId?: string | undefined;
|
|
3043
|
+
} | undefined;
|
|
3044
|
+
createdAtLocation?: string | null | undefined;
|
|
3045
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3046
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3047
|
+
originalActionId?: string | undefined;
|
|
3048
|
+
keepAssignment?: boolean | undefined;
|
|
3049
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
3050
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
3051
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
3052
|
+
transactionId: string;
|
|
3053
|
+
eventId: string;
|
|
3054
|
+
type?: "REQUEST_CORRECTION" | undefined;
|
|
3055
|
+
createdAtLocation?: string | null | undefined;
|
|
3056
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3057
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3058
|
+
originalActionId?: string | undefined;
|
|
3059
|
+
keepAssignment?: boolean | undefined;
|
|
3060
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
3061
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
3062
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
3063
|
+
content: {
|
|
3064
|
+
reason: string;
|
|
3065
|
+
};
|
|
3066
|
+
transactionId: string;
|
|
3067
|
+
requestId: string;
|
|
3068
|
+
eventId: string;
|
|
3069
|
+
type?: "REJECT_CORRECTION" | undefined;
|
|
3070
|
+
createdAtLocation?: string | null | undefined;
|
|
3071
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3072
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3073
|
+
originalActionId?: string | undefined;
|
|
3074
|
+
keepAssignment?: boolean | undefined;
|
|
3075
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
3076
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
3077
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
3078
|
+
transactionId: string;
|
|
3079
|
+
requestId: string;
|
|
3080
|
+
eventId: string;
|
|
3081
|
+
type?: "APPROVE_CORRECTION" | undefined;
|
|
3082
|
+
createdAtLocation?: string | null | undefined;
|
|
3083
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3084
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3085
|
+
originalActionId?: string | undefined;
|
|
3086
|
+
keepAssignment?: boolean | undefined;
|
|
3087
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
3088
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
3089
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
3090
|
+
transactionId: string;
|
|
3091
|
+
eventId: string;
|
|
3092
|
+
type?: "READ" | undefined;
|
|
3093
|
+
createdAtLocation?: string | null | undefined;
|
|
3094
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3095
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3096
|
+
originalActionId?: string | undefined;
|
|
3097
|
+
keepAssignment?: boolean | undefined;
|
|
3098
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
3099
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
3100
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
|
|
1776
3101
|
actionId: string;
|
|
1777
3102
|
};
|
|
1778
3103
|
output: import("../commons").EventDocument;
|
|
@@ -1788,7 +3113,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1788
3113
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
1789
3114
|
}>;
|
|
1790
3115
|
}>>;
|
|
1791
|
-
|
|
3116
|
+
printCertificate: import("@trpc/server").TRPCBuiltRouter<{
|
|
1792
3117
|
ctx: {
|
|
1793
3118
|
user: {
|
|
1794
3119
|
type: "user";
|
|
@@ -1815,50 +3140,220 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1815
3140
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
1816
3141
|
}>;
|
|
1817
3142
|
accept: import("@trpc/server").TRPCMutationProcedure<{
|
|
1818
|
-
input:
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
3143
|
+
input: (Omit<{
|
|
3144
|
+
transactionId: string;
|
|
3145
|
+
eventId: string;
|
|
3146
|
+
type?: "CREATE" | undefined;
|
|
3147
|
+
createdAtLocation?: string | null | undefined;
|
|
3148
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3149
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3150
|
+
originalActionId?: string | undefined;
|
|
3151
|
+
keepAssignment?: boolean | undefined;
|
|
3152
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
3153
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
3154
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
3155
|
+
transactionId: string;
|
|
3156
|
+
eventId: string;
|
|
3157
|
+
type?: "VALIDATE" | undefined;
|
|
3158
|
+
createdAtLocation?: string | null | undefined;
|
|
3159
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3160
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3161
|
+
originalActionId?: string | undefined;
|
|
3162
|
+
keepAssignment?: boolean | undefined;
|
|
3163
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
3164
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
3165
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
3166
|
+
transactionId: string;
|
|
3167
|
+
eventId: string;
|
|
3168
|
+
type?: "REGISTER" | undefined;
|
|
3169
|
+
createdAtLocation?: string | null | undefined;
|
|
3170
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3171
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3172
|
+
originalActionId?: string | undefined;
|
|
3173
|
+
registrationNumber?: string | undefined;
|
|
3174
|
+
keepAssignment?: boolean | undefined;
|
|
3175
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
3176
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
3177
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
3178
|
+
transactionId: string;
|
|
3179
|
+
eventId: string;
|
|
3180
|
+
type?: "NOTIFY" | undefined;
|
|
3181
|
+
createdAtLocation?: string | null | undefined;
|
|
3182
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3183
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3184
|
+
originalActionId?: string | undefined;
|
|
3185
|
+
keepAssignment?: boolean | undefined;
|
|
3186
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
3187
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
3188
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
3189
|
+
transactionId: string;
|
|
3190
|
+
eventId: string;
|
|
3191
|
+
type?: "DECLARE" | undefined;
|
|
3192
|
+
createdAtLocation?: string | null | undefined;
|
|
3193
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3194
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3195
|
+
originalActionId?: string | undefined;
|
|
3196
|
+
keepAssignment?: boolean | undefined;
|
|
3197
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
3198
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
3199
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
3200
|
+
content: {
|
|
3201
|
+
reason: string;
|
|
3202
|
+
};
|
|
3203
|
+
transactionId: string;
|
|
3204
|
+
eventId: string;
|
|
3205
|
+
type?: "REJECT" | undefined;
|
|
3206
|
+
createdAtLocation?: string | null | undefined;
|
|
3207
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3208
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3209
|
+
originalActionId?: string | undefined;
|
|
3210
|
+
keepAssignment?: boolean | undefined;
|
|
3211
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
3212
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
3213
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
3214
|
+
content: {
|
|
3215
|
+
duplicates: {
|
|
3216
|
+
id: string;
|
|
3217
|
+
trackingId: string;
|
|
3218
|
+
}[];
|
|
3219
|
+
};
|
|
3220
|
+
transactionId: string;
|
|
3221
|
+
eventId: string;
|
|
3222
|
+
type?: "DUPLICATE_DETECTED" | undefined;
|
|
3223
|
+
createdAtLocation?: string | null | undefined;
|
|
3224
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3225
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3226
|
+
originalActionId?: string | undefined;
|
|
3227
|
+
keepAssignment?: boolean | undefined;
|
|
3228
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
3229
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
3230
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
3231
|
+
transactionId: string;
|
|
3232
|
+
eventId: string;
|
|
3233
|
+
type?: "MARK_AS_DUPLICATE" | undefined;
|
|
3234
|
+
content?: {
|
|
3235
|
+
duplicateOf: string;
|
|
3236
|
+
} | undefined;
|
|
3237
|
+
createdAtLocation?: string | null | undefined;
|
|
3238
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3239
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3240
|
+
originalActionId?: string | undefined;
|
|
3241
|
+
keepAssignment?: boolean | undefined;
|
|
3242
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
3243
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
3244
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
3245
|
+
transactionId: string;
|
|
3246
|
+
eventId: string;
|
|
3247
|
+
type?: "MARK_AS_NOT_DUPLICATE" | undefined;
|
|
3248
|
+
createdAtLocation?: string | null | undefined;
|
|
3249
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3250
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3251
|
+
originalActionId?: string | undefined;
|
|
3252
|
+
keepAssignment?: boolean | undefined;
|
|
3253
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
3254
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
3255
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
3256
|
+
content: {
|
|
3257
|
+
reason: string;
|
|
3258
|
+
};
|
|
3259
|
+
transactionId: string;
|
|
3260
|
+
eventId: string;
|
|
3261
|
+
type?: "ARCHIVE" | undefined;
|
|
3262
|
+
createdAtLocation?: string | null | undefined;
|
|
3263
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3264
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3265
|
+
originalActionId?: string | undefined;
|
|
3266
|
+
keepAssignment?: boolean | undefined;
|
|
3267
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
3268
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
3269
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
3270
|
+
type: "ASSIGN";
|
|
3271
|
+
transactionId: string;
|
|
3272
|
+
assignedTo: string;
|
|
3273
|
+
eventId: string;
|
|
3274
|
+
createdAtLocation?: string | null | undefined;
|
|
3275
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3276
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3277
|
+
originalActionId?: string | undefined;
|
|
3278
|
+
keepAssignment?: boolean | undefined;
|
|
3279
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
3280
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
3281
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
3282
|
+
transactionId: string;
|
|
1826
3283
|
eventId: string;
|
|
1827
|
-
|
|
3284
|
+
type?: "UNASSIGN" | undefined;
|
|
3285
|
+
createdAtLocation?: string | null | undefined;
|
|
3286
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3287
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3288
|
+
originalActionId?: string | undefined;
|
|
3289
|
+
assignedTo?: null | undefined;
|
|
3290
|
+
keepAssignment?: boolean | undefined;
|
|
3291
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
3292
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
3293
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
1828
3294
|
transactionId: string;
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
3295
|
+
eventId: string;
|
|
3296
|
+
type?: "PRINT_CERTIFICATE" | undefined;
|
|
3297
|
+
content?: {
|
|
3298
|
+
templateId?: string | undefined;
|
|
3299
|
+
} | undefined;
|
|
3300
|
+
createdAtLocation?: string | null | undefined;
|
|
3301
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3302
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3303
|
+
originalActionId?: string | undefined;
|
|
3304
|
+
keepAssignment?: boolean | undefined;
|
|
3305
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
3306
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
3307
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
3308
|
+
transactionId: string;
|
|
3309
|
+
eventId: string;
|
|
3310
|
+
type?: "REQUEST_CORRECTION" | undefined;
|
|
3311
|
+
createdAtLocation?: string | null | undefined;
|
|
3312
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3313
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3314
|
+
originalActionId?: string | undefined;
|
|
3315
|
+
keepAssignment?: boolean | undefined;
|
|
3316
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
3317
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
3318
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
3319
|
+
content: {
|
|
3320
|
+
reason: string;
|
|
3321
|
+
};
|
|
3322
|
+
transactionId: string;
|
|
3323
|
+
requestId: string;
|
|
3324
|
+
eventId: string;
|
|
3325
|
+
type?: "REJECT_CORRECTION" | undefined;
|
|
3326
|
+
createdAtLocation?: string | null | undefined;
|
|
3327
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3328
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3329
|
+
originalActionId?: string | undefined;
|
|
3330
|
+
keepAssignment?: boolean | undefined;
|
|
3331
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
3332
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
3333
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
3334
|
+
transactionId: string;
|
|
3335
|
+
requestId: string;
|
|
3336
|
+
eventId: string;
|
|
3337
|
+
type?: "APPROVE_CORRECTION" | undefined;
|
|
3338
|
+
createdAtLocation?: string | null | undefined;
|
|
3339
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3340
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3341
|
+
originalActionId?: string | undefined;
|
|
3342
|
+
keepAssignment?: boolean | undefined;
|
|
3343
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
3344
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
3345
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
3346
|
+
transactionId: string;
|
|
3347
|
+
eventId: string;
|
|
3348
|
+
type?: "READ" | undefined;
|
|
3349
|
+
createdAtLocation?: string | null | undefined;
|
|
3350
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3351
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
3352
|
+
originalActionId?: string | undefined;
|
|
3353
|
+
keepAssignment?: boolean | undefined;
|
|
3354
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
3355
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
3356
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
|
|
1862
3357
|
actionId: string;
|
|
1863
3358
|
};
|
|
1864
3359
|
output: import("../commons").EventDocument;
|
|
@@ -1906,6 +3401,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1906
3401
|
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
1907
3402
|
originalActionId?: string | undefined;
|
|
1908
3403
|
keepAssignment?: boolean | undefined;
|
|
3404
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
3405
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
1909
3406
|
};
|
|
1910
3407
|
output: {
|
|
1911
3408
|
type: string;
|
|
@@ -2203,6 +3700,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2203
3700
|
originalActionId?: string | undefined;
|
|
2204
3701
|
assignedTo?: null | undefined;
|
|
2205
3702
|
keepAssignment?: boolean | undefined;
|
|
3703
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
3704
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2206
3705
|
};
|
|
2207
3706
|
output: {
|
|
2208
3707
|
type: string;
|
|
@@ -2538,7 +4037,220 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2538
4037
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
2539
4038
|
}>;
|
|
2540
4039
|
accept: import("@trpc/server").TRPCMutationProcedure<{
|
|
2541
|
-
input:
|
|
4040
|
+
input: (Omit<{
|
|
4041
|
+
transactionId: string;
|
|
4042
|
+
eventId: string;
|
|
4043
|
+
type?: "CREATE" | undefined;
|
|
4044
|
+
createdAtLocation?: string | null | undefined;
|
|
4045
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4046
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4047
|
+
originalActionId?: string | undefined;
|
|
4048
|
+
keepAssignment?: boolean | undefined;
|
|
4049
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4050
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4051
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4052
|
+
transactionId: string;
|
|
4053
|
+
eventId: string;
|
|
4054
|
+
type?: "VALIDATE" | undefined;
|
|
4055
|
+
createdAtLocation?: string | null | undefined;
|
|
4056
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4057
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4058
|
+
originalActionId?: string | undefined;
|
|
4059
|
+
keepAssignment?: boolean | undefined;
|
|
4060
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4061
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4062
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4063
|
+
transactionId: string;
|
|
4064
|
+
eventId: string;
|
|
4065
|
+
type?: "REGISTER" | undefined;
|
|
4066
|
+
createdAtLocation?: string | null | undefined;
|
|
4067
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4068
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4069
|
+
originalActionId?: string | undefined;
|
|
4070
|
+
registrationNumber?: string | undefined;
|
|
4071
|
+
keepAssignment?: boolean | undefined;
|
|
4072
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4073
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4074
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4075
|
+
transactionId: string;
|
|
4076
|
+
eventId: string;
|
|
4077
|
+
type?: "NOTIFY" | undefined;
|
|
4078
|
+
createdAtLocation?: string | null | undefined;
|
|
4079
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4080
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4081
|
+
originalActionId?: string | undefined;
|
|
4082
|
+
keepAssignment?: boolean | undefined;
|
|
4083
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4084
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4085
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4086
|
+
transactionId: string;
|
|
4087
|
+
eventId: string;
|
|
4088
|
+
type?: "DECLARE" | undefined;
|
|
4089
|
+
createdAtLocation?: string | null | undefined;
|
|
4090
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4091
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4092
|
+
originalActionId?: string | undefined;
|
|
4093
|
+
keepAssignment?: boolean | undefined;
|
|
4094
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4095
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4096
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4097
|
+
content: {
|
|
4098
|
+
reason: string;
|
|
4099
|
+
};
|
|
4100
|
+
transactionId: string;
|
|
4101
|
+
eventId: string;
|
|
4102
|
+
type?: "REJECT" | undefined;
|
|
4103
|
+
createdAtLocation?: string | null | undefined;
|
|
4104
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4105
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4106
|
+
originalActionId?: string | undefined;
|
|
4107
|
+
keepAssignment?: boolean | undefined;
|
|
4108
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4109
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4110
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4111
|
+
content: {
|
|
4112
|
+
duplicates: {
|
|
4113
|
+
id: string;
|
|
4114
|
+
trackingId: string;
|
|
4115
|
+
}[];
|
|
4116
|
+
};
|
|
4117
|
+
transactionId: string;
|
|
4118
|
+
eventId: string;
|
|
4119
|
+
type?: "DUPLICATE_DETECTED" | undefined;
|
|
4120
|
+
createdAtLocation?: string | null | undefined;
|
|
4121
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4122
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4123
|
+
originalActionId?: string | undefined;
|
|
4124
|
+
keepAssignment?: boolean | undefined;
|
|
4125
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4126
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4127
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4128
|
+
transactionId: string;
|
|
4129
|
+
eventId: string;
|
|
4130
|
+
type?: "MARK_AS_DUPLICATE" | undefined;
|
|
4131
|
+
content?: {
|
|
4132
|
+
duplicateOf: string;
|
|
4133
|
+
} | undefined;
|
|
4134
|
+
createdAtLocation?: string | null | undefined;
|
|
4135
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4136
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4137
|
+
originalActionId?: string | undefined;
|
|
4138
|
+
keepAssignment?: boolean | undefined;
|
|
4139
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4140
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4141
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4142
|
+
transactionId: string;
|
|
4143
|
+
eventId: string;
|
|
4144
|
+
type?: "MARK_AS_NOT_DUPLICATE" | undefined;
|
|
4145
|
+
createdAtLocation?: string | null | undefined;
|
|
4146
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4147
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4148
|
+
originalActionId?: string | undefined;
|
|
4149
|
+
keepAssignment?: boolean | undefined;
|
|
4150
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4151
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4152
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4153
|
+
content: {
|
|
4154
|
+
reason: string;
|
|
4155
|
+
};
|
|
4156
|
+
transactionId: string;
|
|
4157
|
+
eventId: string;
|
|
4158
|
+
type?: "ARCHIVE" | undefined;
|
|
4159
|
+
createdAtLocation?: string | null | undefined;
|
|
4160
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4161
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4162
|
+
originalActionId?: string | undefined;
|
|
4163
|
+
keepAssignment?: boolean | undefined;
|
|
4164
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4165
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4166
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4167
|
+
type: "ASSIGN";
|
|
4168
|
+
transactionId: string;
|
|
4169
|
+
assignedTo: string;
|
|
4170
|
+
eventId: string;
|
|
4171
|
+
createdAtLocation?: string | null | undefined;
|
|
4172
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4173
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4174
|
+
originalActionId?: string | undefined;
|
|
4175
|
+
keepAssignment?: boolean | undefined;
|
|
4176
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4177
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4178
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4179
|
+
transactionId: string;
|
|
4180
|
+
eventId: string;
|
|
4181
|
+
type?: "UNASSIGN" | undefined;
|
|
4182
|
+
createdAtLocation?: string | null | undefined;
|
|
4183
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4184
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4185
|
+
originalActionId?: string | undefined;
|
|
4186
|
+
assignedTo?: null | undefined;
|
|
4187
|
+
keepAssignment?: boolean | undefined;
|
|
4188
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4189
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4190
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4191
|
+
transactionId: string;
|
|
4192
|
+
eventId: string;
|
|
4193
|
+
type?: "PRINT_CERTIFICATE" | undefined;
|
|
4194
|
+
content?: {
|
|
4195
|
+
templateId?: string | undefined;
|
|
4196
|
+
} | undefined;
|
|
4197
|
+
createdAtLocation?: string | null | undefined;
|
|
4198
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4199
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4200
|
+
originalActionId?: string | undefined;
|
|
4201
|
+
keepAssignment?: boolean | undefined;
|
|
4202
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4203
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4204
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4205
|
+
transactionId: string;
|
|
4206
|
+
eventId: string;
|
|
4207
|
+
type?: "REQUEST_CORRECTION" | undefined;
|
|
4208
|
+
createdAtLocation?: string | null | undefined;
|
|
4209
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4210
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4211
|
+
originalActionId?: string | undefined;
|
|
4212
|
+
keepAssignment?: boolean | undefined;
|
|
4213
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4214
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4215
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4216
|
+
content: {
|
|
4217
|
+
reason: string;
|
|
4218
|
+
};
|
|
4219
|
+
transactionId: string;
|
|
4220
|
+
requestId: string;
|
|
4221
|
+
eventId: string;
|
|
4222
|
+
type?: "REJECT_CORRECTION" | undefined;
|
|
4223
|
+
createdAtLocation?: string | null | undefined;
|
|
4224
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4225
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4226
|
+
originalActionId?: string | undefined;
|
|
4227
|
+
keepAssignment?: boolean | undefined;
|
|
4228
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4229
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4230
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4231
|
+
transactionId: string;
|
|
4232
|
+
requestId: string;
|
|
4233
|
+
eventId: string;
|
|
4234
|
+
type?: "APPROVE_CORRECTION" | undefined;
|
|
4235
|
+
createdAtLocation?: string | null | undefined;
|
|
4236
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4237
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4238
|
+
originalActionId?: string | undefined;
|
|
4239
|
+
keepAssignment?: boolean | undefined;
|
|
4240
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4241
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4242
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4243
|
+
transactionId: string;
|
|
4244
|
+
eventId: string;
|
|
4245
|
+
type?: "READ" | undefined;
|
|
4246
|
+
createdAtLocation?: string | null | undefined;
|
|
4247
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4248
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4249
|
+
originalActionId?: string | undefined;
|
|
4250
|
+
keepAssignment?: boolean | undefined;
|
|
4251
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4252
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4253
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
|
|
2542
4254
|
actionId: string;
|
|
2543
4255
|
};
|
|
2544
4256
|
output: import("../commons").EventDocument;
|
|
@@ -2581,7 +4293,220 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2581
4293
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
2582
4294
|
}>;
|
|
2583
4295
|
accept: import("@trpc/server").TRPCMutationProcedure<{
|
|
2584
|
-
input:
|
|
4296
|
+
input: (Omit<{
|
|
4297
|
+
transactionId: string;
|
|
4298
|
+
eventId: string;
|
|
4299
|
+
type?: "CREATE" | undefined;
|
|
4300
|
+
createdAtLocation?: string | null | undefined;
|
|
4301
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4302
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4303
|
+
originalActionId?: string | undefined;
|
|
4304
|
+
keepAssignment?: boolean | undefined;
|
|
4305
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4306
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4307
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4308
|
+
transactionId: string;
|
|
4309
|
+
eventId: string;
|
|
4310
|
+
type?: "VALIDATE" | undefined;
|
|
4311
|
+
createdAtLocation?: string | null | undefined;
|
|
4312
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4313
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4314
|
+
originalActionId?: string | undefined;
|
|
4315
|
+
keepAssignment?: boolean | undefined;
|
|
4316
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4317
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4318
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4319
|
+
transactionId: string;
|
|
4320
|
+
eventId: string;
|
|
4321
|
+
type?: "REGISTER" | undefined;
|
|
4322
|
+
createdAtLocation?: string | null | undefined;
|
|
4323
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4324
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4325
|
+
originalActionId?: string | undefined;
|
|
4326
|
+
registrationNumber?: string | undefined;
|
|
4327
|
+
keepAssignment?: boolean | undefined;
|
|
4328
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4329
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4330
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4331
|
+
transactionId: string;
|
|
4332
|
+
eventId: string;
|
|
4333
|
+
type?: "NOTIFY" | undefined;
|
|
4334
|
+
createdAtLocation?: string | null | undefined;
|
|
4335
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4336
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4337
|
+
originalActionId?: string | undefined;
|
|
4338
|
+
keepAssignment?: boolean | undefined;
|
|
4339
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4340
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4341
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4342
|
+
transactionId: string;
|
|
4343
|
+
eventId: string;
|
|
4344
|
+
type?: "DECLARE" | undefined;
|
|
4345
|
+
createdAtLocation?: string | null | undefined;
|
|
4346
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4347
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4348
|
+
originalActionId?: string | undefined;
|
|
4349
|
+
keepAssignment?: boolean | undefined;
|
|
4350
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4351
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4352
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4353
|
+
content: {
|
|
4354
|
+
reason: string;
|
|
4355
|
+
};
|
|
4356
|
+
transactionId: string;
|
|
4357
|
+
eventId: string;
|
|
4358
|
+
type?: "REJECT" | undefined;
|
|
4359
|
+
createdAtLocation?: string | null | undefined;
|
|
4360
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4361
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4362
|
+
originalActionId?: string | undefined;
|
|
4363
|
+
keepAssignment?: boolean | undefined;
|
|
4364
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4365
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4366
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4367
|
+
content: {
|
|
4368
|
+
duplicates: {
|
|
4369
|
+
id: string;
|
|
4370
|
+
trackingId: string;
|
|
4371
|
+
}[];
|
|
4372
|
+
};
|
|
4373
|
+
transactionId: string;
|
|
4374
|
+
eventId: string;
|
|
4375
|
+
type?: "DUPLICATE_DETECTED" | undefined;
|
|
4376
|
+
createdAtLocation?: string | null | undefined;
|
|
4377
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4378
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4379
|
+
originalActionId?: string | undefined;
|
|
4380
|
+
keepAssignment?: boolean | undefined;
|
|
4381
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4382
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4383
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4384
|
+
transactionId: string;
|
|
4385
|
+
eventId: string;
|
|
4386
|
+
type?: "MARK_AS_DUPLICATE" | undefined;
|
|
4387
|
+
content?: {
|
|
4388
|
+
duplicateOf: string;
|
|
4389
|
+
} | undefined;
|
|
4390
|
+
createdAtLocation?: string | null | undefined;
|
|
4391
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4392
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4393
|
+
originalActionId?: string | undefined;
|
|
4394
|
+
keepAssignment?: boolean | undefined;
|
|
4395
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4396
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4397
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4398
|
+
transactionId: string;
|
|
4399
|
+
eventId: string;
|
|
4400
|
+
type?: "MARK_AS_NOT_DUPLICATE" | undefined;
|
|
4401
|
+
createdAtLocation?: string | null | undefined;
|
|
4402
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4403
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4404
|
+
originalActionId?: string | undefined;
|
|
4405
|
+
keepAssignment?: boolean | undefined;
|
|
4406
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4407
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4408
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4409
|
+
content: {
|
|
4410
|
+
reason: string;
|
|
4411
|
+
};
|
|
4412
|
+
transactionId: string;
|
|
4413
|
+
eventId: string;
|
|
4414
|
+
type?: "ARCHIVE" | undefined;
|
|
4415
|
+
createdAtLocation?: string | null | undefined;
|
|
4416
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4417
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4418
|
+
originalActionId?: string | undefined;
|
|
4419
|
+
keepAssignment?: boolean | undefined;
|
|
4420
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4421
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4422
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4423
|
+
type: "ASSIGN";
|
|
4424
|
+
transactionId: string;
|
|
4425
|
+
assignedTo: string;
|
|
4426
|
+
eventId: string;
|
|
4427
|
+
createdAtLocation?: string | null | undefined;
|
|
4428
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4429
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4430
|
+
originalActionId?: string | undefined;
|
|
4431
|
+
keepAssignment?: boolean | undefined;
|
|
4432
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4433
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4434
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4435
|
+
transactionId: string;
|
|
4436
|
+
eventId: string;
|
|
4437
|
+
type?: "UNASSIGN" | undefined;
|
|
4438
|
+
createdAtLocation?: string | null | undefined;
|
|
4439
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4440
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4441
|
+
originalActionId?: string | undefined;
|
|
4442
|
+
assignedTo?: null | undefined;
|
|
4443
|
+
keepAssignment?: boolean | undefined;
|
|
4444
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4445
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4446
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4447
|
+
transactionId: string;
|
|
4448
|
+
eventId: string;
|
|
4449
|
+
type?: "PRINT_CERTIFICATE" | undefined;
|
|
4450
|
+
content?: {
|
|
4451
|
+
templateId?: string | undefined;
|
|
4452
|
+
} | undefined;
|
|
4453
|
+
createdAtLocation?: string | null | undefined;
|
|
4454
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4455
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4456
|
+
originalActionId?: string | undefined;
|
|
4457
|
+
keepAssignment?: boolean | undefined;
|
|
4458
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4459
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4460
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4461
|
+
transactionId: string;
|
|
4462
|
+
eventId: string;
|
|
4463
|
+
type?: "REQUEST_CORRECTION" | undefined;
|
|
4464
|
+
createdAtLocation?: string | null | undefined;
|
|
4465
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4466
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4467
|
+
originalActionId?: string | undefined;
|
|
4468
|
+
keepAssignment?: boolean | undefined;
|
|
4469
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4470
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4471
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4472
|
+
content: {
|
|
4473
|
+
reason: string;
|
|
4474
|
+
};
|
|
4475
|
+
transactionId: string;
|
|
4476
|
+
requestId: string;
|
|
4477
|
+
eventId: string;
|
|
4478
|
+
type?: "REJECT_CORRECTION" | undefined;
|
|
4479
|
+
createdAtLocation?: string | null | undefined;
|
|
4480
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4481
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4482
|
+
originalActionId?: string | undefined;
|
|
4483
|
+
keepAssignment?: boolean | undefined;
|
|
4484
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4485
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4486
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4487
|
+
transactionId: string;
|
|
4488
|
+
requestId: string;
|
|
4489
|
+
eventId: string;
|
|
4490
|
+
type?: "APPROVE_CORRECTION" | undefined;
|
|
4491
|
+
createdAtLocation?: string | null | undefined;
|
|
4492
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4493
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4494
|
+
originalActionId?: string | undefined;
|
|
4495
|
+
keepAssignment?: boolean | undefined;
|
|
4496
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4497
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4498
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4499
|
+
transactionId: string;
|
|
4500
|
+
eventId: string;
|
|
4501
|
+
type?: "READ" | undefined;
|
|
4502
|
+
createdAtLocation?: string | null | undefined;
|
|
4503
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4504
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4505
|
+
originalActionId?: string | undefined;
|
|
4506
|
+
keepAssignment?: boolean | undefined;
|
|
4507
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4508
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4509
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
|
|
2585
4510
|
actionId: string;
|
|
2586
4511
|
};
|
|
2587
4512
|
output: import("../commons").EventDocument;
|
|
@@ -2624,7 +4549,220 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2624
4549
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
2625
4550
|
}>;
|
|
2626
4551
|
accept: import("@trpc/server").TRPCMutationProcedure<{
|
|
2627
|
-
input:
|
|
4552
|
+
input: (Omit<{
|
|
4553
|
+
transactionId: string;
|
|
4554
|
+
eventId: string;
|
|
4555
|
+
type?: "CREATE" | undefined;
|
|
4556
|
+
createdAtLocation?: string | null | undefined;
|
|
4557
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4558
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4559
|
+
originalActionId?: string | undefined;
|
|
4560
|
+
keepAssignment?: boolean | undefined;
|
|
4561
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4562
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4563
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4564
|
+
transactionId: string;
|
|
4565
|
+
eventId: string;
|
|
4566
|
+
type?: "VALIDATE" | undefined;
|
|
4567
|
+
createdAtLocation?: string | null | undefined;
|
|
4568
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4569
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4570
|
+
originalActionId?: string | undefined;
|
|
4571
|
+
keepAssignment?: boolean | undefined;
|
|
4572
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4573
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4574
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4575
|
+
transactionId: string;
|
|
4576
|
+
eventId: string;
|
|
4577
|
+
type?: "REGISTER" | undefined;
|
|
4578
|
+
createdAtLocation?: string | null | undefined;
|
|
4579
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4580
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4581
|
+
originalActionId?: string | undefined;
|
|
4582
|
+
registrationNumber?: string | undefined;
|
|
4583
|
+
keepAssignment?: boolean | undefined;
|
|
4584
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4585
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4586
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4587
|
+
transactionId: string;
|
|
4588
|
+
eventId: string;
|
|
4589
|
+
type?: "NOTIFY" | undefined;
|
|
4590
|
+
createdAtLocation?: string | null | undefined;
|
|
4591
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4592
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4593
|
+
originalActionId?: string | undefined;
|
|
4594
|
+
keepAssignment?: boolean | undefined;
|
|
4595
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4596
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4597
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4598
|
+
transactionId: string;
|
|
4599
|
+
eventId: string;
|
|
4600
|
+
type?: "DECLARE" | undefined;
|
|
4601
|
+
createdAtLocation?: string | null | undefined;
|
|
4602
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4603
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4604
|
+
originalActionId?: string | undefined;
|
|
4605
|
+
keepAssignment?: boolean | undefined;
|
|
4606
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4607
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4608
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4609
|
+
content: {
|
|
4610
|
+
reason: string;
|
|
4611
|
+
};
|
|
4612
|
+
transactionId: string;
|
|
4613
|
+
eventId: string;
|
|
4614
|
+
type?: "REJECT" | undefined;
|
|
4615
|
+
createdAtLocation?: string | null | undefined;
|
|
4616
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4617
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4618
|
+
originalActionId?: string | undefined;
|
|
4619
|
+
keepAssignment?: boolean | undefined;
|
|
4620
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4621
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4622
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4623
|
+
content: {
|
|
4624
|
+
duplicates: {
|
|
4625
|
+
id: string;
|
|
4626
|
+
trackingId: string;
|
|
4627
|
+
}[];
|
|
4628
|
+
};
|
|
4629
|
+
transactionId: string;
|
|
4630
|
+
eventId: string;
|
|
4631
|
+
type?: "DUPLICATE_DETECTED" | undefined;
|
|
4632
|
+
createdAtLocation?: string | null | undefined;
|
|
4633
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4634
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4635
|
+
originalActionId?: string | undefined;
|
|
4636
|
+
keepAssignment?: boolean | undefined;
|
|
4637
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4638
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4639
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4640
|
+
transactionId: string;
|
|
4641
|
+
eventId: string;
|
|
4642
|
+
type?: "MARK_AS_DUPLICATE" | undefined;
|
|
4643
|
+
content?: {
|
|
4644
|
+
duplicateOf: string;
|
|
4645
|
+
} | undefined;
|
|
4646
|
+
createdAtLocation?: string | null | undefined;
|
|
4647
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4648
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4649
|
+
originalActionId?: string | undefined;
|
|
4650
|
+
keepAssignment?: boolean | undefined;
|
|
4651
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4652
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4653
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4654
|
+
transactionId: string;
|
|
4655
|
+
eventId: string;
|
|
4656
|
+
type?: "MARK_AS_NOT_DUPLICATE" | undefined;
|
|
4657
|
+
createdAtLocation?: string | null | undefined;
|
|
4658
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4659
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4660
|
+
originalActionId?: string | undefined;
|
|
4661
|
+
keepAssignment?: boolean | undefined;
|
|
4662
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4663
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4664
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4665
|
+
content: {
|
|
4666
|
+
reason: string;
|
|
4667
|
+
};
|
|
4668
|
+
transactionId: string;
|
|
4669
|
+
eventId: string;
|
|
4670
|
+
type?: "ARCHIVE" | undefined;
|
|
4671
|
+
createdAtLocation?: string | null | undefined;
|
|
4672
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4673
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4674
|
+
originalActionId?: string | undefined;
|
|
4675
|
+
keepAssignment?: boolean | undefined;
|
|
4676
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4677
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4678
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4679
|
+
type: "ASSIGN";
|
|
4680
|
+
transactionId: string;
|
|
4681
|
+
assignedTo: string;
|
|
4682
|
+
eventId: string;
|
|
4683
|
+
createdAtLocation?: string | null | undefined;
|
|
4684
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4685
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4686
|
+
originalActionId?: string | undefined;
|
|
4687
|
+
keepAssignment?: boolean | undefined;
|
|
4688
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4689
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4690
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4691
|
+
transactionId: string;
|
|
4692
|
+
eventId: string;
|
|
4693
|
+
type?: "UNASSIGN" | undefined;
|
|
4694
|
+
createdAtLocation?: string | null | undefined;
|
|
4695
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4696
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4697
|
+
originalActionId?: string | undefined;
|
|
4698
|
+
assignedTo?: null | undefined;
|
|
4699
|
+
keepAssignment?: boolean | undefined;
|
|
4700
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4701
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4702
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4703
|
+
transactionId: string;
|
|
4704
|
+
eventId: string;
|
|
4705
|
+
type?: "PRINT_CERTIFICATE" | undefined;
|
|
4706
|
+
content?: {
|
|
4707
|
+
templateId?: string | undefined;
|
|
4708
|
+
} | undefined;
|
|
4709
|
+
createdAtLocation?: string | null | undefined;
|
|
4710
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4711
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4712
|
+
originalActionId?: string | undefined;
|
|
4713
|
+
keepAssignment?: boolean | undefined;
|
|
4714
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4715
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4716
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4717
|
+
transactionId: string;
|
|
4718
|
+
eventId: string;
|
|
4719
|
+
type?: "REQUEST_CORRECTION" | undefined;
|
|
4720
|
+
createdAtLocation?: string | null | undefined;
|
|
4721
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4722
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4723
|
+
originalActionId?: string | undefined;
|
|
4724
|
+
keepAssignment?: boolean | undefined;
|
|
4725
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4726
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4727
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4728
|
+
content: {
|
|
4729
|
+
reason: string;
|
|
4730
|
+
};
|
|
4731
|
+
transactionId: string;
|
|
4732
|
+
requestId: string;
|
|
4733
|
+
eventId: string;
|
|
4734
|
+
type?: "REJECT_CORRECTION" | undefined;
|
|
4735
|
+
createdAtLocation?: string | null | undefined;
|
|
4736
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4737
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4738
|
+
originalActionId?: string | undefined;
|
|
4739
|
+
keepAssignment?: boolean | undefined;
|
|
4740
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4741
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4742
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4743
|
+
transactionId: string;
|
|
4744
|
+
requestId: string;
|
|
4745
|
+
eventId: string;
|
|
4746
|
+
type?: "APPROVE_CORRECTION" | undefined;
|
|
4747
|
+
createdAtLocation?: string | null | undefined;
|
|
4748
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4749
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4750
|
+
originalActionId?: string | undefined;
|
|
4751
|
+
keepAssignment?: boolean | undefined;
|
|
4752
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4753
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4754
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
|
|
4755
|
+
transactionId: string;
|
|
4756
|
+
eventId: string;
|
|
4757
|
+
type?: "READ" | undefined;
|
|
4758
|
+
createdAtLocation?: string | null | undefined;
|
|
4759
|
+
declaration?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4760
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
4761
|
+
originalActionId?: string | undefined;
|
|
4762
|
+
keepAssignment?: boolean | undefined;
|
|
4763
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4764
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
4765
|
+
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
|
|
2628
4766
|
actionId: string;
|
|
2629
4767
|
};
|
|
2630
4768
|
output: import("../commons").EventDocument;
|
|
@@ -2675,6 +4813,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2675
4813
|
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2676
4814
|
originalActionId?: string | undefined;
|
|
2677
4815
|
keepAssignment?: boolean | undefined;
|
|
4816
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
4817
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2678
4818
|
};
|
|
2679
4819
|
output: {
|
|
2680
4820
|
type: string;
|
|
@@ -2971,6 +5111,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2971
5111
|
annotation?: Record<string, import("../commons").FieldUpdateValue> | undefined;
|
|
2972
5112
|
originalActionId?: string | undefined;
|
|
2973
5113
|
keepAssignment?: boolean | undefined;
|
|
5114
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
5115
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
2974
5116
|
};
|
|
2975
5117
|
output: {
|
|
2976
5118
|
type: string;
|