@opencrvs/toolkit 2.0.0-rc.f1cc6f6 → 2.0.0-rc.f20384d

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