@opencrvs/toolkit 2.0.0-rc.fdc585a → 2.0.0-rc.ff04b30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/create-countryconfig/index.js +73 -0
  2. package/create-countryconfig/package.json +11 -0
  3. package/dist/application-config/index.js +27 -28
  4. package/dist/cli.js +392 -128
  5. package/dist/commons/api/router.d.ts +3301 -247
  6. package/dist/commons/conditionals/validate.d.ts +1 -0
  7. package/dist/commons/events/ActionInput.d.ts +108 -0
  8. package/dist/commons/events/Draft.d.ts +3 -0
  9. package/dist/commons/events/EventIndex.d.ts +0 -3
  10. package/dist/commons/events/EventMetadata.d.ts +0 -7
  11. package/dist/commons/events/WorkqueueConfig.d.ts +146 -146
  12. package/dist/commons/events/locations.d.ts +21 -0
  13. package/dist/commons/events/mocks.test.utils.d.ts +19 -0
  14. package/dist/commons/events/scopes.d.ts +24 -1
  15. package/dist/commons/events/state/index.d.ts +0 -4
  16. package/dist/commons/events/state/utils.d.ts +0 -2
  17. package/dist/commons/events/utils.d.ts +1 -1
  18. package/dist/conditionals/index.js +3 -1
  19. package/dist/events/index.js +109 -76
  20. package/dist/migrations/v2.0/checkout-upstream-files.d.ts +1 -1
  21. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
  22. package/dist/migrations/v2.0/checkout-upstream-files.js +1 -2
  23. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts +9 -1
  24. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts.map +1 -1
  25. package/dist/migrations/v2.0/delete-infrastructure-directory.js +66 -20
  26. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.d.ts +3 -0
  27. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.d.ts.map +1 -0
  28. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.js +110 -0
  29. package/dist/migrations/v2.0/index.d.ts +5 -3
  30. package/dist/migrations/v2.0/index.d.ts.map +1 -1
  31. package/dist/migrations/v2.0/index.js +390 -126
  32. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts +11 -1
  33. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts.map +1 -1
  34. package/dist/migrations/v2.0/merge-infrastructure-directory.js +17 -16
  35. package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -1
  36. package/dist/migrations/v2.0/migrate-scopes.js +54 -30
  37. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +1 -1
  38. package/dist/migrations/v2.0/migrate-workqueue-configs.js +140 -59
  39. package/dist/notification/index.js +41 -46
  40. package/dist/scopes/index.js +3 -1
  41. package/opencrvs-toolkit-2.0.0-rc.ff04b30.tgz +0 -0
  42. package/package.json +1 -1
  43. package/tsconfig.tsbuildinfo +1 -1
  44. package/opencrvs-toolkit-2.0.0-rc.fdc585a.tgz +0 -0
@@ -1105,6 +1105,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1105
1105
  annotation?: Record<string, unknown> | undefined;
1106
1106
  originalActionId?: string | undefined;
1107
1107
  keepAssignment?: boolean | undefined;
1108
+ keepAssignmentIfAccepted?: boolean | undefined;
1109
+ keepAssignmentIfRejected?: boolean | undefined;
1110
+ waitFor?: boolean | undefined;
1108
1111
  createdAtLocation?: string | null | undefined;
1109
1112
  };
1110
1113
  output: {
@@ -1179,23 +1182,270 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1179
1182
  meta: import("trpc-to-openapi").OpenApiMeta;
1180
1183
  }>;
1181
1184
  accept: import("@trpc/server").TRPCMutationProcedure<{
1182
- input: import("../commons").ActionInput & {
1185
+ input: (Omit<{
1186
+ eventId: string;
1187
+ transactionId: string;
1188
+ declaration?: Record<string, unknown> | undefined;
1189
+ annotation?: Record<string, unknown> | undefined;
1190
+ originalActionId?: string | undefined;
1191
+ keepAssignment?: boolean | undefined;
1192
+ keepAssignmentIfAccepted?: boolean | undefined;
1193
+ keepAssignmentIfRejected?: boolean | undefined;
1194
+ waitFor?: boolean | undefined;
1195
+ type?: "CREATE" | undefined;
1196
+ createdAtLocation?: string | null | undefined;
1197
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1198
+ eventId: string;
1199
+ transactionId: string;
1200
+ declaration?: Record<string, unknown> | undefined;
1201
+ annotation?: Record<string, unknown> | undefined;
1202
+ originalActionId?: string | undefined;
1203
+ keepAssignment?: boolean | undefined;
1204
+ keepAssignmentIfAccepted?: boolean | undefined;
1205
+ keepAssignmentIfRejected?: boolean | undefined;
1206
+ waitFor?: boolean | undefined;
1207
+ createdAtLocation?: string | null | undefined;
1208
+ type?: "REGISTER" | undefined;
1209
+ registrationNumber?: string | undefined;
1210
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1211
+ eventId: string;
1212
+ transactionId: string;
1213
+ declaration?: Record<string, unknown> | undefined;
1214
+ annotation?: Record<string, unknown> | undefined;
1215
+ originalActionId?: string | undefined;
1216
+ keepAssignment?: boolean | undefined;
1217
+ keepAssignmentIfAccepted?: boolean | undefined;
1218
+ keepAssignmentIfRejected?: boolean | undefined;
1219
+ waitFor?: boolean | undefined;
1220
+ type?: "NOTIFY" | undefined;
1221
+ createdAtLocation?: string | null | undefined;
1222
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1223
+ eventId: string;
1224
+ transactionId: string;
1225
+ declaration?: Record<string, unknown> | undefined;
1226
+ annotation?: Record<string, unknown> | undefined;
1227
+ originalActionId?: string | undefined;
1228
+ keepAssignment?: boolean | undefined;
1229
+ keepAssignmentIfAccepted?: boolean | undefined;
1230
+ keepAssignmentIfRejected?: boolean | undefined;
1231
+ waitFor?: boolean | undefined;
1232
+ createdAtLocation?: string | null | undefined;
1233
+ type?: "DECLARE" | undefined;
1234
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1235
+ eventId: string;
1236
+ transactionId: string;
1237
+ content: {
1238
+ reason: string;
1239
+ };
1240
+ declaration?: Record<string, unknown> | undefined;
1241
+ annotation?: Record<string, unknown> | undefined;
1242
+ originalActionId?: string | undefined;
1243
+ keepAssignment?: boolean | undefined;
1244
+ keepAssignmentIfAccepted?: boolean | undefined;
1245
+ keepAssignmentIfRejected?: boolean | undefined;
1246
+ waitFor?: boolean | undefined;
1247
+ createdAtLocation?: string | null | undefined;
1248
+ type?: "REJECT" | undefined;
1249
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1250
+ eventId: string;
1251
+ transactionId: string;
1252
+ content: {
1253
+ duplicates: {
1254
+ id: string;
1255
+ trackingId: string;
1256
+ }[];
1257
+ };
1258
+ declaration?: Record<string, unknown> | undefined;
1259
+ annotation?: Record<string, unknown> | undefined;
1260
+ originalActionId?: string | undefined;
1261
+ keepAssignment?: boolean | undefined;
1262
+ keepAssignmentIfAccepted?: boolean | undefined;
1263
+ keepAssignmentIfRejected?: boolean | undefined;
1264
+ waitFor?: boolean | undefined;
1265
+ createdAtLocation?: string | null | undefined;
1266
+ type?: "DUPLICATE_DETECTED" | undefined;
1267
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1268
+ eventId: string;
1269
+ transactionId: string;
1270
+ declaration?: Record<string, unknown> | undefined;
1271
+ annotation?: Record<string, unknown> | undefined;
1272
+ originalActionId?: string | undefined;
1273
+ keepAssignment?: boolean | undefined;
1274
+ keepAssignmentIfAccepted?: boolean | undefined;
1275
+ keepAssignmentIfRejected?: boolean | undefined;
1276
+ waitFor?: boolean | undefined;
1277
+ createdAtLocation?: string | null | undefined;
1278
+ type?: "MARK_AS_DUPLICATE" | undefined;
1279
+ content?: {
1280
+ duplicateOf: string;
1281
+ } | undefined;
1282
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1283
+ eventId: string;
1284
+ transactionId: string;
1285
+ declaration?: Record<string, unknown> | undefined;
1286
+ annotation?: Record<string, unknown> | undefined;
1287
+ originalActionId?: string | undefined;
1288
+ keepAssignment?: boolean | undefined;
1289
+ keepAssignmentIfAccepted?: boolean | undefined;
1290
+ keepAssignmentIfRejected?: boolean | undefined;
1291
+ waitFor?: boolean | undefined;
1292
+ createdAtLocation?: string | null | undefined;
1293
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
1294
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1295
+ eventId: string;
1296
+ transactionId: string;
1297
+ content: {
1298
+ reason: string;
1299
+ };
1300
+ declaration?: Record<string, unknown> | undefined;
1301
+ annotation?: Record<string, unknown> | undefined;
1302
+ originalActionId?: string | undefined;
1303
+ keepAssignment?: boolean | undefined;
1304
+ keepAssignmentIfAccepted?: boolean | undefined;
1305
+ keepAssignmentIfRejected?: boolean | undefined;
1306
+ waitFor?: boolean | undefined;
1307
+ createdAtLocation?: string | null | undefined;
1308
+ type?: "ARCHIVE" | undefined;
1309
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1310
+ eventId: string;
1311
+ transactionId: string;
1312
+ type: "ASSIGN";
1313
+ assignedTo: string;
1314
+ declaration?: Record<string, unknown> | undefined;
1315
+ annotation?: Record<string, unknown> | undefined;
1316
+ originalActionId?: string | undefined;
1317
+ keepAssignment?: boolean | undefined;
1318
+ keepAssignmentIfAccepted?: boolean | undefined;
1319
+ keepAssignmentIfRejected?: boolean | undefined;
1320
+ waitFor?: boolean | undefined;
1321
+ createdAtLocation?: string | null | undefined;
1322
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1323
+ eventId: string;
1324
+ transactionId: string;
1325
+ declaration?: Record<string, unknown> | undefined;
1326
+ annotation?: Record<string, unknown> | undefined;
1327
+ originalActionId?: string | undefined;
1328
+ keepAssignment?: boolean | undefined;
1329
+ keepAssignmentIfAccepted?: boolean | undefined;
1330
+ keepAssignmentIfRejected?: boolean | undefined;
1331
+ waitFor?: boolean | undefined;
1332
+ createdAtLocation?: string | null | undefined;
1333
+ type?: "UNASSIGN" | undefined;
1334
+ assignedTo?: null | undefined;
1335
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1336
+ eventId: string;
1337
+ transactionId: string;
1338
+ declaration?: Record<string, unknown> | undefined;
1339
+ annotation?: Record<string, unknown> | undefined;
1340
+ originalActionId?: string | undefined;
1341
+ keepAssignment?: boolean | undefined;
1342
+ keepAssignmentIfAccepted?: boolean | undefined;
1343
+ keepAssignmentIfRejected?: boolean | undefined;
1344
+ waitFor?: boolean | undefined;
1345
+ createdAtLocation?: string | null | undefined;
1346
+ type?: "PRINT_CERTIFICATE" | undefined;
1347
+ content?: {
1348
+ templateId?: string | undefined;
1349
+ } | undefined;
1350
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1351
+ eventId: string;
1352
+ transactionId: string;
1353
+ declaration?: Record<string, unknown> | undefined;
1354
+ annotation?: Record<string, unknown> | undefined;
1355
+ originalActionId?: string | undefined;
1356
+ keepAssignment?: boolean | undefined;
1357
+ keepAssignmentIfAccepted?: boolean | undefined;
1358
+ keepAssignmentIfRejected?: boolean | undefined;
1359
+ waitFor?: boolean | undefined;
1360
+ createdAtLocation?: string | null | undefined;
1361
+ type?: "REQUEST_CORRECTION" | undefined;
1362
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1363
+ eventId: string;
1364
+ transactionId: string;
1365
+ requestId: string;
1366
+ content: {
1367
+ reason: string;
1368
+ };
1369
+ declaration?: Record<string, unknown> | undefined;
1370
+ annotation?: Record<string, unknown> | undefined;
1371
+ originalActionId?: string | undefined;
1372
+ keepAssignment?: boolean | undefined;
1373
+ keepAssignmentIfAccepted?: boolean | undefined;
1374
+ keepAssignmentIfRejected?: boolean | undefined;
1375
+ waitFor?: boolean | undefined;
1376
+ createdAtLocation?: string | null | undefined;
1377
+ type?: "REJECT_CORRECTION" | undefined;
1378
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1379
+ eventId: string;
1380
+ transactionId: string;
1381
+ requestId: string;
1382
+ declaration?: Record<string, unknown> | undefined;
1383
+ annotation?: Record<string, unknown> | undefined;
1384
+ originalActionId?: string | undefined;
1385
+ keepAssignment?: boolean | undefined;
1386
+ keepAssignmentIfAccepted?: boolean | undefined;
1387
+ keepAssignmentIfRejected?: boolean | undefined;
1388
+ waitFor?: boolean | undefined;
1389
+ createdAtLocation?: string | null | undefined;
1390
+ type?: "APPROVE_CORRECTION" | undefined;
1391
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1392
+ eventId: string;
1393
+ transactionId: string;
1394
+ declaration?: Record<string, unknown> | undefined;
1395
+ annotation?: Record<string, unknown> | undefined;
1396
+ originalActionId?: string | undefined;
1397
+ keepAssignment?: boolean | undefined;
1398
+ keepAssignmentIfAccepted?: boolean | undefined;
1399
+ keepAssignmentIfRejected?: boolean | undefined;
1400
+ waitFor?: boolean | undefined;
1401
+ createdAtLocation?: string | null | undefined;
1402
+ type?: "READ" | undefined;
1403
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1404
+ eventId: string;
1405
+ transactionId: string;
1406
+ customActionType: string;
1407
+ declaration?: Record<string, unknown> | undefined;
1408
+ annotation?: Record<string, unknown> | undefined;
1409
+ originalActionId?: string | undefined;
1410
+ keepAssignment?: boolean | undefined;
1411
+ keepAssignmentIfAccepted?: boolean | undefined;
1412
+ keepAssignmentIfRejected?: boolean | undefined;
1413
+ waitFor?: boolean | undefined;
1414
+ createdAtLocation?: string | null | undefined;
1415
+ type?: "CUSTOM" | undefined;
1416
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1417
+ eventId: string;
1418
+ transactionId: string;
1419
+ content: {
1420
+ comment?: string | undefined;
1421
+ };
1422
+ declaration?: Record<string, unknown> | undefined;
1423
+ annotation?: Record<string, unknown> | undefined;
1424
+ originalActionId?: string | undefined;
1425
+ keepAssignment?: boolean | undefined;
1426
+ keepAssignmentIfAccepted?: boolean | undefined;
1427
+ keepAssignmentIfRejected?: boolean | undefined;
1428
+ waitFor?: boolean | undefined;
1429
+ createdAtLocation?: string | null | undefined;
1430
+ type?: "EDIT" | undefined;
1431
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
1183
1432
  actionId: string;
1184
1433
  };
1185
1434
  output: import("../commons").EventDocument;
1186
1435
  meta: import("trpc-to-openapi").OpenApiMeta;
1187
1436
  }>;
1188
1437
  reject: import("@trpc/server").TRPCMutationProcedure<{
1189
- input: {
1190
- eventId: string;
1191
- actionId: string;
1192
- transactionId: string;
1193
- };
1438
+ input: import("zod").input<import("zod").ZodObject<{
1439
+ transactionId: import("zod").ZodString;
1440
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
1441
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
1442
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
1443
+ }, import("zod/v4/core").$strip>>;
1194
1444
  output: import("../commons").EventDocument;
1195
1445
  meta: import("trpc-to-openapi").OpenApiMeta;
1196
1446
  }>;
1197
1447
  }>>;
1198
- declare: import("@trpc/server").TRPCBuiltRouter<{
1448
+ createAndNotify: import("@trpc/server").TRPCBuiltRouter<{
1199
1449
  ctx: Partial<{
1200
1450
  token: `Bearer ${string}`;
1201
1451
  user: {
@@ -1219,14 +1469,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1219
1469
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1220
1470
  request: import("@trpc/server").TRPCMutationProcedure<{
1221
1471
  input: {
1222
- eventId: string;
1223
1472
  transactionId: string;
1473
+ eventType: string;
1474
+ createdAtLocation: string;
1224
1475
  declaration?: Record<string, unknown> | undefined;
1225
1476
  annotation?: Record<string, unknown> | undefined;
1226
1477
  originalActionId?: string | undefined;
1227
1478
  keepAssignment?: boolean | undefined;
1228
- createdAtLocation?: string | null | undefined;
1229
- type?: "DECLARE" | undefined;
1479
+ keepAssignmentIfAccepted?: boolean | undefined;
1480
+ keepAssignmentIfRejected?: boolean | undefined;
1481
+ waitFor?: boolean | undefined;
1230
1482
  };
1231
1483
  output: {
1232
1484
  id: string & import("zod").$brand<"UUID">;
@@ -1531,68 +1783,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1531
1783
  };
1532
1784
  meta: import("trpc-to-openapi").OpenApiMeta;
1533
1785
  }>;
1534
- accept: import("@trpc/server").TRPCMutationProcedure<{
1535
- input: import("../commons").ActionInput & {
1536
- actionId: string;
1537
- };
1538
- output: import("../commons").EventDocument;
1539
- meta: import("trpc-to-openapi").OpenApiMeta;
1540
- }>;
1541
- reject: import("@trpc/server").TRPCMutationProcedure<{
1542
- input: {
1543
- eventId: string;
1544
- actionId: string;
1545
- transactionId: string;
1546
- };
1547
- output: import("../commons").EventDocument;
1548
- meta: import("trpc-to-openapi").OpenApiMeta;
1549
- }>;
1550
- }>>;
1551
- edit: import("@trpc/server").TRPCBuiltRouter<{
1552
- ctx: Partial<{
1553
- token: `Bearer ${string}`;
1554
- user: {
1555
- id: string & import("zod").$brand<"UUID">;
1556
- type: "system";
1557
- signature?: undefined;
1558
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1559
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1560
- } | {
1561
- id: string & import("zod").$brand<"UUID">;
1562
- type: "user";
1563
- role: string;
1564
- primaryOfficeId: string & import("zod").$brand<"UUID">;
1565
- signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1566
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1567
- };
1568
- }>;
1569
- meta: import("trpc-to-openapi").OpenApiMeta;
1570
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1571
- transformer: true;
1572
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1573
- request: import("@trpc/server").TRPCMutationProcedure<{
1574
- input: import("../commons").ActionInput;
1575
- output: import("../commons").EventDocument;
1576
- meta: import("trpc-to-openapi").OpenApiMeta;
1577
- }>;
1578
- accept: import("@trpc/server").TRPCMutationProcedure<{
1579
- input: import("../commons").ActionInput & {
1580
- actionId: string;
1581
- };
1582
- output: import("../commons").EventDocument;
1583
- meta: import("trpc-to-openapi").OpenApiMeta;
1584
- }>;
1585
- reject: import("@trpc/server").TRPCMutationProcedure<{
1586
- input: {
1587
- eventId: string;
1588
- actionId: string;
1589
- transactionId: string;
1590
- };
1591
- output: import("../commons").EventDocument;
1592
- meta: import("trpc-to-openapi").OpenApiMeta;
1593
- }>;
1594
1786
  }>>;
1595
- reject: import("@trpc/server").TRPCBuiltRouter<{
1787
+ declare: import("@trpc/server").TRPCBuiltRouter<{
1596
1788
  ctx: Partial<{
1597
1789
  token: `Bearer ${string}`;
1598
1790
  user: {
@@ -1615,43 +1807,1766 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1615
1807
  transformer: true;
1616
1808
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1617
1809
  request: import("@trpc/server").TRPCMutationProcedure<{
1618
- input: import("../commons").ActionInput;
1619
- output: import("../commons").EventDocument;
1620
- meta: import("trpc-to-openapi").OpenApiMeta;
1621
- }>;
1622
- accept: import("@trpc/server").TRPCMutationProcedure<{
1623
- input: import("../commons").ActionInput & {
1624
- actionId: string;
1625
- };
1626
- output: import("../commons").EventDocument;
1627
- meta: import("trpc-to-openapi").OpenApiMeta;
1628
- }>;
1629
- reject: import("@trpc/server").TRPCMutationProcedure<{
1630
1810
  input: {
1631
1811
  eventId: string;
1632
- actionId: string;
1633
1812
  transactionId: string;
1813
+ declaration?: Record<string, unknown> | undefined;
1814
+ annotation?: Record<string, unknown> | undefined;
1815
+ originalActionId?: string | undefined;
1816
+ keepAssignment?: boolean | undefined;
1817
+ keepAssignmentIfAccepted?: boolean | undefined;
1818
+ keepAssignmentIfRejected?: boolean | undefined;
1819
+ waitFor?: boolean | undefined;
1820
+ createdAtLocation?: string | null | undefined;
1821
+ type?: "DECLARE" | undefined;
1634
1822
  };
1635
- output: import("../commons").EventDocument;
1636
- meta: import("trpc-to-openapi").OpenApiMeta;
1637
- }>;
1638
- }>>;
1639
- archive: import("@trpc/server").TRPCBuiltRouter<{
1640
- ctx: Partial<{
1641
- token: `Bearer ${string}`;
1642
- user: {
1643
- id: string & import("zod").$brand<"UUID">;
1644
- type: "system";
1645
- signature?: undefined;
1646
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1647
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1648
- } | {
1823
+ output: {
1649
1824
  id: string & import("zod").$brand<"UUID">;
1650
- type: "user";
1651
- role: string;
1652
- primaryOfficeId: string & import("zod").$brand<"UUID">;
1653
- signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1654
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1825
+ type: string;
1826
+ createdAt: string;
1827
+ updatedAt: string;
1828
+ actions: ({
1829
+ id: string & import("zod").$brand<"UUID">;
1830
+ transactionId: string;
1831
+ createdByUserType: "system" | "user";
1832
+ createdAt: string;
1833
+ createdBy: string;
1834
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1835
+ status: "Requested" | "Accepted" | "Rejected";
1836
+ type: "CREATE";
1837
+ createdByRole?: string | undefined;
1838
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1839
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1840
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1841
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1842
+ } | {
1843
+ id: string & import("zod").$brand<"UUID">;
1844
+ transactionId: string;
1845
+ createdByUserType: "system" | "user";
1846
+ createdAt: string;
1847
+ createdBy: string;
1848
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1849
+ status: "Requested" | "Accepted" | "Rejected";
1850
+ type: "REJECT";
1851
+ content: {
1852
+ reason: string;
1853
+ };
1854
+ createdByRole?: string | undefined;
1855
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1856
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1857
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1858
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1859
+ } | {
1860
+ id: string & import("zod").$brand<"UUID">;
1861
+ transactionId: string;
1862
+ createdByUserType: "system" | "user";
1863
+ createdAt: string;
1864
+ createdBy: string;
1865
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1866
+ status: "Requested" | "Accepted" | "Rejected";
1867
+ type: "DUPLICATE_DETECTED";
1868
+ content: {
1869
+ duplicates: {
1870
+ id: string & import("zod").$brand<"UUID">;
1871
+ trackingId: string;
1872
+ }[];
1873
+ };
1874
+ createdByRole?: string | undefined;
1875
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1876
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1877
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1878
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1879
+ } | {
1880
+ id: string & import("zod").$brand<"UUID">;
1881
+ transactionId: string;
1882
+ createdByUserType: "system" | "user";
1883
+ createdAt: string;
1884
+ createdBy: string;
1885
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1886
+ status: "Requested" | "Accepted" | "Rejected";
1887
+ type: "MARK_AS_NOT_DUPLICATE";
1888
+ createdByRole?: string | undefined;
1889
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1890
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1891
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1892
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1893
+ } | {
1894
+ id: string & import("zod").$brand<"UUID">;
1895
+ transactionId: string;
1896
+ createdByUserType: "system" | "user";
1897
+ createdAt: string;
1898
+ createdBy: string;
1899
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1900
+ status: "Requested" | "Accepted" | "Rejected";
1901
+ type: "MARK_AS_DUPLICATE";
1902
+ createdByRole?: string | undefined;
1903
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1904
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1905
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1906
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1907
+ content?: {
1908
+ duplicateOf: string & import("zod").$brand<"UUID">;
1909
+ } | undefined;
1910
+ } | {
1911
+ id: string & import("zod").$brand<"UUID">;
1912
+ transactionId: string;
1913
+ createdByUserType: "system" | "user";
1914
+ createdAt: string;
1915
+ createdBy: string;
1916
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1917
+ status: "Requested" | "Accepted" | "Rejected";
1918
+ type: "ARCHIVE";
1919
+ content: {
1920
+ reason: string;
1921
+ };
1922
+ createdByRole?: string | undefined;
1923
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1924
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1925
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1926
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1927
+ } | {
1928
+ id: string & import("zod").$brand<"UUID">;
1929
+ transactionId: string;
1930
+ createdByUserType: "system" | "user";
1931
+ createdAt: string;
1932
+ createdBy: string;
1933
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1934
+ status: "Requested" | "Accepted" | "Rejected";
1935
+ type: "NOTIFY";
1936
+ createdByRole?: string | undefined;
1937
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1938
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1939
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1940
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1941
+ } | {
1942
+ id: string & import("zod").$brand<"UUID">;
1943
+ transactionId: string;
1944
+ createdByUserType: "system" | "user";
1945
+ createdAt: string;
1946
+ createdBy: string;
1947
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1948
+ status: "Requested" | "Accepted" | "Rejected";
1949
+ type: "REGISTER";
1950
+ createdByRole?: string | undefined;
1951
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1952
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1953
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1954
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1955
+ registrationNumber?: string | undefined;
1956
+ } | {
1957
+ id: string & import("zod").$brand<"UUID">;
1958
+ transactionId: string;
1959
+ createdByUserType: "system" | "user";
1960
+ createdAt: string;
1961
+ createdBy: string;
1962
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1963
+ status: "Requested" | "Accepted" | "Rejected";
1964
+ type: "DECLARE";
1965
+ createdByRole?: string | undefined;
1966
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1967
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1968
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1969
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1970
+ } | {
1971
+ id: string & import("zod").$brand<"UUID">;
1972
+ transactionId: string;
1973
+ createdByUserType: "system" | "user";
1974
+ createdAt: string;
1975
+ createdBy: string;
1976
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1977
+ status: "Requested" | "Accepted" | "Rejected";
1978
+ type: "ASSIGN";
1979
+ assignedTo: string;
1980
+ createdByRole?: string | undefined;
1981
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1982
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1983
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1984
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1985
+ } | {
1986
+ id: string & import("zod").$brand<"UUID">;
1987
+ transactionId: string;
1988
+ createdByUserType: "system" | "user";
1989
+ createdAt: string;
1990
+ createdBy: string;
1991
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1992
+ status: "Requested" | "Accepted" | "Rejected";
1993
+ type: "REQUEST_CORRECTION";
1994
+ createdByRole?: string | undefined;
1995
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1996
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1997
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1998
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1999
+ } | {
2000
+ id: string & import("zod").$brand<"UUID">;
2001
+ transactionId: string;
2002
+ createdByUserType: "system" | "user";
2003
+ createdAt: string;
2004
+ createdBy: string;
2005
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
2006
+ status: "Requested" | "Accepted" | "Rejected";
2007
+ type: "APPROVE_CORRECTION";
2008
+ requestId: string;
2009
+ createdByRole?: string | undefined;
2010
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2011
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2012
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
2013
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2014
+ } | {
2015
+ id: string & import("zod").$brand<"UUID">;
2016
+ transactionId: string;
2017
+ createdByUserType: "system" | "user";
2018
+ createdAt: string;
2019
+ createdBy: string;
2020
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
2021
+ status: "Requested" | "Accepted" | "Rejected";
2022
+ type: "REJECT_CORRECTION";
2023
+ requestId: string;
2024
+ content: {
2025
+ reason: string;
2026
+ };
2027
+ createdByRole?: string | undefined;
2028
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2029
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2030
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
2031
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2032
+ } | {
2033
+ id: string & import("zod").$brand<"UUID">;
2034
+ transactionId: string;
2035
+ createdByUserType: "system" | "user";
2036
+ createdAt: string;
2037
+ createdBy: string;
2038
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
2039
+ status: "Requested" | "Accepted" | "Rejected";
2040
+ type: "UNASSIGN";
2041
+ createdByRole?: string | undefined;
2042
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2043
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2044
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
2045
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2046
+ } | {
2047
+ id: string & import("zod").$brand<"UUID">;
2048
+ transactionId: string;
2049
+ createdByUserType: "system" | "user";
2050
+ createdAt: string;
2051
+ createdBy: string;
2052
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
2053
+ status: "Requested" | "Accepted" | "Rejected";
2054
+ type: "PRINT_CERTIFICATE";
2055
+ createdByRole?: string | undefined;
2056
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2057
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2058
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
2059
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2060
+ content?: {
2061
+ templateId?: string | undefined;
2062
+ } | null | undefined;
2063
+ } | {
2064
+ id: string & import("zod").$brand<"UUID">;
2065
+ transactionId: string;
2066
+ createdByUserType: "system" | "user";
2067
+ createdAt: string;
2068
+ createdBy: string;
2069
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
2070
+ status: "Requested" | "Accepted" | "Rejected";
2071
+ type: "READ";
2072
+ createdByRole?: string | undefined;
2073
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2074
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2075
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
2076
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2077
+ } | {
2078
+ id: string & import("zod").$brand<"UUID">;
2079
+ transactionId: string;
2080
+ createdByUserType: "system" | "user";
2081
+ createdAt: string;
2082
+ createdBy: string;
2083
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
2084
+ status: "Requested" | "Accepted" | "Rejected";
2085
+ type: "EDIT";
2086
+ content: {
2087
+ comment?: string | undefined;
2088
+ };
2089
+ createdByRole?: string | undefined;
2090
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2091
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2092
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
2093
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2094
+ } | {
2095
+ id: string & import("zod").$brand<"UUID">;
2096
+ transactionId: string;
2097
+ createdByUserType: "system" | "user";
2098
+ createdAt: string;
2099
+ createdBy: string;
2100
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
2101
+ status: "Requested" | "Accepted" | "Rejected";
2102
+ type: "CUSTOM";
2103
+ customActionType: string;
2104
+ createdByRole?: string | undefined;
2105
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2106
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2107
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
2108
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2109
+ } | {
2110
+ id: string & import("zod").$brand<"UUID">;
2111
+ transactionId: string;
2112
+ createdByUserType: "system" | "user";
2113
+ createdAt: string;
2114
+ createdBy: string;
2115
+ type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
2116
+ status: "Rejected";
2117
+ createdByRole?: string | undefined;
2118
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2119
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2120
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2121
+ })[];
2122
+ trackingId: string;
2123
+ };
2124
+ meta: import("trpc-to-openapi").OpenApiMeta;
2125
+ }>;
2126
+ accept: import("@trpc/server").TRPCMutationProcedure<{
2127
+ input: (Omit<{
2128
+ eventId: string;
2129
+ transactionId: string;
2130
+ declaration?: Record<string, unknown> | undefined;
2131
+ annotation?: Record<string, unknown> | undefined;
2132
+ originalActionId?: string | undefined;
2133
+ keepAssignment?: boolean | undefined;
2134
+ keepAssignmentIfAccepted?: boolean | undefined;
2135
+ keepAssignmentIfRejected?: boolean | undefined;
2136
+ waitFor?: boolean | undefined;
2137
+ type?: "CREATE" | undefined;
2138
+ createdAtLocation?: string | null | undefined;
2139
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2140
+ eventId: string;
2141
+ transactionId: string;
2142
+ declaration?: Record<string, unknown> | undefined;
2143
+ annotation?: Record<string, unknown> | undefined;
2144
+ originalActionId?: string | undefined;
2145
+ keepAssignment?: boolean | undefined;
2146
+ keepAssignmentIfAccepted?: boolean | undefined;
2147
+ keepAssignmentIfRejected?: boolean | undefined;
2148
+ waitFor?: boolean | undefined;
2149
+ createdAtLocation?: string | null | undefined;
2150
+ type?: "REGISTER" | undefined;
2151
+ registrationNumber?: string | undefined;
2152
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2153
+ eventId: string;
2154
+ transactionId: string;
2155
+ declaration?: Record<string, unknown> | undefined;
2156
+ annotation?: Record<string, unknown> | undefined;
2157
+ originalActionId?: string | undefined;
2158
+ keepAssignment?: boolean | undefined;
2159
+ keepAssignmentIfAccepted?: boolean | undefined;
2160
+ keepAssignmentIfRejected?: boolean | undefined;
2161
+ waitFor?: boolean | undefined;
2162
+ type?: "NOTIFY" | undefined;
2163
+ createdAtLocation?: string | null | undefined;
2164
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2165
+ eventId: string;
2166
+ transactionId: string;
2167
+ declaration?: Record<string, unknown> | undefined;
2168
+ annotation?: Record<string, unknown> | undefined;
2169
+ originalActionId?: string | undefined;
2170
+ keepAssignment?: boolean | undefined;
2171
+ keepAssignmentIfAccepted?: boolean | undefined;
2172
+ keepAssignmentIfRejected?: boolean | undefined;
2173
+ waitFor?: boolean | undefined;
2174
+ createdAtLocation?: string | null | undefined;
2175
+ type?: "DECLARE" | undefined;
2176
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2177
+ eventId: string;
2178
+ transactionId: string;
2179
+ content: {
2180
+ reason: string;
2181
+ };
2182
+ declaration?: Record<string, unknown> | undefined;
2183
+ annotation?: Record<string, unknown> | undefined;
2184
+ originalActionId?: string | undefined;
2185
+ keepAssignment?: boolean | undefined;
2186
+ keepAssignmentIfAccepted?: boolean | undefined;
2187
+ keepAssignmentIfRejected?: boolean | undefined;
2188
+ waitFor?: boolean | undefined;
2189
+ createdAtLocation?: string | null | undefined;
2190
+ type?: "REJECT" | undefined;
2191
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2192
+ eventId: string;
2193
+ transactionId: string;
2194
+ content: {
2195
+ duplicates: {
2196
+ id: string;
2197
+ trackingId: string;
2198
+ }[];
2199
+ };
2200
+ declaration?: Record<string, unknown> | undefined;
2201
+ annotation?: Record<string, unknown> | undefined;
2202
+ originalActionId?: string | undefined;
2203
+ keepAssignment?: boolean | undefined;
2204
+ keepAssignmentIfAccepted?: boolean | undefined;
2205
+ keepAssignmentIfRejected?: boolean | undefined;
2206
+ waitFor?: boolean | undefined;
2207
+ createdAtLocation?: string | null | undefined;
2208
+ type?: "DUPLICATE_DETECTED" | undefined;
2209
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2210
+ eventId: string;
2211
+ transactionId: string;
2212
+ declaration?: Record<string, unknown> | undefined;
2213
+ annotation?: Record<string, unknown> | undefined;
2214
+ originalActionId?: string | undefined;
2215
+ keepAssignment?: boolean | undefined;
2216
+ keepAssignmentIfAccepted?: boolean | undefined;
2217
+ keepAssignmentIfRejected?: boolean | undefined;
2218
+ waitFor?: boolean | undefined;
2219
+ createdAtLocation?: string | null | undefined;
2220
+ type?: "MARK_AS_DUPLICATE" | undefined;
2221
+ content?: {
2222
+ duplicateOf: string;
2223
+ } | undefined;
2224
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2225
+ eventId: string;
2226
+ transactionId: string;
2227
+ declaration?: Record<string, unknown> | undefined;
2228
+ annotation?: Record<string, unknown> | undefined;
2229
+ originalActionId?: string | undefined;
2230
+ keepAssignment?: boolean | undefined;
2231
+ keepAssignmentIfAccepted?: boolean | undefined;
2232
+ keepAssignmentIfRejected?: boolean | undefined;
2233
+ waitFor?: boolean | undefined;
2234
+ createdAtLocation?: string | null | undefined;
2235
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
2236
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2237
+ eventId: string;
2238
+ transactionId: string;
2239
+ content: {
2240
+ reason: string;
2241
+ };
2242
+ declaration?: Record<string, unknown> | undefined;
2243
+ annotation?: Record<string, unknown> | undefined;
2244
+ originalActionId?: string | undefined;
2245
+ keepAssignment?: boolean | undefined;
2246
+ keepAssignmentIfAccepted?: boolean | undefined;
2247
+ keepAssignmentIfRejected?: boolean | undefined;
2248
+ waitFor?: boolean | undefined;
2249
+ createdAtLocation?: string | null | undefined;
2250
+ type?: "ARCHIVE" | undefined;
2251
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2252
+ eventId: string;
2253
+ transactionId: string;
2254
+ type: "ASSIGN";
2255
+ assignedTo: string;
2256
+ declaration?: Record<string, unknown> | undefined;
2257
+ annotation?: Record<string, unknown> | undefined;
2258
+ originalActionId?: string | undefined;
2259
+ keepAssignment?: boolean | undefined;
2260
+ keepAssignmentIfAccepted?: boolean | undefined;
2261
+ keepAssignmentIfRejected?: boolean | undefined;
2262
+ waitFor?: boolean | undefined;
2263
+ createdAtLocation?: string | null | undefined;
2264
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2265
+ eventId: string;
2266
+ transactionId: string;
2267
+ declaration?: Record<string, unknown> | undefined;
2268
+ annotation?: Record<string, unknown> | undefined;
2269
+ originalActionId?: string | undefined;
2270
+ keepAssignment?: boolean | undefined;
2271
+ keepAssignmentIfAccepted?: boolean | undefined;
2272
+ keepAssignmentIfRejected?: boolean | undefined;
2273
+ waitFor?: boolean | undefined;
2274
+ createdAtLocation?: string | null | undefined;
2275
+ type?: "UNASSIGN" | undefined;
2276
+ assignedTo?: null | undefined;
2277
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2278
+ eventId: string;
2279
+ transactionId: string;
2280
+ declaration?: Record<string, unknown> | undefined;
2281
+ annotation?: Record<string, unknown> | undefined;
2282
+ originalActionId?: string | undefined;
2283
+ keepAssignment?: boolean | undefined;
2284
+ keepAssignmentIfAccepted?: boolean | undefined;
2285
+ keepAssignmentIfRejected?: boolean | undefined;
2286
+ waitFor?: boolean | undefined;
2287
+ createdAtLocation?: string | null | undefined;
2288
+ type?: "PRINT_CERTIFICATE" | undefined;
2289
+ content?: {
2290
+ templateId?: string | undefined;
2291
+ } | undefined;
2292
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2293
+ eventId: string;
2294
+ transactionId: string;
2295
+ declaration?: Record<string, unknown> | undefined;
2296
+ annotation?: Record<string, unknown> | undefined;
2297
+ originalActionId?: string | undefined;
2298
+ keepAssignment?: boolean | undefined;
2299
+ keepAssignmentIfAccepted?: boolean | undefined;
2300
+ keepAssignmentIfRejected?: boolean | undefined;
2301
+ waitFor?: boolean | undefined;
2302
+ createdAtLocation?: string | null | undefined;
2303
+ type?: "REQUEST_CORRECTION" | undefined;
2304
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2305
+ eventId: string;
2306
+ transactionId: string;
2307
+ requestId: string;
2308
+ content: {
2309
+ reason: string;
2310
+ };
2311
+ declaration?: Record<string, unknown> | undefined;
2312
+ annotation?: Record<string, unknown> | undefined;
2313
+ originalActionId?: string | undefined;
2314
+ keepAssignment?: boolean | undefined;
2315
+ keepAssignmentIfAccepted?: boolean | undefined;
2316
+ keepAssignmentIfRejected?: boolean | undefined;
2317
+ waitFor?: boolean | undefined;
2318
+ createdAtLocation?: string | null | undefined;
2319
+ type?: "REJECT_CORRECTION" | undefined;
2320
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2321
+ eventId: string;
2322
+ transactionId: string;
2323
+ requestId: string;
2324
+ declaration?: Record<string, unknown> | undefined;
2325
+ annotation?: Record<string, unknown> | undefined;
2326
+ originalActionId?: string | undefined;
2327
+ keepAssignment?: boolean | undefined;
2328
+ keepAssignmentIfAccepted?: boolean | undefined;
2329
+ keepAssignmentIfRejected?: boolean | undefined;
2330
+ waitFor?: boolean | undefined;
2331
+ createdAtLocation?: string | null | undefined;
2332
+ type?: "APPROVE_CORRECTION" | undefined;
2333
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2334
+ eventId: string;
2335
+ transactionId: string;
2336
+ declaration?: Record<string, unknown> | undefined;
2337
+ annotation?: Record<string, unknown> | undefined;
2338
+ originalActionId?: string | undefined;
2339
+ keepAssignment?: boolean | undefined;
2340
+ keepAssignmentIfAccepted?: boolean | undefined;
2341
+ keepAssignmentIfRejected?: boolean | undefined;
2342
+ waitFor?: boolean | undefined;
2343
+ createdAtLocation?: string | null | undefined;
2344
+ type?: "READ" | undefined;
2345
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2346
+ eventId: string;
2347
+ transactionId: string;
2348
+ customActionType: string;
2349
+ declaration?: Record<string, unknown> | undefined;
2350
+ annotation?: Record<string, unknown> | undefined;
2351
+ originalActionId?: string | undefined;
2352
+ keepAssignment?: boolean | undefined;
2353
+ keepAssignmentIfAccepted?: boolean | undefined;
2354
+ keepAssignmentIfRejected?: boolean | undefined;
2355
+ waitFor?: boolean | undefined;
2356
+ createdAtLocation?: string | null | undefined;
2357
+ type?: "CUSTOM" | undefined;
2358
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2359
+ eventId: string;
2360
+ transactionId: string;
2361
+ content: {
2362
+ comment?: string | undefined;
2363
+ };
2364
+ declaration?: Record<string, unknown> | undefined;
2365
+ annotation?: Record<string, unknown> | undefined;
2366
+ originalActionId?: string | undefined;
2367
+ keepAssignment?: boolean | undefined;
2368
+ keepAssignmentIfAccepted?: boolean | undefined;
2369
+ keepAssignmentIfRejected?: boolean | undefined;
2370
+ waitFor?: boolean | undefined;
2371
+ createdAtLocation?: string | null | undefined;
2372
+ type?: "EDIT" | undefined;
2373
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2374
+ actionId: string;
2375
+ };
2376
+ output: import("../commons").EventDocument;
2377
+ meta: import("trpc-to-openapi").OpenApiMeta;
2378
+ }>;
2379
+ reject: import("@trpc/server").TRPCMutationProcedure<{
2380
+ input: import("zod").input<import("zod").ZodObject<{
2381
+ transactionId: import("zod").ZodString;
2382
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2383
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2384
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2385
+ }, import("zod/v4/core").$strip>>;
2386
+ output: import("../commons").EventDocument;
2387
+ meta: import("trpc-to-openapi").OpenApiMeta;
2388
+ }>;
2389
+ }>>;
2390
+ edit: import("@trpc/server").TRPCBuiltRouter<{
2391
+ ctx: Partial<{
2392
+ token: `Bearer ${string}`;
2393
+ user: {
2394
+ id: string & import("zod").$brand<"UUID">;
2395
+ type: "system";
2396
+ signature?: undefined;
2397
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2398
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2399
+ } | {
2400
+ id: string & import("zod").$brand<"UUID">;
2401
+ type: "user";
2402
+ role: string;
2403
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
2404
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2405
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2406
+ };
2407
+ }>;
2408
+ meta: import("trpc-to-openapi").OpenApiMeta;
2409
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
2410
+ transformer: true;
2411
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
2412
+ request: import("@trpc/server").TRPCMutationProcedure<{
2413
+ input: import("../commons").ActionInput;
2414
+ output: import("../commons").EventDocument;
2415
+ meta: import("trpc-to-openapi").OpenApiMeta;
2416
+ }>;
2417
+ accept: import("@trpc/server").TRPCMutationProcedure<{
2418
+ input: (Omit<{
2419
+ eventId: string;
2420
+ transactionId: string;
2421
+ declaration?: Record<string, unknown> | undefined;
2422
+ annotation?: Record<string, unknown> | undefined;
2423
+ originalActionId?: string | undefined;
2424
+ keepAssignment?: boolean | undefined;
2425
+ keepAssignmentIfAccepted?: boolean | undefined;
2426
+ keepAssignmentIfRejected?: boolean | undefined;
2427
+ waitFor?: boolean | undefined;
2428
+ type?: "CREATE" | undefined;
2429
+ createdAtLocation?: string | null | undefined;
2430
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2431
+ eventId: string;
2432
+ transactionId: string;
2433
+ declaration?: Record<string, unknown> | undefined;
2434
+ annotation?: Record<string, unknown> | undefined;
2435
+ originalActionId?: string | undefined;
2436
+ keepAssignment?: boolean | undefined;
2437
+ keepAssignmentIfAccepted?: boolean | undefined;
2438
+ keepAssignmentIfRejected?: boolean | undefined;
2439
+ waitFor?: boolean | undefined;
2440
+ createdAtLocation?: string | null | undefined;
2441
+ type?: "REGISTER" | undefined;
2442
+ registrationNumber?: string | undefined;
2443
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2444
+ eventId: string;
2445
+ transactionId: string;
2446
+ declaration?: Record<string, unknown> | undefined;
2447
+ annotation?: Record<string, unknown> | undefined;
2448
+ originalActionId?: string | undefined;
2449
+ keepAssignment?: boolean | undefined;
2450
+ keepAssignmentIfAccepted?: boolean | undefined;
2451
+ keepAssignmentIfRejected?: boolean | undefined;
2452
+ waitFor?: boolean | undefined;
2453
+ type?: "NOTIFY" | undefined;
2454
+ createdAtLocation?: string | null | undefined;
2455
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2456
+ eventId: string;
2457
+ transactionId: string;
2458
+ declaration?: Record<string, unknown> | undefined;
2459
+ annotation?: Record<string, unknown> | undefined;
2460
+ originalActionId?: string | undefined;
2461
+ keepAssignment?: boolean | undefined;
2462
+ keepAssignmentIfAccepted?: boolean | undefined;
2463
+ keepAssignmentIfRejected?: boolean | undefined;
2464
+ waitFor?: boolean | undefined;
2465
+ createdAtLocation?: string | null | undefined;
2466
+ type?: "DECLARE" | undefined;
2467
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2468
+ eventId: string;
2469
+ transactionId: string;
2470
+ content: {
2471
+ reason: string;
2472
+ };
2473
+ declaration?: Record<string, unknown> | undefined;
2474
+ annotation?: Record<string, unknown> | undefined;
2475
+ originalActionId?: string | undefined;
2476
+ keepAssignment?: boolean | undefined;
2477
+ keepAssignmentIfAccepted?: boolean | undefined;
2478
+ keepAssignmentIfRejected?: boolean | undefined;
2479
+ waitFor?: boolean | undefined;
2480
+ createdAtLocation?: string | null | undefined;
2481
+ type?: "REJECT" | undefined;
2482
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2483
+ eventId: string;
2484
+ transactionId: string;
2485
+ content: {
2486
+ duplicates: {
2487
+ id: string;
2488
+ trackingId: string;
2489
+ }[];
2490
+ };
2491
+ declaration?: Record<string, unknown> | undefined;
2492
+ annotation?: Record<string, unknown> | undefined;
2493
+ originalActionId?: string | undefined;
2494
+ keepAssignment?: boolean | undefined;
2495
+ keepAssignmentIfAccepted?: boolean | undefined;
2496
+ keepAssignmentIfRejected?: boolean | undefined;
2497
+ waitFor?: boolean | undefined;
2498
+ createdAtLocation?: string | null | undefined;
2499
+ type?: "DUPLICATE_DETECTED" | undefined;
2500
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2501
+ eventId: string;
2502
+ transactionId: string;
2503
+ declaration?: Record<string, unknown> | undefined;
2504
+ annotation?: Record<string, unknown> | undefined;
2505
+ originalActionId?: string | undefined;
2506
+ keepAssignment?: boolean | undefined;
2507
+ keepAssignmentIfAccepted?: boolean | undefined;
2508
+ keepAssignmentIfRejected?: boolean | undefined;
2509
+ waitFor?: boolean | undefined;
2510
+ createdAtLocation?: string | null | undefined;
2511
+ type?: "MARK_AS_DUPLICATE" | undefined;
2512
+ content?: {
2513
+ duplicateOf: string;
2514
+ } | undefined;
2515
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2516
+ eventId: string;
2517
+ transactionId: string;
2518
+ declaration?: Record<string, unknown> | undefined;
2519
+ annotation?: Record<string, unknown> | undefined;
2520
+ originalActionId?: string | undefined;
2521
+ keepAssignment?: boolean | undefined;
2522
+ keepAssignmentIfAccepted?: boolean | undefined;
2523
+ keepAssignmentIfRejected?: boolean | undefined;
2524
+ waitFor?: boolean | undefined;
2525
+ createdAtLocation?: string | null | undefined;
2526
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
2527
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2528
+ eventId: string;
2529
+ transactionId: string;
2530
+ content: {
2531
+ reason: string;
2532
+ };
2533
+ declaration?: Record<string, unknown> | undefined;
2534
+ annotation?: Record<string, unknown> | undefined;
2535
+ originalActionId?: string | undefined;
2536
+ keepAssignment?: boolean | undefined;
2537
+ keepAssignmentIfAccepted?: boolean | undefined;
2538
+ keepAssignmentIfRejected?: boolean | undefined;
2539
+ waitFor?: boolean | undefined;
2540
+ createdAtLocation?: string | null | undefined;
2541
+ type?: "ARCHIVE" | undefined;
2542
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2543
+ eventId: string;
2544
+ transactionId: string;
2545
+ type: "ASSIGN";
2546
+ assignedTo: string;
2547
+ declaration?: Record<string, unknown> | undefined;
2548
+ annotation?: Record<string, unknown> | undefined;
2549
+ originalActionId?: string | undefined;
2550
+ keepAssignment?: boolean | undefined;
2551
+ keepAssignmentIfAccepted?: boolean | undefined;
2552
+ keepAssignmentIfRejected?: boolean | undefined;
2553
+ waitFor?: boolean | undefined;
2554
+ createdAtLocation?: string | null | undefined;
2555
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2556
+ eventId: string;
2557
+ transactionId: string;
2558
+ declaration?: Record<string, unknown> | undefined;
2559
+ annotation?: Record<string, unknown> | undefined;
2560
+ originalActionId?: string | undefined;
2561
+ keepAssignment?: boolean | undefined;
2562
+ keepAssignmentIfAccepted?: boolean | undefined;
2563
+ keepAssignmentIfRejected?: boolean | undefined;
2564
+ waitFor?: boolean | undefined;
2565
+ createdAtLocation?: string | null | undefined;
2566
+ type?: "UNASSIGN" | undefined;
2567
+ assignedTo?: null | undefined;
2568
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2569
+ eventId: string;
2570
+ transactionId: string;
2571
+ declaration?: Record<string, unknown> | undefined;
2572
+ annotation?: Record<string, unknown> | undefined;
2573
+ originalActionId?: string | undefined;
2574
+ keepAssignment?: boolean | undefined;
2575
+ keepAssignmentIfAccepted?: boolean | undefined;
2576
+ keepAssignmentIfRejected?: boolean | undefined;
2577
+ waitFor?: boolean | undefined;
2578
+ createdAtLocation?: string | null | undefined;
2579
+ type?: "PRINT_CERTIFICATE" | undefined;
2580
+ content?: {
2581
+ templateId?: string | undefined;
2582
+ } | undefined;
2583
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2584
+ eventId: string;
2585
+ transactionId: string;
2586
+ declaration?: Record<string, unknown> | undefined;
2587
+ annotation?: Record<string, unknown> | undefined;
2588
+ originalActionId?: string | undefined;
2589
+ keepAssignment?: boolean | undefined;
2590
+ keepAssignmentIfAccepted?: boolean | undefined;
2591
+ keepAssignmentIfRejected?: boolean | undefined;
2592
+ waitFor?: boolean | undefined;
2593
+ createdAtLocation?: string | null | undefined;
2594
+ type?: "REQUEST_CORRECTION" | undefined;
2595
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2596
+ eventId: string;
2597
+ transactionId: string;
2598
+ requestId: string;
2599
+ content: {
2600
+ reason: string;
2601
+ };
2602
+ declaration?: Record<string, unknown> | undefined;
2603
+ annotation?: Record<string, unknown> | undefined;
2604
+ originalActionId?: string | undefined;
2605
+ keepAssignment?: boolean | undefined;
2606
+ keepAssignmentIfAccepted?: boolean | undefined;
2607
+ keepAssignmentIfRejected?: boolean | undefined;
2608
+ waitFor?: boolean | undefined;
2609
+ createdAtLocation?: string | null | undefined;
2610
+ type?: "REJECT_CORRECTION" | undefined;
2611
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2612
+ eventId: string;
2613
+ transactionId: string;
2614
+ requestId: string;
2615
+ declaration?: Record<string, unknown> | undefined;
2616
+ annotation?: Record<string, unknown> | undefined;
2617
+ originalActionId?: string | undefined;
2618
+ keepAssignment?: boolean | undefined;
2619
+ keepAssignmentIfAccepted?: boolean | undefined;
2620
+ keepAssignmentIfRejected?: boolean | undefined;
2621
+ waitFor?: boolean | undefined;
2622
+ createdAtLocation?: string | null | undefined;
2623
+ type?: "APPROVE_CORRECTION" | undefined;
2624
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2625
+ eventId: string;
2626
+ transactionId: string;
2627
+ declaration?: Record<string, unknown> | undefined;
2628
+ annotation?: Record<string, unknown> | undefined;
2629
+ originalActionId?: string | undefined;
2630
+ keepAssignment?: boolean | undefined;
2631
+ keepAssignmentIfAccepted?: boolean | undefined;
2632
+ keepAssignmentIfRejected?: boolean | undefined;
2633
+ waitFor?: boolean | undefined;
2634
+ createdAtLocation?: string | null | undefined;
2635
+ type?: "READ" | undefined;
2636
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2637
+ eventId: string;
2638
+ transactionId: string;
2639
+ customActionType: string;
2640
+ declaration?: Record<string, unknown> | undefined;
2641
+ annotation?: Record<string, unknown> | undefined;
2642
+ originalActionId?: string | undefined;
2643
+ keepAssignment?: boolean | undefined;
2644
+ keepAssignmentIfAccepted?: boolean | undefined;
2645
+ keepAssignmentIfRejected?: boolean | undefined;
2646
+ waitFor?: boolean | undefined;
2647
+ createdAtLocation?: string | null | undefined;
2648
+ type?: "CUSTOM" | undefined;
2649
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2650
+ eventId: string;
2651
+ transactionId: string;
2652
+ content: {
2653
+ comment?: string | undefined;
2654
+ };
2655
+ declaration?: Record<string, unknown> | undefined;
2656
+ annotation?: Record<string, unknown> | undefined;
2657
+ originalActionId?: string | undefined;
2658
+ keepAssignment?: boolean | undefined;
2659
+ keepAssignmentIfAccepted?: boolean | undefined;
2660
+ keepAssignmentIfRejected?: boolean | undefined;
2661
+ waitFor?: boolean | undefined;
2662
+ createdAtLocation?: string | null | undefined;
2663
+ type?: "EDIT" | undefined;
2664
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2665
+ actionId: string;
2666
+ };
2667
+ output: import("../commons").EventDocument;
2668
+ meta: import("trpc-to-openapi").OpenApiMeta;
2669
+ }>;
2670
+ reject: import("@trpc/server").TRPCMutationProcedure<{
2671
+ input: import("zod").input<import("zod").ZodObject<{
2672
+ transactionId: import("zod").ZodString;
2673
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2674
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2675
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2676
+ }, import("zod/v4/core").$strip>>;
2677
+ output: import("../commons").EventDocument;
2678
+ meta: import("trpc-to-openapi").OpenApiMeta;
2679
+ }>;
2680
+ }>>;
2681
+ reject: import("@trpc/server").TRPCBuiltRouter<{
2682
+ ctx: Partial<{
2683
+ token: `Bearer ${string}`;
2684
+ user: {
2685
+ id: string & import("zod").$brand<"UUID">;
2686
+ type: "system";
2687
+ signature?: undefined;
2688
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2689
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2690
+ } | {
2691
+ id: string & import("zod").$brand<"UUID">;
2692
+ type: "user";
2693
+ role: string;
2694
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
2695
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2696
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2697
+ };
2698
+ }>;
2699
+ meta: import("trpc-to-openapi").OpenApiMeta;
2700
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
2701
+ transformer: true;
2702
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
2703
+ request: import("@trpc/server").TRPCMutationProcedure<{
2704
+ input: import("../commons").ActionInput;
2705
+ output: import("../commons").EventDocument;
2706
+ meta: import("trpc-to-openapi").OpenApiMeta;
2707
+ }>;
2708
+ accept: import("@trpc/server").TRPCMutationProcedure<{
2709
+ input: (Omit<{
2710
+ eventId: string;
2711
+ transactionId: string;
2712
+ declaration?: Record<string, unknown> | undefined;
2713
+ annotation?: Record<string, unknown> | undefined;
2714
+ originalActionId?: string | undefined;
2715
+ keepAssignment?: boolean | undefined;
2716
+ keepAssignmentIfAccepted?: boolean | undefined;
2717
+ keepAssignmentIfRejected?: boolean | undefined;
2718
+ waitFor?: boolean | undefined;
2719
+ type?: "CREATE" | undefined;
2720
+ createdAtLocation?: string | null | undefined;
2721
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2722
+ eventId: string;
2723
+ transactionId: string;
2724
+ declaration?: Record<string, unknown> | undefined;
2725
+ annotation?: Record<string, unknown> | undefined;
2726
+ originalActionId?: string | undefined;
2727
+ keepAssignment?: boolean | undefined;
2728
+ keepAssignmentIfAccepted?: boolean | undefined;
2729
+ keepAssignmentIfRejected?: boolean | undefined;
2730
+ waitFor?: boolean | undefined;
2731
+ createdAtLocation?: string | null | undefined;
2732
+ type?: "REGISTER" | undefined;
2733
+ registrationNumber?: string | undefined;
2734
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2735
+ eventId: string;
2736
+ transactionId: string;
2737
+ declaration?: Record<string, unknown> | undefined;
2738
+ annotation?: Record<string, unknown> | undefined;
2739
+ originalActionId?: string | undefined;
2740
+ keepAssignment?: boolean | undefined;
2741
+ keepAssignmentIfAccepted?: boolean | undefined;
2742
+ keepAssignmentIfRejected?: boolean | undefined;
2743
+ waitFor?: boolean | undefined;
2744
+ type?: "NOTIFY" | undefined;
2745
+ createdAtLocation?: string | null | undefined;
2746
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2747
+ eventId: string;
2748
+ transactionId: string;
2749
+ declaration?: Record<string, unknown> | undefined;
2750
+ annotation?: Record<string, unknown> | undefined;
2751
+ originalActionId?: string | undefined;
2752
+ keepAssignment?: boolean | undefined;
2753
+ keepAssignmentIfAccepted?: boolean | undefined;
2754
+ keepAssignmentIfRejected?: boolean | undefined;
2755
+ waitFor?: boolean | undefined;
2756
+ createdAtLocation?: string | null | undefined;
2757
+ type?: "DECLARE" | undefined;
2758
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2759
+ eventId: string;
2760
+ transactionId: string;
2761
+ content: {
2762
+ reason: string;
2763
+ };
2764
+ declaration?: Record<string, unknown> | undefined;
2765
+ annotation?: Record<string, unknown> | undefined;
2766
+ originalActionId?: string | undefined;
2767
+ keepAssignment?: boolean | undefined;
2768
+ keepAssignmentIfAccepted?: boolean | undefined;
2769
+ keepAssignmentIfRejected?: boolean | undefined;
2770
+ waitFor?: boolean | undefined;
2771
+ createdAtLocation?: string | null | undefined;
2772
+ type?: "REJECT" | undefined;
2773
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2774
+ eventId: string;
2775
+ transactionId: string;
2776
+ content: {
2777
+ duplicates: {
2778
+ id: string;
2779
+ trackingId: string;
2780
+ }[];
2781
+ };
2782
+ declaration?: Record<string, unknown> | undefined;
2783
+ annotation?: Record<string, unknown> | undefined;
2784
+ originalActionId?: string | undefined;
2785
+ keepAssignment?: boolean | undefined;
2786
+ keepAssignmentIfAccepted?: boolean | undefined;
2787
+ keepAssignmentIfRejected?: boolean | undefined;
2788
+ waitFor?: boolean | undefined;
2789
+ createdAtLocation?: string | null | undefined;
2790
+ type?: "DUPLICATE_DETECTED" | undefined;
2791
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2792
+ eventId: string;
2793
+ transactionId: string;
2794
+ declaration?: Record<string, unknown> | undefined;
2795
+ annotation?: Record<string, unknown> | undefined;
2796
+ originalActionId?: string | undefined;
2797
+ keepAssignment?: boolean | undefined;
2798
+ keepAssignmentIfAccepted?: boolean | undefined;
2799
+ keepAssignmentIfRejected?: boolean | undefined;
2800
+ waitFor?: boolean | undefined;
2801
+ createdAtLocation?: string | null | undefined;
2802
+ type?: "MARK_AS_DUPLICATE" | undefined;
2803
+ content?: {
2804
+ duplicateOf: string;
2805
+ } | undefined;
2806
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2807
+ eventId: string;
2808
+ transactionId: string;
2809
+ declaration?: Record<string, unknown> | undefined;
2810
+ annotation?: Record<string, unknown> | undefined;
2811
+ originalActionId?: string | undefined;
2812
+ keepAssignment?: boolean | undefined;
2813
+ keepAssignmentIfAccepted?: boolean | undefined;
2814
+ keepAssignmentIfRejected?: boolean | undefined;
2815
+ waitFor?: boolean | undefined;
2816
+ createdAtLocation?: string | null | undefined;
2817
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
2818
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2819
+ eventId: string;
2820
+ transactionId: string;
2821
+ content: {
2822
+ reason: string;
2823
+ };
2824
+ declaration?: Record<string, unknown> | undefined;
2825
+ annotation?: Record<string, unknown> | undefined;
2826
+ originalActionId?: string | undefined;
2827
+ keepAssignment?: boolean | undefined;
2828
+ keepAssignmentIfAccepted?: boolean | undefined;
2829
+ keepAssignmentIfRejected?: boolean | undefined;
2830
+ waitFor?: boolean | undefined;
2831
+ createdAtLocation?: string | null | undefined;
2832
+ type?: "ARCHIVE" | undefined;
2833
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2834
+ eventId: string;
2835
+ transactionId: string;
2836
+ type: "ASSIGN";
2837
+ assignedTo: string;
2838
+ declaration?: Record<string, unknown> | undefined;
2839
+ annotation?: Record<string, unknown> | undefined;
2840
+ originalActionId?: string | undefined;
2841
+ keepAssignment?: boolean | undefined;
2842
+ keepAssignmentIfAccepted?: boolean | undefined;
2843
+ keepAssignmentIfRejected?: boolean | undefined;
2844
+ waitFor?: boolean | undefined;
2845
+ createdAtLocation?: string | null | undefined;
2846
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2847
+ eventId: string;
2848
+ transactionId: string;
2849
+ declaration?: Record<string, unknown> | undefined;
2850
+ annotation?: Record<string, unknown> | undefined;
2851
+ originalActionId?: string | undefined;
2852
+ keepAssignment?: boolean | undefined;
2853
+ keepAssignmentIfAccepted?: boolean | undefined;
2854
+ keepAssignmentIfRejected?: boolean | undefined;
2855
+ waitFor?: boolean | undefined;
2856
+ createdAtLocation?: string | null | undefined;
2857
+ type?: "UNASSIGN" | undefined;
2858
+ assignedTo?: null | undefined;
2859
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2860
+ eventId: string;
2861
+ transactionId: string;
2862
+ declaration?: Record<string, unknown> | undefined;
2863
+ annotation?: Record<string, unknown> | undefined;
2864
+ originalActionId?: string | undefined;
2865
+ keepAssignment?: boolean | undefined;
2866
+ keepAssignmentIfAccepted?: boolean | undefined;
2867
+ keepAssignmentIfRejected?: boolean | undefined;
2868
+ waitFor?: boolean | undefined;
2869
+ createdAtLocation?: string | null | undefined;
2870
+ type?: "PRINT_CERTIFICATE" | undefined;
2871
+ content?: {
2872
+ templateId?: string | undefined;
2873
+ } | undefined;
2874
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2875
+ eventId: string;
2876
+ transactionId: string;
2877
+ declaration?: Record<string, unknown> | undefined;
2878
+ annotation?: Record<string, unknown> | undefined;
2879
+ originalActionId?: string | undefined;
2880
+ keepAssignment?: boolean | undefined;
2881
+ keepAssignmentIfAccepted?: boolean | undefined;
2882
+ keepAssignmentIfRejected?: boolean | undefined;
2883
+ waitFor?: boolean | undefined;
2884
+ createdAtLocation?: string | null | undefined;
2885
+ type?: "REQUEST_CORRECTION" | undefined;
2886
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2887
+ eventId: string;
2888
+ transactionId: string;
2889
+ requestId: string;
2890
+ content: {
2891
+ reason: string;
2892
+ };
2893
+ declaration?: Record<string, unknown> | undefined;
2894
+ annotation?: Record<string, unknown> | undefined;
2895
+ originalActionId?: string | undefined;
2896
+ keepAssignment?: boolean | undefined;
2897
+ keepAssignmentIfAccepted?: boolean | undefined;
2898
+ keepAssignmentIfRejected?: boolean | undefined;
2899
+ waitFor?: boolean | undefined;
2900
+ createdAtLocation?: string | null | undefined;
2901
+ type?: "REJECT_CORRECTION" | undefined;
2902
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2903
+ eventId: string;
2904
+ transactionId: string;
2905
+ requestId: string;
2906
+ declaration?: Record<string, unknown> | undefined;
2907
+ annotation?: Record<string, unknown> | undefined;
2908
+ originalActionId?: string | undefined;
2909
+ keepAssignment?: boolean | undefined;
2910
+ keepAssignmentIfAccepted?: boolean | undefined;
2911
+ keepAssignmentIfRejected?: boolean | undefined;
2912
+ waitFor?: boolean | undefined;
2913
+ createdAtLocation?: string | null | undefined;
2914
+ type?: "APPROVE_CORRECTION" | undefined;
2915
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2916
+ eventId: string;
2917
+ transactionId: string;
2918
+ declaration?: Record<string, unknown> | undefined;
2919
+ annotation?: Record<string, unknown> | undefined;
2920
+ originalActionId?: string | undefined;
2921
+ keepAssignment?: boolean | undefined;
2922
+ keepAssignmentIfAccepted?: boolean | undefined;
2923
+ keepAssignmentIfRejected?: boolean | undefined;
2924
+ waitFor?: boolean | undefined;
2925
+ createdAtLocation?: string | null | undefined;
2926
+ type?: "READ" | undefined;
2927
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2928
+ eventId: string;
2929
+ transactionId: string;
2930
+ customActionType: string;
2931
+ declaration?: Record<string, unknown> | undefined;
2932
+ annotation?: Record<string, unknown> | undefined;
2933
+ originalActionId?: string | undefined;
2934
+ keepAssignment?: boolean | undefined;
2935
+ keepAssignmentIfAccepted?: boolean | undefined;
2936
+ keepAssignmentIfRejected?: boolean | undefined;
2937
+ waitFor?: boolean | undefined;
2938
+ createdAtLocation?: string | null | undefined;
2939
+ type?: "CUSTOM" | undefined;
2940
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2941
+ eventId: string;
2942
+ transactionId: string;
2943
+ content: {
2944
+ comment?: string | undefined;
2945
+ };
2946
+ declaration?: Record<string, unknown> | undefined;
2947
+ annotation?: Record<string, unknown> | undefined;
2948
+ originalActionId?: string | undefined;
2949
+ keepAssignment?: boolean | undefined;
2950
+ keepAssignmentIfAccepted?: boolean | undefined;
2951
+ keepAssignmentIfRejected?: boolean | undefined;
2952
+ waitFor?: boolean | undefined;
2953
+ createdAtLocation?: string | null | undefined;
2954
+ type?: "EDIT" | undefined;
2955
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2956
+ actionId: string;
2957
+ };
2958
+ output: import("../commons").EventDocument;
2959
+ meta: import("trpc-to-openapi").OpenApiMeta;
2960
+ }>;
2961
+ reject: import("@trpc/server").TRPCMutationProcedure<{
2962
+ input: import("zod").input<import("zod").ZodObject<{
2963
+ transactionId: import("zod").ZodString;
2964
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2965
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2966
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2967
+ }, import("zod/v4/core").$strip>>;
2968
+ output: import("../commons").EventDocument;
2969
+ meta: import("trpc-to-openapi").OpenApiMeta;
2970
+ }>;
2971
+ }>>;
2972
+ archive: import("@trpc/server").TRPCBuiltRouter<{
2973
+ ctx: Partial<{
2974
+ token: `Bearer ${string}`;
2975
+ user: {
2976
+ id: string & import("zod").$brand<"UUID">;
2977
+ type: "system";
2978
+ signature?: undefined;
2979
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2980
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2981
+ } | {
2982
+ id: string & import("zod").$brand<"UUID">;
2983
+ type: "user";
2984
+ role: string;
2985
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
2986
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2987
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2988
+ };
2989
+ }>;
2990
+ meta: import("trpc-to-openapi").OpenApiMeta;
2991
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
2992
+ transformer: true;
2993
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
2994
+ request: import("@trpc/server").TRPCMutationProcedure<{
2995
+ input: import("../commons").ActionInput;
2996
+ output: import("../commons").EventDocument;
2997
+ meta: import("trpc-to-openapi").OpenApiMeta;
2998
+ }>;
2999
+ accept: import("@trpc/server").TRPCMutationProcedure<{
3000
+ input: (Omit<{
3001
+ eventId: string;
3002
+ transactionId: string;
3003
+ declaration?: Record<string, unknown> | undefined;
3004
+ annotation?: Record<string, unknown> | undefined;
3005
+ originalActionId?: string | undefined;
3006
+ keepAssignment?: boolean | undefined;
3007
+ keepAssignmentIfAccepted?: boolean | undefined;
3008
+ keepAssignmentIfRejected?: boolean | undefined;
3009
+ waitFor?: boolean | undefined;
3010
+ type?: "CREATE" | undefined;
3011
+ createdAtLocation?: string | null | undefined;
3012
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3013
+ eventId: string;
3014
+ transactionId: string;
3015
+ declaration?: Record<string, unknown> | undefined;
3016
+ annotation?: Record<string, unknown> | undefined;
3017
+ originalActionId?: string | undefined;
3018
+ keepAssignment?: boolean | undefined;
3019
+ keepAssignmentIfAccepted?: boolean | undefined;
3020
+ keepAssignmentIfRejected?: boolean | undefined;
3021
+ waitFor?: boolean | undefined;
3022
+ createdAtLocation?: string | null | undefined;
3023
+ type?: "REGISTER" | undefined;
3024
+ registrationNumber?: string | undefined;
3025
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3026
+ eventId: string;
3027
+ transactionId: string;
3028
+ declaration?: Record<string, unknown> | undefined;
3029
+ annotation?: Record<string, unknown> | undefined;
3030
+ originalActionId?: string | undefined;
3031
+ keepAssignment?: boolean | undefined;
3032
+ keepAssignmentIfAccepted?: boolean | undefined;
3033
+ keepAssignmentIfRejected?: boolean | undefined;
3034
+ waitFor?: boolean | undefined;
3035
+ type?: "NOTIFY" | undefined;
3036
+ createdAtLocation?: string | null | undefined;
3037
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3038
+ eventId: string;
3039
+ transactionId: string;
3040
+ declaration?: Record<string, unknown> | undefined;
3041
+ annotation?: Record<string, unknown> | undefined;
3042
+ originalActionId?: string | undefined;
3043
+ keepAssignment?: boolean | undefined;
3044
+ keepAssignmentIfAccepted?: boolean | undefined;
3045
+ keepAssignmentIfRejected?: boolean | undefined;
3046
+ waitFor?: boolean | undefined;
3047
+ createdAtLocation?: string | null | undefined;
3048
+ type?: "DECLARE" | undefined;
3049
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3050
+ eventId: string;
3051
+ transactionId: string;
3052
+ content: {
3053
+ reason: string;
3054
+ };
3055
+ declaration?: Record<string, unknown> | undefined;
3056
+ annotation?: Record<string, unknown> | undefined;
3057
+ originalActionId?: string | undefined;
3058
+ keepAssignment?: boolean | undefined;
3059
+ keepAssignmentIfAccepted?: boolean | undefined;
3060
+ keepAssignmentIfRejected?: boolean | undefined;
3061
+ waitFor?: boolean | undefined;
3062
+ createdAtLocation?: string | null | undefined;
3063
+ type?: "REJECT" | undefined;
3064
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3065
+ eventId: string;
3066
+ transactionId: string;
3067
+ content: {
3068
+ duplicates: {
3069
+ id: string;
3070
+ trackingId: string;
3071
+ }[];
3072
+ };
3073
+ declaration?: Record<string, unknown> | undefined;
3074
+ annotation?: Record<string, unknown> | undefined;
3075
+ originalActionId?: string | undefined;
3076
+ keepAssignment?: boolean | undefined;
3077
+ keepAssignmentIfAccepted?: boolean | undefined;
3078
+ keepAssignmentIfRejected?: boolean | undefined;
3079
+ waitFor?: boolean | undefined;
3080
+ createdAtLocation?: string | null | undefined;
3081
+ type?: "DUPLICATE_DETECTED" | undefined;
3082
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3083
+ eventId: string;
3084
+ transactionId: string;
3085
+ declaration?: Record<string, unknown> | undefined;
3086
+ annotation?: Record<string, unknown> | undefined;
3087
+ originalActionId?: string | undefined;
3088
+ keepAssignment?: boolean | undefined;
3089
+ keepAssignmentIfAccepted?: boolean | undefined;
3090
+ keepAssignmentIfRejected?: boolean | undefined;
3091
+ waitFor?: boolean | undefined;
3092
+ createdAtLocation?: string | null | undefined;
3093
+ type?: "MARK_AS_DUPLICATE" | undefined;
3094
+ content?: {
3095
+ duplicateOf: string;
3096
+ } | undefined;
3097
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3098
+ eventId: string;
3099
+ transactionId: string;
3100
+ declaration?: Record<string, unknown> | undefined;
3101
+ annotation?: Record<string, unknown> | undefined;
3102
+ originalActionId?: string | undefined;
3103
+ keepAssignment?: boolean | undefined;
3104
+ keepAssignmentIfAccepted?: boolean | undefined;
3105
+ keepAssignmentIfRejected?: boolean | undefined;
3106
+ waitFor?: boolean | undefined;
3107
+ createdAtLocation?: string | null | undefined;
3108
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
3109
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3110
+ eventId: string;
3111
+ transactionId: string;
3112
+ content: {
3113
+ reason: string;
3114
+ };
3115
+ declaration?: Record<string, unknown> | undefined;
3116
+ annotation?: Record<string, unknown> | undefined;
3117
+ originalActionId?: string | undefined;
3118
+ keepAssignment?: boolean | undefined;
3119
+ keepAssignmentIfAccepted?: boolean | undefined;
3120
+ keepAssignmentIfRejected?: boolean | undefined;
3121
+ waitFor?: boolean | undefined;
3122
+ createdAtLocation?: string | null | undefined;
3123
+ type?: "ARCHIVE" | undefined;
3124
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3125
+ eventId: string;
3126
+ transactionId: string;
3127
+ type: "ASSIGN";
3128
+ assignedTo: string;
3129
+ declaration?: Record<string, unknown> | undefined;
3130
+ annotation?: Record<string, unknown> | undefined;
3131
+ originalActionId?: string | undefined;
3132
+ keepAssignment?: boolean | undefined;
3133
+ keepAssignmentIfAccepted?: boolean | undefined;
3134
+ keepAssignmentIfRejected?: boolean | undefined;
3135
+ waitFor?: boolean | undefined;
3136
+ createdAtLocation?: string | null | undefined;
3137
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3138
+ eventId: string;
3139
+ transactionId: string;
3140
+ declaration?: Record<string, unknown> | undefined;
3141
+ annotation?: Record<string, unknown> | undefined;
3142
+ originalActionId?: string | undefined;
3143
+ keepAssignment?: boolean | undefined;
3144
+ keepAssignmentIfAccepted?: boolean | undefined;
3145
+ keepAssignmentIfRejected?: boolean | undefined;
3146
+ waitFor?: boolean | undefined;
3147
+ createdAtLocation?: string | null | undefined;
3148
+ type?: "UNASSIGN" | undefined;
3149
+ assignedTo?: null | undefined;
3150
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3151
+ eventId: string;
3152
+ transactionId: string;
3153
+ declaration?: Record<string, unknown> | undefined;
3154
+ annotation?: Record<string, unknown> | undefined;
3155
+ originalActionId?: string | undefined;
3156
+ keepAssignment?: boolean | undefined;
3157
+ keepAssignmentIfAccepted?: boolean | undefined;
3158
+ keepAssignmentIfRejected?: boolean | undefined;
3159
+ waitFor?: boolean | undefined;
3160
+ createdAtLocation?: string | null | undefined;
3161
+ type?: "PRINT_CERTIFICATE" | undefined;
3162
+ content?: {
3163
+ templateId?: string | undefined;
3164
+ } | undefined;
3165
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3166
+ eventId: string;
3167
+ transactionId: string;
3168
+ declaration?: Record<string, unknown> | undefined;
3169
+ annotation?: Record<string, unknown> | undefined;
3170
+ originalActionId?: string | undefined;
3171
+ keepAssignment?: boolean | undefined;
3172
+ keepAssignmentIfAccepted?: boolean | undefined;
3173
+ keepAssignmentIfRejected?: boolean | undefined;
3174
+ waitFor?: boolean | undefined;
3175
+ createdAtLocation?: string | null | undefined;
3176
+ type?: "REQUEST_CORRECTION" | undefined;
3177
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3178
+ eventId: string;
3179
+ transactionId: string;
3180
+ requestId: string;
3181
+ content: {
3182
+ reason: string;
3183
+ };
3184
+ declaration?: Record<string, unknown> | undefined;
3185
+ annotation?: Record<string, unknown> | undefined;
3186
+ originalActionId?: string | undefined;
3187
+ keepAssignment?: boolean | undefined;
3188
+ keepAssignmentIfAccepted?: boolean | undefined;
3189
+ keepAssignmentIfRejected?: boolean | undefined;
3190
+ waitFor?: boolean | undefined;
3191
+ createdAtLocation?: string | null | undefined;
3192
+ type?: "REJECT_CORRECTION" | undefined;
3193
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3194
+ eventId: string;
3195
+ transactionId: string;
3196
+ requestId: string;
3197
+ declaration?: Record<string, unknown> | undefined;
3198
+ annotation?: Record<string, unknown> | undefined;
3199
+ originalActionId?: string | undefined;
3200
+ keepAssignment?: boolean | undefined;
3201
+ keepAssignmentIfAccepted?: boolean | undefined;
3202
+ keepAssignmentIfRejected?: boolean | undefined;
3203
+ waitFor?: boolean | undefined;
3204
+ createdAtLocation?: string | null | undefined;
3205
+ type?: "APPROVE_CORRECTION" | undefined;
3206
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3207
+ eventId: string;
3208
+ transactionId: string;
3209
+ declaration?: Record<string, unknown> | undefined;
3210
+ annotation?: Record<string, unknown> | undefined;
3211
+ originalActionId?: string | undefined;
3212
+ keepAssignment?: boolean | undefined;
3213
+ keepAssignmentIfAccepted?: boolean | undefined;
3214
+ keepAssignmentIfRejected?: boolean | undefined;
3215
+ waitFor?: boolean | undefined;
3216
+ createdAtLocation?: string | null | undefined;
3217
+ type?: "READ" | undefined;
3218
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3219
+ eventId: string;
3220
+ transactionId: string;
3221
+ customActionType: string;
3222
+ declaration?: Record<string, unknown> | undefined;
3223
+ annotation?: Record<string, unknown> | undefined;
3224
+ originalActionId?: string | undefined;
3225
+ keepAssignment?: boolean | undefined;
3226
+ keepAssignmentIfAccepted?: boolean | undefined;
3227
+ keepAssignmentIfRejected?: boolean | undefined;
3228
+ waitFor?: boolean | undefined;
3229
+ createdAtLocation?: string | null | undefined;
3230
+ type?: "CUSTOM" | undefined;
3231
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3232
+ eventId: string;
3233
+ transactionId: string;
3234
+ content: {
3235
+ comment?: string | undefined;
3236
+ };
3237
+ declaration?: Record<string, unknown> | undefined;
3238
+ annotation?: Record<string, unknown> | undefined;
3239
+ originalActionId?: string | undefined;
3240
+ keepAssignment?: boolean | undefined;
3241
+ keepAssignmentIfAccepted?: boolean | undefined;
3242
+ keepAssignmentIfRejected?: boolean | undefined;
3243
+ waitFor?: boolean | undefined;
3244
+ createdAtLocation?: string | null | undefined;
3245
+ type?: "EDIT" | undefined;
3246
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
3247
+ actionId: string;
3248
+ };
3249
+ output: import("../commons").EventDocument;
3250
+ meta: import("trpc-to-openapi").OpenApiMeta;
3251
+ }>;
3252
+ reject: import("@trpc/server").TRPCMutationProcedure<{
3253
+ input: import("zod").input<import("zod").ZodObject<{
3254
+ transactionId: import("zod").ZodString;
3255
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3256
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3257
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3258
+ }, import("zod/v4/core").$strip>>;
3259
+ output: import("../commons").EventDocument;
3260
+ meta: import("trpc-to-openapi").OpenApiMeta;
3261
+ }>;
3262
+ }>>;
3263
+ register: import("@trpc/server").TRPCBuiltRouter<{
3264
+ ctx: Partial<{
3265
+ token: `Bearer ${string}`;
3266
+ user: {
3267
+ id: string & import("zod").$brand<"UUID">;
3268
+ type: "system";
3269
+ signature?: undefined;
3270
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3271
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3272
+ } | {
3273
+ id: string & import("zod").$brand<"UUID">;
3274
+ type: "user";
3275
+ role: string;
3276
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
3277
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3278
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3279
+ };
3280
+ }>;
3281
+ meta: import("trpc-to-openapi").OpenApiMeta;
3282
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
3283
+ transformer: true;
3284
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
3285
+ request: import("@trpc/server").TRPCMutationProcedure<{
3286
+ input: import("../commons").ActionInput;
3287
+ output: import("../commons").EventDocument;
3288
+ meta: import("trpc-to-openapi").OpenApiMeta;
3289
+ }>;
3290
+ accept: import("@trpc/server").TRPCMutationProcedure<{
3291
+ input: (Omit<{
3292
+ eventId: string;
3293
+ transactionId: string;
3294
+ declaration?: Record<string, unknown> | undefined;
3295
+ annotation?: Record<string, unknown> | undefined;
3296
+ originalActionId?: string | undefined;
3297
+ keepAssignment?: boolean | undefined;
3298
+ keepAssignmentIfAccepted?: boolean | undefined;
3299
+ keepAssignmentIfRejected?: boolean | undefined;
3300
+ waitFor?: boolean | undefined;
3301
+ type?: "CREATE" | undefined;
3302
+ createdAtLocation?: string | null | undefined;
3303
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3304
+ eventId: string;
3305
+ transactionId: string;
3306
+ declaration?: Record<string, unknown> | undefined;
3307
+ annotation?: Record<string, unknown> | undefined;
3308
+ originalActionId?: string | undefined;
3309
+ keepAssignment?: boolean | undefined;
3310
+ keepAssignmentIfAccepted?: boolean | undefined;
3311
+ keepAssignmentIfRejected?: boolean | undefined;
3312
+ waitFor?: boolean | undefined;
3313
+ createdAtLocation?: string | null | undefined;
3314
+ type?: "REGISTER" | undefined;
3315
+ registrationNumber?: string | undefined;
3316
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3317
+ eventId: string;
3318
+ transactionId: string;
3319
+ declaration?: Record<string, unknown> | undefined;
3320
+ annotation?: Record<string, unknown> | undefined;
3321
+ originalActionId?: string | undefined;
3322
+ keepAssignment?: boolean | undefined;
3323
+ keepAssignmentIfAccepted?: boolean | undefined;
3324
+ keepAssignmentIfRejected?: boolean | undefined;
3325
+ waitFor?: boolean | undefined;
3326
+ type?: "NOTIFY" | undefined;
3327
+ createdAtLocation?: string | null | undefined;
3328
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3329
+ eventId: string;
3330
+ transactionId: string;
3331
+ declaration?: Record<string, unknown> | undefined;
3332
+ annotation?: Record<string, unknown> | undefined;
3333
+ originalActionId?: string | undefined;
3334
+ keepAssignment?: boolean | undefined;
3335
+ keepAssignmentIfAccepted?: boolean | undefined;
3336
+ keepAssignmentIfRejected?: boolean | undefined;
3337
+ waitFor?: boolean | undefined;
3338
+ createdAtLocation?: string | null | undefined;
3339
+ type?: "DECLARE" | undefined;
3340
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3341
+ eventId: string;
3342
+ transactionId: string;
3343
+ content: {
3344
+ reason: string;
3345
+ };
3346
+ declaration?: Record<string, unknown> | undefined;
3347
+ annotation?: Record<string, unknown> | undefined;
3348
+ originalActionId?: string | undefined;
3349
+ keepAssignment?: boolean | undefined;
3350
+ keepAssignmentIfAccepted?: boolean | undefined;
3351
+ keepAssignmentIfRejected?: boolean | undefined;
3352
+ waitFor?: boolean | undefined;
3353
+ createdAtLocation?: string | null | undefined;
3354
+ type?: "REJECT" | undefined;
3355
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3356
+ eventId: string;
3357
+ transactionId: string;
3358
+ content: {
3359
+ duplicates: {
3360
+ id: string;
3361
+ trackingId: string;
3362
+ }[];
3363
+ };
3364
+ declaration?: Record<string, unknown> | undefined;
3365
+ annotation?: Record<string, unknown> | undefined;
3366
+ originalActionId?: string | undefined;
3367
+ keepAssignment?: boolean | undefined;
3368
+ keepAssignmentIfAccepted?: boolean | undefined;
3369
+ keepAssignmentIfRejected?: boolean | undefined;
3370
+ waitFor?: boolean | undefined;
3371
+ createdAtLocation?: string | null | undefined;
3372
+ type?: "DUPLICATE_DETECTED" | undefined;
3373
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3374
+ eventId: string;
3375
+ transactionId: string;
3376
+ declaration?: Record<string, unknown> | undefined;
3377
+ annotation?: Record<string, unknown> | undefined;
3378
+ originalActionId?: string | undefined;
3379
+ keepAssignment?: boolean | undefined;
3380
+ keepAssignmentIfAccepted?: boolean | undefined;
3381
+ keepAssignmentIfRejected?: boolean | undefined;
3382
+ waitFor?: boolean | undefined;
3383
+ createdAtLocation?: string | null | undefined;
3384
+ type?: "MARK_AS_DUPLICATE" | undefined;
3385
+ content?: {
3386
+ duplicateOf: string;
3387
+ } | undefined;
3388
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3389
+ eventId: string;
3390
+ transactionId: string;
3391
+ declaration?: Record<string, unknown> | undefined;
3392
+ annotation?: Record<string, unknown> | undefined;
3393
+ originalActionId?: string | undefined;
3394
+ keepAssignment?: boolean | undefined;
3395
+ keepAssignmentIfAccepted?: boolean | undefined;
3396
+ keepAssignmentIfRejected?: boolean | undefined;
3397
+ waitFor?: boolean | undefined;
3398
+ createdAtLocation?: string | null | undefined;
3399
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
3400
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3401
+ eventId: string;
3402
+ transactionId: string;
3403
+ content: {
3404
+ reason: string;
3405
+ };
3406
+ declaration?: Record<string, unknown> | undefined;
3407
+ annotation?: Record<string, unknown> | undefined;
3408
+ originalActionId?: string | undefined;
3409
+ keepAssignment?: boolean | undefined;
3410
+ keepAssignmentIfAccepted?: boolean | undefined;
3411
+ keepAssignmentIfRejected?: boolean | undefined;
3412
+ waitFor?: boolean | undefined;
3413
+ createdAtLocation?: string | null | undefined;
3414
+ type?: "ARCHIVE" | undefined;
3415
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3416
+ eventId: string;
3417
+ transactionId: string;
3418
+ type: "ASSIGN";
3419
+ assignedTo: string;
3420
+ declaration?: Record<string, unknown> | undefined;
3421
+ annotation?: Record<string, unknown> | undefined;
3422
+ originalActionId?: string | undefined;
3423
+ keepAssignment?: boolean | undefined;
3424
+ keepAssignmentIfAccepted?: boolean | undefined;
3425
+ keepAssignmentIfRejected?: boolean | undefined;
3426
+ waitFor?: boolean | undefined;
3427
+ createdAtLocation?: string | null | undefined;
3428
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3429
+ eventId: string;
3430
+ transactionId: string;
3431
+ declaration?: Record<string, unknown> | undefined;
3432
+ annotation?: Record<string, unknown> | undefined;
3433
+ originalActionId?: string | undefined;
3434
+ keepAssignment?: boolean | undefined;
3435
+ keepAssignmentIfAccepted?: boolean | undefined;
3436
+ keepAssignmentIfRejected?: boolean | undefined;
3437
+ waitFor?: boolean | undefined;
3438
+ createdAtLocation?: string | null | undefined;
3439
+ type?: "UNASSIGN" | undefined;
3440
+ assignedTo?: null | undefined;
3441
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3442
+ eventId: string;
3443
+ transactionId: string;
3444
+ declaration?: Record<string, unknown> | undefined;
3445
+ annotation?: Record<string, unknown> | undefined;
3446
+ originalActionId?: string | undefined;
3447
+ keepAssignment?: boolean | undefined;
3448
+ keepAssignmentIfAccepted?: boolean | undefined;
3449
+ keepAssignmentIfRejected?: boolean | undefined;
3450
+ waitFor?: boolean | undefined;
3451
+ createdAtLocation?: string | null | undefined;
3452
+ type?: "PRINT_CERTIFICATE" | undefined;
3453
+ content?: {
3454
+ templateId?: string | undefined;
3455
+ } | undefined;
3456
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3457
+ eventId: string;
3458
+ transactionId: string;
3459
+ declaration?: Record<string, unknown> | undefined;
3460
+ annotation?: Record<string, unknown> | undefined;
3461
+ originalActionId?: string | undefined;
3462
+ keepAssignment?: boolean | undefined;
3463
+ keepAssignmentIfAccepted?: boolean | undefined;
3464
+ keepAssignmentIfRejected?: boolean | undefined;
3465
+ waitFor?: boolean | undefined;
3466
+ createdAtLocation?: string | null | undefined;
3467
+ type?: "REQUEST_CORRECTION" | undefined;
3468
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3469
+ eventId: string;
3470
+ transactionId: string;
3471
+ requestId: string;
3472
+ content: {
3473
+ reason: string;
3474
+ };
3475
+ declaration?: Record<string, unknown> | undefined;
3476
+ annotation?: Record<string, unknown> | undefined;
3477
+ originalActionId?: string | undefined;
3478
+ keepAssignment?: boolean | undefined;
3479
+ keepAssignmentIfAccepted?: boolean | undefined;
3480
+ keepAssignmentIfRejected?: boolean | undefined;
3481
+ waitFor?: boolean | undefined;
3482
+ createdAtLocation?: string | null | undefined;
3483
+ type?: "REJECT_CORRECTION" | undefined;
3484
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3485
+ eventId: string;
3486
+ transactionId: string;
3487
+ requestId: string;
3488
+ declaration?: Record<string, unknown> | undefined;
3489
+ annotation?: Record<string, unknown> | undefined;
3490
+ originalActionId?: string | undefined;
3491
+ keepAssignment?: boolean | undefined;
3492
+ keepAssignmentIfAccepted?: boolean | undefined;
3493
+ keepAssignmentIfRejected?: boolean | undefined;
3494
+ waitFor?: boolean | undefined;
3495
+ createdAtLocation?: string | null | undefined;
3496
+ type?: "APPROVE_CORRECTION" | undefined;
3497
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3498
+ eventId: string;
3499
+ transactionId: string;
3500
+ declaration?: Record<string, unknown> | undefined;
3501
+ annotation?: Record<string, unknown> | undefined;
3502
+ originalActionId?: string | undefined;
3503
+ keepAssignment?: boolean | undefined;
3504
+ keepAssignmentIfAccepted?: boolean | undefined;
3505
+ keepAssignmentIfRejected?: boolean | undefined;
3506
+ waitFor?: boolean | undefined;
3507
+ createdAtLocation?: string | null | undefined;
3508
+ type?: "READ" | undefined;
3509
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3510
+ eventId: string;
3511
+ transactionId: string;
3512
+ customActionType: string;
3513
+ declaration?: Record<string, unknown> | undefined;
3514
+ annotation?: Record<string, unknown> | undefined;
3515
+ originalActionId?: string | undefined;
3516
+ keepAssignment?: boolean | undefined;
3517
+ keepAssignmentIfAccepted?: boolean | undefined;
3518
+ keepAssignmentIfRejected?: boolean | undefined;
3519
+ waitFor?: boolean | undefined;
3520
+ createdAtLocation?: string | null | undefined;
3521
+ type?: "CUSTOM" | undefined;
3522
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3523
+ eventId: string;
3524
+ transactionId: string;
3525
+ content: {
3526
+ comment?: string | undefined;
3527
+ };
3528
+ declaration?: Record<string, unknown> | undefined;
3529
+ annotation?: Record<string, unknown> | undefined;
3530
+ originalActionId?: string | undefined;
3531
+ keepAssignment?: boolean | undefined;
3532
+ keepAssignmentIfAccepted?: boolean | undefined;
3533
+ keepAssignmentIfRejected?: boolean | undefined;
3534
+ waitFor?: boolean | undefined;
3535
+ createdAtLocation?: string | null | undefined;
3536
+ type?: "EDIT" | undefined;
3537
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
3538
+ actionId: string;
3539
+ };
3540
+ output: import("../commons").EventDocument;
3541
+ meta: import("trpc-to-openapi").OpenApiMeta;
3542
+ }>;
3543
+ reject: import("@trpc/server").TRPCMutationProcedure<{
3544
+ input: import("zod").input<import("zod").ZodObject<{
3545
+ transactionId: import("zod").ZodString;
3546
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3547
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3548
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3549
+ }, import("zod/v4/core").$strip>>;
3550
+ output: import("../commons").EventDocument;
3551
+ meta: import("trpc-to-openapi").OpenApiMeta;
3552
+ }>;
3553
+ }>>;
3554
+ printCertificate: import("@trpc/server").TRPCBuiltRouter<{
3555
+ ctx: Partial<{
3556
+ token: `Bearer ${string}`;
3557
+ user: {
3558
+ id: string & import("zod").$brand<"UUID">;
3559
+ type: "system";
3560
+ signature?: undefined;
3561
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3562
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3563
+ } | {
3564
+ id: string & import("zod").$brand<"UUID">;
3565
+ type: "user";
3566
+ role: string;
3567
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
3568
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3569
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1655
3570
  };
1656
3571
  }>;
1657
3572
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1664,106 +3579,265 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1664
3579
  meta: import("trpc-to-openapi").OpenApiMeta;
1665
3580
  }>;
1666
3581
  accept: import("@trpc/server").TRPCMutationProcedure<{
1667
- input: import("../commons").ActionInput & {
1668
- actionId: string;
1669
- };
1670
- output: import("../commons").EventDocument;
1671
- meta: import("trpc-to-openapi").OpenApiMeta;
1672
- }>;
1673
- reject: import("@trpc/server").TRPCMutationProcedure<{
1674
- input: {
3582
+ input: (Omit<{
3583
+ eventId: string;
3584
+ transactionId: string;
3585
+ declaration?: Record<string, unknown> | undefined;
3586
+ annotation?: Record<string, unknown> | undefined;
3587
+ originalActionId?: string | undefined;
3588
+ keepAssignment?: boolean | undefined;
3589
+ keepAssignmentIfAccepted?: boolean | undefined;
3590
+ keepAssignmentIfRejected?: boolean | undefined;
3591
+ waitFor?: boolean | undefined;
3592
+ type?: "CREATE" | undefined;
3593
+ createdAtLocation?: string | null | undefined;
3594
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3595
+ eventId: string;
3596
+ transactionId: string;
3597
+ declaration?: Record<string, unknown> | undefined;
3598
+ annotation?: Record<string, unknown> | undefined;
3599
+ originalActionId?: string | undefined;
3600
+ keepAssignment?: boolean | undefined;
3601
+ keepAssignmentIfAccepted?: boolean | undefined;
3602
+ keepAssignmentIfRejected?: boolean | undefined;
3603
+ waitFor?: boolean | undefined;
3604
+ createdAtLocation?: string | null | undefined;
3605
+ type?: "REGISTER" | undefined;
3606
+ registrationNumber?: string | undefined;
3607
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3608
+ eventId: string;
3609
+ transactionId: string;
3610
+ declaration?: Record<string, unknown> | undefined;
3611
+ annotation?: Record<string, unknown> | undefined;
3612
+ originalActionId?: string | undefined;
3613
+ keepAssignment?: boolean | undefined;
3614
+ keepAssignmentIfAccepted?: boolean | undefined;
3615
+ keepAssignmentIfRejected?: boolean | undefined;
3616
+ waitFor?: boolean | undefined;
3617
+ type?: "NOTIFY" | undefined;
3618
+ createdAtLocation?: string | null | undefined;
3619
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3620
+ eventId: string;
3621
+ transactionId: string;
3622
+ declaration?: Record<string, unknown> | undefined;
3623
+ annotation?: Record<string, unknown> | undefined;
3624
+ originalActionId?: string | undefined;
3625
+ keepAssignment?: boolean | undefined;
3626
+ keepAssignmentIfAccepted?: boolean | undefined;
3627
+ keepAssignmentIfRejected?: boolean | undefined;
3628
+ waitFor?: boolean | undefined;
3629
+ createdAtLocation?: string | null | undefined;
3630
+ type?: "DECLARE" | undefined;
3631
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3632
+ eventId: string;
3633
+ transactionId: string;
3634
+ content: {
3635
+ reason: string;
3636
+ };
3637
+ declaration?: Record<string, unknown> | undefined;
3638
+ annotation?: Record<string, unknown> | undefined;
3639
+ originalActionId?: string | undefined;
3640
+ keepAssignment?: boolean | undefined;
3641
+ keepAssignmentIfAccepted?: boolean | undefined;
3642
+ keepAssignmentIfRejected?: boolean | undefined;
3643
+ waitFor?: boolean | undefined;
3644
+ createdAtLocation?: string | null | undefined;
3645
+ type?: "REJECT" | undefined;
3646
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3647
+ eventId: string;
3648
+ transactionId: string;
3649
+ content: {
3650
+ duplicates: {
3651
+ id: string;
3652
+ trackingId: string;
3653
+ }[];
3654
+ };
3655
+ declaration?: Record<string, unknown> | undefined;
3656
+ annotation?: Record<string, unknown> | undefined;
3657
+ originalActionId?: string | undefined;
3658
+ keepAssignment?: boolean | undefined;
3659
+ keepAssignmentIfAccepted?: boolean | undefined;
3660
+ keepAssignmentIfRejected?: boolean | undefined;
3661
+ waitFor?: boolean | undefined;
3662
+ createdAtLocation?: string | null | undefined;
3663
+ type?: "DUPLICATE_DETECTED" | undefined;
3664
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3665
+ eventId: string;
3666
+ transactionId: string;
3667
+ declaration?: Record<string, unknown> | undefined;
3668
+ annotation?: Record<string, unknown> | undefined;
3669
+ originalActionId?: string | undefined;
3670
+ keepAssignment?: boolean | undefined;
3671
+ keepAssignmentIfAccepted?: boolean | undefined;
3672
+ keepAssignmentIfRejected?: boolean | undefined;
3673
+ waitFor?: boolean | undefined;
3674
+ createdAtLocation?: string | null | undefined;
3675
+ type?: "MARK_AS_DUPLICATE" | undefined;
3676
+ content?: {
3677
+ duplicateOf: string;
3678
+ } | undefined;
3679
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3680
+ eventId: string;
3681
+ transactionId: string;
3682
+ declaration?: Record<string, unknown> | undefined;
3683
+ annotation?: Record<string, unknown> | undefined;
3684
+ originalActionId?: string | undefined;
3685
+ keepAssignment?: boolean | undefined;
3686
+ keepAssignmentIfAccepted?: boolean | undefined;
3687
+ keepAssignmentIfRejected?: boolean | undefined;
3688
+ waitFor?: boolean | undefined;
3689
+ createdAtLocation?: string | null | undefined;
3690
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
3691
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3692
+ eventId: string;
3693
+ transactionId: string;
3694
+ content: {
3695
+ reason: string;
3696
+ };
3697
+ declaration?: Record<string, unknown> | undefined;
3698
+ annotation?: Record<string, unknown> | undefined;
3699
+ originalActionId?: string | undefined;
3700
+ keepAssignment?: boolean | undefined;
3701
+ keepAssignmentIfAccepted?: boolean | undefined;
3702
+ keepAssignmentIfRejected?: boolean | undefined;
3703
+ waitFor?: boolean | undefined;
3704
+ createdAtLocation?: string | null | undefined;
3705
+ type?: "ARCHIVE" | undefined;
3706
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3707
+ eventId: string;
3708
+ transactionId: string;
3709
+ type: "ASSIGN";
3710
+ assignedTo: string;
3711
+ declaration?: Record<string, unknown> | undefined;
3712
+ annotation?: Record<string, unknown> | undefined;
3713
+ originalActionId?: string | undefined;
3714
+ keepAssignment?: boolean | undefined;
3715
+ keepAssignmentIfAccepted?: boolean | undefined;
3716
+ keepAssignmentIfRejected?: boolean | undefined;
3717
+ waitFor?: boolean | undefined;
3718
+ createdAtLocation?: string | null | undefined;
3719
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3720
+ eventId: string;
3721
+ transactionId: string;
3722
+ declaration?: Record<string, unknown> | undefined;
3723
+ annotation?: Record<string, unknown> | undefined;
3724
+ originalActionId?: string | undefined;
3725
+ keepAssignment?: boolean | undefined;
3726
+ keepAssignmentIfAccepted?: boolean | undefined;
3727
+ keepAssignmentIfRejected?: boolean | undefined;
3728
+ waitFor?: boolean | undefined;
3729
+ createdAtLocation?: string | null | undefined;
3730
+ type?: "UNASSIGN" | undefined;
3731
+ assignedTo?: null | undefined;
3732
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3733
+ eventId: string;
3734
+ transactionId: string;
3735
+ declaration?: Record<string, unknown> | undefined;
3736
+ annotation?: Record<string, unknown> | undefined;
3737
+ originalActionId?: string | undefined;
3738
+ keepAssignment?: boolean | undefined;
3739
+ keepAssignmentIfAccepted?: boolean | undefined;
3740
+ keepAssignmentIfRejected?: boolean | undefined;
3741
+ waitFor?: boolean | undefined;
3742
+ createdAtLocation?: string | null | undefined;
3743
+ type?: "PRINT_CERTIFICATE" | undefined;
3744
+ content?: {
3745
+ templateId?: string | undefined;
3746
+ } | undefined;
3747
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3748
+ eventId: string;
3749
+ transactionId: string;
3750
+ declaration?: Record<string, unknown> | undefined;
3751
+ annotation?: Record<string, unknown> | undefined;
3752
+ originalActionId?: string | undefined;
3753
+ keepAssignment?: boolean | undefined;
3754
+ keepAssignmentIfAccepted?: boolean | undefined;
3755
+ keepAssignmentIfRejected?: boolean | undefined;
3756
+ waitFor?: boolean | undefined;
3757
+ createdAtLocation?: string | null | undefined;
3758
+ type?: "REQUEST_CORRECTION" | undefined;
3759
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1675
3760
  eventId: string;
1676
- actionId: string;
1677
3761
  transactionId: string;
1678
- };
1679
- output: import("../commons").EventDocument;
1680
- meta: import("trpc-to-openapi").OpenApiMeta;
1681
- }>;
1682
- }>>;
1683
- register: import("@trpc/server").TRPCBuiltRouter<{
1684
- ctx: Partial<{
1685
- token: `Bearer ${string}`;
1686
- user: {
1687
- id: string & import("zod").$brand<"UUID">;
1688
- type: "system";
1689
- signature?: undefined;
1690
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1691
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1692
- } | {
1693
- id: string & import("zod").$brand<"UUID">;
1694
- type: "user";
1695
- role: string;
1696
- primaryOfficeId: string & import("zod").$brand<"UUID">;
1697
- signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1698
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1699
- };
1700
- }>;
1701
- meta: import("trpc-to-openapi").OpenApiMeta;
1702
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1703
- transformer: true;
1704
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1705
- request: import("@trpc/server").TRPCMutationProcedure<{
1706
- input: import("../commons").ActionInput;
1707
- output: import("../commons").EventDocument;
1708
- meta: import("trpc-to-openapi").OpenApiMeta;
1709
- }>;
1710
- accept: import("@trpc/server").TRPCMutationProcedure<{
1711
- input: import("../commons").ActionInput & {
1712
- actionId: string;
1713
- };
1714
- output: import("../commons").EventDocument;
1715
- meta: import("trpc-to-openapi").OpenApiMeta;
1716
- }>;
1717
- reject: import("@trpc/server").TRPCMutationProcedure<{
1718
- input: {
3762
+ requestId: string;
3763
+ content: {
3764
+ reason: string;
3765
+ };
3766
+ declaration?: Record<string, unknown> | undefined;
3767
+ annotation?: Record<string, unknown> | undefined;
3768
+ originalActionId?: string | undefined;
3769
+ keepAssignment?: boolean | undefined;
3770
+ keepAssignmentIfAccepted?: boolean | undefined;
3771
+ keepAssignmentIfRejected?: boolean | undefined;
3772
+ waitFor?: boolean | undefined;
3773
+ createdAtLocation?: string | null | undefined;
3774
+ type?: "REJECT_CORRECTION" | undefined;
3775
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1719
3776
  eventId: string;
1720
- actionId: string;
1721
3777
  transactionId: string;
1722
- };
1723
- output: import("../commons").EventDocument;
1724
- meta: import("trpc-to-openapi").OpenApiMeta;
1725
- }>;
1726
- }>>;
1727
- printCertificate: import("@trpc/server").TRPCBuiltRouter<{
1728
- ctx: Partial<{
1729
- token: `Bearer ${string}`;
1730
- user: {
1731
- id: string & import("zod").$brand<"UUID">;
1732
- type: "system";
1733
- signature?: undefined;
1734
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1735
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1736
- } | {
1737
- id: string & import("zod").$brand<"UUID">;
1738
- type: "user";
1739
- role: string;
1740
- primaryOfficeId: string & import("zod").$brand<"UUID">;
1741
- signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1742
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1743
- };
1744
- }>;
1745
- meta: import("trpc-to-openapi").OpenApiMeta;
1746
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1747
- transformer: true;
1748
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1749
- request: import("@trpc/server").TRPCMutationProcedure<{
1750
- input: import("../commons").ActionInput;
1751
- output: import("../commons").EventDocument;
1752
- meta: import("trpc-to-openapi").OpenApiMeta;
1753
- }>;
1754
- accept: import("@trpc/server").TRPCMutationProcedure<{
1755
- input: import("../commons").ActionInput & {
3778
+ requestId: string;
3779
+ declaration?: Record<string, unknown> | undefined;
3780
+ annotation?: Record<string, unknown> | undefined;
3781
+ originalActionId?: string | undefined;
3782
+ keepAssignment?: boolean | undefined;
3783
+ keepAssignmentIfAccepted?: boolean | undefined;
3784
+ keepAssignmentIfRejected?: boolean | undefined;
3785
+ waitFor?: boolean | undefined;
3786
+ createdAtLocation?: string | null | undefined;
3787
+ type?: "APPROVE_CORRECTION" | undefined;
3788
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3789
+ eventId: string;
3790
+ transactionId: string;
3791
+ declaration?: Record<string, unknown> | undefined;
3792
+ annotation?: Record<string, unknown> | undefined;
3793
+ originalActionId?: string | undefined;
3794
+ keepAssignment?: boolean | undefined;
3795
+ keepAssignmentIfAccepted?: boolean | undefined;
3796
+ keepAssignmentIfRejected?: boolean | undefined;
3797
+ waitFor?: boolean | undefined;
3798
+ createdAtLocation?: string | null | undefined;
3799
+ type?: "READ" | undefined;
3800
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3801
+ eventId: string;
3802
+ transactionId: string;
3803
+ customActionType: string;
3804
+ declaration?: Record<string, unknown> | undefined;
3805
+ annotation?: Record<string, unknown> | undefined;
3806
+ originalActionId?: string | undefined;
3807
+ keepAssignment?: boolean | undefined;
3808
+ keepAssignmentIfAccepted?: boolean | undefined;
3809
+ keepAssignmentIfRejected?: boolean | undefined;
3810
+ waitFor?: boolean | undefined;
3811
+ createdAtLocation?: string | null | undefined;
3812
+ type?: "CUSTOM" | undefined;
3813
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3814
+ eventId: string;
3815
+ transactionId: string;
3816
+ content: {
3817
+ comment?: string | undefined;
3818
+ };
3819
+ declaration?: Record<string, unknown> | undefined;
3820
+ annotation?: Record<string, unknown> | undefined;
3821
+ originalActionId?: string | undefined;
3822
+ keepAssignment?: boolean | undefined;
3823
+ keepAssignmentIfAccepted?: boolean | undefined;
3824
+ keepAssignmentIfRejected?: boolean | undefined;
3825
+ waitFor?: boolean | undefined;
3826
+ createdAtLocation?: string | null | undefined;
3827
+ type?: "EDIT" | undefined;
3828
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
1756
3829
  actionId: string;
1757
3830
  };
1758
3831
  output: import("../commons").EventDocument;
1759
3832
  meta: import("trpc-to-openapi").OpenApiMeta;
1760
3833
  }>;
1761
3834
  reject: import("@trpc/server").TRPCMutationProcedure<{
1762
- input: {
1763
- eventId: string;
1764
- actionId: string;
1765
- transactionId: string;
1766
- };
3835
+ input: import("zod").input<import("zod").ZodObject<{
3836
+ transactionId: import("zod").ZodString;
3837
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3838
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3839
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3840
+ }, import("zod/v4/core").$strip>>;
1767
3841
  output: import("../commons").EventDocument;
1768
3842
  meta: import("trpc-to-openapi").OpenApiMeta;
1769
3843
  }>;
@@ -1799,6 +3873,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1799
3873
  annotation?: Record<string, unknown> | undefined;
1800
3874
  originalActionId?: string | undefined;
1801
3875
  keepAssignment?: boolean | undefined;
3876
+ keepAssignmentIfAccepted?: boolean | undefined;
3877
+ keepAssignmentIfRejected?: boolean | undefined;
3878
+ waitFor?: boolean | undefined;
1802
3879
  createdAtLocation?: string | null | undefined;
1803
3880
  type?: "CUSTOM" | undefined;
1804
3881
  };
@@ -2106,18 +4183,265 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2106
4183
  meta: import("trpc-to-openapi").OpenApiMeta;
2107
4184
  }>;
2108
4185
  accept: import("@trpc/server").TRPCMutationProcedure<{
2109
- input: import("../commons").ActionInput & {
4186
+ input: (Omit<{
4187
+ eventId: string;
4188
+ transactionId: string;
4189
+ declaration?: Record<string, unknown> | undefined;
4190
+ annotation?: Record<string, unknown> | undefined;
4191
+ originalActionId?: string | undefined;
4192
+ keepAssignment?: boolean | undefined;
4193
+ keepAssignmentIfAccepted?: boolean | undefined;
4194
+ keepAssignmentIfRejected?: boolean | undefined;
4195
+ waitFor?: boolean | undefined;
4196
+ type?: "CREATE" | undefined;
4197
+ createdAtLocation?: string | null | undefined;
4198
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4199
+ eventId: string;
4200
+ transactionId: string;
4201
+ declaration?: Record<string, unknown> | undefined;
4202
+ annotation?: Record<string, unknown> | undefined;
4203
+ originalActionId?: string | undefined;
4204
+ keepAssignment?: boolean | undefined;
4205
+ keepAssignmentIfAccepted?: boolean | undefined;
4206
+ keepAssignmentIfRejected?: boolean | undefined;
4207
+ waitFor?: boolean | undefined;
4208
+ createdAtLocation?: string | null | undefined;
4209
+ type?: "REGISTER" | undefined;
4210
+ registrationNumber?: string | undefined;
4211
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4212
+ eventId: string;
4213
+ transactionId: string;
4214
+ declaration?: Record<string, unknown> | undefined;
4215
+ annotation?: Record<string, unknown> | undefined;
4216
+ originalActionId?: string | undefined;
4217
+ keepAssignment?: boolean | undefined;
4218
+ keepAssignmentIfAccepted?: boolean | undefined;
4219
+ keepAssignmentIfRejected?: boolean | undefined;
4220
+ waitFor?: boolean | undefined;
4221
+ type?: "NOTIFY" | undefined;
4222
+ createdAtLocation?: string | null | undefined;
4223
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4224
+ eventId: string;
4225
+ transactionId: string;
4226
+ declaration?: Record<string, unknown> | undefined;
4227
+ annotation?: Record<string, unknown> | undefined;
4228
+ originalActionId?: string | undefined;
4229
+ keepAssignment?: boolean | undefined;
4230
+ keepAssignmentIfAccepted?: boolean | undefined;
4231
+ keepAssignmentIfRejected?: boolean | undefined;
4232
+ waitFor?: boolean | undefined;
4233
+ createdAtLocation?: string | null | undefined;
4234
+ type?: "DECLARE" | undefined;
4235
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4236
+ eventId: string;
4237
+ transactionId: string;
4238
+ content: {
4239
+ reason: string;
4240
+ };
4241
+ declaration?: Record<string, unknown> | undefined;
4242
+ annotation?: Record<string, unknown> | undefined;
4243
+ originalActionId?: string | undefined;
4244
+ keepAssignment?: boolean | undefined;
4245
+ keepAssignmentIfAccepted?: boolean | undefined;
4246
+ keepAssignmentIfRejected?: boolean | undefined;
4247
+ waitFor?: boolean | undefined;
4248
+ createdAtLocation?: string | null | undefined;
4249
+ type?: "REJECT" | undefined;
4250
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4251
+ eventId: string;
4252
+ transactionId: string;
4253
+ content: {
4254
+ duplicates: {
4255
+ id: string;
4256
+ trackingId: string;
4257
+ }[];
4258
+ };
4259
+ declaration?: Record<string, unknown> | undefined;
4260
+ annotation?: Record<string, unknown> | undefined;
4261
+ originalActionId?: string | undefined;
4262
+ keepAssignment?: boolean | undefined;
4263
+ keepAssignmentIfAccepted?: boolean | undefined;
4264
+ keepAssignmentIfRejected?: boolean | undefined;
4265
+ waitFor?: boolean | undefined;
4266
+ createdAtLocation?: string | null | undefined;
4267
+ type?: "DUPLICATE_DETECTED" | undefined;
4268
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4269
+ eventId: string;
4270
+ transactionId: string;
4271
+ declaration?: Record<string, unknown> | undefined;
4272
+ annotation?: Record<string, unknown> | undefined;
4273
+ originalActionId?: string | undefined;
4274
+ keepAssignment?: boolean | undefined;
4275
+ keepAssignmentIfAccepted?: boolean | undefined;
4276
+ keepAssignmentIfRejected?: boolean | undefined;
4277
+ waitFor?: boolean | undefined;
4278
+ createdAtLocation?: string | null | undefined;
4279
+ type?: "MARK_AS_DUPLICATE" | undefined;
4280
+ content?: {
4281
+ duplicateOf: string;
4282
+ } | undefined;
4283
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4284
+ eventId: string;
4285
+ transactionId: string;
4286
+ declaration?: Record<string, unknown> | undefined;
4287
+ annotation?: Record<string, unknown> | undefined;
4288
+ originalActionId?: string | undefined;
4289
+ keepAssignment?: boolean | undefined;
4290
+ keepAssignmentIfAccepted?: boolean | undefined;
4291
+ keepAssignmentIfRejected?: boolean | undefined;
4292
+ waitFor?: boolean | undefined;
4293
+ createdAtLocation?: string | null | undefined;
4294
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
4295
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4296
+ eventId: string;
4297
+ transactionId: string;
4298
+ content: {
4299
+ reason: string;
4300
+ };
4301
+ declaration?: Record<string, unknown> | undefined;
4302
+ annotation?: Record<string, unknown> | undefined;
4303
+ originalActionId?: string | undefined;
4304
+ keepAssignment?: boolean | undefined;
4305
+ keepAssignmentIfAccepted?: boolean | undefined;
4306
+ keepAssignmentIfRejected?: boolean | undefined;
4307
+ waitFor?: boolean | undefined;
4308
+ createdAtLocation?: string | null | undefined;
4309
+ type?: "ARCHIVE" | undefined;
4310
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4311
+ eventId: string;
4312
+ transactionId: string;
4313
+ type: "ASSIGN";
4314
+ assignedTo: string;
4315
+ declaration?: Record<string, unknown> | undefined;
4316
+ annotation?: Record<string, unknown> | undefined;
4317
+ originalActionId?: string | undefined;
4318
+ keepAssignment?: boolean | undefined;
4319
+ keepAssignmentIfAccepted?: boolean | undefined;
4320
+ keepAssignmentIfRejected?: boolean | undefined;
4321
+ waitFor?: boolean | undefined;
4322
+ createdAtLocation?: string | null | undefined;
4323
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4324
+ eventId: string;
4325
+ transactionId: string;
4326
+ declaration?: Record<string, unknown> | undefined;
4327
+ annotation?: Record<string, unknown> | undefined;
4328
+ originalActionId?: string | undefined;
4329
+ keepAssignment?: boolean | undefined;
4330
+ keepAssignmentIfAccepted?: boolean | undefined;
4331
+ keepAssignmentIfRejected?: boolean | undefined;
4332
+ waitFor?: boolean | undefined;
4333
+ createdAtLocation?: string | null | undefined;
4334
+ type?: "UNASSIGN" | undefined;
4335
+ assignedTo?: null | undefined;
4336
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4337
+ eventId: string;
4338
+ transactionId: string;
4339
+ declaration?: Record<string, unknown> | undefined;
4340
+ annotation?: Record<string, unknown> | undefined;
4341
+ originalActionId?: string | undefined;
4342
+ keepAssignment?: boolean | undefined;
4343
+ keepAssignmentIfAccepted?: boolean | undefined;
4344
+ keepAssignmentIfRejected?: boolean | undefined;
4345
+ waitFor?: boolean | undefined;
4346
+ createdAtLocation?: string | null | undefined;
4347
+ type?: "PRINT_CERTIFICATE" | undefined;
4348
+ content?: {
4349
+ templateId?: string | undefined;
4350
+ } | undefined;
4351
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4352
+ eventId: string;
4353
+ transactionId: string;
4354
+ declaration?: Record<string, unknown> | undefined;
4355
+ annotation?: Record<string, unknown> | undefined;
4356
+ originalActionId?: string | undefined;
4357
+ keepAssignment?: boolean | undefined;
4358
+ keepAssignmentIfAccepted?: boolean | undefined;
4359
+ keepAssignmentIfRejected?: boolean | undefined;
4360
+ waitFor?: boolean | undefined;
4361
+ createdAtLocation?: string | null | undefined;
4362
+ type?: "REQUEST_CORRECTION" | undefined;
4363
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4364
+ eventId: string;
4365
+ transactionId: string;
4366
+ requestId: string;
4367
+ content: {
4368
+ reason: string;
4369
+ };
4370
+ declaration?: Record<string, unknown> | undefined;
4371
+ annotation?: Record<string, unknown> | undefined;
4372
+ originalActionId?: string | undefined;
4373
+ keepAssignment?: boolean | undefined;
4374
+ keepAssignmentIfAccepted?: boolean | undefined;
4375
+ keepAssignmentIfRejected?: boolean | undefined;
4376
+ waitFor?: boolean | undefined;
4377
+ createdAtLocation?: string | null | undefined;
4378
+ type?: "REJECT_CORRECTION" | undefined;
4379
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4380
+ eventId: string;
4381
+ transactionId: string;
4382
+ requestId: string;
4383
+ declaration?: Record<string, unknown> | undefined;
4384
+ annotation?: Record<string, unknown> | undefined;
4385
+ originalActionId?: string | undefined;
4386
+ keepAssignment?: boolean | undefined;
4387
+ keepAssignmentIfAccepted?: boolean | undefined;
4388
+ keepAssignmentIfRejected?: boolean | undefined;
4389
+ waitFor?: boolean | undefined;
4390
+ createdAtLocation?: string | null | undefined;
4391
+ type?: "APPROVE_CORRECTION" | undefined;
4392
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4393
+ eventId: string;
4394
+ transactionId: string;
4395
+ declaration?: Record<string, unknown> | undefined;
4396
+ annotation?: Record<string, unknown> | undefined;
4397
+ originalActionId?: string | undefined;
4398
+ keepAssignment?: boolean | undefined;
4399
+ keepAssignmentIfAccepted?: boolean | undefined;
4400
+ keepAssignmentIfRejected?: boolean | undefined;
4401
+ waitFor?: boolean | undefined;
4402
+ createdAtLocation?: string | null | undefined;
4403
+ type?: "READ" | undefined;
4404
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4405
+ eventId: string;
4406
+ transactionId: string;
4407
+ customActionType: string;
4408
+ declaration?: Record<string, unknown> | undefined;
4409
+ annotation?: Record<string, unknown> | undefined;
4410
+ originalActionId?: string | undefined;
4411
+ keepAssignment?: boolean | undefined;
4412
+ keepAssignmentIfAccepted?: boolean | undefined;
4413
+ keepAssignmentIfRejected?: boolean | undefined;
4414
+ waitFor?: boolean | undefined;
4415
+ createdAtLocation?: string | null | undefined;
4416
+ type?: "CUSTOM" | undefined;
4417
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4418
+ eventId: string;
4419
+ transactionId: string;
4420
+ content: {
4421
+ comment?: string | undefined;
4422
+ };
4423
+ declaration?: Record<string, unknown> | undefined;
4424
+ annotation?: Record<string, unknown> | undefined;
4425
+ originalActionId?: string | undefined;
4426
+ keepAssignment?: boolean | undefined;
4427
+ keepAssignmentIfAccepted?: boolean | undefined;
4428
+ keepAssignmentIfRejected?: boolean | undefined;
4429
+ waitFor?: boolean | undefined;
4430
+ createdAtLocation?: string | null | undefined;
4431
+ type?: "EDIT" | undefined;
4432
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2110
4433
  actionId: string;
2111
4434
  };
2112
4435
  output: import("../commons").EventDocument;
2113
4436
  meta: import("trpc-to-openapi").OpenApiMeta;
2114
4437
  }>;
2115
4438
  reject: import("@trpc/server").TRPCMutationProcedure<{
2116
- input: {
2117
- eventId: string;
2118
- actionId: string;
2119
- transactionId: string;
2120
- };
4439
+ input: import("zod").input<import("zod").ZodObject<{
4440
+ transactionId: import("zod").ZodString;
4441
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
4442
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
4443
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
4444
+ }, import("zod/v4/core").$strip>>;
2121
4445
  output: import("../commons").EventDocument;
2122
4446
  meta: import("trpc-to-openapi").OpenApiMeta;
2123
4447
  }>;
@@ -2154,6 +4478,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2154
4478
  annotation?: Record<string, unknown> | undefined;
2155
4479
  originalActionId?: string | undefined;
2156
4480
  keepAssignment?: boolean | undefined;
4481
+ keepAssignmentIfAccepted?: boolean | undefined;
4482
+ keepAssignmentIfRejected?: boolean | undefined;
4483
+ waitFor?: boolean | undefined;
2157
4484
  createdAtLocation?: string | null | undefined;
2158
4485
  };
2159
4486
  output: {
@@ -2467,6 +4794,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2467
4794
  annotation?: Record<string, unknown> | undefined;
2468
4795
  originalActionId?: string | undefined;
2469
4796
  keepAssignment?: boolean | undefined;
4797
+ keepAssignmentIfAccepted?: boolean | undefined;
4798
+ keepAssignmentIfRejected?: boolean | undefined;
4799
+ waitFor?: boolean | undefined;
2470
4800
  createdAtLocation?: string | null | undefined;
2471
4801
  type?: "UNASSIGN" | undefined;
2472
4802
  assignedTo?: null | undefined;
@@ -2825,18 +5155,265 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2825
5155
  meta: import("trpc-to-openapi").OpenApiMeta;
2826
5156
  }>;
2827
5157
  accept: import("@trpc/server").TRPCMutationProcedure<{
2828
- input: import("../commons").ActionInput & {
5158
+ input: (Omit<{
5159
+ eventId: string;
5160
+ transactionId: string;
5161
+ declaration?: Record<string, unknown> | undefined;
5162
+ annotation?: Record<string, unknown> | undefined;
5163
+ originalActionId?: string | undefined;
5164
+ keepAssignment?: boolean | undefined;
5165
+ keepAssignmentIfAccepted?: boolean | undefined;
5166
+ keepAssignmentIfRejected?: boolean | undefined;
5167
+ waitFor?: boolean | undefined;
5168
+ type?: "CREATE" | undefined;
5169
+ createdAtLocation?: string | null | undefined;
5170
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5171
+ eventId: string;
5172
+ transactionId: string;
5173
+ declaration?: Record<string, unknown> | undefined;
5174
+ annotation?: Record<string, unknown> | undefined;
5175
+ originalActionId?: string | undefined;
5176
+ keepAssignment?: boolean | undefined;
5177
+ keepAssignmentIfAccepted?: boolean | undefined;
5178
+ keepAssignmentIfRejected?: boolean | undefined;
5179
+ waitFor?: boolean | undefined;
5180
+ createdAtLocation?: string | null | undefined;
5181
+ type?: "REGISTER" | undefined;
5182
+ registrationNumber?: string | undefined;
5183
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5184
+ eventId: string;
5185
+ transactionId: string;
5186
+ declaration?: Record<string, unknown> | undefined;
5187
+ annotation?: Record<string, unknown> | undefined;
5188
+ originalActionId?: string | undefined;
5189
+ keepAssignment?: boolean | undefined;
5190
+ keepAssignmentIfAccepted?: boolean | undefined;
5191
+ keepAssignmentIfRejected?: boolean | undefined;
5192
+ waitFor?: boolean | undefined;
5193
+ type?: "NOTIFY" | undefined;
5194
+ createdAtLocation?: string | null | undefined;
5195
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5196
+ eventId: string;
5197
+ transactionId: string;
5198
+ declaration?: Record<string, unknown> | undefined;
5199
+ annotation?: Record<string, unknown> | undefined;
5200
+ originalActionId?: string | undefined;
5201
+ keepAssignment?: boolean | undefined;
5202
+ keepAssignmentIfAccepted?: boolean | undefined;
5203
+ keepAssignmentIfRejected?: boolean | undefined;
5204
+ waitFor?: boolean | undefined;
5205
+ createdAtLocation?: string | null | undefined;
5206
+ type?: "DECLARE" | undefined;
5207
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5208
+ eventId: string;
5209
+ transactionId: string;
5210
+ content: {
5211
+ reason: string;
5212
+ };
5213
+ declaration?: Record<string, unknown> | undefined;
5214
+ annotation?: Record<string, unknown> | undefined;
5215
+ originalActionId?: string | undefined;
5216
+ keepAssignment?: boolean | undefined;
5217
+ keepAssignmentIfAccepted?: boolean | undefined;
5218
+ keepAssignmentIfRejected?: boolean | undefined;
5219
+ waitFor?: boolean | undefined;
5220
+ createdAtLocation?: string | null | undefined;
5221
+ type?: "REJECT" | undefined;
5222
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5223
+ eventId: string;
5224
+ transactionId: string;
5225
+ content: {
5226
+ duplicates: {
5227
+ id: string;
5228
+ trackingId: string;
5229
+ }[];
5230
+ };
5231
+ declaration?: Record<string, unknown> | undefined;
5232
+ annotation?: Record<string, unknown> | undefined;
5233
+ originalActionId?: string | undefined;
5234
+ keepAssignment?: boolean | undefined;
5235
+ keepAssignmentIfAccepted?: boolean | undefined;
5236
+ keepAssignmentIfRejected?: boolean | undefined;
5237
+ waitFor?: boolean | undefined;
5238
+ createdAtLocation?: string | null | undefined;
5239
+ type?: "DUPLICATE_DETECTED" | undefined;
5240
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5241
+ eventId: string;
5242
+ transactionId: string;
5243
+ declaration?: Record<string, unknown> | undefined;
5244
+ annotation?: Record<string, unknown> | undefined;
5245
+ originalActionId?: string | undefined;
5246
+ keepAssignment?: boolean | undefined;
5247
+ keepAssignmentIfAccepted?: boolean | undefined;
5248
+ keepAssignmentIfRejected?: boolean | undefined;
5249
+ waitFor?: boolean | undefined;
5250
+ createdAtLocation?: string | null | undefined;
5251
+ type?: "MARK_AS_DUPLICATE" | undefined;
5252
+ content?: {
5253
+ duplicateOf: string;
5254
+ } | undefined;
5255
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5256
+ eventId: string;
5257
+ transactionId: string;
5258
+ declaration?: Record<string, unknown> | undefined;
5259
+ annotation?: Record<string, unknown> | undefined;
5260
+ originalActionId?: string | undefined;
5261
+ keepAssignment?: boolean | undefined;
5262
+ keepAssignmentIfAccepted?: boolean | undefined;
5263
+ keepAssignmentIfRejected?: boolean | undefined;
5264
+ waitFor?: boolean | undefined;
5265
+ createdAtLocation?: string | null | undefined;
5266
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
5267
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5268
+ eventId: string;
5269
+ transactionId: string;
5270
+ content: {
5271
+ reason: string;
5272
+ };
5273
+ declaration?: Record<string, unknown> | undefined;
5274
+ annotation?: Record<string, unknown> | undefined;
5275
+ originalActionId?: string | undefined;
5276
+ keepAssignment?: boolean | undefined;
5277
+ keepAssignmentIfAccepted?: boolean | undefined;
5278
+ keepAssignmentIfRejected?: boolean | undefined;
5279
+ waitFor?: boolean | undefined;
5280
+ createdAtLocation?: string | null | undefined;
5281
+ type?: "ARCHIVE" | undefined;
5282
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5283
+ eventId: string;
5284
+ transactionId: string;
5285
+ type: "ASSIGN";
5286
+ assignedTo: string;
5287
+ declaration?: Record<string, unknown> | undefined;
5288
+ annotation?: Record<string, unknown> | undefined;
5289
+ originalActionId?: string | undefined;
5290
+ keepAssignment?: boolean | undefined;
5291
+ keepAssignmentIfAccepted?: boolean | undefined;
5292
+ keepAssignmentIfRejected?: boolean | undefined;
5293
+ waitFor?: boolean | undefined;
5294
+ createdAtLocation?: string | null | undefined;
5295
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5296
+ eventId: string;
5297
+ transactionId: string;
5298
+ declaration?: Record<string, unknown> | undefined;
5299
+ annotation?: Record<string, unknown> | undefined;
5300
+ originalActionId?: string | undefined;
5301
+ keepAssignment?: boolean | undefined;
5302
+ keepAssignmentIfAccepted?: boolean | undefined;
5303
+ keepAssignmentIfRejected?: boolean | undefined;
5304
+ waitFor?: boolean | undefined;
5305
+ createdAtLocation?: string | null | undefined;
5306
+ type?: "UNASSIGN" | undefined;
5307
+ assignedTo?: null | undefined;
5308
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5309
+ eventId: string;
5310
+ transactionId: string;
5311
+ declaration?: Record<string, unknown> | undefined;
5312
+ annotation?: Record<string, unknown> | undefined;
5313
+ originalActionId?: string | undefined;
5314
+ keepAssignment?: boolean | undefined;
5315
+ keepAssignmentIfAccepted?: boolean | undefined;
5316
+ keepAssignmentIfRejected?: boolean | undefined;
5317
+ waitFor?: boolean | undefined;
5318
+ createdAtLocation?: string | null | undefined;
5319
+ type?: "PRINT_CERTIFICATE" | undefined;
5320
+ content?: {
5321
+ templateId?: string | undefined;
5322
+ } | undefined;
5323
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5324
+ eventId: string;
5325
+ transactionId: string;
5326
+ declaration?: Record<string, unknown> | undefined;
5327
+ annotation?: Record<string, unknown> | undefined;
5328
+ originalActionId?: string | undefined;
5329
+ keepAssignment?: boolean | undefined;
5330
+ keepAssignmentIfAccepted?: boolean | undefined;
5331
+ keepAssignmentIfRejected?: boolean | undefined;
5332
+ waitFor?: boolean | undefined;
5333
+ createdAtLocation?: string | null | undefined;
5334
+ type?: "REQUEST_CORRECTION" | undefined;
5335
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5336
+ eventId: string;
5337
+ transactionId: string;
5338
+ requestId: string;
5339
+ content: {
5340
+ reason: string;
5341
+ };
5342
+ declaration?: Record<string, unknown> | undefined;
5343
+ annotation?: Record<string, unknown> | undefined;
5344
+ originalActionId?: string | undefined;
5345
+ keepAssignment?: boolean | undefined;
5346
+ keepAssignmentIfAccepted?: boolean | undefined;
5347
+ keepAssignmentIfRejected?: boolean | undefined;
5348
+ waitFor?: boolean | undefined;
5349
+ createdAtLocation?: string | null | undefined;
5350
+ type?: "REJECT_CORRECTION" | undefined;
5351
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5352
+ eventId: string;
5353
+ transactionId: string;
5354
+ requestId: string;
5355
+ declaration?: Record<string, unknown> | undefined;
5356
+ annotation?: Record<string, unknown> | undefined;
5357
+ originalActionId?: string | undefined;
5358
+ keepAssignment?: boolean | undefined;
5359
+ keepAssignmentIfAccepted?: boolean | undefined;
5360
+ keepAssignmentIfRejected?: boolean | undefined;
5361
+ waitFor?: boolean | undefined;
5362
+ createdAtLocation?: string | null | undefined;
5363
+ type?: "APPROVE_CORRECTION" | undefined;
5364
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5365
+ eventId: string;
5366
+ transactionId: string;
5367
+ declaration?: Record<string, unknown> | undefined;
5368
+ annotation?: Record<string, unknown> | undefined;
5369
+ originalActionId?: string | undefined;
5370
+ keepAssignment?: boolean | undefined;
5371
+ keepAssignmentIfAccepted?: boolean | undefined;
5372
+ keepAssignmentIfRejected?: boolean | undefined;
5373
+ waitFor?: boolean | undefined;
5374
+ createdAtLocation?: string | null | undefined;
5375
+ type?: "READ" | undefined;
5376
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5377
+ eventId: string;
5378
+ transactionId: string;
5379
+ customActionType: string;
5380
+ declaration?: Record<string, unknown> | undefined;
5381
+ annotation?: Record<string, unknown> | undefined;
5382
+ originalActionId?: string | undefined;
5383
+ keepAssignment?: boolean | undefined;
5384
+ keepAssignmentIfAccepted?: boolean | undefined;
5385
+ keepAssignmentIfRejected?: boolean | undefined;
5386
+ waitFor?: boolean | undefined;
5387
+ createdAtLocation?: string | null | undefined;
5388
+ type?: "CUSTOM" | undefined;
5389
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5390
+ eventId: string;
5391
+ transactionId: string;
5392
+ content: {
5393
+ comment?: string | undefined;
5394
+ };
5395
+ declaration?: Record<string, unknown> | undefined;
5396
+ annotation?: Record<string, unknown> | undefined;
5397
+ originalActionId?: string | undefined;
5398
+ keepAssignment?: boolean | undefined;
5399
+ keepAssignmentIfAccepted?: boolean | undefined;
5400
+ keepAssignmentIfRejected?: boolean | undefined;
5401
+ waitFor?: boolean | undefined;
5402
+ createdAtLocation?: string | null | undefined;
5403
+ type?: "EDIT" | undefined;
5404
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2829
5405
  actionId: string;
2830
5406
  };
2831
5407
  output: import("../commons").EventDocument;
2832
5408
  meta: import("trpc-to-openapi").OpenApiMeta;
2833
5409
  }>;
2834
5410
  reject: import("@trpc/server").TRPCMutationProcedure<{
2835
- input: {
2836
- eventId: string;
2837
- actionId: string;
2838
- transactionId: string;
2839
- };
5411
+ input: import("zod").input<import("zod").ZodObject<{
5412
+ transactionId: import("zod").ZodString;
5413
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5414
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
5415
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5416
+ }, import("zod/v4/core").$strip>>;
2840
5417
  output: import("../commons").EventDocument;
2841
5418
  meta: import("trpc-to-openapi").OpenApiMeta;
2842
5419
  }>;
@@ -2869,18 +5446,265 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2869
5446
  meta: import("trpc-to-openapi").OpenApiMeta;
2870
5447
  }>;
2871
5448
  accept: import("@trpc/server").TRPCMutationProcedure<{
2872
- input: import("../commons").ActionInput & {
5449
+ input: (Omit<{
5450
+ eventId: string;
5451
+ transactionId: string;
5452
+ declaration?: Record<string, unknown> | undefined;
5453
+ annotation?: Record<string, unknown> | undefined;
5454
+ originalActionId?: string | undefined;
5455
+ keepAssignment?: boolean | undefined;
5456
+ keepAssignmentIfAccepted?: boolean | undefined;
5457
+ keepAssignmentIfRejected?: boolean | undefined;
5458
+ waitFor?: boolean | undefined;
5459
+ type?: "CREATE" | undefined;
5460
+ createdAtLocation?: string | null | undefined;
5461
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5462
+ eventId: string;
5463
+ transactionId: string;
5464
+ declaration?: Record<string, unknown> | undefined;
5465
+ annotation?: Record<string, unknown> | undefined;
5466
+ originalActionId?: string | undefined;
5467
+ keepAssignment?: boolean | undefined;
5468
+ keepAssignmentIfAccepted?: boolean | undefined;
5469
+ keepAssignmentIfRejected?: boolean | undefined;
5470
+ waitFor?: boolean | undefined;
5471
+ createdAtLocation?: string | null | undefined;
5472
+ type?: "REGISTER" | undefined;
5473
+ registrationNumber?: string | undefined;
5474
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5475
+ eventId: string;
5476
+ transactionId: string;
5477
+ declaration?: Record<string, unknown> | undefined;
5478
+ annotation?: Record<string, unknown> | undefined;
5479
+ originalActionId?: string | undefined;
5480
+ keepAssignment?: boolean | undefined;
5481
+ keepAssignmentIfAccepted?: boolean | undefined;
5482
+ keepAssignmentIfRejected?: boolean | undefined;
5483
+ waitFor?: boolean | undefined;
5484
+ type?: "NOTIFY" | undefined;
5485
+ createdAtLocation?: string | null | undefined;
5486
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5487
+ eventId: string;
5488
+ transactionId: string;
5489
+ declaration?: Record<string, unknown> | undefined;
5490
+ annotation?: Record<string, unknown> | undefined;
5491
+ originalActionId?: string | undefined;
5492
+ keepAssignment?: boolean | undefined;
5493
+ keepAssignmentIfAccepted?: boolean | undefined;
5494
+ keepAssignmentIfRejected?: boolean | undefined;
5495
+ waitFor?: boolean | undefined;
5496
+ createdAtLocation?: string | null | undefined;
5497
+ type?: "DECLARE" | undefined;
5498
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5499
+ eventId: string;
5500
+ transactionId: string;
5501
+ content: {
5502
+ reason: string;
5503
+ };
5504
+ declaration?: Record<string, unknown> | undefined;
5505
+ annotation?: Record<string, unknown> | undefined;
5506
+ originalActionId?: string | undefined;
5507
+ keepAssignment?: boolean | undefined;
5508
+ keepAssignmentIfAccepted?: boolean | undefined;
5509
+ keepAssignmentIfRejected?: boolean | undefined;
5510
+ waitFor?: boolean | undefined;
5511
+ createdAtLocation?: string | null | undefined;
5512
+ type?: "REJECT" | undefined;
5513
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5514
+ eventId: string;
5515
+ transactionId: string;
5516
+ content: {
5517
+ duplicates: {
5518
+ id: string;
5519
+ trackingId: string;
5520
+ }[];
5521
+ };
5522
+ declaration?: Record<string, unknown> | undefined;
5523
+ annotation?: Record<string, unknown> | undefined;
5524
+ originalActionId?: string | undefined;
5525
+ keepAssignment?: boolean | undefined;
5526
+ keepAssignmentIfAccepted?: boolean | undefined;
5527
+ keepAssignmentIfRejected?: boolean | undefined;
5528
+ waitFor?: boolean | undefined;
5529
+ createdAtLocation?: string | null | undefined;
5530
+ type?: "DUPLICATE_DETECTED" | undefined;
5531
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5532
+ eventId: string;
5533
+ transactionId: string;
5534
+ declaration?: Record<string, unknown> | undefined;
5535
+ annotation?: Record<string, unknown> | undefined;
5536
+ originalActionId?: string | undefined;
5537
+ keepAssignment?: boolean | undefined;
5538
+ keepAssignmentIfAccepted?: boolean | undefined;
5539
+ keepAssignmentIfRejected?: boolean | undefined;
5540
+ waitFor?: boolean | undefined;
5541
+ createdAtLocation?: string | null | undefined;
5542
+ type?: "MARK_AS_DUPLICATE" | undefined;
5543
+ content?: {
5544
+ duplicateOf: string;
5545
+ } | undefined;
5546
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5547
+ eventId: string;
5548
+ transactionId: string;
5549
+ declaration?: Record<string, unknown> | undefined;
5550
+ annotation?: Record<string, unknown> | undefined;
5551
+ originalActionId?: string | undefined;
5552
+ keepAssignment?: boolean | undefined;
5553
+ keepAssignmentIfAccepted?: boolean | undefined;
5554
+ keepAssignmentIfRejected?: boolean | undefined;
5555
+ waitFor?: boolean | undefined;
5556
+ createdAtLocation?: string | null | undefined;
5557
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
5558
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5559
+ eventId: string;
5560
+ transactionId: string;
5561
+ content: {
5562
+ reason: string;
5563
+ };
5564
+ declaration?: Record<string, unknown> | undefined;
5565
+ annotation?: Record<string, unknown> | undefined;
5566
+ originalActionId?: string | undefined;
5567
+ keepAssignment?: boolean | undefined;
5568
+ keepAssignmentIfAccepted?: boolean | undefined;
5569
+ keepAssignmentIfRejected?: boolean | undefined;
5570
+ waitFor?: boolean | undefined;
5571
+ createdAtLocation?: string | null | undefined;
5572
+ type?: "ARCHIVE" | undefined;
5573
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5574
+ eventId: string;
5575
+ transactionId: string;
5576
+ type: "ASSIGN";
5577
+ assignedTo: string;
5578
+ declaration?: Record<string, unknown> | undefined;
5579
+ annotation?: Record<string, unknown> | undefined;
5580
+ originalActionId?: string | undefined;
5581
+ keepAssignment?: boolean | undefined;
5582
+ keepAssignmentIfAccepted?: boolean | undefined;
5583
+ keepAssignmentIfRejected?: boolean | undefined;
5584
+ waitFor?: boolean | undefined;
5585
+ createdAtLocation?: string | null | undefined;
5586
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5587
+ eventId: string;
5588
+ transactionId: string;
5589
+ declaration?: Record<string, unknown> | undefined;
5590
+ annotation?: Record<string, unknown> | undefined;
5591
+ originalActionId?: string | undefined;
5592
+ keepAssignment?: boolean | undefined;
5593
+ keepAssignmentIfAccepted?: boolean | undefined;
5594
+ keepAssignmentIfRejected?: boolean | undefined;
5595
+ waitFor?: boolean | undefined;
5596
+ createdAtLocation?: string | null | undefined;
5597
+ type?: "UNASSIGN" | undefined;
5598
+ assignedTo?: null | undefined;
5599
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5600
+ eventId: string;
5601
+ transactionId: string;
5602
+ declaration?: Record<string, unknown> | undefined;
5603
+ annotation?: Record<string, unknown> | undefined;
5604
+ originalActionId?: string | undefined;
5605
+ keepAssignment?: boolean | undefined;
5606
+ keepAssignmentIfAccepted?: boolean | undefined;
5607
+ keepAssignmentIfRejected?: boolean | undefined;
5608
+ waitFor?: boolean | undefined;
5609
+ createdAtLocation?: string | null | undefined;
5610
+ type?: "PRINT_CERTIFICATE" | undefined;
5611
+ content?: {
5612
+ templateId?: string | undefined;
5613
+ } | undefined;
5614
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5615
+ eventId: string;
5616
+ transactionId: string;
5617
+ declaration?: Record<string, unknown> | undefined;
5618
+ annotation?: Record<string, unknown> | undefined;
5619
+ originalActionId?: string | undefined;
5620
+ keepAssignment?: boolean | undefined;
5621
+ keepAssignmentIfAccepted?: boolean | undefined;
5622
+ keepAssignmentIfRejected?: boolean | undefined;
5623
+ waitFor?: boolean | undefined;
5624
+ createdAtLocation?: string | null | undefined;
5625
+ type?: "REQUEST_CORRECTION" | undefined;
5626
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5627
+ eventId: string;
5628
+ transactionId: string;
5629
+ requestId: string;
5630
+ content: {
5631
+ reason: string;
5632
+ };
5633
+ declaration?: Record<string, unknown> | undefined;
5634
+ annotation?: Record<string, unknown> | undefined;
5635
+ originalActionId?: string | undefined;
5636
+ keepAssignment?: boolean | undefined;
5637
+ keepAssignmentIfAccepted?: boolean | undefined;
5638
+ keepAssignmentIfRejected?: boolean | undefined;
5639
+ waitFor?: boolean | undefined;
5640
+ createdAtLocation?: string | null | undefined;
5641
+ type?: "REJECT_CORRECTION" | undefined;
5642
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5643
+ eventId: string;
5644
+ transactionId: string;
5645
+ requestId: string;
5646
+ declaration?: Record<string, unknown> | undefined;
5647
+ annotation?: Record<string, unknown> | undefined;
5648
+ originalActionId?: string | undefined;
5649
+ keepAssignment?: boolean | undefined;
5650
+ keepAssignmentIfAccepted?: boolean | undefined;
5651
+ keepAssignmentIfRejected?: boolean | undefined;
5652
+ waitFor?: boolean | undefined;
5653
+ createdAtLocation?: string | null | undefined;
5654
+ type?: "APPROVE_CORRECTION" | undefined;
5655
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5656
+ eventId: string;
5657
+ transactionId: string;
5658
+ declaration?: Record<string, unknown> | undefined;
5659
+ annotation?: Record<string, unknown> | undefined;
5660
+ originalActionId?: string | undefined;
5661
+ keepAssignment?: boolean | undefined;
5662
+ keepAssignmentIfAccepted?: boolean | undefined;
5663
+ keepAssignmentIfRejected?: boolean | undefined;
5664
+ waitFor?: boolean | undefined;
5665
+ createdAtLocation?: string | null | undefined;
5666
+ type?: "READ" | undefined;
5667
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5668
+ eventId: string;
5669
+ transactionId: string;
5670
+ customActionType: string;
5671
+ declaration?: Record<string, unknown> | undefined;
5672
+ annotation?: Record<string, unknown> | undefined;
5673
+ originalActionId?: string | undefined;
5674
+ keepAssignment?: boolean | undefined;
5675
+ keepAssignmentIfAccepted?: boolean | undefined;
5676
+ keepAssignmentIfRejected?: boolean | undefined;
5677
+ waitFor?: boolean | undefined;
5678
+ createdAtLocation?: string | null | undefined;
5679
+ type?: "CUSTOM" | undefined;
5680
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5681
+ eventId: string;
5682
+ transactionId: string;
5683
+ content: {
5684
+ comment?: string | undefined;
5685
+ };
5686
+ declaration?: Record<string, unknown> | undefined;
5687
+ annotation?: Record<string, unknown> | undefined;
5688
+ originalActionId?: string | undefined;
5689
+ keepAssignment?: boolean | undefined;
5690
+ keepAssignmentIfAccepted?: boolean | undefined;
5691
+ keepAssignmentIfRejected?: boolean | undefined;
5692
+ waitFor?: boolean | undefined;
5693
+ createdAtLocation?: string | null | undefined;
5694
+ type?: "EDIT" | undefined;
5695
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2873
5696
  actionId: string;
2874
5697
  };
2875
5698
  output: import("../commons").EventDocument;
2876
5699
  meta: import("trpc-to-openapi").OpenApiMeta;
2877
5700
  }>;
2878
5701
  reject: import("@trpc/server").TRPCMutationProcedure<{
2879
- input: {
2880
- eventId: string;
2881
- actionId: string;
2882
- transactionId: string;
2883
- };
5702
+ input: import("zod").input<import("zod").ZodObject<{
5703
+ transactionId: import("zod").ZodString;
5704
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5705
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
5706
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5707
+ }, import("zod/v4/core").$strip>>;
2884
5708
  output: import("../commons").EventDocument;
2885
5709
  meta: import("trpc-to-openapi").OpenApiMeta;
2886
5710
  }>;
@@ -2913,18 +5737,265 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2913
5737
  meta: import("trpc-to-openapi").OpenApiMeta;
2914
5738
  }>;
2915
5739
  accept: import("@trpc/server").TRPCMutationProcedure<{
2916
- input: import("../commons").ActionInput & {
5740
+ input: (Omit<{
5741
+ eventId: string;
5742
+ transactionId: string;
5743
+ declaration?: Record<string, unknown> | undefined;
5744
+ annotation?: Record<string, unknown> | undefined;
5745
+ originalActionId?: string | undefined;
5746
+ keepAssignment?: boolean | undefined;
5747
+ keepAssignmentIfAccepted?: boolean | undefined;
5748
+ keepAssignmentIfRejected?: boolean | undefined;
5749
+ waitFor?: boolean | undefined;
5750
+ type?: "CREATE" | undefined;
5751
+ createdAtLocation?: string | null | undefined;
5752
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5753
+ eventId: string;
5754
+ transactionId: string;
5755
+ declaration?: Record<string, unknown> | undefined;
5756
+ annotation?: Record<string, unknown> | undefined;
5757
+ originalActionId?: string | undefined;
5758
+ keepAssignment?: boolean | undefined;
5759
+ keepAssignmentIfAccepted?: boolean | undefined;
5760
+ keepAssignmentIfRejected?: boolean | undefined;
5761
+ waitFor?: boolean | undefined;
5762
+ createdAtLocation?: string | null | undefined;
5763
+ type?: "REGISTER" | undefined;
5764
+ registrationNumber?: string | undefined;
5765
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5766
+ eventId: string;
5767
+ transactionId: string;
5768
+ declaration?: Record<string, unknown> | undefined;
5769
+ annotation?: Record<string, unknown> | undefined;
5770
+ originalActionId?: string | undefined;
5771
+ keepAssignment?: boolean | undefined;
5772
+ keepAssignmentIfAccepted?: boolean | undefined;
5773
+ keepAssignmentIfRejected?: boolean | undefined;
5774
+ waitFor?: boolean | undefined;
5775
+ type?: "NOTIFY" | undefined;
5776
+ createdAtLocation?: string | null | undefined;
5777
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5778
+ eventId: string;
5779
+ transactionId: string;
5780
+ declaration?: Record<string, unknown> | undefined;
5781
+ annotation?: Record<string, unknown> | undefined;
5782
+ originalActionId?: string | undefined;
5783
+ keepAssignment?: boolean | undefined;
5784
+ keepAssignmentIfAccepted?: boolean | undefined;
5785
+ keepAssignmentIfRejected?: boolean | undefined;
5786
+ waitFor?: boolean | undefined;
5787
+ createdAtLocation?: string | null | undefined;
5788
+ type?: "DECLARE" | undefined;
5789
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5790
+ eventId: string;
5791
+ transactionId: string;
5792
+ content: {
5793
+ reason: string;
5794
+ };
5795
+ declaration?: Record<string, unknown> | undefined;
5796
+ annotation?: Record<string, unknown> | undefined;
5797
+ originalActionId?: string | undefined;
5798
+ keepAssignment?: boolean | undefined;
5799
+ keepAssignmentIfAccepted?: boolean | undefined;
5800
+ keepAssignmentIfRejected?: boolean | undefined;
5801
+ waitFor?: boolean | undefined;
5802
+ createdAtLocation?: string | null | undefined;
5803
+ type?: "REJECT" | undefined;
5804
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5805
+ eventId: string;
5806
+ transactionId: string;
5807
+ content: {
5808
+ duplicates: {
5809
+ id: string;
5810
+ trackingId: string;
5811
+ }[];
5812
+ };
5813
+ declaration?: Record<string, unknown> | undefined;
5814
+ annotation?: Record<string, unknown> | undefined;
5815
+ originalActionId?: string | undefined;
5816
+ keepAssignment?: boolean | undefined;
5817
+ keepAssignmentIfAccepted?: boolean | undefined;
5818
+ keepAssignmentIfRejected?: boolean | undefined;
5819
+ waitFor?: boolean | undefined;
5820
+ createdAtLocation?: string | null | undefined;
5821
+ type?: "DUPLICATE_DETECTED" | undefined;
5822
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5823
+ eventId: string;
5824
+ transactionId: string;
5825
+ declaration?: Record<string, unknown> | undefined;
5826
+ annotation?: Record<string, unknown> | undefined;
5827
+ originalActionId?: string | undefined;
5828
+ keepAssignment?: boolean | undefined;
5829
+ keepAssignmentIfAccepted?: boolean | undefined;
5830
+ keepAssignmentIfRejected?: boolean | undefined;
5831
+ waitFor?: boolean | undefined;
5832
+ createdAtLocation?: string | null | undefined;
5833
+ type?: "MARK_AS_DUPLICATE" | undefined;
5834
+ content?: {
5835
+ duplicateOf: string;
5836
+ } | undefined;
5837
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5838
+ eventId: string;
5839
+ transactionId: string;
5840
+ declaration?: Record<string, unknown> | undefined;
5841
+ annotation?: Record<string, unknown> | undefined;
5842
+ originalActionId?: string | undefined;
5843
+ keepAssignment?: boolean | undefined;
5844
+ keepAssignmentIfAccepted?: boolean | undefined;
5845
+ keepAssignmentIfRejected?: boolean | undefined;
5846
+ waitFor?: boolean | undefined;
5847
+ createdAtLocation?: string | null | undefined;
5848
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
5849
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5850
+ eventId: string;
5851
+ transactionId: string;
5852
+ content: {
5853
+ reason: string;
5854
+ };
5855
+ declaration?: Record<string, unknown> | undefined;
5856
+ annotation?: Record<string, unknown> | undefined;
5857
+ originalActionId?: string | undefined;
5858
+ keepAssignment?: boolean | undefined;
5859
+ keepAssignmentIfAccepted?: boolean | undefined;
5860
+ keepAssignmentIfRejected?: boolean | undefined;
5861
+ waitFor?: boolean | undefined;
5862
+ createdAtLocation?: string | null | undefined;
5863
+ type?: "ARCHIVE" | undefined;
5864
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5865
+ eventId: string;
5866
+ transactionId: string;
5867
+ type: "ASSIGN";
5868
+ assignedTo: string;
5869
+ declaration?: Record<string, unknown> | undefined;
5870
+ annotation?: Record<string, unknown> | undefined;
5871
+ originalActionId?: string | undefined;
5872
+ keepAssignment?: boolean | undefined;
5873
+ keepAssignmentIfAccepted?: boolean | undefined;
5874
+ keepAssignmentIfRejected?: boolean | undefined;
5875
+ waitFor?: boolean | undefined;
5876
+ createdAtLocation?: string | null | undefined;
5877
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5878
+ eventId: string;
5879
+ transactionId: string;
5880
+ declaration?: Record<string, unknown> | undefined;
5881
+ annotation?: Record<string, unknown> | undefined;
5882
+ originalActionId?: string | undefined;
5883
+ keepAssignment?: boolean | undefined;
5884
+ keepAssignmentIfAccepted?: boolean | undefined;
5885
+ keepAssignmentIfRejected?: boolean | undefined;
5886
+ waitFor?: boolean | undefined;
5887
+ createdAtLocation?: string | null | undefined;
5888
+ type?: "UNASSIGN" | undefined;
5889
+ assignedTo?: null | undefined;
5890
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5891
+ eventId: string;
5892
+ transactionId: string;
5893
+ declaration?: Record<string, unknown> | undefined;
5894
+ annotation?: Record<string, unknown> | undefined;
5895
+ originalActionId?: string | undefined;
5896
+ keepAssignment?: boolean | undefined;
5897
+ keepAssignmentIfAccepted?: boolean | undefined;
5898
+ keepAssignmentIfRejected?: boolean | undefined;
5899
+ waitFor?: boolean | undefined;
5900
+ createdAtLocation?: string | null | undefined;
5901
+ type?: "PRINT_CERTIFICATE" | undefined;
5902
+ content?: {
5903
+ templateId?: string | undefined;
5904
+ } | undefined;
5905
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5906
+ eventId: string;
5907
+ transactionId: string;
5908
+ declaration?: Record<string, unknown> | undefined;
5909
+ annotation?: Record<string, unknown> | undefined;
5910
+ originalActionId?: string | undefined;
5911
+ keepAssignment?: boolean | undefined;
5912
+ keepAssignmentIfAccepted?: boolean | undefined;
5913
+ keepAssignmentIfRejected?: boolean | undefined;
5914
+ waitFor?: boolean | undefined;
5915
+ createdAtLocation?: string | null | undefined;
5916
+ type?: "REQUEST_CORRECTION" | undefined;
5917
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5918
+ eventId: string;
5919
+ transactionId: string;
5920
+ requestId: string;
5921
+ content: {
5922
+ reason: string;
5923
+ };
5924
+ declaration?: Record<string, unknown> | undefined;
5925
+ annotation?: Record<string, unknown> | undefined;
5926
+ originalActionId?: string | undefined;
5927
+ keepAssignment?: boolean | undefined;
5928
+ keepAssignmentIfAccepted?: boolean | undefined;
5929
+ keepAssignmentIfRejected?: boolean | undefined;
5930
+ waitFor?: boolean | undefined;
5931
+ createdAtLocation?: string | null | undefined;
5932
+ type?: "REJECT_CORRECTION" | undefined;
5933
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5934
+ eventId: string;
5935
+ transactionId: string;
5936
+ requestId: string;
5937
+ declaration?: Record<string, unknown> | undefined;
5938
+ annotation?: Record<string, unknown> | undefined;
5939
+ originalActionId?: string | undefined;
5940
+ keepAssignment?: boolean | undefined;
5941
+ keepAssignmentIfAccepted?: boolean | undefined;
5942
+ keepAssignmentIfRejected?: boolean | undefined;
5943
+ waitFor?: boolean | undefined;
5944
+ createdAtLocation?: string | null | undefined;
5945
+ type?: "APPROVE_CORRECTION" | undefined;
5946
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5947
+ eventId: string;
5948
+ transactionId: string;
5949
+ declaration?: Record<string, unknown> | undefined;
5950
+ annotation?: Record<string, unknown> | undefined;
5951
+ originalActionId?: string | undefined;
5952
+ keepAssignment?: boolean | undefined;
5953
+ keepAssignmentIfAccepted?: boolean | undefined;
5954
+ keepAssignmentIfRejected?: boolean | undefined;
5955
+ waitFor?: boolean | undefined;
5956
+ createdAtLocation?: string | null | undefined;
5957
+ type?: "READ" | undefined;
5958
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5959
+ eventId: string;
5960
+ transactionId: string;
5961
+ customActionType: string;
5962
+ declaration?: Record<string, unknown> | undefined;
5963
+ annotation?: Record<string, unknown> | undefined;
5964
+ originalActionId?: string | undefined;
5965
+ keepAssignment?: boolean | undefined;
5966
+ keepAssignmentIfAccepted?: boolean | undefined;
5967
+ keepAssignmentIfRejected?: boolean | undefined;
5968
+ waitFor?: boolean | undefined;
5969
+ createdAtLocation?: string | null | undefined;
5970
+ type?: "CUSTOM" | undefined;
5971
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5972
+ eventId: string;
5973
+ transactionId: string;
5974
+ content: {
5975
+ comment?: string | undefined;
5976
+ };
5977
+ declaration?: Record<string, unknown> | undefined;
5978
+ annotation?: Record<string, unknown> | undefined;
5979
+ originalActionId?: string | undefined;
5980
+ keepAssignment?: boolean | undefined;
5981
+ keepAssignmentIfAccepted?: boolean | undefined;
5982
+ keepAssignmentIfRejected?: boolean | undefined;
5983
+ waitFor?: boolean | undefined;
5984
+ createdAtLocation?: string | null | undefined;
5985
+ type?: "EDIT" | undefined;
5986
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2917
5987
  actionId: string;
2918
5988
  };
2919
5989
  output: import("../commons").EventDocument;
2920
5990
  meta: import("trpc-to-openapi").OpenApiMeta;
2921
5991
  }>;
2922
5992
  reject: import("@trpc/server").TRPCMutationProcedure<{
2923
- input: {
2924
- eventId: string;
2925
- actionId: string;
2926
- transactionId: string;
2927
- };
5993
+ input: import("zod").input<import("zod").ZodObject<{
5994
+ transactionId: import("zod").ZodString;
5995
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5996
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
5997
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5998
+ }, import("zod/v4/core").$strip>>;
2928
5999
  output: import("../commons").EventDocument;
2929
6000
  meta: import("trpc-to-openapi").OpenApiMeta;
2930
6001
  }>;
@@ -2960,6 +6031,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2960
6031
  annotation?: Record<string, unknown> | undefined;
2961
6032
  originalActionId?: string | undefined;
2962
6033
  keepAssignment?: boolean | undefined;
6034
+ keepAssignmentIfAccepted?: boolean | undefined;
6035
+ keepAssignmentIfRejected?: boolean | undefined;
6036
+ waitFor?: boolean | undefined;
2963
6037
  createdAtLocation?: string | null | undefined;
2964
6038
  type?: "MARK_AS_DUPLICATE" | undefined;
2965
6039
  content?: {
@@ -3277,6 +6351,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3277
6351
  annotation?: Record<string, unknown> | undefined;
3278
6352
  originalActionId?: string | undefined;
3279
6353
  keepAssignment?: boolean | undefined;
6354
+ keepAssignmentIfAccepted?: boolean | undefined;
6355
+ keepAssignmentIfRejected?: boolean | undefined;
6356
+ waitFor?: boolean | undefined;
3280
6357
  createdAtLocation?: string | null | undefined;
3281
6358
  type?: "MARK_AS_NOT_DUPLICATE" | undefined;
3282
6359
  };
@@ -3605,7 +6682,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3605
6682
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
3606
6683
  createdByUserType?: "system" | "user" | null | undefined;
3607
6684
  createdByRole?: string | undefined;
3608
- createdBySignature?: string | null | undefined;
3609
6685
  } | null | undefined;
3610
6686
  REGISTERED?: {
3611
6687
  createdAt: string;
@@ -3615,7 +6691,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3615
6691
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
3616
6692
  createdByUserType?: "system" | "user" | null | undefined;
3617
6693
  createdByRole?: string | undefined;
3618
- createdBySignature?: string | null | undefined;
3619
6694
  } | null | undefined;
3620
6695
  };
3621
6696
  createdAt: string;
@@ -3633,7 +6708,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3633
6708
  createdByUserType?: "system" | "user" | null | undefined;
3634
6709
  updatedByUserRole?: string | null | undefined;
3635
6710
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
3636
- createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3637
6711
  updatedAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
3638
6712
  assignedTo?: string | null | undefined;
3639
6713
  updatedBy?: string | null | undefined;
@@ -4092,33 +7166,22 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4092
7166
  input: string[];
4093
7167
  output: ({
4094
7168
  id: string & import("zod").$brand<"UUID">;
7169
+ type: "user";
4095
7170
  name: {
4096
7171
  firstname: string;
4097
7172
  surname: string;
4098
7173
  };
4099
7174
  role: string;
4100
7175
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4101
- type: "user";
4102
- status: "active" | "pending" | "deactivated";
7176
+ fullHonorificName?: string | undefined;
4103
7177
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4104
- signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4105
7178
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4106
- device?: string | undefined;
4107
- fullHonorificName?: string | undefined;
4108
- mobile?: string | undefined;
4109
- email?: string | undefined;
4110
- data?: Record<string, import("../commons").FieldValue> | undefined;
4111
7179
  } | {
4112
7180
  id: string & import("zod").$brand<"UUID">;
4113
- name: string;
4114
7181
  type: "system";
7182
+ name: string;
4115
7183
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4116
7184
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4117
- signature?: undefined;
4118
- avatar?: undefined;
4119
- fullHonorificName?: string | undefined;
4120
- legacyId?: string | undefined;
4121
- status?: undefined;
4122
7185
  })[];
4123
7186
  meta: import("trpc-to-openapi").OpenApiMeta;
4124
7187
  }>;
@@ -4136,33 +7199,24 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4136
7199
  };
4137
7200
  output: ({
4138
7201
  id: string & import("zod").$brand<"UUID">;
7202
+ type: "user";
4139
7203
  name: {
4140
7204
  firstname: string;
4141
7205
  surname: string;
4142
7206
  };
4143
7207
  role: string;
4144
7208
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4145
- type: "user";
4146
7209
  status: "active" | "pending" | "deactivated";
7210
+ fullHonorificName?: string | undefined;
4147
7211
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4148
- signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4149
7212
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4150
- device?: string | undefined;
4151
- fullHonorificName?: string | undefined;
4152
- mobile?: string | undefined;
4153
- email?: string | undefined;
4154
- data?: Record<string, import("../commons").FieldValue> | undefined;
4155
7213
  } | {
4156
7214
  id: string & import("zod").$brand<"UUID">;
4157
- name: string;
4158
7215
  type: "system";
7216
+ name: string;
4159
7217
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4160
7218
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4161
- signature?: undefined;
4162
- avatar?: undefined;
4163
- fullHonorificName?: string | undefined;
4164
- legacyId?: string | undefined;
4165
- status?: undefined;
7219
+ status?: "active" | "pending" | "deactivated" | undefined;
4166
7220
  })[];
4167
7221
  meta: object;
4168
7222
  }>;