@opencrvs/toolkit 2.0.0-rc.977e771 → 2.0.0-rc.9a3b2a1

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 (84) 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 +15 -14
  4. package/dist/cli.js +1645 -333
  5. package/dist/commons/api/router.d.ts +391 -54
  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/events/FieldConfig.d.ts +10 -0
  9. package/dist/commons/events/locations.d.ts +21 -0
  10. package/dist/commons/events/mocks.test.utils.d.ts +19 -0
  11. package/dist/commons/events/scopes.d.ts +24 -1
  12. package/dist/conditionals/index.js +11 -10
  13. package/dist/events/index.js +66 -10
  14. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +1 -1
  15. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +63 -39
  16. package/dist/migrations/v2.0/add-resend-invite-notification.d.ts +3 -0
  17. package/dist/migrations/v2.0/add-resend-invite-notification.d.ts.map +1 -0
  18. package/dist/migrations/v2.0/add-resend-invite-notification.js +373 -0
  19. package/dist/migrations/v2.0/checkout-upstream-files.d.ts +19 -0
  20. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
  21. package/dist/migrations/v2.0/checkout-upstream-files.js +17 -13
  22. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -1
  23. package/dist/migrations/v2.0/convert-config-files-to-ts.js +4 -5
  24. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +1 -1
  25. package/dist/migrations/v2.0/convert-paragraph-to-heading.js +4 -5
  26. package/dist/migrations/v2.0/create-events-index.d.ts.map +1 -1
  27. package/dist/migrations/v2.0/create-events-index.js +1 -2
  28. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts +3 -0
  29. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts.map +1 -0
  30. package/dist/migrations/v2.0/delete-infrastructure-directory.js +77 -0
  31. package/dist/migrations/v2.0/index.d.ts +8 -4
  32. package/dist/migrations/v2.0/index.d.ts.map +1 -1
  33. package/dist/migrations/v2.0/index.js +1472 -189
  34. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +1 -1
  35. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +95 -7
  36. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts +3 -0
  37. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts.map +1 -0
  38. package/dist/migrations/v2.0/merge-infrastructure-directory.js +221 -0
  39. package/dist/migrations/v2.0/migrate-application-config-url.d.ts +3 -0
  40. package/dist/migrations/v2.0/migrate-application-config-url.d.ts.map +1 -0
  41. package/dist/migrations/v2.0/migrate-application-config-url.js +342 -0
  42. package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -1
  43. package/dist/migrations/v2.0/migrate-scopes.js +6 -7
  44. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +1 -1
  45. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +3 -4
  46. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +1 -1
  47. package/dist/migrations/v2.0/migrate-workqueue-configs.js +3 -4
  48. package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +1 -1
  49. package/dist/migrations/v2.0/remove-delete-actions.js +3 -4
  50. package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +1 -1
  51. package/dist/migrations/v2.0/remove-demo-scope.js +2 -3
  52. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +1 -1
  53. package/dist/migrations/v2.0/remove-deprecated-imports.js +3 -4
  54. package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts +3 -0
  55. package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts.map +1 -0
  56. package/dist/migrations/v2.0/remove-fhir-url-helpers.js +163 -0
  57. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +1 -1
  58. package/dist/migrations/v2.0/remove-hearth-migrations.js +1 -2
  59. package/dist/migrations/v2.0/remove-old-statistics-service.d.ts +3 -0
  60. package/dist/migrations/v2.0/remove-old-statistics-service.d.ts.map +1 -0
  61. package/dist/migrations/v2.0/remove-old-statistics-service.js +356 -0
  62. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +1 -1
  63. package/dist/migrations/v2.0/remove-pending-certification-flag.js +3 -4
  64. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +1 -1
  65. package/dist/migrations/v2.0/remove-review-from-register-action.js +3 -4
  66. package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts +3 -0
  67. package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts.map +1 -0
  68. package/dist/migrations/v2.0/remove-unused-environment-variables.js +186 -0
  69. package/dist/migrations/v2.0/rename-api-paths.d.ts.map +1 -1
  70. package/dist/migrations/v2.0/rename-api-paths.js +3 -4
  71. package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +1 -1
  72. package/dist/migrations/v2.0/rename-location-parent-id.js +3 -4
  73. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts.map +1 -1
  74. package/dist/migrations/v2.0/simplify-analytics-precalculations.js +1 -2
  75. package/dist/migrations/v2.0/update-package-json.d.ts +3 -0
  76. package/dist/migrations/v2.0/update-package-json.d.ts.map +1 -0
  77. package/dist/migrations/v2.0/update-package-json.js +105 -0
  78. package/dist/notification/index.js +11 -10
  79. package/dist/scopes/index.d.ts +8 -1
  80. package/dist/scopes/index.js +11 -10
  81. package/opencrvs-toolkit-2.0.0-rc.9a3b2a1.tgz +0 -0
  82. package/package.json +1 -1
  83. package/tsconfig.tsbuildinfo +1 -1
  84. package/opencrvs-toolkit-2.0.0-rc.977e771.tgz +0 -0
@@ -1195,6 +1195,342 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1195
1195
  meta: import("trpc-to-openapi").OpenApiMeta;
1196
1196
  }>;
1197
1197
  }>>;
1198
+ createAndNotify: import("@trpc/server").TRPCBuiltRouter<{
1199
+ ctx: Partial<{
1200
+ token: `Bearer ${string}`;
1201
+ user: {
1202
+ id: string & import("zod").$brand<"UUID">;
1203
+ type: "system";
1204
+ signature?: undefined;
1205
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1206
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1207
+ } | {
1208
+ id: string & import("zod").$brand<"UUID">;
1209
+ type: "user";
1210
+ role: string;
1211
+ primaryOfficeId: string & import("zod").$brand<"UUID">;
1212
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1213
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1214
+ };
1215
+ }>;
1216
+ meta: import("trpc-to-openapi").OpenApiMeta;
1217
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1218
+ transformer: true;
1219
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1220
+ request: import("@trpc/server").TRPCMutationProcedure<{
1221
+ input: {
1222
+ transactionId: string;
1223
+ eventType: string;
1224
+ createdAtLocation: string;
1225
+ declaration?: Record<string, unknown> | undefined;
1226
+ annotation?: Record<string, unknown> | undefined;
1227
+ originalActionId?: string | undefined;
1228
+ keepAssignment?: boolean | undefined;
1229
+ };
1230
+ output: {
1231
+ id: string & import("zod").$brand<"UUID">;
1232
+ type: string;
1233
+ createdAt: string;
1234
+ updatedAt: string;
1235
+ actions: ({
1236
+ id: string & import("zod").$brand<"UUID">;
1237
+ transactionId: string;
1238
+ createdByUserType: "system" | "user";
1239
+ createdAt: string;
1240
+ createdBy: string;
1241
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1242
+ status: "Requested" | "Accepted" | "Rejected";
1243
+ type: "CREATE";
1244
+ createdByRole?: string | undefined;
1245
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1246
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1247
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1248
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1249
+ } | {
1250
+ id: string & import("zod").$brand<"UUID">;
1251
+ transactionId: string;
1252
+ createdByUserType: "system" | "user";
1253
+ createdAt: string;
1254
+ createdBy: string;
1255
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1256
+ status: "Requested" | "Accepted" | "Rejected";
1257
+ type: "REJECT";
1258
+ content: {
1259
+ reason: string;
1260
+ };
1261
+ createdByRole?: string | undefined;
1262
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1263
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1264
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1265
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1266
+ } | {
1267
+ id: string & import("zod").$brand<"UUID">;
1268
+ transactionId: string;
1269
+ createdByUserType: "system" | "user";
1270
+ createdAt: string;
1271
+ createdBy: string;
1272
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1273
+ status: "Requested" | "Accepted" | "Rejected";
1274
+ type: "DUPLICATE_DETECTED";
1275
+ content: {
1276
+ duplicates: {
1277
+ id: string & import("zod").$brand<"UUID">;
1278
+ trackingId: string;
1279
+ }[];
1280
+ };
1281
+ createdByRole?: string | undefined;
1282
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1283
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1284
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1285
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1286
+ } | {
1287
+ id: string & import("zod").$brand<"UUID">;
1288
+ transactionId: string;
1289
+ createdByUserType: "system" | "user";
1290
+ createdAt: string;
1291
+ createdBy: string;
1292
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1293
+ status: "Requested" | "Accepted" | "Rejected";
1294
+ type: "MARK_AS_NOT_DUPLICATE";
1295
+ createdByRole?: string | undefined;
1296
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1297
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1298
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1299
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1300
+ } | {
1301
+ id: string & import("zod").$brand<"UUID">;
1302
+ transactionId: string;
1303
+ createdByUserType: "system" | "user";
1304
+ createdAt: string;
1305
+ createdBy: string;
1306
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1307
+ status: "Requested" | "Accepted" | "Rejected";
1308
+ type: "MARK_AS_DUPLICATE";
1309
+ createdByRole?: string | undefined;
1310
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1311
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1312
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1313
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1314
+ content?: {
1315
+ duplicateOf: string & import("zod").$brand<"UUID">;
1316
+ } | undefined;
1317
+ } | {
1318
+ id: string & import("zod").$brand<"UUID">;
1319
+ transactionId: string;
1320
+ createdByUserType: "system" | "user";
1321
+ createdAt: string;
1322
+ createdBy: string;
1323
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1324
+ status: "Requested" | "Accepted" | "Rejected";
1325
+ type: "ARCHIVE";
1326
+ content: {
1327
+ reason: string;
1328
+ };
1329
+ createdByRole?: string | undefined;
1330
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1331
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1332
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1333
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1334
+ } | {
1335
+ id: string & import("zod").$brand<"UUID">;
1336
+ transactionId: string;
1337
+ createdByUserType: "system" | "user";
1338
+ createdAt: string;
1339
+ createdBy: string;
1340
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1341
+ status: "Requested" | "Accepted" | "Rejected";
1342
+ type: "NOTIFY";
1343
+ createdByRole?: string | undefined;
1344
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1345
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1346
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1347
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1348
+ } | {
1349
+ id: string & import("zod").$brand<"UUID">;
1350
+ transactionId: string;
1351
+ createdByUserType: "system" | "user";
1352
+ createdAt: string;
1353
+ createdBy: string;
1354
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1355
+ status: "Requested" | "Accepted" | "Rejected";
1356
+ type: "REGISTER";
1357
+ createdByRole?: string | undefined;
1358
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1359
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1360
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1361
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1362
+ registrationNumber?: string | undefined;
1363
+ } | {
1364
+ id: string & import("zod").$brand<"UUID">;
1365
+ transactionId: string;
1366
+ createdByUserType: "system" | "user";
1367
+ createdAt: string;
1368
+ createdBy: string;
1369
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1370
+ status: "Requested" | "Accepted" | "Rejected";
1371
+ type: "DECLARE";
1372
+ createdByRole?: string | undefined;
1373
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1374
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1375
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1376
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1377
+ } | {
1378
+ id: string & import("zod").$brand<"UUID">;
1379
+ transactionId: string;
1380
+ createdByUserType: "system" | "user";
1381
+ createdAt: string;
1382
+ createdBy: string;
1383
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1384
+ status: "Requested" | "Accepted" | "Rejected";
1385
+ type: "ASSIGN";
1386
+ assignedTo: string;
1387
+ createdByRole?: string | undefined;
1388
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1389
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1390
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1391
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1392
+ } | {
1393
+ id: string & import("zod").$brand<"UUID">;
1394
+ transactionId: string;
1395
+ createdByUserType: "system" | "user";
1396
+ createdAt: string;
1397
+ createdBy: string;
1398
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1399
+ status: "Requested" | "Accepted" | "Rejected";
1400
+ type: "REQUEST_CORRECTION";
1401
+ createdByRole?: string | undefined;
1402
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1403
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1404
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1405
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1406
+ } | {
1407
+ id: string & import("zod").$brand<"UUID">;
1408
+ transactionId: string;
1409
+ createdByUserType: "system" | "user";
1410
+ createdAt: string;
1411
+ createdBy: string;
1412
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1413
+ status: "Requested" | "Accepted" | "Rejected";
1414
+ type: "APPROVE_CORRECTION";
1415
+ requestId: string;
1416
+ createdByRole?: string | undefined;
1417
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1418
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1419
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1420
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1421
+ } | {
1422
+ id: string & import("zod").$brand<"UUID">;
1423
+ transactionId: string;
1424
+ createdByUserType: "system" | "user";
1425
+ createdAt: string;
1426
+ createdBy: string;
1427
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1428
+ status: "Requested" | "Accepted" | "Rejected";
1429
+ type: "REJECT_CORRECTION";
1430
+ requestId: string;
1431
+ content: {
1432
+ reason: string;
1433
+ };
1434
+ createdByRole?: string | undefined;
1435
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1436
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1437
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1438
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1439
+ } | {
1440
+ id: string & import("zod").$brand<"UUID">;
1441
+ transactionId: string;
1442
+ createdByUserType: "system" | "user";
1443
+ createdAt: string;
1444
+ createdBy: string;
1445
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1446
+ status: "Requested" | "Accepted" | "Rejected";
1447
+ type: "UNASSIGN";
1448
+ createdByRole?: string | undefined;
1449
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1450
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1451
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1452
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1453
+ } | {
1454
+ id: string & import("zod").$brand<"UUID">;
1455
+ transactionId: string;
1456
+ createdByUserType: "system" | "user";
1457
+ createdAt: string;
1458
+ createdBy: string;
1459
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1460
+ status: "Requested" | "Accepted" | "Rejected";
1461
+ type: "PRINT_CERTIFICATE";
1462
+ createdByRole?: string | undefined;
1463
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1464
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1465
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1466
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1467
+ content?: {
1468
+ templateId?: string | undefined;
1469
+ } | null | undefined;
1470
+ } | {
1471
+ id: string & import("zod").$brand<"UUID">;
1472
+ transactionId: string;
1473
+ createdByUserType: "system" | "user";
1474
+ createdAt: string;
1475
+ createdBy: string;
1476
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1477
+ status: "Requested" | "Accepted" | "Rejected";
1478
+ type: "READ";
1479
+ createdByRole?: string | undefined;
1480
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1481
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1482
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1483
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1484
+ } | {
1485
+ id: string & import("zod").$brand<"UUID">;
1486
+ transactionId: string;
1487
+ createdByUserType: "system" | "user";
1488
+ createdAt: string;
1489
+ createdBy: string;
1490
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1491
+ status: "Requested" | "Accepted" | "Rejected";
1492
+ type: "EDIT";
1493
+ content: {
1494
+ comment?: string | undefined;
1495
+ };
1496
+ createdByRole?: string | undefined;
1497
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1498
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1499
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1500
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1501
+ } | {
1502
+ id: string & import("zod").$brand<"UUID">;
1503
+ transactionId: string;
1504
+ createdByUserType: "system" | "user";
1505
+ createdAt: string;
1506
+ createdBy: string;
1507
+ declaration: Record<string, import("../commons").FieldUpdateValue>;
1508
+ status: "Requested" | "Accepted" | "Rejected";
1509
+ type: "CUSTOM";
1510
+ customActionType: string;
1511
+ createdByRole?: string | undefined;
1512
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1513
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1514
+ annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1515
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1516
+ } | {
1517
+ id: string & import("zod").$brand<"UUID">;
1518
+ transactionId: string;
1519
+ createdByUserType: "system" | "user";
1520
+ createdAt: string;
1521
+ createdBy: string;
1522
+ type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
1523
+ status: "Rejected";
1524
+ createdByRole?: string | undefined;
1525
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1526
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
1527
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1528
+ })[];
1529
+ trackingId: string;
1530
+ };
1531
+ meta: import("trpc-to-openapi").OpenApiMeta;
1532
+ }>;
1533
+ }>>;
1198
1534
  declare: import("@trpc/server").TRPCBuiltRouter<{
1199
1535
  ctx: Partial<{
1200
1536
  token: `Bearer ${string}`;
@@ -3975,10 +4311,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3975
4311
  output: {
3976
4312
  id: string & import("zod").$brand<"UUID">;
3977
4313
  name: {
3978
- use: string;
3979
- given: string[];
3980
- family: string;
3981
- }[];
4314
+ firstname: string;
4315
+ surname: string;
4316
+ };
3982
4317
  role: string;
3983
4318
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3984
4319
  type: "user";
@@ -4008,10 +4343,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4008
4343
  create: import("@trpc/server").TRPCMutationProcedure<{
4009
4344
  input: {
4010
4345
  name: {
4011
- use: string;
4012
- given: string[];
4013
- family: string;
4014
- }[];
4346
+ firstname: string;
4347
+ surname: string;
4348
+ };
4015
4349
  role: string;
4016
4350
  primaryOfficeId: string;
4017
4351
  data?: Record<string, unknown> | undefined;
@@ -4020,6 +4354,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4020
4354
  email?: string | undefined;
4021
4355
  mobile?: string | undefined;
4022
4356
  username?: undefined;
4357
+ password?: undefined;
4023
4358
  signature?: {
4024
4359
  path: string;
4025
4360
  originalFilename: string;
@@ -4029,10 +4364,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4029
4364
  output: {
4030
4365
  id: string & import("zod").$brand<"UUID">;
4031
4366
  name: {
4032
- use: string;
4033
- given: string[];
4034
- family: string;
4035
- }[];
4367
+ firstname: string;
4368
+ surname: string;
4369
+ };
4036
4370
  role: string;
4037
4371
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4038
4372
  type: "user";
@@ -4053,10 +4387,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4053
4387
  id: string;
4054
4388
  data?: Record<string, unknown> | undefined;
4055
4389
  name?: {
4056
- use: string;
4057
- given: string[];
4058
- family: string;
4059
- }[] | undefined;
4390
+ firstname: string;
4391
+ surname: string;
4392
+ } | undefined;
4060
4393
  role?: string | undefined;
4061
4394
  fullHonorificName?: string | undefined;
4062
4395
  device?: string | undefined;
@@ -4069,16 +4402,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4069
4402
  type: string;
4070
4403
  } | undefined;
4071
4404
  status?: "active" | "deactivated" | undefined;
4072
- } & {
4073
- id: string;
4074
4405
  };
4075
4406
  output: {
4076
4407
  id: string & import("zod").$brand<"UUID">;
4077
4408
  name: {
4078
- use: string;
4079
- given: string[];
4080
- family: string;
4081
- }[];
4409
+ firstname: string;
4410
+ surname: string;
4411
+ };
4082
4412
  role: string;
4083
4413
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4084
4414
  type: "user";
@@ -4099,10 +4429,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4099
4429
  output: ({
4100
4430
  id: string & import("zod").$brand<"UUID">;
4101
4431
  name: {
4102
- use: string;
4103
- given: string[];
4104
- family: string;
4105
- }[];
4432
+ firstname: string;
4433
+ surname: string;
4434
+ };
4106
4435
  role: string;
4107
4436
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4108
4437
  type: "user";
@@ -4144,10 +4473,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4144
4473
  output: ({
4145
4474
  id: string & import("zod").$brand<"UUID">;
4146
4475
  name: {
4147
- use: string;
4148
- given: string[];
4149
- family: string;
4150
- }[];
4476
+ firstname: string;
4477
+ surname: string;
4478
+ };
4151
4479
  role: string;
4152
4480
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4153
4481
  type: "user";
@@ -4283,10 +4611,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4283
4611
  changeAvatar: import("@trpc/server").TRPCMutationProcedure<{
4284
4612
  input: {
4285
4613
  userId: string;
4286
- avatar: {
4287
- type: string;
4288
- data: string;
4289
- };
4614
+ avatar: string;
4290
4615
  };
4291
4616
  output: void;
4292
4617
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -4318,6 +4643,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4318
4643
  output: void;
4319
4644
  meta: import("trpc-to-openapi").OpenApiMeta;
4320
4645
  }>;
4646
+ verifyLoggedInUserPassword: import("@trpc/server").TRPCMutationProcedure<{
4647
+ input: {
4648
+ password: string;
4649
+ };
4650
+ output: {
4651
+ status: string;
4652
+ username: string;
4653
+ id: string;
4654
+ mobile?: string | undefined;
4655
+ };
4656
+ meta: import("trpc-to-openapi").OpenApiMeta;
4657
+ }>;
4321
4658
  audit: import("@trpc/server").TRPCBuiltRouter<{
4322
4659
  ctx: Partial<{
4323
4660
  token: `Bearer ${string}`;
@@ -4773,7 +5110,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4773
5110
  'legalStatuses.DECLARED.createdAtLocation'?: {
4774
5111
  type: "within";
4775
5112
  location: string | {
4776
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
5113
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4777
5114
  $location?: string | undefined;
4778
5115
  };
4779
5116
  } | undefined;
@@ -4795,7 +5132,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4795
5132
  'legalStatuses.REGISTERED.createdAtLocation'?: {
4796
5133
  type: "within";
4797
5134
  location: string | {
4798
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
5135
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4799
5136
  $location?: string | undefined;
4800
5137
  };
4801
5138
  } | undefined;
@@ -4810,47 +5147,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4810
5147
  createdAtLocation?: {
4811
5148
  type: "within";
4812
5149
  location: string | {
4813
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
5150
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4814
5151
  $location?: string | undefined;
4815
5152
  };
4816
5153
  } | {
4817
5154
  type: "exact";
4818
5155
  term: string | {
4819
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
5156
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4820
5157
  $location?: string | undefined;
4821
5158
  };
4822
5159
  } | undefined;
4823
5160
  updatedAtLocation?: {
4824
5161
  type: "within";
4825
5162
  location: string | {
4826
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
5163
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4827
5164
  $location?: string | undefined;
4828
5165
  };
4829
5166
  } | {
4830
5167
  type: "exact";
4831
5168
  term: string | {
4832
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
5169
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4833
5170
  $location?: string | undefined;
4834
5171
  };
4835
5172
  } | undefined;
4836
5173
  updatedByUserRole?: {
4837
5174
  type: "exact";
4838
5175
  term: string | {
4839
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
5176
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4840
5177
  $location?: string | undefined;
4841
5178
  };
4842
5179
  } | undefined;
4843
5180
  assignedTo?: {
4844
5181
  type: "exact";
4845
5182
  term: string | {
4846
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
5183
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4847
5184
  $location?: string | undefined;
4848
5185
  };
4849
5186
  } | undefined;
4850
5187
  createdBy?: {
4851
5188
  type: "exact";
4852
5189
  term: string | {
4853
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
5190
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4854
5191
  $location?: string | undefined;
4855
5192
  };
4856
5193
  } | undefined;
@@ -4861,7 +5198,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4861
5198
  updatedBy?: {
4862
5199
  type: "exact";
4863
5200
  term: string | {
4864
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
5201
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4865
5202
  $location?: string | undefined;
4866
5203
  };
4867
5204
  } | undefined;
@@ -4911,7 +5248,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4911
5248
  'legalStatuses.DECLARED.createdAtLocation'?: {
4912
5249
  type: "within";
4913
5250
  location: string | {
4914
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
5251
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4915
5252
  $location?: string | undefined;
4916
5253
  };
4917
5254
  } | undefined;
@@ -4933,7 +5270,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4933
5270
  'legalStatuses.REGISTERED.createdAtLocation'?: {
4934
5271
  type: "within";
4935
5272
  location: string | {
4936
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
5273
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4937
5274
  $location?: string | undefined;
4938
5275
  };
4939
5276
  } | undefined;
@@ -4948,47 +5285,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4948
5285
  createdAtLocation?: {
4949
5286
  type: "within";
4950
5287
  location: string | {
4951
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
5288
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4952
5289
  $location?: string | undefined;
4953
5290
  };
4954
5291
  } | {
4955
5292
  type: "exact";
4956
5293
  term: string | {
4957
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
5294
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4958
5295
  $location?: string | undefined;
4959
5296
  };
4960
5297
  } | undefined;
4961
5298
  updatedAtLocation?: {
4962
5299
  type: "within";
4963
5300
  location: string | {
4964
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
5301
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4965
5302
  $location?: string | undefined;
4966
5303
  };
4967
5304
  } | {
4968
5305
  type: "exact";
4969
5306
  term: string | {
4970
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
5307
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4971
5308
  $location?: string | undefined;
4972
5309
  };
4973
5310
  } | undefined;
4974
5311
  updatedByUserRole?: {
4975
5312
  type: "exact";
4976
5313
  term: string | {
4977
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
5314
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4978
5315
  $location?: string | undefined;
4979
5316
  };
4980
5317
  } | undefined;
4981
5318
  assignedTo?: {
4982
5319
  type: "exact";
4983
5320
  term: string | {
4984
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
5321
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4985
5322
  $location?: string | undefined;
4986
5323
  };
4987
5324
  } | undefined;
4988
5325
  createdBy?: {
4989
5326
  type: "exact";
4990
5327
  term: string | {
4991
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
5328
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4992
5329
  $location?: string | undefined;
4993
5330
  };
4994
5331
  } | undefined;
@@ -4999,7 +5336,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4999
5336
  updatedBy?: {
5000
5337
  type: "exact";
5001
5338
  term: string | {
5002
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
5339
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
5003
5340
  $location?: string | undefined;
5004
5341
  };
5005
5342
  } | undefined;