@opencrvs/toolkit 2.0.0-rc.e697813 → 2.0.0-rc.e6d7626

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 (88) hide show
  1. package/create-countryconfig/index.js +73 -0
  2. package/create-countryconfig/package.json +11 -0
  3. package/dist/application-config/index.js +53 -31
  4. package/dist/cli.js +1860 -346
  5. package/dist/commons/api/router.d.ts +3009 -270
  6. package/dist/commons/application-config/index.d.ts +16 -4
  7. package/dist/commons/conditionals/conditionals.d.ts +6 -6
  8. package/dist/commons/conditionals/validate.d.ts +1 -0
  9. package/dist/commons/events/ActionInput.d.ts +108 -0
  10. package/dist/commons/events/Draft.d.ts +3 -0
  11. package/dist/commons/events/FieldConfig.d.ts +10 -0
  12. package/dist/commons/events/locations.d.ts +38 -1
  13. package/dist/commons/events/mocks.test.utils.d.ts +19 -0
  14. package/dist/commons/events/scopes.d.ts +24 -1
  15. package/dist/commons/events/utils.d.ts +1 -1
  16. package/dist/conditionals/index.js +37 -7
  17. package/dist/events/index.js +158 -41
  18. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +1 -1
  19. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +63 -39
  20. package/dist/migrations/v2.0/add-resend-invite-notification.d.ts +3 -0
  21. package/dist/migrations/v2.0/add-resend-invite-notification.d.ts.map +1 -0
  22. package/dist/migrations/v2.0/add-resend-invite-notification.js +373 -0
  23. package/dist/migrations/v2.0/checkout-upstream-files.d.ts +19 -0
  24. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
  25. package/dist/migrations/v2.0/checkout-upstream-files.js +17 -14
  26. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -1
  27. package/dist/migrations/v2.0/convert-config-files-to-ts.js +4 -5
  28. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +1 -1
  29. package/dist/migrations/v2.0/convert-paragraph-to-heading.js +4 -5
  30. package/dist/migrations/v2.0/create-events-index.d.ts.map +1 -1
  31. package/dist/migrations/v2.0/create-events-index.js +1 -2
  32. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts +11 -0
  33. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts.map +1 -0
  34. package/dist/migrations/v2.0/delete-infrastructure-directory.js +123 -0
  35. package/dist/migrations/v2.0/index.d.ts +10 -4
  36. package/dist/migrations/v2.0/index.d.ts.map +1 -1
  37. package/dist/migrations/v2.0/index.js +1828 -343
  38. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +1 -1
  39. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +95 -7
  40. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts +13 -0
  41. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts.map +1 -0
  42. package/dist/migrations/v2.0/merge-infrastructure-directory.js +222 -0
  43. package/dist/migrations/v2.0/migrate-application-config-url.d.ts +3 -0
  44. package/dist/migrations/v2.0/migrate-application-config-url.d.ts.map +1 -0
  45. package/dist/migrations/v2.0/migrate-application-config-url.js +342 -0
  46. package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -1
  47. package/dist/migrations/v2.0/migrate-scopes.js +55 -32
  48. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +1 -1
  49. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +3 -4
  50. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +1 -1
  51. package/dist/migrations/v2.0/migrate-workqueue-configs.js +143 -63
  52. package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +1 -1
  53. package/dist/migrations/v2.0/remove-delete-actions.js +3 -4
  54. package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +1 -1
  55. package/dist/migrations/v2.0/remove-demo-scope.js +2 -3
  56. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +1 -1
  57. package/dist/migrations/v2.0/remove-deprecated-imports.js +3 -4
  58. package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts +3 -0
  59. package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts.map +1 -0
  60. package/dist/migrations/v2.0/remove-fhir-url-helpers.js +163 -0
  61. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +1 -1
  62. package/dist/migrations/v2.0/remove-hearth-migrations.js +1 -2
  63. package/dist/migrations/v2.0/remove-old-statistics-service.d.ts +3 -0
  64. package/dist/migrations/v2.0/remove-old-statistics-service.d.ts.map +1 -0
  65. package/dist/migrations/v2.0/remove-old-statistics-service.js +356 -0
  66. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +1 -1
  67. package/dist/migrations/v2.0/remove-pending-certification-flag.js +3 -4
  68. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +1 -1
  69. package/dist/migrations/v2.0/remove-review-from-register-action.js +3 -4
  70. package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts +3 -0
  71. package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts.map +1 -0
  72. package/dist/migrations/v2.0/remove-unused-environment-variables.js +186 -0
  73. package/dist/migrations/v2.0/rename-api-paths.d.ts.map +1 -1
  74. package/dist/migrations/v2.0/rename-api-paths.js +3 -4
  75. package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +1 -1
  76. package/dist/migrations/v2.0/rename-location-parent-id.js +3 -4
  77. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts.map +1 -1
  78. package/dist/migrations/v2.0/simplify-analytics-precalculations.js +1 -2
  79. package/dist/migrations/v2.0/update-package-json.d.ts +3 -0
  80. package/dist/migrations/v2.0/update-package-json.d.ts.map +1 -0
  81. package/dist/migrations/v2.0/update-package-json.js +105 -0
  82. package/dist/notification/index.js +52 -27
  83. package/dist/scopes/index.d.ts +87 -10
  84. package/dist/scopes/index.js +43 -8
  85. package/opencrvs-toolkit-2.0.0-rc.e6d7626.tgz +0 -0
  86. package/package.json +1 -1
  87. package/tsconfig.tsbuildinfo +1 -1
  88. package/opencrvs-toolkit-2.0.0-rc.e697813.tgz +0 -0
@@ -1105,6 +1105,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1105
1105
  annotation?: Record<string, unknown> | undefined;
1106
1106
  originalActionId?: string | undefined;
1107
1107
  keepAssignment?: boolean | undefined;
1108
+ keepAssignmentIfAccepted?: boolean | undefined;
1109
+ keepAssignmentIfRejected?: boolean | undefined;
1110
+ waitFor?: boolean | undefined;
1108
1111
  createdAtLocation?: string | null | undefined;
1109
1112
  };
1110
1113
  output: {
@@ -1179,18 +1182,265 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1179
1182
  meta: import("trpc-to-openapi").OpenApiMeta;
1180
1183
  }>;
1181
1184
  accept: import("@trpc/server").TRPCMutationProcedure<{
1182
- input: import("../commons").ActionInput & {
1185
+ input: (Omit<{
1186
+ eventId: string;
1187
+ transactionId: string;
1188
+ declaration?: Record<string, unknown> | undefined;
1189
+ annotation?: Record<string, unknown> | undefined;
1190
+ originalActionId?: string | undefined;
1191
+ keepAssignment?: boolean | undefined;
1192
+ keepAssignmentIfAccepted?: boolean | undefined;
1193
+ keepAssignmentIfRejected?: boolean | undefined;
1194
+ waitFor?: boolean | undefined;
1195
+ type?: "CREATE" | undefined;
1196
+ createdAtLocation?: string | null | undefined;
1197
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1198
+ eventId: string;
1199
+ transactionId: string;
1200
+ declaration?: Record<string, unknown> | undefined;
1201
+ annotation?: Record<string, unknown> | undefined;
1202
+ originalActionId?: string | undefined;
1203
+ keepAssignment?: boolean | undefined;
1204
+ keepAssignmentIfAccepted?: boolean | undefined;
1205
+ keepAssignmentIfRejected?: boolean | undefined;
1206
+ waitFor?: boolean | undefined;
1207
+ createdAtLocation?: string | null | undefined;
1208
+ type?: "REGISTER" | undefined;
1209
+ registrationNumber?: string | undefined;
1210
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1211
+ eventId: string;
1212
+ transactionId: string;
1213
+ declaration?: Record<string, unknown> | undefined;
1214
+ annotation?: Record<string, unknown> | undefined;
1215
+ originalActionId?: string | undefined;
1216
+ keepAssignment?: boolean | undefined;
1217
+ keepAssignmentIfAccepted?: boolean | undefined;
1218
+ keepAssignmentIfRejected?: boolean | undefined;
1219
+ waitFor?: boolean | undefined;
1220
+ type?: "NOTIFY" | undefined;
1221
+ createdAtLocation?: string | null | undefined;
1222
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1223
+ eventId: string;
1224
+ transactionId: string;
1225
+ declaration?: Record<string, unknown> | undefined;
1226
+ annotation?: Record<string, unknown> | undefined;
1227
+ originalActionId?: string | undefined;
1228
+ keepAssignment?: boolean | undefined;
1229
+ keepAssignmentIfAccepted?: boolean | undefined;
1230
+ keepAssignmentIfRejected?: boolean | undefined;
1231
+ waitFor?: boolean | undefined;
1232
+ createdAtLocation?: string | null | undefined;
1233
+ type?: "DECLARE" | undefined;
1234
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1235
+ eventId: string;
1236
+ transactionId: string;
1237
+ content: {
1238
+ reason: string;
1239
+ };
1240
+ declaration?: Record<string, unknown> | undefined;
1241
+ annotation?: Record<string, unknown> | undefined;
1242
+ originalActionId?: string | undefined;
1243
+ keepAssignment?: boolean | undefined;
1244
+ keepAssignmentIfAccepted?: boolean | undefined;
1245
+ keepAssignmentIfRejected?: boolean | undefined;
1246
+ waitFor?: boolean | undefined;
1247
+ createdAtLocation?: string | null | undefined;
1248
+ type?: "REJECT" | undefined;
1249
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1250
+ eventId: string;
1251
+ transactionId: string;
1252
+ content: {
1253
+ duplicates: {
1254
+ id: string;
1255
+ trackingId: string;
1256
+ }[];
1257
+ };
1258
+ declaration?: Record<string, unknown> | undefined;
1259
+ annotation?: Record<string, unknown> | undefined;
1260
+ originalActionId?: string | undefined;
1261
+ keepAssignment?: boolean | undefined;
1262
+ keepAssignmentIfAccepted?: boolean | undefined;
1263
+ keepAssignmentIfRejected?: boolean | undefined;
1264
+ waitFor?: boolean | undefined;
1265
+ createdAtLocation?: string | null | undefined;
1266
+ type?: "DUPLICATE_DETECTED" | undefined;
1267
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1268
+ eventId: string;
1269
+ transactionId: string;
1270
+ declaration?: Record<string, unknown> | undefined;
1271
+ annotation?: Record<string, unknown> | undefined;
1272
+ originalActionId?: string | undefined;
1273
+ keepAssignment?: boolean | undefined;
1274
+ keepAssignmentIfAccepted?: boolean | undefined;
1275
+ keepAssignmentIfRejected?: boolean | undefined;
1276
+ waitFor?: boolean | undefined;
1277
+ createdAtLocation?: string | null | undefined;
1278
+ type?: "MARK_AS_DUPLICATE" | undefined;
1279
+ content?: {
1280
+ duplicateOf: string;
1281
+ } | undefined;
1282
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1283
+ eventId: string;
1284
+ transactionId: string;
1285
+ declaration?: Record<string, unknown> | undefined;
1286
+ annotation?: Record<string, unknown> | undefined;
1287
+ originalActionId?: string | undefined;
1288
+ keepAssignment?: boolean | undefined;
1289
+ keepAssignmentIfAccepted?: boolean | undefined;
1290
+ keepAssignmentIfRejected?: boolean | undefined;
1291
+ waitFor?: boolean | undefined;
1292
+ createdAtLocation?: string | null | undefined;
1293
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
1294
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1295
+ eventId: string;
1296
+ transactionId: string;
1297
+ content: {
1298
+ reason: string;
1299
+ };
1300
+ declaration?: Record<string, unknown> | undefined;
1301
+ annotation?: Record<string, unknown> | undefined;
1302
+ originalActionId?: string | undefined;
1303
+ keepAssignment?: boolean | undefined;
1304
+ keepAssignmentIfAccepted?: boolean | undefined;
1305
+ keepAssignmentIfRejected?: boolean | undefined;
1306
+ waitFor?: boolean | undefined;
1307
+ createdAtLocation?: string | null | undefined;
1308
+ type?: "ARCHIVE" | undefined;
1309
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1310
+ eventId: string;
1311
+ transactionId: string;
1312
+ type: "ASSIGN";
1313
+ assignedTo: string;
1314
+ declaration?: Record<string, unknown> | undefined;
1315
+ annotation?: Record<string, unknown> | undefined;
1316
+ originalActionId?: string | undefined;
1317
+ keepAssignment?: boolean | undefined;
1318
+ keepAssignmentIfAccepted?: boolean | undefined;
1319
+ keepAssignmentIfRejected?: boolean | undefined;
1320
+ waitFor?: boolean | undefined;
1321
+ createdAtLocation?: string | null | undefined;
1322
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1323
+ eventId: string;
1324
+ transactionId: string;
1325
+ declaration?: Record<string, unknown> | undefined;
1326
+ annotation?: Record<string, unknown> | undefined;
1327
+ originalActionId?: string | undefined;
1328
+ keepAssignment?: boolean | undefined;
1329
+ keepAssignmentIfAccepted?: boolean | undefined;
1330
+ keepAssignmentIfRejected?: boolean | undefined;
1331
+ waitFor?: boolean | undefined;
1332
+ createdAtLocation?: string | null | undefined;
1333
+ type?: "UNASSIGN" | undefined;
1334
+ assignedTo?: null | undefined;
1335
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1336
+ eventId: string;
1337
+ transactionId: string;
1338
+ declaration?: Record<string, unknown> | undefined;
1339
+ annotation?: Record<string, unknown> | undefined;
1340
+ originalActionId?: string | undefined;
1341
+ keepAssignment?: boolean | undefined;
1342
+ keepAssignmentIfAccepted?: boolean | undefined;
1343
+ keepAssignmentIfRejected?: boolean | undefined;
1344
+ waitFor?: boolean | undefined;
1345
+ createdAtLocation?: string | null | undefined;
1346
+ type?: "PRINT_CERTIFICATE" | undefined;
1347
+ content?: {
1348
+ templateId?: string | undefined;
1349
+ } | undefined;
1350
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1351
+ eventId: string;
1352
+ transactionId: string;
1353
+ declaration?: Record<string, unknown> | undefined;
1354
+ annotation?: Record<string, unknown> | undefined;
1355
+ originalActionId?: string | undefined;
1356
+ keepAssignment?: boolean | undefined;
1357
+ keepAssignmentIfAccepted?: boolean | undefined;
1358
+ keepAssignmentIfRejected?: boolean | undefined;
1359
+ waitFor?: boolean | undefined;
1360
+ createdAtLocation?: string | null | undefined;
1361
+ type?: "REQUEST_CORRECTION" | undefined;
1362
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1363
+ eventId: string;
1364
+ transactionId: string;
1365
+ requestId: string;
1366
+ content: {
1367
+ reason: string;
1368
+ };
1369
+ declaration?: Record<string, unknown> | undefined;
1370
+ annotation?: Record<string, unknown> | undefined;
1371
+ originalActionId?: string | undefined;
1372
+ keepAssignment?: boolean | undefined;
1373
+ keepAssignmentIfAccepted?: boolean | undefined;
1374
+ keepAssignmentIfRejected?: boolean | undefined;
1375
+ waitFor?: boolean | undefined;
1376
+ createdAtLocation?: string | null | undefined;
1377
+ type?: "REJECT_CORRECTION" | undefined;
1378
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1379
+ eventId: string;
1380
+ transactionId: string;
1381
+ requestId: string;
1382
+ declaration?: Record<string, unknown> | undefined;
1383
+ annotation?: Record<string, unknown> | undefined;
1384
+ originalActionId?: string | undefined;
1385
+ keepAssignment?: boolean | undefined;
1386
+ keepAssignmentIfAccepted?: boolean | undefined;
1387
+ keepAssignmentIfRejected?: boolean | undefined;
1388
+ waitFor?: boolean | undefined;
1389
+ createdAtLocation?: string | null | undefined;
1390
+ type?: "APPROVE_CORRECTION" | undefined;
1391
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1392
+ eventId: string;
1393
+ transactionId: string;
1394
+ declaration?: Record<string, unknown> | undefined;
1395
+ annotation?: Record<string, unknown> | undefined;
1396
+ originalActionId?: string | undefined;
1397
+ keepAssignment?: boolean | undefined;
1398
+ keepAssignmentIfAccepted?: boolean | undefined;
1399
+ keepAssignmentIfRejected?: boolean | undefined;
1400
+ waitFor?: boolean | undefined;
1401
+ createdAtLocation?: string | null | undefined;
1402
+ type?: "READ" | undefined;
1403
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1404
+ eventId: string;
1405
+ transactionId: string;
1406
+ customActionType: string;
1407
+ declaration?: Record<string, unknown> | undefined;
1408
+ annotation?: Record<string, unknown> | undefined;
1409
+ originalActionId?: string | undefined;
1410
+ keepAssignment?: boolean | undefined;
1411
+ keepAssignmentIfAccepted?: boolean | undefined;
1412
+ keepAssignmentIfRejected?: boolean | undefined;
1413
+ waitFor?: boolean | undefined;
1414
+ createdAtLocation?: string | null | undefined;
1415
+ type?: "CUSTOM" | undefined;
1416
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1417
+ eventId: string;
1418
+ transactionId: string;
1419
+ content: {
1420
+ comment?: string | undefined;
1421
+ };
1422
+ declaration?: Record<string, unknown> | undefined;
1423
+ annotation?: Record<string, unknown> | undefined;
1424
+ originalActionId?: string | undefined;
1425
+ keepAssignment?: boolean | undefined;
1426
+ keepAssignmentIfAccepted?: boolean | undefined;
1427
+ keepAssignmentIfRejected?: boolean | undefined;
1428
+ waitFor?: boolean | undefined;
1429
+ createdAtLocation?: string | null | undefined;
1430
+ type?: "EDIT" | undefined;
1431
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
1183
1432
  actionId: string;
1184
1433
  };
1185
1434
  output: import("../commons").EventDocument;
1186
1435
  meta: import("trpc-to-openapi").OpenApiMeta;
1187
1436
  }>;
1188
1437
  reject: import("@trpc/server").TRPCMutationProcedure<{
1189
- input: {
1190
- eventId: string;
1191
- actionId: string;
1192
- transactionId: string;
1193
- };
1438
+ input: import("zod").input<import("zod").ZodObject<{
1439
+ transactionId: import("zod").ZodString;
1440
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
1441
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
1442
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
1443
+ }, import("zod/v4/core").$strip>>;
1194
1444
  output: import("../commons").EventDocument;
1195
1445
  meta: import("trpc-to-openapi").OpenApiMeta;
1196
1446
  }>;
@@ -1225,6 +1475,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1225
1475
  annotation?: Record<string, unknown> | undefined;
1226
1476
  originalActionId?: string | undefined;
1227
1477
  keepAssignment?: boolean | undefined;
1478
+ keepAssignmentIfAccepted?: boolean | undefined;
1479
+ keepAssignmentIfRejected?: boolean | undefined;
1480
+ waitFor?: boolean | undefined;
1228
1481
  createdAtLocation?: string | null | undefined;
1229
1482
  type?: "DECLARE" | undefined;
1230
1483
  };
@@ -1532,111 +1785,1434 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1532
1785
  meta: import("trpc-to-openapi").OpenApiMeta;
1533
1786
  }>;
1534
1787
  accept: import("@trpc/server").TRPCMutationProcedure<{
1535
- input: import("../commons").ActionInput & {
1536
- actionId: string;
1537
- };
1538
- output: import("../commons").EventDocument;
1539
- meta: import("trpc-to-openapi").OpenApiMeta;
1540
- }>;
1541
- reject: import("@trpc/server").TRPCMutationProcedure<{
1542
- input: {
1788
+ input: (Omit<{
1543
1789
  eventId: string;
1544
- actionId: string;
1545
1790
  transactionId: string;
1546
- };
1547
- output: import("../commons").EventDocument;
1548
- meta: import("trpc-to-openapi").OpenApiMeta;
1549
- }>;
1550
- }>>;
1551
- edit: import("@trpc/server").TRPCBuiltRouter<{
1552
- ctx: Partial<{
1553
- token: `Bearer ${string}`;
1554
- user: {
1555
- id: string & import("zod").$brand<"UUID">;
1556
- type: "system";
1557
- signature?: undefined;
1558
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1559
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1560
- } | {
1561
- id: string & import("zod").$brand<"UUID">;
1562
- type: "user";
1563
- role: string;
1564
- primaryOfficeId: string & import("zod").$brand<"UUID">;
1565
- signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1566
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1567
- };
1568
- }>;
1569
- meta: import("trpc-to-openapi").OpenApiMeta;
1570
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1571
- transformer: true;
1572
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1573
- request: import("@trpc/server").TRPCMutationProcedure<{
1574
- input: import("../commons").ActionInput;
1575
- output: import("../commons").EventDocument;
1576
- meta: import("trpc-to-openapi").OpenApiMeta;
1577
- }>;
1578
- accept: import("@trpc/server").TRPCMutationProcedure<{
1579
- input: import("../commons").ActionInput & {
1580
- actionId: string;
1581
- };
1582
- output: import("../commons").EventDocument;
1583
- meta: import("trpc-to-openapi").OpenApiMeta;
1584
- }>;
1585
- reject: import("@trpc/server").TRPCMutationProcedure<{
1586
- input: {
1791
+ declaration?: Record<string, unknown> | undefined;
1792
+ annotation?: Record<string, unknown> | undefined;
1793
+ originalActionId?: string | undefined;
1794
+ keepAssignment?: boolean | undefined;
1795
+ keepAssignmentIfAccepted?: boolean | undefined;
1796
+ keepAssignmentIfRejected?: boolean | undefined;
1797
+ waitFor?: boolean | undefined;
1798
+ type?: "CREATE" | undefined;
1799
+ createdAtLocation?: string | null | undefined;
1800
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1587
1801
  eventId: string;
1588
- actionId: string;
1589
1802
  transactionId: string;
1590
- };
1591
- output: import("../commons").EventDocument;
1592
- meta: import("trpc-to-openapi").OpenApiMeta;
1593
- }>;
1594
- }>>;
1595
- reject: import("@trpc/server").TRPCBuiltRouter<{
1596
- ctx: Partial<{
1597
- token: `Bearer ${string}`;
1598
- user: {
1599
- id: string & import("zod").$brand<"UUID">;
1600
- type: "system";
1601
- signature?: undefined;
1602
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1603
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1604
- } | {
1605
- id: string & import("zod").$brand<"UUID">;
1606
- type: "user";
1607
- role: string;
1608
- primaryOfficeId: string & import("zod").$brand<"UUID">;
1609
- signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1610
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1611
- };
1612
- }>;
1613
- meta: import("trpc-to-openapi").OpenApiMeta;
1614
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1615
- transformer: true;
1616
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1617
- request: import("@trpc/server").TRPCMutationProcedure<{
1618
- input: import("../commons").ActionInput;
1619
- output: import("../commons").EventDocument;
1620
- meta: import("trpc-to-openapi").OpenApiMeta;
1621
- }>;
1622
- accept: import("@trpc/server").TRPCMutationProcedure<{
1623
- input: import("../commons").ActionInput & {
1624
- actionId: string;
1625
- };
1626
- output: import("../commons").EventDocument;
1627
- meta: import("trpc-to-openapi").OpenApiMeta;
1628
- }>;
1629
- reject: import("@trpc/server").TRPCMutationProcedure<{
1630
- input: {
1803
+ declaration?: Record<string, unknown> | undefined;
1804
+ annotation?: Record<string, unknown> | undefined;
1805
+ originalActionId?: string | undefined;
1806
+ keepAssignment?: boolean | undefined;
1807
+ keepAssignmentIfAccepted?: boolean | undefined;
1808
+ keepAssignmentIfRejected?: boolean | undefined;
1809
+ waitFor?: boolean | undefined;
1810
+ createdAtLocation?: string | null | undefined;
1811
+ type?: "REGISTER" | undefined;
1812
+ registrationNumber?: string | undefined;
1813
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1631
1814
  eventId: string;
1632
- actionId: string;
1633
1815
  transactionId: string;
1634
- };
1635
- output: import("../commons").EventDocument;
1816
+ declaration?: Record<string, unknown> | undefined;
1817
+ annotation?: Record<string, unknown> | undefined;
1818
+ originalActionId?: string | undefined;
1819
+ keepAssignment?: boolean | undefined;
1820
+ keepAssignmentIfAccepted?: boolean | undefined;
1821
+ keepAssignmentIfRejected?: boolean | undefined;
1822
+ waitFor?: boolean | undefined;
1823
+ type?: "NOTIFY" | undefined;
1824
+ createdAtLocation?: string | null | undefined;
1825
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1826
+ eventId: string;
1827
+ transactionId: string;
1828
+ declaration?: Record<string, unknown> | undefined;
1829
+ annotation?: Record<string, unknown> | undefined;
1830
+ originalActionId?: string | undefined;
1831
+ keepAssignment?: boolean | undefined;
1832
+ keepAssignmentIfAccepted?: boolean | undefined;
1833
+ keepAssignmentIfRejected?: boolean | undefined;
1834
+ waitFor?: boolean | undefined;
1835
+ createdAtLocation?: string | null | undefined;
1836
+ type?: "DECLARE" | undefined;
1837
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1838
+ eventId: string;
1839
+ transactionId: string;
1840
+ content: {
1841
+ reason: string;
1842
+ };
1843
+ declaration?: Record<string, unknown> | undefined;
1844
+ annotation?: Record<string, unknown> | undefined;
1845
+ originalActionId?: string | undefined;
1846
+ keepAssignment?: boolean | undefined;
1847
+ keepAssignmentIfAccepted?: boolean | undefined;
1848
+ keepAssignmentIfRejected?: boolean | undefined;
1849
+ waitFor?: boolean | undefined;
1850
+ createdAtLocation?: string | null | undefined;
1851
+ type?: "REJECT" | undefined;
1852
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1853
+ eventId: string;
1854
+ transactionId: string;
1855
+ content: {
1856
+ duplicates: {
1857
+ id: string;
1858
+ trackingId: string;
1859
+ }[];
1860
+ };
1861
+ declaration?: Record<string, unknown> | undefined;
1862
+ annotation?: Record<string, unknown> | undefined;
1863
+ originalActionId?: string | undefined;
1864
+ keepAssignment?: boolean | undefined;
1865
+ keepAssignmentIfAccepted?: boolean | undefined;
1866
+ keepAssignmentIfRejected?: boolean | undefined;
1867
+ waitFor?: boolean | undefined;
1868
+ createdAtLocation?: string | null | undefined;
1869
+ type?: "DUPLICATE_DETECTED" | undefined;
1870
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1871
+ eventId: string;
1872
+ transactionId: string;
1873
+ declaration?: Record<string, unknown> | undefined;
1874
+ annotation?: Record<string, unknown> | undefined;
1875
+ originalActionId?: string | undefined;
1876
+ keepAssignment?: boolean | undefined;
1877
+ keepAssignmentIfAccepted?: boolean | undefined;
1878
+ keepAssignmentIfRejected?: boolean | undefined;
1879
+ waitFor?: boolean | undefined;
1880
+ createdAtLocation?: string | null | undefined;
1881
+ type?: "MARK_AS_DUPLICATE" | undefined;
1882
+ content?: {
1883
+ duplicateOf: string;
1884
+ } | undefined;
1885
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1886
+ eventId: string;
1887
+ transactionId: string;
1888
+ declaration?: Record<string, unknown> | undefined;
1889
+ annotation?: Record<string, unknown> | undefined;
1890
+ originalActionId?: string | undefined;
1891
+ keepAssignment?: boolean | undefined;
1892
+ keepAssignmentIfAccepted?: boolean | undefined;
1893
+ keepAssignmentIfRejected?: boolean | undefined;
1894
+ waitFor?: boolean | undefined;
1895
+ createdAtLocation?: string | null | undefined;
1896
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
1897
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1898
+ eventId: string;
1899
+ transactionId: string;
1900
+ content: {
1901
+ reason: string;
1902
+ };
1903
+ declaration?: Record<string, unknown> | undefined;
1904
+ annotation?: Record<string, unknown> | undefined;
1905
+ originalActionId?: string | undefined;
1906
+ keepAssignment?: boolean | undefined;
1907
+ keepAssignmentIfAccepted?: boolean | undefined;
1908
+ keepAssignmentIfRejected?: boolean | undefined;
1909
+ waitFor?: boolean | undefined;
1910
+ createdAtLocation?: string | null | undefined;
1911
+ type?: "ARCHIVE" | undefined;
1912
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1913
+ eventId: string;
1914
+ transactionId: string;
1915
+ type: "ASSIGN";
1916
+ assignedTo: string;
1917
+ declaration?: Record<string, unknown> | undefined;
1918
+ annotation?: Record<string, unknown> | undefined;
1919
+ originalActionId?: string | undefined;
1920
+ keepAssignment?: boolean | undefined;
1921
+ keepAssignmentIfAccepted?: boolean | undefined;
1922
+ keepAssignmentIfRejected?: boolean | undefined;
1923
+ waitFor?: boolean | undefined;
1924
+ createdAtLocation?: string | null | undefined;
1925
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1926
+ eventId: string;
1927
+ transactionId: string;
1928
+ declaration?: Record<string, unknown> | undefined;
1929
+ annotation?: Record<string, unknown> | undefined;
1930
+ originalActionId?: string | undefined;
1931
+ keepAssignment?: boolean | undefined;
1932
+ keepAssignmentIfAccepted?: boolean | undefined;
1933
+ keepAssignmentIfRejected?: boolean | undefined;
1934
+ waitFor?: boolean | undefined;
1935
+ createdAtLocation?: string | null | undefined;
1936
+ type?: "UNASSIGN" | undefined;
1937
+ assignedTo?: null | undefined;
1938
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1939
+ eventId: string;
1940
+ transactionId: string;
1941
+ declaration?: Record<string, unknown> | undefined;
1942
+ annotation?: Record<string, unknown> | undefined;
1943
+ originalActionId?: string | undefined;
1944
+ keepAssignment?: boolean | undefined;
1945
+ keepAssignmentIfAccepted?: boolean | undefined;
1946
+ keepAssignmentIfRejected?: boolean | undefined;
1947
+ waitFor?: boolean | undefined;
1948
+ createdAtLocation?: string | null | undefined;
1949
+ type?: "PRINT_CERTIFICATE" | undefined;
1950
+ content?: {
1951
+ templateId?: string | undefined;
1952
+ } | undefined;
1953
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1954
+ eventId: string;
1955
+ transactionId: string;
1956
+ declaration?: Record<string, unknown> | undefined;
1957
+ annotation?: Record<string, unknown> | undefined;
1958
+ originalActionId?: string | undefined;
1959
+ keepAssignment?: boolean | undefined;
1960
+ keepAssignmentIfAccepted?: boolean | undefined;
1961
+ keepAssignmentIfRejected?: boolean | undefined;
1962
+ waitFor?: boolean | undefined;
1963
+ createdAtLocation?: string | null | undefined;
1964
+ type?: "REQUEST_CORRECTION" | undefined;
1965
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1966
+ eventId: string;
1967
+ transactionId: string;
1968
+ requestId: string;
1969
+ content: {
1970
+ reason: string;
1971
+ };
1972
+ declaration?: Record<string, unknown> | undefined;
1973
+ annotation?: Record<string, unknown> | undefined;
1974
+ originalActionId?: string | undefined;
1975
+ keepAssignment?: boolean | undefined;
1976
+ keepAssignmentIfAccepted?: boolean | undefined;
1977
+ keepAssignmentIfRejected?: boolean | undefined;
1978
+ waitFor?: boolean | undefined;
1979
+ createdAtLocation?: string | null | undefined;
1980
+ type?: "REJECT_CORRECTION" | undefined;
1981
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1982
+ eventId: string;
1983
+ transactionId: string;
1984
+ requestId: string;
1985
+ declaration?: Record<string, unknown> | undefined;
1986
+ annotation?: Record<string, unknown> | undefined;
1987
+ originalActionId?: string | undefined;
1988
+ keepAssignment?: boolean | undefined;
1989
+ keepAssignmentIfAccepted?: boolean | undefined;
1990
+ keepAssignmentIfRejected?: boolean | undefined;
1991
+ waitFor?: boolean | undefined;
1992
+ createdAtLocation?: string | null | undefined;
1993
+ type?: "APPROVE_CORRECTION" | undefined;
1994
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1995
+ eventId: string;
1996
+ transactionId: string;
1997
+ declaration?: Record<string, unknown> | undefined;
1998
+ annotation?: Record<string, unknown> | undefined;
1999
+ originalActionId?: string | undefined;
2000
+ keepAssignment?: boolean | undefined;
2001
+ keepAssignmentIfAccepted?: boolean | undefined;
2002
+ keepAssignmentIfRejected?: boolean | undefined;
2003
+ waitFor?: boolean | undefined;
2004
+ createdAtLocation?: string | null | undefined;
2005
+ type?: "READ" | undefined;
2006
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2007
+ eventId: string;
2008
+ transactionId: string;
2009
+ customActionType: string;
2010
+ declaration?: Record<string, unknown> | undefined;
2011
+ annotation?: Record<string, unknown> | undefined;
2012
+ originalActionId?: string | undefined;
2013
+ keepAssignment?: boolean | undefined;
2014
+ keepAssignmentIfAccepted?: boolean | undefined;
2015
+ keepAssignmentIfRejected?: boolean | undefined;
2016
+ waitFor?: boolean | undefined;
2017
+ createdAtLocation?: string | null | undefined;
2018
+ type?: "CUSTOM" | undefined;
2019
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2020
+ eventId: string;
2021
+ transactionId: string;
2022
+ content: {
2023
+ comment?: string | undefined;
2024
+ };
2025
+ declaration?: Record<string, unknown> | undefined;
2026
+ annotation?: Record<string, unknown> | undefined;
2027
+ originalActionId?: string | undefined;
2028
+ keepAssignment?: boolean | undefined;
2029
+ keepAssignmentIfAccepted?: boolean | undefined;
2030
+ keepAssignmentIfRejected?: boolean | undefined;
2031
+ waitFor?: boolean | undefined;
2032
+ createdAtLocation?: string | null | undefined;
2033
+ type?: "EDIT" | undefined;
2034
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2035
+ actionId: string;
2036
+ };
2037
+ output: import("../commons").EventDocument;
2038
+ meta: import("trpc-to-openapi").OpenApiMeta;
2039
+ }>;
2040
+ reject: import("@trpc/server").TRPCMutationProcedure<{
2041
+ input: import("zod").input<import("zod").ZodObject<{
2042
+ transactionId: import("zod").ZodString;
2043
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2044
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2045
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2046
+ }, import("zod/v4/core").$strip>>;
2047
+ output: import("../commons").EventDocument;
2048
+ meta: import("trpc-to-openapi").OpenApiMeta;
2049
+ }>;
2050
+ }>>;
2051
+ edit: import("@trpc/server").TRPCBuiltRouter<{
2052
+ ctx: Partial<{
2053
+ token: `Bearer ${string}`;
2054
+ user: {
2055
+ id: string & import("zod").$brand<"UUID">;
2056
+ type: "system";
2057
+ signature?: undefined;
2058
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2059
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2060
+ } | {
2061
+ id: string & import("zod").$brand<"UUID">;
2062
+ type: "user";
2063
+ role: string;
2064
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
2065
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2066
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2067
+ };
2068
+ }>;
2069
+ meta: import("trpc-to-openapi").OpenApiMeta;
2070
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
2071
+ transformer: true;
2072
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
2073
+ request: import("@trpc/server").TRPCMutationProcedure<{
2074
+ input: import("../commons").ActionInput;
2075
+ output: import("../commons").EventDocument;
2076
+ meta: import("trpc-to-openapi").OpenApiMeta;
2077
+ }>;
2078
+ accept: import("@trpc/server").TRPCMutationProcedure<{
2079
+ input: (Omit<{
2080
+ eventId: string;
2081
+ transactionId: string;
2082
+ declaration?: Record<string, unknown> | undefined;
2083
+ annotation?: Record<string, unknown> | undefined;
2084
+ originalActionId?: string | undefined;
2085
+ keepAssignment?: boolean | undefined;
2086
+ keepAssignmentIfAccepted?: boolean | undefined;
2087
+ keepAssignmentIfRejected?: boolean | undefined;
2088
+ waitFor?: boolean | undefined;
2089
+ type?: "CREATE" | undefined;
2090
+ createdAtLocation?: string | null | undefined;
2091
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2092
+ eventId: string;
2093
+ transactionId: string;
2094
+ declaration?: Record<string, unknown> | undefined;
2095
+ annotation?: Record<string, unknown> | undefined;
2096
+ originalActionId?: string | undefined;
2097
+ keepAssignment?: boolean | undefined;
2098
+ keepAssignmentIfAccepted?: boolean | undefined;
2099
+ keepAssignmentIfRejected?: boolean | undefined;
2100
+ waitFor?: boolean | undefined;
2101
+ createdAtLocation?: string | null | undefined;
2102
+ type?: "REGISTER" | undefined;
2103
+ registrationNumber?: string | undefined;
2104
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2105
+ eventId: string;
2106
+ transactionId: string;
2107
+ declaration?: Record<string, unknown> | undefined;
2108
+ annotation?: Record<string, unknown> | undefined;
2109
+ originalActionId?: string | undefined;
2110
+ keepAssignment?: boolean | undefined;
2111
+ keepAssignmentIfAccepted?: boolean | undefined;
2112
+ keepAssignmentIfRejected?: boolean | undefined;
2113
+ waitFor?: boolean | undefined;
2114
+ type?: "NOTIFY" | undefined;
2115
+ createdAtLocation?: string | null | undefined;
2116
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2117
+ eventId: string;
2118
+ transactionId: string;
2119
+ declaration?: Record<string, unknown> | undefined;
2120
+ annotation?: Record<string, unknown> | undefined;
2121
+ originalActionId?: string | undefined;
2122
+ keepAssignment?: boolean | undefined;
2123
+ keepAssignmentIfAccepted?: boolean | undefined;
2124
+ keepAssignmentIfRejected?: boolean | undefined;
2125
+ waitFor?: boolean | undefined;
2126
+ createdAtLocation?: string | null | undefined;
2127
+ type?: "DECLARE" | undefined;
2128
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2129
+ eventId: string;
2130
+ transactionId: string;
2131
+ content: {
2132
+ reason: string;
2133
+ };
2134
+ declaration?: Record<string, unknown> | undefined;
2135
+ annotation?: Record<string, unknown> | undefined;
2136
+ originalActionId?: string | undefined;
2137
+ keepAssignment?: boolean | undefined;
2138
+ keepAssignmentIfAccepted?: boolean | undefined;
2139
+ keepAssignmentIfRejected?: boolean | undefined;
2140
+ waitFor?: boolean | undefined;
2141
+ createdAtLocation?: string | null | undefined;
2142
+ type?: "REJECT" | undefined;
2143
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2144
+ eventId: string;
2145
+ transactionId: string;
2146
+ content: {
2147
+ duplicates: {
2148
+ id: string;
2149
+ trackingId: string;
2150
+ }[];
2151
+ };
2152
+ declaration?: Record<string, unknown> | undefined;
2153
+ annotation?: Record<string, unknown> | undefined;
2154
+ originalActionId?: string | undefined;
2155
+ keepAssignment?: boolean | undefined;
2156
+ keepAssignmentIfAccepted?: boolean | undefined;
2157
+ keepAssignmentIfRejected?: boolean | undefined;
2158
+ waitFor?: boolean | undefined;
2159
+ createdAtLocation?: string | null | undefined;
2160
+ type?: "DUPLICATE_DETECTED" | undefined;
2161
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2162
+ eventId: string;
2163
+ transactionId: string;
2164
+ declaration?: Record<string, unknown> | undefined;
2165
+ annotation?: Record<string, unknown> | undefined;
2166
+ originalActionId?: string | undefined;
2167
+ keepAssignment?: boolean | undefined;
2168
+ keepAssignmentIfAccepted?: boolean | undefined;
2169
+ keepAssignmentIfRejected?: boolean | undefined;
2170
+ waitFor?: boolean | undefined;
2171
+ createdAtLocation?: string | null | undefined;
2172
+ type?: "MARK_AS_DUPLICATE" | undefined;
2173
+ content?: {
2174
+ duplicateOf: string;
2175
+ } | undefined;
2176
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2177
+ eventId: string;
2178
+ transactionId: string;
2179
+ declaration?: Record<string, unknown> | undefined;
2180
+ annotation?: Record<string, unknown> | undefined;
2181
+ originalActionId?: string | undefined;
2182
+ keepAssignment?: boolean | undefined;
2183
+ keepAssignmentIfAccepted?: boolean | undefined;
2184
+ keepAssignmentIfRejected?: boolean | undefined;
2185
+ waitFor?: boolean | undefined;
2186
+ createdAtLocation?: string | null | undefined;
2187
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
2188
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2189
+ eventId: string;
2190
+ transactionId: string;
2191
+ content: {
2192
+ reason: string;
2193
+ };
2194
+ declaration?: Record<string, unknown> | undefined;
2195
+ annotation?: Record<string, unknown> | undefined;
2196
+ originalActionId?: string | undefined;
2197
+ keepAssignment?: boolean | undefined;
2198
+ keepAssignmentIfAccepted?: boolean | undefined;
2199
+ keepAssignmentIfRejected?: boolean | undefined;
2200
+ waitFor?: boolean | undefined;
2201
+ createdAtLocation?: string | null | undefined;
2202
+ type?: "ARCHIVE" | undefined;
2203
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2204
+ eventId: string;
2205
+ transactionId: string;
2206
+ type: "ASSIGN";
2207
+ assignedTo: string;
2208
+ declaration?: Record<string, unknown> | undefined;
2209
+ annotation?: Record<string, unknown> | undefined;
2210
+ originalActionId?: string | undefined;
2211
+ keepAssignment?: boolean | undefined;
2212
+ keepAssignmentIfAccepted?: boolean | undefined;
2213
+ keepAssignmentIfRejected?: boolean | undefined;
2214
+ waitFor?: boolean | undefined;
2215
+ createdAtLocation?: string | null | undefined;
2216
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2217
+ eventId: string;
2218
+ transactionId: string;
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?: "UNASSIGN" | undefined;
2228
+ assignedTo?: null | undefined;
2229
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2230
+ eventId: string;
2231
+ transactionId: string;
2232
+ declaration?: Record<string, unknown> | undefined;
2233
+ annotation?: Record<string, unknown> | undefined;
2234
+ originalActionId?: string | undefined;
2235
+ keepAssignment?: boolean | undefined;
2236
+ keepAssignmentIfAccepted?: boolean | undefined;
2237
+ keepAssignmentIfRejected?: boolean | undefined;
2238
+ waitFor?: boolean | undefined;
2239
+ createdAtLocation?: string | null | undefined;
2240
+ type?: "PRINT_CERTIFICATE" | undefined;
2241
+ content?: {
2242
+ templateId?: string | undefined;
2243
+ } | undefined;
2244
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2245
+ eventId: string;
2246
+ transactionId: string;
2247
+ declaration?: Record<string, unknown> | undefined;
2248
+ annotation?: Record<string, unknown> | undefined;
2249
+ originalActionId?: string | undefined;
2250
+ keepAssignment?: boolean | undefined;
2251
+ keepAssignmentIfAccepted?: boolean | undefined;
2252
+ keepAssignmentIfRejected?: boolean | undefined;
2253
+ waitFor?: boolean | undefined;
2254
+ createdAtLocation?: string | null | undefined;
2255
+ type?: "REQUEST_CORRECTION" | undefined;
2256
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2257
+ eventId: string;
2258
+ transactionId: string;
2259
+ requestId: string;
2260
+ content: {
2261
+ reason: string;
2262
+ };
2263
+ declaration?: Record<string, unknown> | undefined;
2264
+ annotation?: Record<string, unknown> | undefined;
2265
+ originalActionId?: string | undefined;
2266
+ keepAssignment?: boolean | undefined;
2267
+ keepAssignmentIfAccepted?: boolean | undefined;
2268
+ keepAssignmentIfRejected?: boolean | undefined;
2269
+ waitFor?: boolean | undefined;
2270
+ createdAtLocation?: string | null | undefined;
2271
+ type?: "REJECT_CORRECTION" | undefined;
2272
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2273
+ eventId: string;
2274
+ transactionId: string;
2275
+ requestId: string;
2276
+ declaration?: Record<string, unknown> | undefined;
2277
+ annotation?: Record<string, unknown> | undefined;
2278
+ originalActionId?: string | undefined;
2279
+ keepAssignment?: boolean | undefined;
2280
+ keepAssignmentIfAccepted?: boolean | undefined;
2281
+ keepAssignmentIfRejected?: boolean | undefined;
2282
+ waitFor?: boolean | undefined;
2283
+ createdAtLocation?: string | null | undefined;
2284
+ type?: "APPROVE_CORRECTION" | undefined;
2285
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2286
+ eventId: string;
2287
+ transactionId: string;
2288
+ declaration?: Record<string, unknown> | undefined;
2289
+ annotation?: Record<string, unknown> | undefined;
2290
+ originalActionId?: string | undefined;
2291
+ keepAssignment?: boolean | undefined;
2292
+ keepAssignmentIfAccepted?: boolean | undefined;
2293
+ keepAssignmentIfRejected?: boolean | undefined;
2294
+ waitFor?: boolean | undefined;
2295
+ createdAtLocation?: string | null | undefined;
2296
+ type?: "READ" | undefined;
2297
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2298
+ eventId: string;
2299
+ transactionId: string;
2300
+ customActionType: string;
2301
+ declaration?: Record<string, unknown> | undefined;
2302
+ annotation?: Record<string, unknown> | undefined;
2303
+ originalActionId?: string | undefined;
2304
+ keepAssignment?: boolean | undefined;
2305
+ keepAssignmentIfAccepted?: boolean | undefined;
2306
+ keepAssignmentIfRejected?: boolean | undefined;
2307
+ waitFor?: boolean | undefined;
2308
+ createdAtLocation?: string | null | undefined;
2309
+ type?: "CUSTOM" | undefined;
2310
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2311
+ eventId: string;
2312
+ transactionId: string;
2313
+ content: {
2314
+ comment?: string | undefined;
2315
+ };
2316
+ declaration?: Record<string, unknown> | undefined;
2317
+ annotation?: Record<string, unknown> | undefined;
2318
+ originalActionId?: string | undefined;
2319
+ keepAssignment?: boolean | undefined;
2320
+ keepAssignmentIfAccepted?: boolean | undefined;
2321
+ keepAssignmentIfRejected?: boolean | undefined;
2322
+ waitFor?: boolean | undefined;
2323
+ createdAtLocation?: string | null | undefined;
2324
+ type?: "EDIT" | undefined;
2325
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2326
+ actionId: string;
2327
+ };
2328
+ output: import("../commons").EventDocument;
2329
+ meta: import("trpc-to-openapi").OpenApiMeta;
2330
+ }>;
2331
+ reject: import("@trpc/server").TRPCMutationProcedure<{
2332
+ input: import("zod").input<import("zod").ZodObject<{
2333
+ transactionId: import("zod").ZodString;
2334
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2335
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2336
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2337
+ }, import("zod/v4/core").$strip>>;
2338
+ output: import("../commons").EventDocument;
2339
+ meta: import("trpc-to-openapi").OpenApiMeta;
2340
+ }>;
2341
+ }>>;
2342
+ reject: import("@trpc/server").TRPCBuiltRouter<{
2343
+ ctx: Partial<{
2344
+ token: `Bearer ${string}`;
2345
+ user: {
2346
+ id: string & import("zod").$brand<"UUID">;
2347
+ type: "system";
2348
+ signature?: undefined;
2349
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2350
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2351
+ } | {
2352
+ id: string & import("zod").$brand<"UUID">;
2353
+ type: "user";
2354
+ role: string;
2355
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
2356
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2357
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2358
+ };
2359
+ }>;
2360
+ meta: import("trpc-to-openapi").OpenApiMeta;
2361
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
2362
+ transformer: true;
2363
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
2364
+ request: import("@trpc/server").TRPCMutationProcedure<{
2365
+ input: import("../commons").ActionInput;
2366
+ output: import("../commons").EventDocument;
2367
+ meta: import("trpc-to-openapi").OpenApiMeta;
2368
+ }>;
2369
+ accept: import("@trpc/server").TRPCMutationProcedure<{
2370
+ input: (Omit<{
2371
+ eventId: string;
2372
+ transactionId: string;
2373
+ declaration?: Record<string, unknown> | undefined;
2374
+ annotation?: Record<string, unknown> | undefined;
2375
+ originalActionId?: string | undefined;
2376
+ keepAssignment?: boolean | undefined;
2377
+ keepAssignmentIfAccepted?: boolean | undefined;
2378
+ keepAssignmentIfRejected?: boolean | undefined;
2379
+ waitFor?: boolean | undefined;
2380
+ type?: "CREATE" | undefined;
2381
+ createdAtLocation?: string | null | undefined;
2382
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2383
+ eventId: string;
2384
+ transactionId: string;
2385
+ declaration?: Record<string, unknown> | undefined;
2386
+ annotation?: Record<string, unknown> | undefined;
2387
+ originalActionId?: string | undefined;
2388
+ keepAssignment?: boolean | undefined;
2389
+ keepAssignmentIfAccepted?: boolean | undefined;
2390
+ keepAssignmentIfRejected?: boolean | undefined;
2391
+ waitFor?: boolean | undefined;
2392
+ createdAtLocation?: string | null | undefined;
2393
+ type?: "REGISTER" | undefined;
2394
+ registrationNumber?: string | undefined;
2395
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2396
+ eventId: string;
2397
+ transactionId: string;
2398
+ declaration?: Record<string, unknown> | undefined;
2399
+ annotation?: Record<string, unknown> | undefined;
2400
+ originalActionId?: string | undefined;
2401
+ keepAssignment?: boolean | undefined;
2402
+ keepAssignmentIfAccepted?: boolean | undefined;
2403
+ keepAssignmentIfRejected?: boolean | undefined;
2404
+ waitFor?: boolean | undefined;
2405
+ type?: "NOTIFY" | undefined;
2406
+ createdAtLocation?: string | null | undefined;
2407
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2408
+ eventId: string;
2409
+ transactionId: string;
2410
+ declaration?: Record<string, unknown> | undefined;
2411
+ annotation?: Record<string, unknown> | undefined;
2412
+ originalActionId?: string | undefined;
2413
+ keepAssignment?: boolean | undefined;
2414
+ keepAssignmentIfAccepted?: boolean | undefined;
2415
+ keepAssignmentIfRejected?: boolean | undefined;
2416
+ waitFor?: boolean | undefined;
2417
+ createdAtLocation?: string | null | undefined;
2418
+ type?: "DECLARE" | undefined;
2419
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2420
+ eventId: string;
2421
+ transactionId: string;
2422
+ content: {
2423
+ reason: string;
2424
+ };
2425
+ declaration?: Record<string, unknown> | undefined;
2426
+ annotation?: Record<string, unknown> | undefined;
2427
+ originalActionId?: string | undefined;
2428
+ keepAssignment?: boolean | undefined;
2429
+ keepAssignmentIfAccepted?: boolean | undefined;
2430
+ keepAssignmentIfRejected?: boolean | undefined;
2431
+ waitFor?: boolean | undefined;
2432
+ createdAtLocation?: string | null | undefined;
2433
+ type?: "REJECT" | undefined;
2434
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2435
+ eventId: string;
2436
+ transactionId: string;
2437
+ content: {
2438
+ duplicates: {
2439
+ id: string;
2440
+ trackingId: string;
2441
+ }[];
2442
+ };
2443
+ declaration?: Record<string, unknown> | undefined;
2444
+ annotation?: Record<string, unknown> | undefined;
2445
+ originalActionId?: string | undefined;
2446
+ keepAssignment?: boolean | undefined;
2447
+ keepAssignmentIfAccepted?: boolean | undefined;
2448
+ keepAssignmentIfRejected?: boolean | undefined;
2449
+ waitFor?: boolean | undefined;
2450
+ createdAtLocation?: string | null | undefined;
2451
+ type?: "DUPLICATE_DETECTED" | undefined;
2452
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2453
+ eventId: string;
2454
+ transactionId: string;
2455
+ declaration?: Record<string, unknown> | undefined;
2456
+ annotation?: Record<string, unknown> | undefined;
2457
+ originalActionId?: string | undefined;
2458
+ keepAssignment?: boolean | undefined;
2459
+ keepAssignmentIfAccepted?: boolean | undefined;
2460
+ keepAssignmentIfRejected?: boolean | undefined;
2461
+ waitFor?: boolean | undefined;
2462
+ createdAtLocation?: string | null | undefined;
2463
+ type?: "MARK_AS_DUPLICATE" | undefined;
2464
+ content?: {
2465
+ duplicateOf: string;
2466
+ } | undefined;
2467
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2468
+ eventId: string;
2469
+ transactionId: string;
2470
+ declaration?: Record<string, unknown> | undefined;
2471
+ annotation?: Record<string, unknown> | undefined;
2472
+ originalActionId?: string | undefined;
2473
+ keepAssignment?: boolean | undefined;
2474
+ keepAssignmentIfAccepted?: boolean | undefined;
2475
+ keepAssignmentIfRejected?: boolean | undefined;
2476
+ waitFor?: boolean | undefined;
2477
+ createdAtLocation?: string | null | undefined;
2478
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
2479
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2480
+ eventId: string;
2481
+ transactionId: string;
2482
+ content: {
2483
+ reason: string;
2484
+ };
2485
+ declaration?: Record<string, unknown> | undefined;
2486
+ annotation?: Record<string, unknown> | undefined;
2487
+ originalActionId?: string | undefined;
2488
+ keepAssignment?: boolean | undefined;
2489
+ keepAssignmentIfAccepted?: boolean | undefined;
2490
+ keepAssignmentIfRejected?: boolean | undefined;
2491
+ waitFor?: boolean | undefined;
2492
+ createdAtLocation?: string | null | undefined;
2493
+ type?: "ARCHIVE" | undefined;
2494
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2495
+ eventId: string;
2496
+ transactionId: string;
2497
+ type: "ASSIGN";
2498
+ assignedTo: string;
2499
+ declaration?: Record<string, unknown> | undefined;
2500
+ annotation?: Record<string, unknown> | undefined;
2501
+ originalActionId?: string | undefined;
2502
+ keepAssignment?: boolean | undefined;
2503
+ keepAssignmentIfAccepted?: boolean | undefined;
2504
+ keepAssignmentIfRejected?: boolean | undefined;
2505
+ waitFor?: boolean | undefined;
2506
+ createdAtLocation?: string | null | undefined;
2507
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2508
+ eventId: string;
2509
+ transactionId: string;
2510
+ declaration?: Record<string, unknown> | undefined;
2511
+ annotation?: Record<string, unknown> | undefined;
2512
+ originalActionId?: string | undefined;
2513
+ keepAssignment?: boolean | undefined;
2514
+ keepAssignmentIfAccepted?: boolean | undefined;
2515
+ keepAssignmentIfRejected?: boolean | undefined;
2516
+ waitFor?: boolean | undefined;
2517
+ createdAtLocation?: string | null | undefined;
2518
+ type?: "UNASSIGN" | undefined;
2519
+ assignedTo?: null | undefined;
2520
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2521
+ eventId: string;
2522
+ transactionId: string;
2523
+ declaration?: Record<string, unknown> | undefined;
2524
+ annotation?: Record<string, unknown> | undefined;
2525
+ originalActionId?: string | undefined;
2526
+ keepAssignment?: boolean | undefined;
2527
+ keepAssignmentIfAccepted?: boolean | undefined;
2528
+ keepAssignmentIfRejected?: boolean | undefined;
2529
+ waitFor?: boolean | undefined;
2530
+ createdAtLocation?: string | null | undefined;
2531
+ type?: "PRINT_CERTIFICATE" | undefined;
2532
+ content?: {
2533
+ templateId?: string | undefined;
2534
+ } | undefined;
2535
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2536
+ eventId: string;
2537
+ transactionId: string;
2538
+ declaration?: Record<string, unknown> | undefined;
2539
+ annotation?: Record<string, unknown> | undefined;
2540
+ originalActionId?: string | undefined;
2541
+ keepAssignment?: boolean | undefined;
2542
+ keepAssignmentIfAccepted?: boolean | undefined;
2543
+ keepAssignmentIfRejected?: boolean | undefined;
2544
+ waitFor?: boolean | undefined;
2545
+ createdAtLocation?: string | null | undefined;
2546
+ type?: "REQUEST_CORRECTION" | undefined;
2547
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2548
+ eventId: string;
2549
+ transactionId: string;
2550
+ requestId: string;
2551
+ content: {
2552
+ reason: string;
2553
+ };
2554
+ declaration?: Record<string, unknown> | undefined;
2555
+ annotation?: Record<string, unknown> | undefined;
2556
+ originalActionId?: string | undefined;
2557
+ keepAssignment?: boolean | undefined;
2558
+ keepAssignmentIfAccepted?: boolean | undefined;
2559
+ keepAssignmentIfRejected?: boolean | undefined;
2560
+ waitFor?: boolean | undefined;
2561
+ createdAtLocation?: string | null | undefined;
2562
+ type?: "REJECT_CORRECTION" | undefined;
2563
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2564
+ eventId: string;
2565
+ transactionId: string;
2566
+ requestId: string;
2567
+ declaration?: Record<string, unknown> | undefined;
2568
+ annotation?: Record<string, unknown> | undefined;
2569
+ originalActionId?: string | undefined;
2570
+ keepAssignment?: boolean | undefined;
2571
+ keepAssignmentIfAccepted?: boolean | undefined;
2572
+ keepAssignmentIfRejected?: boolean | undefined;
2573
+ waitFor?: boolean | undefined;
2574
+ createdAtLocation?: string | null | undefined;
2575
+ type?: "APPROVE_CORRECTION" | undefined;
2576
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2577
+ eventId: string;
2578
+ transactionId: string;
2579
+ declaration?: Record<string, unknown> | undefined;
2580
+ annotation?: Record<string, unknown> | undefined;
2581
+ originalActionId?: string | undefined;
2582
+ keepAssignment?: boolean | undefined;
2583
+ keepAssignmentIfAccepted?: boolean | undefined;
2584
+ keepAssignmentIfRejected?: boolean | undefined;
2585
+ waitFor?: boolean | undefined;
2586
+ createdAtLocation?: string | null | undefined;
2587
+ type?: "READ" | undefined;
2588
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2589
+ eventId: string;
2590
+ transactionId: string;
2591
+ customActionType: string;
2592
+ declaration?: Record<string, unknown> | undefined;
2593
+ annotation?: Record<string, unknown> | undefined;
2594
+ originalActionId?: string | undefined;
2595
+ keepAssignment?: boolean | undefined;
2596
+ keepAssignmentIfAccepted?: boolean | undefined;
2597
+ keepAssignmentIfRejected?: boolean | undefined;
2598
+ waitFor?: boolean | undefined;
2599
+ createdAtLocation?: string | null | undefined;
2600
+ type?: "CUSTOM" | undefined;
2601
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2602
+ eventId: string;
2603
+ transactionId: string;
2604
+ content: {
2605
+ comment?: string | undefined;
2606
+ };
2607
+ declaration?: Record<string, unknown> | undefined;
2608
+ annotation?: Record<string, unknown> | undefined;
2609
+ originalActionId?: string | undefined;
2610
+ keepAssignment?: boolean | undefined;
2611
+ keepAssignmentIfAccepted?: boolean | undefined;
2612
+ keepAssignmentIfRejected?: boolean | undefined;
2613
+ waitFor?: boolean | undefined;
2614
+ createdAtLocation?: string | null | undefined;
2615
+ type?: "EDIT" | undefined;
2616
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2617
+ actionId: string;
2618
+ };
2619
+ output: import("../commons").EventDocument;
2620
+ meta: import("trpc-to-openapi").OpenApiMeta;
2621
+ }>;
2622
+ reject: import("@trpc/server").TRPCMutationProcedure<{
2623
+ input: import("zod").input<import("zod").ZodObject<{
2624
+ transactionId: import("zod").ZodString;
2625
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2626
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2627
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2628
+ }, import("zod/v4/core").$strip>>;
2629
+ output: import("../commons").EventDocument;
2630
+ meta: import("trpc-to-openapi").OpenApiMeta;
2631
+ }>;
2632
+ }>>;
2633
+ archive: import("@trpc/server").TRPCBuiltRouter<{
2634
+ ctx: Partial<{
2635
+ token: `Bearer ${string}`;
2636
+ user: {
2637
+ id: string & import("zod").$brand<"UUID">;
2638
+ type: "system";
2639
+ signature?: undefined;
2640
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2641
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2642
+ } | {
2643
+ id: string & import("zod").$brand<"UUID">;
2644
+ type: "user";
2645
+ role: string;
2646
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
2647
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2648
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2649
+ };
2650
+ }>;
2651
+ meta: import("trpc-to-openapi").OpenApiMeta;
2652
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
2653
+ transformer: true;
2654
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
2655
+ request: import("@trpc/server").TRPCMutationProcedure<{
2656
+ input: import("../commons").ActionInput;
2657
+ output: import("../commons").EventDocument;
2658
+ meta: import("trpc-to-openapi").OpenApiMeta;
2659
+ }>;
2660
+ accept: import("@trpc/server").TRPCMutationProcedure<{
2661
+ input: (Omit<{
2662
+ eventId: string;
2663
+ transactionId: string;
2664
+ declaration?: Record<string, unknown> | undefined;
2665
+ annotation?: Record<string, unknown> | undefined;
2666
+ originalActionId?: string | undefined;
2667
+ keepAssignment?: boolean | undefined;
2668
+ keepAssignmentIfAccepted?: boolean | undefined;
2669
+ keepAssignmentIfRejected?: boolean | undefined;
2670
+ waitFor?: boolean | undefined;
2671
+ type?: "CREATE" | undefined;
2672
+ createdAtLocation?: string | null | undefined;
2673
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2674
+ eventId: string;
2675
+ transactionId: string;
2676
+ declaration?: Record<string, unknown> | undefined;
2677
+ annotation?: Record<string, unknown> | undefined;
2678
+ originalActionId?: string | undefined;
2679
+ keepAssignment?: boolean | undefined;
2680
+ keepAssignmentIfAccepted?: boolean | undefined;
2681
+ keepAssignmentIfRejected?: boolean | undefined;
2682
+ waitFor?: boolean | undefined;
2683
+ createdAtLocation?: string | null | undefined;
2684
+ type?: "REGISTER" | undefined;
2685
+ registrationNumber?: string | undefined;
2686
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2687
+ eventId: string;
2688
+ transactionId: string;
2689
+ declaration?: Record<string, unknown> | undefined;
2690
+ annotation?: Record<string, unknown> | undefined;
2691
+ originalActionId?: string | undefined;
2692
+ keepAssignment?: boolean | undefined;
2693
+ keepAssignmentIfAccepted?: boolean | undefined;
2694
+ keepAssignmentIfRejected?: boolean | undefined;
2695
+ waitFor?: boolean | undefined;
2696
+ type?: "NOTIFY" | undefined;
2697
+ createdAtLocation?: string | null | undefined;
2698
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2699
+ eventId: string;
2700
+ transactionId: string;
2701
+ declaration?: Record<string, unknown> | undefined;
2702
+ annotation?: Record<string, unknown> | undefined;
2703
+ originalActionId?: string | undefined;
2704
+ keepAssignment?: boolean | undefined;
2705
+ keepAssignmentIfAccepted?: boolean | undefined;
2706
+ keepAssignmentIfRejected?: boolean | undefined;
2707
+ waitFor?: boolean | undefined;
2708
+ createdAtLocation?: string | null | undefined;
2709
+ type?: "DECLARE" | undefined;
2710
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2711
+ eventId: string;
2712
+ transactionId: string;
2713
+ content: {
2714
+ reason: string;
2715
+ };
2716
+ declaration?: Record<string, unknown> | undefined;
2717
+ annotation?: Record<string, unknown> | undefined;
2718
+ originalActionId?: string | undefined;
2719
+ keepAssignment?: boolean | undefined;
2720
+ keepAssignmentIfAccepted?: boolean | undefined;
2721
+ keepAssignmentIfRejected?: boolean | undefined;
2722
+ waitFor?: boolean | undefined;
2723
+ createdAtLocation?: string | null | undefined;
2724
+ type?: "REJECT" | undefined;
2725
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2726
+ eventId: string;
2727
+ transactionId: string;
2728
+ content: {
2729
+ duplicates: {
2730
+ id: string;
2731
+ trackingId: string;
2732
+ }[];
2733
+ };
2734
+ declaration?: Record<string, unknown> | undefined;
2735
+ annotation?: Record<string, unknown> | undefined;
2736
+ originalActionId?: string | undefined;
2737
+ keepAssignment?: boolean | undefined;
2738
+ keepAssignmentIfAccepted?: boolean | undefined;
2739
+ keepAssignmentIfRejected?: boolean | undefined;
2740
+ waitFor?: boolean | undefined;
2741
+ createdAtLocation?: string | null | undefined;
2742
+ type?: "DUPLICATE_DETECTED" | undefined;
2743
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2744
+ eventId: string;
2745
+ transactionId: string;
2746
+ declaration?: Record<string, unknown> | undefined;
2747
+ annotation?: Record<string, unknown> | undefined;
2748
+ originalActionId?: string | undefined;
2749
+ keepAssignment?: boolean | undefined;
2750
+ keepAssignmentIfAccepted?: boolean | undefined;
2751
+ keepAssignmentIfRejected?: boolean | undefined;
2752
+ waitFor?: boolean | undefined;
2753
+ createdAtLocation?: string | null | undefined;
2754
+ type?: "MARK_AS_DUPLICATE" | undefined;
2755
+ content?: {
2756
+ duplicateOf: string;
2757
+ } | undefined;
2758
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2759
+ eventId: string;
2760
+ transactionId: string;
2761
+ declaration?: Record<string, unknown> | undefined;
2762
+ annotation?: Record<string, unknown> | undefined;
2763
+ originalActionId?: string | undefined;
2764
+ keepAssignment?: boolean | undefined;
2765
+ keepAssignmentIfAccepted?: boolean | undefined;
2766
+ keepAssignmentIfRejected?: boolean | undefined;
2767
+ waitFor?: boolean | undefined;
2768
+ createdAtLocation?: string | null | undefined;
2769
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
2770
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2771
+ eventId: string;
2772
+ transactionId: string;
2773
+ content: {
2774
+ reason: string;
2775
+ };
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?: "ARCHIVE" | undefined;
2785
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2786
+ eventId: string;
2787
+ transactionId: string;
2788
+ type: "ASSIGN";
2789
+ assignedTo: string;
2790
+ declaration?: Record<string, unknown> | undefined;
2791
+ annotation?: Record<string, unknown> | undefined;
2792
+ originalActionId?: string | undefined;
2793
+ keepAssignment?: boolean | undefined;
2794
+ keepAssignmentIfAccepted?: boolean | undefined;
2795
+ keepAssignmentIfRejected?: boolean | undefined;
2796
+ waitFor?: boolean | undefined;
2797
+ createdAtLocation?: string | null | undefined;
2798
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2799
+ eventId: string;
2800
+ transactionId: string;
2801
+ declaration?: Record<string, unknown> | undefined;
2802
+ annotation?: Record<string, unknown> | undefined;
2803
+ originalActionId?: string | undefined;
2804
+ keepAssignment?: boolean | undefined;
2805
+ keepAssignmentIfAccepted?: boolean | undefined;
2806
+ keepAssignmentIfRejected?: boolean | undefined;
2807
+ waitFor?: boolean | undefined;
2808
+ createdAtLocation?: string | null | undefined;
2809
+ type?: "UNASSIGN" | undefined;
2810
+ assignedTo?: null | undefined;
2811
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2812
+ eventId: string;
2813
+ transactionId: string;
2814
+ declaration?: Record<string, unknown> | undefined;
2815
+ annotation?: Record<string, unknown> | undefined;
2816
+ originalActionId?: string | undefined;
2817
+ keepAssignment?: boolean | undefined;
2818
+ keepAssignmentIfAccepted?: boolean | undefined;
2819
+ keepAssignmentIfRejected?: boolean | undefined;
2820
+ waitFor?: boolean | undefined;
2821
+ createdAtLocation?: string | null | undefined;
2822
+ type?: "PRINT_CERTIFICATE" | undefined;
2823
+ content?: {
2824
+ templateId?: string | undefined;
2825
+ } | undefined;
2826
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2827
+ eventId: string;
2828
+ transactionId: string;
2829
+ declaration?: Record<string, unknown> | undefined;
2830
+ annotation?: Record<string, unknown> | undefined;
2831
+ originalActionId?: string | undefined;
2832
+ keepAssignment?: boolean | undefined;
2833
+ keepAssignmentIfAccepted?: boolean | undefined;
2834
+ keepAssignmentIfRejected?: boolean | undefined;
2835
+ waitFor?: boolean | undefined;
2836
+ createdAtLocation?: string | null | undefined;
2837
+ type?: "REQUEST_CORRECTION" | undefined;
2838
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2839
+ eventId: string;
2840
+ transactionId: string;
2841
+ requestId: string;
2842
+ content: {
2843
+ reason: string;
2844
+ };
2845
+ declaration?: Record<string, unknown> | undefined;
2846
+ annotation?: Record<string, unknown> | undefined;
2847
+ originalActionId?: string | undefined;
2848
+ keepAssignment?: boolean | undefined;
2849
+ keepAssignmentIfAccepted?: boolean | undefined;
2850
+ keepAssignmentIfRejected?: boolean | undefined;
2851
+ waitFor?: boolean | undefined;
2852
+ createdAtLocation?: string | null | undefined;
2853
+ type?: "REJECT_CORRECTION" | undefined;
2854
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2855
+ eventId: string;
2856
+ transactionId: string;
2857
+ requestId: string;
2858
+ declaration?: Record<string, unknown> | undefined;
2859
+ annotation?: Record<string, unknown> | undefined;
2860
+ originalActionId?: string | undefined;
2861
+ keepAssignment?: boolean | undefined;
2862
+ keepAssignmentIfAccepted?: boolean | undefined;
2863
+ keepAssignmentIfRejected?: boolean | undefined;
2864
+ waitFor?: boolean | undefined;
2865
+ createdAtLocation?: string | null | undefined;
2866
+ type?: "APPROVE_CORRECTION" | undefined;
2867
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2868
+ eventId: string;
2869
+ transactionId: string;
2870
+ declaration?: Record<string, unknown> | undefined;
2871
+ annotation?: Record<string, unknown> | undefined;
2872
+ originalActionId?: string | undefined;
2873
+ keepAssignment?: boolean | undefined;
2874
+ keepAssignmentIfAccepted?: boolean | undefined;
2875
+ keepAssignmentIfRejected?: boolean | undefined;
2876
+ waitFor?: boolean | undefined;
2877
+ createdAtLocation?: string | null | undefined;
2878
+ type?: "READ" | undefined;
2879
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2880
+ eventId: string;
2881
+ transactionId: string;
2882
+ customActionType: string;
2883
+ declaration?: Record<string, unknown> | undefined;
2884
+ annotation?: Record<string, unknown> | undefined;
2885
+ originalActionId?: string | undefined;
2886
+ keepAssignment?: boolean | undefined;
2887
+ keepAssignmentIfAccepted?: boolean | undefined;
2888
+ keepAssignmentIfRejected?: boolean | undefined;
2889
+ waitFor?: boolean | undefined;
2890
+ createdAtLocation?: string | null | undefined;
2891
+ type?: "CUSTOM" | undefined;
2892
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2893
+ eventId: string;
2894
+ transactionId: string;
2895
+ content: {
2896
+ comment?: string | undefined;
2897
+ };
2898
+ declaration?: Record<string, unknown> | undefined;
2899
+ annotation?: Record<string, unknown> | undefined;
2900
+ originalActionId?: string | undefined;
2901
+ keepAssignment?: boolean | undefined;
2902
+ keepAssignmentIfAccepted?: boolean | undefined;
2903
+ keepAssignmentIfRejected?: boolean | undefined;
2904
+ waitFor?: boolean | undefined;
2905
+ createdAtLocation?: string | null | undefined;
2906
+ type?: "EDIT" | undefined;
2907
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2908
+ actionId: string;
2909
+ };
2910
+ output: import("../commons").EventDocument;
2911
+ meta: import("trpc-to-openapi").OpenApiMeta;
2912
+ }>;
2913
+ reject: import("@trpc/server").TRPCMutationProcedure<{
2914
+ input: import("zod").input<import("zod").ZodObject<{
2915
+ transactionId: import("zod").ZodString;
2916
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2917
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2918
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2919
+ }, import("zod/v4/core").$strip>>;
2920
+ output: import("../commons").EventDocument;
2921
+ meta: import("trpc-to-openapi").OpenApiMeta;
2922
+ }>;
2923
+ }>>;
2924
+ register: import("@trpc/server").TRPCBuiltRouter<{
2925
+ ctx: Partial<{
2926
+ token: `Bearer ${string}`;
2927
+ user: {
2928
+ id: string & import("zod").$brand<"UUID">;
2929
+ type: "system";
2930
+ signature?: undefined;
2931
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2932
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2933
+ } | {
2934
+ id: string & import("zod").$brand<"UUID">;
2935
+ type: "user";
2936
+ role: string;
2937
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
2938
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2939
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2940
+ };
2941
+ }>;
2942
+ meta: import("trpc-to-openapi").OpenApiMeta;
2943
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
2944
+ transformer: true;
2945
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
2946
+ request: import("@trpc/server").TRPCMutationProcedure<{
2947
+ input: import("../commons").ActionInput;
2948
+ output: import("../commons").EventDocument;
2949
+ meta: import("trpc-to-openapi").OpenApiMeta;
2950
+ }>;
2951
+ accept: import("@trpc/server").TRPCMutationProcedure<{
2952
+ input: (Omit<{
2953
+ eventId: string;
2954
+ transactionId: string;
2955
+ declaration?: Record<string, unknown> | undefined;
2956
+ annotation?: Record<string, unknown> | undefined;
2957
+ originalActionId?: string | undefined;
2958
+ keepAssignment?: boolean | undefined;
2959
+ keepAssignmentIfAccepted?: boolean | undefined;
2960
+ keepAssignmentIfRejected?: boolean | undefined;
2961
+ waitFor?: boolean | undefined;
2962
+ type?: "CREATE" | undefined;
2963
+ createdAtLocation?: string | null | undefined;
2964
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2965
+ eventId: string;
2966
+ transactionId: string;
2967
+ declaration?: Record<string, unknown> | undefined;
2968
+ annotation?: Record<string, unknown> | undefined;
2969
+ originalActionId?: string | undefined;
2970
+ keepAssignment?: boolean | undefined;
2971
+ keepAssignmentIfAccepted?: boolean | undefined;
2972
+ keepAssignmentIfRejected?: boolean | undefined;
2973
+ waitFor?: boolean | undefined;
2974
+ createdAtLocation?: string | null | undefined;
2975
+ type?: "REGISTER" | undefined;
2976
+ registrationNumber?: string | undefined;
2977
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2978
+ eventId: string;
2979
+ transactionId: string;
2980
+ declaration?: Record<string, unknown> | undefined;
2981
+ annotation?: Record<string, unknown> | undefined;
2982
+ originalActionId?: string | undefined;
2983
+ keepAssignment?: boolean | undefined;
2984
+ keepAssignmentIfAccepted?: boolean | undefined;
2985
+ keepAssignmentIfRejected?: boolean | undefined;
2986
+ waitFor?: boolean | undefined;
2987
+ type?: "NOTIFY" | undefined;
2988
+ createdAtLocation?: string | null | undefined;
2989
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2990
+ eventId: string;
2991
+ transactionId: string;
2992
+ declaration?: Record<string, unknown> | undefined;
2993
+ annotation?: Record<string, unknown> | undefined;
2994
+ originalActionId?: string | undefined;
2995
+ keepAssignment?: boolean | undefined;
2996
+ keepAssignmentIfAccepted?: boolean | undefined;
2997
+ keepAssignmentIfRejected?: boolean | undefined;
2998
+ waitFor?: boolean | undefined;
2999
+ createdAtLocation?: string | null | undefined;
3000
+ type?: "DECLARE" | undefined;
3001
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3002
+ eventId: string;
3003
+ transactionId: string;
3004
+ content: {
3005
+ reason: string;
3006
+ };
3007
+ declaration?: Record<string, unknown> | undefined;
3008
+ annotation?: Record<string, unknown> | undefined;
3009
+ originalActionId?: string | undefined;
3010
+ keepAssignment?: boolean | undefined;
3011
+ keepAssignmentIfAccepted?: boolean | undefined;
3012
+ keepAssignmentIfRejected?: boolean | undefined;
3013
+ waitFor?: boolean | undefined;
3014
+ createdAtLocation?: string | null | undefined;
3015
+ type?: "REJECT" | undefined;
3016
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3017
+ eventId: string;
3018
+ transactionId: string;
3019
+ content: {
3020
+ duplicates: {
3021
+ id: string;
3022
+ trackingId: string;
3023
+ }[];
3024
+ };
3025
+ declaration?: Record<string, unknown> | undefined;
3026
+ annotation?: Record<string, unknown> | undefined;
3027
+ originalActionId?: string | undefined;
3028
+ keepAssignment?: boolean | undefined;
3029
+ keepAssignmentIfAccepted?: boolean | undefined;
3030
+ keepAssignmentIfRejected?: boolean | undefined;
3031
+ waitFor?: boolean | undefined;
3032
+ createdAtLocation?: string | null | undefined;
3033
+ type?: "DUPLICATE_DETECTED" | undefined;
3034
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3035
+ eventId: string;
3036
+ transactionId: string;
3037
+ declaration?: Record<string, unknown> | undefined;
3038
+ annotation?: Record<string, unknown> | undefined;
3039
+ originalActionId?: string | undefined;
3040
+ keepAssignment?: boolean | undefined;
3041
+ keepAssignmentIfAccepted?: boolean | undefined;
3042
+ keepAssignmentIfRejected?: boolean | undefined;
3043
+ waitFor?: boolean | undefined;
3044
+ createdAtLocation?: string | null | undefined;
3045
+ type?: "MARK_AS_DUPLICATE" | undefined;
3046
+ content?: {
3047
+ duplicateOf: string;
3048
+ } | undefined;
3049
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3050
+ eventId: string;
3051
+ transactionId: string;
3052
+ declaration?: Record<string, unknown> | undefined;
3053
+ annotation?: Record<string, unknown> | undefined;
3054
+ originalActionId?: string | undefined;
3055
+ keepAssignment?: boolean | undefined;
3056
+ keepAssignmentIfAccepted?: boolean | undefined;
3057
+ keepAssignmentIfRejected?: boolean | undefined;
3058
+ waitFor?: boolean | undefined;
3059
+ createdAtLocation?: string | null | undefined;
3060
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
3061
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3062
+ eventId: string;
3063
+ transactionId: string;
3064
+ content: {
3065
+ reason: string;
3066
+ };
3067
+ declaration?: Record<string, unknown> | undefined;
3068
+ annotation?: Record<string, unknown> | undefined;
3069
+ originalActionId?: string | undefined;
3070
+ keepAssignment?: boolean | undefined;
3071
+ keepAssignmentIfAccepted?: boolean | undefined;
3072
+ keepAssignmentIfRejected?: boolean | undefined;
3073
+ waitFor?: boolean | undefined;
3074
+ createdAtLocation?: string | null | undefined;
3075
+ type?: "ARCHIVE" | undefined;
3076
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3077
+ eventId: string;
3078
+ transactionId: string;
3079
+ type: "ASSIGN";
3080
+ assignedTo: string;
3081
+ declaration?: Record<string, unknown> | undefined;
3082
+ annotation?: Record<string, unknown> | undefined;
3083
+ originalActionId?: string | undefined;
3084
+ keepAssignment?: boolean | undefined;
3085
+ keepAssignmentIfAccepted?: boolean | undefined;
3086
+ keepAssignmentIfRejected?: boolean | undefined;
3087
+ waitFor?: boolean | undefined;
3088
+ createdAtLocation?: string | null | undefined;
3089
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3090
+ eventId: string;
3091
+ transactionId: string;
3092
+ declaration?: Record<string, unknown> | undefined;
3093
+ annotation?: Record<string, unknown> | undefined;
3094
+ originalActionId?: string | undefined;
3095
+ keepAssignment?: boolean | undefined;
3096
+ keepAssignmentIfAccepted?: boolean | undefined;
3097
+ keepAssignmentIfRejected?: boolean | undefined;
3098
+ waitFor?: boolean | undefined;
3099
+ createdAtLocation?: string | null | undefined;
3100
+ type?: "UNASSIGN" | undefined;
3101
+ assignedTo?: null | undefined;
3102
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3103
+ eventId: string;
3104
+ transactionId: string;
3105
+ declaration?: Record<string, unknown> | undefined;
3106
+ annotation?: Record<string, unknown> | undefined;
3107
+ originalActionId?: string | undefined;
3108
+ keepAssignment?: boolean | undefined;
3109
+ keepAssignmentIfAccepted?: boolean | undefined;
3110
+ keepAssignmentIfRejected?: boolean | undefined;
3111
+ waitFor?: boolean | undefined;
3112
+ createdAtLocation?: string | null | undefined;
3113
+ type?: "PRINT_CERTIFICATE" | undefined;
3114
+ content?: {
3115
+ templateId?: string | undefined;
3116
+ } | undefined;
3117
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3118
+ eventId: string;
3119
+ transactionId: string;
3120
+ declaration?: Record<string, unknown> | undefined;
3121
+ annotation?: Record<string, unknown> | undefined;
3122
+ originalActionId?: string | undefined;
3123
+ keepAssignment?: boolean | undefined;
3124
+ keepAssignmentIfAccepted?: boolean | undefined;
3125
+ keepAssignmentIfRejected?: boolean | undefined;
3126
+ waitFor?: boolean | undefined;
3127
+ createdAtLocation?: string | null | undefined;
3128
+ type?: "REQUEST_CORRECTION" | undefined;
3129
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3130
+ eventId: string;
3131
+ transactionId: string;
3132
+ requestId: string;
3133
+ content: {
3134
+ reason: string;
3135
+ };
3136
+ declaration?: Record<string, unknown> | undefined;
3137
+ annotation?: Record<string, unknown> | undefined;
3138
+ originalActionId?: string | undefined;
3139
+ keepAssignment?: boolean | undefined;
3140
+ keepAssignmentIfAccepted?: boolean | undefined;
3141
+ keepAssignmentIfRejected?: boolean | undefined;
3142
+ waitFor?: boolean | undefined;
3143
+ createdAtLocation?: string | null | undefined;
3144
+ type?: "REJECT_CORRECTION" | undefined;
3145
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3146
+ eventId: string;
3147
+ transactionId: string;
3148
+ requestId: string;
3149
+ declaration?: Record<string, unknown> | undefined;
3150
+ annotation?: Record<string, unknown> | undefined;
3151
+ originalActionId?: string | undefined;
3152
+ keepAssignment?: boolean | undefined;
3153
+ keepAssignmentIfAccepted?: boolean | undefined;
3154
+ keepAssignmentIfRejected?: boolean | undefined;
3155
+ waitFor?: boolean | undefined;
3156
+ createdAtLocation?: string | null | undefined;
3157
+ type?: "APPROVE_CORRECTION" | undefined;
3158
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3159
+ eventId: string;
3160
+ transactionId: string;
3161
+ declaration?: Record<string, unknown> | undefined;
3162
+ annotation?: Record<string, unknown> | undefined;
3163
+ originalActionId?: string | undefined;
3164
+ keepAssignment?: boolean | undefined;
3165
+ keepAssignmentIfAccepted?: boolean | undefined;
3166
+ keepAssignmentIfRejected?: boolean | undefined;
3167
+ waitFor?: boolean | undefined;
3168
+ createdAtLocation?: string | null | undefined;
3169
+ type?: "READ" | undefined;
3170
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3171
+ eventId: string;
3172
+ transactionId: string;
3173
+ customActionType: string;
3174
+ declaration?: Record<string, unknown> | undefined;
3175
+ annotation?: Record<string, unknown> | undefined;
3176
+ originalActionId?: string | undefined;
3177
+ keepAssignment?: boolean | undefined;
3178
+ keepAssignmentIfAccepted?: boolean | undefined;
3179
+ keepAssignmentIfRejected?: boolean | undefined;
3180
+ waitFor?: boolean | undefined;
3181
+ createdAtLocation?: string | null | undefined;
3182
+ type?: "CUSTOM" | undefined;
3183
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3184
+ eventId: string;
3185
+ transactionId: string;
3186
+ content: {
3187
+ comment?: string | undefined;
3188
+ };
3189
+ declaration?: Record<string, unknown> | undefined;
3190
+ annotation?: Record<string, unknown> | undefined;
3191
+ originalActionId?: string | undefined;
3192
+ keepAssignment?: boolean | undefined;
3193
+ keepAssignmentIfAccepted?: boolean | undefined;
3194
+ keepAssignmentIfRejected?: boolean | undefined;
3195
+ waitFor?: boolean | undefined;
3196
+ createdAtLocation?: string | null | undefined;
3197
+ type?: "EDIT" | undefined;
3198
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
3199
+ actionId: string;
3200
+ };
3201
+ output: import("../commons").EventDocument;
3202
+ meta: import("trpc-to-openapi").OpenApiMeta;
3203
+ }>;
3204
+ reject: import("@trpc/server").TRPCMutationProcedure<{
3205
+ input: import("zod").input<import("zod").ZodObject<{
3206
+ transactionId: import("zod").ZodString;
3207
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3208
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3209
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3210
+ }, import("zod/v4/core").$strip>>;
3211
+ output: import("../commons").EventDocument;
1636
3212
  meta: import("trpc-to-openapi").OpenApiMeta;
1637
3213
  }>;
1638
3214
  }>>;
1639
- archive: import("@trpc/server").TRPCBuiltRouter<{
3215
+ printCertificate: import("@trpc/server").TRPCBuiltRouter<{
1640
3216
  ctx: Partial<{
1641
3217
  token: `Bearer ${string}`;
1642
3218
  user: {
@@ -1664,106 +3240,265 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1664
3240
  meta: import("trpc-to-openapi").OpenApiMeta;
1665
3241
  }>;
1666
3242
  accept: import("@trpc/server").TRPCMutationProcedure<{
1667
- input: import("../commons").ActionInput & {
1668
- actionId: string;
1669
- };
1670
- output: import("../commons").EventDocument;
1671
- meta: import("trpc-to-openapi").OpenApiMeta;
1672
- }>;
1673
- reject: import("@trpc/server").TRPCMutationProcedure<{
1674
- input: {
3243
+ input: (Omit<{
3244
+ eventId: string;
3245
+ transactionId: string;
3246
+ declaration?: Record<string, unknown> | undefined;
3247
+ annotation?: Record<string, unknown> | undefined;
3248
+ originalActionId?: string | undefined;
3249
+ keepAssignment?: boolean | undefined;
3250
+ keepAssignmentIfAccepted?: boolean | undefined;
3251
+ keepAssignmentIfRejected?: boolean | undefined;
3252
+ waitFor?: boolean | undefined;
3253
+ type?: "CREATE" | undefined;
3254
+ createdAtLocation?: string | null | undefined;
3255
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3256
+ eventId: string;
3257
+ transactionId: string;
3258
+ declaration?: Record<string, unknown> | undefined;
3259
+ annotation?: Record<string, unknown> | undefined;
3260
+ originalActionId?: string | undefined;
3261
+ keepAssignment?: boolean | undefined;
3262
+ keepAssignmentIfAccepted?: boolean | undefined;
3263
+ keepAssignmentIfRejected?: boolean | undefined;
3264
+ waitFor?: boolean | undefined;
3265
+ createdAtLocation?: string | null | undefined;
3266
+ type?: "REGISTER" | undefined;
3267
+ registrationNumber?: string | undefined;
3268
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3269
+ eventId: string;
3270
+ transactionId: string;
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
+ type?: "NOTIFY" | undefined;
3279
+ createdAtLocation?: string | null | undefined;
3280
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3281
+ eventId: string;
3282
+ transactionId: string;
3283
+ declaration?: Record<string, unknown> | undefined;
3284
+ annotation?: Record<string, unknown> | undefined;
3285
+ originalActionId?: string | undefined;
3286
+ keepAssignment?: boolean | undefined;
3287
+ keepAssignmentIfAccepted?: boolean | undefined;
3288
+ keepAssignmentIfRejected?: boolean | undefined;
3289
+ waitFor?: boolean | undefined;
3290
+ createdAtLocation?: string | null | undefined;
3291
+ type?: "DECLARE" | undefined;
3292
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3293
+ eventId: string;
3294
+ transactionId: string;
3295
+ content: {
3296
+ reason: string;
3297
+ };
3298
+ declaration?: Record<string, unknown> | undefined;
3299
+ annotation?: Record<string, unknown> | undefined;
3300
+ originalActionId?: string | undefined;
3301
+ keepAssignment?: boolean | undefined;
3302
+ keepAssignmentIfAccepted?: boolean | undefined;
3303
+ keepAssignmentIfRejected?: boolean | undefined;
3304
+ waitFor?: boolean | undefined;
3305
+ createdAtLocation?: string | null | undefined;
3306
+ type?: "REJECT" | undefined;
3307
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3308
+ eventId: string;
3309
+ transactionId: string;
3310
+ content: {
3311
+ duplicates: {
3312
+ id: string;
3313
+ trackingId: string;
3314
+ }[];
3315
+ };
3316
+ declaration?: Record<string, unknown> | undefined;
3317
+ annotation?: Record<string, unknown> | undefined;
3318
+ originalActionId?: string | undefined;
3319
+ keepAssignment?: boolean | undefined;
3320
+ keepAssignmentIfAccepted?: boolean | undefined;
3321
+ keepAssignmentIfRejected?: boolean | undefined;
3322
+ waitFor?: boolean | undefined;
3323
+ createdAtLocation?: string | null | undefined;
3324
+ type?: "DUPLICATE_DETECTED" | undefined;
3325
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3326
+ eventId: string;
3327
+ transactionId: string;
3328
+ declaration?: Record<string, unknown> | undefined;
3329
+ annotation?: Record<string, unknown> | undefined;
3330
+ originalActionId?: string | undefined;
3331
+ keepAssignment?: boolean | undefined;
3332
+ keepAssignmentIfAccepted?: boolean | undefined;
3333
+ keepAssignmentIfRejected?: boolean | undefined;
3334
+ waitFor?: boolean | undefined;
3335
+ createdAtLocation?: string | null | undefined;
3336
+ type?: "MARK_AS_DUPLICATE" | undefined;
3337
+ content?: {
3338
+ duplicateOf: string;
3339
+ } | undefined;
3340
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3341
+ eventId: string;
3342
+ transactionId: string;
3343
+ declaration?: Record<string, unknown> | undefined;
3344
+ annotation?: Record<string, unknown> | undefined;
3345
+ originalActionId?: string | undefined;
3346
+ keepAssignment?: boolean | undefined;
3347
+ keepAssignmentIfAccepted?: boolean | undefined;
3348
+ keepAssignmentIfRejected?: boolean | undefined;
3349
+ waitFor?: boolean | undefined;
3350
+ createdAtLocation?: string | null | undefined;
3351
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
3352
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3353
+ eventId: string;
3354
+ transactionId: string;
3355
+ content: {
3356
+ reason: string;
3357
+ };
3358
+ declaration?: Record<string, unknown> | undefined;
3359
+ annotation?: Record<string, unknown> | undefined;
3360
+ originalActionId?: string | undefined;
3361
+ keepAssignment?: boolean | undefined;
3362
+ keepAssignmentIfAccepted?: boolean | undefined;
3363
+ keepAssignmentIfRejected?: boolean | undefined;
3364
+ waitFor?: boolean | undefined;
3365
+ createdAtLocation?: string | null | undefined;
3366
+ type?: "ARCHIVE" | undefined;
3367
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3368
+ eventId: string;
3369
+ transactionId: string;
3370
+ type: "ASSIGN";
3371
+ assignedTo: string;
3372
+ declaration?: Record<string, unknown> | undefined;
3373
+ annotation?: Record<string, unknown> | undefined;
3374
+ originalActionId?: string | undefined;
3375
+ keepAssignment?: boolean | undefined;
3376
+ keepAssignmentIfAccepted?: boolean | undefined;
3377
+ keepAssignmentIfRejected?: boolean | undefined;
3378
+ waitFor?: boolean | undefined;
3379
+ createdAtLocation?: string | null | undefined;
3380
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3381
+ eventId: string;
3382
+ transactionId: string;
3383
+ declaration?: Record<string, unknown> | undefined;
3384
+ annotation?: Record<string, unknown> | undefined;
3385
+ originalActionId?: string | undefined;
3386
+ keepAssignment?: boolean | undefined;
3387
+ keepAssignmentIfAccepted?: boolean | undefined;
3388
+ keepAssignmentIfRejected?: boolean | undefined;
3389
+ waitFor?: boolean | undefined;
3390
+ createdAtLocation?: string | null | undefined;
3391
+ type?: "UNASSIGN" | undefined;
3392
+ assignedTo?: null | undefined;
3393
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3394
+ eventId: string;
3395
+ transactionId: string;
3396
+ declaration?: Record<string, unknown> | undefined;
3397
+ annotation?: Record<string, unknown> | undefined;
3398
+ originalActionId?: string | undefined;
3399
+ keepAssignment?: boolean | undefined;
3400
+ keepAssignmentIfAccepted?: boolean | undefined;
3401
+ keepAssignmentIfRejected?: boolean | undefined;
3402
+ waitFor?: boolean | undefined;
3403
+ createdAtLocation?: string | null | undefined;
3404
+ type?: "PRINT_CERTIFICATE" | undefined;
3405
+ content?: {
3406
+ templateId?: string | undefined;
3407
+ } | undefined;
3408
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1675
3409
  eventId: string;
1676
- actionId: string;
1677
3410
  transactionId: string;
1678
- };
1679
- output: import("../commons").EventDocument;
1680
- meta: import("trpc-to-openapi").OpenApiMeta;
1681
- }>;
1682
- }>>;
1683
- register: import("@trpc/server").TRPCBuiltRouter<{
1684
- ctx: Partial<{
1685
- token: `Bearer ${string}`;
1686
- user: {
1687
- id: string & import("zod").$brand<"UUID">;
1688
- type: "system";
1689
- signature?: undefined;
1690
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1691
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1692
- } | {
1693
- id: string & import("zod").$brand<"UUID">;
1694
- type: "user";
1695
- role: string;
1696
- primaryOfficeId: string & import("zod").$brand<"UUID">;
1697
- signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1698
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1699
- };
1700
- }>;
1701
- meta: import("trpc-to-openapi").OpenApiMeta;
1702
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1703
- transformer: true;
1704
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1705
- request: import("@trpc/server").TRPCMutationProcedure<{
1706
- input: import("../commons").ActionInput;
1707
- output: import("../commons").EventDocument;
1708
- meta: import("trpc-to-openapi").OpenApiMeta;
1709
- }>;
1710
- accept: import("@trpc/server").TRPCMutationProcedure<{
1711
- input: import("../commons").ActionInput & {
1712
- actionId: string;
1713
- };
1714
- output: import("../commons").EventDocument;
1715
- meta: import("trpc-to-openapi").OpenApiMeta;
1716
- }>;
1717
- reject: import("@trpc/server").TRPCMutationProcedure<{
1718
- input: {
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?: "REQUEST_CORRECTION" | undefined;
3420
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1719
3421
  eventId: string;
1720
- actionId: string;
1721
3422
  transactionId: string;
1722
- };
1723
- output: import("../commons").EventDocument;
1724
- meta: import("trpc-to-openapi").OpenApiMeta;
1725
- }>;
1726
- }>>;
1727
- printCertificate: import("@trpc/server").TRPCBuiltRouter<{
1728
- ctx: Partial<{
1729
- token: `Bearer ${string}`;
1730
- user: {
1731
- id: string & import("zod").$brand<"UUID">;
1732
- type: "system";
1733
- signature?: undefined;
1734
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1735
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1736
- } | {
1737
- id: string & import("zod").$brand<"UUID">;
1738
- type: "user";
1739
- role: string;
1740
- primaryOfficeId: string & import("zod").$brand<"UUID">;
1741
- signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1742
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1743
- };
1744
- }>;
1745
- meta: import("trpc-to-openapi").OpenApiMeta;
1746
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1747
- transformer: true;
1748
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1749
- request: import("@trpc/server").TRPCMutationProcedure<{
1750
- input: import("../commons").ActionInput;
1751
- output: import("../commons").EventDocument;
1752
- meta: import("trpc-to-openapi").OpenApiMeta;
1753
- }>;
1754
- accept: import("@trpc/server").TRPCMutationProcedure<{
1755
- input: import("../commons").ActionInput & {
3423
+ requestId: string;
3424
+ content: {
3425
+ reason: string;
3426
+ };
3427
+ declaration?: Record<string, unknown> | undefined;
3428
+ annotation?: Record<string, unknown> | undefined;
3429
+ originalActionId?: string | undefined;
3430
+ keepAssignment?: boolean | undefined;
3431
+ keepAssignmentIfAccepted?: boolean | undefined;
3432
+ keepAssignmentIfRejected?: boolean | undefined;
3433
+ waitFor?: boolean | undefined;
3434
+ createdAtLocation?: string | null | undefined;
3435
+ type?: "REJECT_CORRECTION" | undefined;
3436
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3437
+ eventId: string;
3438
+ transactionId: string;
3439
+ requestId: string;
3440
+ declaration?: Record<string, unknown> | undefined;
3441
+ annotation?: Record<string, unknown> | undefined;
3442
+ originalActionId?: string | undefined;
3443
+ keepAssignment?: boolean | undefined;
3444
+ keepAssignmentIfAccepted?: boolean | undefined;
3445
+ keepAssignmentIfRejected?: boolean | undefined;
3446
+ waitFor?: boolean | undefined;
3447
+ createdAtLocation?: string | null | undefined;
3448
+ type?: "APPROVE_CORRECTION" | undefined;
3449
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3450
+ eventId: string;
3451
+ transactionId: string;
3452
+ declaration?: Record<string, unknown> | undefined;
3453
+ annotation?: Record<string, unknown> | undefined;
3454
+ originalActionId?: string | undefined;
3455
+ keepAssignment?: boolean | undefined;
3456
+ keepAssignmentIfAccepted?: boolean | undefined;
3457
+ keepAssignmentIfRejected?: boolean | undefined;
3458
+ waitFor?: boolean | undefined;
3459
+ createdAtLocation?: string | null | undefined;
3460
+ type?: "READ" | undefined;
3461
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3462
+ eventId: string;
3463
+ transactionId: string;
3464
+ customActionType: string;
3465
+ declaration?: Record<string, unknown> | undefined;
3466
+ annotation?: Record<string, unknown> | undefined;
3467
+ originalActionId?: string | undefined;
3468
+ keepAssignment?: boolean | undefined;
3469
+ keepAssignmentIfAccepted?: boolean | undefined;
3470
+ keepAssignmentIfRejected?: boolean | undefined;
3471
+ waitFor?: boolean | undefined;
3472
+ createdAtLocation?: string | null | undefined;
3473
+ type?: "CUSTOM" | undefined;
3474
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3475
+ eventId: string;
3476
+ transactionId: string;
3477
+ content: {
3478
+ comment?: string | undefined;
3479
+ };
3480
+ declaration?: Record<string, unknown> | undefined;
3481
+ annotation?: Record<string, unknown> | undefined;
3482
+ originalActionId?: string | undefined;
3483
+ keepAssignment?: boolean | undefined;
3484
+ keepAssignmentIfAccepted?: boolean | undefined;
3485
+ keepAssignmentIfRejected?: boolean | undefined;
3486
+ waitFor?: boolean | undefined;
3487
+ createdAtLocation?: string | null | undefined;
3488
+ type?: "EDIT" | undefined;
3489
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
1756
3490
  actionId: string;
1757
3491
  };
1758
3492
  output: import("../commons").EventDocument;
1759
3493
  meta: import("trpc-to-openapi").OpenApiMeta;
1760
3494
  }>;
1761
3495
  reject: import("@trpc/server").TRPCMutationProcedure<{
1762
- input: {
1763
- eventId: string;
1764
- actionId: string;
1765
- transactionId: string;
1766
- };
3496
+ input: import("zod").input<import("zod").ZodObject<{
3497
+ transactionId: import("zod").ZodString;
3498
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3499
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3500
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3501
+ }, import("zod/v4/core").$strip>>;
1767
3502
  output: import("../commons").EventDocument;
1768
3503
  meta: import("trpc-to-openapi").OpenApiMeta;
1769
3504
  }>;
@@ -1799,6 +3534,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1799
3534
  annotation?: Record<string, unknown> | undefined;
1800
3535
  originalActionId?: string | undefined;
1801
3536
  keepAssignment?: boolean | undefined;
3537
+ keepAssignmentIfAccepted?: boolean | undefined;
3538
+ keepAssignmentIfRejected?: boolean | undefined;
3539
+ waitFor?: boolean | undefined;
1802
3540
  createdAtLocation?: string | null | undefined;
1803
3541
  type?: "CUSTOM" | undefined;
1804
3542
  };
@@ -2106,18 +3844,265 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2106
3844
  meta: import("trpc-to-openapi").OpenApiMeta;
2107
3845
  }>;
2108
3846
  accept: import("@trpc/server").TRPCMutationProcedure<{
2109
- input: import("../commons").ActionInput & {
3847
+ input: (Omit<{
3848
+ eventId: string;
3849
+ transactionId: string;
3850
+ declaration?: Record<string, unknown> | undefined;
3851
+ annotation?: Record<string, unknown> | undefined;
3852
+ originalActionId?: string | undefined;
3853
+ keepAssignment?: boolean | undefined;
3854
+ keepAssignmentIfAccepted?: boolean | undefined;
3855
+ keepAssignmentIfRejected?: boolean | undefined;
3856
+ waitFor?: boolean | undefined;
3857
+ type?: "CREATE" | undefined;
3858
+ createdAtLocation?: string | null | undefined;
3859
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3860
+ eventId: string;
3861
+ transactionId: string;
3862
+ declaration?: Record<string, unknown> | undefined;
3863
+ annotation?: Record<string, unknown> | undefined;
3864
+ originalActionId?: string | undefined;
3865
+ keepAssignment?: boolean | undefined;
3866
+ keepAssignmentIfAccepted?: boolean | undefined;
3867
+ keepAssignmentIfRejected?: boolean | undefined;
3868
+ waitFor?: boolean | undefined;
3869
+ createdAtLocation?: string | null | undefined;
3870
+ type?: "REGISTER" | undefined;
3871
+ registrationNumber?: string | undefined;
3872
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3873
+ eventId: string;
3874
+ transactionId: string;
3875
+ declaration?: Record<string, unknown> | undefined;
3876
+ annotation?: Record<string, unknown> | undefined;
3877
+ originalActionId?: string | undefined;
3878
+ keepAssignment?: boolean | undefined;
3879
+ keepAssignmentIfAccepted?: boolean | undefined;
3880
+ keepAssignmentIfRejected?: boolean | undefined;
3881
+ waitFor?: boolean | undefined;
3882
+ type?: "NOTIFY" | undefined;
3883
+ createdAtLocation?: string | null | undefined;
3884
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3885
+ eventId: string;
3886
+ transactionId: string;
3887
+ declaration?: Record<string, unknown> | undefined;
3888
+ annotation?: Record<string, unknown> | undefined;
3889
+ originalActionId?: string | undefined;
3890
+ keepAssignment?: boolean | undefined;
3891
+ keepAssignmentIfAccepted?: boolean | undefined;
3892
+ keepAssignmentIfRejected?: boolean | undefined;
3893
+ waitFor?: boolean | undefined;
3894
+ createdAtLocation?: string | null | undefined;
3895
+ type?: "DECLARE" | undefined;
3896
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3897
+ eventId: string;
3898
+ transactionId: string;
3899
+ content: {
3900
+ reason: string;
3901
+ };
3902
+ declaration?: Record<string, unknown> | undefined;
3903
+ annotation?: Record<string, unknown> | undefined;
3904
+ originalActionId?: string | undefined;
3905
+ keepAssignment?: boolean | undefined;
3906
+ keepAssignmentIfAccepted?: boolean | undefined;
3907
+ keepAssignmentIfRejected?: boolean | undefined;
3908
+ waitFor?: boolean | undefined;
3909
+ createdAtLocation?: string | null | undefined;
3910
+ type?: "REJECT" | undefined;
3911
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3912
+ eventId: string;
3913
+ transactionId: string;
3914
+ content: {
3915
+ duplicates: {
3916
+ id: string;
3917
+ trackingId: string;
3918
+ }[];
3919
+ };
3920
+ declaration?: Record<string, unknown> | undefined;
3921
+ annotation?: Record<string, unknown> | undefined;
3922
+ originalActionId?: string | undefined;
3923
+ keepAssignment?: boolean | undefined;
3924
+ keepAssignmentIfAccepted?: boolean | undefined;
3925
+ keepAssignmentIfRejected?: boolean | undefined;
3926
+ waitFor?: boolean | undefined;
3927
+ createdAtLocation?: string | null | undefined;
3928
+ type?: "DUPLICATE_DETECTED" | undefined;
3929
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3930
+ eventId: string;
3931
+ transactionId: string;
3932
+ declaration?: Record<string, unknown> | undefined;
3933
+ annotation?: Record<string, unknown> | undefined;
3934
+ originalActionId?: string | undefined;
3935
+ keepAssignment?: boolean | undefined;
3936
+ keepAssignmentIfAccepted?: boolean | undefined;
3937
+ keepAssignmentIfRejected?: boolean | undefined;
3938
+ waitFor?: boolean | undefined;
3939
+ createdAtLocation?: string | null | undefined;
3940
+ type?: "MARK_AS_DUPLICATE" | undefined;
3941
+ content?: {
3942
+ duplicateOf: string;
3943
+ } | undefined;
3944
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3945
+ eventId: string;
3946
+ transactionId: string;
3947
+ declaration?: Record<string, unknown> | undefined;
3948
+ annotation?: Record<string, unknown> | undefined;
3949
+ originalActionId?: string | undefined;
3950
+ keepAssignment?: boolean | undefined;
3951
+ keepAssignmentIfAccepted?: boolean | undefined;
3952
+ keepAssignmentIfRejected?: boolean | undefined;
3953
+ waitFor?: boolean | undefined;
3954
+ createdAtLocation?: string | null | undefined;
3955
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
3956
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3957
+ eventId: string;
3958
+ transactionId: string;
3959
+ content: {
3960
+ reason: string;
3961
+ };
3962
+ declaration?: Record<string, unknown> | undefined;
3963
+ annotation?: Record<string, unknown> | undefined;
3964
+ originalActionId?: string | undefined;
3965
+ keepAssignment?: boolean | undefined;
3966
+ keepAssignmentIfAccepted?: boolean | undefined;
3967
+ keepAssignmentIfRejected?: boolean | undefined;
3968
+ waitFor?: boolean | undefined;
3969
+ createdAtLocation?: string | null | undefined;
3970
+ type?: "ARCHIVE" | undefined;
3971
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3972
+ eventId: string;
3973
+ transactionId: string;
3974
+ type: "ASSIGN";
3975
+ assignedTo: string;
3976
+ declaration?: Record<string, unknown> | undefined;
3977
+ annotation?: Record<string, unknown> | undefined;
3978
+ originalActionId?: string | undefined;
3979
+ keepAssignment?: boolean | undefined;
3980
+ keepAssignmentIfAccepted?: boolean | undefined;
3981
+ keepAssignmentIfRejected?: boolean | undefined;
3982
+ waitFor?: boolean | undefined;
3983
+ createdAtLocation?: string | null | undefined;
3984
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3985
+ eventId: string;
3986
+ transactionId: string;
3987
+ declaration?: Record<string, unknown> | undefined;
3988
+ annotation?: Record<string, unknown> | undefined;
3989
+ originalActionId?: string | undefined;
3990
+ keepAssignment?: boolean | undefined;
3991
+ keepAssignmentIfAccepted?: boolean | undefined;
3992
+ keepAssignmentIfRejected?: boolean | undefined;
3993
+ waitFor?: boolean | undefined;
3994
+ createdAtLocation?: string | null | undefined;
3995
+ type?: "UNASSIGN" | undefined;
3996
+ assignedTo?: null | undefined;
3997
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3998
+ eventId: string;
3999
+ transactionId: string;
4000
+ declaration?: Record<string, unknown> | undefined;
4001
+ annotation?: Record<string, unknown> | undefined;
4002
+ originalActionId?: string | undefined;
4003
+ keepAssignment?: boolean | undefined;
4004
+ keepAssignmentIfAccepted?: boolean | undefined;
4005
+ keepAssignmentIfRejected?: boolean | undefined;
4006
+ waitFor?: boolean | undefined;
4007
+ createdAtLocation?: string | null | undefined;
4008
+ type?: "PRINT_CERTIFICATE" | undefined;
4009
+ content?: {
4010
+ templateId?: string | undefined;
4011
+ } | undefined;
4012
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4013
+ eventId: string;
4014
+ transactionId: string;
4015
+ declaration?: Record<string, unknown> | undefined;
4016
+ annotation?: Record<string, unknown> | undefined;
4017
+ originalActionId?: string | undefined;
4018
+ keepAssignment?: boolean | undefined;
4019
+ keepAssignmentIfAccepted?: boolean | undefined;
4020
+ keepAssignmentIfRejected?: boolean | undefined;
4021
+ waitFor?: boolean | undefined;
4022
+ createdAtLocation?: string | null | undefined;
4023
+ type?: "REQUEST_CORRECTION" | undefined;
4024
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4025
+ eventId: string;
4026
+ transactionId: string;
4027
+ requestId: string;
4028
+ content: {
4029
+ reason: string;
4030
+ };
4031
+ declaration?: Record<string, unknown> | undefined;
4032
+ annotation?: Record<string, unknown> | undefined;
4033
+ originalActionId?: string | undefined;
4034
+ keepAssignment?: boolean | undefined;
4035
+ keepAssignmentIfAccepted?: boolean | undefined;
4036
+ keepAssignmentIfRejected?: boolean | undefined;
4037
+ waitFor?: boolean | undefined;
4038
+ createdAtLocation?: string | null | undefined;
4039
+ type?: "REJECT_CORRECTION" | undefined;
4040
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4041
+ eventId: string;
4042
+ transactionId: string;
4043
+ requestId: string;
4044
+ declaration?: Record<string, unknown> | undefined;
4045
+ annotation?: Record<string, unknown> | undefined;
4046
+ originalActionId?: string | undefined;
4047
+ keepAssignment?: boolean | undefined;
4048
+ keepAssignmentIfAccepted?: boolean | undefined;
4049
+ keepAssignmentIfRejected?: boolean | undefined;
4050
+ waitFor?: boolean | undefined;
4051
+ createdAtLocation?: string | null | undefined;
4052
+ type?: "APPROVE_CORRECTION" | undefined;
4053
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4054
+ eventId: string;
4055
+ transactionId: string;
4056
+ declaration?: Record<string, unknown> | undefined;
4057
+ annotation?: Record<string, unknown> | undefined;
4058
+ originalActionId?: string | undefined;
4059
+ keepAssignment?: boolean | undefined;
4060
+ keepAssignmentIfAccepted?: boolean | undefined;
4061
+ keepAssignmentIfRejected?: boolean | undefined;
4062
+ waitFor?: boolean | undefined;
4063
+ createdAtLocation?: string | null | undefined;
4064
+ type?: "READ" | undefined;
4065
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4066
+ eventId: string;
4067
+ transactionId: string;
4068
+ customActionType: string;
4069
+ declaration?: Record<string, unknown> | undefined;
4070
+ annotation?: Record<string, unknown> | undefined;
4071
+ originalActionId?: string | undefined;
4072
+ keepAssignment?: boolean | undefined;
4073
+ keepAssignmentIfAccepted?: boolean | undefined;
4074
+ keepAssignmentIfRejected?: boolean | undefined;
4075
+ waitFor?: boolean | undefined;
4076
+ createdAtLocation?: string | null | undefined;
4077
+ type?: "CUSTOM" | undefined;
4078
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4079
+ eventId: string;
4080
+ transactionId: string;
4081
+ content: {
4082
+ comment?: string | undefined;
4083
+ };
4084
+ declaration?: Record<string, unknown> | undefined;
4085
+ annotation?: Record<string, unknown> | undefined;
4086
+ originalActionId?: string | undefined;
4087
+ keepAssignment?: boolean | undefined;
4088
+ keepAssignmentIfAccepted?: boolean | undefined;
4089
+ keepAssignmentIfRejected?: boolean | undefined;
4090
+ waitFor?: boolean | undefined;
4091
+ createdAtLocation?: string | null | undefined;
4092
+ type?: "EDIT" | undefined;
4093
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2110
4094
  actionId: string;
2111
4095
  };
2112
4096
  output: import("../commons").EventDocument;
2113
4097
  meta: import("trpc-to-openapi").OpenApiMeta;
2114
4098
  }>;
2115
4099
  reject: import("@trpc/server").TRPCMutationProcedure<{
2116
- input: {
2117
- eventId: string;
2118
- actionId: string;
2119
- transactionId: string;
2120
- };
4100
+ input: import("zod").input<import("zod").ZodObject<{
4101
+ transactionId: import("zod").ZodString;
4102
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
4103
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
4104
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
4105
+ }, import("zod/v4/core").$strip>>;
2121
4106
  output: import("../commons").EventDocument;
2122
4107
  meta: import("trpc-to-openapi").OpenApiMeta;
2123
4108
  }>;
@@ -2154,6 +4139,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2154
4139
  annotation?: Record<string, unknown> | undefined;
2155
4140
  originalActionId?: string | undefined;
2156
4141
  keepAssignment?: boolean | undefined;
4142
+ keepAssignmentIfAccepted?: boolean | undefined;
4143
+ keepAssignmentIfRejected?: boolean | undefined;
4144
+ waitFor?: boolean | undefined;
2157
4145
  createdAtLocation?: string | null | undefined;
2158
4146
  };
2159
4147
  output: {
@@ -2467,6 +4455,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2467
4455
  annotation?: Record<string, unknown> | undefined;
2468
4456
  originalActionId?: string | undefined;
2469
4457
  keepAssignment?: boolean | undefined;
4458
+ keepAssignmentIfAccepted?: boolean | undefined;
4459
+ keepAssignmentIfRejected?: boolean | undefined;
4460
+ waitFor?: boolean | undefined;
2470
4461
  createdAtLocation?: string | null | undefined;
2471
4462
  type?: "UNASSIGN" | undefined;
2472
4463
  assignedTo?: null | undefined;
@@ -2825,18 +4816,265 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2825
4816
  meta: import("trpc-to-openapi").OpenApiMeta;
2826
4817
  }>;
2827
4818
  accept: import("@trpc/server").TRPCMutationProcedure<{
2828
- input: import("../commons").ActionInput & {
4819
+ input: (Omit<{
4820
+ eventId: string;
4821
+ transactionId: string;
4822
+ declaration?: Record<string, unknown> | undefined;
4823
+ annotation?: Record<string, unknown> | undefined;
4824
+ originalActionId?: string | undefined;
4825
+ keepAssignment?: boolean | undefined;
4826
+ keepAssignmentIfAccepted?: boolean | undefined;
4827
+ keepAssignmentIfRejected?: boolean | undefined;
4828
+ waitFor?: boolean | undefined;
4829
+ type?: "CREATE" | undefined;
4830
+ createdAtLocation?: string | null | undefined;
4831
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4832
+ eventId: string;
4833
+ transactionId: string;
4834
+ declaration?: Record<string, unknown> | undefined;
4835
+ annotation?: Record<string, unknown> | undefined;
4836
+ originalActionId?: string | undefined;
4837
+ keepAssignment?: boolean | undefined;
4838
+ keepAssignmentIfAccepted?: boolean | undefined;
4839
+ keepAssignmentIfRejected?: boolean | undefined;
4840
+ waitFor?: boolean | undefined;
4841
+ createdAtLocation?: string | null | undefined;
4842
+ type?: "REGISTER" | undefined;
4843
+ registrationNumber?: string | undefined;
4844
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4845
+ eventId: string;
4846
+ transactionId: string;
4847
+ declaration?: Record<string, unknown> | undefined;
4848
+ annotation?: Record<string, unknown> | undefined;
4849
+ originalActionId?: string | undefined;
4850
+ keepAssignment?: boolean | undefined;
4851
+ keepAssignmentIfAccepted?: boolean | undefined;
4852
+ keepAssignmentIfRejected?: boolean | undefined;
4853
+ waitFor?: boolean | undefined;
4854
+ type?: "NOTIFY" | undefined;
4855
+ createdAtLocation?: string | null | undefined;
4856
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4857
+ eventId: string;
4858
+ transactionId: string;
4859
+ declaration?: Record<string, unknown> | undefined;
4860
+ annotation?: Record<string, unknown> | undefined;
4861
+ originalActionId?: string | undefined;
4862
+ keepAssignment?: boolean | undefined;
4863
+ keepAssignmentIfAccepted?: boolean | undefined;
4864
+ keepAssignmentIfRejected?: boolean | undefined;
4865
+ waitFor?: boolean | undefined;
4866
+ createdAtLocation?: string | null | undefined;
4867
+ type?: "DECLARE" | undefined;
4868
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4869
+ eventId: string;
4870
+ transactionId: string;
4871
+ content: {
4872
+ reason: string;
4873
+ };
4874
+ declaration?: Record<string, unknown> | undefined;
4875
+ annotation?: Record<string, unknown> | undefined;
4876
+ originalActionId?: string | undefined;
4877
+ keepAssignment?: boolean | undefined;
4878
+ keepAssignmentIfAccepted?: boolean | undefined;
4879
+ keepAssignmentIfRejected?: boolean | undefined;
4880
+ waitFor?: boolean | undefined;
4881
+ createdAtLocation?: string | null | undefined;
4882
+ type?: "REJECT" | undefined;
4883
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4884
+ eventId: string;
4885
+ transactionId: string;
4886
+ content: {
4887
+ duplicates: {
4888
+ id: string;
4889
+ trackingId: string;
4890
+ }[];
4891
+ };
4892
+ declaration?: Record<string, unknown> | undefined;
4893
+ annotation?: Record<string, unknown> | undefined;
4894
+ originalActionId?: string | undefined;
4895
+ keepAssignment?: boolean | undefined;
4896
+ keepAssignmentIfAccepted?: boolean | undefined;
4897
+ keepAssignmentIfRejected?: boolean | undefined;
4898
+ waitFor?: boolean | undefined;
4899
+ createdAtLocation?: string | null | undefined;
4900
+ type?: "DUPLICATE_DETECTED" | undefined;
4901
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4902
+ eventId: string;
4903
+ transactionId: string;
4904
+ declaration?: Record<string, unknown> | undefined;
4905
+ annotation?: Record<string, unknown> | undefined;
4906
+ originalActionId?: string | undefined;
4907
+ keepAssignment?: boolean | undefined;
4908
+ keepAssignmentIfAccepted?: boolean | undefined;
4909
+ keepAssignmentIfRejected?: boolean | undefined;
4910
+ waitFor?: boolean | undefined;
4911
+ createdAtLocation?: string | null | undefined;
4912
+ type?: "MARK_AS_DUPLICATE" | undefined;
4913
+ content?: {
4914
+ duplicateOf: string;
4915
+ } | undefined;
4916
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4917
+ eventId: string;
4918
+ transactionId: string;
4919
+ declaration?: Record<string, unknown> | undefined;
4920
+ annotation?: Record<string, unknown> | undefined;
4921
+ originalActionId?: string | undefined;
4922
+ keepAssignment?: boolean | undefined;
4923
+ keepAssignmentIfAccepted?: boolean | undefined;
4924
+ keepAssignmentIfRejected?: boolean | undefined;
4925
+ waitFor?: boolean | undefined;
4926
+ createdAtLocation?: string | null | undefined;
4927
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
4928
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4929
+ eventId: string;
4930
+ transactionId: string;
4931
+ content: {
4932
+ reason: string;
4933
+ };
4934
+ declaration?: Record<string, unknown> | undefined;
4935
+ annotation?: Record<string, unknown> | undefined;
4936
+ originalActionId?: string | undefined;
4937
+ keepAssignment?: boolean | undefined;
4938
+ keepAssignmentIfAccepted?: boolean | undefined;
4939
+ keepAssignmentIfRejected?: boolean | undefined;
4940
+ waitFor?: boolean | undefined;
4941
+ createdAtLocation?: string | null | undefined;
4942
+ type?: "ARCHIVE" | undefined;
4943
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4944
+ eventId: string;
4945
+ transactionId: string;
4946
+ type: "ASSIGN";
4947
+ assignedTo: string;
4948
+ declaration?: Record<string, unknown> | undefined;
4949
+ annotation?: Record<string, unknown> | undefined;
4950
+ originalActionId?: string | undefined;
4951
+ keepAssignment?: boolean | undefined;
4952
+ keepAssignmentIfAccepted?: boolean | undefined;
4953
+ keepAssignmentIfRejected?: boolean | undefined;
4954
+ waitFor?: boolean | undefined;
4955
+ createdAtLocation?: string | null | undefined;
4956
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4957
+ eventId: string;
4958
+ transactionId: string;
4959
+ declaration?: Record<string, unknown> | undefined;
4960
+ annotation?: Record<string, unknown> | undefined;
4961
+ originalActionId?: string | undefined;
4962
+ keepAssignment?: boolean | undefined;
4963
+ keepAssignmentIfAccepted?: boolean | undefined;
4964
+ keepAssignmentIfRejected?: boolean | undefined;
4965
+ waitFor?: boolean | undefined;
4966
+ createdAtLocation?: string | null | undefined;
4967
+ type?: "UNASSIGN" | undefined;
4968
+ assignedTo?: null | undefined;
4969
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4970
+ eventId: string;
4971
+ transactionId: string;
4972
+ declaration?: Record<string, unknown> | undefined;
4973
+ annotation?: Record<string, unknown> | undefined;
4974
+ originalActionId?: string | undefined;
4975
+ keepAssignment?: boolean | undefined;
4976
+ keepAssignmentIfAccepted?: boolean | undefined;
4977
+ keepAssignmentIfRejected?: boolean | undefined;
4978
+ waitFor?: boolean | undefined;
4979
+ createdAtLocation?: string | null | undefined;
4980
+ type?: "PRINT_CERTIFICATE" | undefined;
4981
+ content?: {
4982
+ templateId?: string | undefined;
4983
+ } | undefined;
4984
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4985
+ eventId: string;
4986
+ transactionId: string;
4987
+ declaration?: Record<string, unknown> | undefined;
4988
+ annotation?: Record<string, unknown> | undefined;
4989
+ originalActionId?: string | undefined;
4990
+ keepAssignment?: boolean | undefined;
4991
+ keepAssignmentIfAccepted?: boolean | undefined;
4992
+ keepAssignmentIfRejected?: boolean | undefined;
4993
+ waitFor?: boolean | undefined;
4994
+ createdAtLocation?: string | null | undefined;
4995
+ type?: "REQUEST_CORRECTION" | undefined;
4996
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4997
+ eventId: string;
4998
+ transactionId: string;
4999
+ requestId: string;
5000
+ content: {
5001
+ reason: string;
5002
+ };
5003
+ declaration?: Record<string, unknown> | undefined;
5004
+ annotation?: Record<string, unknown> | undefined;
5005
+ originalActionId?: string | undefined;
5006
+ keepAssignment?: boolean | undefined;
5007
+ keepAssignmentIfAccepted?: boolean | undefined;
5008
+ keepAssignmentIfRejected?: boolean | undefined;
5009
+ waitFor?: boolean | undefined;
5010
+ createdAtLocation?: string | null | undefined;
5011
+ type?: "REJECT_CORRECTION" | undefined;
5012
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5013
+ eventId: string;
5014
+ transactionId: string;
5015
+ requestId: string;
5016
+ declaration?: Record<string, unknown> | undefined;
5017
+ annotation?: Record<string, unknown> | undefined;
5018
+ originalActionId?: string | undefined;
5019
+ keepAssignment?: boolean | undefined;
5020
+ keepAssignmentIfAccepted?: boolean | undefined;
5021
+ keepAssignmentIfRejected?: boolean | undefined;
5022
+ waitFor?: boolean | undefined;
5023
+ createdAtLocation?: string | null | undefined;
5024
+ type?: "APPROVE_CORRECTION" | undefined;
5025
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5026
+ eventId: string;
5027
+ transactionId: string;
5028
+ declaration?: Record<string, unknown> | undefined;
5029
+ annotation?: Record<string, unknown> | undefined;
5030
+ originalActionId?: string | undefined;
5031
+ keepAssignment?: boolean | undefined;
5032
+ keepAssignmentIfAccepted?: boolean | undefined;
5033
+ keepAssignmentIfRejected?: boolean | undefined;
5034
+ waitFor?: boolean | undefined;
5035
+ createdAtLocation?: string | null | undefined;
5036
+ type?: "READ" | undefined;
5037
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5038
+ eventId: string;
5039
+ transactionId: string;
5040
+ customActionType: string;
5041
+ declaration?: Record<string, unknown> | undefined;
5042
+ annotation?: Record<string, unknown> | undefined;
5043
+ originalActionId?: string | undefined;
5044
+ keepAssignment?: boolean | undefined;
5045
+ keepAssignmentIfAccepted?: boolean | undefined;
5046
+ keepAssignmentIfRejected?: boolean | undefined;
5047
+ waitFor?: boolean | undefined;
5048
+ createdAtLocation?: string | null | undefined;
5049
+ type?: "CUSTOM" | undefined;
5050
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5051
+ eventId: string;
5052
+ transactionId: string;
5053
+ content: {
5054
+ comment?: string | undefined;
5055
+ };
5056
+ declaration?: Record<string, unknown> | undefined;
5057
+ annotation?: Record<string, unknown> | undefined;
5058
+ originalActionId?: string | undefined;
5059
+ keepAssignment?: boolean | undefined;
5060
+ keepAssignmentIfAccepted?: boolean | undefined;
5061
+ keepAssignmentIfRejected?: boolean | undefined;
5062
+ waitFor?: boolean | undefined;
5063
+ createdAtLocation?: string | null | undefined;
5064
+ type?: "EDIT" | undefined;
5065
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2829
5066
  actionId: string;
2830
5067
  };
2831
5068
  output: import("../commons").EventDocument;
2832
5069
  meta: import("trpc-to-openapi").OpenApiMeta;
2833
5070
  }>;
2834
5071
  reject: import("@trpc/server").TRPCMutationProcedure<{
2835
- input: {
2836
- eventId: string;
2837
- actionId: string;
2838
- transactionId: string;
2839
- };
5072
+ input: import("zod").input<import("zod").ZodObject<{
5073
+ transactionId: import("zod").ZodString;
5074
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5075
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
5076
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5077
+ }, import("zod/v4/core").$strip>>;
2840
5078
  output: import("../commons").EventDocument;
2841
5079
  meta: import("trpc-to-openapi").OpenApiMeta;
2842
5080
  }>;
@@ -2869,18 +5107,265 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2869
5107
  meta: import("trpc-to-openapi").OpenApiMeta;
2870
5108
  }>;
2871
5109
  accept: import("@trpc/server").TRPCMutationProcedure<{
2872
- input: import("../commons").ActionInput & {
5110
+ input: (Omit<{
5111
+ eventId: string;
5112
+ transactionId: string;
5113
+ declaration?: Record<string, unknown> | undefined;
5114
+ annotation?: Record<string, unknown> | undefined;
5115
+ originalActionId?: string | undefined;
5116
+ keepAssignment?: boolean | undefined;
5117
+ keepAssignmentIfAccepted?: boolean | undefined;
5118
+ keepAssignmentIfRejected?: boolean | undefined;
5119
+ waitFor?: boolean | undefined;
5120
+ type?: "CREATE" | undefined;
5121
+ createdAtLocation?: string | null | undefined;
5122
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5123
+ eventId: string;
5124
+ transactionId: string;
5125
+ declaration?: Record<string, unknown> | undefined;
5126
+ annotation?: Record<string, unknown> | undefined;
5127
+ originalActionId?: string | undefined;
5128
+ keepAssignment?: boolean | undefined;
5129
+ keepAssignmentIfAccepted?: boolean | undefined;
5130
+ keepAssignmentIfRejected?: boolean | undefined;
5131
+ waitFor?: boolean | undefined;
5132
+ createdAtLocation?: string | null | undefined;
5133
+ type?: "REGISTER" | undefined;
5134
+ registrationNumber?: string | undefined;
5135
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5136
+ eventId: string;
5137
+ transactionId: string;
5138
+ declaration?: Record<string, unknown> | undefined;
5139
+ annotation?: Record<string, unknown> | undefined;
5140
+ originalActionId?: string | undefined;
5141
+ keepAssignment?: boolean | undefined;
5142
+ keepAssignmentIfAccepted?: boolean | undefined;
5143
+ keepAssignmentIfRejected?: boolean | undefined;
5144
+ waitFor?: boolean | undefined;
5145
+ type?: "NOTIFY" | undefined;
5146
+ createdAtLocation?: string | null | undefined;
5147
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5148
+ eventId: string;
5149
+ transactionId: string;
5150
+ declaration?: Record<string, unknown> | undefined;
5151
+ annotation?: Record<string, unknown> | undefined;
5152
+ originalActionId?: string | undefined;
5153
+ keepAssignment?: boolean | undefined;
5154
+ keepAssignmentIfAccepted?: boolean | undefined;
5155
+ keepAssignmentIfRejected?: boolean | undefined;
5156
+ waitFor?: boolean | undefined;
5157
+ createdAtLocation?: string | null | undefined;
5158
+ type?: "DECLARE" | undefined;
5159
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5160
+ eventId: string;
5161
+ transactionId: string;
5162
+ content: {
5163
+ reason: string;
5164
+ };
5165
+ declaration?: Record<string, unknown> | undefined;
5166
+ annotation?: Record<string, unknown> | undefined;
5167
+ originalActionId?: string | undefined;
5168
+ keepAssignment?: boolean | undefined;
5169
+ keepAssignmentIfAccepted?: boolean | undefined;
5170
+ keepAssignmentIfRejected?: boolean | undefined;
5171
+ waitFor?: boolean | undefined;
5172
+ createdAtLocation?: string | null | undefined;
5173
+ type?: "REJECT" | undefined;
5174
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5175
+ eventId: string;
5176
+ transactionId: string;
5177
+ content: {
5178
+ duplicates: {
5179
+ id: string;
5180
+ trackingId: string;
5181
+ }[];
5182
+ };
5183
+ declaration?: Record<string, unknown> | undefined;
5184
+ annotation?: Record<string, unknown> | undefined;
5185
+ originalActionId?: string | undefined;
5186
+ keepAssignment?: boolean | undefined;
5187
+ keepAssignmentIfAccepted?: boolean | undefined;
5188
+ keepAssignmentIfRejected?: boolean | undefined;
5189
+ waitFor?: boolean | undefined;
5190
+ createdAtLocation?: string | null | undefined;
5191
+ type?: "DUPLICATE_DETECTED" | undefined;
5192
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5193
+ eventId: string;
5194
+ transactionId: string;
5195
+ declaration?: Record<string, unknown> | undefined;
5196
+ annotation?: Record<string, unknown> | undefined;
5197
+ originalActionId?: string | undefined;
5198
+ keepAssignment?: boolean | undefined;
5199
+ keepAssignmentIfAccepted?: boolean | undefined;
5200
+ keepAssignmentIfRejected?: boolean | undefined;
5201
+ waitFor?: boolean | undefined;
5202
+ createdAtLocation?: string | null | undefined;
5203
+ type?: "MARK_AS_DUPLICATE" | undefined;
5204
+ content?: {
5205
+ duplicateOf: string;
5206
+ } | undefined;
5207
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5208
+ eventId: string;
5209
+ transactionId: string;
5210
+ declaration?: Record<string, unknown> | undefined;
5211
+ annotation?: Record<string, unknown> | undefined;
5212
+ originalActionId?: string | undefined;
5213
+ keepAssignment?: boolean | undefined;
5214
+ keepAssignmentIfAccepted?: boolean | undefined;
5215
+ keepAssignmentIfRejected?: boolean | undefined;
5216
+ waitFor?: boolean | undefined;
5217
+ createdAtLocation?: string | null | undefined;
5218
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
5219
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5220
+ eventId: string;
5221
+ transactionId: string;
5222
+ content: {
5223
+ reason: string;
5224
+ };
5225
+ declaration?: Record<string, unknown> | undefined;
5226
+ annotation?: Record<string, unknown> | undefined;
5227
+ originalActionId?: string | undefined;
5228
+ keepAssignment?: boolean | undefined;
5229
+ keepAssignmentIfAccepted?: boolean | undefined;
5230
+ keepAssignmentIfRejected?: boolean | undefined;
5231
+ waitFor?: boolean | undefined;
5232
+ createdAtLocation?: string | null | undefined;
5233
+ type?: "ARCHIVE" | undefined;
5234
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5235
+ eventId: string;
5236
+ transactionId: string;
5237
+ type: "ASSIGN";
5238
+ assignedTo: string;
5239
+ declaration?: Record<string, unknown> | undefined;
5240
+ annotation?: Record<string, unknown> | undefined;
5241
+ originalActionId?: string | undefined;
5242
+ keepAssignment?: boolean | undefined;
5243
+ keepAssignmentIfAccepted?: boolean | undefined;
5244
+ keepAssignmentIfRejected?: boolean | undefined;
5245
+ waitFor?: boolean | undefined;
5246
+ createdAtLocation?: string | null | undefined;
5247
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5248
+ eventId: string;
5249
+ transactionId: string;
5250
+ declaration?: Record<string, unknown> | undefined;
5251
+ annotation?: Record<string, unknown> | undefined;
5252
+ originalActionId?: string | undefined;
5253
+ keepAssignment?: boolean | undefined;
5254
+ keepAssignmentIfAccepted?: boolean | undefined;
5255
+ keepAssignmentIfRejected?: boolean | undefined;
5256
+ waitFor?: boolean | undefined;
5257
+ createdAtLocation?: string | null | undefined;
5258
+ type?: "UNASSIGN" | undefined;
5259
+ assignedTo?: null | undefined;
5260
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5261
+ eventId: string;
5262
+ transactionId: string;
5263
+ declaration?: Record<string, unknown> | undefined;
5264
+ annotation?: Record<string, unknown> | undefined;
5265
+ originalActionId?: string | undefined;
5266
+ keepAssignment?: boolean | undefined;
5267
+ keepAssignmentIfAccepted?: boolean | undefined;
5268
+ keepAssignmentIfRejected?: boolean | undefined;
5269
+ waitFor?: boolean | undefined;
5270
+ createdAtLocation?: string | null | undefined;
5271
+ type?: "PRINT_CERTIFICATE" | undefined;
5272
+ content?: {
5273
+ templateId?: string | undefined;
5274
+ } | undefined;
5275
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5276
+ eventId: string;
5277
+ transactionId: string;
5278
+ declaration?: Record<string, unknown> | undefined;
5279
+ annotation?: Record<string, unknown> | undefined;
5280
+ originalActionId?: string | undefined;
5281
+ keepAssignment?: boolean | undefined;
5282
+ keepAssignmentIfAccepted?: boolean | undefined;
5283
+ keepAssignmentIfRejected?: boolean | undefined;
5284
+ waitFor?: boolean | undefined;
5285
+ createdAtLocation?: string | null | undefined;
5286
+ type?: "REQUEST_CORRECTION" | undefined;
5287
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5288
+ eventId: string;
5289
+ transactionId: string;
5290
+ requestId: string;
5291
+ content: {
5292
+ reason: string;
5293
+ };
5294
+ declaration?: Record<string, unknown> | undefined;
5295
+ annotation?: Record<string, unknown> | undefined;
5296
+ originalActionId?: string | undefined;
5297
+ keepAssignment?: boolean | undefined;
5298
+ keepAssignmentIfAccepted?: boolean | undefined;
5299
+ keepAssignmentIfRejected?: boolean | undefined;
5300
+ waitFor?: boolean | undefined;
5301
+ createdAtLocation?: string | null | undefined;
5302
+ type?: "REJECT_CORRECTION" | undefined;
5303
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5304
+ eventId: string;
5305
+ transactionId: string;
5306
+ requestId: string;
5307
+ declaration?: Record<string, unknown> | undefined;
5308
+ annotation?: Record<string, unknown> | undefined;
5309
+ originalActionId?: string | undefined;
5310
+ keepAssignment?: boolean | undefined;
5311
+ keepAssignmentIfAccepted?: boolean | undefined;
5312
+ keepAssignmentIfRejected?: boolean | undefined;
5313
+ waitFor?: boolean | undefined;
5314
+ createdAtLocation?: string | null | undefined;
5315
+ type?: "APPROVE_CORRECTION" | undefined;
5316
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5317
+ eventId: string;
5318
+ transactionId: string;
5319
+ declaration?: Record<string, unknown> | undefined;
5320
+ annotation?: Record<string, unknown> | undefined;
5321
+ originalActionId?: string | undefined;
5322
+ keepAssignment?: boolean | undefined;
5323
+ keepAssignmentIfAccepted?: boolean | undefined;
5324
+ keepAssignmentIfRejected?: boolean | undefined;
5325
+ waitFor?: boolean | undefined;
5326
+ createdAtLocation?: string | null | undefined;
5327
+ type?: "READ" | undefined;
5328
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5329
+ eventId: string;
5330
+ transactionId: string;
5331
+ customActionType: string;
5332
+ declaration?: Record<string, unknown> | undefined;
5333
+ annotation?: Record<string, unknown> | undefined;
5334
+ originalActionId?: string | undefined;
5335
+ keepAssignment?: boolean | undefined;
5336
+ keepAssignmentIfAccepted?: boolean | undefined;
5337
+ keepAssignmentIfRejected?: boolean | undefined;
5338
+ waitFor?: boolean | undefined;
5339
+ createdAtLocation?: string | null | undefined;
5340
+ type?: "CUSTOM" | undefined;
5341
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5342
+ eventId: string;
5343
+ transactionId: string;
5344
+ content: {
5345
+ comment?: string | undefined;
5346
+ };
5347
+ declaration?: Record<string, unknown> | undefined;
5348
+ annotation?: Record<string, unknown> | undefined;
5349
+ originalActionId?: string | undefined;
5350
+ keepAssignment?: boolean | undefined;
5351
+ keepAssignmentIfAccepted?: boolean | undefined;
5352
+ keepAssignmentIfRejected?: boolean | undefined;
5353
+ waitFor?: boolean | undefined;
5354
+ createdAtLocation?: string | null | undefined;
5355
+ type?: "EDIT" | undefined;
5356
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2873
5357
  actionId: string;
2874
5358
  };
2875
5359
  output: import("../commons").EventDocument;
2876
5360
  meta: import("trpc-to-openapi").OpenApiMeta;
2877
5361
  }>;
2878
5362
  reject: import("@trpc/server").TRPCMutationProcedure<{
2879
- input: {
2880
- eventId: string;
2881
- actionId: string;
2882
- transactionId: string;
2883
- };
5363
+ input: import("zod").input<import("zod").ZodObject<{
5364
+ transactionId: import("zod").ZodString;
5365
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5366
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
5367
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5368
+ }, import("zod/v4/core").$strip>>;
2884
5369
  output: import("../commons").EventDocument;
2885
5370
  meta: import("trpc-to-openapi").OpenApiMeta;
2886
5371
  }>;
@@ -2913,18 +5398,265 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2913
5398
  meta: import("trpc-to-openapi").OpenApiMeta;
2914
5399
  }>;
2915
5400
  accept: import("@trpc/server").TRPCMutationProcedure<{
2916
- input: import("../commons").ActionInput & {
5401
+ input: (Omit<{
5402
+ eventId: string;
5403
+ transactionId: string;
5404
+ declaration?: Record<string, unknown> | undefined;
5405
+ annotation?: Record<string, unknown> | undefined;
5406
+ originalActionId?: string | undefined;
5407
+ keepAssignment?: boolean | undefined;
5408
+ keepAssignmentIfAccepted?: boolean | undefined;
5409
+ keepAssignmentIfRejected?: boolean | undefined;
5410
+ waitFor?: boolean | undefined;
5411
+ type?: "CREATE" | undefined;
5412
+ createdAtLocation?: string | null | undefined;
5413
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5414
+ eventId: string;
5415
+ transactionId: string;
5416
+ declaration?: Record<string, unknown> | undefined;
5417
+ annotation?: Record<string, unknown> | undefined;
5418
+ originalActionId?: string | undefined;
5419
+ keepAssignment?: boolean | undefined;
5420
+ keepAssignmentIfAccepted?: boolean | undefined;
5421
+ keepAssignmentIfRejected?: boolean | undefined;
5422
+ waitFor?: boolean | undefined;
5423
+ createdAtLocation?: string | null | undefined;
5424
+ type?: "REGISTER" | undefined;
5425
+ registrationNumber?: string | undefined;
5426
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5427
+ eventId: string;
5428
+ transactionId: string;
5429
+ declaration?: Record<string, unknown> | undefined;
5430
+ annotation?: Record<string, unknown> | undefined;
5431
+ originalActionId?: string | undefined;
5432
+ keepAssignment?: boolean | undefined;
5433
+ keepAssignmentIfAccepted?: boolean | undefined;
5434
+ keepAssignmentIfRejected?: boolean | undefined;
5435
+ waitFor?: boolean | undefined;
5436
+ type?: "NOTIFY" | undefined;
5437
+ createdAtLocation?: string | null | undefined;
5438
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5439
+ eventId: string;
5440
+ transactionId: string;
5441
+ declaration?: Record<string, unknown> | undefined;
5442
+ annotation?: Record<string, unknown> | undefined;
5443
+ originalActionId?: string | undefined;
5444
+ keepAssignment?: boolean | undefined;
5445
+ keepAssignmentIfAccepted?: boolean | undefined;
5446
+ keepAssignmentIfRejected?: boolean | undefined;
5447
+ waitFor?: boolean | undefined;
5448
+ createdAtLocation?: string | null | undefined;
5449
+ type?: "DECLARE" | undefined;
5450
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5451
+ eventId: string;
5452
+ transactionId: string;
5453
+ content: {
5454
+ reason: string;
5455
+ };
5456
+ declaration?: Record<string, unknown> | undefined;
5457
+ annotation?: Record<string, unknown> | undefined;
5458
+ originalActionId?: string | undefined;
5459
+ keepAssignment?: boolean | undefined;
5460
+ keepAssignmentIfAccepted?: boolean | undefined;
5461
+ keepAssignmentIfRejected?: boolean | undefined;
5462
+ waitFor?: boolean | undefined;
5463
+ createdAtLocation?: string | null | undefined;
5464
+ type?: "REJECT" | undefined;
5465
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5466
+ eventId: string;
5467
+ transactionId: string;
5468
+ content: {
5469
+ duplicates: {
5470
+ id: string;
5471
+ trackingId: string;
5472
+ }[];
5473
+ };
5474
+ declaration?: Record<string, unknown> | undefined;
5475
+ annotation?: Record<string, unknown> | undefined;
5476
+ originalActionId?: string | undefined;
5477
+ keepAssignment?: boolean | undefined;
5478
+ keepAssignmentIfAccepted?: boolean | undefined;
5479
+ keepAssignmentIfRejected?: boolean | undefined;
5480
+ waitFor?: boolean | undefined;
5481
+ createdAtLocation?: string | null | undefined;
5482
+ type?: "DUPLICATE_DETECTED" | undefined;
5483
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5484
+ eventId: string;
5485
+ transactionId: string;
5486
+ declaration?: Record<string, unknown> | undefined;
5487
+ annotation?: Record<string, unknown> | undefined;
5488
+ originalActionId?: string | undefined;
5489
+ keepAssignment?: boolean | undefined;
5490
+ keepAssignmentIfAccepted?: boolean | undefined;
5491
+ keepAssignmentIfRejected?: boolean | undefined;
5492
+ waitFor?: boolean | undefined;
5493
+ createdAtLocation?: string | null | undefined;
5494
+ type?: "MARK_AS_DUPLICATE" | undefined;
5495
+ content?: {
5496
+ duplicateOf: string;
5497
+ } | undefined;
5498
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5499
+ eventId: string;
5500
+ transactionId: string;
5501
+ declaration?: Record<string, unknown> | undefined;
5502
+ annotation?: Record<string, unknown> | undefined;
5503
+ originalActionId?: string | undefined;
5504
+ keepAssignment?: boolean | undefined;
5505
+ keepAssignmentIfAccepted?: boolean | undefined;
5506
+ keepAssignmentIfRejected?: boolean | undefined;
5507
+ waitFor?: boolean | undefined;
5508
+ createdAtLocation?: string | null | undefined;
5509
+ type?: "MARK_AS_NOT_DUPLICATE" | undefined;
5510
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5511
+ eventId: string;
5512
+ transactionId: string;
5513
+ content: {
5514
+ reason: string;
5515
+ };
5516
+ declaration?: Record<string, unknown> | undefined;
5517
+ annotation?: Record<string, unknown> | undefined;
5518
+ originalActionId?: string | undefined;
5519
+ keepAssignment?: boolean | undefined;
5520
+ keepAssignmentIfAccepted?: boolean | undefined;
5521
+ keepAssignmentIfRejected?: boolean | undefined;
5522
+ waitFor?: boolean | undefined;
5523
+ createdAtLocation?: string | null | undefined;
5524
+ type?: "ARCHIVE" | undefined;
5525
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5526
+ eventId: string;
5527
+ transactionId: string;
5528
+ type: "ASSIGN";
5529
+ assignedTo: string;
5530
+ declaration?: Record<string, unknown> | undefined;
5531
+ annotation?: Record<string, unknown> | undefined;
5532
+ originalActionId?: string | undefined;
5533
+ keepAssignment?: boolean | undefined;
5534
+ keepAssignmentIfAccepted?: boolean | undefined;
5535
+ keepAssignmentIfRejected?: boolean | undefined;
5536
+ waitFor?: boolean | undefined;
5537
+ createdAtLocation?: string | null | undefined;
5538
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5539
+ eventId: string;
5540
+ transactionId: string;
5541
+ declaration?: Record<string, unknown> | undefined;
5542
+ annotation?: Record<string, unknown> | undefined;
5543
+ originalActionId?: string | undefined;
5544
+ keepAssignment?: boolean | undefined;
5545
+ keepAssignmentIfAccepted?: boolean | undefined;
5546
+ keepAssignmentIfRejected?: boolean | undefined;
5547
+ waitFor?: boolean | undefined;
5548
+ createdAtLocation?: string | null | undefined;
5549
+ type?: "UNASSIGN" | undefined;
5550
+ assignedTo?: null | undefined;
5551
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5552
+ eventId: string;
5553
+ transactionId: string;
5554
+ declaration?: Record<string, unknown> | undefined;
5555
+ annotation?: Record<string, unknown> | undefined;
5556
+ originalActionId?: string | undefined;
5557
+ keepAssignment?: boolean | undefined;
5558
+ keepAssignmentIfAccepted?: boolean | undefined;
5559
+ keepAssignmentIfRejected?: boolean | undefined;
5560
+ waitFor?: boolean | undefined;
5561
+ createdAtLocation?: string | null | undefined;
5562
+ type?: "PRINT_CERTIFICATE" | undefined;
5563
+ content?: {
5564
+ templateId?: string | undefined;
5565
+ } | undefined;
5566
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5567
+ eventId: string;
5568
+ transactionId: string;
5569
+ declaration?: Record<string, unknown> | undefined;
5570
+ annotation?: Record<string, unknown> | undefined;
5571
+ originalActionId?: string | undefined;
5572
+ keepAssignment?: boolean | undefined;
5573
+ keepAssignmentIfAccepted?: boolean | undefined;
5574
+ keepAssignmentIfRejected?: boolean | undefined;
5575
+ waitFor?: boolean | undefined;
5576
+ createdAtLocation?: string | null | undefined;
5577
+ type?: "REQUEST_CORRECTION" | undefined;
5578
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5579
+ eventId: string;
5580
+ transactionId: string;
5581
+ requestId: string;
5582
+ content: {
5583
+ reason: string;
5584
+ };
5585
+ declaration?: Record<string, unknown> | undefined;
5586
+ annotation?: Record<string, unknown> | undefined;
5587
+ originalActionId?: string | undefined;
5588
+ keepAssignment?: boolean | undefined;
5589
+ keepAssignmentIfAccepted?: boolean | undefined;
5590
+ keepAssignmentIfRejected?: boolean | undefined;
5591
+ waitFor?: boolean | undefined;
5592
+ createdAtLocation?: string | null | undefined;
5593
+ type?: "REJECT_CORRECTION" | undefined;
5594
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5595
+ eventId: string;
5596
+ transactionId: string;
5597
+ requestId: string;
5598
+ declaration?: Record<string, unknown> | undefined;
5599
+ annotation?: Record<string, unknown> | undefined;
5600
+ originalActionId?: string | undefined;
5601
+ keepAssignment?: boolean | undefined;
5602
+ keepAssignmentIfAccepted?: boolean | undefined;
5603
+ keepAssignmentIfRejected?: boolean | undefined;
5604
+ waitFor?: boolean | undefined;
5605
+ createdAtLocation?: string | null | undefined;
5606
+ type?: "APPROVE_CORRECTION" | undefined;
5607
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5608
+ eventId: string;
5609
+ transactionId: string;
5610
+ declaration?: Record<string, unknown> | undefined;
5611
+ annotation?: Record<string, unknown> | undefined;
5612
+ originalActionId?: string | undefined;
5613
+ keepAssignment?: boolean | undefined;
5614
+ keepAssignmentIfAccepted?: boolean | undefined;
5615
+ keepAssignmentIfRejected?: boolean | undefined;
5616
+ waitFor?: boolean | undefined;
5617
+ createdAtLocation?: string | null | undefined;
5618
+ type?: "READ" | undefined;
5619
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5620
+ eventId: string;
5621
+ transactionId: string;
5622
+ customActionType: string;
5623
+ declaration?: Record<string, unknown> | undefined;
5624
+ annotation?: Record<string, unknown> | undefined;
5625
+ originalActionId?: string | undefined;
5626
+ keepAssignment?: boolean | undefined;
5627
+ keepAssignmentIfAccepted?: boolean | undefined;
5628
+ keepAssignmentIfRejected?: boolean | undefined;
5629
+ waitFor?: boolean | undefined;
5630
+ createdAtLocation?: string | null | undefined;
5631
+ type?: "CUSTOM" | undefined;
5632
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
5633
+ eventId: string;
5634
+ transactionId: string;
5635
+ content: {
5636
+ comment?: string | undefined;
5637
+ };
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
+ type?: "EDIT" | undefined;
5647
+ }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
2917
5648
  actionId: string;
2918
5649
  };
2919
5650
  output: import("../commons").EventDocument;
2920
5651
  meta: import("trpc-to-openapi").OpenApiMeta;
2921
5652
  }>;
2922
5653
  reject: import("@trpc/server").TRPCMutationProcedure<{
2923
- input: {
2924
- eventId: string;
2925
- actionId: string;
2926
- transactionId: string;
2927
- };
5654
+ input: import("zod").input<import("zod").ZodObject<{
5655
+ transactionId: import("zod").ZodString;
5656
+ eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5657
+ keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
5658
+ actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5659
+ }, import("zod/v4/core").$strip>>;
2928
5660
  output: import("../commons").EventDocument;
2929
5661
  meta: import("trpc-to-openapi").OpenApiMeta;
2930
5662
  }>;
@@ -2960,6 +5692,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2960
5692
  annotation?: Record<string, unknown> | undefined;
2961
5693
  originalActionId?: string | undefined;
2962
5694
  keepAssignment?: boolean | undefined;
5695
+ keepAssignmentIfAccepted?: boolean | undefined;
5696
+ keepAssignmentIfRejected?: boolean | undefined;
5697
+ waitFor?: boolean | undefined;
2963
5698
  createdAtLocation?: string | null | undefined;
2964
5699
  type?: "MARK_AS_DUPLICATE" | undefined;
2965
5700
  content?: {
@@ -3277,6 +6012,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3277
6012
  annotation?: Record<string, unknown> | undefined;
3278
6013
  originalActionId?: string | undefined;
3279
6014
  keepAssignment?: boolean | undefined;
6015
+ keepAssignmentIfAccepted?: boolean | undefined;
6016
+ keepAssignmentIfRejected?: boolean | undefined;
6017
+ waitFor?: boolean | undefined;
3280
6018
  createdAtLocation?: string | null | undefined;
3281
6019
  type?: "MARK_AS_NOT_DUPLICATE" | undefined;
3282
6020
  };
@@ -3975,10 +6713,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3975
6713
  output: {
3976
6714
  id: string & import("zod").$brand<"UUID">;
3977
6715
  name: {
3978
- use: string;
3979
- given: string[];
3980
- family: string;
3981
- }[];
6716
+ firstname: string;
6717
+ surname: string;
6718
+ };
3982
6719
  role: string;
3983
6720
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3984
6721
  type: "user";
@@ -4008,10 +6745,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4008
6745
  create: import("@trpc/server").TRPCMutationProcedure<{
4009
6746
  input: {
4010
6747
  name: {
4011
- use: string;
4012
- given: string[];
4013
- family: string;
4014
- }[];
6748
+ firstname: string;
6749
+ surname: string;
6750
+ };
4015
6751
  role: string;
4016
6752
  primaryOfficeId: string;
4017
6753
  data?: Record<string, unknown> | undefined;
@@ -4020,6 +6756,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4020
6756
  email?: string | undefined;
4021
6757
  mobile?: string | undefined;
4022
6758
  username?: undefined;
6759
+ password?: undefined;
4023
6760
  signature?: {
4024
6761
  path: string;
4025
6762
  originalFilename: string;
@@ -4029,10 +6766,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4029
6766
  output: {
4030
6767
  id: string & import("zod").$brand<"UUID">;
4031
6768
  name: {
4032
- use: string;
4033
- given: string[];
4034
- family: string;
4035
- }[];
6769
+ firstname: string;
6770
+ surname: string;
6771
+ };
4036
6772
  role: string;
4037
6773
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4038
6774
  type: "user";
@@ -4053,10 +6789,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4053
6789
  id: string;
4054
6790
  data?: Record<string, unknown> | undefined;
4055
6791
  name?: {
4056
- use: string;
4057
- given: string[];
4058
- family: string;
4059
- }[] | undefined;
6792
+ firstname: string;
6793
+ surname: string;
6794
+ } | undefined;
4060
6795
  role?: string | undefined;
4061
6796
  fullHonorificName?: string | undefined;
4062
6797
  device?: string | undefined;
@@ -4069,16 +6804,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4069
6804
  type: string;
4070
6805
  } | undefined;
4071
6806
  status?: "active" | "deactivated" | undefined;
4072
- } & {
4073
- id: string;
4074
6807
  };
4075
6808
  output: {
4076
6809
  id: string & import("zod").$brand<"UUID">;
4077
6810
  name: {
4078
- use: string;
4079
- given: string[];
4080
- family: string;
4081
- }[];
6811
+ firstname: string;
6812
+ surname: string;
6813
+ };
4082
6814
  role: string;
4083
6815
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4084
6816
  type: "user";
@@ -4099,10 +6831,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4099
6831
  output: ({
4100
6832
  id: string & import("zod").$brand<"UUID">;
4101
6833
  name: {
4102
- use: string;
4103
- given: string[];
4104
- family: string;
4105
- }[];
6834
+ firstname: string;
6835
+ surname: string;
6836
+ };
4106
6837
  role: string;
4107
6838
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4108
6839
  type: "user";
@@ -4144,10 +6875,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4144
6875
  output: ({
4145
6876
  id: string & import("zod").$brand<"UUID">;
4146
6877
  name: {
4147
- use: string;
4148
- given: string[];
4149
- family: string;
4150
- }[];
6878
+ firstname: string;
6879
+ surname: string;
6880
+ };
4151
6881
  role: string;
4152
6882
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4153
6883
  type: "user";
@@ -4283,10 +7013,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4283
7013
  changeAvatar: import("@trpc/server").TRPCMutationProcedure<{
4284
7014
  input: {
4285
7015
  userId: string;
4286
- avatar: {
4287
- type: string;
4288
- data: string;
4289
- };
7016
+ avatar: string;
4290
7017
  };
4291
7018
  output: void;
4292
7019
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -4318,6 +7045,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4318
7045
  output: void;
4319
7046
  meta: import("trpc-to-openapi").OpenApiMeta;
4320
7047
  }>;
7048
+ verifyLoggedInUserPassword: import("@trpc/server").TRPCMutationProcedure<{
7049
+ input: {
7050
+ password: string;
7051
+ };
7052
+ output: {
7053
+ status: string;
7054
+ username: string;
7055
+ id: string;
7056
+ mobile?: string | undefined;
7057
+ };
7058
+ meta: import("trpc-to-openapi").OpenApiMeta;
7059
+ }>;
4321
7060
  audit: import("@trpc/server").TRPCBuiltRouter<{
4322
7061
  ctx: Partial<{
4323
7062
  token: `Bearer ${string}`;
@@ -4773,7 +7512,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4773
7512
  'legalStatuses.DECLARED.createdAtLocation'?: {
4774
7513
  type: "within";
4775
7514
  location: string | {
4776
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
7515
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4777
7516
  $location?: string | undefined;
4778
7517
  };
4779
7518
  } | undefined;
@@ -4795,7 +7534,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4795
7534
  'legalStatuses.REGISTERED.createdAtLocation'?: {
4796
7535
  type: "within";
4797
7536
  location: string | {
4798
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
7537
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4799
7538
  $location?: string | undefined;
4800
7539
  };
4801
7540
  } | undefined;
@@ -4810,47 +7549,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4810
7549
  createdAtLocation?: {
4811
7550
  type: "within";
4812
7551
  location: string | {
4813
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
7552
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4814
7553
  $location?: string | undefined;
4815
7554
  };
4816
7555
  } | {
4817
7556
  type: "exact";
4818
7557
  term: string | {
4819
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
7558
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4820
7559
  $location?: string | undefined;
4821
7560
  };
4822
7561
  } | undefined;
4823
7562
  updatedAtLocation?: {
4824
7563
  type: "within";
4825
7564
  location: string | {
4826
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
7565
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4827
7566
  $location?: string | undefined;
4828
7567
  };
4829
7568
  } | {
4830
7569
  type: "exact";
4831
7570
  term: string | {
4832
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
7571
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4833
7572
  $location?: string | undefined;
4834
7573
  };
4835
7574
  } | undefined;
4836
7575
  updatedByUserRole?: {
4837
7576
  type: "exact";
4838
7577
  term: string | {
4839
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
7578
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4840
7579
  $location?: string | undefined;
4841
7580
  };
4842
7581
  } | undefined;
4843
7582
  assignedTo?: {
4844
7583
  type: "exact";
4845
7584
  term: string | {
4846
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
7585
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4847
7586
  $location?: string | undefined;
4848
7587
  };
4849
7588
  } | undefined;
4850
7589
  createdBy?: {
4851
7590
  type: "exact";
4852
7591
  term: string | {
4853
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
7592
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4854
7593
  $location?: string | undefined;
4855
7594
  };
4856
7595
  } | undefined;
@@ -4861,7 +7600,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4861
7600
  updatedBy?: {
4862
7601
  type: "exact";
4863
7602
  term: string | {
4864
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
7603
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4865
7604
  $location?: string | undefined;
4866
7605
  };
4867
7606
  } | undefined;
@@ -4911,7 +7650,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4911
7650
  'legalStatuses.DECLARED.createdAtLocation'?: {
4912
7651
  type: "within";
4913
7652
  location: string | {
4914
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
7653
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4915
7654
  $location?: string | undefined;
4916
7655
  };
4917
7656
  } | undefined;
@@ -4933,7 +7672,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4933
7672
  'legalStatuses.REGISTERED.createdAtLocation'?: {
4934
7673
  type: "within";
4935
7674
  location: string | {
4936
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
7675
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4937
7676
  $location?: string | undefined;
4938
7677
  };
4939
7678
  } | undefined;
@@ -4948,47 +7687,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4948
7687
  createdAtLocation?: {
4949
7688
  type: "within";
4950
7689
  location: string | {
4951
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
7690
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4952
7691
  $location?: string | undefined;
4953
7692
  };
4954
7693
  } | {
4955
7694
  type: "exact";
4956
7695
  term: string | {
4957
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
7696
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4958
7697
  $location?: string | undefined;
4959
7698
  };
4960
7699
  } | undefined;
4961
7700
  updatedAtLocation?: {
4962
7701
  type: "within";
4963
7702
  location: string | {
4964
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
7703
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4965
7704
  $location?: string | undefined;
4966
7705
  };
4967
7706
  } | {
4968
7707
  type: "exact";
4969
7708
  term: string | {
4970
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
7709
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4971
7710
  $location?: string | undefined;
4972
7711
  };
4973
7712
  } | undefined;
4974
7713
  updatedByUserRole?: {
4975
7714
  type: "exact";
4976
7715
  term: string | {
4977
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
7716
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4978
7717
  $location?: string | undefined;
4979
7718
  };
4980
7719
  } | undefined;
4981
7720
  assignedTo?: {
4982
7721
  type: "exact";
4983
7722
  term: string | {
4984
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
7723
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4985
7724
  $location?: string | undefined;
4986
7725
  };
4987
7726
  } | undefined;
4988
7727
  createdBy?: {
4989
7728
  type: "exact";
4990
7729
  term: string | {
4991
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
7730
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4992
7731
  $location?: string | undefined;
4993
7732
  };
4994
7733
  } | undefined;
@@ -4999,7 +7738,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4999
7738
  updatedBy?: {
5000
7739
  type: "exact";
5001
7740
  term: string | {
5002
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
7741
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
5003
7742
  $location?: string | undefined;
5004
7743
  };
5005
7744
  } | undefined;