@opencrvs/toolkit 2.0.0-rc.c0924af → 2.0.0-rc.c0c2dcd

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 (29) hide show
  1. package/dist/application-config/index.js +208 -66
  2. package/dist/cli.js +206 -36
  3. package/dist/commons/api/router.d.ts +3334 -221
  4. package/dist/commons/conditionals/validate.d.ts +1 -0
  5. package/dist/commons/events/ActionDocument.d.ts +6 -0
  6. package/dist/commons/events/ActionInput.d.ts +78 -0
  7. package/dist/commons/events/Draft.d.ts +2 -0
  8. package/dist/commons/events/EventDocument.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 +150 -150
  12. package/dist/commons/events/state/index.d.ts +0 -4
  13. package/dist/commons/events/state/utils.d.ts +3 -2
  14. package/dist/commons/events/utils.d.ts +12 -1
  15. package/dist/conditionals/index.js +3 -1
  16. package/dist/events/index.js +291 -127
  17. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.d.ts +3 -0
  18. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.d.ts.map +1 -0
  19. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.js +110 -0
  20. package/dist/migrations/v2.0/index.d.ts.map +1 -1
  21. package/dist/migrations/v2.0/index.js +204 -34
  22. package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -1
  23. package/dist/migrations/v2.0/migrate-scopes.js +54 -30
  24. package/dist/notification/index.js +264 -97
  25. package/dist/scopes/index.js +3 -1
  26. package/opencrvs-toolkit-2.0.0-rc.c0c2dcd.tgz +0 -0
  27. package/package.json +1 -1
  28. package/tsconfig.tsbuildinfo +1 -1
  29. package/opencrvs-toolkit-2.0.0-rc.c0924af.tgz +0 -0
@@ -313,6 +313,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
313
313
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
314
314
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
315
315
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
316
+ content?: {
317
+ immediateCorrection?: boolean | undefined;
318
+ } | undefined;
316
319
  } | {
317
320
  id: string & import("zod").$brand<"UUID">;
318
321
  transactionId: string;
@@ -621,6 +624,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
621
624
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
622
625
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
623
626
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
627
+ content?: {
628
+ immediateCorrection?: boolean | undefined;
629
+ } | undefined;
624
630
  } | {
625
631
  id: string & import("zod").$brand<"UUID">;
626
632
  transactionId: string;
@@ -929,6 +935,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
929
935
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
930
936
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
931
937
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
938
+ content?: {
939
+ immediateCorrection?: boolean | undefined;
940
+ } | undefined;
932
941
  } | {
933
942
  id: string & import("zod").$brand<"UUID">;
934
943
  transactionId: string;
@@ -1105,6 +1114,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1105
1114
  annotation?: Record<string, unknown> | undefined;
1106
1115
  originalActionId?: string | undefined;
1107
1116
  keepAssignment?: boolean | undefined;
1117
+ keepAssignmentIfAccepted?: boolean | undefined;
1118
+ keepAssignmentIfRejected?: boolean | undefined;
1108
1119
  waitFor?: boolean | undefined;
1109
1120
  createdAtLocation?: string | null | undefined;
1110
1121
  };
@@ -1180,23 +1191,273 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1180
1191
  meta: import("trpc-to-openapi").OpenApiMeta;
1181
1192
  }>;
1182
1193
  accept: import("@trpc/server").TRPCMutationProcedure<{
1183
- input: import("../commons").ActionInput & {
1194
+ input: (Omit<{
1195
+ eventId: string;
1196
+ transactionId: string;
1197
+ declaration?: Record<string, unknown> | undefined;
1198
+ annotation?: Record<string, unknown> | undefined;
1199
+ originalActionId?: string | undefined;
1200
+ keepAssignment?: boolean | undefined;
1201
+ keepAssignmentIfAccepted?: boolean | undefined;
1202
+ keepAssignmentIfRejected?: boolean | undefined;
1203
+ waitFor?: boolean | undefined;
1204
+ type?: "CREATE" | undefined;
1205
+ createdAtLocation?: string | null | undefined;
1206
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1207
+ eventId: string;
1208
+ transactionId: string;
1209
+ declaration?: Record<string, unknown> | undefined;
1210
+ annotation?: Record<string, unknown> | undefined;
1211
+ originalActionId?: string | undefined;
1212
+ keepAssignment?: boolean | undefined;
1213
+ keepAssignmentIfAccepted?: boolean | undefined;
1214
+ keepAssignmentIfRejected?: boolean | undefined;
1215
+ waitFor?: boolean | undefined;
1216
+ createdAtLocation?: string | null | undefined;
1217
+ type?: "REGISTER" | undefined;
1218
+ registrationNumber?: string | undefined;
1219
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1220
+ eventId: string;
1221
+ transactionId: string;
1222
+ declaration?: Record<string, unknown> | undefined;
1223
+ annotation?: Record<string, unknown> | undefined;
1224
+ originalActionId?: string | undefined;
1225
+ keepAssignment?: boolean | undefined;
1226
+ keepAssignmentIfAccepted?: boolean | undefined;
1227
+ keepAssignmentIfRejected?: boolean | undefined;
1228
+ waitFor?: boolean | undefined;
1229
+ type?: "NOTIFY" | undefined;
1230
+ createdAtLocation?: string | null | undefined;
1231
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1232
+ eventId: string;
1233
+ transactionId: string;
1234
+ declaration?: Record<string, unknown> | undefined;
1235
+ annotation?: Record<string, unknown> | undefined;
1236
+ originalActionId?: string | undefined;
1237
+ keepAssignment?: boolean | undefined;
1238
+ keepAssignmentIfAccepted?: boolean | undefined;
1239
+ keepAssignmentIfRejected?: boolean | undefined;
1240
+ waitFor?: boolean | undefined;
1241
+ createdAtLocation?: string | null | undefined;
1242
+ type?: "DECLARE" | undefined;
1243
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1244
+ eventId: string;
1245
+ transactionId: string;
1246
+ content: {
1247
+ reason: string;
1248
+ };
1249
+ declaration?: Record<string, unknown> | undefined;
1250
+ annotation?: Record<string, unknown> | undefined;
1251
+ originalActionId?: string | undefined;
1252
+ keepAssignment?: boolean | undefined;
1253
+ keepAssignmentIfAccepted?: boolean | undefined;
1254
+ keepAssignmentIfRejected?: boolean | undefined;
1255
+ waitFor?: boolean | undefined;
1256
+ createdAtLocation?: string | null | undefined;
1257
+ type?: "REJECT" | undefined;
1258
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1259
+ eventId: string;
1260
+ transactionId: string;
1261
+ content: {
1262
+ duplicates: {
1263
+ id: string;
1264
+ trackingId: string;
1265
+ }[];
1266
+ };
1267
+ declaration?: Record<string, unknown> | undefined;
1268
+ annotation?: Record<string, unknown> | undefined;
1269
+ originalActionId?: string | undefined;
1270
+ keepAssignment?: boolean | undefined;
1271
+ keepAssignmentIfAccepted?: boolean | undefined;
1272
+ keepAssignmentIfRejected?: boolean | undefined;
1273
+ waitFor?: boolean | undefined;
1274
+ createdAtLocation?: string | null | undefined;
1275
+ type?: "DUPLICATE_DETECTED" | undefined;
1276
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1277
+ eventId: string;
1278
+ transactionId: string;
1279
+ declaration?: Record<string, unknown> | undefined;
1280
+ annotation?: Record<string, unknown> | undefined;
1281
+ originalActionId?: string | undefined;
1282
+ keepAssignment?: boolean | undefined;
1283
+ keepAssignmentIfAccepted?: boolean | undefined;
1284
+ keepAssignmentIfRejected?: boolean | undefined;
1285
+ waitFor?: boolean | undefined;
1286
+ createdAtLocation?: string | null | undefined;
1287
+ type?: "MARK_AS_DUPLICATE" | undefined;
1288
+ content?: {
1289
+ duplicateOf: string;
1290
+ } | undefined;
1291
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1292
+ eventId: string;
1293
+ transactionId: string;
1294
+ declaration?: Record<string, unknown> | undefined;
1295
+ annotation?: Record<string, unknown> | undefined;
1296
+ originalActionId?: string | undefined;
1297
+ keepAssignment?: boolean | undefined;
1298
+ keepAssignmentIfAccepted?: boolean | undefined;
1299
+ keepAssignmentIfRejected?: boolean | undefined;
1300
+ waitFor?: boolean | undefined;
1301
+ createdAtLocation?: string | null | undefined;
1302
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
1303
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1304
+ eventId: string;
1305
+ transactionId: string;
1306
+ content: {
1307
+ reason: string;
1308
+ };
1309
+ declaration?: Record<string, unknown> | undefined;
1310
+ annotation?: Record<string, unknown> | undefined;
1311
+ originalActionId?: string | undefined;
1312
+ keepAssignment?: boolean | undefined;
1313
+ keepAssignmentIfAccepted?: boolean | undefined;
1314
+ keepAssignmentIfRejected?: boolean | undefined;
1315
+ waitFor?: boolean | undefined;
1316
+ createdAtLocation?: string | null | undefined;
1317
+ type?: "ARCHIVE" | undefined;
1318
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1319
+ eventId: string;
1320
+ transactionId: string;
1321
+ type: "ASSIGN";
1322
+ assignedTo: string;
1323
+ declaration?: Record<string, unknown> | undefined;
1324
+ annotation?: Record<string, unknown> | undefined;
1325
+ originalActionId?: string | undefined;
1326
+ keepAssignment?: boolean | undefined;
1327
+ keepAssignmentIfAccepted?: boolean | undefined;
1328
+ keepAssignmentIfRejected?: boolean | undefined;
1329
+ waitFor?: boolean | undefined;
1330
+ createdAtLocation?: string | null | undefined;
1331
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1332
+ eventId: string;
1333
+ transactionId: string;
1334
+ declaration?: Record<string, unknown> | undefined;
1335
+ annotation?: Record<string, unknown> | undefined;
1336
+ originalActionId?: string | undefined;
1337
+ keepAssignment?: boolean | undefined;
1338
+ keepAssignmentIfAccepted?: boolean | undefined;
1339
+ keepAssignmentIfRejected?: boolean | undefined;
1340
+ waitFor?: boolean | undefined;
1341
+ createdAtLocation?: string | null | undefined;
1342
+ type?: "UNASSIGN" | undefined;
1343
+ assignedTo?: null | undefined;
1344
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1345
+ eventId: string;
1346
+ transactionId: string;
1347
+ declaration?: Record<string, unknown> | undefined;
1348
+ annotation?: Record<string, unknown> | undefined;
1349
+ originalActionId?: string | undefined;
1350
+ keepAssignment?: boolean | undefined;
1351
+ keepAssignmentIfAccepted?: boolean | undefined;
1352
+ keepAssignmentIfRejected?: boolean | undefined;
1353
+ waitFor?: boolean | undefined;
1354
+ createdAtLocation?: string | null | undefined;
1355
+ type?: "PRINT_CERTIFICATE" | undefined;
1356
+ content?: {
1357
+ templateId?: string | undefined;
1358
+ } | undefined;
1359
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1360
+ eventId: string;
1361
+ transactionId: string;
1362
+ declaration?: Record<string, unknown> | undefined;
1363
+ annotation?: Record<string, unknown> | undefined;
1364
+ originalActionId?: string | undefined;
1365
+ keepAssignment?: boolean | undefined;
1366
+ keepAssignmentIfAccepted?: boolean | undefined;
1367
+ keepAssignmentIfRejected?: boolean | undefined;
1368
+ waitFor?: boolean | undefined;
1369
+ createdAtLocation?: string | null | undefined;
1370
+ type?: "REQUEST_CORRECTION" | undefined;
1371
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1372
+ eventId: string;
1373
+ transactionId: string;
1374
+ requestId: string;
1375
+ content: {
1376
+ reason: string;
1377
+ };
1378
+ declaration?: Record<string, unknown> | undefined;
1379
+ annotation?: Record<string, unknown> | undefined;
1380
+ originalActionId?: string | undefined;
1381
+ keepAssignment?: boolean | undefined;
1382
+ keepAssignmentIfAccepted?: boolean | undefined;
1383
+ keepAssignmentIfRejected?: boolean | undefined;
1384
+ waitFor?: boolean | undefined;
1385
+ createdAtLocation?: string | null | undefined;
1386
+ type?: "REJECT_CORRECTION" | undefined;
1387
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1388
+ eventId: string;
1389
+ transactionId: string;
1390
+ requestId: string;
1391
+ declaration?: Record<string, unknown> | undefined;
1392
+ annotation?: Record<string, unknown> | undefined;
1393
+ originalActionId?: string | undefined;
1394
+ keepAssignment?: boolean | undefined;
1395
+ keepAssignmentIfAccepted?: boolean | undefined;
1396
+ keepAssignmentIfRejected?: boolean | undefined;
1397
+ waitFor?: boolean | undefined;
1398
+ createdAtLocation?: string | null | undefined;
1399
+ type?: "APPROVE_CORRECTION" | undefined;
1400
+ content?: {
1401
+ immediateCorrection?: boolean | undefined;
1402
+ } | undefined;
1403
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1404
+ eventId: string;
1405
+ transactionId: string;
1406
+ declaration?: Record<string, unknown> | undefined;
1407
+ annotation?: Record<string, unknown> | undefined;
1408
+ originalActionId?: string | undefined;
1409
+ keepAssignment?: boolean | undefined;
1410
+ keepAssignmentIfAccepted?: boolean | undefined;
1411
+ keepAssignmentIfRejected?: boolean | undefined;
1412
+ waitFor?: boolean | undefined;
1413
+ createdAtLocation?: string | null | undefined;
1414
+ type?: "READ" | undefined;
1415
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1416
+ eventId: string;
1417
+ transactionId: string;
1418
+ customActionType: string;
1419
+ declaration?: Record<string, unknown> | undefined;
1420
+ annotation?: Record<string, unknown> | undefined;
1421
+ originalActionId?: string | undefined;
1422
+ keepAssignment?: boolean | undefined;
1423
+ keepAssignmentIfAccepted?: boolean | undefined;
1424
+ keepAssignmentIfRejected?: boolean | undefined;
1425
+ waitFor?: boolean | undefined;
1426
+ createdAtLocation?: string | null | undefined;
1427
+ type?: "CUSTOM" | undefined;
1428
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1429
+ eventId: string;
1430
+ transactionId: string;
1431
+ content: {
1432
+ comment?: string | undefined;
1433
+ };
1434
+ declaration?: Record<string, unknown> | undefined;
1435
+ annotation?: Record<string, unknown> | undefined;
1436
+ originalActionId?: string | undefined;
1437
+ keepAssignment?: boolean | undefined;
1438
+ keepAssignmentIfAccepted?: boolean | undefined;
1439
+ keepAssignmentIfRejected?: boolean | undefined;
1440
+ waitFor?: boolean | undefined;
1441
+ createdAtLocation?: string | null | undefined;
1442
+ type?: "EDIT" | undefined;
1443
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
1184
1444
  actionId: string;
1185
1445
  };
1186
1446
  output: import("../commons").EventDocument;
1187
1447
  meta: import("trpc-to-openapi").OpenApiMeta;
1188
1448
  }>;
1189
1449
  reject: import("@trpc/server").TRPCMutationProcedure<{
1190
- input: {
1191
- eventId: string;
1192
- actionId: string;
1193
- transactionId: string;
1194
- };
1450
+ input: import("zod").input<import("zod").ZodObject<{
1451
+ transactionId: import("zod").ZodString;
1452
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
1453
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
1454
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
1455
+ }, import("zod/v4/core").$strip>>;
1195
1456
  output: import("../commons").EventDocument;
1196
1457
  meta: import("trpc-to-openapi").OpenApiMeta;
1197
1458
  }>;
1198
1459
  }>>;
1199
- declare: import("@trpc/server").TRPCBuiltRouter<{
1460
+ createAndNotify: import("@trpc/server").TRPCBuiltRouter<{
1200
1461
  ctx: Partial<{
1201
1462
  token: `Bearer ${string}`;
1202
1463
  user: {
@@ -1220,15 +1481,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1220
1481
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1221
1482
  request: import("@trpc/server").TRPCMutationProcedure<{
1222
1483
  input: {
1223
- eventId: string;
1224
1484
  transactionId: string;
1485
+ eventType: string;
1486
+ createdAtLocation: string;
1225
1487
  declaration?: Record<string, unknown> | undefined;
1226
1488
  annotation?: Record<string, unknown> | undefined;
1227
1489
  originalActionId?: string | undefined;
1228
1490
  keepAssignment?: boolean | undefined;
1491
+ keepAssignmentIfAccepted?: boolean | undefined;
1492
+ keepAssignmentIfRejected?: boolean | undefined;
1229
1493
  waitFor?: boolean | undefined;
1230
- createdAtLocation?: string | null | undefined;
1231
- type?: "DECLARE" | undefined;
1232
1494
  };
1233
1495
  output: {
1234
1496
  id: string & import("zod").$brand<"UUID">;
@@ -1421,6 +1683,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1421
1683
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1422
1684
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1423
1685
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1686
+ content?: {
1687
+ immediateCorrection?: boolean | undefined;
1688
+ } | undefined;
1424
1689
  } | {
1425
1690
  id: string & import("zod").$brand<"UUID">;
1426
1691
  transactionId: string;
@@ -1533,24 +1798,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1533
1798
  };
1534
1799
  meta: import("trpc-to-openapi").OpenApiMeta;
1535
1800
  }>;
1536
- accept: import("@trpc/server").TRPCMutationProcedure<{
1537
- input: import("../commons").ActionInput & {
1538
- actionId: string;
1539
- };
1540
- output: import("../commons").EventDocument;
1541
- meta: import("trpc-to-openapi").OpenApiMeta;
1542
- }>;
1543
- reject: import("@trpc/server").TRPCMutationProcedure<{
1544
- input: {
1545
- eventId: string;
1546
- actionId: string;
1547
- transactionId: string;
1548
- };
1549
- output: import("../commons").EventDocument;
1550
- meta: import("trpc-to-openapi").OpenApiMeta;
1551
- }>;
1552
1801
  }>>;
1553
- edit: import("@trpc/server").TRPCBuiltRouter<{
1802
+ declare: import("@trpc/server").TRPCBuiltRouter<{
1554
1803
  ctx: Partial<{
1555
1804
  token: `Bearer ${string}`;
1556
1805
  user: {
@@ -1573,116 +1822,1769 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1573
1822
  transformer: true;
1574
1823
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1575
1824
  request: import("@trpc/server").TRPCMutationProcedure<{
1576
- input: import("../commons").ActionInput;
1577
- output: import("../commons").EventDocument;
1578
- meta: import("trpc-to-openapi").OpenApiMeta;
1579
- }>;
1580
- accept: import("@trpc/server").TRPCMutationProcedure<{
1581
- input: import("../commons").ActionInput & {
1582
- actionId: string;
1583
- };
1584
- output: import("../commons").EventDocument;
1585
- meta: import("trpc-to-openapi").OpenApiMeta;
1586
- }>;
1587
- reject: import("@trpc/server").TRPCMutationProcedure<{
1588
1825
  input: {
1589
1826
  eventId: string;
1590
- actionId: string;
1591
1827
  transactionId: string;
1828
+ declaration?: Record<string, unknown> | undefined;
1829
+ annotation?: Record<string, unknown> | undefined;
1830
+ originalActionId?: string | undefined;
1831
+ keepAssignment?: boolean | undefined;
1832
+ keepAssignmentIfAccepted?: boolean | undefined;
1833
+ keepAssignmentIfRejected?: boolean | undefined;
1834
+ waitFor?: boolean | undefined;
1835
+ createdAtLocation?: string | null | undefined;
1836
+ type?: "DECLARE" | undefined;
1592
1837
  };
1593
- output: import("../commons").EventDocument;
1594
- meta: import("trpc-to-openapi").OpenApiMeta;
1595
- }>;
1596
- }>>;
1597
- reject: import("@trpc/server").TRPCBuiltRouter<{
1598
- ctx: Partial<{
1599
- token: `Bearer ${string}`;
1600
- user: {
1601
- id: string & import("zod").$brand<"UUID">;
1602
- type: "system";
1603
- signature?: undefined;
1604
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1605
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1606
- } | {
1838
+ output: {
1607
1839
  id: string & import("zod").$brand<"UUID">;
1608
- type: "user";
1609
- role: string;
1610
- primaryOfficeId: string & import("zod").$brand<"UUID">;
1611
- signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1612
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1613
- };
1614
- }>;
1615
- meta: import("trpc-to-openapi").OpenApiMeta;
1616
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1617
- transformer: true;
1618
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1619
- request: import("@trpc/server").TRPCMutationProcedure<{
1620
- input: import("../commons").ActionInput;
1621
- output: import("../commons").EventDocument;
1622
- meta: import("trpc-to-openapi").OpenApiMeta;
1623
- }>;
1624
- accept: import("@trpc/server").TRPCMutationProcedure<{
1625
- input: import("../commons").ActionInput & {
1626
- actionId: string;
1627
- };
1840
+ type: string;
1841
+ createdAt: string;
1842
+ updatedAt: string;
1843
+ actions: ({
1844
+ id: string & import("zod").$brand<"UUID">;
1845
+ transactionId: string;
1846
+ createdByUserType: "system" | "user";
1847
+ createdAt: string;
1848
+ createdBy: string;
1849
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1850
+ status: "Requested" | "Accepted" | "Rejected";
1851
+ type: "CREATE";
1852
+ createdByRole?: string | undefined;
1853
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1854
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1855
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1856
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1857
+ } | {
1858
+ id: string & import("zod").$brand<"UUID">;
1859
+ transactionId: string;
1860
+ createdByUserType: "system" | "user";
1861
+ createdAt: string;
1862
+ createdBy: string;
1863
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1864
+ status: "Requested" | "Accepted" | "Rejected";
1865
+ type: "REJECT";
1866
+ content: {
1867
+ reason: string;
1868
+ };
1869
+ createdByRole?: string | undefined;
1870
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1871
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1872
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1873
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1874
+ } | {
1875
+ id: string & import("zod").$brand<"UUID">;
1876
+ transactionId: string;
1877
+ createdByUserType: "system" | "user";
1878
+ createdAt: string;
1879
+ createdBy: string;
1880
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1881
+ status: "Requested" | "Accepted" | "Rejected";
1882
+ type: "DUPLICATE_DETECTED";
1883
+ content: {
1884
+ duplicates: {
1885
+ id: string & import("zod").$brand<"UUID">;
1886
+ trackingId: string;
1887
+ }[];
1888
+ };
1889
+ createdByRole?: string | undefined;
1890
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1891
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1892
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1893
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1894
+ } | {
1895
+ id: string & import("zod").$brand<"UUID">;
1896
+ transactionId: string;
1897
+ createdByUserType: "system" | "user";
1898
+ createdAt: string;
1899
+ createdBy: string;
1900
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1901
+ status: "Requested" | "Accepted" | "Rejected";
1902
+ type: "MARK_AS_NOT_DUPLICATE";
1903
+ createdByRole?: string | undefined;
1904
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1905
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1906
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1907
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1908
+ } | {
1909
+ id: string & import("zod").$brand<"UUID">;
1910
+ transactionId: string;
1911
+ createdByUserType: "system" | "user";
1912
+ createdAt: string;
1913
+ createdBy: string;
1914
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1915
+ status: "Requested" | "Accepted" | "Rejected";
1916
+ type: "MARK_AS_DUPLICATE";
1917
+ createdByRole?: string | undefined;
1918
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1919
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1920
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1921
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1922
+ content?: {
1923
+ duplicateOf: string & import("zod").$brand<"UUID">;
1924
+ } | undefined;
1925
+ } | {
1926
+ id: string & import("zod").$brand<"UUID">;
1927
+ transactionId: string;
1928
+ createdByUserType: "system" | "user";
1929
+ createdAt: string;
1930
+ createdBy: string;
1931
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1932
+ status: "Requested" | "Accepted" | "Rejected";
1933
+ type: "ARCHIVE";
1934
+ content: {
1935
+ reason: string;
1936
+ };
1937
+ createdByRole?: string | undefined;
1938
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1939
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1940
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1941
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1942
+ } | {
1943
+ id: string & import("zod").$brand<"UUID">;
1944
+ transactionId: string;
1945
+ createdByUserType: "system" | "user";
1946
+ createdAt: string;
1947
+ createdBy: string;
1948
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1949
+ status: "Requested" | "Accepted" | "Rejected";
1950
+ type: "NOTIFY";
1951
+ createdByRole?: string | undefined;
1952
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1953
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1954
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1955
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | 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: "REGISTER";
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
+ registrationNumber?: string | undefined;
1971
+ } | {
1972
+ id: string & import("zod").$brand<"UUID">;
1973
+ transactionId: string;
1974
+ createdByUserType: "system" | "user";
1975
+ createdAt: string;
1976
+ createdBy: string;
1977
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1978
+ status: "Requested" | "Accepted" | "Rejected";
1979
+ type: "DECLARE";
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: "ASSIGN";
1994
+ assignedTo: string;
1995
+ createdByRole?: string | undefined;
1996
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1997
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1998
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1999
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2000
+ } | {
2001
+ id: string & import("zod").$brand<"UUID">;
2002
+ transactionId: string;
2003
+ createdByUserType: "system" | "user";
2004
+ createdAt: string;
2005
+ createdBy: string;
2006
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
2007
+ status: "Requested" | "Accepted" | "Rejected";
2008
+ type: "REQUEST_CORRECTION";
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: "APPROVE_CORRECTION";
2023
+ requestId: string;
2024
+ createdByRole?: string | undefined;
2025
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2026
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2027
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
2028
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2029
+ content?: {
2030
+ immediateCorrection?: boolean | undefined;
2031
+ } | 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: "REJECT_CORRECTION";
2041
+ requestId: string;
2042
+ content: {
2043
+ reason: string;
2044
+ };
2045
+ createdByRole?: string | undefined;
2046
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2047
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2048
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
2049
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2050
+ } | {
2051
+ id: string & import("zod").$brand<"UUID">;
2052
+ transactionId: string;
2053
+ createdByUserType: "system" | "user";
2054
+ createdAt: string;
2055
+ createdBy: string;
2056
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
2057
+ status: "Requested" | "Accepted" | "Rejected";
2058
+ type: "UNASSIGN";
2059
+ createdByRole?: string | undefined;
2060
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2061
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2062
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
2063
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2064
+ } | {
2065
+ id: string & import("zod").$brand<"UUID">;
2066
+ transactionId: string;
2067
+ createdByUserType: "system" | "user";
2068
+ createdAt: string;
2069
+ createdBy: string;
2070
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
2071
+ status: "Requested" | "Accepted" | "Rejected";
2072
+ type: "PRINT_CERTIFICATE";
2073
+ createdByRole?: string | undefined;
2074
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2075
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2076
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
2077
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2078
+ content?: {
2079
+ templateId?: string | undefined;
2080
+ } | null | undefined;
2081
+ } | {
2082
+ id: string & import("zod").$brand<"UUID">;
2083
+ transactionId: string;
2084
+ createdByUserType: "system" | "user";
2085
+ createdAt: string;
2086
+ createdBy: string;
2087
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
2088
+ status: "Requested" | "Accepted" | "Rejected";
2089
+ type: "READ";
2090
+ createdByRole?: string | undefined;
2091
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2092
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2093
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
2094
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2095
+ } | {
2096
+ id: string & import("zod").$brand<"UUID">;
2097
+ transactionId: string;
2098
+ createdByUserType: "system" | "user";
2099
+ createdAt: string;
2100
+ createdBy: string;
2101
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
2102
+ status: "Requested" | "Accepted" | "Rejected";
2103
+ type: "EDIT";
2104
+ content: {
2105
+ comment?: string | undefined;
2106
+ };
2107
+ createdByRole?: string | undefined;
2108
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2109
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2110
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
2111
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2112
+ } | {
2113
+ id: string & import("zod").$brand<"UUID">;
2114
+ transactionId: string;
2115
+ createdByUserType: "system" | "user";
2116
+ createdAt: string;
2117
+ createdBy: string;
2118
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
2119
+ status: "Requested" | "Accepted" | "Rejected";
2120
+ type: "CUSTOM";
2121
+ customActionType: string;
2122
+ createdByRole?: string | undefined;
2123
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2124
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2125
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
2126
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2127
+ } | {
2128
+ id: string & import("zod").$brand<"UUID">;
2129
+ transactionId: string;
2130
+ createdByUserType: "system" | "user";
2131
+ createdAt: string;
2132
+ createdBy: string;
2133
+ type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
2134
+ status: "Rejected";
2135
+ createdByRole?: string | undefined;
2136
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2137
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2138
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2139
+ })[];
2140
+ trackingId: string;
2141
+ };
2142
+ meta: import("trpc-to-openapi").OpenApiMeta;
2143
+ }>;
2144
+ accept: import("@trpc/server").TRPCMutationProcedure<{
2145
+ input: (Omit<{
2146
+ eventId: string;
2147
+ transactionId: string;
2148
+ declaration?: Record<string, unknown> | undefined;
2149
+ annotation?: Record<string, unknown> | undefined;
2150
+ originalActionId?: string | undefined;
2151
+ keepAssignment?: boolean | undefined;
2152
+ keepAssignmentIfAccepted?: boolean | undefined;
2153
+ keepAssignmentIfRejected?: boolean | undefined;
2154
+ waitFor?: boolean | undefined;
2155
+ type?: "CREATE" | undefined;
2156
+ createdAtLocation?: string | null | undefined;
2157
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2158
+ eventId: string;
2159
+ transactionId: string;
2160
+ declaration?: Record<string, unknown> | undefined;
2161
+ annotation?: Record<string, unknown> | undefined;
2162
+ originalActionId?: string | undefined;
2163
+ keepAssignment?: boolean | undefined;
2164
+ keepAssignmentIfAccepted?: boolean | undefined;
2165
+ keepAssignmentIfRejected?: boolean | undefined;
2166
+ waitFor?: boolean | undefined;
2167
+ createdAtLocation?: string | null | undefined;
2168
+ type?: "REGISTER" | undefined;
2169
+ registrationNumber?: string | undefined;
2170
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2171
+ eventId: string;
2172
+ transactionId: string;
2173
+ declaration?: Record<string, unknown> | undefined;
2174
+ annotation?: Record<string, unknown> | undefined;
2175
+ originalActionId?: string | undefined;
2176
+ keepAssignment?: boolean | undefined;
2177
+ keepAssignmentIfAccepted?: boolean | undefined;
2178
+ keepAssignmentIfRejected?: boolean | undefined;
2179
+ waitFor?: boolean | undefined;
2180
+ type?: "NOTIFY" | undefined;
2181
+ createdAtLocation?: string | null | undefined;
2182
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2183
+ eventId: string;
2184
+ transactionId: string;
2185
+ declaration?: Record<string, unknown> | undefined;
2186
+ annotation?: Record<string, unknown> | undefined;
2187
+ originalActionId?: string | undefined;
2188
+ keepAssignment?: boolean | undefined;
2189
+ keepAssignmentIfAccepted?: boolean | undefined;
2190
+ keepAssignmentIfRejected?: boolean | undefined;
2191
+ waitFor?: boolean | undefined;
2192
+ createdAtLocation?: string | null | undefined;
2193
+ type?: "DECLARE" | undefined;
2194
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2195
+ eventId: string;
2196
+ transactionId: string;
2197
+ content: {
2198
+ reason: string;
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?: "REJECT" | undefined;
2209
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2210
+ eventId: string;
2211
+ transactionId: string;
2212
+ content: {
2213
+ duplicates: {
2214
+ id: string;
2215
+ trackingId: string;
2216
+ }[];
2217
+ };
2218
+ declaration?: Record<string, unknown> | undefined;
2219
+ annotation?: Record<string, unknown> | undefined;
2220
+ originalActionId?: string | undefined;
2221
+ keepAssignment?: boolean | undefined;
2222
+ keepAssignmentIfAccepted?: boolean | undefined;
2223
+ keepAssignmentIfRejected?: boolean | undefined;
2224
+ waitFor?: boolean | undefined;
2225
+ createdAtLocation?: string | null | undefined;
2226
+ type?: "DUPLICATE_DETECTED" | undefined;
2227
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2228
+ eventId: string;
2229
+ transactionId: string;
2230
+ declaration?: Record<string, unknown> | undefined;
2231
+ annotation?: Record<string, unknown> | undefined;
2232
+ originalActionId?: string | undefined;
2233
+ keepAssignment?: boolean | undefined;
2234
+ keepAssignmentIfAccepted?: boolean | undefined;
2235
+ keepAssignmentIfRejected?: boolean | undefined;
2236
+ waitFor?: boolean | undefined;
2237
+ createdAtLocation?: string | null | undefined;
2238
+ type?: "MARK_AS_DUPLICATE" | undefined;
2239
+ content?: {
2240
+ duplicateOf: string;
2241
+ } | undefined;
2242
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2243
+ eventId: string;
2244
+ transactionId: string;
2245
+ declaration?: Record<string, unknown> | undefined;
2246
+ annotation?: Record<string, unknown> | undefined;
2247
+ originalActionId?: string | undefined;
2248
+ keepAssignment?: boolean | undefined;
2249
+ keepAssignmentIfAccepted?: boolean | undefined;
2250
+ keepAssignmentIfRejected?: boolean | undefined;
2251
+ waitFor?: boolean | undefined;
2252
+ createdAtLocation?: string | null | undefined;
2253
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
2254
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2255
+ eventId: string;
2256
+ transactionId: string;
2257
+ content: {
2258
+ reason: string;
2259
+ };
2260
+ declaration?: Record<string, unknown> | undefined;
2261
+ annotation?: Record<string, unknown> | undefined;
2262
+ originalActionId?: string | undefined;
2263
+ keepAssignment?: boolean | undefined;
2264
+ keepAssignmentIfAccepted?: boolean | undefined;
2265
+ keepAssignmentIfRejected?: boolean | undefined;
2266
+ waitFor?: boolean | undefined;
2267
+ createdAtLocation?: string | null | undefined;
2268
+ type?: "ARCHIVE" | undefined;
2269
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2270
+ eventId: string;
2271
+ transactionId: string;
2272
+ type: "ASSIGN";
2273
+ assignedTo: string;
2274
+ declaration?: Record<string, unknown> | undefined;
2275
+ annotation?: Record<string, unknown> | undefined;
2276
+ originalActionId?: string | undefined;
2277
+ keepAssignment?: boolean | undefined;
2278
+ keepAssignmentIfAccepted?: boolean | undefined;
2279
+ keepAssignmentIfRejected?: boolean | undefined;
2280
+ waitFor?: boolean | undefined;
2281
+ createdAtLocation?: string | null | undefined;
2282
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2283
+ eventId: string;
2284
+ transactionId: string;
2285
+ declaration?: Record<string, unknown> | undefined;
2286
+ annotation?: Record<string, unknown> | undefined;
2287
+ originalActionId?: string | undefined;
2288
+ keepAssignment?: boolean | undefined;
2289
+ keepAssignmentIfAccepted?: boolean | undefined;
2290
+ keepAssignmentIfRejected?: boolean | undefined;
2291
+ waitFor?: boolean | undefined;
2292
+ createdAtLocation?: string | null | undefined;
2293
+ type?: "UNASSIGN" | undefined;
2294
+ assignedTo?: null | undefined;
2295
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2296
+ eventId: string;
2297
+ transactionId: string;
2298
+ declaration?: Record<string, unknown> | undefined;
2299
+ annotation?: Record<string, unknown> | undefined;
2300
+ originalActionId?: string | undefined;
2301
+ keepAssignment?: boolean | undefined;
2302
+ keepAssignmentIfAccepted?: boolean | undefined;
2303
+ keepAssignmentIfRejected?: boolean | undefined;
2304
+ waitFor?: boolean | undefined;
2305
+ createdAtLocation?: string | null | undefined;
2306
+ type?: "PRINT_CERTIFICATE" | undefined;
2307
+ content?: {
2308
+ templateId?: string | undefined;
2309
+ } | undefined;
2310
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2311
+ eventId: string;
2312
+ transactionId: string;
2313
+ declaration?: Record<string, unknown> | undefined;
2314
+ annotation?: Record<string, unknown> | undefined;
2315
+ originalActionId?: string | undefined;
2316
+ keepAssignment?: boolean | undefined;
2317
+ keepAssignmentIfAccepted?: boolean | undefined;
2318
+ keepAssignmentIfRejected?: boolean | undefined;
2319
+ waitFor?: boolean | undefined;
2320
+ createdAtLocation?: string | null | undefined;
2321
+ type?: "REQUEST_CORRECTION" | undefined;
2322
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2323
+ eventId: string;
2324
+ transactionId: string;
2325
+ requestId: string;
2326
+ content: {
2327
+ reason: string;
2328
+ };
2329
+ declaration?: Record<string, unknown> | undefined;
2330
+ annotation?: Record<string, unknown> | undefined;
2331
+ originalActionId?: string | undefined;
2332
+ keepAssignment?: boolean | undefined;
2333
+ keepAssignmentIfAccepted?: boolean | undefined;
2334
+ keepAssignmentIfRejected?: boolean | undefined;
2335
+ waitFor?: boolean | undefined;
2336
+ createdAtLocation?: string | null | undefined;
2337
+ type?: "REJECT_CORRECTION" | undefined;
2338
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2339
+ eventId: string;
2340
+ transactionId: string;
2341
+ requestId: string;
2342
+ declaration?: Record<string, unknown> | undefined;
2343
+ annotation?: Record<string, unknown> | undefined;
2344
+ originalActionId?: string | undefined;
2345
+ keepAssignment?: boolean | undefined;
2346
+ keepAssignmentIfAccepted?: boolean | undefined;
2347
+ keepAssignmentIfRejected?: boolean | undefined;
2348
+ waitFor?: boolean | undefined;
2349
+ createdAtLocation?: string | null | undefined;
2350
+ type?: "APPROVE_CORRECTION" | undefined;
2351
+ content?: {
2352
+ immediateCorrection?: boolean | undefined;
2353
+ } | undefined;
2354
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2355
+ eventId: string;
2356
+ transactionId: string;
2357
+ declaration?: Record<string, unknown> | undefined;
2358
+ annotation?: Record<string, unknown> | undefined;
2359
+ originalActionId?: string | undefined;
2360
+ keepAssignment?: boolean | undefined;
2361
+ keepAssignmentIfAccepted?: boolean | undefined;
2362
+ keepAssignmentIfRejected?: boolean | undefined;
2363
+ waitFor?: boolean | undefined;
2364
+ createdAtLocation?: string | null | undefined;
2365
+ type?: "READ" | undefined;
2366
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2367
+ eventId: string;
2368
+ transactionId: string;
2369
+ customActionType: string;
2370
+ declaration?: Record<string, unknown> | undefined;
2371
+ annotation?: Record<string, unknown> | undefined;
2372
+ originalActionId?: string | undefined;
2373
+ keepAssignment?: boolean | undefined;
2374
+ keepAssignmentIfAccepted?: boolean | undefined;
2375
+ keepAssignmentIfRejected?: boolean | undefined;
2376
+ waitFor?: boolean | undefined;
2377
+ createdAtLocation?: string | null | undefined;
2378
+ type?: "CUSTOM" | undefined;
2379
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2380
+ eventId: string;
2381
+ transactionId: string;
2382
+ content: {
2383
+ comment?: string | undefined;
2384
+ };
2385
+ declaration?: Record<string, unknown> | undefined;
2386
+ annotation?: Record<string, unknown> | undefined;
2387
+ originalActionId?: string | undefined;
2388
+ keepAssignment?: boolean | undefined;
2389
+ keepAssignmentIfAccepted?: boolean | undefined;
2390
+ keepAssignmentIfRejected?: boolean | undefined;
2391
+ waitFor?: boolean | undefined;
2392
+ createdAtLocation?: string | null | undefined;
2393
+ type?: "EDIT" | undefined;
2394
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2395
+ actionId: string;
2396
+ };
2397
+ output: import("../commons").EventDocument;
2398
+ meta: import("trpc-to-openapi").OpenApiMeta;
2399
+ }>;
2400
+ reject: import("@trpc/server").TRPCMutationProcedure<{
2401
+ input: import("zod").input<import("zod").ZodObject<{
2402
+ transactionId: import("zod").ZodString;
2403
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2404
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2405
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2406
+ }, import("zod/v4/core").$strip>>;
2407
+ output: import("../commons").EventDocument;
2408
+ meta: import("trpc-to-openapi").OpenApiMeta;
2409
+ }>;
2410
+ }>>;
2411
+ edit: import("@trpc/server").TRPCBuiltRouter<{
2412
+ ctx: Partial<{
2413
+ token: `Bearer ${string}`;
2414
+ user: {
2415
+ id: string & import("zod").$brand<"UUID">;
2416
+ type: "system";
2417
+ signature?: undefined;
2418
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2419
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2420
+ } | {
2421
+ id: string & import("zod").$brand<"UUID">;
2422
+ type: "user";
2423
+ role: string;
2424
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
2425
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2426
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2427
+ };
2428
+ }>;
2429
+ meta: import("trpc-to-openapi").OpenApiMeta;
2430
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
2431
+ transformer: true;
2432
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
2433
+ request: import("@trpc/server").TRPCMutationProcedure<{
2434
+ input: import("../commons").ActionInput;
2435
+ output: import("../commons").EventDocument;
2436
+ meta: import("trpc-to-openapi").OpenApiMeta;
2437
+ }>;
2438
+ accept: import("@trpc/server").TRPCMutationProcedure<{
2439
+ input: (Omit<{
2440
+ eventId: string;
2441
+ transactionId: string;
2442
+ declaration?: Record<string, unknown> | undefined;
2443
+ annotation?: Record<string, unknown> | undefined;
2444
+ originalActionId?: string | undefined;
2445
+ keepAssignment?: boolean | undefined;
2446
+ keepAssignmentIfAccepted?: boolean | undefined;
2447
+ keepAssignmentIfRejected?: boolean | undefined;
2448
+ waitFor?: boolean | undefined;
2449
+ type?: "CREATE" | undefined;
2450
+ createdAtLocation?: string | null | undefined;
2451
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2452
+ eventId: string;
2453
+ transactionId: string;
2454
+ declaration?: Record<string, unknown> | undefined;
2455
+ annotation?: Record<string, unknown> | undefined;
2456
+ originalActionId?: string | undefined;
2457
+ keepAssignment?: boolean | undefined;
2458
+ keepAssignmentIfAccepted?: boolean | undefined;
2459
+ keepAssignmentIfRejected?: boolean | undefined;
2460
+ waitFor?: boolean | undefined;
2461
+ createdAtLocation?: string | null | undefined;
2462
+ type?: "REGISTER" | undefined;
2463
+ registrationNumber?: string | undefined;
2464
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2465
+ eventId: string;
2466
+ transactionId: string;
2467
+ declaration?: Record<string, unknown> | undefined;
2468
+ annotation?: Record<string, unknown> | undefined;
2469
+ originalActionId?: string | undefined;
2470
+ keepAssignment?: boolean | undefined;
2471
+ keepAssignmentIfAccepted?: boolean | undefined;
2472
+ keepAssignmentIfRejected?: boolean | undefined;
2473
+ waitFor?: boolean | undefined;
2474
+ type?: "NOTIFY" | undefined;
2475
+ createdAtLocation?: string | null | undefined;
2476
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2477
+ eventId: string;
2478
+ transactionId: string;
2479
+ declaration?: Record<string, unknown> | undefined;
2480
+ annotation?: Record<string, unknown> | undefined;
2481
+ originalActionId?: string | undefined;
2482
+ keepAssignment?: boolean | undefined;
2483
+ keepAssignmentIfAccepted?: boolean | undefined;
2484
+ keepAssignmentIfRejected?: boolean | undefined;
2485
+ waitFor?: boolean | undefined;
2486
+ createdAtLocation?: string | null | undefined;
2487
+ type?: "DECLARE" | undefined;
2488
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2489
+ eventId: string;
2490
+ transactionId: string;
2491
+ content: {
2492
+ reason: string;
2493
+ };
2494
+ declaration?: Record<string, unknown> | undefined;
2495
+ annotation?: Record<string, unknown> | undefined;
2496
+ originalActionId?: string | undefined;
2497
+ keepAssignment?: boolean | undefined;
2498
+ keepAssignmentIfAccepted?: boolean | undefined;
2499
+ keepAssignmentIfRejected?: boolean | undefined;
2500
+ waitFor?: boolean | undefined;
2501
+ createdAtLocation?: string | null | undefined;
2502
+ type?: "REJECT" | undefined;
2503
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2504
+ eventId: string;
2505
+ transactionId: string;
2506
+ content: {
2507
+ duplicates: {
2508
+ id: string;
2509
+ trackingId: string;
2510
+ }[];
2511
+ };
2512
+ declaration?: Record<string, unknown> | undefined;
2513
+ annotation?: Record<string, unknown> | undefined;
2514
+ originalActionId?: string | undefined;
2515
+ keepAssignment?: boolean | undefined;
2516
+ keepAssignmentIfAccepted?: boolean | undefined;
2517
+ keepAssignmentIfRejected?: boolean | undefined;
2518
+ waitFor?: boolean | undefined;
2519
+ createdAtLocation?: string | null | undefined;
2520
+ type?: "DUPLICATE_DETECTED" | undefined;
2521
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2522
+ eventId: string;
2523
+ transactionId: string;
2524
+ declaration?: Record<string, unknown> | undefined;
2525
+ annotation?: Record<string, unknown> | undefined;
2526
+ originalActionId?: string | undefined;
2527
+ keepAssignment?: boolean | undefined;
2528
+ keepAssignmentIfAccepted?: boolean | undefined;
2529
+ keepAssignmentIfRejected?: boolean | undefined;
2530
+ waitFor?: boolean | undefined;
2531
+ createdAtLocation?: string | null | undefined;
2532
+ type?: "MARK_AS_DUPLICATE" | undefined;
2533
+ content?: {
2534
+ duplicateOf: string;
2535
+ } | undefined;
2536
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2537
+ eventId: string;
2538
+ transactionId: string;
2539
+ declaration?: Record<string, unknown> | undefined;
2540
+ annotation?: Record<string, unknown> | undefined;
2541
+ originalActionId?: string | undefined;
2542
+ keepAssignment?: boolean | undefined;
2543
+ keepAssignmentIfAccepted?: boolean | undefined;
2544
+ keepAssignmentIfRejected?: boolean | undefined;
2545
+ waitFor?: boolean | undefined;
2546
+ createdAtLocation?: string | null | undefined;
2547
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
2548
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2549
+ eventId: string;
2550
+ transactionId: string;
2551
+ content: {
2552
+ reason: string;
2553
+ };
2554
+ declaration?: Record<string, unknown> | undefined;
2555
+ annotation?: Record<string, unknown> | undefined;
2556
+ originalActionId?: string | undefined;
2557
+ keepAssignment?: boolean | undefined;
2558
+ keepAssignmentIfAccepted?: boolean | undefined;
2559
+ keepAssignmentIfRejected?: boolean | undefined;
2560
+ waitFor?: boolean | undefined;
2561
+ createdAtLocation?: string | null | undefined;
2562
+ type?: "ARCHIVE" | undefined;
2563
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2564
+ eventId: string;
2565
+ transactionId: string;
2566
+ type: "ASSIGN";
2567
+ assignedTo: string;
2568
+ declaration?: Record<string, unknown> | undefined;
2569
+ annotation?: Record<string, unknown> | undefined;
2570
+ originalActionId?: string | undefined;
2571
+ keepAssignment?: boolean | undefined;
2572
+ keepAssignmentIfAccepted?: boolean | undefined;
2573
+ keepAssignmentIfRejected?: boolean | undefined;
2574
+ waitFor?: boolean | undefined;
2575
+ createdAtLocation?: string | null | undefined;
2576
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2577
+ eventId: string;
2578
+ transactionId: string;
2579
+ declaration?: Record<string, unknown> | undefined;
2580
+ annotation?: Record<string, unknown> | undefined;
2581
+ originalActionId?: string | undefined;
2582
+ keepAssignment?: boolean | undefined;
2583
+ keepAssignmentIfAccepted?: boolean | undefined;
2584
+ keepAssignmentIfRejected?: boolean | undefined;
2585
+ waitFor?: boolean | undefined;
2586
+ createdAtLocation?: string | null | undefined;
2587
+ type?: "UNASSIGN" | undefined;
2588
+ assignedTo?: null | undefined;
2589
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2590
+ eventId: string;
2591
+ transactionId: string;
2592
+ declaration?: Record<string, unknown> | undefined;
2593
+ annotation?: Record<string, unknown> | undefined;
2594
+ originalActionId?: string | undefined;
2595
+ keepAssignment?: boolean | undefined;
2596
+ keepAssignmentIfAccepted?: boolean | undefined;
2597
+ keepAssignmentIfRejected?: boolean | undefined;
2598
+ waitFor?: boolean | undefined;
2599
+ createdAtLocation?: string | null | undefined;
2600
+ type?: "PRINT_CERTIFICATE" | undefined;
2601
+ content?: {
2602
+ templateId?: string | undefined;
2603
+ } | undefined;
2604
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2605
+ eventId: string;
2606
+ transactionId: string;
2607
+ declaration?: Record<string, unknown> | undefined;
2608
+ annotation?: Record<string, unknown> | undefined;
2609
+ originalActionId?: string | undefined;
2610
+ keepAssignment?: boolean | undefined;
2611
+ keepAssignmentIfAccepted?: boolean | undefined;
2612
+ keepAssignmentIfRejected?: boolean | undefined;
2613
+ waitFor?: boolean | undefined;
2614
+ createdAtLocation?: string | null | undefined;
2615
+ type?: "REQUEST_CORRECTION" | undefined;
2616
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2617
+ eventId: string;
2618
+ transactionId: string;
2619
+ requestId: string;
2620
+ content: {
2621
+ reason: string;
2622
+ };
2623
+ declaration?: Record<string, unknown> | undefined;
2624
+ annotation?: Record<string, unknown> | undefined;
2625
+ originalActionId?: string | undefined;
2626
+ keepAssignment?: boolean | undefined;
2627
+ keepAssignmentIfAccepted?: boolean | undefined;
2628
+ keepAssignmentIfRejected?: boolean | undefined;
2629
+ waitFor?: boolean | undefined;
2630
+ createdAtLocation?: string | null | undefined;
2631
+ type?: "REJECT_CORRECTION" | undefined;
2632
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2633
+ eventId: string;
2634
+ transactionId: string;
2635
+ requestId: string;
2636
+ declaration?: Record<string, unknown> | undefined;
2637
+ annotation?: Record<string, unknown> | undefined;
2638
+ originalActionId?: string | undefined;
2639
+ keepAssignment?: boolean | undefined;
2640
+ keepAssignmentIfAccepted?: boolean | undefined;
2641
+ keepAssignmentIfRejected?: boolean | undefined;
2642
+ waitFor?: boolean | undefined;
2643
+ createdAtLocation?: string | null | undefined;
2644
+ type?: "APPROVE_CORRECTION" | undefined;
2645
+ content?: {
2646
+ immediateCorrection?: boolean | undefined;
2647
+ } | undefined;
2648
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2649
+ eventId: string;
2650
+ transactionId: string;
2651
+ declaration?: Record<string, unknown> | undefined;
2652
+ annotation?: Record<string, unknown> | undefined;
2653
+ originalActionId?: string | undefined;
2654
+ keepAssignment?: boolean | undefined;
2655
+ keepAssignmentIfAccepted?: boolean | undefined;
2656
+ keepAssignmentIfRejected?: boolean | undefined;
2657
+ waitFor?: boolean | undefined;
2658
+ createdAtLocation?: string | null | undefined;
2659
+ type?: "READ" | undefined;
2660
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2661
+ eventId: string;
2662
+ transactionId: string;
2663
+ customActionType: string;
2664
+ declaration?: Record<string, unknown> | undefined;
2665
+ annotation?: Record<string, unknown> | undefined;
2666
+ originalActionId?: string | undefined;
2667
+ keepAssignment?: boolean | undefined;
2668
+ keepAssignmentIfAccepted?: boolean | undefined;
2669
+ keepAssignmentIfRejected?: boolean | undefined;
2670
+ waitFor?: boolean | undefined;
2671
+ createdAtLocation?: string | null | undefined;
2672
+ type?: "CUSTOM" | undefined;
2673
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2674
+ eventId: string;
2675
+ transactionId: string;
2676
+ content: {
2677
+ comment?: string | undefined;
2678
+ };
2679
+ declaration?: Record<string, unknown> | undefined;
2680
+ annotation?: Record<string, unknown> | undefined;
2681
+ originalActionId?: string | undefined;
2682
+ keepAssignment?: boolean | undefined;
2683
+ keepAssignmentIfAccepted?: boolean | undefined;
2684
+ keepAssignmentIfRejected?: boolean | undefined;
2685
+ waitFor?: boolean | undefined;
2686
+ createdAtLocation?: string | null | undefined;
2687
+ type?: "EDIT" | undefined;
2688
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2689
+ actionId: string;
2690
+ };
2691
+ output: import("../commons").EventDocument;
2692
+ meta: import("trpc-to-openapi").OpenApiMeta;
2693
+ }>;
2694
+ reject: import("@trpc/server").TRPCMutationProcedure<{
2695
+ input: import("zod").input<import("zod").ZodObject<{
2696
+ transactionId: import("zod").ZodString;
2697
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2698
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2699
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2700
+ }, import("zod/v4/core").$strip>>;
2701
+ output: import("../commons").EventDocument;
2702
+ meta: import("trpc-to-openapi").OpenApiMeta;
2703
+ }>;
2704
+ }>>;
2705
+ reject: import("@trpc/server").TRPCBuiltRouter<{
2706
+ ctx: Partial<{
2707
+ token: `Bearer ${string}`;
2708
+ user: {
2709
+ id: string & import("zod").$brand<"UUID">;
2710
+ type: "system";
2711
+ signature?: undefined;
2712
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2713
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2714
+ } | {
2715
+ id: string & import("zod").$brand<"UUID">;
2716
+ type: "user";
2717
+ role: string;
2718
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
2719
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2720
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2721
+ };
2722
+ }>;
2723
+ meta: import("trpc-to-openapi").OpenApiMeta;
2724
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
2725
+ transformer: true;
2726
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
2727
+ request: import("@trpc/server").TRPCMutationProcedure<{
2728
+ input: import("../commons").ActionInput;
2729
+ output: import("../commons").EventDocument;
2730
+ meta: import("trpc-to-openapi").OpenApiMeta;
2731
+ }>;
2732
+ accept: import("@trpc/server").TRPCMutationProcedure<{
2733
+ input: (Omit<{
2734
+ eventId: string;
2735
+ transactionId: string;
2736
+ declaration?: Record<string, unknown> | undefined;
2737
+ annotation?: Record<string, unknown> | undefined;
2738
+ originalActionId?: string | undefined;
2739
+ keepAssignment?: boolean | undefined;
2740
+ keepAssignmentIfAccepted?: boolean | undefined;
2741
+ keepAssignmentIfRejected?: boolean | undefined;
2742
+ waitFor?: boolean | undefined;
2743
+ type?: "CREATE" | undefined;
2744
+ createdAtLocation?: string | null | undefined;
2745
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2746
+ eventId: string;
2747
+ transactionId: string;
2748
+ declaration?: Record<string, unknown> | undefined;
2749
+ annotation?: Record<string, unknown> | undefined;
2750
+ originalActionId?: string | undefined;
2751
+ keepAssignment?: boolean | undefined;
2752
+ keepAssignmentIfAccepted?: boolean | undefined;
2753
+ keepAssignmentIfRejected?: boolean | undefined;
2754
+ waitFor?: boolean | undefined;
2755
+ createdAtLocation?: string | null | undefined;
2756
+ type?: "REGISTER" | undefined;
2757
+ registrationNumber?: string | undefined;
2758
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2759
+ eventId: string;
2760
+ transactionId: string;
2761
+ declaration?: Record<string, unknown> | undefined;
2762
+ annotation?: Record<string, unknown> | undefined;
2763
+ originalActionId?: string | undefined;
2764
+ keepAssignment?: boolean | undefined;
2765
+ keepAssignmentIfAccepted?: boolean | undefined;
2766
+ keepAssignmentIfRejected?: boolean | undefined;
2767
+ waitFor?: boolean | undefined;
2768
+ type?: "NOTIFY" | undefined;
2769
+ createdAtLocation?: string | null | undefined;
2770
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2771
+ eventId: string;
2772
+ transactionId: string;
2773
+ declaration?: Record<string, unknown> | undefined;
2774
+ annotation?: Record<string, unknown> | undefined;
2775
+ originalActionId?: string | undefined;
2776
+ keepAssignment?: boolean | undefined;
2777
+ keepAssignmentIfAccepted?: boolean | undefined;
2778
+ keepAssignmentIfRejected?: boolean | undefined;
2779
+ waitFor?: boolean | undefined;
2780
+ createdAtLocation?: string | null | undefined;
2781
+ type?: "DECLARE" | undefined;
2782
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2783
+ eventId: string;
2784
+ transactionId: string;
2785
+ content: {
2786
+ reason: string;
2787
+ };
2788
+ declaration?: Record<string, unknown> | undefined;
2789
+ annotation?: Record<string, unknown> | undefined;
2790
+ originalActionId?: string | undefined;
2791
+ keepAssignment?: boolean | undefined;
2792
+ keepAssignmentIfAccepted?: boolean | undefined;
2793
+ keepAssignmentIfRejected?: boolean | undefined;
2794
+ waitFor?: boolean | undefined;
2795
+ createdAtLocation?: string | null | undefined;
2796
+ type?: "REJECT" | undefined;
2797
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2798
+ eventId: string;
2799
+ transactionId: string;
2800
+ content: {
2801
+ duplicates: {
2802
+ id: string;
2803
+ trackingId: string;
2804
+ }[];
2805
+ };
2806
+ declaration?: Record<string, unknown> | undefined;
2807
+ annotation?: Record<string, unknown> | undefined;
2808
+ originalActionId?: string | undefined;
2809
+ keepAssignment?: boolean | undefined;
2810
+ keepAssignmentIfAccepted?: boolean | undefined;
2811
+ keepAssignmentIfRejected?: boolean | undefined;
2812
+ waitFor?: boolean | undefined;
2813
+ createdAtLocation?: string | null | undefined;
2814
+ type?: "DUPLICATE_DETECTED" | undefined;
2815
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2816
+ eventId: string;
2817
+ transactionId: string;
2818
+ declaration?: Record<string, unknown> | undefined;
2819
+ annotation?: Record<string, unknown> | undefined;
2820
+ originalActionId?: string | undefined;
2821
+ keepAssignment?: boolean | undefined;
2822
+ keepAssignmentIfAccepted?: boolean | undefined;
2823
+ keepAssignmentIfRejected?: boolean | undefined;
2824
+ waitFor?: boolean | undefined;
2825
+ createdAtLocation?: string | null | undefined;
2826
+ type?: "MARK_AS_DUPLICATE" | undefined;
2827
+ content?: {
2828
+ duplicateOf: string;
2829
+ } | undefined;
2830
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2831
+ eventId: string;
2832
+ transactionId: string;
2833
+ declaration?: Record<string, unknown> | undefined;
2834
+ annotation?: Record<string, unknown> | undefined;
2835
+ originalActionId?: string | undefined;
2836
+ keepAssignment?: boolean | undefined;
2837
+ keepAssignmentIfAccepted?: boolean | undefined;
2838
+ keepAssignmentIfRejected?: boolean | undefined;
2839
+ waitFor?: boolean | undefined;
2840
+ createdAtLocation?: string | null | undefined;
2841
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
2842
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2843
+ eventId: string;
2844
+ transactionId: string;
2845
+ content: {
2846
+ reason: string;
2847
+ };
2848
+ declaration?: Record<string, unknown> | undefined;
2849
+ annotation?: Record<string, unknown> | undefined;
2850
+ originalActionId?: string | undefined;
2851
+ keepAssignment?: boolean | undefined;
2852
+ keepAssignmentIfAccepted?: boolean | undefined;
2853
+ keepAssignmentIfRejected?: boolean | undefined;
2854
+ waitFor?: boolean | undefined;
2855
+ createdAtLocation?: string | null | undefined;
2856
+ type?: "ARCHIVE" | undefined;
2857
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2858
+ eventId: string;
2859
+ transactionId: string;
2860
+ type: "ASSIGN";
2861
+ assignedTo: 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
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2871
+ eventId: string;
2872
+ transactionId: string;
2873
+ declaration?: Record<string, unknown> | undefined;
2874
+ annotation?: Record<string, unknown> | undefined;
2875
+ originalActionId?: string | undefined;
2876
+ keepAssignment?: boolean | undefined;
2877
+ keepAssignmentIfAccepted?: boolean | undefined;
2878
+ keepAssignmentIfRejected?: boolean | undefined;
2879
+ waitFor?: boolean | undefined;
2880
+ createdAtLocation?: string | null | undefined;
2881
+ type?: "UNASSIGN" | undefined;
2882
+ assignedTo?: null | undefined;
2883
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2884
+ eventId: string;
2885
+ transactionId: string;
2886
+ declaration?: Record<string, unknown> | undefined;
2887
+ annotation?: Record<string, unknown> | undefined;
2888
+ originalActionId?: string | undefined;
2889
+ keepAssignment?: boolean | undefined;
2890
+ keepAssignmentIfAccepted?: boolean | undefined;
2891
+ keepAssignmentIfRejected?: boolean | undefined;
2892
+ waitFor?: boolean | undefined;
2893
+ createdAtLocation?: string | null | undefined;
2894
+ type?: "PRINT_CERTIFICATE" | undefined;
2895
+ content?: {
2896
+ templateId?: string | undefined;
2897
+ } | undefined;
2898
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2899
+ eventId: string;
2900
+ transactionId: string;
2901
+ declaration?: Record<string, unknown> | undefined;
2902
+ annotation?: Record<string, unknown> | undefined;
2903
+ originalActionId?: string | undefined;
2904
+ keepAssignment?: boolean | undefined;
2905
+ keepAssignmentIfAccepted?: boolean | undefined;
2906
+ keepAssignmentIfRejected?: boolean | undefined;
2907
+ waitFor?: boolean | undefined;
2908
+ createdAtLocation?: string | null | undefined;
2909
+ type?: "REQUEST_CORRECTION" | undefined;
2910
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2911
+ eventId: string;
2912
+ transactionId: string;
2913
+ requestId: string;
2914
+ content: {
2915
+ reason: string;
2916
+ };
2917
+ declaration?: Record<string, unknown> | undefined;
2918
+ annotation?: Record<string, unknown> | undefined;
2919
+ originalActionId?: string | undefined;
2920
+ keepAssignment?: boolean | undefined;
2921
+ keepAssignmentIfAccepted?: boolean | undefined;
2922
+ keepAssignmentIfRejected?: boolean | undefined;
2923
+ waitFor?: boolean | undefined;
2924
+ createdAtLocation?: string | null | undefined;
2925
+ type?: "REJECT_CORRECTION" | undefined;
2926
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2927
+ eventId: string;
2928
+ transactionId: string;
2929
+ requestId: string;
2930
+ declaration?: Record<string, unknown> | undefined;
2931
+ annotation?: Record<string, unknown> | undefined;
2932
+ originalActionId?: string | undefined;
2933
+ keepAssignment?: boolean | undefined;
2934
+ keepAssignmentIfAccepted?: boolean | undefined;
2935
+ keepAssignmentIfRejected?: boolean | undefined;
2936
+ waitFor?: boolean | undefined;
2937
+ createdAtLocation?: string | null | undefined;
2938
+ type?: "APPROVE_CORRECTION" | undefined;
2939
+ content?: {
2940
+ immediateCorrection?: boolean | undefined;
2941
+ } | undefined;
2942
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2943
+ eventId: string;
2944
+ transactionId: string;
2945
+ declaration?: Record<string, unknown> | undefined;
2946
+ annotation?: Record<string, unknown> | undefined;
2947
+ originalActionId?: string | undefined;
2948
+ keepAssignment?: boolean | undefined;
2949
+ keepAssignmentIfAccepted?: boolean | undefined;
2950
+ keepAssignmentIfRejected?: boolean | undefined;
2951
+ waitFor?: boolean | undefined;
2952
+ createdAtLocation?: string | null | undefined;
2953
+ type?: "READ" | undefined;
2954
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2955
+ eventId: string;
2956
+ transactionId: string;
2957
+ customActionType: string;
2958
+ declaration?: Record<string, unknown> | undefined;
2959
+ annotation?: Record<string, unknown> | undefined;
2960
+ originalActionId?: string | undefined;
2961
+ keepAssignment?: boolean | undefined;
2962
+ keepAssignmentIfAccepted?: boolean | undefined;
2963
+ keepAssignmentIfRejected?: boolean | undefined;
2964
+ waitFor?: boolean | undefined;
2965
+ createdAtLocation?: string | null | undefined;
2966
+ type?: "CUSTOM" | undefined;
2967
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2968
+ eventId: string;
2969
+ transactionId: string;
2970
+ content: {
2971
+ comment?: string | undefined;
2972
+ };
2973
+ declaration?: Record<string, unknown> | undefined;
2974
+ annotation?: Record<string, unknown> | undefined;
2975
+ originalActionId?: string | undefined;
2976
+ keepAssignment?: boolean | undefined;
2977
+ keepAssignmentIfAccepted?: boolean | undefined;
2978
+ keepAssignmentIfRejected?: boolean | undefined;
2979
+ waitFor?: boolean | undefined;
2980
+ createdAtLocation?: string | null | undefined;
2981
+ type?: "EDIT" | undefined;
2982
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2983
+ actionId: string;
2984
+ };
2985
+ output: import("../commons").EventDocument;
2986
+ meta: import("trpc-to-openapi").OpenApiMeta;
2987
+ }>;
2988
+ reject: import("@trpc/server").TRPCMutationProcedure<{
2989
+ input: import("zod").input<import("zod").ZodObject<{
2990
+ transactionId: import("zod").ZodString;
2991
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2992
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2993
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2994
+ }, import("zod/v4/core").$strip>>;
2995
+ output: import("../commons").EventDocument;
2996
+ meta: import("trpc-to-openapi").OpenApiMeta;
2997
+ }>;
2998
+ }>>;
2999
+ archive: import("@trpc/server").TRPCBuiltRouter<{
3000
+ ctx: Partial<{
3001
+ token: `Bearer ${string}`;
3002
+ user: {
3003
+ id: string & import("zod").$brand<"UUID">;
3004
+ type: "system";
3005
+ signature?: undefined;
3006
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3007
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3008
+ } | {
3009
+ id: string & import("zod").$brand<"UUID">;
3010
+ type: "user";
3011
+ role: string;
3012
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
3013
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3014
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3015
+ };
3016
+ }>;
3017
+ meta: import("trpc-to-openapi").OpenApiMeta;
3018
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
3019
+ transformer: true;
3020
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
3021
+ request: import("@trpc/server").TRPCMutationProcedure<{
3022
+ input: import("../commons").ActionInput;
3023
+ output: import("../commons").EventDocument;
3024
+ meta: import("trpc-to-openapi").OpenApiMeta;
3025
+ }>;
3026
+ accept: import("@trpc/server").TRPCMutationProcedure<{
3027
+ input: (Omit<{
3028
+ eventId: string;
3029
+ transactionId: string;
3030
+ declaration?: Record<string, unknown> | undefined;
3031
+ annotation?: Record<string, unknown> | undefined;
3032
+ originalActionId?: string | undefined;
3033
+ keepAssignment?: boolean | undefined;
3034
+ keepAssignmentIfAccepted?: boolean | undefined;
3035
+ keepAssignmentIfRejected?: boolean | undefined;
3036
+ waitFor?: boolean | undefined;
3037
+ type?: "CREATE" | undefined;
3038
+ createdAtLocation?: string | null | undefined;
3039
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3040
+ eventId: string;
3041
+ transactionId: string;
3042
+ declaration?: Record<string, unknown> | undefined;
3043
+ annotation?: Record<string, unknown> | undefined;
3044
+ originalActionId?: string | undefined;
3045
+ keepAssignment?: boolean | undefined;
3046
+ keepAssignmentIfAccepted?: boolean | undefined;
3047
+ keepAssignmentIfRejected?: boolean | undefined;
3048
+ waitFor?: boolean | undefined;
3049
+ createdAtLocation?: string | null | undefined;
3050
+ type?: "REGISTER" | undefined;
3051
+ registrationNumber?: string | undefined;
3052
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3053
+ eventId: string;
3054
+ transactionId: string;
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
+ type?: "NOTIFY" | undefined;
3063
+ createdAtLocation?: string | null | undefined;
3064
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3065
+ eventId: string;
3066
+ transactionId: string;
3067
+ declaration?: Record<string, unknown> | undefined;
3068
+ annotation?: Record<string, unknown> | undefined;
3069
+ originalActionId?: string | undefined;
3070
+ keepAssignment?: boolean | undefined;
3071
+ keepAssignmentIfAccepted?: boolean | undefined;
3072
+ keepAssignmentIfRejected?: boolean | undefined;
3073
+ waitFor?: boolean | undefined;
3074
+ createdAtLocation?: string | null | undefined;
3075
+ type?: "DECLARE" | undefined;
3076
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3077
+ eventId: string;
3078
+ transactionId: string;
3079
+ content: {
3080
+ reason: string;
3081
+ };
3082
+ declaration?: Record<string, unknown> | undefined;
3083
+ annotation?: Record<string, unknown> | undefined;
3084
+ originalActionId?: string | undefined;
3085
+ keepAssignment?: boolean | undefined;
3086
+ keepAssignmentIfAccepted?: boolean | undefined;
3087
+ keepAssignmentIfRejected?: boolean | undefined;
3088
+ waitFor?: boolean | undefined;
3089
+ createdAtLocation?: string | null | undefined;
3090
+ type?: "REJECT" | undefined;
3091
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3092
+ eventId: string;
3093
+ transactionId: string;
3094
+ content: {
3095
+ duplicates: {
3096
+ id: string;
3097
+ trackingId: string;
3098
+ }[];
3099
+ };
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?: "DUPLICATE_DETECTED" | undefined;
3109
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3110
+ eventId: string;
3111
+ transactionId: string;
3112
+ declaration?: Record<string, unknown> | undefined;
3113
+ annotation?: Record<string, unknown> | undefined;
3114
+ originalActionId?: string | undefined;
3115
+ keepAssignment?: boolean | undefined;
3116
+ keepAssignmentIfAccepted?: boolean | undefined;
3117
+ keepAssignmentIfRejected?: boolean | undefined;
3118
+ waitFor?: boolean | undefined;
3119
+ createdAtLocation?: string | null | undefined;
3120
+ type?: "MARK_AS_DUPLICATE" | undefined;
3121
+ content?: {
3122
+ duplicateOf: string;
3123
+ } | undefined;
3124
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3125
+ eventId: string;
3126
+ transactionId: string;
3127
+ declaration?: Record<string, unknown> | undefined;
3128
+ annotation?: Record<string, unknown> | undefined;
3129
+ originalActionId?: string | undefined;
3130
+ keepAssignment?: boolean | undefined;
3131
+ keepAssignmentIfAccepted?: boolean | undefined;
3132
+ keepAssignmentIfRejected?: boolean | undefined;
3133
+ waitFor?: boolean | undefined;
3134
+ createdAtLocation?: string | null | undefined;
3135
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
3136
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3137
+ eventId: string;
3138
+ transactionId: string;
3139
+ content: {
3140
+ reason: string;
3141
+ };
3142
+ declaration?: Record<string, unknown> | undefined;
3143
+ annotation?: Record<string, unknown> | undefined;
3144
+ originalActionId?: string | undefined;
3145
+ keepAssignment?: boolean | undefined;
3146
+ keepAssignmentIfAccepted?: boolean | undefined;
3147
+ keepAssignmentIfRejected?: boolean | undefined;
3148
+ waitFor?: boolean | undefined;
3149
+ createdAtLocation?: string | null | undefined;
3150
+ type?: "ARCHIVE" | undefined;
3151
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3152
+ eventId: string;
3153
+ transactionId: string;
3154
+ type: "ASSIGN";
3155
+ assignedTo: string;
3156
+ declaration?: Record<string, unknown> | undefined;
3157
+ annotation?: Record<string, unknown> | undefined;
3158
+ originalActionId?: string | undefined;
3159
+ keepAssignment?: boolean | undefined;
3160
+ keepAssignmentIfAccepted?: boolean | undefined;
3161
+ keepAssignmentIfRejected?: boolean | undefined;
3162
+ waitFor?: boolean | undefined;
3163
+ createdAtLocation?: string | null | undefined;
3164
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3165
+ eventId: string;
3166
+ transactionId: string;
3167
+ declaration?: Record<string, unknown> | undefined;
3168
+ annotation?: Record<string, unknown> | undefined;
3169
+ originalActionId?: string | undefined;
3170
+ keepAssignment?: boolean | undefined;
3171
+ keepAssignmentIfAccepted?: boolean | undefined;
3172
+ keepAssignmentIfRejected?: boolean | undefined;
3173
+ waitFor?: boolean | undefined;
3174
+ createdAtLocation?: string | null | undefined;
3175
+ type?: "UNASSIGN" | undefined;
3176
+ assignedTo?: null | undefined;
3177
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3178
+ eventId: string;
3179
+ transactionId: string;
3180
+ declaration?: Record<string, unknown> | undefined;
3181
+ annotation?: Record<string, unknown> | undefined;
3182
+ originalActionId?: string | undefined;
3183
+ keepAssignment?: boolean | undefined;
3184
+ keepAssignmentIfAccepted?: boolean | undefined;
3185
+ keepAssignmentIfRejected?: boolean | undefined;
3186
+ waitFor?: boolean | undefined;
3187
+ createdAtLocation?: string | null | undefined;
3188
+ type?: "PRINT_CERTIFICATE" | undefined;
3189
+ content?: {
3190
+ templateId?: string | undefined;
3191
+ } | undefined;
3192
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3193
+ eventId: string;
3194
+ transactionId: string;
3195
+ declaration?: Record<string, unknown> | undefined;
3196
+ annotation?: Record<string, unknown> | undefined;
3197
+ originalActionId?: string | undefined;
3198
+ keepAssignment?: boolean | undefined;
3199
+ keepAssignmentIfAccepted?: boolean | undefined;
3200
+ keepAssignmentIfRejected?: boolean | undefined;
3201
+ waitFor?: boolean | undefined;
3202
+ createdAtLocation?: string | null | undefined;
3203
+ type?: "REQUEST_CORRECTION" | undefined;
3204
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3205
+ eventId: string;
3206
+ transactionId: string;
3207
+ requestId: string;
3208
+ content: {
3209
+ reason: string;
3210
+ };
3211
+ declaration?: Record<string, unknown> | undefined;
3212
+ annotation?: Record<string, unknown> | undefined;
3213
+ originalActionId?: string | undefined;
3214
+ keepAssignment?: boolean | undefined;
3215
+ keepAssignmentIfAccepted?: boolean | undefined;
3216
+ keepAssignmentIfRejected?: boolean | undefined;
3217
+ waitFor?: boolean | undefined;
3218
+ createdAtLocation?: string | null | undefined;
3219
+ type?: "REJECT_CORRECTION" | undefined;
3220
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3221
+ eventId: string;
3222
+ transactionId: string;
3223
+ requestId: string;
3224
+ declaration?: Record<string, unknown> | undefined;
3225
+ annotation?: Record<string, unknown> | undefined;
3226
+ originalActionId?: string | undefined;
3227
+ keepAssignment?: boolean | undefined;
3228
+ keepAssignmentIfAccepted?: boolean | undefined;
3229
+ keepAssignmentIfRejected?: boolean | undefined;
3230
+ waitFor?: boolean | undefined;
3231
+ createdAtLocation?: string | null | undefined;
3232
+ type?: "APPROVE_CORRECTION" | undefined;
3233
+ content?: {
3234
+ immediateCorrection?: boolean | undefined;
3235
+ } | undefined;
3236
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3237
+ eventId: string;
3238
+ transactionId: string;
3239
+ declaration?: Record<string, unknown> | undefined;
3240
+ annotation?: Record<string, unknown> | undefined;
3241
+ originalActionId?: string | undefined;
3242
+ keepAssignment?: boolean | undefined;
3243
+ keepAssignmentIfAccepted?: boolean | undefined;
3244
+ keepAssignmentIfRejected?: boolean | undefined;
3245
+ waitFor?: boolean | undefined;
3246
+ createdAtLocation?: string | null | undefined;
3247
+ type?: "READ" | undefined;
3248
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3249
+ eventId: string;
3250
+ transactionId: string;
3251
+ customActionType: string;
3252
+ declaration?: Record<string, unknown> | undefined;
3253
+ annotation?: Record<string, unknown> | undefined;
3254
+ originalActionId?: string | undefined;
3255
+ keepAssignment?: boolean | undefined;
3256
+ keepAssignmentIfAccepted?: boolean | undefined;
3257
+ keepAssignmentIfRejected?: boolean | undefined;
3258
+ waitFor?: boolean | undefined;
3259
+ createdAtLocation?: string | null | undefined;
3260
+ type?: "CUSTOM" | undefined;
3261
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3262
+ eventId: string;
3263
+ transactionId: string;
3264
+ content: {
3265
+ comment?: string | undefined;
3266
+ };
3267
+ declaration?: Record<string, unknown> | undefined;
3268
+ annotation?: Record<string, unknown> | undefined;
3269
+ originalActionId?: string | undefined;
3270
+ keepAssignment?: boolean | undefined;
3271
+ keepAssignmentIfAccepted?: boolean | undefined;
3272
+ keepAssignmentIfRejected?: boolean | undefined;
3273
+ waitFor?: boolean | undefined;
3274
+ createdAtLocation?: string | null | undefined;
3275
+ type?: "EDIT" | undefined;
3276
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
3277
+ actionId: string;
3278
+ };
1628
3279
  output: import("../commons").EventDocument;
1629
3280
  meta: import("trpc-to-openapi").OpenApiMeta;
1630
3281
  }>;
1631
3282
  reject: import("@trpc/server").TRPCMutationProcedure<{
1632
- input: {
3283
+ input: import("zod").input<import("zod").ZodObject<{
3284
+ transactionId: import("zod").ZodString;
3285
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3286
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3287
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3288
+ }, import("zod/v4/core").$strip>>;
3289
+ output: import("../commons").EventDocument;
3290
+ meta: import("trpc-to-openapi").OpenApiMeta;
3291
+ }>;
3292
+ }>>;
3293
+ register: import("@trpc/server").TRPCBuiltRouter<{
3294
+ ctx: Partial<{
3295
+ token: `Bearer ${string}`;
3296
+ user: {
3297
+ id: string & import("zod").$brand<"UUID">;
3298
+ type: "system";
3299
+ signature?: undefined;
3300
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3301
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3302
+ } | {
3303
+ id: string & import("zod").$brand<"UUID">;
3304
+ type: "user";
3305
+ role: string;
3306
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
3307
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3308
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3309
+ };
3310
+ }>;
3311
+ meta: import("trpc-to-openapi").OpenApiMeta;
3312
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
3313
+ transformer: true;
3314
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
3315
+ request: import("@trpc/server").TRPCMutationProcedure<{
3316
+ input: import("../commons").ActionInput;
3317
+ output: import("../commons").EventDocument;
3318
+ meta: import("trpc-to-openapi").OpenApiMeta;
3319
+ }>;
3320
+ accept: import("@trpc/server").TRPCMutationProcedure<{
3321
+ input: (Omit<{
3322
+ eventId: string;
3323
+ transactionId: string;
3324
+ declaration?: Record<string, unknown> | undefined;
3325
+ annotation?: Record<string, unknown> | undefined;
3326
+ originalActionId?: string | undefined;
3327
+ keepAssignment?: boolean | undefined;
3328
+ keepAssignmentIfAccepted?: boolean | undefined;
3329
+ keepAssignmentIfRejected?: boolean | undefined;
3330
+ waitFor?: boolean | undefined;
3331
+ type?: "CREATE" | undefined;
3332
+ createdAtLocation?: string | null | undefined;
3333
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3334
+ eventId: string;
3335
+ transactionId: string;
3336
+ declaration?: Record<string, unknown> | undefined;
3337
+ annotation?: Record<string, unknown> | undefined;
3338
+ originalActionId?: string | undefined;
3339
+ keepAssignment?: boolean | undefined;
3340
+ keepAssignmentIfAccepted?: boolean | undefined;
3341
+ keepAssignmentIfRejected?: boolean | undefined;
3342
+ waitFor?: boolean | undefined;
3343
+ createdAtLocation?: string | null | undefined;
3344
+ type?: "REGISTER" | undefined;
3345
+ registrationNumber?: string | undefined;
3346
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3347
+ eventId: string;
3348
+ transactionId: string;
3349
+ declaration?: Record<string, unknown> | undefined;
3350
+ annotation?: Record<string, unknown> | undefined;
3351
+ originalActionId?: string | undefined;
3352
+ keepAssignment?: boolean | undefined;
3353
+ keepAssignmentIfAccepted?: boolean | undefined;
3354
+ keepAssignmentIfRejected?: boolean | undefined;
3355
+ waitFor?: boolean | undefined;
3356
+ type?: "NOTIFY" | undefined;
3357
+ createdAtLocation?: string | null | undefined;
3358
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3359
+ eventId: string;
3360
+ transactionId: string;
3361
+ declaration?: Record<string, unknown> | undefined;
3362
+ annotation?: Record<string, unknown> | undefined;
3363
+ originalActionId?: string | undefined;
3364
+ keepAssignment?: boolean | undefined;
3365
+ keepAssignmentIfAccepted?: boolean | undefined;
3366
+ keepAssignmentIfRejected?: boolean | undefined;
3367
+ waitFor?: boolean | undefined;
3368
+ createdAtLocation?: string | null | undefined;
3369
+ type?: "DECLARE" | undefined;
3370
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3371
+ eventId: string;
3372
+ transactionId: string;
3373
+ content: {
3374
+ reason: string;
3375
+ };
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?: "REJECT" | undefined;
3385
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3386
+ eventId: string;
3387
+ transactionId: string;
3388
+ content: {
3389
+ duplicates: {
3390
+ id: string;
3391
+ trackingId: string;
3392
+ }[];
3393
+ };
3394
+ declaration?: Record<string, unknown> | undefined;
3395
+ annotation?: Record<string, unknown> | undefined;
3396
+ originalActionId?: string | undefined;
3397
+ keepAssignment?: boolean | undefined;
3398
+ keepAssignmentIfAccepted?: boolean | undefined;
3399
+ keepAssignmentIfRejected?: boolean | undefined;
3400
+ waitFor?: boolean | undefined;
3401
+ createdAtLocation?: string | null | undefined;
3402
+ type?: "DUPLICATE_DETECTED" | undefined;
3403
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3404
+ eventId: string;
3405
+ transactionId: string;
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?: "MARK_AS_DUPLICATE" | undefined;
3415
+ content?: {
3416
+ duplicateOf: string;
3417
+ } | undefined;
3418
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3419
+ eventId: string;
3420
+ transactionId: string;
3421
+ declaration?: Record<string, unknown> | undefined;
3422
+ annotation?: Record<string, unknown> | undefined;
3423
+ originalActionId?: string | undefined;
3424
+ keepAssignment?: boolean | undefined;
3425
+ keepAssignmentIfAccepted?: boolean | undefined;
3426
+ keepAssignmentIfRejected?: boolean | undefined;
3427
+ waitFor?: boolean | undefined;
3428
+ createdAtLocation?: string | null | undefined;
3429
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
3430
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3431
+ eventId: string;
3432
+ transactionId: string;
3433
+ content: {
3434
+ reason: string;
3435
+ };
3436
+ declaration?: Record<string, unknown> | undefined;
3437
+ annotation?: Record<string, unknown> | undefined;
3438
+ originalActionId?: string | undefined;
3439
+ keepAssignment?: boolean | undefined;
3440
+ keepAssignmentIfAccepted?: boolean | undefined;
3441
+ keepAssignmentIfRejected?: boolean | undefined;
3442
+ waitFor?: boolean | undefined;
3443
+ createdAtLocation?: string | null | undefined;
3444
+ type?: "ARCHIVE" | undefined;
3445
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3446
+ eventId: string;
3447
+ transactionId: string;
3448
+ type: "ASSIGN";
3449
+ assignedTo: string;
3450
+ declaration?: Record<string, unknown> | undefined;
3451
+ annotation?: Record<string, unknown> | undefined;
3452
+ originalActionId?: string | undefined;
3453
+ keepAssignment?: boolean | undefined;
3454
+ keepAssignmentIfAccepted?: boolean | undefined;
3455
+ keepAssignmentIfRejected?: boolean | undefined;
3456
+ waitFor?: boolean | undefined;
3457
+ createdAtLocation?: string | null | undefined;
3458
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1633
3459
  eventId: string;
1634
- actionId: string;
1635
3460
  transactionId: string;
1636
- };
1637
- output: import("../commons").EventDocument;
1638
- meta: import("trpc-to-openapi").OpenApiMeta;
1639
- }>;
1640
- }>>;
1641
- archive: import("@trpc/server").TRPCBuiltRouter<{
1642
- ctx: Partial<{
1643
- token: `Bearer ${string}`;
1644
- user: {
1645
- id: string & import("zod").$brand<"UUID">;
1646
- type: "system";
1647
- signature?: undefined;
1648
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1649
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1650
- } | {
1651
- id: string & import("zod").$brand<"UUID">;
1652
- type: "user";
1653
- role: string;
1654
- primaryOfficeId: string & import("zod").$brand<"UUID">;
1655
- signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1656
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1657
- };
1658
- }>;
1659
- meta: import("trpc-to-openapi").OpenApiMeta;
1660
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1661
- transformer: true;
1662
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1663
- request: import("@trpc/server").TRPCMutationProcedure<{
1664
- input: import("../commons").ActionInput;
1665
- output: import("../commons").EventDocument;
1666
- meta: import("trpc-to-openapi").OpenApiMeta;
1667
- }>;
1668
- accept: import("@trpc/server").TRPCMutationProcedure<{
1669
- input: import("../commons").ActionInput & {
3461
+ declaration?: Record<string, unknown> | undefined;
3462
+ annotation?: Record<string, unknown> | undefined;
3463
+ originalActionId?: string | undefined;
3464
+ keepAssignment?: boolean | undefined;
3465
+ keepAssignmentIfAccepted?: boolean | undefined;
3466
+ keepAssignmentIfRejected?: boolean | undefined;
3467
+ waitFor?: boolean | undefined;
3468
+ createdAtLocation?: string | null | undefined;
3469
+ type?: "UNASSIGN" | undefined;
3470
+ assignedTo?: null | undefined;
3471
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3472
+ eventId: string;
3473
+ transactionId: string;
3474
+ declaration?: Record<string, unknown> | undefined;
3475
+ annotation?: Record<string, unknown> | undefined;
3476
+ originalActionId?: string | undefined;
3477
+ keepAssignment?: boolean | undefined;
3478
+ keepAssignmentIfAccepted?: boolean | undefined;
3479
+ keepAssignmentIfRejected?: boolean | undefined;
3480
+ waitFor?: boolean | undefined;
3481
+ createdAtLocation?: string | null | undefined;
3482
+ type?: "PRINT_CERTIFICATE" | undefined;
3483
+ content?: {
3484
+ templateId?: string | undefined;
3485
+ } | undefined;
3486
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3487
+ eventId: string;
3488
+ transactionId: string;
3489
+ declaration?: Record<string, unknown> | undefined;
3490
+ annotation?: Record<string, unknown> | undefined;
3491
+ originalActionId?: string | undefined;
3492
+ keepAssignment?: boolean | undefined;
3493
+ keepAssignmentIfAccepted?: boolean | undefined;
3494
+ keepAssignmentIfRejected?: boolean | undefined;
3495
+ waitFor?: boolean | undefined;
3496
+ createdAtLocation?: string | null | undefined;
3497
+ type?: "REQUEST_CORRECTION" | undefined;
3498
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3499
+ eventId: string;
3500
+ transactionId: string;
3501
+ requestId: string;
3502
+ content: {
3503
+ reason: string;
3504
+ };
3505
+ declaration?: Record<string, unknown> | undefined;
3506
+ annotation?: Record<string, unknown> | undefined;
3507
+ originalActionId?: string | undefined;
3508
+ keepAssignment?: boolean | undefined;
3509
+ keepAssignmentIfAccepted?: boolean | undefined;
3510
+ keepAssignmentIfRejected?: boolean | undefined;
3511
+ waitFor?: boolean | undefined;
3512
+ createdAtLocation?: string | null | undefined;
3513
+ type?: "REJECT_CORRECTION" | undefined;
3514
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3515
+ eventId: string;
3516
+ transactionId: string;
3517
+ requestId: string;
3518
+ declaration?: Record<string, unknown> | undefined;
3519
+ annotation?: Record<string, unknown> | undefined;
3520
+ originalActionId?: string | undefined;
3521
+ keepAssignment?: boolean | undefined;
3522
+ keepAssignmentIfAccepted?: boolean | undefined;
3523
+ keepAssignmentIfRejected?: boolean | undefined;
3524
+ waitFor?: boolean | undefined;
3525
+ createdAtLocation?: string | null | undefined;
3526
+ type?: "APPROVE_CORRECTION" | undefined;
3527
+ content?: {
3528
+ immediateCorrection?: boolean | undefined;
3529
+ } | undefined;
3530
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3531
+ eventId: string;
3532
+ transactionId: string;
3533
+ declaration?: Record<string, unknown> | undefined;
3534
+ annotation?: Record<string, unknown> | undefined;
3535
+ originalActionId?: string | undefined;
3536
+ keepAssignment?: boolean | undefined;
3537
+ keepAssignmentIfAccepted?: boolean | undefined;
3538
+ keepAssignmentIfRejected?: boolean | undefined;
3539
+ waitFor?: boolean | undefined;
3540
+ createdAtLocation?: string | null | undefined;
3541
+ type?: "READ" | undefined;
3542
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3543
+ eventId: string;
3544
+ transactionId: string;
3545
+ customActionType: string;
3546
+ declaration?: Record<string, unknown> | undefined;
3547
+ annotation?: Record<string, unknown> | undefined;
3548
+ originalActionId?: string | undefined;
3549
+ keepAssignment?: boolean | undefined;
3550
+ keepAssignmentIfAccepted?: boolean | undefined;
3551
+ keepAssignmentIfRejected?: boolean | undefined;
3552
+ waitFor?: boolean | undefined;
3553
+ createdAtLocation?: string | null | undefined;
3554
+ type?: "CUSTOM" | undefined;
3555
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3556
+ eventId: string;
3557
+ transactionId: string;
3558
+ content: {
3559
+ comment?: string | undefined;
3560
+ };
3561
+ declaration?: Record<string, unknown> | undefined;
3562
+ annotation?: Record<string, unknown> | undefined;
3563
+ originalActionId?: string | undefined;
3564
+ keepAssignment?: boolean | undefined;
3565
+ keepAssignmentIfAccepted?: boolean | undefined;
3566
+ keepAssignmentIfRejected?: boolean | undefined;
3567
+ waitFor?: boolean | undefined;
3568
+ createdAtLocation?: string | null | undefined;
3569
+ type?: "EDIT" | undefined;
3570
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
1670
3571
  actionId: string;
1671
3572
  };
1672
3573
  output: import("../commons").EventDocument;
1673
3574
  meta: import("trpc-to-openapi").OpenApiMeta;
1674
3575
  }>;
1675
3576
  reject: import("@trpc/server").TRPCMutationProcedure<{
1676
- input: {
1677
- eventId: string;
1678
- actionId: string;
1679
- transactionId: string;
1680
- };
3577
+ input: import("zod").input<import("zod").ZodObject<{
3578
+ transactionId: import("zod").ZodString;
3579
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3580
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3581
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3582
+ }, import("zod/v4/core").$strip>>;
1681
3583
  output: import("../commons").EventDocument;
1682
3584
  meta: import("trpc-to-openapi").OpenApiMeta;
1683
3585
  }>;
1684
3586
  }>>;
1685
- register: import("@trpc/server").TRPCBuiltRouter<{
3587
+ printCertificate: import("@trpc/server").TRPCBuiltRouter<{
1686
3588
  ctx: Partial<{
1687
3589
  token: `Bearer ${string}`;
1688
3590
  user: {
@@ -1710,62 +3612,268 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1710
3612
  meta: import("trpc-to-openapi").OpenApiMeta;
1711
3613
  }>;
1712
3614
  accept: import("@trpc/server").TRPCMutationProcedure<{
1713
- input: import("../commons").ActionInput & {
1714
- actionId: string;
1715
- };
1716
- output: import("../commons").EventDocument;
1717
- meta: import("trpc-to-openapi").OpenApiMeta;
1718
- }>;
1719
- reject: import("@trpc/server").TRPCMutationProcedure<{
1720
- input: {
3615
+ input: (Omit<{
3616
+ eventId: string;
3617
+ transactionId: string;
3618
+ declaration?: Record<string, unknown> | undefined;
3619
+ annotation?: Record<string, unknown> | undefined;
3620
+ originalActionId?: string | undefined;
3621
+ keepAssignment?: boolean | undefined;
3622
+ keepAssignmentIfAccepted?: boolean | undefined;
3623
+ keepAssignmentIfRejected?: boolean | undefined;
3624
+ waitFor?: boolean | undefined;
3625
+ type?: "CREATE" | undefined;
3626
+ createdAtLocation?: string | null | undefined;
3627
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3628
+ eventId: string;
3629
+ transactionId: string;
3630
+ declaration?: Record<string, unknown> | undefined;
3631
+ annotation?: Record<string, unknown> | undefined;
3632
+ originalActionId?: string | undefined;
3633
+ keepAssignment?: boolean | undefined;
3634
+ keepAssignmentIfAccepted?: boolean | undefined;
3635
+ keepAssignmentIfRejected?: boolean | undefined;
3636
+ waitFor?: boolean | undefined;
3637
+ createdAtLocation?: string | null | undefined;
3638
+ type?: "REGISTER" | undefined;
3639
+ registrationNumber?: string | undefined;
3640
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3641
+ eventId: string;
3642
+ transactionId: string;
3643
+ declaration?: Record<string, unknown> | undefined;
3644
+ annotation?: Record<string, unknown> | undefined;
3645
+ originalActionId?: string | undefined;
3646
+ keepAssignment?: boolean | undefined;
3647
+ keepAssignmentIfAccepted?: boolean | undefined;
3648
+ keepAssignmentIfRejected?: boolean | undefined;
3649
+ waitFor?: boolean | undefined;
3650
+ type?: "NOTIFY" | undefined;
3651
+ createdAtLocation?: string | null | undefined;
3652
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3653
+ eventId: string;
3654
+ transactionId: string;
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?: "DECLARE" | undefined;
3664
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3665
+ eventId: string;
3666
+ transactionId: string;
3667
+ content: {
3668
+ reason: string;
3669
+ };
3670
+ declaration?: Record<string, unknown> | undefined;
3671
+ annotation?: Record<string, unknown> | undefined;
3672
+ originalActionId?: string | undefined;
3673
+ keepAssignment?: boolean | undefined;
3674
+ keepAssignmentIfAccepted?: boolean | undefined;
3675
+ keepAssignmentIfRejected?: boolean | undefined;
3676
+ waitFor?: boolean | undefined;
3677
+ createdAtLocation?: string | null | undefined;
3678
+ type?: "REJECT" | undefined;
3679
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3680
+ eventId: string;
3681
+ transactionId: string;
3682
+ content: {
3683
+ duplicates: {
3684
+ id: string;
3685
+ trackingId: string;
3686
+ }[];
3687
+ };
3688
+ declaration?: Record<string, unknown> | undefined;
3689
+ annotation?: Record<string, unknown> | undefined;
3690
+ originalActionId?: string | undefined;
3691
+ keepAssignment?: boolean | undefined;
3692
+ keepAssignmentIfAccepted?: boolean | undefined;
3693
+ keepAssignmentIfRejected?: boolean | undefined;
3694
+ waitFor?: boolean | undefined;
3695
+ createdAtLocation?: string | null | undefined;
3696
+ type?: "DUPLICATE_DETECTED" | undefined;
3697
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3698
+ eventId: string;
3699
+ transactionId: string;
3700
+ declaration?: Record<string, unknown> | undefined;
3701
+ annotation?: Record<string, unknown> | undefined;
3702
+ originalActionId?: string | undefined;
3703
+ keepAssignment?: boolean | undefined;
3704
+ keepAssignmentIfAccepted?: boolean | undefined;
3705
+ keepAssignmentIfRejected?: boolean | undefined;
3706
+ waitFor?: boolean | undefined;
3707
+ createdAtLocation?: string | null | undefined;
3708
+ type?: "MARK_AS_DUPLICATE" | undefined;
3709
+ content?: {
3710
+ duplicateOf: string;
3711
+ } | undefined;
3712
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3713
+ eventId: string;
3714
+ transactionId: string;
3715
+ declaration?: Record<string, unknown> | undefined;
3716
+ annotation?: Record<string, unknown> | undefined;
3717
+ originalActionId?: string | undefined;
3718
+ keepAssignment?: boolean | undefined;
3719
+ keepAssignmentIfAccepted?: boolean | undefined;
3720
+ keepAssignmentIfRejected?: boolean | undefined;
3721
+ waitFor?: boolean | undefined;
3722
+ createdAtLocation?: string | null | undefined;
3723
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
3724
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3725
+ eventId: string;
3726
+ transactionId: string;
3727
+ content: {
3728
+ reason: string;
3729
+ };
3730
+ declaration?: Record<string, unknown> | undefined;
3731
+ annotation?: Record<string, unknown> | undefined;
3732
+ originalActionId?: string | undefined;
3733
+ keepAssignment?: boolean | undefined;
3734
+ keepAssignmentIfAccepted?: boolean | undefined;
3735
+ keepAssignmentIfRejected?: boolean | undefined;
3736
+ waitFor?: boolean | undefined;
3737
+ createdAtLocation?: string | null | undefined;
3738
+ type?: "ARCHIVE" | undefined;
3739
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3740
+ eventId: string;
3741
+ transactionId: string;
3742
+ type: "ASSIGN";
3743
+ assignedTo: string;
3744
+ declaration?: Record<string, unknown> | undefined;
3745
+ annotation?: Record<string, unknown> | undefined;
3746
+ originalActionId?: string | undefined;
3747
+ keepAssignment?: boolean | undefined;
3748
+ keepAssignmentIfAccepted?: boolean | undefined;
3749
+ keepAssignmentIfRejected?: boolean | undefined;
3750
+ waitFor?: boolean | undefined;
3751
+ createdAtLocation?: string | null | undefined;
3752
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3753
+ eventId: string;
3754
+ transactionId: string;
3755
+ declaration?: Record<string, unknown> | undefined;
3756
+ annotation?: Record<string, unknown> | undefined;
3757
+ originalActionId?: string | undefined;
3758
+ keepAssignment?: boolean | undefined;
3759
+ keepAssignmentIfAccepted?: boolean | undefined;
3760
+ keepAssignmentIfRejected?: boolean | undefined;
3761
+ waitFor?: boolean | undefined;
3762
+ createdAtLocation?: string | null | undefined;
3763
+ type?: "UNASSIGN" | undefined;
3764
+ assignedTo?: null | undefined;
3765
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3766
+ eventId: string;
3767
+ transactionId: string;
3768
+ declaration?: Record<string, unknown> | undefined;
3769
+ annotation?: Record<string, unknown> | undefined;
3770
+ originalActionId?: string | undefined;
3771
+ keepAssignment?: boolean | undefined;
3772
+ keepAssignmentIfAccepted?: boolean | undefined;
3773
+ keepAssignmentIfRejected?: boolean | undefined;
3774
+ waitFor?: boolean | undefined;
3775
+ createdAtLocation?: string | null | undefined;
3776
+ type?: "PRINT_CERTIFICATE" | undefined;
3777
+ content?: {
3778
+ templateId?: string | undefined;
3779
+ } | undefined;
3780
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3781
+ eventId: string;
3782
+ transactionId: string;
3783
+ declaration?: Record<string, unknown> | undefined;
3784
+ annotation?: Record<string, unknown> | undefined;
3785
+ originalActionId?: string | undefined;
3786
+ keepAssignment?: boolean | undefined;
3787
+ keepAssignmentIfAccepted?: boolean | undefined;
3788
+ keepAssignmentIfRejected?: boolean | undefined;
3789
+ waitFor?: boolean | undefined;
3790
+ createdAtLocation?: string | null | undefined;
3791
+ type?: "REQUEST_CORRECTION" | undefined;
3792
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3793
+ eventId: string;
3794
+ transactionId: string;
3795
+ requestId: string;
3796
+ content: {
3797
+ reason: string;
3798
+ };
3799
+ declaration?: Record<string, unknown> | undefined;
3800
+ annotation?: Record<string, unknown> | undefined;
3801
+ originalActionId?: string | undefined;
3802
+ keepAssignment?: boolean | undefined;
3803
+ keepAssignmentIfAccepted?: boolean | undefined;
3804
+ keepAssignmentIfRejected?: boolean | undefined;
3805
+ waitFor?: boolean | undefined;
3806
+ createdAtLocation?: string | null | undefined;
3807
+ type?: "REJECT_CORRECTION" | undefined;
3808
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1721
3809
  eventId: string;
1722
- actionId: string;
1723
3810
  transactionId: string;
1724
- };
1725
- output: import("../commons").EventDocument;
1726
- meta: import("trpc-to-openapi").OpenApiMeta;
1727
- }>;
1728
- }>>;
1729
- printCertificate: import("@trpc/server").TRPCBuiltRouter<{
1730
- ctx: Partial<{
1731
- token: `Bearer ${string}`;
1732
- user: {
1733
- id: string & import("zod").$brand<"UUID">;
1734
- type: "system";
1735
- signature?: undefined;
1736
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1737
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1738
- } | {
1739
- id: string & import("zod").$brand<"UUID">;
1740
- type: "user";
1741
- role: string;
1742
- primaryOfficeId: string & import("zod").$brand<"UUID">;
1743
- signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1744
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1745
- };
1746
- }>;
1747
- meta: import("trpc-to-openapi").OpenApiMeta;
1748
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1749
- transformer: true;
1750
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1751
- request: import("@trpc/server").TRPCMutationProcedure<{
1752
- input: import("../commons").ActionInput;
1753
- output: import("../commons").EventDocument;
1754
- meta: import("trpc-to-openapi").OpenApiMeta;
1755
- }>;
1756
- accept: import("@trpc/server").TRPCMutationProcedure<{
1757
- input: import("../commons").ActionInput & {
3811
+ requestId: string;
3812
+ declaration?: Record<string, unknown> | undefined;
3813
+ annotation?: Record<string, unknown> | undefined;
3814
+ originalActionId?: string | undefined;
3815
+ keepAssignment?: boolean | undefined;
3816
+ keepAssignmentIfAccepted?: boolean | undefined;
3817
+ keepAssignmentIfRejected?: boolean | undefined;
3818
+ waitFor?: boolean | undefined;
3819
+ createdAtLocation?: string | null | undefined;
3820
+ type?: "APPROVE_CORRECTION" | undefined;
3821
+ content?: {
3822
+ immediateCorrection?: boolean | undefined;
3823
+ } | undefined;
3824
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3825
+ eventId: string;
3826
+ transactionId: string;
3827
+ declaration?: Record<string, unknown> | undefined;
3828
+ annotation?: Record<string, unknown> | undefined;
3829
+ originalActionId?: string | undefined;
3830
+ keepAssignment?: boolean | undefined;
3831
+ keepAssignmentIfAccepted?: boolean | undefined;
3832
+ keepAssignmentIfRejected?: boolean | undefined;
3833
+ waitFor?: boolean | undefined;
3834
+ createdAtLocation?: string | null | undefined;
3835
+ type?: "READ" | undefined;
3836
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3837
+ eventId: string;
3838
+ transactionId: string;
3839
+ customActionType: string;
3840
+ declaration?: Record<string, unknown> | undefined;
3841
+ annotation?: Record<string, unknown> | undefined;
3842
+ originalActionId?: string | undefined;
3843
+ keepAssignment?: boolean | undefined;
3844
+ keepAssignmentIfAccepted?: boolean | undefined;
3845
+ keepAssignmentIfRejected?: boolean | undefined;
3846
+ waitFor?: boolean | undefined;
3847
+ createdAtLocation?: string | null | undefined;
3848
+ type?: "CUSTOM" | undefined;
3849
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3850
+ eventId: string;
3851
+ transactionId: string;
3852
+ content: {
3853
+ comment?: string | undefined;
3854
+ };
3855
+ declaration?: Record<string, unknown> | undefined;
3856
+ annotation?: Record<string, unknown> | undefined;
3857
+ originalActionId?: string | undefined;
3858
+ keepAssignment?: boolean | undefined;
3859
+ keepAssignmentIfAccepted?: boolean | undefined;
3860
+ keepAssignmentIfRejected?: boolean | undefined;
3861
+ waitFor?: boolean | undefined;
3862
+ createdAtLocation?: string | null | undefined;
3863
+ type?: "EDIT" | undefined;
3864
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
1758
3865
  actionId: string;
1759
3866
  };
1760
3867
  output: import("../commons").EventDocument;
1761
3868
  meta: import("trpc-to-openapi").OpenApiMeta;
1762
3869
  }>;
1763
3870
  reject: import("@trpc/server").TRPCMutationProcedure<{
1764
- input: {
1765
- eventId: string;
1766
- actionId: string;
1767
- transactionId: string;
1768
- };
3871
+ input: import("zod").input<import("zod").ZodObject<{
3872
+ transactionId: import("zod").ZodString;
3873
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3874
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3875
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3876
+ }, import("zod/v4/core").$strip>>;
1769
3877
  output: import("../commons").EventDocument;
1770
3878
  meta: import("trpc-to-openapi").OpenApiMeta;
1771
3879
  }>;
@@ -1801,6 +3909,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1801
3909
  annotation?: Record<string, unknown> | undefined;
1802
3910
  originalActionId?: string | undefined;
1803
3911
  keepAssignment?: boolean | undefined;
3912
+ keepAssignmentIfAccepted?: boolean | undefined;
3913
+ keepAssignmentIfRejected?: boolean | undefined;
1804
3914
  waitFor?: boolean | undefined;
1805
3915
  createdAtLocation?: string | null | undefined;
1806
3916
  type?: "CUSTOM" | undefined;
@@ -1996,6 +4106,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1996
4106
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1997
4107
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1998
4108
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4109
+ content?: {
4110
+ immediateCorrection?: boolean | undefined;
4111
+ } | undefined;
1999
4112
  } | {
2000
4113
  id: string & import("zod").$brand<"UUID">;
2001
4114
  transactionId: string;
@@ -2109,18 +4222,268 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2109
4222
  meta: import("trpc-to-openapi").OpenApiMeta;
2110
4223
  }>;
2111
4224
  accept: import("@trpc/server").TRPCMutationProcedure<{
2112
- input: import("../commons").ActionInput & {
4225
+ input: (Omit<{
4226
+ eventId: string;
4227
+ transactionId: string;
4228
+ declaration?: Record<string, unknown> | undefined;
4229
+ annotation?: Record<string, unknown> | undefined;
4230
+ originalActionId?: string | undefined;
4231
+ keepAssignment?: boolean | undefined;
4232
+ keepAssignmentIfAccepted?: boolean | undefined;
4233
+ keepAssignmentIfRejected?: boolean | undefined;
4234
+ waitFor?: boolean | undefined;
4235
+ type?: "CREATE" | undefined;
4236
+ createdAtLocation?: string | null | undefined;
4237
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4238
+ eventId: string;
4239
+ transactionId: string;
4240
+ declaration?: Record<string, unknown> | undefined;
4241
+ annotation?: Record<string, unknown> | undefined;
4242
+ originalActionId?: string | undefined;
4243
+ keepAssignment?: boolean | undefined;
4244
+ keepAssignmentIfAccepted?: boolean | undefined;
4245
+ keepAssignmentIfRejected?: boolean | undefined;
4246
+ waitFor?: boolean | undefined;
4247
+ createdAtLocation?: string | null | undefined;
4248
+ type?: "REGISTER" | undefined;
4249
+ registrationNumber?: string | undefined;
4250
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4251
+ eventId: string;
4252
+ transactionId: string;
4253
+ declaration?: Record<string, unknown> | undefined;
4254
+ annotation?: Record<string, unknown> | undefined;
4255
+ originalActionId?: string | undefined;
4256
+ keepAssignment?: boolean | undefined;
4257
+ keepAssignmentIfAccepted?: boolean | undefined;
4258
+ keepAssignmentIfRejected?: boolean | undefined;
4259
+ waitFor?: boolean | undefined;
4260
+ type?: "NOTIFY" | undefined;
4261
+ createdAtLocation?: string | null | undefined;
4262
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4263
+ eventId: string;
4264
+ transactionId: string;
4265
+ declaration?: Record<string, unknown> | undefined;
4266
+ annotation?: Record<string, unknown> | undefined;
4267
+ originalActionId?: string | undefined;
4268
+ keepAssignment?: boolean | undefined;
4269
+ keepAssignmentIfAccepted?: boolean | undefined;
4270
+ keepAssignmentIfRejected?: boolean | undefined;
4271
+ waitFor?: boolean | undefined;
4272
+ createdAtLocation?: string | null | undefined;
4273
+ type?: "DECLARE" | undefined;
4274
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4275
+ eventId: string;
4276
+ transactionId: string;
4277
+ content: {
4278
+ reason: string;
4279
+ };
4280
+ declaration?: Record<string, unknown> | undefined;
4281
+ annotation?: Record<string, unknown> | undefined;
4282
+ originalActionId?: string | undefined;
4283
+ keepAssignment?: boolean | undefined;
4284
+ keepAssignmentIfAccepted?: boolean | undefined;
4285
+ keepAssignmentIfRejected?: boolean | undefined;
4286
+ waitFor?: boolean | undefined;
4287
+ createdAtLocation?: string | null | undefined;
4288
+ type?: "REJECT" | undefined;
4289
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4290
+ eventId: string;
4291
+ transactionId: string;
4292
+ content: {
4293
+ duplicates: {
4294
+ id: string;
4295
+ trackingId: string;
4296
+ }[];
4297
+ };
4298
+ declaration?: Record<string, unknown> | undefined;
4299
+ annotation?: Record<string, unknown> | undefined;
4300
+ originalActionId?: string | undefined;
4301
+ keepAssignment?: boolean | undefined;
4302
+ keepAssignmentIfAccepted?: boolean | undefined;
4303
+ keepAssignmentIfRejected?: boolean | undefined;
4304
+ waitFor?: boolean | undefined;
4305
+ createdAtLocation?: string | null | undefined;
4306
+ type?: "DUPLICATE_DETECTED" | undefined;
4307
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4308
+ eventId: string;
4309
+ transactionId: string;
4310
+ declaration?: Record<string, unknown> | undefined;
4311
+ annotation?: Record<string, unknown> | undefined;
4312
+ originalActionId?: string | undefined;
4313
+ keepAssignment?: boolean | undefined;
4314
+ keepAssignmentIfAccepted?: boolean | undefined;
4315
+ keepAssignmentIfRejected?: boolean | undefined;
4316
+ waitFor?: boolean | undefined;
4317
+ createdAtLocation?: string | null | undefined;
4318
+ type?: "MARK_AS_DUPLICATE" | undefined;
4319
+ content?: {
4320
+ duplicateOf: string;
4321
+ } | undefined;
4322
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4323
+ eventId: string;
4324
+ transactionId: string;
4325
+ declaration?: Record<string, unknown> | undefined;
4326
+ annotation?: Record<string, unknown> | undefined;
4327
+ originalActionId?: string | undefined;
4328
+ keepAssignment?: boolean | undefined;
4329
+ keepAssignmentIfAccepted?: boolean | undefined;
4330
+ keepAssignmentIfRejected?: boolean | undefined;
4331
+ waitFor?: boolean | undefined;
4332
+ createdAtLocation?: string | null | undefined;
4333
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
4334
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4335
+ eventId: string;
4336
+ transactionId: string;
4337
+ content: {
4338
+ reason: string;
4339
+ };
4340
+ declaration?: Record<string, unknown> | undefined;
4341
+ annotation?: Record<string, unknown> | undefined;
4342
+ originalActionId?: string | undefined;
4343
+ keepAssignment?: boolean | undefined;
4344
+ keepAssignmentIfAccepted?: boolean | undefined;
4345
+ keepAssignmentIfRejected?: boolean | undefined;
4346
+ waitFor?: boolean | undefined;
4347
+ createdAtLocation?: string | null | undefined;
4348
+ type?: "ARCHIVE" | undefined;
4349
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4350
+ eventId: string;
4351
+ transactionId: string;
4352
+ type: "ASSIGN";
4353
+ assignedTo: 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
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4363
+ eventId: string;
4364
+ transactionId: string;
4365
+ declaration?: Record<string, unknown> | undefined;
4366
+ annotation?: Record<string, unknown> | undefined;
4367
+ originalActionId?: string | undefined;
4368
+ keepAssignment?: boolean | undefined;
4369
+ keepAssignmentIfAccepted?: boolean | undefined;
4370
+ keepAssignmentIfRejected?: boolean | undefined;
4371
+ waitFor?: boolean | undefined;
4372
+ createdAtLocation?: string | null | undefined;
4373
+ type?: "UNASSIGN" | undefined;
4374
+ assignedTo?: null | undefined;
4375
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4376
+ eventId: string;
4377
+ transactionId: string;
4378
+ declaration?: Record<string, unknown> | undefined;
4379
+ annotation?: Record<string, unknown> | undefined;
4380
+ originalActionId?: string | undefined;
4381
+ keepAssignment?: boolean | undefined;
4382
+ keepAssignmentIfAccepted?: boolean | undefined;
4383
+ keepAssignmentIfRejected?: boolean | undefined;
4384
+ waitFor?: boolean | undefined;
4385
+ createdAtLocation?: string | null | undefined;
4386
+ type?: "PRINT_CERTIFICATE" | undefined;
4387
+ content?: {
4388
+ templateId?: string | undefined;
4389
+ } | undefined;
4390
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4391
+ eventId: string;
4392
+ transactionId: string;
4393
+ declaration?: Record<string, unknown> | undefined;
4394
+ annotation?: Record<string, unknown> | undefined;
4395
+ originalActionId?: string | undefined;
4396
+ keepAssignment?: boolean | undefined;
4397
+ keepAssignmentIfAccepted?: boolean | undefined;
4398
+ keepAssignmentIfRejected?: boolean | undefined;
4399
+ waitFor?: boolean | undefined;
4400
+ createdAtLocation?: string | null | undefined;
4401
+ type?: "REQUEST_CORRECTION" | undefined;
4402
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4403
+ eventId: string;
4404
+ transactionId: string;
4405
+ requestId: string;
4406
+ content: {
4407
+ reason: string;
4408
+ };
4409
+ declaration?: Record<string, unknown> | undefined;
4410
+ annotation?: Record<string, unknown> | undefined;
4411
+ originalActionId?: string | undefined;
4412
+ keepAssignment?: boolean | undefined;
4413
+ keepAssignmentIfAccepted?: boolean | undefined;
4414
+ keepAssignmentIfRejected?: boolean | undefined;
4415
+ waitFor?: boolean | undefined;
4416
+ createdAtLocation?: string | null | undefined;
4417
+ type?: "REJECT_CORRECTION" | undefined;
4418
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4419
+ eventId: string;
4420
+ transactionId: string;
4421
+ requestId: string;
4422
+ declaration?: Record<string, unknown> | undefined;
4423
+ annotation?: Record<string, unknown> | undefined;
4424
+ originalActionId?: string | undefined;
4425
+ keepAssignment?: boolean | undefined;
4426
+ keepAssignmentIfAccepted?: boolean | undefined;
4427
+ keepAssignmentIfRejected?: boolean | undefined;
4428
+ waitFor?: boolean | undefined;
4429
+ createdAtLocation?: string | null | undefined;
4430
+ type?: "APPROVE_CORRECTION" | undefined;
4431
+ content?: {
4432
+ immediateCorrection?: boolean | undefined;
4433
+ } | undefined;
4434
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4435
+ eventId: string;
4436
+ transactionId: string;
4437
+ declaration?: Record<string, unknown> | undefined;
4438
+ annotation?: Record<string, unknown> | undefined;
4439
+ originalActionId?: string | undefined;
4440
+ keepAssignment?: boolean | undefined;
4441
+ keepAssignmentIfAccepted?: boolean | undefined;
4442
+ keepAssignmentIfRejected?: boolean | undefined;
4443
+ waitFor?: boolean | undefined;
4444
+ createdAtLocation?: string | null | undefined;
4445
+ type?: "READ" | undefined;
4446
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4447
+ eventId: string;
4448
+ transactionId: string;
4449
+ customActionType: string;
4450
+ declaration?: Record<string, unknown> | undefined;
4451
+ annotation?: Record<string, unknown> | undefined;
4452
+ originalActionId?: string | undefined;
4453
+ keepAssignment?: boolean | undefined;
4454
+ keepAssignmentIfAccepted?: boolean | undefined;
4455
+ keepAssignmentIfRejected?: boolean | undefined;
4456
+ waitFor?: boolean | undefined;
4457
+ createdAtLocation?: string | null | undefined;
4458
+ type?: "CUSTOM" | undefined;
4459
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4460
+ eventId: string;
4461
+ transactionId: string;
4462
+ content: {
4463
+ comment?: string | undefined;
4464
+ };
4465
+ declaration?: Record<string, unknown> | undefined;
4466
+ annotation?: Record<string, unknown> | undefined;
4467
+ originalActionId?: string | undefined;
4468
+ keepAssignment?: boolean | undefined;
4469
+ keepAssignmentIfAccepted?: boolean | undefined;
4470
+ keepAssignmentIfRejected?: boolean | undefined;
4471
+ waitFor?: boolean | undefined;
4472
+ createdAtLocation?: string | null | undefined;
4473
+ type?: "EDIT" | undefined;
4474
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2113
4475
  actionId: string;
2114
4476
  };
2115
4477
  output: import("../commons").EventDocument;
2116
4478
  meta: import("trpc-to-openapi").OpenApiMeta;
2117
- }>;
2118
- reject: import("@trpc/server").TRPCMutationProcedure<{
2119
- input: {
2120
- eventId: string;
2121
- actionId: string;
2122
- transactionId: string;
2123
- };
4479
+ }>;
4480
+ reject: import("@trpc/server").TRPCMutationProcedure<{
4481
+ input: import("zod").input<import("zod").ZodObject<{
4482
+ transactionId: import("zod").ZodString;
4483
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
4484
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
4485
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
4486
+ }, import("zod/v4/core").$strip>>;
2124
4487
  output: import("../commons").EventDocument;
2125
4488
  meta: import("trpc-to-openapi").OpenApiMeta;
2126
4489
  }>;
@@ -2157,6 +4520,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2157
4520
  annotation?: Record<string, unknown> | undefined;
2158
4521
  originalActionId?: string | undefined;
2159
4522
  keepAssignment?: boolean | undefined;
4523
+ keepAssignmentIfAccepted?: boolean | undefined;
4524
+ keepAssignmentIfRejected?: boolean | undefined;
2160
4525
  waitFor?: boolean | undefined;
2161
4526
  createdAtLocation?: string | null | undefined;
2162
4527
  };
@@ -2351,6 +4716,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2351
4716
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2352
4717
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
2353
4718
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4719
+ content?: {
4720
+ immediateCorrection?: boolean | undefined;
4721
+ } | undefined;
2354
4722
  } | {
2355
4723
  id: string & import("zod").$brand<"UUID">;
2356
4724
  transactionId: string;
@@ -2471,6 +4839,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2471
4839
  annotation?: Record<string, unknown> | undefined;
2472
4840
  originalActionId?: string | undefined;
2473
4841
  keepAssignment?: boolean | undefined;
4842
+ keepAssignmentIfAccepted?: boolean | undefined;
4843
+ keepAssignmentIfRejected?: boolean | undefined;
2474
4844
  waitFor?: boolean | undefined;
2475
4845
  createdAtLocation?: string | null | undefined;
2476
4846
  type?: "UNASSIGN" | undefined;
@@ -2667,6 +5037,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2667
5037
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
2668
5038
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
2669
5039
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5040
+ content?: {
5041
+ immediateCorrection?: boolean | undefined;
5042
+ } | undefined;
2670
5043
  } | {
2671
5044
  id: string & import("zod").$brand<"UUID">;
2672
5045
  transactionId: string;
@@ -2830,18 +5203,268 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2830
5203
  meta: import("trpc-to-openapi").OpenApiMeta;
2831
5204
  }>;
2832
5205
  accept: import("@trpc/server").TRPCMutationProcedure<{
2833
- input: import("../commons").ActionInput & {
5206
+ input: (Omit<{
5207
+ eventId: string;
5208
+ transactionId: string;
5209
+ declaration?: Record<string, unknown> | undefined;
5210
+ annotation?: Record<string, unknown> | undefined;
5211
+ originalActionId?: string | undefined;
5212
+ keepAssignment?: boolean | undefined;
5213
+ keepAssignmentIfAccepted?: boolean | undefined;
5214
+ keepAssignmentIfRejected?: boolean | undefined;
5215
+ waitFor?: boolean | undefined;
5216
+ type?: "CREATE" | undefined;
5217
+ createdAtLocation?: string | null | undefined;
5218
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5219
+ eventId: string;
5220
+ transactionId: string;
5221
+ declaration?: Record<string, unknown> | undefined;
5222
+ annotation?: Record<string, unknown> | undefined;
5223
+ originalActionId?: string | undefined;
5224
+ keepAssignment?: boolean | undefined;
5225
+ keepAssignmentIfAccepted?: boolean | undefined;
5226
+ keepAssignmentIfRejected?: boolean | undefined;
5227
+ waitFor?: boolean | undefined;
5228
+ createdAtLocation?: string | null | undefined;
5229
+ type?: "REGISTER" | undefined;
5230
+ registrationNumber?: string | undefined;
5231
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5232
+ eventId: string;
5233
+ transactionId: string;
5234
+ declaration?: Record<string, unknown> | undefined;
5235
+ annotation?: Record<string, unknown> | undefined;
5236
+ originalActionId?: string | undefined;
5237
+ keepAssignment?: boolean | undefined;
5238
+ keepAssignmentIfAccepted?: boolean | undefined;
5239
+ keepAssignmentIfRejected?: boolean | undefined;
5240
+ waitFor?: boolean | undefined;
5241
+ type?: "NOTIFY" | undefined;
5242
+ createdAtLocation?: string | null | undefined;
5243
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5244
+ eventId: string;
5245
+ transactionId: string;
5246
+ declaration?: Record<string, unknown> | undefined;
5247
+ annotation?: Record<string, unknown> | undefined;
5248
+ originalActionId?: string | undefined;
5249
+ keepAssignment?: boolean | undefined;
5250
+ keepAssignmentIfAccepted?: boolean | undefined;
5251
+ keepAssignmentIfRejected?: boolean | undefined;
5252
+ waitFor?: boolean | undefined;
5253
+ createdAtLocation?: string | null | undefined;
5254
+ type?: "DECLARE" | undefined;
5255
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5256
+ eventId: string;
5257
+ transactionId: string;
5258
+ content: {
5259
+ reason: string;
5260
+ };
5261
+ declaration?: Record<string, unknown> | undefined;
5262
+ annotation?: Record<string, unknown> | undefined;
5263
+ originalActionId?: string | undefined;
5264
+ keepAssignment?: boolean | undefined;
5265
+ keepAssignmentIfAccepted?: boolean | undefined;
5266
+ keepAssignmentIfRejected?: boolean | undefined;
5267
+ waitFor?: boolean | undefined;
5268
+ createdAtLocation?: string | null | undefined;
5269
+ type?: "REJECT" | undefined;
5270
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5271
+ eventId: string;
5272
+ transactionId: string;
5273
+ content: {
5274
+ duplicates: {
5275
+ id: string;
5276
+ trackingId: string;
5277
+ }[];
5278
+ };
5279
+ declaration?: Record<string, unknown> | undefined;
5280
+ annotation?: Record<string, unknown> | undefined;
5281
+ originalActionId?: string | undefined;
5282
+ keepAssignment?: boolean | undefined;
5283
+ keepAssignmentIfAccepted?: boolean | undefined;
5284
+ keepAssignmentIfRejected?: boolean | undefined;
5285
+ waitFor?: boolean | undefined;
5286
+ createdAtLocation?: string | null | undefined;
5287
+ type?: "DUPLICATE_DETECTED" | undefined;
5288
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5289
+ eventId: string;
5290
+ transactionId: string;
5291
+ declaration?: Record<string, unknown> | undefined;
5292
+ annotation?: Record<string, unknown> | undefined;
5293
+ originalActionId?: string | undefined;
5294
+ keepAssignment?: boolean | undefined;
5295
+ keepAssignmentIfAccepted?: boolean | undefined;
5296
+ keepAssignmentIfRejected?: boolean | undefined;
5297
+ waitFor?: boolean | undefined;
5298
+ createdAtLocation?: string | null | undefined;
5299
+ type?: "MARK_AS_DUPLICATE" | undefined;
5300
+ content?: {
5301
+ duplicateOf: string;
5302
+ } | undefined;
5303
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5304
+ eventId: string;
5305
+ transactionId: string;
5306
+ declaration?: Record<string, unknown> | undefined;
5307
+ annotation?: Record<string, unknown> | undefined;
5308
+ originalActionId?: string | undefined;
5309
+ keepAssignment?: boolean | undefined;
5310
+ keepAssignmentIfAccepted?: boolean | undefined;
5311
+ keepAssignmentIfRejected?: boolean | undefined;
5312
+ waitFor?: boolean | undefined;
5313
+ createdAtLocation?: string | null | undefined;
5314
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
5315
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5316
+ eventId: string;
5317
+ transactionId: string;
5318
+ content: {
5319
+ reason: string;
5320
+ };
5321
+ declaration?: Record<string, unknown> | undefined;
5322
+ annotation?: Record<string, unknown> | undefined;
5323
+ originalActionId?: string | undefined;
5324
+ keepAssignment?: boolean | undefined;
5325
+ keepAssignmentIfAccepted?: boolean | undefined;
5326
+ keepAssignmentIfRejected?: boolean | undefined;
5327
+ waitFor?: boolean | undefined;
5328
+ createdAtLocation?: string | null | undefined;
5329
+ type?: "ARCHIVE" | undefined;
5330
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5331
+ eventId: string;
5332
+ transactionId: string;
5333
+ type: "ASSIGN";
5334
+ assignedTo: string;
5335
+ declaration?: Record<string, unknown> | undefined;
5336
+ annotation?: Record<string, unknown> | undefined;
5337
+ originalActionId?: string | undefined;
5338
+ keepAssignment?: boolean | undefined;
5339
+ keepAssignmentIfAccepted?: boolean | undefined;
5340
+ keepAssignmentIfRejected?: boolean | undefined;
5341
+ waitFor?: boolean | undefined;
5342
+ createdAtLocation?: string | null | undefined;
5343
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5344
+ eventId: string;
5345
+ transactionId: string;
5346
+ declaration?: Record<string, unknown> | undefined;
5347
+ annotation?: Record<string, unknown> | undefined;
5348
+ originalActionId?: string | undefined;
5349
+ keepAssignment?: boolean | undefined;
5350
+ keepAssignmentIfAccepted?: boolean | undefined;
5351
+ keepAssignmentIfRejected?: boolean | undefined;
5352
+ waitFor?: boolean | undefined;
5353
+ createdAtLocation?: string | null | undefined;
5354
+ type?: "UNASSIGN" | undefined;
5355
+ assignedTo?: null | undefined;
5356
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5357
+ eventId: string;
5358
+ transactionId: string;
5359
+ declaration?: Record<string, unknown> | undefined;
5360
+ annotation?: Record<string, unknown> | undefined;
5361
+ originalActionId?: string | undefined;
5362
+ keepAssignment?: boolean | undefined;
5363
+ keepAssignmentIfAccepted?: boolean | undefined;
5364
+ keepAssignmentIfRejected?: boolean | undefined;
5365
+ waitFor?: boolean | undefined;
5366
+ createdAtLocation?: string | null | undefined;
5367
+ type?: "PRINT_CERTIFICATE" | undefined;
5368
+ content?: {
5369
+ templateId?: string | undefined;
5370
+ } | undefined;
5371
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5372
+ eventId: string;
5373
+ transactionId: string;
5374
+ declaration?: Record<string, unknown> | undefined;
5375
+ annotation?: Record<string, unknown> | undefined;
5376
+ originalActionId?: string | undefined;
5377
+ keepAssignment?: boolean | undefined;
5378
+ keepAssignmentIfAccepted?: boolean | undefined;
5379
+ keepAssignmentIfRejected?: boolean | undefined;
5380
+ waitFor?: boolean | undefined;
5381
+ createdAtLocation?: string | null | undefined;
5382
+ type?: "REQUEST_CORRECTION" | undefined;
5383
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5384
+ eventId: string;
5385
+ transactionId: string;
5386
+ requestId: string;
5387
+ content: {
5388
+ reason: string;
5389
+ };
5390
+ declaration?: Record<string, unknown> | undefined;
5391
+ annotation?: Record<string, unknown> | undefined;
5392
+ originalActionId?: string | undefined;
5393
+ keepAssignment?: boolean | undefined;
5394
+ keepAssignmentIfAccepted?: boolean | undefined;
5395
+ keepAssignmentIfRejected?: boolean | undefined;
5396
+ waitFor?: boolean | undefined;
5397
+ createdAtLocation?: string | null | undefined;
5398
+ type?: "REJECT_CORRECTION" | undefined;
5399
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5400
+ eventId: string;
5401
+ transactionId: string;
5402
+ requestId: string;
5403
+ declaration?: Record<string, unknown> | undefined;
5404
+ annotation?: Record<string, unknown> | undefined;
5405
+ originalActionId?: string | undefined;
5406
+ keepAssignment?: boolean | undefined;
5407
+ keepAssignmentIfAccepted?: boolean | undefined;
5408
+ keepAssignmentIfRejected?: boolean | undefined;
5409
+ waitFor?: boolean | undefined;
5410
+ createdAtLocation?: string | null | undefined;
5411
+ type?: "APPROVE_CORRECTION" | undefined;
5412
+ content?: {
5413
+ immediateCorrection?: boolean | undefined;
5414
+ } | undefined;
5415
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5416
+ eventId: string;
5417
+ transactionId: string;
5418
+ declaration?: Record<string, unknown> | undefined;
5419
+ annotation?: Record<string, unknown> | undefined;
5420
+ originalActionId?: string | undefined;
5421
+ keepAssignment?: boolean | undefined;
5422
+ keepAssignmentIfAccepted?: boolean | undefined;
5423
+ keepAssignmentIfRejected?: boolean | undefined;
5424
+ waitFor?: boolean | undefined;
5425
+ createdAtLocation?: string | null | undefined;
5426
+ type?: "READ" | undefined;
5427
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5428
+ eventId: string;
5429
+ transactionId: string;
5430
+ customActionType: string;
5431
+ declaration?: Record<string, unknown> | undefined;
5432
+ annotation?: Record<string, unknown> | undefined;
5433
+ originalActionId?: string | undefined;
5434
+ keepAssignment?: boolean | undefined;
5435
+ keepAssignmentIfAccepted?: boolean | undefined;
5436
+ keepAssignmentIfRejected?: boolean | undefined;
5437
+ waitFor?: boolean | undefined;
5438
+ createdAtLocation?: string | null | undefined;
5439
+ type?: "CUSTOM" | undefined;
5440
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5441
+ eventId: string;
5442
+ transactionId: string;
5443
+ content: {
5444
+ comment?: string | undefined;
5445
+ };
5446
+ declaration?: Record<string, unknown> | undefined;
5447
+ annotation?: Record<string, unknown> | undefined;
5448
+ originalActionId?: string | undefined;
5449
+ keepAssignment?: boolean | undefined;
5450
+ keepAssignmentIfAccepted?: boolean | undefined;
5451
+ keepAssignmentIfRejected?: boolean | undefined;
5452
+ waitFor?: boolean | undefined;
5453
+ createdAtLocation?: string | null | undefined;
5454
+ type?: "EDIT" | undefined;
5455
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2834
5456
  actionId: string;
2835
5457
  };
2836
5458
  output: import("../commons").EventDocument;
2837
5459
  meta: import("trpc-to-openapi").OpenApiMeta;
2838
5460
  }>;
2839
5461
  reject: import("@trpc/server").TRPCMutationProcedure<{
2840
- input: {
2841
- eventId: string;
2842
- actionId: string;
2843
- transactionId: string;
2844
- };
5462
+ input: import("zod").input<import("zod").ZodObject<{
5463
+ transactionId: import("zod").ZodString;
5464
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5465
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
5466
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5467
+ }, import("zod/v4/core").$strip>>;
2845
5468
  output: import("../commons").EventDocument;
2846
5469
  meta: import("trpc-to-openapi").OpenApiMeta;
2847
5470
  }>;
@@ -2874,18 +5497,268 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2874
5497
  meta: import("trpc-to-openapi").OpenApiMeta;
2875
5498
  }>;
2876
5499
  accept: import("@trpc/server").TRPCMutationProcedure<{
2877
- input: import("../commons").ActionInput & {
5500
+ input: (Omit<{
5501
+ eventId: string;
5502
+ transactionId: string;
5503
+ declaration?: Record<string, unknown> | undefined;
5504
+ annotation?: Record<string, unknown> | undefined;
5505
+ originalActionId?: string | undefined;
5506
+ keepAssignment?: boolean | undefined;
5507
+ keepAssignmentIfAccepted?: boolean | undefined;
5508
+ keepAssignmentIfRejected?: boolean | undefined;
5509
+ waitFor?: boolean | undefined;
5510
+ type?: "CREATE" | undefined;
5511
+ createdAtLocation?: string | null | undefined;
5512
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5513
+ eventId: string;
5514
+ transactionId: string;
5515
+ declaration?: Record<string, unknown> | undefined;
5516
+ annotation?: Record<string, unknown> | undefined;
5517
+ originalActionId?: string | undefined;
5518
+ keepAssignment?: boolean | undefined;
5519
+ keepAssignmentIfAccepted?: boolean | undefined;
5520
+ keepAssignmentIfRejected?: boolean | undefined;
5521
+ waitFor?: boolean | undefined;
5522
+ createdAtLocation?: string | null | undefined;
5523
+ type?: "REGISTER" | undefined;
5524
+ registrationNumber?: string | undefined;
5525
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5526
+ eventId: string;
5527
+ transactionId: string;
5528
+ declaration?: Record<string, unknown> | undefined;
5529
+ annotation?: Record<string, unknown> | undefined;
5530
+ originalActionId?: string | undefined;
5531
+ keepAssignment?: boolean | undefined;
5532
+ keepAssignmentIfAccepted?: boolean | undefined;
5533
+ keepAssignmentIfRejected?: boolean | undefined;
5534
+ waitFor?: boolean | undefined;
5535
+ type?: "NOTIFY" | undefined;
5536
+ createdAtLocation?: string | null | undefined;
5537
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5538
+ eventId: string;
5539
+ transactionId: string;
5540
+ declaration?: Record<string, unknown> | undefined;
5541
+ annotation?: Record<string, unknown> | undefined;
5542
+ originalActionId?: string | undefined;
5543
+ keepAssignment?: boolean | undefined;
5544
+ keepAssignmentIfAccepted?: boolean | undefined;
5545
+ keepAssignmentIfRejected?: boolean | undefined;
5546
+ waitFor?: boolean | undefined;
5547
+ createdAtLocation?: string | null | undefined;
5548
+ type?: "DECLARE" | undefined;
5549
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5550
+ eventId: string;
5551
+ transactionId: string;
5552
+ content: {
5553
+ reason: string;
5554
+ };
5555
+ declaration?: Record<string, unknown> | undefined;
5556
+ annotation?: Record<string, unknown> | undefined;
5557
+ originalActionId?: string | undefined;
5558
+ keepAssignment?: boolean | undefined;
5559
+ keepAssignmentIfAccepted?: boolean | undefined;
5560
+ keepAssignmentIfRejected?: boolean | undefined;
5561
+ waitFor?: boolean | undefined;
5562
+ createdAtLocation?: string | null | undefined;
5563
+ type?: "REJECT" | undefined;
5564
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5565
+ eventId: string;
5566
+ transactionId: string;
5567
+ content: {
5568
+ duplicates: {
5569
+ id: string;
5570
+ trackingId: string;
5571
+ }[];
5572
+ };
5573
+ declaration?: Record<string, unknown> | undefined;
5574
+ annotation?: Record<string, unknown> | undefined;
5575
+ originalActionId?: string | undefined;
5576
+ keepAssignment?: boolean | undefined;
5577
+ keepAssignmentIfAccepted?: boolean | undefined;
5578
+ keepAssignmentIfRejected?: boolean | undefined;
5579
+ waitFor?: boolean | undefined;
5580
+ createdAtLocation?: string | null | undefined;
5581
+ type?: "DUPLICATE_DETECTED" | undefined;
5582
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5583
+ eventId: string;
5584
+ transactionId: string;
5585
+ declaration?: Record<string, unknown> | undefined;
5586
+ annotation?: Record<string, unknown> | undefined;
5587
+ originalActionId?: string | undefined;
5588
+ keepAssignment?: boolean | undefined;
5589
+ keepAssignmentIfAccepted?: boolean | undefined;
5590
+ keepAssignmentIfRejected?: boolean | undefined;
5591
+ waitFor?: boolean | undefined;
5592
+ createdAtLocation?: string | null | undefined;
5593
+ type?: "MARK_AS_DUPLICATE" | undefined;
5594
+ content?: {
5595
+ duplicateOf: string;
5596
+ } | undefined;
5597
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5598
+ eventId: string;
5599
+ transactionId: string;
5600
+ declaration?: Record<string, unknown> | undefined;
5601
+ annotation?: Record<string, unknown> | undefined;
5602
+ originalActionId?: string | undefined;
5603
+ keepAssignment?: boolean | undefined;
5604
+ keepAssignmentIfAccepted?: boolean | undefined;
5605
+ keepAssignmentIfRejected?: boolean | undefined;
5606
+ waitFor?: boolean | undefined;
5607
+ createdAtLocation?: string | null | undefined;
5608
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
5609
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5610
+ eventId: string;
5611
+ transactionId: string;
5612
+ content: {
5613
+ reason: string;
5614
+ };
5615
+ declaration?: Record<string, unknown> | undefined;
5616
+ annotation?: Record<string, unknown> | undefined;
5617
+ originalActionId?: string | undefined;
5618
+ keepAssignment?: boolean | undefined;
5619
+ keepAssignmentIfAccepted?: boolean | undefined;
5620
+ keepAssignmentIfRejected?: boolean | undefined;
5621
+ waitFor?: boolean | undefined;
5622
+ createdAtLocation?: string | null | undefined;
5623
+ type?: "ARCHIVE" | undefined;
5624
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5625
+ eventId: string;
5626
+ transactionId: string;
5627
+ type: "ASSIGN";
5628
+ assignedTo: string;
5629
+ declaration?: Record<string, unknown> | undefined;
5630
+ annotation?: Record<string, unknown> | undefined;
5631
+ originalActionId?: string | undefined;
5632
+ keepAssignment?: boolean | undefined;
5633
+ keepAssignmentIfAccepted?: boolean | undefined;
5634
+ keepAssignmentIfRejected?: boolean | undefined;
5635
+ waitFor?: boolean | undefined;
5636
+ createdAtLocation?: string | null | undefined;
5637
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5638
+ eventId: string;
5639
+ transactionId: string;
5640
+ declaration?: Record<string, unknown> | undefined;
5641
+ annotation?: Record<string, unknown> | undefined;
5642
+ originalActionId?: string | undefined;
5643
+ keepAssignment?: boolean | undefined;
5644
+ keepAssignmentIfAccepted?: boolean | undefined;
5645
+ keepAssignmentIfRejected?: boolean | undefined;
5646
+ waitFor?: boolean | undefined;
5647
+ createdAtLocation?: string | null | undefined;
5648
+ type?: "UNASSIGN" | undefined;
5649
+ assignedTo?: null | undefined;
5650
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5651
+ eventId: string;
5652
+ transactionId: string;
5653
+ declaration?: Record<string, unknown> | undefined;
5654
+ annotation?: Record<string, unknown> | undefined;
5655
+ originalActionId?: string | undefined;
5656
+ keepAssignment?: boolean | undefined;
5657
+ keepAssignmentIfAccepted?: boolean | undefined;
5658
+ keepAssignmentIfRejected?: boolean | undefined;
5659
+ waitFor?: boolean | undefined;
5660
+ createdAtLocation?: string | null | undefined;
5661
+ type?: "PRINT_CERTIFICATE" | undefined;
5662
+ content?: {
5663
+ templateId?: string | undefined;
5664
+ } | undefined;
5665
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5666
+ eventId: string;
5667
+ transactionId: string;
5668
+ declaration?: Record<string, unknown> | undefined;
5669
+ annotation?: Record<string, unknown> | undefined;
5670
+ originalActionId?: string | undefined;
5671
+ keepAssignment?: boolean | undefined;
5672
+ keepAssignmentIfAccepted?: boolean | undefined;
5673
+ keepAssignmentIfRejected?: boolean | undefined;
5674
+ waitFor?: boolean | undefined;
5675
+ createdAtLocation?: string | null | undefined;
5676
+ type?: "REQUEST_CORRECTION" | undefined;
5677
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5678
+ eventId: string;
5679
+ transactionId: string;
5680
+ requestId: string;
5681
+ content: {
5682
+ reason: string;
5683
+ };
5684
+ declaration?: Record<string, unknown> | undefined;
5685
+ annotation?: Record<string, unknown> | undefined;
5686
+ originalActionId?: string | undefined;
5687
+ keepAssignment?: boolean | undefined;
5688
+ keepAssignmentIfAccepted?: boolean | undefined;
5689
+ keepAssignmentIfRejected?: boolean | undefined;
5690
+ waitFor?: boolean | undefined;
5691
+ createdAtLocation?: string | null | undefined;
5692
+ type?: "REJECT_CORRECTION" | undefined;
5693
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5694
+ eventId: string;
5695
+ transactionId: string;
5696
+ requestId: string;
5697
+ declaration?: Record<string, unknown> | undefined;
5698
+ annotation?: Record<string, unknown> | undefined;
5699
+ originalActionId?: string | undefined;
5700
+ keepAssignment?: boolean | undefined;
5701
+ keepAssignmentIfAccepted?: boolean | undefined;
5702
+ keepAssignmentIfRejected?: boolean | undefined;
5703
+ waitFor?: boolean | undefined;
5704
+ createdAtLocation?: string | null | undefined;
5705
+ type?: "APPROVE_CORRECTION" | undefined;
5706
+ content?: {
5707
+ immediateCorrection?: boolean | undefined;
5708
+ } | undefined;
5709
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5710
+ eventId: string;
5711
+ transactionId: string;
5712
+ declaration?: Record<string, unknown> | undefined;
5713
+ annotation?: Record<string, unknown> | undefined;
5714
+ originalActionId?: string | undefined;
5715
+ keepAssignment?: boolean | undefined;
5716
+ keepAssignmentIfAccepted?: boolean | undefined;
5717
+ keepAssignmentIfRejected?: boolean | undefined;
5718
+ waitFor?: boolean | undefined;
5719
+ createdAtLocation?: string | null | undefined;
5720
+ type?: "READ" | undefined;
5721
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5722
+ eventId: string;
5723
+ transactionId: string;
5724
+ customActionType: string;
5725
+ declaration?: Record<string, unknown> | undefined;
5726
+ annotation?: Record<string, unknown> | undefined;
5727
+ originalActionId?: string | undefined;
5728
+ keepAssignment?: boolean | undefined;
5729
+ keepAssignmentIfAccepted?: boolean | undefined;
5730
+ keepAssignmentIfRejected?: boolean | undefined;
5731
+ waitFor?: boolean | undefined;
5732
+ createdAtLocation?: string | null | undefined;
5733
+ type?: "CUSTOM" | undefined;
5734
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5735
+ eventId: string;
5736
+ transactionId: string;
5737
+ content: {
5738
+ comment?: string | undefined;
5739
+ };
5740
+ declaration?: Record<string, unknown> | undefined;
5741
+ annotation?: Record<string, unknown> | undefined;
5742
+ originalActionId?: string | undefined;
5743
+ keepAssignment?: boolean | undefined;
5744
+ keepAssignmentIfAccepted?: boolean | undefined;
5745
+ keepAssignmentIfRejected?: boolean | undefined;
5746
+ waitFor?: boolean | undefined;
5747
+ createdAtLocation?: string | null | undefined;
5748
+ type?: "EDIT" | undefined;
5749
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2878
5750
  actionId: string;
2879
5751
  };
2880
5752
  output: import("../commons").EventDocument;
2881
5753
  meta: import("trpc-to-openapi").OpenApiMeta;
2882
5754
  }>;
2883
5755
  reject: import("@trpc/server").TRPCMutationProcedure<{
2884
- input: {
2885
- eventId: string;
2886
- actionId: string;
2887
- transactionId: string;
2888
- };
5756
+ input: import("zod").input<import("zod").ZodObject<{
5757
+ transactionId: import("zod").ZodString;
5758
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5759
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
5760
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5761
+ }, import("zod/v4/core").$strip>>;
2889
5762
  output: import("../commons").EventDocument;
2890
5763
  meta: import("trpc-to-openapi").OpenApiMeta;
2891
5764
  }>;
@@ -2918,18 +5791,268 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2918
5791
  meta: import("trpc-to-openapi").OpenApiMeta;
2919
5792
  }>;
2920
5793
  accept: import("@trpc/server").TRPCMutationProcedure<{
2921
- input: import("../commons").ActionInput & {
5794
+ input: (Omit<{
5795
+ eventId: string;
5796
+ transactionId: string;
5797
+ declaration?: Record<string, unknown> | undefined;
5798
+ annotation?: Record<string, unknown> | undefined;
5799
+ originalActionId?: string | undefined;
5800
+ keepAssignment?: boolean | undefined;
5801
+ keepAssignmentIfAccepted?: boolean | undefined;
5802
+ keepAssignmentIfRejected?: boolean | undefined;
5803
+ waitFor?: boolean | undefined;
5804
+ type?: "CREATE" | undefined;
5805
+ createdAtLocation?: string | null | undefined;
5806
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5807
+ eventId: string;
5808
+ transactionId: string;
5809
+ declaration?: Record<string, unknown> | undefined;
5810
+ annotation?: Record<string, unknown> | undefined;
5811
+ originalActionId?: string | undefined;
5812
+ keepAssignment?: boolean | undefined;
5813
+ keepAssignmentIfAccepted?: boolean | undefined;
5814
+ keepAssignmentIfRejected?: boolean | undefined;
5815
+ waitFor?: boolean | undefined;
5816
+ createdAtLocation?: string | null | undefined;
5817
+ type?: "REGISTER" | undefined;
5818
+ registrationNumber?: string | undefined;
5819
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5820
+ eventId: string;
5821
+ transactionId: string;
5822
+ declaration?: Record<string, unknown> | undefined;
5823
+ annotation?: Record<string, unknown> | undefined;
5824
+ originalActionId?: string | undefined;
5825
+ keepAssignment?: boolean | undefined;
5826
+ keepAssignmentIfAccepted?: boolean | undefined;
5827
+ keepAssignmentIfRejected?: boolean | undefined;
5828
+ waitFor?: boolean | undefined;
5829
+ type?: "NOTIFY" | undefined;
5830
+ createdAtLocation?: string | null | undefined;
5831
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5832
+ eventId: string;
5833
+ transactionId: string;
5834
+ declaration?: Record<string, unknown> | undefined;
5835
+ annotation?: Record<string, unknown> | undefined;
5836
+ originalActionId?: string | undefined;
5837
+ keepAssignment?: boolean | undefined;
5838
+ keepAssignmentIfAccepted?: boolean | undefined;
5839
+ keepAssignmentIfRejected?: boolean | undefined;
5840
+ waitFor?: boolean | undefined;
5841
+ createdAtLocation?: string | null | undefined;
5842
+ type?: "DECLARE" | undefined;
5843
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5844
+ eventId: string;
5845
+ transactionId: string;
5846
+ content: {
5847
+ reason: string;
5848
+ };
5849
+ declaration?: Record<string, unknown> | undefined;
5850
+ annotation?: Record<string, unknown> | undefined;
5851
+ originalActionId?: string | undefined;
5852
+ keepAssignment?: boolean | undefined;
5853
+ keepAssignmentIfAccepted?: boolean | undefined;
5854
+ keepAssignmentIfRejected?: boolean | undefined;
5855
+ waitFor?: boolean | undefined;
5856
+ createdAtLocation?: string | null | undefined;
5857
+ type?: "REJECT" | undefined;
5858
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5859
+ eventId: string;
5860
+ transactionId: string;
5861
+ content: {
5862
+ duplicates: {
5863
+ id: string;
5864
+ trackingId: string;
5865
+ }[];
5866
+ };
5867
+ declaration?: Record<string, unknown> | undefined;
5868
+ annotation?: Record<string, unknown> | undefined;
5869
+ originalActionId?: string | undefined;
5870
+ keepAssignment?: boolean | undefined;
5871
+ keepAssignmentIfAccepted?: boolean | undefined;
5872
+ keepAssignmentIfRejected?: boolean | undefined;
5873
+ waitFor?: boolean | undefined;
5874
+ createdAtLocation?: string | null | undefined;
5875
+ type?: "DUPLICATE_DETECTED" | undefined;
5876
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5877
+ eventId: string;
5878
+ transactionId: string;
5879
+ declaration?: Record<string, unknown> | undefined;
5880
+ annotation?: Record<string, unknown> | undefined;
5881
+ originalActionId?: string | undefined;
5882
+ keepAssignment?: boolean | undefined;
5883
+ keepAssignmentIfAccepted?: boolean | undefined;
5884
+ keepAssignmentIfRejected?: boolean | undefined;
5885
+ waitFor?: boolean | undefined;
5886
+ createdAtLocation?: string | null | undefined;
5887
+ type?: "MARK_AS_DUPLICATE" | undefined;
5888
+ content?: {
5889
+ duplicateOf: string;
5890
+ } | undefined;
5891
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5892
+ eventId: string;
5893
+ transactionId: string;
5894
+ declaration?: Record<string, unknown> | undefined;
5895
+ annotation?: Record<string, unknown> | undefined;
5896
+ originalActionId?: string | undefined;
5897
+ keepAssignment?: boolean | undefined;
5898
+ keepAssignmentIfAccepted?: boolean | undefined;
5899
+ keepAssignmentIfRejected?: boolean | undefined;
5900
+ waitFor?: boolean | undefined;
5901
+ createdAtLocation?: string | null | undefined;
5902
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
5903
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5904
+ eventId: string;
5905
+ transactionId: string;
5906
+ content: {
5907
+ reason: string;
5908
+ };
5909
+ declaration?: Record<string, unknown> | undefined;
5910
+ annotation?: Record<string, unknown> | undefined;
5911
+ originalActionId?: string | undefined;
5912
+ keepAssignment?: boolean | undefined;
5913
+ keepAssignmentIfAccepted?: boolean | undefined;
5914
+ keepAssignmentIfRejected?: boolean | undefined;
5915
+ waitFor?: boolean | undefined;
5916
+ createdAtLocation?: string | null | undefined;
5917
+ type?: "ARCHIVE" | undefined;
5918
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5919
+ eventId: string;
5920
+ transactionId: string;
5921
+ type: "ASSIGN";
5922
+ assignedTo: string;
5923
+ declaration?: Record<string, unknown> | undefined;
5924
+ annotation?: Record<string, unknown> | undefined;
5925
+ originalActionId?: string | undefined;
5926
+ keepAssignment?: boolean | undefined;
5927
+ keepAssignmentIfAccepted?: boolean | undefined;
5928
+ keepAssignmentIfRejected?: boolean | undefined;
5929
+ waitFor?: boolean | undefined;
5930
+ createdAtLocation?: string | null | undefined;
5931
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5932
+ eventId: string;
5933
+ transactionId: string;
5934
+ declaration?: Record<string, unknown> | undefined;
5935
+ annotation?: Record<string, unknown> | undefined;
5936
+ originalActionId?: string | undefined;
5937
+ keepAssignment?: boolean | undefined;
5938
+ keepAssignmentIfAccepted?: boolean | undefined;
5939
+ keepAssignmentIfRejected?: boolean | undefined;
5940
+ waitFor?: boolean | undefined;
5941
+ createdAtLocation?: string | null | undefined;
5942
+ type?: "UNASSIGN" | undefined;
5943
+ assignedTo?: null | undefined;
5944
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5945
+ eventId: string;
5946
+ transactionId: string;
5947
+ declaration?: Record<string, unknown> | undefined;
5948
+ annotation?: Record<string, unknown> | undefined;
5949
+ originalActionId?: string | undefined;
5950
+ keepAssignment?: boolean | undefined;
5951
+ keepAssignmentIfAccepted?: boolean | undefined;
5952
+ keepAssignmentIfRejected?: boolean | undefined;
5953
+ waitFor?: boolean | undefined;
5954
+ createdAtLocation?: string | null | undefined;
5955
+ type?: "PRINT_CERTIFICATE" | undefined;
5956
+ content?: {
5957
+ templateId?: string | undefined;
5958
+ } | undefined;
5959
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5960
+ eventId: string;
5961
+ transactionId: 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?: "REQUEST_CORRECTION" | undefined;
5971
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5972
+ eventId: string;
5973
+ transactionId: string;
5974
+ requestId: string;
5975
+ content: {
5976
+ reason: string;
5977
+ };
5978
+ declaration?: Record<string, unknown> | undefined;
5979
+ annotation?: Record<string, unknown> | undefined;
5980
+ originalActionId?: string | undefined;
5981
+ keepAssignment?: boolean | undefined;
5982
+ keepAssignmentIfAccepted?: boolean | undefined;
5983
+ keepAssignmentIfRejected?: boolean | undefined;
5984
+ waitFor?: boolean | undefined;
5985
+ createdAtLocation?: string | null | undefined;
5986
+ type?: "REJECT_CORRECTION" | undefined;
5987
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5988
+ eventId: string;
5989
+ transactionId: string;
5990
+ requestId: string;
5991
+ declaration?: Record<string, unknown> | undefined;
5992
+ annotation?: Record<string, unknown> | undefined;
5993
+ originalActionId?: string | undefined;
5994
+ keepAssignment?: boolean | undefined;
5995
+ keepAssignmentIfAccepted?: boolean | undefined;
5996
+ keepAssignmentIfRejected?: boolean | undefined;
5997
+ waitFor?: boolean | undefined;
5998
+ createdAtLocation?: string | null | undefined;
5999
+ type?: "APPROVE_CORRECTION" | undefined;
6000
+ content?: {
6001
+ immediateCorrection?: boolean | undefined;
6002
+ } | undefined;
6003
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6004
+ eventId: string;
6005
+ transactionId: string;
6006
+ declaration?: Record<string, unknown> | undefined;
6007
+ annotation?: Record<string, unknown> | undefined;
6008
+ originalActionId?: string | undefined;
6009
+ keepAssignment?: boolean | undefined;
6010
+ keepAssignmentIfAccepted?: boolean | undefined;
6011
+ keepAssignmentIfRejected?: boolean | undefined;
6012
+ waitFor?: boolean | undefined;
6013
+ createdAtLocation?: string | null | undefined;
6014
+ type?: "READ" | undefined;
6015
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6016
+ eventId: string;
6017
+ transactionId: string;
6018
+ customActionType: string;
6019
+ declaration?: Record<string, unknown> | undefined;
6020
+ annotation?: Record<string, unknown> | undefined;
6021
+ originalActionId?: string | undefined;
6022
+ keepAssignment?: boolean | undefined;
6023
+ keepAssignmentIfAccepted?: boolean | undefined;
6024
+ keepAssignmentIfRejected?: boolean | undefined;
6025
+ waitFor?: boolean | undefined;
6026
+ createdAtLocation?: string | null | undefined;
6027
+ type?: "CUSTOM" | undefined;
6028
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6029
+ eventId: string;
6030
+ transactionId: string;
6031
+ content: {
6032
+ comment?: string | undefined;
6033
+ };
6034
+ declaration?: Record<string, unknown> | undefined;
6035
+ annotation?: Record<string, unknown> | undefined;
6036
+ originalActionId?: string | undefined;
6037
+ keepAssignment?: boolean | undefined;
6038
+ keepAssignmentIfAccepted?: boolean | undefined;
6039
+ keepAssignmentIfRejected?: boolean | undefined;
6040
+ waitFor?: boolean | undefined;
6041
+ createdAtLocation?: string | null | undefined;
6042
+ type?: "EDIT" | undefined;
6043
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2922
6044
  actionId: string;
2923
6045
  };
2924
6046
  output: import("../commons").EventDocument;
2925
6047
  meta: import("trpc-to-openapi").OpenApiMeta;
2926
6048
  }>;
2927
6049
  reject: import("@trpc/server").TRPCMutationProcedure<{
2928
- input: {
2929
- eventId: string;
2930
- actionId: string;
2931
- transactionId: string;
2932
- };
6050
+ input: import("zod").input<import("zod").ZodObject<{
6051
+ transactionId: import("zod").ZodString;
6052
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
6053
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
6054
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
6055
+ }, import("zod/v4/core").$strip>>;
2933
6056
  output: import("../commons").EventDocument;
2934
6057
  meta: import("trpc-to-openapi").OpenApiMeta;
2935
6058
  }>;
@@ -2965,6 +6088,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2965
6088
  annotation?: Record<string, unknown> | undefined;
2966
6089
  originalActionId?: string | undefined;
2967
6090
  keepAssignment?: boolean | undefined;
6091
+ keepAssignmentIfAccepted?: boolean | undefined;
6092
+ keepAssignmentIfRejected?: boolean | undefined;
2968
6093
  waitFor?: boolean | undefined;
2969
6094
  createdAtLocation?: string | null | undefined;
2970
6095
  type?: "MARK_AS_DUPLICATE" | undefined;
@@ -3163,6 +6288,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3163
6288
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
3164
6289
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
3165
6290
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6291
+ content?: {
6292
+ immediateCorrection?: boolean | undefined;
6293
+ } | undefined;
3166
6294
  } | {
3167
6295
  id: string & import("zod").$brand<"UUID">;
3168
6296
  transactionId: string;
@@ -3283,6 +6411,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3283
6411
  annotation?: Record<string, unknown> | undefined;
3284
6412
  originalActionId?: string | undefined;
3285
6413
  keepAssignment?: boolean | undefined;
6414
+ keepAssignmentIfAccepted?: boolean | undefined;
6415
+ keepAssignmentIfRejected?: boolean | undefined;
3286
6416
  waitFor?: boolean | undefined;
3287
6417
  createdAtLocation?: string | null | undefined;
3288
6418
  type?: "MARK_AS_NOT_DUPLICATE" | undefined;
@@ -3478,6 +6608,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3478
6608
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
3479
6609
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
3480
6610
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6611
+ content?: {
6612
+ immediateCorrection?: boolean | undefined;
6613
+ } | undefined;
3481
6614
  } | {
3482
6615
  id: string & import("zod").$brand<"UUID">;
3483
6616
  transactionId: string;
@@ -3612,7 +6745,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3612
6745
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
3613
6746
  createdByUserType?: "system" | "user" | null | undefined;
3614
6747
  createdByRole?: string | undefined;
3615
- createdBySignature?: string | null | undefined;
3616
6748
  } | null | undefined;
3617
6749
  REGISTERED?: {
3618
6750
  createdAt: string;
@@ -3622,7 +6754,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3622
6754
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
3623
6755
  createdByUserType?: "system" | "user" | null | undefined;
3624
6756
  createdByRole?: string | undefined;
3625
- createdBySignature?: string | null | undefined;
3626
6757
  } | null | undefined;
3627
6758
  };
3628
6759
  createdAt: string;
@@ -3640,7 +6771,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3640
6771
  createdByUserType?: "system" | "user" | null | undefined;
3641
6772
  updatedByUserRole?: string | null | undefined;
3642
6773
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
3643
- createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3644
6774
  updatedAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
3645
6775
  assignedTo?: string | null | undefined;
3646
6776
  updatedBy?: string | null | undefined;
@@ -3841,6 +6971,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3841
6971
  createdAtLocation?: string | null | undefined;
3842
6972
  annotation?: Record<string, unknown> | null | undefined;
3843
6973
  originalActionId?: string | null | undefined;
6974
+ content?: {
6975
+ immediateCorrection?: boolean | undefined;
6976
+ } | undefined;
3844
6977
  } | {
3845
6978
  id: string;
3846
6979
  transactionId: string;
@@ -4099,33 +7232,22 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4099
7232
  input: string[];
4100
7233
  output: ({
4101
7234
  id: string & import("zod").$brand<"UUID">;
7235
+ type: "user";
4102
7236
  name: {
4103
7237
  firstname: string;
4104
7238
  surname: string;
4105
7239
  };
4106
7240
  role: string;
4107
7241
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4108
- type: "user";
4109
- status: "active" | "pending" | "deactivated";
7242
+ fullHonorificName?: string | undefined;
4110
7243
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4111
- signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4112
7244
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4113
- device?: string | undefined;
4114
- fullHonorificName?: string | undefined;
4115
- mobile?: string | undefined;
4116
- email?: string | undefined;
4117
- data?: Record<string, import("../commons").FieldValue> | undefined;
4118
7245
  } | {
4119
7246
  id: string & import("zod").$brand<"UUID">;
4120
- name: string;
4121
7247
  type: "system";
7248
+ name: string;
4122
7249
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4123
7250
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4124
- signature?: undefined;
4125
- avatar?: undefined;
4126
- fullHonorificName?: string | undefined;
4127
- legacyId?: string | undefined;
4128
- status?: undefined;
4129
7251
  })[];
4130
7252
  meta: import("trpc-to-openapi").OpenApiMeta;
4131
7253
  }>;
@@ -4143,33 +7265,24 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4143
7265
  };
4144
7266
  output: ({
4145
7267
  id: string & import("zod").$brand<"UUID">;
7268
+ type: "user";
4146
7269
  name: {
4147
7270
  firstname: string;
4148
7271
  surname: string;
4149
7272
  };
4150
7273
  role: string;
4151
7274
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4152
- type: "user";
4153
7275
  status: "active" | "pending" | "deactivated";
7276
+ fullHonorificName?: string | undefined;
4154
7277
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4155
- signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4156
7278
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4157
- device?: string | undefined;
4158
- fullHonorificName?: string | undefined;
4159
- mobile?: string | undefined;
4160
- email?: string | undefined;
4161
- data?: Record<string, import("../commons").FieldValue> | undefined;
4162
7279
  } | {
4163
7280
  id: string & import("zod").$brand<"UUID">;
4164
- name: string;
4165
7281
  type: "system";
7282
+ name: string;
4166
7283
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4167
7284
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4168
- signature?: undefined;
4169
- avatar?: undefined;
4170
- fullHonorificName?: string | undefined;
4171
- legacyId?: string | undefined;
4172
- status?: undefined;
7285
+ status?: "active" | "pending" | "deactivated" | undefined;
4173
7286
  })[];
4174
7287
  meta: object;
4175
7288
  }>;
@@ -5032,7 +8145,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5032
8145
  $event: "id" | "createdBy" | "createdAt" | "status" | "createdByUserType" | "createdAtLocation" | "updatedAt" | "assignedTo" | "trackingId" | "type" | "flags" | "dateOfEvent" | "placeOfEvent" | "title" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "outbox";
5033
8146
  };
5034
8147
  }[];
5035
- icon: "Archived" | "Assigned" | "Briefcase" | "Certified" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "Registered" | "RequiresUpdates" | "Sent" | "Validated" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "PenNib" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Stamp" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "ChatText" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
8148
+ icon: "File" | "Archived" | "Assigned" | "Briefcase" | "Certified" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "Registered" | "RequiresUpdates" | "Sent" | "Validated" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "PenNib" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Stamp" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "ChatText" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
5036
8149
  action?: {
5037
8150
  type: "DELETE" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ";
5038
8151
  } | undefined;