@opencrvs/toolkit 1.8.1-rc.bbbfede → 1.8.1-rc.bbdfdc1

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 (39) hide show
  1. package/build.sh +5 -0
  2. package/dist/commons/api/router.d.ts +433 -800
  3. package/dist/commons/conditionals/validate.d.ts +8 -0
  4. package/dist/commons/events/ActionConfig.d.ts +2004 -366
  5. package/dist/commons/events/ActionDocument.d.ts +1302 -1389
  6. package/dist/commons/events/ActionInput.d.ts +658 -1136
  7. package/dist/commons/events/AdvancedSearchConfig.d.ts +83 -65
  8. package/dist/commons/events/CompositeFieldValue.d.ts +6 -6
  9. package/dist/commons/events/CountryConfigQueryInput.d.ts +88 -88
  10. package/dist/commons/events/Draft.d.ts +48 -92
  11. package/dist/commons/events/EventConfig.d.ts +695 -168
  12. package/dist/commons/events/EventDocument.d.ts +475 -846
  13. package/dist/commons/events/EventIndex.d.ts +184 -68
  14. package/dist/commons/events/EventMetadata.d.ts +9 -15
  15. package/dist/commons/events/FieldConfig.d.ts +254 -43
  16. package/dist/commons/events/FieldTypeMapping.d.ts +16 -16
  17. package/dist/commons/events/FieldValue.d.ts +12 -12
  18. package/dist/commons/events/FormConfig.d.ts +1032 -246
  19. package/dist/commons/events/PageConfig.d.ts +264 -46
  20. package/dist/commons/events/WorkqueueConfig.d.ts +288 -164
  21. package/dist/commons/events/defineConfig.d.ts +129 -30
  22. package/dist/commons/events/event.d.ts +14 -6
  23. package/dist/commons/events/field.d.ts +14 -0
  24. package/dist/commons/events/test.utils.d.ts +17 -13
  25. package/dist/commons/events/utils.d.ts +236 -64
  26. package/dist/commons/notification/UserNotifications.d.ts +547 -0
  27. package/dist/commons/notification/index.d.ts +2 -0
  28. package/dist/conditionals/index.js +3 -2
  29. package/dist/events/index.js +162 -87
  30. package/dist/notification/index.d.ts +2 -0
  31. package/dist/notification/index.d.ts.map +1 -0
  32. package/dist/notification/index.js +5362 -0
  33. package/package.json +3 -2
  34. package/tsconfig.json +3 -2
  35. package/tsconfig.tsbuildinfo +1 -1
  36. package/dist/commons/conditionals/conditionals.test.d.ts +0 -2
  37. package/dist/commons/conditionals/validate-address.test.d.ts +0 -2
  38. package/dist/commons/conditionals/validate.test.d.ts +0 -2
  39. package/dist/commons/events/utils.test.d.ts +0 -2
@@ -102,8 +102,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
102
102
  street?: string | null | undefined;
103
103
  zipCode?: string | null | undefined;
104
104
  } | {
105
- firstname?: string | null | undefined;
106
- surname?: string | null | undefined;
105
+ firstname: string;
106
+ surname: string;
107
107
  middlename?: string | null | undefined;
108
108
  } | {
109
109
  country: string;
@@ -150,8 +150,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
150
150
  street?: string | null | undefined;
151
151
  zipCode?: string | null | undefined;
152
152
  } | {
153
- firstname?: string | null | undefined;
154
- surname?: string | null | undefined;
153
+ firstname: string;
154
+ surname: string;
155
155
  middlename?: string | null | undefined;
156
156
  } | {
157
157
  country: string;
@@ -179,10 +179,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
179
179
  start: string;
180
180
  end: string;
181
181
  } | null | undefined> | null | undefined;
182
- actionDetails?: {
183
- templateId?: string | undefined;
184
- isImmediateCorrection?: boolean | undefined;
185
- } | null | undefined;
186
182
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
187
183
  } | {
188
184
  type: "UNASSIGN";
@@ -209,8 +205,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
209
205
  street?: string | null | undefined;
210
206
  zipCode?: string | null | undefined;
211
207
  } | {
212
- firstname?: string | null | undefined;
213
- surname?: string | null | undefined;
208
+ firstname: string;
209
+ surname: string;
214
210
  middlename?: string | null | undefined;
215
211
  } | {
216
212
  country: string;
@@ -256,8 +252,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
256
252
  street?: string | null | undefined;
257
253
  zipCode?: string | null | undefined;
258
254
  } | {
259
- firstname?: string | null | undefined;
260
- surname?: string | null | undefined;
255
+ firstname: string;
256
+ surname: string;
261
257
  middlename?: string | null | undefined;
262
258
  } | {
263
259
  country: string;
@@ -285,10 +281,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
285
281
  start: string;
286
282
  end: string;
287
283
  } | null | undefined> | null | undefined;
288
- actionDetails?: {
289
- templateId?: string | undefined;
290
- isImmediateCorrection?: boolean | undefined;
291
- } | null | undefined;
292
284
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
293
285
  } | {
294
286
  type: "REGISTER";
@@ -315,8 +307,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
315
307
  street?: string | null | undefined;
316
308
  zipCode?: string | null | undefined;
317
309
  } | {
318
- firstname?: string | null | undefined;
319
- surname?: string | null | undefined;
310
+ firstname: string;
311
+ surname: string;
320
312
  middlename?: string | null | undefined;
321
313
  } | {
322
314
  country: string;
@@ -362,8 +354,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
362
354
  street?: string | null | undefined;
363
355
  zipCode?: string | null | undefined;
364
356
  } | {
365
- firstname?: string | null | undefined;
366
- surname?: string | null | undefined;
357
+ firstname: string;
358
+ surname: string;
367
359
  middlename?: string | null | undefined;
368
360
  } | {
369
361
  country: string;
@@ -391,10 +383,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
391
383
  start: string;
392
384
  end: string;
393
385
  } | null | undefined> | null | undefined;
394
- actionDetails?: {
395
- templateId?: string | undefined;
396
- isImmediateCorrection?: boolean | undefined;
397
- } | null | undefined;
398
386
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
399
387
  registrationNumber?: string | undefined;
400
388
  } | {
@@ -422,8 +410,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
422
410
  street?: string | null | undefined;
423
411
  zipCode?: string | null | undefined;
424
412
  } | {
425
- firstname?: string | null | undefined;
426
- surname?: string | null | undefined;
413
+ firstname: string;
414
+ surname: string;
427
415
  middlename?: string | null | undefined;
428
416
  } | {
429
417
  country: string;
@@ -469,8 +457,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
469
457
  street?: string | null | undefined;
470
458
  zipCode?: string | null | undefined;
471
459
  } | {
472
- firstname?: string | null | undefined;
473
- surname?: string | null | undefined;
460
+ firstname: string;
461
+ surname: string;
474
462
  middlename?: string | null | undefined;
475
463
  } | {
476
464
  country: string;
@@ -498,10 +486,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
498
486
  start: string;
499
487
  end: string;
500
488
  } | null | undefined> | null | undefined;
501
- actionDetails?: {
502
- templateId?: string | undefined;
503
- isImmediateCorrection?: boolean | undefined;
504
- } | null | undefined;
505
489
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
506
490
  } | {
507
491
  type: "VALIDATE";
@@ -528,8 +512,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
528
512
  street?: string | null | undefined;
529
513
  zipCode?: string | null | undefined;
530
514
  } | {
531
- firstname?: string | null | undefined;
532
- surname?: string | null | undefined;
515
+ firstname: string;
516
+ surname: string;
533
517
  middlename?: string | null | undefined;
534
518
  } | {
535
519
  country: string;
@@ -575,8 +559,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
575
559
  street?: string | null | undefined;
576
560
  zipCode?: string | null | undefined;
577
561
  } | {
578
- firstname?: string | null | undefined;
579
- surname?: string | null | undefined;
562
+ firstname: string;
563
+ surname: string;
580
564
  middlename?: string | null | undefined;
581
565
  } | {
582
566
  country: string;
@@ -604,10 +588,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
604
588
  start: string;
605
589
  end: string;
606
590
  } | null | undefined> | null | undefined;
607
- actionDetails?: {
608
- templateId?: string | undefined;
609
- isImmediateCorrection?: boolean | undefined;
610
- } | null | undefined;
611
591
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
612
592
  } | {
613
593
  type: "REJECT";
@@ -638,8 +618,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
638
618
  street?: string | null | undefined;
639
619
  zipCode?: string | null | undefined;
640
620
  } | {
641
- firstname?: string | null | undefined;
642
- surname?: string | null | undefined;
621
+ firstname: string;
622
+ surname: string;
643
623
  middlename?: string | null | undefined;
644
624
  } | {
645
625
  country: string;
@@ -685,8 +665,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
685
665
  street?: string | null | undefined;
686
666
  zipCode?: string | null | undefined;
687
667
  } | {
688
- firstname?: string | null | undefined;
689
- surname?: string | null | undefined;
668
+ firstname: string;
669
+ surname: string;
690
670
  middlename?: string | null | undefined;
691
671
  } | {
692
672
  country: string;
@@ -714,10 +694,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
714
694
  start: string;
715
695
  end: string;
716
696
  } | null | undefined> | null | undefined;
717
- actionDetails?: {
718
- templateId?: string | undefined;
719
- isImmediateCorrection?: boolean | undefined;
720
- } | null | undefined;
721
697
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
722
698
  } | {
723
699
  type: "MARKED_AS_DUPLICATE";
@@ -744,8 +720,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
744
720
  street?: string | null | undefined;
745
721
  zipCode?: string | null | undefined;
746
722
  } | {
747
- firstname?: string | null | undefined;
748
- surname?: string | null | undefined;
723
+ firstname: string;
724
+ surname: string;
749
725
  middlename?: string | null | undefined;
750
726
  } | {
751
727
  country: string;
@@ -791,8 +767,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
791
767
  street?: string | null | undefined;
792
768
  zipCode?: string | null | undefined;
793
769
  } | {
794
- firstname?: string | null | undefined;
795
- surname?: string | null | undefined;
770
+ firstname: string;
771
+ surname: string;
796
772
  middlename?: string | null | undefined;
797
773
  } | {
798
774
  country: string;
@@ -820,10 +796,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
820
796
  start: string;
821
797
  end: string;
822
798
  } | null | undefined> | null | undefined;
823
- actionDetails?: {
824
- templateId?: string | undefined;
825
- isImmediateCorrection?: boolean | undefined;
826
- } | null | undefined;
827
799
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
828
800
  } | {
829
801
  type: "ARCHIVE";
@@ -854,8 +826,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
854
826
  street?: string | null | undefined;
855
827
  zipCode?: string | null | undefined;
856
828
  } | {
857
- firstname?: string | null | undefined;
858
- surname?: string | null | undefined;
829
+ firstname: string;
830
+ surname: string;
859
831
  middlename?: string | null | undefined;
860
832
  } | {
861
833
  country: string;
@@ -901,8 +873,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
901
873
  street?: string | null | undefined;
902
874
  zipCode?: string | null | undefined;
903
875
  } | {
904
- firstname?: string | null | undefined;
905
- surname?: string | null | undefined;
876
+ firstname: string;
877
+ surname: string;
906
878
  middlename?: string | null | undefined;
907
879
  } | {
908
880
  country: string;
@@ -930,10 +902,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
930
902
  start: string;
931
903
  end: string;
932
904
  } | null | undefined> | null | undefined;
933
- actionDetails?: {
934
- templateId?: string | undefined;
935
- isImmediateCorrection?: boolean | undefined;
936
- } | null | undefined;
937
905
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
938
906
  } | {
939
907
  type: "CREATE";
@@ -960,8 +928,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
960
928
  street?: string | null | undefined;
961
929
  zipCode?: string | null | undefined;
962
930
  } | {
963
- firstname?: string | null | undefined;
964
- surname?: string | null | undefined;
931
+ firstname: string;
932
+ surname: string;
965
933
  middlename?: string | null | undefined;
966
934
  } | {
967
935
  country: string;
@@ -1007,8 +975,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1007
975
  street?: string | null | undefined;
1008
976
  zipCode?: string | null | undefined;
1009
977
  } | {
1010
- firstname?: string | null | undefined;
1011
- surname?: string | null | undefined;
978
+ firstname: string;
979
+ surname: string;
1012
980
  middlename?: string | null | undefined;
1013
981
  } | {
1014
982
  country: string;
@@ -1036,10 +1004,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1036
1004
  start: string;
1037
1005
  end: string;
1038
1006
  } | null | undefined> | null | undefined;
1039
- actionDetails?: {
1040
- templateId?: string | undefined;
1041
- isImmediateCorrection?: boolean | undefined;
1042
- } | null | undefined;
1043
1007
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
1044
1008
  } | {
1045
1009
  type: "NOTIFY";
@@ -1066,8 +1030,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1066
1030
  street?: string | null | undefined;
1067
1031
  zipCode?: string | null | undefined;
1068
1032
  } | {
1069
- firstname?: string | null | undefined;
1070
- surname?: string | null | undefined;
1033
+ firstname: string;
1034
+ surname: string;
1071
1035
  middlename?: string | null | undefined;
1072
1036
  } | {
1073
1037
  country: string;
@@ -1113,8 +1077,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1113
1077
  street?: string | null | undefined;
1114
1078
  zipCode?: string | null | undefined;
1115
1079
  } | {
1116
- firstname?: string | null | undefined;
1117
- surname?: string | null | undefined;
1080
+ firstname: string;
1081
+ surname: string;
1118
1082
  middlename?: string | null | undefined;
1119
1083
  } | {
1120
1084
  country: string;
@@ -1142,10 +1106,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1142
1106
  start: string;
1143
1107
  end: string;
1144
1108
  } | null | undefined> | null | undefined;
1145
- actionDetails?: {
1146
- templateId?: string | undefined;
1147
- isImmediateCorrection?: boolean | undefined;
1148
- } | null | undefined;
1149
1109
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
1150
1110
  } | {
1151
1111
  type: "PRINT_CERTIFICATE";
@@ -1172,8 +1132,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1172
1132
  street?: string | null | undefined;
1173
1133
  zipCode?: string | null | undefined;
1174
1134
  } | {
1175
- firstname?: string | null | undefined;
1176
- surname?: string | null | undefined;
1135
+ firstname: string;
1136
+ surname: string;
1177
1137
  middlename?: string | null | undefined;
1178
1138
  } | {
1179
1139
  country: string;
@@ -1201,6 +1161,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1201
1161
  start: string;
1202
1162
  end: string;
1203
1163
  } | null | undefined>;
1164
+ content?: {
1165
+ templateId?: string | undefined;
1166
+ } | null | undefined;
1204
1167
  createdBySignature?: string | null | undefined;
1205
1168
  createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
1206
1169
  annotation?: Record<string, string | number | boolean | {
@@ -1219,8 +1182,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1219
1182
  street?: string | null | undefined;
1220
1183
  zipCode?: string | null | undefined;
1221
1184
  } | {
1222
- firstname?: string | null | undefined;
1223
- surname?: string | null | undefined;
1185
+ firstname: string;
1186
+ surname: string;
1224
1187
  middlename?: string | null | undefined;
1225
1188
  } | {
1226
1189
  country: string;
@@ -1248,10 +1211,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1248
1211
  start: string;
1249
1212
  end: string;
1250
1213
  } | null | undefined> | null | undefined;
1251
- actionDetails?: {
1252
- templateId?: string | undefined;
1253
- isImmediateCorrection?: boolean | undefined;
1254
- } | null | undefined;
1255
1214
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
1256
1215
  } | {
1257
1216
  type: "REQUEST_CORRECTION";
@@ -1278,8 +1237,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1278
1237
  street?: string | null | undefined;
1279
1238
  zipCode?: string | null | undefined;
1280
1239
  } | {
1281
- firstname?: string | null | undefined;
1282
- surname?: string | null | undefined;
1240
+ firstname: string;
1241
+ surname: string;
1283
1242
  middlename?: string | null | undefined;
1284
1243
  } | {
1285
1244
  country: string;
@@ -1325,8 +1284,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1325
1284
  street?: string | null | undefined;
1326
1285
  zipCode?: string | null | undefined;
1327
1286
  } | {
1328
- firstname?: string | null | undefined;
1329
- surname?: string | null | undefined;
1287
+ firstname: string;
1288
+ surname: string;
1330
1289
  middlename?: string | null | undefined;
1331
1290
  } | {
1332
1291
  country: string;
@@ -1354,10 +1313,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1354
1313
  start: string;
1355
1314
  end: string;
1356
1315
  } | null | undefined> | null | undefined;
1357
- actionDetails?: {
1358
- templateId?: string | undefined;
1359
- isImmediateCorrection?: boolean | undefined;
1360
- } | null | undefined;
1361
1316
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
1362
1317
  } | {
1363
1318
  type: "APPROVE_CORRECTION";
@@ -1384,8 +1339,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1384
1339
  street?: string | null | undefined;
1385
1340
  zipCode?: string | null | undefined;
1386
1341
  } | {
1387
- firstname?: string | null | undefined;
1388
- surname?: string | null | undefined;
1342
+ firstname: string;
1343
+ surname: string;
1389
1344
  middlename?: string | null | undefined;
1390
1345
  } | {
1391
1346
  country: string;
@@ -1432,8 +1387,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1432
1387
  street?: string | null | undefined;
1433
1388
  zipCode?: string | null | undefined;
1434
1389
  } | {
1435
- firstname?: string | null | undefined;
1436
- surname?: string | null | undefined;
1390
+ firstname: string;
1391
+ surname: string;
1437
1392
  middlename?: string | null | undefined;
1438
1393
  } | {
1439
1394
  country: string;
@@ -1461,15 +1416,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1461
1416
  start: string;
1462
1417
  end: string;
1463
1418
  } | null | undefined> | null | undefined;
1464
- actionDetails?: {
1465
- templateId?: string | undefined;
1466
- isImmediateCorrection?: boolean | undefined;
1467
- } | null | undefined;
1468
1419
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
1469
1420
  } | {
1470
1421
  type: "REJECT_CORRECTION";
1471
1422
  id: string & import("zod").BRAND<"UUID">;
1472
1423
  status: "Rejected" | "Requested" | "Accepted";
1424
+ reason: {
1425
+ message: string;
1426
+ isDuplicate?: boolean | undefined;
1427
+ };
1473
1428
  transactionId: string;
1474
1429
  createdByUserType: "system" | "user";
1475
1430
  createdAt: string;
@@ -1491,8 +1446,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1491
1446
  street?: string | null | undefined;
1492
1447
  zipCode?: string | null | undefined;
1493
1448
  } | {
1494
- firstname?: string | null | undefined;
1495
- surname?: string | null | undefined;
1449
+ firstname: string;
1450
+ surname: string;
1496
1451
  middlename?: string | null | undefined;
1497
1452
  } | {
1498
1453
  country: string;
@@ -1539,8 +1494,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1539
1494
  street?: string | null | undefined;
1540
1495
  zipCode?: string | null | undefined;
1541
1496
  } | {
1542
- firstname?: string | null | undefined;
1543
- surname?: string | null | undefined;
1497
+ firstname: string;
1498
+ surname: string;
1544
1499
  middlename?: string | null | undefined;
1545
1500
  } | {
1546
1501
  country: string;
@@ -1568,10 +1523,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1568
1523
  start: string;
1569
1524
  end: string;
1570
1525
  } | null | undefined> | null | undefined;
1571
- actionDetails?: {
1572
- templateId?: string | undefined;
1573
- isImmediateCorrection?: boolean | undefined;
1574
- } | null | undefined;
1575
1526
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
1576
1527
  } | {
1577
1528
  type: "READ";
@@ -1598,8 +1549,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1598
1549
  street?: string | null | undefined;
1599
1550
  zipCode?: string | null | undefined;
1600
1551
  } | {
1601
- firstname?: string | null | undefined;
1602
- surname?: string | null | undefined;
1552
+ firstname: string;
1553
+ surname: string;
1603
1554
  middlename?: string | null | undefined;
1604
1555
  } | {
1605
1556
  country: string;
@@ -1645,8 +1596,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1645
1596
  street?: string | null | undefined;
1646
1597
  zipCode?: string | null | undefined;
1647
1598
  } | {
1648
- firstname?: string | null | undefined;
1649
- surname?: string | null | undefined;
1599
+ firstname: string;
1600
+ surname: string;
1650
1601
  middlename?: string | null | undefined;
1651
1602
  } | {
1652
1603
  country: string;
@@ -1674,10 +1625,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1674
1625
  start: string;
1675
1626
  end: string;
1676
1627
  } | null | undefined> | null | undefined;
1677
- actionDetails?: {
1678
- templateId?: string | undefined;
1679
- isImmediateCorrection?: boolean | undefined;
1680
- } | null | undefined;
1681
1628
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
1682
1629
  } | {
1683
1630
  type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
@@ -1690,10 +1637,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1690
1637
  createdByRole: string;
1691
1638
  createdBySignature?: string | null | undefined;
1692
1639
  createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
1693
- actionDetails?: {
1694
- templateId?: string | undefined;
1695
- isImmediateCorrection?: boolean | undefined;
1696
- } | null | undefined;
1697
1640
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
1698
1641
  })[];
1699
1642
  trackingId: string;
@@ -1732,8 +1675,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1732
1675
  street?: string | null | undefined;
1733
1676
  zipCode?: string | null | undefined;
1734
1677
  } | {
1735
- firstname?: string | null | undefined;
1736
- surname?: string | null | undefined;
1678
+ firstname: string;
1679
+ surname: string;
1737
1680
  middlename?: string | null | undefined;
1738
1681
  } | {
1739
1682
  country: string;
@@ -1780,8 +1723,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1780
1723
  street?: string | null | undefined;
1781
1724
  zipCode?: string | null | undefined;
1782
1725
  } | {
1783
- firstname?: string | null | undefined;
1784
- surname?: string | null | undefined;
1726
+ firstname: string;
1727
+ surname: string;
1785
1728
  middlename?: string | null | undefined;
1786
1729
  } | {
1787
1730
  country: string;
@@ -1809,10 +1752,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1809
1752
  start: string;
1810
1753
  end: string;
1811
1754
  } | null | undefined> | null | undefined;
1812
- actionDetails?: {
1813
- templateId?: string | undefined;
1814
- isImmediateCorrection?: boolean | undefined;
1815
- } | null | undefined;
1816
1755
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
1817
1756
  } | {
1818
1757
  type: "UNASSIGN";
@@ -1839,8 +1778,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1839
1778
  street?: string | null | undefined;
1840
1779
  zipCode?: string | null | undefined;
1841
1780
  } | {
1842
- firstname?: string | null | undefined;
1843
- surname?: string | null | undefined;
1781
+ firstname: string;
1782
+ surname: string;
1844
1783
  middlename?: string | null | undefined;
1845
1784
  } | {
1846
1785
  country: string;
@@ -1886,8 +1825,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1886
1825
  street?: string | null | undefined;
1887
1826
  zipCode?: string | null | undefined;
1888
1827
  } | {
1889
- firstname?: string | null | undefined;
1890
- surname?: string | null | undefined;
1828
+ firstname: string;
1829
+ surname: string;
1891
1830
  middlename?: string | null | undefined;
1892
1831
  } | {
1893
1832
  country: string;
@@ -1915,10 +1854,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1915
1854
  start: string;
1916
1855
  end: string;
1917
1856
  } | null | undefined> | null | undefined;
1918
- actionDetails?: {
1919
- templateId?: string | undefined;
1920
- isImmediateCorrection?: boolean | undefined;
1921
- } | null | undefined;
1922
1857
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
1923
1858
  } | {
1924
1859
  type: "REGISTER";
@@ -1945,8 +1880,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1945
1880
  street?: string | null | undefined;
1946
1881
  zipCode?: string | null | undefined;
1947
1882
  } | {
1948
- firstname?: string | null | undefined;
1949
- surname?: string | null | undefined;
1883
+ firstname: string;
1884
+ surname: string;
1950
1885
  middlename?: string | null | undefined;
1951
1886
  } | {
1952
1887
  country: string;
@@ -1992,8 +1927,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1992
1927
  street?: string | null | undefined;
1993
1928
  zipCode?: string | null | undefined;
1994
1929
  } | {
1995
- firstname?: string | null | undefined;
1996
- surname?: string | null | undefined;
1930
+ firstname: string;
1931
+ surname: string;
1997
1932
  middlename?: string | null | undefined;
1998
1933
  } | {
1999
1934
  country: string;
@@ -2021,10 +1956,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2021
1956
  start: string;
2022
1957
  end: string;
2023
1958
  } | null | undefined> | null | undefined;
2024
- actionDetails?: {
2025
- templateId?: string | undefined;
2026
- isImmediateCorrection?: boolean | undefined;
2027
- } | null | undefined;
2028
1959
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
2029
1960
  registrationNumber?: string | undefined;
2030
1961
  } | {
@@ -2052,8 +1983,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2052
1983
  street?: string | null | undefined;
2053
1984
  zipCode?: string | null | undefined;
2054
1985
  } | {
2055
- firstname?: string | null | undefined;
2056
- surname?: string | null | undefined;
1986
+ firstname: string;
1987
+ surname: string;
2057
1988
  middlename?: string | null | undefined;
2058
1989
  } | {
2059
1990
  country: string;
@@ -2099,8 +2030,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2099
2030
  street?: string | null | undefined;
2100
2031
  zipCode?: string | null | undefined;
2101
2032
  } | {
2102
- firstname?: string | null | undefined;
2103
- surname?: string | null | undefined;
2033
+ firstname: string;
2034
+ surname: string;
2104
2035
  middlename?: string | null | undefined;
2105
2036
  } | {
2106
2037
  country: string;
@@ -2128,10 +2059,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2128
2059
  start: string;
2129
2060
  end: string;
2130
2061
  } | null | undefined> | null | undefined;
2131
- actionDetails?: {
2132
- templateId?: string | undefined;
2133
- isImmediateCorrection?: boolean | undefined;
2134
- } | null | undefined;
2135
2062
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
2136
2063
  } | {
2137
2064
  type: "VALIDATE";
@@ -2158,8 +2085,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2158
2085
  street?: string | null | undefined;
2159
2086
  zipCode?: string | null | undefined;
2160
2087
  } | {
2161
- firstname?: string | null | undefined;
2162
- surname?: string | null | undefined;
2088
+ firstname: string;
2089
+ surname: string;
2163
2090
  middlename?: string | null | undefined;
2164
2091
  } | {
2165
2092
  country: string;
@@ -2205,8 +2132,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2205
2132
  street?: string | null | undefined;
2206
2133
  zipCode?: string | null | undefined;
2207
2134
  } | {
2208
- firstname?: string | null | undefined;
2209
- surname?: string | null | undefined;
2135
+ firstname: string;
2136
+ surname: string;
2210
2137
  middlename?: string | null | undefined;
2211
2138
  } | {
2212
2139
  country: string;
@@ -2234,10 +2161,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2234
2161
  start: string;
2235
2162
  end: string;
2236
2163
  } | null | undefined> | null | undefined;
2237
- actionDetails?: {
2238
- templateId?: string | undefined;
2239
- isImmediateCorrection?: boolean | undefined;
2240
- } | null | undefined;
2241
2164
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
2242
2165
  } | {
2243
2166
  type: "REJECT";
@@ -2268,8 +2191,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2268
2191
  street?: string | null | undefined;
2269
2192
  zipCode?: string | null | undefined;
2270
2193
  } | {
2271
- firstname?: string | null | undefined;
2272
- surname?: string | null | undefined;
2194
+ firstname: string;
2195
+ surname: string;
2273
2196
  middlename?: string | null | undefined;
2274
2197
  } | {
2275
2198
  country: string;
@@ -2315,8 +2238,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2315
2238
  street?: string | null | undefined;
2316
2239
  zipCode?: string | null | undefined;
2317
2240
  } | {
2318
- firstname?: string | null | undefined;
2319
- surname?: string | null | undefined;
2241
+ firstname: string;
2242
+ surname: string;
2320
2243
  middlename?: string | null | undefined;
2321
2244
  } | {
2322
2245
  country: string;
@@ -2344,10 +2267,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2344
2267
  start: string;
2345
2268
  end: string;
2346
2269
  } | null | undefined> | null | undefined;
2347
- actionDetails?: {
2348
- templateId?: string | undefined;
2349
- isImmediateCorrection?: boolean | undefined;
2350
- } | null | undefined;
2351
2270
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
2352
2271
  } | {
2353
2272
  type: "MARKED_AS_DUPLICATE";
@@ -2374,8 +2293,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2374
2293
  street?: string | null | undefined;
2375
2294
  zipCode?: string | null | undefined;
2376
2295
  } | {
2377
- firstname?: string | null | undefined;
2378
- surname?: string | null | undefined;
2296
+ firstname: string;
2297
+ surname: string;
2379
2298
  middlename?: string | null | undefined;
2380
2299
  } | {
2381
2300
  country: string;
@@ -2421,8 +2340,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2421
2340
  street?: string | null | undefined;
2422
2341
  zipCode?: string | null | undefined;
2423
2342
  } | {
2424
- firstname?: string | null | undefined;
2425
- surname?: string | null | undefined;
2343
+ firstname: string;
2344
+ surname: string;
2426
2345
  middlename?: string | null | undefined;
2427
2346
  } | {
2428
2347
  country: string;
@@ -2450,10 +2369,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2450
2369
  start: string;
2451
2370
  end: string;
2452
2371
  } | null | undefined> | null | undefined;
2453
- actionDetails?: {
2454
- templateId?: string | undefined;
2455
- isImmediateCorrection?: boolean | undefined;
2456
- } | null | undefined;
2457
2372
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
2458
2373
  } | {
2459
2374
  type: "ARCHIVE";
@@ -2484,8 +2399,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2484
2399
  street?: string | null | undefined;
2485
2400
  zipCode?: string | null | undefined;
2486
2401
  } | {
2487
- firstname?: string | null | undefined;
2488
- surname?: string | null | undefined;
2402
+ firstname: string;
2403
+ surname: string;
2489
2404
  middlename?: string | null | undefined;
2490
2405
  } | {
2491
2406
  country: string;
@@ -2531,8 +2446,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2531
2446
  street?: string | null | undefined;
2532
2447
  zipCode?: string | null | undefined;
2533
2448
  } | {
2534
- firstname?: string | null | undefined;
2535
- surname?: string | null | undefined;
2449
+ firstname: string;
2450
+ surname: string;
2536
2451
  middlename?: string | null | undefined;
2537
2452
  } | {
2538
2453
  country: string;
@@ -2560,10 +2475,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2560
2475
  start: string;
2561
2476
  end: string;
2562
2477
  } | null | undefined> | null | undefined;
2563
- actionDetails?: {
2564
- templateId?: string | undefined;
2565
- isImmediateCorrection?: boolean | undefined;
2566
- } | null | undefined;
2567
2478
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
2568
2479
  } | {
2569
2480
  type: "CREATE";
@@ -2590,8 +2501,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2590
2501
  street?: string | null | undefined;
2591
2502
  zipCode?: string | null | undefined;
2592
2503
  } | {
2593
- firstname?: string | null | undefined;
2594
- surname?: string | null | undefined;
2504
+ firstname: string;
2505
+ surname: string;
2595
2506
  middlename?: string | null | undefined;
2596
2507
  } | {
2597
2508
  country: string;
@@ -2637,8 +2548,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2637
2548
  street?: string | null | undefined;
2638
2549
  zipCode?: string | null | undefined;
2639
2550
  } | {
2640
- firstname?: string | null | undefined;
2641
- surname?: string | null | undefined;
2551
+ firstname: string;
2552
+ surname: string;
2642
2553
  middlename?: string | null | undefined;
2643
2554
  } | {
2644
2555
  country: string;
@@ -2666,10 +2577,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2666
2577
  start: string;
2667
2578
  end: string;
2668
2579
  } | null | undefined> | null | undefined;
2669
- actionDetails?: {
2670
- templateId?: string | undefined;
2671
- isImmediateCorrection?: boolean | undefined;
2672
- } | null | undefined;
2673
2580
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
2674
2581
  } | {
2675
2582
  type: "NOTIFY";
@@ -2696,8 +2603,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2696
2603
  street?: string | null | undefined;
2697
2604
  zipCode?: string | null | undefined;
2698
2605
  } | {
2699
- firstname?: string | null | undefined;
2700
- surname?: string | null | undefined;
2606
+ firstname: string;
2607
+ surname: string;
2701
2608
  middlename?: string | null | undefined;
2702
2609
  } | {
2703
2610
  country: string;
@@ -2743,8 +2650,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2743
2650
  street?: string | null | undefined;
2744
2651
  zipCode?: string | null | undefined;
2745
2652
  } | {
2746
- firstname?: string | null | undefined;
2747
- surname?: string | null | undefined;
2653
+ firstname: string;
2654
+ surname: string;
2748
2655
  middlename?: string | null | undefined;
2749
2656
  } | {
2750
2657
  country: string;
@@ -2772,10 +2679,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2772
2679
  start: string;
2773
2680
  end: string;
2774
2681
  } | null | undefined> | null | undefined;
2775
- actionDetails?: {
2776
- templateId?: string | undefined;
2777
- isImmediateCorrection?: boolean | undefined;
2778
- } | null | undefined;
2779
2682
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
2780
2683
  } | {
2781
2684
  type: "PRINT_CERTIFICATE";
@@ -2802,8 +2705,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2802
2705
  street?: string | null | undefined;
2803
2706
  zipCode?: string | null | undefined;
2804
2707
  } | {
2805
- firstname?: string | null | undefined;
2806
- surname?: string | null | undefined;
2708
+ firstname: string;
2709
+ surname: string;
2807
2710
  middlename?: string | null | undefined;
2808
2711
  } | {
2809
2712
  country: string;
@@ -2831,6 +2734,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2831
2734
  start: string;
2832
2735
  end: string;
2833
2736
  } | null | undefined>;
2737
+ content?: {
2738
+ templateId?: string | undefined;
2739
+ } | null | undefined;
2834
2740
  createdBySignature?: string | null | undefined;
2835
2741
  createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
2836
2742
  annotation?: Record<string, string | number | boolean | {
@@ -2849,8 +2755,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2849
2755
  street?: string | null | undefined;
2850
2756
  zipCode?: string | null | undefined;
2851
2757
  } | {
2852
- firstname?: string | null | undefined;
2853
- surname?: string | null | undefined;
2758
+ firstname: string;
2759
+ surname: string;
2854
2760
  middlename?: string | null | undefined;
2855
2761
  } | {
2856
2762
  country: string;
@@ -2878,10 +2784,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2878
2784
  start: string;
2879
2785
  end: string;
2880
2786
  } | null | undefined> | null | undefined;
2881
- actionDetails?: {
2882
- templateId?: string | undefined;
2883
- isImmediateCorrection?: boolean | undefined;
2884
- } | null | undefined;
2885
2787
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
2886
2788
  } | {
2887
2789
  type: "REQUEST_CORRECTION";
@@ -2908,8 +2810,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2908
2810
  street?: string | null | undefined;
2909
2811
  zipCode?: string | null | undefined;
2910
2812
  } | {
2911
- firstname?: string | null | undefined;
2912
- surname?: string | null | undefined;
2813
+ firstname: string;
2814
+ surname: string;
2913
2815
  middlename?: string | null | undefined;
2914
2816
  } | {
2915
2817
  country: string;
@@ -2955,8 +2857,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2955
2857
  street?: string | null | undefined;
2956
2858
  zipCode?: string | null | undefined;
2957
2859
  } | {
2958
- firstname?: string | null | undefined;
2959
- surname?: string | null | undefined;
2860
+ firstname: string;
2861
+ surname: string;
2960
2862
  middlename?: string | null | undefined;
2961
2863
  } | {
2962
2864
  country: string;
@@ -2984,10 +2886,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2984
2886
  start: string;
2985
2887
  end: string;
2986
2888
  } | null | undefined> | null | undefined;
2987
- actionDetails?: {
2988
- templateId?: string | undefined;
2989
- isImmediateCorrection?: boolean | undefined;
2990
- } | null | undefined;
2991
2889
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
2992
2890
  } | {
2993
2891
  type: "APPROVE_CORRECTION";
@@ -3014,8 +2912,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3014
2912
  street?: string | null | undefined;
3015
2913
  zipCode?: string | null | undefined;
3016
2914
  } | {
3017
- firstname?: string | null | undefined;
3018
- surname?: string | null | undefined;
2915
+ firstname: string;
2916
+ surname: string;
3019
2917
  middlename?: string | null | undefined;
3020
2918
  } | {
3021
2919
  country: string;
@@ -3062,8 +2960,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3062
2960
  street?: string | null | undefined;
3063
2961
  zipCode?: string | null | undefined;
3064
2962
  } | {
3065
- firstname?: string | null | undefined;
3066
- surname?: string | null | undefined;
2963
+ firstname: string;
2964
+ surname: string;
3067
2965
  middlename?: string | null | undefined;
3068
2966
  } | {
3069
2967
  country: string;
@@ -3091,15 +2989,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3091
2989
  start: string;
3092
2990
  end: string;
3093
2991
  } | null | undefined> | null | undefined;
3094
- actionDetails?: {
3095
- templateId?: string | undefined;
3096
- isImmediateCorrection?: boolean | undefined;
3097
- } | null | undefined;
3098
2992
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
3099
2993
  } | {
3100
2994
  type: "REJECT_CORRECTION";
3101
2995
  id: string & import("zod").BRAND<"UUID">;
3102
2996
  status: "Rejected" | "Requested" | "Accepted";
2997
+ reason: {
2998
+ message: string;
2999
+ isDuplicate?: boolean | undefined;
3000
+ };
3103
3001
  transactionId: string;
3104
3002
  createdByUserType: "system" | "user";
3105
3003
  createdAt: string;
@@ -3121,8 +3019,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3121
3019
  street?: string | null | undefined;
3122
3020
  zipCode?: string | null | undefined;
3123
3021
  } | {
3124
- firstname?: string | null | undefined;
3125
- surname?: string | null | undefined;
3022
+ firstname: string;
3023
+ surname: string;
3126
3024
  middlename?: string | null | undefined;
3127
3025
  } | {
3128
3026
  country: string;
@@ -3169,8 +3067,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3169
3067
  street?: string | null | undefined;
3170
3068
  zipCode?: string | null | undefined;
3171
3069
  } | {
3172
- firstname?: string | null | undefined;
3173
- surname?: string | null | undefined;
3070
+ firstname: string;
3071
+ surname: string;
3174
3072
  middlename?: string | null | undefined;
3175
3073
  } | {
3176
3074
  country: string;
@@ -3198,10 +3096,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3198
3096
  start: string;
3199
3097
  end: string;
3200
3098
  } | null | undefined> | null | undefined;
3201
- actionDetails?: {
3202
- templateId?: string | undefined;
3203
- isImmediateCorrection?: boolean | undefined;
3204
- } | null | undefined;
3205
3099
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
3206
3100
  } | {
3207
3101
  type: "READ";
@@ -3228,8 +3122,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3228
3122
  street?: string | null | undefined;
3229
3123
  zipCode?: string | null | undefined;
3230
3124
  } | {
3231
- firstname?: string | null | undefined;
3232
- surname?: string | null | undefined;
3125
+ firstname: string;
3126
+ surname: string;
3233
3127
  middlename?: string | null | undefined;
3234
3128
  } | {
3235
3129
  country: string;
@@ -3275,8 +3169,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3275
3169
  street?: string | null | undefined;
3276
3170
  zipCode?: string | null | undefined;
3277
3171
  } | {
3278
- firstname?: string | null | undefined;
3279
- surname?: string | null | undefined;
3172
+ firstname: string;
3173
+ surname: string;
3280
3174
  middlename?: string | null | undefined;
3281
3175
  } | {
3282
3176
  country: string;
@@ -3304,10 +3198,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3304
3198
  start: string;
3305
3199
  end: string;
3306
3200
  } | null | undefined> | null | undefined;
3307
- actionDetails?: {
3308
- templateId?: string | undefined;
3309
- isImmediateCorrection?: boolean | undefined;
3310
- } | null | undefined;
3311
3201
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
3312
3202
  } | {
3313
3203
  type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
@@ -3320,10 +3210,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3320
3210
  createdByRole: string;
3321
3211
  createdBySignature?: string | null | undefined;
3322
3212
  createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
3323
- actionDetails?: {
3324
- templateId?: string | undefined;
3325
- isImmediateCorrection?: boolean | undefined;
3326
- } | null | undefined;
3327
3213
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
3328
3214
  })[];
3329
3215
  trackingId: string;
@@ -3391,8 +3277,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3391
3277
  street?: string | null | undefined;
3392
3278
  zipCode?: string | null | undefined;
3393
3279
  } | {
3394
- firstname?: string | null | undefined;
3395
- surname?: string | null | undefined;
3280
+ firstname: string;
3281
+ surname: string;
3396
3282
  middlename?: string | null | undefined;
3397
3283
  } | {
3398
3284
  country: string;
@@ -3438,8 +3324,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3438
3324
  street?: string | null | undefined;
3439
3325
  zipCode?: string | null | undefined;
3440
3326
  } | {
3441
- firstname?: string | null | undefined;
3442
- surname?: string | null | undefined;
3327
+ firstname: string;
3328
+ surname: string;
3443
3329
  middlename?: string | null | undefined;
3444
3330
  } | {
3445
3331
  country: string;
@@ -3467,10 +3353,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3467
3353
  start: string;
3468
3354
  end: string;
3469
3355
  } | null | undefined> | null | undefined;
3470
- actionDetails?: {
3471
- templateId?: string | undefined;
3472
- isImmediateCorrection?: boolean | undefined;
3473
- } | null | undefined;
3474
3356
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
3475
3357
  };
3476
3358
  }[];
@@ -3498,8 +3380,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3498
3380
  street?: string | null | undefined;
3499
3381
  zipCode?: string | null | undefined;
3500
3382
  } | {
3501
- firstname?: string | null | undefined;
3502
- surname?: string | null | undefined;
3383
+ firstname: string;
3384
+ surname: string;
3503
3385
  middlename?: string | null | undefined;
3504
3386
  } | {
3505
3387
  country: string;
@@ -3543,8 +3425,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3543
3425
  street?: string | null | undefined;
3544
3426
  zipCode?: string | null | undefined;
3545
3427
  } | {
3546
- firstname?: string | null | undefined;
3547
- surname?: string | null | undefined;
3428
+ firstname: string;
3429
+ surname: string;
3548
3430
  middlename?: string | null | undefined;
3549
3431
  } | {
3550
3432
  country: string;
@@ -3572,10 +3454,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3572
3454
  start: string;
3573
3455
  end: string;
3574
3456
  } | null | undefined> | undefined;
3575
- actionDetails?: {
3576
- templateId?: string | undefined;
3577
- isImmediateCorrection?: boolean | undefined;
3578
- } | undefined;
3579
3457
  originalActionId?: string | undefined;
3580
3458
  keepAssignment?: boolean | undefined;
3581
3459
  };
@@ -3608,8 +3486,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3608
3486
  street?: string | null | undefined;
3609
3487
  zipCode?: string | null | undefined;
3610
3488
  } | {
3611
- firstname?: string | null | undefined;
3612
- surname?: string | null | undefined;
3489
+ firstname: string;
3490
+ surname: string;
3613
3491
  middlename?: string | null | undefined;
3614
3492
  } | {
3615
3493
  country: string;
@@ -3655,8 +3533,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3655
3533
  street?: string | null | undefined;
3656
3534
  zipCode?: string | null | undefined;
3657
3535
  } | {
3658
- firstname?: string | null | undefined;
3659
- surname?: string | null | undefined;
3536
+ firstname: string;
3537
+ surname: string;
3660
3538
  middlename?: string | null | undefined;
3661
3539
  } | {
3662
3540
  country: string;
@@ -3684,10 +3562,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3684
3562
  start: string;
3685
3563
  end: string;
3686
3564
  } | null | undefined> | null | undefined;
3687
- actionDetails?: {
3688
- templateId?: string | undefined;
3689
- isImmediateCorrection?: boolean | undefined;
3690
- } | null | undefined;
3691
3565
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
3692
3566
  };
3693
3567
  };
@@ -4059,8 +3933,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4059
3933
  street?: string | null | undefined;
4060
3934
  zipCode?: string | null | undefined;
4061
3935
  } | {
4062
- firstname?: string | null | undefined;
4063
- surname?: string | null | undefined;
3936
+ firstname: string;
3937
+ surname: string;
4064
3938
  middlename?: string | null | undefined;
4065
3939
  } | {
4066
3940
  country: string;
@@ -4104,8 +3978,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4104
3978
  street?: string | null | undefined;
4105
3979
  zipCode?: string | null | undefined;
4106
3980
  } | {
4107
- firstname?: string | null | undefined;
4108
- surname?: string | null | undefined;
3981
+ firstname: string;
3982
+ surname: string;
4109
3983
  middlename?: string | null | undefined;
4110
3984
  } | {
4111
3985
  country: string;
@@ -4133,10 +4007,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4133
4007
  start: string;
4134
4008
  end: string;
4135
4009
  } | null | undefined> | undefined;
4136
- actionDetails?: {
4137
- templateId?: string | undefined;
4138
- isImmediateCorrection?: boolean | undefined;
4139
- } | undefined;
4140
4010
  originalActionId?: string | undefined;
4141
4011
  keepAssignment?: boolean | undefined;
4142
4012
  };
@@ -4170,8 +4040,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4170
4040
  street?: string | null | undefined;
4171
4041
  zipCode?: string | null | undefined;
4172
4042
  } | {
4173
- firstname?: string | null | undefined;
4174
- surname?: string | null | undefined;
4043
+ firstname: string;
4044
+ surname: string;
4175
4045
  middlename?: string | null | undefined;
4176
4046
  } | {
4177
4047
  country: string;
@@ -4218,8 +4088,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4218
4088
  street?: string | null | undefined;
4219
4089
  zipCode?: string | null | undefined;
4220
4090
  } | {
4221
- firstname?: string | null | undefined;
4222
- surname?: string | null | undefined;
4091
+ firstname: string;
4092
+ surname: string;
4223
4093
  middlename?: string | null | undefined;
4224
4094
  } | {
4225
4095
  country: string;
@@ -4247,10 +4117,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4247
4117
  start: string;
4248
4118
  end: string;
4249
4119
  } | null | undefined> | null | undefined;
4250
- actionDetails?: {
4251
- templateId?: string | undefined;
4252
- isImmediateCorrection?: boolean | undefined;
4253
- } | null | undefined;
4254
4120
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
4255
4121
  } | {
4256
4122
  type: "UNASSIGN";
@@ -4277,8 +4143,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4277
4143
  street?: string | null | undefined;
4278
4144
  zipCode?: string | null | undefined;
4279
4145
  } | {
4280
- firstname?: string | null | undefined;
4281
- surname?: string | null | undefined;
4146
+ firstname: string;
4147
+ surname: string;
4282
4148
  middlename?: string | null | undefined;
4283
4149
  } | {
4284
4150
  country: string;
@@ -4324,8 +4190,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4324
4190
  street?: string | null | undefined;
4325
4191
  zipCode?: string | null | undefined;
4326
4192
  } | {
4327
- firstname?: string | null | undefined;
4328
- surname?: string | null | undefined;
4193
+ firstname: string;
4194
+ surname: string;
4329
4195
  middlename?: string | null | undefined;
4330
4196
  } | {
4331
4197
  country: string;
@@ -4353,10 +4219,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4353
4219
  start: string;
4354
4220
  end: string;
4355
4221
  } | null | undefined> | null | undefined;
4356
- actionDetails?: {
4357
- templateId?: string | undefined;
4358
- isImmediateCorrection?: boolean | undefined;
4359
- } | null | undefined;
4360
4222
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
4361
4223
  } | {
4362
4224
  type: "REGISTER";
@@ -4383,8 +4245,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4383
4245
  street?: string | null | undefined;
4384
4246
  zipCode?: string | null | undefined;
4385
4247
  } | {
4386
- firstname?: string | null | undefined;
4387
- surname?: string | null | undefined;
4248
+ firstname: string;
4249
+ surname: string;
4388
4250
  middlename?: string | null | undefined;
4389
4251
  } | {
4390
4252
  country: string;
@@ -4430,8 +4292,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4430
4292
  street?: string | null | undefined;
4431
4293
  zipCode?: string | null | undefined;
4432
4294
  } | {
4433
- firstname?: string | null | undefined;
4434
- surname?: string | null | undefined;
4295
+ firstname: string;
4296
+ surname: string;
4435
4297
  middlename?: string | null | undefined;
4436
4298
  } | {
4437
4299
  country: string;
@@ -4459,10 +4321,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4459
4321
  start: string;
4460
4322
  end: string;
4461
4323
  } | null | undefined> | null | undefined;
4462
- actionDetails?: {
4463
- templateId?: string | undefined;
4464
- isImmediateCorrection?: boolean | undefined;
4465
- } | null | undefined;
4466
4324
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
4467
4325
  registrationNumber?: string | undefined;
4468
4326
  } | {
@@ -4490,8 +4348,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4490
4348
  street?: string | null | undefined;
4491
4349
  zipCode?: string | null | undefined;
4492
4350
  } | {
4493
- firstname?: string | null | undefined;
4494
- surname?: string | null | undefined;
4351
+ firstname: string;
4352
+ surname: string;
4495
4353
  middlename?: string | null | undefined;
4496
4354
  } | {
4497
4355
  country: string;
@@ -4537,8 +4395,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4537
4395
  street?: string | null | undefined;
4538
4396
  zipCode?: string | null | undefined;
4539
4397
  } | {
4540
- firstname?: string | null | undefined;
4541
- surname?: string | null | undefined;
4398
+ firstname: string;
4399
+ surname: string;
4542
4400
  middlename?: string | null | undefined;
4543
4401
  } | {
4544
4402
  country: string;
@@ -4566,10 +4424,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4566
4424
  start: string;
4567
4425
  end: string;
4568
4426
  } | null | undefined> | null | undefined;
4569
- actionDetails?: {
4570
- templateId?: string | undefined;
4571
- isImmediateCorrection?: boolean | undefined;
4572
- } | null | undefined;
4573
4427
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
4574
4428
  } | {
4575
4429
  type: "VALIDATE";
@@ -4596,8 +4450,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4596
4450
  street?: string | null | undefined;
4597
4451
  zipCode?: string | null | undefined;
4598
4452
  } | {
4599
- firstname?: string | null | undefined;
4600
- surname?: string | null | undefined;
4453
+ firstname: string;
4454
+ surname: string;
4601
4455
  middlename?: string | null | undefined;
4602
4456
  } | {
4603
4457
  country: string;
@@ -4643,8 +4497,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4643
4497
  street?: string | null | undefined;
4644
4498
  zipCode?: string | null | undefined;
4645
4499
  } | {
4646
- firstname?: string | null | undefined;
4647
- surname?: string | null | undefined;
4500
+ firstname: string;
4501
+ surname: string;
4648
4502
  middlename?: string | null | undefined;
4649
4503
  } | {
4650
4504
  country: string;
@@ -4672,10 +4526,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4672
4526
  start: string;
4673
4527
  end: string;
4674
4528
  } | null | undefined> | null | undefined;
4675
- actionDetails?: {
4676
- templateId?: string | undefined;
4677
- isImmediateCorrection?: boolean | undefined;
4678
- } | null | undefined;
4679
4529
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
4680
4530
  } | {
4681
4531
  type: "REJECT";
@@ -4706,8 +4556,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4706
4556
  street?: string | null | undefined;
4707
4557
  zipCode?: string | null | undefined;
4708
4558
  } | {
4709
- firstname?: string | null | undefined;
4710
- surname?: string | null | undefined;
4559
+ firstname: string;
4560
+ surname: string;
4711
4561
  middlename?: string | null | undefined;
4712
4562
  } | {
4713
4563
  country: string;
@@ -4753,8 +4603,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4753
4603
  street?: string | null | undefined;
4754
4604
  zipCode?: string | null | undefined;
4755
4605
  } | {
4756
- firstname?: string | null | undefined;
4757
- surname?: string | null | undefined;
4606
+ firstname: string;
4607
+ surname: string;
4758
4608
  middlename?: string | null | undefined;
4759
4609
  } | {
4760
4610
  country: string;
@@ -4782,10 +4632,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4782
4632
  start: string;
4783
4633
  end: string;
4784
4634
  } | null | undefined> | null | undefined;
4785
- actionDetails?: {
4786
- templateId?: string | undefined;
4787
- isImmediateCorrection?: boolean | undefined;
4788
- } | null | undefined;
4789
4635
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
4790
4636
  } | {
4791
4637
  type: "MARKED_AS_DUPLICATE";
@@ -4812,8 +4658,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4812
4658
  street?: string | null | undefined;
4813
4659
  zipCode?: string | null | undefined;
4814
4660
  } | {
4815
- firstname?: string | null | undefined;
4816
- surname?: string | null | undefined;
4661
+ firstname: string;
4662
+ surname: string;
4817
4663
  middlename?: string | null | undefined;
4818
4664
  } | {
4819
4665
  country: string;
@@ -4859,8 +4705,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4859
4705
  street?: string | null | undefined;
4860
4706
  zipCode?: string | null | undefined;
4861
4707
  } | {
4862
- firstname?: string | null | undefined;
4863
- surname?: string | null | undefined;
4708
+ firstname: string;
4709
+ surname: string;
4864
4710
  middlename?: string | null | undefined;
4865
4711
  } | {
4866
4712
  country: string;
@@ -4888,10 +4734,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4888
4734
  start: string;
4889
4735
  end: string;
4890
4736
  } | null | undefined> | null | undefined;
4891
- actionDetails?: {
4892
- templateId?: string | undefined;
4893
- isImmediateCorrection?: boolean | undefined;
4894
- } | null | undefined;
4895
4737
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
4896
4738
  } | {
4897
4739
  type: "ARCHIVE";
@@ -4922,8 +4764,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4922
4764
  street?: string | null | undefined;
4923
4765
  zipCode?: string | null | undefined;
4924
4766
  } | {
4925
- firstname?: string | null | undefined;
4926
- surname?: string | null | undefined;
4767
+ firstname: string;
4768
+ surname: string;
4927
4769
  middlename?: string | null | undefined;
4928
4770
  } | {
4929
4771
  country: string;
@@ -4969,8 +4811,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4969
4811
  street?: string | null | undefined;
4970
4812
  zipCode?: string | null | undefined;
4971
4813
  } | {
4972
- firstname?: string | null | undefined;
4973
- surname?: string | null | undefined;
4814
+ firstname: string;
4815
+ surname: string;
4974
4816
  middlename?: string | null | undefined;
4975
4817
  } | {
4976
4818
  country: string;
@@ -4998,10 +4840,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4998
4840
  start: string;
4999
4841
  end: string;
5000
4842
  } | null | undefined> | null | undefined;
5001
- actionDetails?: {
5002
- templateId?: string | undefined;
5003
- isImmediateCorrection?: boolean | undefined;
5004
- } | null | undefined;
5005
4843
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
5006
4844
  } | {
5007
4845
  type: "CREATE";
@@ -5028,8 +4866,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5028
4866
  street?: string | null | undefined;
5029
4867
  zipCode?: string | null | undefined;
5030
4868
  } | {
5031
- firstname?: string | null | undefined;
5032
- surname?: string | null | undefined;
4869
+ firstname: string;
4870
+ surname: string;
5033
4871
  middlename?: string | null | undefined;
5034
4872
  } | {
5035
4873
  country: string;
@@ -5075,8 +4913,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5075
4913
  street?: string | null | undefined;
5076
4914
  zipCode?: string | null | undefined;
5077
4915
  } | {
5078
- firstname?: string | null | undefined;
5079
- surname?: string | null | undefined;
4916
+ firstname: string;
4917
+ surname: string;
5080
4918
  middlename?: string | null | undefined;
5081
4919
  } | {
5082
4920
  country: string;
@@ -5104,10 +4942,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5104
4942
  start: string;
5105
4943
  end: string;
5106
4944
  } | null | undefined> | null | undefined;
5107
- actionDetails?: {
5108
- templateId?: string | undefined;
5109
- isImmediateCorrection?: boolean | undefined;
5110
- } | null | undefined;
5111
4945
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
5112
4946
  } | {
5113
4947
  type: "NOTIFY";
@@ -5134,8 +4968,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5134
4968
  street?: string | null | undefined;
5135
4969
  zipCode?: string | null | undefined;
5136
4970
  } | {
5137
- firstname?: string | null | undefined;
5138
- surname?: string | null | undefined;
4971
+ firstname: string;
4972
+ surname: string;
5139
4973
  middlename?: string | null | undefined;
5140
4974
  } | {
5141
4975
  country: string;
@@ -5181,8 +5015,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5181
5015
  street?: string | null | undefined;
5182
5016
  zipCode?: string | null | undefined;
5183
5017
  } | {
5184
- firstname?: string | null | undefined;
5185
- surname?: string | null | undefined;
5018
+ firstname: string;
5019
+ surname: string;
5186
5020
  middlename?: string | null | undefined;
5187
5021
  } | {
5188
5022
  country: string;
@@ -5210,10 +5044,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5210
5044
  start: string;
5211
5045
  end: string;
5212
5046
  } | null | undefined> | null | undefined;
5213
- actionDetails?: {
5214
- templateId?: string | undefined;
5215
- isImmediateCorrection?: boolean | undefined;
5216
- } | null | undefined;
5217
5047
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
5218
5048
  } | {
5219
5049
  type: "PRINT_CERTIFICATE";
@@ -5240,8 +5070,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5240
5070
  street?: string | null | undefined;
5241
5071
  zipCode?: string | null | undefined;
5242
5072
  } | {
5243
- firstname?: string | null | undefined;
5244
- surname?: string | null | undefined;
5073
+ firstname: string;
5074
+ surname: string;
5245
5075
  middlename?: string | null | undefined;
5246
5076
  } | {
5247
5077
  country: string;
@@ -5269,6 +5099,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5269
5099
  start: string;
5270
5100
  end: string;
5271
5101
  } | null | undefined>;
5102
+ content?: {
5103
+ templateId?: string | undefined;
5104
+ } | null | undefined;
5272
5105
  createdBySignature?: string | null | undefined;
5273
5106
  createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
5274
5107
  annotation?: Record<string, string | number | boolean | {
@@ -5287,8 +5120,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5287
5120
  street?: string | null | undefined;
5288
5121
  zipCode?: string | null | undefined;
5289
5122
  } | {
5290
- firstname?: string | null | undefined;
5291
- surname?: string | null | undefined;
5123
+ firstname: string;
5124
+ surname: string;
5292
5125
  middlename?: string | null | undefined;
5293
5126
  } | {
5294
5127
  country: string;
@@ -5316,10 +5149,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5316
5149
  start: string;
5317
5150
  end: string;
5318
5151
  } | null | undefined> | null | undefined;
5319
- actionDetails?: {
5320
- templateId?: string | undefined;
5321
- isImmediateCorrection?: boolean | undefined;
5322
- } | null | undefined;
5323
5152
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
5324
5153
  } | {
5325
5154
  type: "REQUEST_CORRECTION";
@@ -5346,8 +5175,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5346
5175
  street?: string | null | undefined;
5347
5176
  zipCode?: string | null | undefined;
5348
5177
  } | {
5349
- firstname?: string | null | undefined;
5350
- surname?: string | null | undefined;
5178
+ firstname: string;
5179
+ surname: string;
5351
5180
  middlename?: string | null | undefined;
5352
5181
  } | {
5353
5182
  country: string;
@@ -5393,8 +5222,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5393
5222
  street?: string | null | undefined;
5394
5223
  zipCode?: string | null | undefined;
5395
5224
  } | {
5396
- firstname?: string | null | undefined;
5397
- surname?: string | null | undefined;
5225
+ firstname: string;
5226
+ surname: string;
5398
5227
  middlename?: string | null | undefined;
5399
5228
  } | {
5400
5229
  country: string;
@@ -5422,10 +5251,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5422
5251
  start: string;
5423
5252
  end: string;
5424
5253
  } | null | undefined> | null | undefined;
5425
- actionDetails?: {
5426
- templateId?: string | undefined;
5427
- isImmediateCorrection?: boolean | undefined;
5428
- } | null | undefined;
5429
5254
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
5430
5255
  } | {
5431
5256
  type: "APPROVE_CORRECTION";
@@ -5452,8 +5277,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5452
5277
  street?: string | null | undefined;
5453
5278
  zipCode?: string | null | undefined;
5454
5279
  } | {
5455
- firstname?: string | null | undefined;
5456
- surname?: string | null | undefined;
5280
+ firstname: string;
5281
+ surname: string;
5457
5282
  middlename?: string | null | undefined;
5458
5283
  } | {
5459
5284
  country: string;
@@ -5500,8 +5325,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5500
5325
  street?: string | null | undefined;
5501
5326
  zipCode?: string | null | undefined;
5502
5327
  } | {
5503
- firstname?: string | null | undefined;
5504
- surname?: string | null | undefined;
5328
+ firstname: string;
5329
+ surname: string;
5505
5330
  middlename?: string | null | undefined;
5506
5331
  } | {
5507
5332
  country: string;
@@ -5529,15 +5354,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5529
5354
  start: string;
5530
5355
  end: string;
5531
5356
  } | null | undefined> | null | undefined;
5532
- actionDetails?: {
5533
- templateId?: string | undefined;
5534
- isImmediateCorrection?: boolean | undefined;
5535
- } | null | undefined;
5536
5357
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
5537
5358
  } | {
5538
5359
  type: "REJECT_CORRECTION";
5539
5360
  id: string & import("zod").BRAND<"UUID">;
5540
5361
  status: "Rejected" | "Requested" | "Accepted";
5362
+ reason: {
5363
+ message: string;
5364
+ isDuplicate?: boolean | undefined;
5365
+ };
5541
5366
  transactionId: string;
5542
5367
  createdByUserType: "system" | "user";
5543
5368
  createdAt: string;
@@ -5559,8 +5384,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5559
5384
  street?: string | null | undefined;
5560
5385
  zipCode?: string | null | undefined;
5561
5386
  } | {
5562
- firstname?: string | null | undefined;
5563
- surname?: string | null | undefined;
5387
+ firstname: string;
5388
+ surname: string;
5564
5389
  middlename?: string | null | undefined;
5565
5390
  } | {
5566
5391
  country: string;
@@ -5607,8 +5432,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5607
5432
  street?: string | null | undefined;
5608
5433
  zipCode?: string | null | undefined;
5609
5434
  } | {
5610
- firstname?: string | null | undefined;
5611
- surname?: string | null | undefined;
5435
+ firstname: string;
5436
+ surname: string;
5612
5437
  middlename?: string | null | undefined;
5613
5438
  } | {
5614
5439
  country: string;
@@ -5636,10 +5461,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5636
5461
  start: string;
5637
5462
  end: string;
5638
5463
  } | null | undefined> | null | undefined;
5639
- actionDetails?: {
5640
- templateId?: string | undefined;
5641
- isImmediateCorrection?: boolean | undefined;
5642
- } | null | undefined;
5643
5464
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
5644
5465
  } | {
5645
5466
  type: "READ";
@@ -5666,8 +5487,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5666
5487
  street?: string | null | undefined;
5667
5488
  zipCode?: string | null | undefined;
5668
5489
  } | {
5669
- firstname?: string | null | undefined;
5670
- surname?: string | null | undefined;
5490
+ firstname: string;
5491
+ surname: string;
5671
5492
  middlename?: string | null | undefined;
5672
5493
  } | {
5673
5494
  country: string;
@@ -5713,8 +5534,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5713
5534
  street?: string | null | undefined;
5714
5535
  zipCode?: string | null | undefined;
5715
5536
  } | {
5716
- firstname?: string | null | undefined;
5717
- surname?: string | null | undefined;
5537
+ firstname: string;
5538
+ surname: string;
5718
5539
  middlename?: string | null | undefined;
5719
5540
  } | {
5720
5541
  country: string;
@@ -5742,10 +5563,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5742
5563
  start: string;
5743
5564
  end: string;
5744
5565
  } | null | undefined> | null | undefined;
5745
- actionDetails?: {
5746
- templateId?: string | undefined;
5747
- isImmediateCorrection?: boolean | undefined;
5748
- } | null | undefined;
5749
5566
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
5750
5567
  } | {
5751
5568
  type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
@@ -5758,10 +5575,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5758
5575
  createdByRole: string;
5759
5576
  createdBySignature?: string | null | undefined;
5760
5577
  createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
5761
- actionDetails?: {
5762
- templateId?: string | undefined;
5763
- isImmediateCorrection?: boolean | undefined;
5764
- } | null | undefined;
5765
5578
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
5766
5579
  })[];
5767
5580
  trackingId: string;
@@ -5789,8 +5602,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5789
5602
  street?: string | null | undefined;
5790
5603
  zipCode?: string | null | undefined;
5791
5604
  } | {
5792
- firstname?: string | null | undefined;
5793
- surname?: string | null | undefined;
5605
+ firstname: string;
5606
+ surname: string;
5794
5607
  middlename?: string | null | undefined;
5795
5608
  } | {
5796
5609
  country: string;
@@ -5834,8 +5647,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5834
5647
  street?: string | null | undefined;
5835
5648
  zipCode?: string | null | undefined;
5836
5649
  } | {
5837
- firstname?: string | null | undefined;
5838
- surname?: string | null | undefined;
5650
+ firstname: string;
5651
+ surname: string;
5839
5652
  middlename?: string | null | undefined;
5840
5653
  } | {
5841
5654
  country: string;
@@ -5863,10 +5676,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5863
5676
  start: string;
5864
5677
  end: string;
5865
5678
  } | null | undefined> | undefined;
5866
- actionDetails?: {
5867
- templateId?: string | undefined;
5868
- isImmediateCorrection?: boolean | undefined;
5869
- } | undefined;
5870
5679
  originalActionId?: string | undefined;
5871
5680
  assignedTo?: null | undefined;
5872
5681
  keepAssignment?: boolean | undefined;
@@ -5901,8 +5710,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5901
5710
  street?: string | null | undefined;
5902
5711
  zipCode?: string | null | undefined;
5903
5712
  } | {
5904
- firstname?: string | null | undefined;
5905
- surname?: string | null | undefined;
5713
+ firstname: string;
5714
+ surname: string;
5906
5715
  middlename?: string | null | undefined;
5907
5716
  } | {
5908
5717
  country: string;
@@ -5949,8 +5758,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5949
5758
  street?: string | null | undefined;
5950
5759
  zipCode?: string | null | undefined;
5951
5760
  } | {
5952
- firstname?: string | null | undefined;
5953
- surname?: string | null | undefined;
5761
+ firstname: string;
5762
+ surname: string;
5954
5763
  middlename?: string | null | undefined;
5955
5764
  } | {
5956
5765
  country: string;
@@ -5978,10 +5787,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5978
5787
  start: string;
5979
5788
  end: string;
5980
5789
  } | null | undefined> | null | undefined;
5981
- actionDetails?: {
5982
- templateId?: string | undefined;
5983
- isImmediateCorrection?: boolean | undefined;
5984
- } | null | undefined;
5985
5790
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
5986
5791
  } | {
5987
5792
  type: "UNASSIGN";
@@ -6008,8 +5813,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6008
5813
  street?: string | null | undefined;
6009
5814
  zipCode?: string | null | undefined;
6010
5815
  } | {
6011
- firstname?: string | null | undefined;
6012
- surname?: string | null | undefined;
5816
+ firstname: string;
5817
+ surname: string;
6013
5818
  middlename?: string | null | undefined;
6014
5819
  } | {
6015
5820
  country: string;
@@ -6055,8 +5860,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6055
5860
  street?: string | null | undefined;
6056
5861
  zipCode?: string | null | undefined;
6057
5862
  } | {
6058
- firstname?: string | null | undefined;
6059
- surname?: string | null | undefined;
5863
+ firstname: string;
5864
+ surname: string;
6060
5865
  middlename?: string | null | undefined;
6061
5866
  } | {
6062
5867
  country: string;
@@ -6084,10 +5889,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6084
5889
  start: string;
6085
5890
  end: string;
6086
5891
  } | null | undefined> | null | undefined;
6087
- actionDetails?: {
6088
- templateId?: string | undefined;
6089
- isImmediateCorrection?: boolean | undefined;
6090
- } | null | undefined;
6091
5892
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
6092
5893
  } | {
6093
5894
  type: "REGISTER";
@@ -6114,8 +5915,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6114
5915
  street?: string | null | undefined;
6115
5916
  zipCode?: string | null | undefined;
6116
5917
  } | {
6117
- firstname?: string | null | undefined;
6118
- surname?: string | null | undefined;
5918
+ firstname: string;
5919
+ surname: string;
6119
5920
  middlename?: string | null | undefined;
6120
5921
  } | {
6121
5922
  country: string;
@@ -6161,8 +5962,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6161
5962
  street?: string | null | undefined;
6162
5963
  zipCode?: string | null | undefined;
6163
5964
  } | {
6164
- firstname?: string | null | undefined;
6165
- surname?: string | null | undefined;
5965
+ firstname: string;
5966
+ surname: string;
6166
5967
  middlename?: string | null | undefined;
6167
5968
  } | {
6168
5969
  country: string;
@@ -6190,10 +5991,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6190
5991
  start: string;
6191
5992
  end: string;
6192
5993
  } | null | undefined> | null | undefined;
6193
- actionDetails?: {
6194
- templateId?: string | undefined;
6195
- isImmediateCorrection?: boolean | undefined;
6196
- } | null | undefined;
6197
5994
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
6198
5995
  registrationNumber?: string | undefined;
6199
5996
  } | {
@@ -6221,8 +6018,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6221
6018
  street?: string | null | undefined;
6222
6019
  zipCode?: string | null | undefined;
6223
6020
  } | {
6224
- firstname?: string | null | undefined;
6225
- surname?: string | null | undefined;
6021
+ firstname: string;
6022
+ surname: string;
6226
6023
  middlename?: string | null | undefined;
6227
6024
  } | {
6228
6025
  country: string;
@@ -6268,8 +6065,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6268
6065
  street?: string | null | undefined;
6269
6066
  zipCode?: string | null | undefined;
6270
6067
  } | {
6271
- firstname?: string | null | undefined;
6272
- surname?: string | null | undefined;
6068
+ firstname: string;
6069
+ surname: string;
6273
6070
  middlename?: string | null | undefined;
6274
6071
  } | {
6275
6072
  country: string;
@@ -6297,10 +6094,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6297
6094
  start: string;
6298
6095
  end: string;
6299
6096
  } | null | undefined> | null | undefined;
6300
- actionDetails?: {
6301
- templateId?: string | undefined;
6302
- isImmediateCorrection?: boolean | undefined;
6303
- } | null | undefined;
6304
6097
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
6305
6098
  } | {
6306
6099
  type: "VALIDATE";
@@ -6327,8 +6120,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6327
6120
  street?: string | null | undefined;
6328
6121
  zipCode?: string | null | undefined;
6329
6122
  } | {
6330
- firstname?: string | null | undefined;
6331
- surname?: string | null | undefined;
6123
+ firstname: string;
6124
+ surname: string;
6332
6125
  middlename?: string | null | undefined;
6333
6126
  } | {
6334
6127
  country: string;
@@ -6374,8 +6167,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6374
6167
  street?: string | null | undefined;
6375
6168
  zipCode?: string | null | undefined;
6376
6169
  } | {
6377
- firstname?: string | null | undefined;
6378
- surname?: string | null | undefined;
6170
+ firstname: string;
6171
+ surname: string;
6379
6172
  middlename?: string | null | undefined;
6380
6173
  } | {
6381
6174
  country: string;
@@ -6403,10 +6196,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6403
6196
  start: string;
6404
6197
  end: string;
6405
6198
  } | null | undefined> | null | undefined;
6406
- actionDetails?: {
6407
- templateId?: string | undefined;
6408
- isImmediateCorrection?: boolean | undefined;
6409
- } | null | undefined;
6410
6199
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
6411
6200
  } | {
6412
6201
  type: "REJECT";
@@ -6437,8 +6226,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6437
6226
  street?: string | null | undefined;
6438
6227
  zipCode?: string | null | undefined;
6439
6228
  } | {
6440
- firstname?: string | null | undefined;
6441
- surname?: string | null | undefined;
6229
+ firstname: string;
6230
+ surname: string;
6442
6231
  middlename?: string | null | undefined;
6443
6232
  } | {
6444
6233
  country: string;
@@ -6484,8 +6273,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6484
6273
  street?: string | null | undefined;
6485
6274
  zipCode?: string | null | undefined;
6486
6275
  } | {
6487
- firstname?: string | null | undefined;
6488
- surname?: string | null | undefined;
6276
+ firstname: string;
6277
+ surname: string;
6489
6278
  middlename?: string | null | undefined;
6490
6279
  } | {
6491
6280
  country: string;
@@ -6513,10 +6302,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6513
6302
  start: string;
6514
6303
  end: string;
6515
6304
  } | null | undefined> | null | undefined;
6516
- actionDetails?: {
6517
- templateId?: string | undefined;
6518
- isImmediateCorrection?: boolean | undefined;
6519
- } | null | undefined;
6520
6305
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
6521
6306
  } | {
6522
6307
  type: "MARKED_AS_DUPLICATE";
@@ -6543,8 +6328,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6543
6328
  street?: string | null | undefined;
6544
6329
  zipCode?: string | null | undefined;
6545
6330
  } | {
6546
- firstname?: string | null | undefined;
6547
- surname?: string | null | undefined;
6331
+ firstname: string;
6332
+ surname: string;
6548
6333
  middlename?: string | null | undefined;
6549
6334
  } | {
6550
6335
  country: string;
@@ -6590,8 +6375,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6590
6375
  street?: string | null | undefined;
6591
6376
  zipCode?: string | null | undefined;
6592
6377
  } | {
6593
- firstname?: string | null | undefined;
6594
- surname?: string | null | undefined;
6378
+ firstname: string;
6379
+ surname: string;
6595
6380
  middlename?: string | null | undefined;
6596
6381
  } | {
6597
6382
  country: string;
@@ -6619,10 +6404,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6619
6404
  start: string;
6620
6405
  end: string;
6621
6406
  } | null | undefined> | null | undefined;
6622
- actionDetails?: {
6623
- templateId?: string | undefined;
6624
- isImmediateCorrection?: boolean | undefined;
6625
- } | null | undefined;
6626
6407
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
6627
6408
  } | {
6628
6409
  type: "ARCHIVE";
@@ -6653,8 +6434,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6653
6434
  street?: string | null | undefined;
6654
6435
  zipCode?: string | null | undefined;
6655
6436
  } | {
6656
- firstname?: string | null | undefined;
6657
- surname?: string | null | undefined;
6437
+ firstname: string;
6438
+ surname: string;
6658
6439
  middlename?: string | null | undefined;
6659
6440
  } | {
6660
6441
  country: string;
@@ -6700,8 +6481,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6700
6481
  street?: string | null | undefined;
6701
6482
  zipCode?: string | null | undefined;
6702
6483
  } | {
6703
- firstname?: string | null | undefined;
6704
- surname?: string | null | undefined;
6484
+ firstname: string;
6485
+ surname: string;
6705
6486
  middlename?: string | null | undefined;
6706
6487
  } | {
6707
6488
  country: string;
@@ -6729,10 +6510,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6729
6510
  start: string;
6730
6511
  end: string;
6731
6512
  } | null | undefined> | null | undefined;
6732
- actionDetails?: {
6733
- templateId?: string | undefined;
6734
- isImmediateCorrection?: boolean | undefined;
6735
- } | null | undefined;
6736
6513
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
6737
6514
  } | {
6738
6515
  type: "CREATE";
@@ -6759,8 +6536,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6759
6536
  street?: string | null | undefined;
6760
6537
  zipCode?: string | null | undefined;
6761
6538
  } | {
6762
- firstname?: string | null | undefined;
6763
- surname?: string | null | undefined;
6539
+ firstname: string;
6540
+ surname: string;
6764
6541
  middlename?: string | null | undefined;
6765
6542
  } | {
6766
6543
  country: string;
@@ -6806,8 +6583,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6806
6583
  street?: string | null | undefined;
6807
6584
  zipCode?: string | null | undefined;
6808
6585
  } | {
6809
- firstname?: string | null | undefined;
6810
- surname?: string | null | undefined;
6586
+ firstname: string;
6587
+ surname: string;
6811
6588
  middlename?: string | null | undefined;
6812
6589
  } | {
6813
6590
  country: string;
@@ -6835,10 +6612,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6835
6612
  start: string;
6836
6613
  end: string;
6837
6614
  } | null | undefined> | null | undefined;
6838
- actionDetails?: {
6839
- templateId?: string | undefined;
6840
- isImmediateCorrection?: boolean | undefined;
6841
- } | null | undefined;
6842
6615
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
6843
6616
  } | {
6844
6617
  type: "NOTIFY";
@@ -6865,8 +6638,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6865
6638
  street?: string | null | undefined;
6866
6639
  zipCode?: string | null | undefined;
6867
6640
  } | {
6868
- firstname?: string | null | undefined;
6869
- surname?: string | null | undefined;
6641
+ firstname: string;
6642
+ surname: string;
6870
6643
  middlename?: string | null | undefined;
6871
6644
  } | {
6872
6645
  country: string;
@@ -6912,8 +6685,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6912
6685
  street?: string | null | undefined;
6913
6686
  zipCode?: string | null | undefined;
6914
6687
  } | {
6915
- firstname?: string | null | undefined;
6916
- surname?: string | null | undefined;
6688
+ firstname: string;
6689
+ surname: string;
6917
6690
  middlename?: string | null | undefined;
6918
6691
  } | {
6919
6692
  country: string;
@@ -6941,10 +6714,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6941
6714
  start: string;
6942
6715
  end: string;
6943
6716
  } | null | undefined> | null | undefined;
6944
- actionDetails?: {
6945
- templateId?: string | undefined;
6946
- isImmediateCorrection?: boolean | undefined;
6947
- } | null | undefined;
6948
6717
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
6949
6718
  } | {
6950
6719
  type: "PRINT_CERTIFICATE";
@@ -6971,8 +6740,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6971
6740
  street?: string | null | undefined;
6972
6741
  zipCode?: string | null | undefined;
6973
6742
  } | {
6974
- firstname?: string | null | undefined;
6975
- surname?: string | null | undefined;
6743
+ firstname: string;
6744
+ surname: string;
6976
6745
  middlename?: string | null | undefined;
6977
6746
  } | {
6978
6747
  country: string;
@@ -7000,6 +6769,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7000
6769
  start: string;
7001
6770
  end: string;
7002
6771
  } | null | undefined>;
6772
+ content?: {
6773
+ templateId?: string | undefined;
6774
+ } | null | undefined;
7003
6775
  createdBySignature?: string | null | undefined;
7004
6776
  createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
7005
6777
  annotation?: Record<string, string | number | boolean | {
@@ -7018,8 +6790,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7018
6790
  street?: string | null | undefined;
7019
6791
  zipCode?: string | null | undefined;
7020
6792
  } | {
7021
- firstname?: string | null | undefined;
7022
- surname?: string | null | undefined;
6793
+ firstname: string;
6794
+ surname: string;
7023
6795
  middlename?: string | null | undefined;
7024
6796
  } | {
7025
6797
  country: string;
@@ -7047,10 +6819,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7047
6819
  start: string;
7048
6820
  end: string;
7049
6821
  } | null | undefined> | null | undefined;
7050
- actionDetails?: {
7051
- templateId?: string | undefined;
7052
- isImmediateCorrection?: boolean | undefined;
7053
- } | null | undefined;
7054
6822
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
7055
6823
  } | {
7056
6824
  type: "REQUEST_CORRECTION";
@@ -7077,8 +6845,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7077
6845
  street?: string | null | undefined;
7078
6846
  zipCode?: string | null | undefined;
7079
6847
  } | {
7080
- firstname?: string | null | undefined;
7081
- surname?: string | null | undefined;
6848
+ firstname: string;
6849
+ surname: string;
7082
6850
  middlename?: string | null | undefined;
7083
6851
  } | {
7084
6852
  country: string;
@@ -7124,8 +6892,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7124
6892
  street?: string | null | undefined;
7125
6893
  zipCode?: string | null | undefined;
7126
6894
  } | {
7127
- firstname?: string | null | undefined;
7128
- surname?: string | null | undefined;
6895
+ firstname: string;
6896
+ surname: string;
7129
6897
  middlename?: string | null | undefined;
7130
6898
  } | {
7131
6899
  country: string;
@@ -7153,10 +6921,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7153
6921
  start: string;
7154
6922
  end: string;
7155
6923
  } | null | undefined> | null | undefined;
7156
- actionDetails?: {
7157
- templateId?: string | undefined;
7158
- isImmediateCorrection?: boolean | undefined;
7159
- } | null | undefined;
7160
6924
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
7161
6925
  } | {
7162
6926
  type: "APPROVE_CORRECTION";
@@ -7183,8 +6947,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7183
6947
  street?: string | null | undefined;
7184
6948
  zipCode?: string | null | undefined;
7185
6949
  } | {
7186
- firstname?: string | null | undefined;
7187
- surname?: string | null | undefined;
6950
+ firstname: string;
6951
+ surname: string;
7188
6952
  middlename?: string | null | undefined;
7189
6953
  } | {
7190
6954
  country: string;
@@ -7231,8 +6995,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7231
6995
  street?: string | null | undefined;
7232
6996
  zipCode?: string | null | undefined;
7233
6997
  } | {
7234
- firstname?: string | null | undefined;
7235
- surname?: string | null | undefined;
6998
+ firstname: string;
6999
+ surname: string;
7236
7000
  middlename?: string | null | undefined;
7237
7001
  } | {
7238
7002
  country: string;
@@ -7260,15 +7024,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7260
7024
  start: string;
7261
7025
  end: string;
7262
7026
  } | null | undefined> | null | undefined;
7263
- actionDetails?: {
7264
- templateId?: string | undefined;
7265
- isImmediateCorrection?: boolean | undefined;
7266
- } | null | undefined;
7267
7027
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
7268
7028
  } | {
7269
7029
  type: "REJECT_CORRECTION";
7270
7030
  id: string & import("zod").BRAND<"UUID">;
7271
7031
  status: "Rejected" | "Requested" | "Accepted";
7032
+ reason: {
7033
+ message: string;
7034
+ isDuplicate?: boolean | undefined;
7035
+ };
7272
7036
  transactionId: string;
7273
7037
  createdByUserType: "system" | "user";
7274
7038
  createdAt: string;
@@ -7290,8 +7054,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7290
7054
  street?: string | null | undefined;
7291
7055
  zipCode?: string | null | undefined;
7292
7056
  } | {
7293
- firstname?: string | null | undefined;
7294
- surname?: string | null | undefined;
7057
+ firstname: string;
7058
+ surname: string;
7295
7059
  middlename?: string | null | undefined;
7296
7060
  } | {
7297
7061
  country: string;
@@ -7338,8 +7102,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7338
7102
  street?: string | null | undefined;
7339
7103
  zipCode?: string | null | undefined;
7340
7104
  } | {
7341
- firstname?: string | null | undefined;
7342
- surname?: string | null | undefined;
7105
+ firstname: string;
7106
+ surname: string;
7343
7107
  middlename?: string | null | undefined;
7344
7108
  } | {
7345
7109
  country: string;
@@ -7367,10 +7131,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7367
7131
  start: string;
7368
7132
  end: string;
7369
7133
  } | null | undefined> | null | undefined;
7370
- actionDetails?: {
7371
- templateId?: string | undefined;
7372
- isImmediateCorrection?: boolean | undefined;
7373
- } | null | undefined;
7374
7134
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
7375
7135
  } | {
7376
7136
  type: "READ";
@@ -7397,8 +7157,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7397
7157
  street?: string | null | undefined;
7398
7158
  zipCode?: string | null | undefined;
7399
7159
  } | {
7400
- firstname?: string | null | undefined;
7401
- surname?: string | null | undefined;
7160
+ firstname: string;
7161
+ surname: string;
7402
7162
  middlename?: string | null | undefined;
7403
7163
  } | {
7404
7164
  country: string;
@@ -7444,8 +7204,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7444
7204
  street?: string | null | undefined;
7445
7205
  zipCode?: string | null | undefined;
7446
7206
  } | {
7447
- firstname?: string | null | undefined;
7448
- surname?: string | null | undefined;
7207
+ firstname: string;
7208
+ surname: string;
7449
7209
  middlename?: string | null | undefined;
7450
7210
  } | {
7451
7211
  country: string;
@@ -7473,10 +7233,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7473
7233
  start: string;
7474
7234
  end: string;
7475
7235
  } | null | undefined> | null | undefined;
7476
- actionDetails?: {
7477
- templateId?: string | undefined;
7478
- isImmediateCorrection?: boolean | undefined;
7479
- } | null | undefined;
7480
7236
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
7481
7237
  } | {
7482
7238
  type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
@@ -7489,10 +7245,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7489
7245
  createdByRole: string;
7490
7246
  createdBySignature?: string | null | undefined;
7491
7247
  createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
7492
- actionDetails?: {
7493
- templateId?: string | undefined;
7494
- isImmediateCorrection?: boolean | undefined;
7495
- } | null | undefined;
7496
7248
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
7497
7249
  })[];
7498
7250
  trackingId: string;
@@ -7657,7 +7409,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7657
7409
  output: {
7658
7410
  type: string;
7659
7411
  id: string & import("zod").BRAND<"UUID">;
7660
- status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
7412
+ status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
7661
7413
  createdAt: string;
7662
7414
  createdBy: string;
7663
7415
  declaration: Record<string, string | number | boolean | {
@@ -7687,8 +7439,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7687
7439
  surname: string;
7688
7440
  middlename?: string | undefined;
7689
7441
  } | {
7690
- firstname?: string | null | undefined;
7691
- surname?: string | null | undefined;
7442
+ firstname: string;
7443
+ surname: string;
7692
7444
  middlename?: string | null | undefined;
7693
7445
  } | {
7694
7446
  country: string;
@@ -7741,8 +7493,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7741
7493
  dateOfEvent?: string | null | undefined;
7742
7494
  updatedAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
7743
7495
  updatedBy?: string | null | undefined;
7744
- copiesPrintedForTemplate?: number | undefined;
7745
- modifiedAt?: string | undefined;
7746
7496
  }[];
7747
7497
  meta: import("trpc-to-openapi").OpenApiMeta;
7748
7498
  }>;
@@ -7754,7 +7504,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7754
7504
  output: {
7755
7505
  type: string;
7756
7506
  id: string & import("zod").BRAND<"UUID">;
7757
- status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
7507
+ status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
7758
7508
  createdAt: string;
7759
7509
  createdBy: string;
7760
7510
  declaration: Record<string, string | number | boolean | {
@@ -7784,8 +7534,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7784
7534
  surname: string;
7785
7535
  middlename?: string | undefined;
7786
7536
  } | {
7787
- firstname?: string | null | undefined;
7788
- surname?: string | null | undefined;
7537
+ firstname: string;
7538
+ surname: string;
7789
7539
  middlename?: string | null | undefined;
7790
7540
  } | {
7791
7541
  country: string;
@@ -7838,8 +7588,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7838
7588
  dateOfEvent?: string | null | undefined;
7839
7589
  updatedAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
7840
7590
  updatedBy?: string | null | undefined;
7841
- copiesPrintedForTemplate?: number | undefined;
7842
- modifiedAt?: string | undefined;
7843
7591
  }[];
7844
7592
  meta: import("trpc-to-openapi").OpenApiMeta;
7845
7593
  }>;
@@ -7874,8 +7622,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7874
7622
  street?: string | null | undefined;
7875
7623
  zipCode?: string | null | undefined;
7876
7624
  } | {
7877
- firstname?: string | null | undefined;
7878
- surname?: string | null | undefined;
7625
+ firstname: string;
7626
+ surname: string;
7879
7627
  middlename?: string | null | undefined;
7880
7628
  } | {
7881
7629
  country: string;
@@ -7922,8 +7670,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7922
7670
  street?: string | null | undefined;
7923
7671
  zipCode?: string | null | undefined;
7924
7672
  } | {
7925
- firstname?: string | null | undefined;
7926
- surname?: string | null | undefined;
7673
+ firstname: string;
7674
+ surname: string;
7927
7675
  middlename?: string | null | undefined;
7928
7676
  } | {
7929
7677
  country: string;
@@ -7951,10 +7699,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7951
7699
  start: string;
7952
7700
  end: string;
7953
7701
  } | null | undefined> | null | undefined;
7954
- actionDetails?: {
7955
- templateId?: string | undefined;
7956
- isImmediateCorrection?: boolean | undefined;
7957
- } | null | undefined;
7958
7702
  originalActionId?: string | null | undefined;
7959
7703
  } | {
7960
7704
  type: "UNASSIGN";
@@ -7981,8 +7725,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7981
7725
  street?: string | null | undefined;
7982
7726
  zipCode?: string | null | undefined;
7983
7727
  } | {
7984
- firstname?: string | null | undefined;
7985
- surname?: string | null | undefined;
7728
+ firstname: string;
7729
+ surname: string;
7986
7730
  middlename?: string | null | undefined;
7987
7731
  } | {
7988
7732
  country: string;
@@ -8028,8 +7772,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8028
7772
  street?: string | null | undefined;
8029
7773
  zipCode?: string | null | undefined;
8030
7774
  } | {
8031
- firstname?: string | null | undefined;
8032
- surname?: string | null | undefined;
7775
+ firstname: string;
7776
+ surname: string;
8033
7777
  middlename?: string | null | undefined;
8034
7778
  } | {
8035
7779
  country: string;
@@ -8057,10 +7801,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8057
7801
  start: string;
8058
7802
  end: string;
8059
7803
  } | null | undefined> | null | undefined;
8060
- actionDetails?: {
8061
- templateId?: string | undefined;
8062
- isImmediateCorrection?: boolean | undefined;
8063
- } | null | undefined;
8064
7804
  originalActionId?: string | null | undefined;
8065
7805
  } | {
8066
7806
  type: "REGISTER";
@@ -8087,8 +7827,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8087
7827
  street?: string | null | undefined;
8088
7828
  zipCode?: string | null | undefined;
8089
7829
  } | {
8090
- firstname?: string | null | undefined;
8091
- surname?: string | null | undefined;
7830
+ firstname: string;
7831
+ surname: string;
8092
7832
  middlename?: string | null | undefined;
8093
7833
  } | {
8094
7834
  country: string;
@@ -8134,8 +7874,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8134
7874
  street?: string | null | undefined;
8135
7875
  zipCode?: string | null | undefined;
8136
7876
  } | {
8137
- firstname?: string | null | undefined;
8138
- surname?: string | null | undefined;
7877
+ firstname: string;
7878
+ surname: string;
8139
7879
  middlename?: string | null | undefined;
8140
7880
  } | {
8141
7881
  country: string;
@@ -8163,10 +7903,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8163
7903
  start: string;
8164
7904
  end: string;
8165
7905
  } | null | undefined> | null | undefined;
8166
- actionDetails?: {
8167
- templateId?: string | undefined;
8168
- isImmediateCorrection?: boolean | undefined;
8169
- } | null | undefined;
8170
7906
  originalActionId?: string | null | undefined;
8171
7907
  registrationNumber?: string | undefined;
8172
7908
  } | {
@@ -8194,8 +7930,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8194
7930
  street?: string | null | undefined;
8195
7931
  zipCode?: string | null | undefined;
8196
7932
  } | {
8197
- firstname?: string | null | undefined;
8198
- surname?: string | null | undefined;
7933
+ firstname: string;
7934
+ surname: string;
8199
7935
  middlename?: string | null | undefined;
8200
7936
  } | {
8201
7937
  country: string;
@@ -8241,8 +7977,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8241
7977
  street?: string | null | undefined;
8242
7978
  zipCode?: string | null | undefined;
8243
7979
  } | {
8244
- firstname?: string | null | undefined;
8245
- surname?: string | null | undefined;
7980
+ firstname: string;
7981
+ surname: string;
8246
7982
  middlename?: string | null | undefined;
8247
7983
  } | {
8248
7984
  country: string;
@@ -8270,10 +8006,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8270
8006
  start: string;
8271
8007
  end: string;
8272
8008
  } | null | undefined> | null | undefined;
8273
- actionDetails?: {
8274
- templateId?: string | undefined;
8275
- isImmediateCorrection?: boolean | undefined;
8276
- } | null | undefined;
8277
8009
  originalActionId?: string | null | undefined;
8278
8010
  } | {
8279
8011
  type: "VALIDATE";
@@ -8300,8 +8032,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8300
8032
  street?: string | null | undefined;
8301
8033
  zipCode?: string | null | undefined;
8302
8034
  } | {
8303
- firstname?: string | null | undefined;
8304
- surname?: string | null | undefined;
8035
+ firstname: string;
8036
+ surname: string;
8305
8037
  middlename?: string | null | undefined;
8306
8038
  } | {
8307
8039
  country: string;
@@ -8347,8 +8079,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8347
8079
  street?: string | null | undefined;
8348
8080
  zipCode?: string | null | undefined;
8349
8081
  } | {
8350
- firstname?: string | null | undefined;
8351
- surname?: string | null | undefined;
8082
+ firstname: string;
8083
+ surname: string;
8352
8084
  middlename?: string | null | undefined;
8353
8085
  } | {
8354
8086
  country: string;
@@ -8376,10 +8108,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8376
8108
  start: string;
8377
8109
  end: string;
8378
8110
  } | null | undefined> | null | undefined;
8379
- actionDetails?: {
8380
- templateId?: string | undefined;
8381
- isImmediateCorrection?: boolean | undefined;
8382
- } | null | undefined;
8383
8111
  originalActionId?: string | null | undefined;
8384
8112
  } | {
8385
8113
  type: "REJECT";
@@ -8410,8 +8138,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8410
8138
  street?: string | null | undefined;
8411
8139
  zipCode?: string | null | undefined;
8412
8140
  } | {
8413
- firstname?: string | null | undefined;
8414
- surname?: string | null | undefined;
8141
+ firstname: string;
8142
+ surname: string;
8415
8143
  middlename?: string | null | undefined;
8416
8144
  } | {
8417
8145
  country: string;
@@ -8457,8 +8185,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8457
8185
  street?: string | null | undefined;
8458
8186
  zipCode?: string | null | undefined;
8459
8187
  } | {
8460
- firstname?: string | null | undefined;
8461
- surname?: string | null | undefined;
8188
+ firstname: string;
8189
+ surname: string;
8462
8190
  middlename?: string | null | undefined;
8463
8191
  } | {
8464
8192
  country: string;
@@ -8486,10 +8214,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8486
8214
  start: string;
8487
8215
  end: string;
8488
8216
  } | null | undefined> | null | undefined;
8489
- actionDetails?: {
8490
- templateId?: string | undefined;
8491
- isImmediateCorrection?: boolean | undefined;
8492
- } | null | undefined;
8493
8217
  originalActionId?: string | null | undefined;
8494
8218
  } | {
8495
8219
  type: "MARKED_AS_DUPLICATE";
@@ -8516,8 +8240,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8516
8240
  street?: string | null | undefined;
8517
8241
  zipCode?: string | null | undefined;
8518
8242
  } | {
8519
- firstname?: string | null | undefined;
8520
- surname?: string | null | undefined;
8243
+ firstname: string;
8244
+ surname: string;
8521
8245
  middlename?: string | null | undefined;
8522
8246
  } | {
8523
8247
  country: string;
@@ -8563,8 +8287,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8563
8287
  street?: string | null | undefined;
8564
8288
  zipCode?: string | null | undefined;
8565
8289
  } | {
8566
- firstname?: string | null | undefined;
8567
- surname?: string | null | undefined;
8290
+ firstname: string;
8291
+ surname: string;
8568
8292
  middlename?: string | null | undefined;
8569
8293
  } | {
8570
8294
  country: string;
@@ -8592,10 +8316,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8592
8316
  start: string;
8593
8317
  end: string;
8594
8318
  } | null | undefined> | null | undefined;
8595
- actionDetails?: {
8596
- templateId?: string | undefined;
8597
- isImmediateCorrection?: boolean | undefined;
8598
- } | null | undefined;
8599
8319
  originalActionId?: string | null | undefined;
8600
8320
  } | {
8601
8321
  type: "ARCHIVE";
@@ -8626,8 +8346,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8626
8346
  street?: string | null | undefined;
8627
8347
  zipCode?: string | null | undefined;
8628
8348
  } | {
8629
- firstname?: string | null | undefined;
8630
- surname?: string | null | undefined;
8349
+ firstname: string;
8350
+ surname: string;
8631
8351
  middlename?: string | null | undefined;
8632
8352
  } | {
8633
8353
  country: string;
@@ -8673,8 +8393,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8673
8393
  street?: string | null | undefined;
8674
8394
  zipCode?: string | null | undefined;
8675
8395
  } | {
8676
- firstname?: string | null | undefined;
8677
- surname?: string | null | undefined;
8396
+ firstname: string;
8397
+ surname: string;
8678
8398
  middlename?: string | null | undefined;
8679
8399
  } | {
8680
8400
  country: string;
@@ -8702,10 +8422,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8702
8422
  start: string;
8703
8423
  end: string;
8704
8424
  } | null | undefined> | null | undefined;
8705
- actionDetails?: {
8706
- templateId?: string | undefined;
8707
- isImmediateCorrection?: boolean | undefined;
8708
- } | null | undefined;
8709
8425
  originalActionId?: string | null | undefined;
8710
8426
  } | {
8711
8427
  type: "CREATE";
@@ -8732,8 +8448,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8732
8448
  street?: string | null | undefined;
8733
8449
  zipCode?: string | null | undefined;
8734
8450
  } | {
8735
- firstname?: string | null | undefined;
8736
- surname?: string | null | undefined;
8451
+ firstname: string;
8452
+ surname: string;
8737
8453
  middlename?: string | null | undefined;
8738
8454
  } | {
8739
8455
  country: string;
@@ -8779,8 +8495,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8779
8495
  street?: string | null | undefined;
8780
8496
  zipCode?: string | null | undefined;
8781
8497
  } | {
8782
- firstname?: string | null | undefined;
8783
- surname?: string | null | undefined;
8498
+ firstname: string;
8499
+ surname: string;
8784
8500
  middlename?: string | null | undefined;
8785
8501
  } | {
8786
8502
  country: string;
@@ -8808,10 +8524,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8808
8524
  start: string;
8809
8525
  end: string;
8810
8526
  } | null | undefined> | null | undefined;
8811
- actionDetails?: {
8812
- templateId?: string | undefined;
8813
- isImmediateCorrection?: boolean | undefined;
8814
- } | null | undefined;
8815
8527
  originalActionId?: string | null | undefined;
8816
8528
  } | {
8817
8529
  type: "NOTIFY";
@@ -8838,8 +8550,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8838
8550
  street?: string | null | undefined;
8839
8551
  zipCode?: string | null | undefined;
8840
8552
  } | {
8841
- firstname?: string | null | undefined;
8842
- surname?: string | null | undefined;
8553
+ firstname: string;
8554
+ surname: string;
8843
8555
  middlename?: string | null | undefined;
8844
8556
  } | {
8845
8557
  country: string;
@@ -8885,8 +8597,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8885
8597
  street?: string | null | undefined;
8886
8598
  zipCode?: string | null | undefined;
8887
8599
  } | {
8888
- firstname?: string | null | undefined;
8889
- surname?: string | null | undefined;
8600
+ firstname: string;
8601
+ surname: string;
8890
8602
  middlename?: string | null | undefined;
8891
8603
  } | {
8892
8604
  country: string;
@@ -8914,10 +8626,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8914
8626
  start: string;
8915
8627
  end: string;
8916
8628
  } | null | undefined> | null | undefined;
8917
- actionDetails?: {
8918
- templateId?: string | undefined;
8919
- isImmediateCorrection?: boolean | undefined;
8920
- } | null | undefined;
8921
8629
  originalActionId?: string | null | undefined;
8922
8630
  } | {
8923
8631
  type: "PRINT_CERTIFICATE";
@@ -8944,8 +8652,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8944
8652
  street?: string | null | undefined;
8945
8653
  zipCode?: string | null | undefined;
8946
8654
  } | {
8947
- firstname?: string | null | undefined;
8948
- surname?: string | null | undefined;
8655
+ firstname: string;
8656
+ surname: string;
8949
8657
  middlename?: string | null | undefined;
8950
8658
  } | {
8951
8659
  country: string;
@@ -8973,6 +8681,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8973
8681
  start: string;
8974
8682
  end: string;
8975
8683
  } | null | undefined>;
8684
+ content?: {
8685
+ templateId?: string | undefined;
8686
+ } | null | undefined;
8976
8687
  createdBySignature?: string | null | undefined;
8977
8688
  createdAtLocation?: string | null | undefined;
8978
8689
  annotation?: Record<string, string | number | boolean | {
@@ -8991,8 +8702,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8991
8702
  street?: string | null | undefined;
8992
8703
  zipCode?: string | null | undefined;
8993
8704
  } | {
8994
- firstname?: string | null | undefined;
8995
- surname?: string | null | undefined;
8705
+ firstname: string;
8706
+ surname: string;
8996
8707
  middlename?: string | null | undefined;
8997
8708
  } | {
8998
8709
  country: string;
@@ -9020,10 +8731,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9020
8731
  start: string;
9021
8732
  end: string;
9022
8733
  } | null | undefined> | null | undefined;
9023
- actionDetails?: {
9024
- templateId?: string | undefined;
9025
- isImmediateCorrection?: boolean | undefined;
9026
- } | null | undefined;
9027
8734
  originalActionId?: string | null | undefined;
9028
8735
  } | {
9029
8736
  type: "REQUEST_CORRECTION";
@@ -9050,8 +8757,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9050
8757
  street?: string | null | undefined;
9051
8758
  zipCode?: string | null | undefined;
9052
8759
  } | {
9053
- firstname?: string | null | undefined;
9054
- surname?: string | null | undefined;
8760
+ firstname: string;
8761
+ surname: string;
9055
8762
  middlename?: string | null | undefined;
9056
8763
  } | {
9057
8764
  country: string;
@@ -9097,8 +8804,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9097
8804
  street?: string | null | undefined;
9098
8805
  zipCode?: string | null | undefined;
9099
8806
  } | {
9100
- firstname?: string | null | undefined;
9101
- surname?: string | null | undefined;
8807
+ firstname: string;
8808
+ surname: string;
9102
8809
  middlename?: string | null | undefined;
9103
8810
  } | {
9104
8811
  country: string;
@@ -9126,10 +8833,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9126
8833
  start: string;
9127
8834
  end: string;
9128
8835
  } | null | undefined> | null | undefined;
9129
- actionDetails?: {
9130
- templateId?: string | undefined;
9131
- isImmediateCorrection?: boolean | undefined;
9132
- } | null | undefined;
9133
8836
  originalActionId?: string | null | undefined;
9134
8837
  } | {
9135
8838
  type: "APPROVE_CORRECTION";
@@ -9156,8 +8859,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9156
8859
  street?: string | null | undefined;
9157
8860
  zipCode?: string | null | undefined;
9158
8861
  } | {
9159
- firstname?: string | null | undefined;
9160
- surname?: string | null | undefined;
8862
+ firstname: string;
8863
+ surname: string;
9161
8864
  middlename?: string | null | undefined;
9162
8865
  } | {
9163
8866
  country: string;
@@ -9204,8 +8907,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9204
8907
  street?: string | null | undefined;
9205
8908
  zipCode?: string | null | undefined;
9206
8909
  } | {
9207
- firstname?: string | null | undefined;
9208
- surname?: string | null | undefined;
8910
+ firstname: string;
8911
+ surname: string;
9209
8912
  middlename?: string | null | undefined;
9210
8913
  } | {
9211
8914
  country: string;
@@ -9233,15 +8936,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9233
8936
  start: string;
9234
8937
  end: string;
9235
8938
  } | null | undefined> | null | undefined;
9236
- actionDetails?: {
9237
- templateId?: string | undefined;
9238
- isImmediateCorrection?: boolean | undefined;
9239
- } | null | undefined;
9240
8939
  originalActionId?: string | null | undefined;
9241
8940
  } | {
9242
8941
  type: "REJECT_CORRECTION";
9243
8942
  id: string;
9244
8943
  status: "Rejected" | "Requested" | "Accepted";
8944
+ reason: {
8945
+ message: string;
8946
+ isDuplicate?: boolean | undefined;
8947
+ };
9245
8948
  transactionId: string;
9246
8949
  createdByUserType: "system" | "user";
9247
8950
  createdAt: string;
@@ -9263,8 +8966,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9263
8966
  street?: string | null | undefined;
9264
8967
  zipCode?: string | null | undefined;
9265
8968
  } | {
9266
- firstname?: string | null | undefined;
9267
- surname?: string | null | undefined;
8969
+ firstname: string;
8970
+ surname: string;
9268
8971
  middlename?: string | null | undefined;
9269
8972
  } | {
9270
8973
  country: string;
@@ -9311,8 +9014,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9311
9014
  street?: string | null | undefined;
9312
9015
  zipCode?: string | null | undefined;
9313
9016
  } | {
9314
- firstname?: string | null | undefined;
9315
- surname?: string | null | undefined;
9017
+ firstname: string;
9018
+ surname: string;
9316
9019
  middlename?: string | null | undefined;
9317
9020
  } | {
9318
9021
  country: string;
@@ -9340,10 +9043,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9340
9043
  start: string;
9341
9044
  end: string;
9342
9045
  } | null | undefined> | null | undefined;
9343
- actionDetails?: {
9344
- templateId?: string | undefined;
9345
- isImmediateCorrection?: boolean | undefined;
9346
- } | null | undefined;
9347
9046
  originalActionId?: string | null | undefined;
9348
9047
  } | {
9349
9048
  type: "READ";
@@ -9370,8 +9069,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9370
9069
  street?: string | null | undefined;
9371
9070
  zipCode?: string | null | undefined;
9372
9071
  } | {
9373
- firstname?: string | null | undefined;
9374
- surname?: string | null | undefined;
9072
+ firstname: string;
9073
+ surname: string;
9375
9074
  middlename?: string | null | undefined;
9376
9075
  } | {
9377
9076
  country: string;
@@ -9417,8 +9116,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9417
9116
  street?: string | null | undefined;
9418
9117
  zipCode?: string | null | undefined;
9419
9118
  } | {
9420
- firstname?: string | null | undefined;
9421
- surname?: string | null | undefined;
9119
+ firstname: string;
9120
+ surname: string;
9422
9121
  middlename?: string | null | undefined;
9423
9122
  } | {
9424
9123
  country: string;
@@ -9446,10 +9145,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9446
9145
  start: string;
9447
9146
  end: string;
9448
9147
  } | null | undefined> | null | undefined;
9449
- actionDetails?: {
9450
- templateId?: string | undefined;
9451
- isImmediateCorrection?: boolean | undefined;
9452
- } | null | undefined;
9453
9148
  originalActionId?: string | null | undefined;
9454
9149
  } | {
9455
9150
  type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
@@ -9462,10 +9157,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9462
9157
  createdByRole: string;
9463
9158
  createdBySignature?: string | null | undefined;
9464
9159
  createdAtLocation?: string | null | undefined;
9465
- actionDetails?: {
9466
- templateId?: string | undefined;
9467
- isImmediateCorrection?: boolean | undefined;
9468
- } | null | undefined;
9469
9160
  originalActionId?: string | null | undefined;
9470
9161
  })[];
9471
9162
  trackingId: string;
@@ -9500,8 +9191,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9500
9191
  street?: string | null | undefined;
9501
9192
  zipCode?: string | null | undefined;
9502
9193
  } | {
9503
- firstname?: string | null | undefined;
9504
- surname?: string | null | undefined;
9194
+ firstname: string;
9195
+ surname: string;
9505
9196
  middlename?: string | null | undefined;
9506
9197
  } | {
9507
9198
  country: string;
@@ -9548,8 +9239,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9548
9239
  street?: string | null | undefined;
9549
9240
  zipCode?: string | null | undefined;
9550
9241
  } | {
9551
- firstname?: string | null | undefined;
9552
- surname?: string | null | undefined;
9242
+ firstname: string;
9243
+ surname: string;
9553
9244
  middlename?: string | null | undefined;
9554
9245
  } | {
9555
9246
  country: string;
@@ -9577,10 +9268,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9577
9268
  start: string;
9578
9269
  end: string;
9579
9270
  } | null | undefined> | null | undefined;
9580
- actionDetails?: {
9581
- templateId?: string | undefined;
9582
- isImmediateCorrection?: boolean | undefined;
9583
- } | null | undefined;
9584
9271
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9585
9272
  } | {
9586
9273
  type: "UNASSIGN";
@@ -9607,8 +9294,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9607
9294
  street?: string | null | undefined;
9608
9295
  zipCode?: string | null | undefined;
9609
9296
  } | {
9610
- firstname?: string | null | undefined;
9611
- surname?: string | null | undefined;
9297
+ firstname: string;
9298
+ surname: string;
9612
9299
  middlename?: string | null | undefined;
9613
9300
  } | {
9614
9301
  country: string;
@@ -9654,8 +9341,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9654
9341
  street?: string | null | undefined;
9655
9342
  zipCode?: string | null | undefined;
9656
9343
  } | {
9657
- firstname?: string | null | undefined;
9658
- surname?: string | null | undefined;
9344
+ firstname: string;
9345
+ surname: string;
9659
9346
  middlename?: string | null | undefined;
9660
9347
  } | {
9661
9348
  country: string;
@@ -9683,10 +9370,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9683
9370
  start: string;
9684
9371
  end: string;
9685
9372
  } | null | undefined> | null | undefined;
9686
- actionDetails?: {
9687
- templateId?: string | undefined;
9688
- isImmediateCorrection?: boolean | undefined;
9689
- } | null | undefined;
9690
9373
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9691
9374
  } | {
9692
9375
  type: "REGISTER";
@@ -9713,8 +9396,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9713
9396
  street?: string | null | undefined;
9714
9397
  zipCode?: string | null | undefined;
9715
9398
  } | {
9716
- firstname?: string | null | undefined;
9717
- surname?: string | null | undefined;
9399
+ firstname: string;
9400
+ surname: string;
9718
9401
  middlename?: string | null | undefined;
9719
9402
  } | {
9720
9403
  country: string;
@@ -9760,8 +9443,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9760
9443
  street?: string | null | undefined;
9761
9444
  zipCode?: string | null | undefined;
9762
9445
  } | {
9763
- firstname?: string | null | undefined;
9764
- surname?: string | null | undefined;
9446
+ firstname: string;
9447
+ surname: string;
9765
9448
  middlename?: string | null | undefined;
9766
9449
  } | {
9767
9450
  country: string;
@@ -9789,10 +9472,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9789
9472
  start: string;
9790
9473
  end: string;
9791
9474
  } | null | undefined> | null | undefined;
9792
- actionDetails?: {
9793
- templateId?: string | undefined;
9794
- isImmediateCorrection?: boolean | undefined;
9795
- } | null | undefined;
9796
9475
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9797
9476
  registrationNumber?: string | undefined;
9798
9477
  } | {
@@ -9820,8 +9499,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9820
9499
  street?: string | null | undefined;
9821
9500
  zipCode?: string | null | undefined;
9822
9501
  } | {
9823
- firstname?: string | null | undefined;
9824
- surname?: string | null | undefined;
9502
+ firstname: string;
9503
+ surname: string;
9825
9504
  middlename?: string | null | undefined;
9826
9505
  } | {
9827
9506
  country: string;
@@ -9867,8 +9546,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9867
9546
  street?: string | null | undefined;
9868
9547
  zipCode?: string | null | undefined;
9869
9548
  } | {
9870
- firstname?: string | null | undefined;
9871
- surname?: string | null | undefined;
9549
+ firstname: string;
9550
+ surname: string;
9872
9551
  middlename?: string | null | undefined;
9873
9552
  } | {
9874
9553
  country: string;
@@ -9896,10 +9575,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9896
9575
  start: string;
9897
9576
  end: string;
9898
9577
  } | null | undefined> | null | undefined;
9899
- actionDetails?: {
9900
- templateId?: string | undefined;
9901
- isImmediateCorrection?: boolean | undefined;
9902
- } | null | undefined;
9903
9578
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9904
9579
  } | {
9905
9580
  type: "VALIDATE";
@@ -9926,8 +9601,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9926
9601
  street?: string | null | undefined;
9927
9602
  zipCode?: string | null | undefined;
9928
9603
  } | {
9929
- firstname?: string | null | undefined;
9930
- surname?: string | null | undefined;
9604
+ firstname: string;
9605
+ surname: string;
9931
9606
  middlename?: string | null | undefined;
9932
9607
  } | {
9933
9608
  country: string;
@@ -9973,8 +9648,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9973
9648
  street?: string | null | undefined;
9974
9649
  zipCode?: string | null | undefined;
9975
9650
  } | {
9976
- firstname?: string | null | undefined;
9977
- surname?: string | null | undefined;
9651
+ firstname: string;
9652
+ surname: string;
9978
9653
  middlename?: string | null | undefined;
9979
9654
  } | {
9980
9655
  country: string;
@@ -10002,10 +9677,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10002
9677
  start: string;
10003
9678
  end: string;
10004
9679
  } | null | undefined> | null | undefined;
10005
- actionDetails?: {
10006
- templateId?: string | undefined;
10007
- isImmediateCorrection?: boolean | undefined;
10008
- } | null | undefined;
10009
9680
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10010
9681
  } | {
10011
9682
  type: "REJECT";
@@ -10036,8 +9707,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10036
9707
  street?: string | null | undefined;
10037
9708
  zipCode?: string | null | undefined;
10038
9709
  } | {
10039
- firstname?: string | null | undefined;
10040
- surname?: string | null | undefined;
9710
+ firstname: string;
9711
+ surname: string;
10041
9712
  middlename?: string | null | undefined;
10042
9713
  } | {
10043
9714
  country: string;
@@ -10083,8 +9754,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10083
9754
  street?: string | null | undefined;
10084
9755
  zipCode?: string | null | undefined;
10085
9756
  } | {
10086
- firstname?: string | null | undefined;
10087
- surname?: string | null | undefined;
9757
+ firstname: string;
9758
+ surname: string;
10088
9759
  middlename?: string | null | undefined;
10089
9760
  } | {
10090
9761
  country: string;
@@ -10112,10 +9783,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10112
9783
  start: string;
10113
9784
  end: string;
10114
9785
  } | null | undefined> | null | undefined;
10115
- actionDetails?: {
10116
- templateId?: string | undefined;
10117
- isImmediateCorrection?: boolean | undefined;
10118
- } | null | undefined;
10119
9786
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10120
9787
  } | {
10121
9788
  type: "MARKED_AS_DUPLICATE";
@@ -10142,8 +9809,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10142
9809
  street?: string | null | undefined;
10143
9810
  zipCode?: string | null | undefined;
10144
9811
  } | {
10145
- firstname?: string | null | undefined;
10146
- surname?: string | null | undefined;
9812
+ firstname: string;
9813
+ surname: string;
10147
9814
  middlename?: string | null | undefined;
10148
9815
  } | {
10149
9816
  country: string;
@@ -10189,8 +9856,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10189
9856
  street?: string | null | undefined;
10190
9857
  zipCode?: string | null | undefined;
10191
9858
  } | {
10192
- firstname?: string | null | undefined;
10193
- surname?: string | null | undefined;
9859
+ firstname: string;
9860
+ surname: string;
10194
9861
  middlename?: string | null | undefined;
10195
9862
  } | {
10196
9863
  country: string;
@@ -10218,10 +9885,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10218
9885
  start: string;
10219
9886
  end: string;
10220
9887
  } | null | undefined> | null | undefined;
10221
- actionDetails?: {
10222
- templateId?: string | undefined;
10223
- isImmediateCorrection?: boolean | undefined;
10224
- } | null | undefined;
10225
9888
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10226
9889
  } | {
10227
9890
  type: "ARCHIVE";
@@ -10252,8 +9915,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10252
9915
  street?: string | null | undefined;
10253
9916
  zipCode?: string | null | undefined;
10254
9917
  } | {
10255
- firstname?: string | null | undefined;
10256
- surname?: string | null | undefined;
9918
+ firstname: string;
9919
+ surname: string;
10257
9920
  middlename?: string | null | undefined;
10258
9921
  } | {
10259
9922
  country: string;
@@ -10299,8 +9962,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10299
9962
  street?: string | null | undefined;
10300
9963
  zipCode?: string | null | undefined;
10301
9964
  } | {
10302
- firstname?: string | null | undefined;
10303
- surname?: string | null | undefined;
9965
+ firstname: string;
9966
+ surname: string;
10304
9967
  middlename?: string | null | undefined;
10305
9968
  } | {
10306
9969
  country: string;
@@ -10328,10 +9991,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10328
9991
  start: string;
10329
9992
  end: string;
10330
9993
  } | null | undefined> | null | undefined;
10331
- actionDetails?: {
10332
- templateId?: string | undefined;
10333
- isImmediateCorrection?: boolean | undefined;
10334
- } | null | undefined;
10335
9994
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10336
9995
  } | {
10337
9996
  type: "CREATE";
@@ -10358,8 +10017,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10358
10017
  street?: string | null | undefined;
10359
10018
  zipCode?: string | null | undefined;
10360
10019
  } | {
10361
- firstname?: string | null | undefined;
10362
- surname?: string | null | undefined;
10020
+ firstname: string;
10021
+ surname: string;
10363
10022
  middlename?: string | null | undefined;
10364
10023
  } | {
10365
10024
  country: string;
@@ -10405,8 +10064,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10405
10064
  street?: string | null | undefined;
10406
10065
  zipCode?: string | null | undefined;
10407
10066
  } | {
10408
- firstname?: string | null | undefined;
10409
- surname?: string | null | undefined;
10067
+ firstname: string;
10068
+ surname: string;
10410
10069
  middlename?: string | null | undefined;
10411
10070
  } | {
10412
10071
  country: string;
@@ -10434,10 +10093,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10434
10093
  start: string;
10435
10094
  end: string;
10436
10095
  } | null | undefined> | null | undefined;
10437
- actionDetails?: {
10438
- templateId?: string | undefined;
10439
- isImmediateCorrection?: boolean | undefined;
10440
- } | null | undefined;
10441
10096
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10442
10097
  } | {
10443
10098
  type: "NOTIFY";
@@ -10464,8 +10119,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10464
10119
  street?: string | null | undefined;
10465
10120
  zipCode?: string | null | undefined;
10466
10121
  } | {
10467
- firstname?: string | null | undefined;
10468
- surname?: string | null | undefined;
10122
+ firstname: string;
10123
+ surname: string;
10469
10124
  middlename?: string | null | undefined;
10470
10125
  } | {
10471
10126
  country: string;
@@ -10511,8 +10166,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10511
10166
  street?: string | null | undefined;
10512
10167
  zipCode?: string | null | undefined;
10513
10168
  } | {
10514
- firstname?: string | null | undefined;
10515
- surname?: string | null | undefined;
10169
+ firstname: string;
10170
+ surname: string;
10516
10171
  middlename?: string | null | undefined;
10517
10172
  } | {
10518
10173
  country: string;
@@ -10540,10 +10195,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10540
10195
  start: string;
10541
10196
  end: string;
10542
10197
  } | null | undefined> | null | undefined;
10543
- actionDetails?: {
10544
- templateId?: string | undefined;
10545
- isImmediateCorrection?: boolean | undefined;
10546
- } | null | undefined;
10547
10198
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10548
10199
  } | {
10549
10200
  type: "PRINT_CERTIFICATE";
@@ -10570,8 +10221,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10570
10221
  street?: string | null | undefined;
10571
10222
  zipCode?: string | null | undefined;
10572
10223
  } | {
10573
- firstname?: string | null | undefined;
10574
- surname?: string | null | undefined;
10224
+ firstname: string;
10225
+ surname: string;
10575
10226
  middlename?: string | null | undefined;
10576
10227
  } | {
10577
10228
  country: string;
@@ -10599,6 +10250,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10599
10250
  start: string;
10600
10251
  end: string;
10601
10252
  } | null | undefined>;
10253
+ content?: {
10254
+ templateId?: string | undefined;
10255
+ } | null | undefined;
10602
10256
  createdBySignature?: string | null | undefined;
10603
10257
  createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10604
10258
  annotation?: Record<string, string | number | boolean | {
@@ -10617,8 +10271,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10617
10271
  street?: string | null | undefined;
10618
10272
  zipCode?: string | null | undefined;
10619
10273
  } | {
10620
- firstname?: string | null | undefined;
10621
- surname?: string | null | undefined;
10274
+ firstname: string;
10275
+ surname: string;
10622
10276
  middlename?: string | null | undefined;
10623
10277
  } | {
10624
10278
  country: string;
@@ -10646,10 +10300,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10646
10300
  start: string;
10647
10301
  end: string;
10648
10302
  } | null | undefined> | null | undefined;
10649
- actionDetails?: {
10650
- templateId?: string | undefined;
10651
- isImmediateCorrection?: boolean | undefined;
10652
- } | null | undefined;
10653
10303
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10654
10304
  } | {
10655
10305
  type: "REQUEST_CORRECTION";
@@ -10676,8 +10326,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10676
10326
  street?: string | null | undefined;
10677
10327
  zipCode?: string | null | undefined;
10678
10328
  } | {
10679
- firstname?: string | null | undefined;
10680
- surname?: string | null | undefined;
10329
+ firstname: string;
10330
+ surname: string;
10681
10331
  middlename?: string | null | undefined;
10682
10332
  } | {
10683
10333
  country: string;
@@ -10723,8 +10373,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10723
10373
  street?: string | null | undefined;
10724
10374
  zipCode?: string | null | undefined;
10725
10375
  } | {
10726
- firstname?: string | null | undefined;
10727
- surname?: string | null | undefined;
10376
+ firstname: string;
10377
+ surname: string;
10728
10378
  middlename?: string | null | undefined;
10729
10379
  } | {
10730
10380
  country: string;
@@ -10752,10 +10402,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10752
10402
  start: string;
10753
10403
  end: string;
10754
10404
  } | null | undefined> | null | undefined;
10755
- actionDetails?: {
10756
- templateId?: string | undefined;
10757
- isImmediateCorrection?: boolean | undefined;
10758
- } | null | undefined;
10759
10405
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10760
10406
  } | {
10761
10407
  type: "APPROVE_CORRECTION";
@@ -10782,8 +10428,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10782
10428
  street?: string | null | undefined;
10783
10429
  zipCode?: string | null | undefined;
10784
10430
  } | {
10785
- firstname?: string | null | undefined;
10786
- surname?: string | null | undefined;
10431
+ firstname: string;
10432
+ surname: string;
10787
10433
  middlename?: string | null | undefined;
10788
10434
  } | {
10789
10435
  country: string;
@@ -10830,8 +10476,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10830
10476
  street?: string | null | undefined;
10831
10477
  zipCode?: string | null | undefined;
10832
10478
  } | {
10833
- firstname?: string | null | undefined;
10834
- surname?: string | null | undefined;
10479
+ firstname: string;
10480
+ surname: string;
10835
10481
  middlename?: string | null | undefined;
10836
10482
  } | {
10837
10483
  country: string;
@@ -10859,15 +10505,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10859
10505
  start: string;
10860
10506
  end: string;
10861
10507
  } | null | undefined> | null | undefined;
10862
- actionDetails?: {
10863
- templateId?: string | undefined;
10864
- isImmediateCorrection?: boolean | undefined;
10865
- } | null | undefined;
10866
10508
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10867
10509
  } | {
10868
10510
  type: "REJECT_CORRECTION";
10869
10511
  id: string & import("zod").BRAND<"UUID">;
10870
10512
  status: "Rejected" | "Requested" | "Accepted";
10513
+ reason: {
10514
+ message: string;
10515
+ isDuplicate?: boolean | undefined;
10516
+ };
10871
10517
  transactionId: string;
10872
10518
  createdByUserType: "system" | "user";
10873
10519
  createdAt: string;
@@ -10889,8 +10535,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10889
10535
  street?: string | null | undefined;
10890
10536
  zipCode?: string | null | undefined;
10891
10537
  } | {
10892
- firstname?: string | null | undefined;
10893
- surname?: string | null | undefined;
10538
+ firstname: string;
10539
+ surname: string;
10894
10540
  middlename?: string | null | undefined;
10895
10541
  } | {
10896
10542
  country: string;
@@ -10937,8 +10583,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10937
10583
  street?: string | null | undefined;
10938
10584
  zipCode?: string | null | undefined;
10939
10585
  } | {
10940
- firstname?: string | null | undefined;
10941
- surname?: string | null | undefined;
10586
+ firstname: string;
10587
+ surname: string;
10942
10588
  middlename?: string | null | undefined;
10943
10589
  } | {
10944
10590
  country: string;
@@ -10966,10 +10612,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10966
10612
  start: string;
10967
10613
  end: string;
10968
10614
  } | null | undefined> | null | undefined;
10969
- actionDetails?: {
10970
- templateId?: string | undefined;
10971
- isImmediateCorrection?: boolean | undefined;
10972
- } | null | undefined;
10973
10615
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10974
10616
  } | {
10975
10617
  type: "READ";
@@ -10996,8 +10638,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10996
10638
  street?: string | null | undefined;
10997
10639
  zipCode?: string | null | undefined;
10998
10640
  } | {
10999
- firstname?: string | null | undefined;
11000
- surname?: string | null | undefined;
10641
+ firstname: string;
10642
+ surname: string;
11001
10643
  middlename?: string | null | undefined;
11002
10644
  } | {
11003
10645
  country: string;
@@ -11043,8 +10685,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
11043
10685
  street?: string | null | undefined;
11044
10686
  zipCode?: string | null | undefined;
11045
10687
  } | {
11046
- firstname?: string | null | undefined;
11047
- surname?: string | null | undefined;
10688
+ firstname: string;
10689
+ surname: string;
11048
10690
  middlename?: string | null | undefined;
11049
10691
  } | {
11050
10692
  country: string;
@@ -11072,10 +10714,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
11072
10714
  start: string;
11073
10715
  end: string;
11074
10716
  } | null | undefined> | null | undefined;
11075
- actionDetails?: {
11076
- templateId?: string | undefined;
11077
- isImmediateCorrection?: boolean | undefined;
11078
- } | null | undefined;
11079
10717
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
11080
10718
  } | {
11081
10719
  type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
@@ -11088,10 +10726,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
11088
10726
  createdByRole: string;
11089
10727
  createdBySignature?: string | null | undefined;
11090
10728
  createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
11091
- actionDetails?: {
11092
- templateId?: string | undefined;
11093
- isImmediateCorrection?: boolean | undefined;
11094
- } | null | undefined;
11095
10729
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
11096
10730
  })[];
11097
10731
  trackingId: string;
@@ -11171,7 +10805,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
11171
10805
  set: import("@trpc/server").TRPCMutationProcedure<{
11172
10806
  input: {
11173
10807
  id: string;
11174
- externalId: string | null;
11175
10808
  name: string;
11176
10809
  partOf: string | null;
11177
10810
  }[];
@@ -11182,7 +10815,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
11182
10815
  input: void;
11183
10816
  output: {
11184
10817
  id: string & import("zod").BRAND<"UUID">;
11185
- externalId: string | null;
11186
10818
  name: string;
11187
10819
  partOf: (string & import("zod").BRAND<"UUID">) | null;
11188
10820
  }[];
@@ -11244,10 +10876,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
11244
10876
  clauses: {
11245
10877
  status?: {
11246
10878
  type: "exact";
11247
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
10879
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
11248
10880
  } | {
11249
10881
  type: "anyOf";
11250
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
10882
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
11251
10883
  } | undefined;
11252
10884
  data?: any;
11253
10885
  createdByUserType?: {
@@ -11353,10 +10985,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
11353
10985
  clauses: {
11354
10986
  status?: {
11355
10987
  type: "exact";
11356
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
10988
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
11357
10989
  } | {
11358
10990
  type: "anyOf";
11359
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
10991
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
11360
10992
  } | undefined;
11361
10993
  data?: any;
11362
10994
  createdByUserType?: {
@@ -11466,6 +11098,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
11466
11098
  label: import("../commons").TranslationConfig;
11467
11099
  }[];
11468
11100
  icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Assigned" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
11101
+ emptyMessage?: import("../commons").TranslationConfig | undefined;
11469
11102
  }[];
11470
11103
  meta: import("trpc-to-openapi").OpenApiMeta;
11471
11104
  }>;