@opencrvs/toolkit 2.0.0-rc.b60239a → 2.0.0-rc.b65ecbd

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