@opencrvs/toolkit 1.8.1-rc.e32d7b8 → 1.8.1-rc.ebf61ab

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 (32) hide show
  1. package/dist/commons/api/router.d.ts +433 -796
  2. package/dist/commons/conditionals/validate.d.ts +11 -2
  3. package/dist/commons/events/ActionConfig.d.ts +3924 -642
  4. package/dist/commons/events/ActionDocument.d.ts +1302 -1389
  5. package/dist/commons/events/ActionInput.d.ts +658 -1136
  6. package/dist/commons/events/AdvancedSearchConfig.d.ts +83 -65
  7. package/dist/commons/events/CompositeFieldValue.d.ts +6 -6
  8. package/dist/commons/events/CountryConfigQueryInput.d.ts +88 -88
  9. package/dist/commons/events/Draft.d.ts +48 -92
  10. package/dist/commons/events/EventConfig.d.ts +1281 -262
  11. package/dist/commons/events/EventDocument.d.ts +475 -846
  12. package/dist/commons/events/EventIndex.d.ts +184 -62
  13. package/dist/commons/events/EventMetadata.d.ts +9 -9
  14. package/dist/commons/events/FieldConfig.d.ts +517 -71
  15. package/dist/commons/events/FieldTypeMapping.d.ts +16 -16
  16. package/dist/commons/events/FieldValue.d.ts +12 -12
  17. package/dist/commons/events/FormConfig.d.ts +1956 -378
  18. package/dist/commons/events/PageConfig.d.ts +524 -82
  19. package/dist/commons/events/WorkqueueConfig.d.ts +288 -164
  20. package/dist/commons/events/defineConfig.d.ts +183 -48
  21. package/dist/commons/events/event.d.ts +68 -6
  22. package/dist/commons/events/field.d.ts +14 -0
  23. package/dist/commons/events/test.utils.d.ts +17 -13
  24. package/dist/commons/events/utils.d.ts +332 -96
  25. package/dist/conditionals/index.js +3 -2
  26. package/dist/events/index.js +293 -108
  27. package/package.json +1 -1
  28. package/tsconfig.json +1 -1
  29. package/dist/commons/conditionals/conditionals.test.d.ts +0 -2
  30. package/dist/commons/conditionals/validate-address.test.d.ts +0 -2
  31. package/dist/commons/conditionals/validate.test.d.ts +0 -2
  32. 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;
@@ -7752,7 +7504,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7752
7504
  output: {
7753
7505
  type: string;
7754
7506
  id: string & import("zod").BRAND<"UUID">;
7755
- status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
7507
+ status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
7756
7508
  createdAt: string;
7757
7509
  createdBy: string;
7758
7510
  declaration: Record<string, string | number | boolean | {
@@ -7782,8 +7534,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7782
7534
  surname: string;
7783
7535
  middlename?: string | undefined;
7784
7536
  } | {
7785
- firstname?: string | null | undefined;
7786
- surname?: string | null | undefined;
7537
+ firstname: string;
7538
+ surname: string;
7787
7539
  middlename?: string | null | undefined;
7788
7540
  } | {
7789
7541
  country: string;
@@ -7870,8 +7622,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7870
7622
  street?: string | null | undefined;
7871
7623
  zipCode?: string | null | undefined;
7872
7624
  } | {
7873
- firstname?: string | null | undefined;
7874
- surname?: string | null | undefined;
7625
+ firstname: string;
7626
+ surname: string;
7875
7627
  middlename?: string | null | undefined;
7876
7628
  } | {
7877
7629
  country: string;
@@ -7918,8 +7670,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7918
7670
  street?: string | null | undefined;
7919
7671
  zipCode?: string | null | undefined;
7920
7672
  } | {
7921
- firstname?: string | null | undefined;
7922
- surname?: string | null | undefined;
7673
+ firstname: string;
7674
+ surname: string;
7923
7675
  middlename?: string | null | undefined;
7924
7676
  } | {
7925
7677
  country: string;
@@ -7947,10 +7699,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7947
7699
  start: string;
7948
7700
  end: string;
7949
7701
  } | null | undefined> | null | undefined;
7950
- actionDetails?: {
7951
- templateId?: string | undefined;
7952
- isImmediateCorrection?: boolean | undefined;
7953
- } | null | undefined;
7954
7702
  originalActionId?: string | null | undefined;
7955
7703
  } | {
7956
7704
  type: "UNASSIGN";
@@ -7977,8 +7725,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7977
7725
  street?: string | null | undefined;
7978
7726
  zipCode?: string | null | undefined;
7979
7727
  } | {
7980
- firstname?: string | null | undefined;
7981
- surname?: string | null | undefined;
7728
+ firstname: string;
7729
+ surname: string;
7982
7730
  middlename?: string | null | undefined;
7983
7731
  } | {
7984
7732
  country: string;
@@ -8024,8 +7772,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8024
7772
  street?: string | null | undefined;
8025
7773
  zipCode?: string | null | undefined;
8026
7774
  } | {
8027
- firstname?: string | null | undefined;
8028
- surname?: string | null | undefined;
7775
+ firstname: string;
7776
+ surname: string;
8029
7777
  middlename?: string | null | undefined;
8030
7778
  } | {
8031
7779
  country: string;
@@ -8053,10 +7801,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8053
7801
  start: string;
8054
7802
  end: string;
8055
7803
  } | null | undefined> | null | undefined;
8056
- actionDetails?: {
8057
- templateId?: string | undefined;
8058
- isImmediateCorrection?: boolean | undefined;
8059
- } | null | undefined;
8060
7804
  originalActionId?: string | null | undefined;
8061
7805
  } | {
8062
7806
  type: "REGISTER";
@@ -8083,8 +7827,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8083
7827
  street?: string | null | undefined;
8084
7828
  zipCode?: string | null | undefined;
8085
7829
  } | {
8086
- firstname?: string | null | undefined;
8087
- surname?: string | null | undefined;
7830
+ firstname: string;
7831
+ surname: string;
8088
7832
  middlename?: string | null | undefined;
8089
7833
  } | {
8090
7834
  country: string;
@@ -8130,8 +7874,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8130
7874
  street?: string | null | undefined;
8131
7875
  zipCode?: string | null | undefined;
8132
7876
  } | {
8133
- firstname?: string | null | undefined;
8134
- surname?: string | null | undefined;
7877
+ firstname: string;
7878
+ surname: string;
8135
7879
  middlename?: string | null | undefined;
8136
7880
  } | {
8137
7881
  country: string;
@@ -8159,10 +7903,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8159
7903
  start: string;
8160
7904
  end: string;
8161
7905
  } | null | undefined> | null | undefined;
8162
- actionDetails?: {
8163
- templateId?: string | undefined;
8164
- isImmediateCorrection?: boolean | undefined;
8165
- } | null | undefined;
8166
7906
  originalActionId?: string | null | undefined;
8167
7907
  registrationNumber?: string | undefined;
8168
7908
  } | {
@@ -8190,8 +7930,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8190
7930
  street?: string | null | undefined;
8191
7931
  zipCode?: string | null | undefined;
8192
7932
  } | {
8193
- firstname?: string | null | undefined;
8194
- surname?: string | null | undefined;
7933
+ firstname: string;
7934
+ surname: string;
8195
7935
  middlename?: string | null | undefined;
8196
7936
  } | {
8197
7937
  country: string;
@@ -8237,8 +7977,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8237
7977
  street?: string | null | undefined;
8238
7978
  zipCode?: string | null | undefined;
8239
7979
  } | {
8240
- firstname?: string | null | undefined;
8241
- surname?: string | null | undefined;
7980
+ firstname: string;
7981
+ surname: string;
8242
7982
  middlename?: string | null | undefined;
8243
7983
  } | {
8244
7984
  country: string;
@@ -8266,10 +8006,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8266
8006
  start: string;
8267
8007
  end: string;
8268
8008
  } | null | undefined> | null | undefined;
8269
- actionDetails?: {
8270
- templateId?: string | undefined;
8271
- isImmediateCorrection?: boolean | undefined;
8272
- } | null | undefined;
8273
8009
  originalActionId?: string | null | undefined;
8274
8010
  } | {
8275
8011
  type: "VALIDATE";
@@ -8296,8 +8032,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8296
8032
  street?: string | null | undefined;
8297
8033
  zipCode?: string | null | undefined;
8298
8034
  } | {
8299
- firstname?: string | null | undefined;
8300
- surname?: string | null | undefined;
8035
+ firstname: string;
8036
+ surname: string;
8301
8037
  middlename?: string | null | undefined;
8302
8038
  } | {
8303
8039
  country: string;
@@ -8343,8 +8079,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8343
8079
  street?: string | null | undefined;
8344
8080
  zipCode?: string | null | undefined;
8345
8081
  } | {
8346
- firstname?: string | null | undefined;
8347
- surname?: string | null | undefined;
8082
+ firstname: string;
8083
+ surname: string;
8348
8084
  middlename?: string | null | undefined;
8349
8085
  } | {
8350
8086
  country: string;
@@ -8372,10 +8108,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8372
8108
  start: string;
8373
8109
  end: string;
8374
8110
  } | null | undefined> | null | undefined;
8375
- actionDetails?: {
8376
- templateId?: string | undefined;
8377
- isImmediateCorrection?: boolean | undefined;
8378
- } | null | undefined;
8379
8111
  originalActionId?: string | null | undefined;
8380
8112
  } | {
8381
8113
  type: "REJECT";
@@ -8406,8 +8138,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8406
8138
  street?: string | null | undefined;
8407
8139
  zipCode?: string | null | undefined;
8408
8140
  } | {
8409
- firstname?: string | null | undefined;
8410
- surname?: string | null | undefined;
8141
+ firstname: string;
8142
+ surname: string;
8411
8143
  middlename?: string | null | undefined;
8412
8144
  } | {
8413
8145
  country: string;
@@ -8453,8 +8185,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8453
8185
  street?: string | null | undefined;
8454
8186
  zipCode?: string | null | undefined;
8455
8187
  } | {
8456
- firstname?: string | null | undefined;
8457
- surname?: string | null | undefined;
8188
+ firstname: string;
8189
+ surname: string;
8458
8190
  middlename?: string | null | undefined;
8459
8191
  } | {
8460
8192
  country: string;
@@ -8482,10 +8214,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8482
8214
  start: string;
8483
8215
  end: string;
8484
8216
  } | null | undefined> | null | undefined;
8485
- actionDetails?: {
8486
- templateId?: string | undefined;
8487
- isImmediateCorrection?: boolean | undefined;
8488
- } | null | undefined;
8489
8217
  originalActionId?: string | null | undefined;
8490
8218
  } | {
8491
8219
  type: "MARKED_AS_DUPLICATE";
@@ -8512,8 +8240,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8512
8240
  street?: string | null | undefined;
8513
8241
  zipCode?: string | null | undefined;
8514
8242
  } | {
8515
- firstname?: string | null | undefined;
8516
- surname?: string | null | undefined;
8243
+ firstname: string;
8244
+ surname: string;
8517
8245
  middlename?: string | null | undefined;
8518
8246
  } | {
8519
8247
  country: string;
@@ -8559,8 +8287,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8559
8287
  street?: string | null | undefined;
8560
8288
  zipCode?: string | null | undefined;
8561
8289
  } | {
8562
- firstname?: string | null | undefined;
8563
- surname?: string | null | undefined;
8290
+ firstname: string;
8291
+ surname: string;
8564
8292
  middlename?: string | null | undefined;
8565
8293
  } | {
8566
8294
  country: string;
@@ -8588,10 +8316,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8588
8316
  start: string;
8589
8317
  end: string;
8590
8318
  } | null | undefined> | null | undefined;
8591
- actionDetails?: {
8592
- templateId?: string | undefined;
8593
- isImmediateCorrection?: boolean | undefined;
8594
- } | null | undefined;
8595
8319
  originalActionId?: string | null | undefined;
8596
8320
  } | {
8597
8321
  type: "ARCHIVE";
@@ -8622,8 +8346,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8622
8346
  street?: string | null | undefined;
8623
8347
  zipCode?: string | null | undefined;
8624
8348
  } | {
8625
- firstname?: string | null | undefined;
8626
- surname?: string | null | undefined;
8349
+ firstname: string;
8350
+ surname: string;
8627
8351
  middlename?: string | null | undefined;
8628
8352
  } | {
8629
8353
  country: string;
@@ -8669,8 +8393,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8669
8393
  street?: string | null | undefined;
8670
8394
  zipCode?: string | null | undefined;
8671
8395
  } | {
8672
- firstname?: string | null | undefined;
8673
- surname?: string | null | undefined;
8396
+ firstname: string;
8397
+ surname: string;
8674
8398
  middlename?: string | null | undefined;
8675
8399
  } | {
8676
8400
  country: string;
@@ -8698,10 +8422,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8698
8422
  start: string;
8699
8423
  end: string;
8700
8424
  } | null | undefined> | null | undefined;
8701
- actionDetails?: {
8702
- templateId?: string | undefined;
8703
- isImmediateCorrection?: boolean | undefined;
8704
- } | null | undefined;
8705
8425
  originalActionId?: string | null | undefined;
8706
8426
  } | {
8707
8427
  type: "CREATE";
@@ -8728,8 +8448,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8728
8448
  street?: string | null | undefined;
8729
8449
  zipCode?: string | null | undefined;
8730
8450
  } | {
8731
- firstname?: string | null | undefined;
8732
- surname?: string | null | undefined;
8451
+ firstname: string;
8452
+ surname: string;
8733
8453
  middlename?: string | null | undefined;
8734
8454
  } | {
8735
8455
  country: string;
@@ -8775,8 +8495,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8775
8495
  street?: string | null | undefined;
8776
8496
  zipCode?: string | null | undefined;
8777
8497
  } | {
8778
- firstname?: string | null | undefined;
8779
- surname?: string | null | undefined;
8498
+ firstname: string;
8499
+ surname: string;
8780
8500
  middlename?: string | null | undefined;
8781
8501
  } | {
8782
8502
  country: string;
@@ -8804,10 +8524,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8804
8524
  start: string;
8805
8525
  end: string;
8806
8526
  } | null | undefined> | null | undefined;
8807
- actionDetails?: {
8808
- templateId?: string | undefined;
8809
- isImmediateCorrection?: boolean | undefined;
8810
- } | null | undefined;
8811
8527
  originalActionId?: string | null | undefined;
8812
8528
  } | {
8813
8529
  type: "NOTIFY";
@@ -8834,8 +8550,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8834
8550
  street?: string | null | undefined;
8835
8551
  zipCode?: string | null | undefined;
8836
8552
  } | {
8837
- firstname?: string | null | undefined;
8838
- surname?: string | null | undefined;
8553
+ firstname: string;
8554
+ surname: string;
8839
8555
  middlename?: string | null | undefined;
8840
8556
  } | {
8841
8557
  country: string;
@@ -8881,8 +8597,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8881
8597
  street?: string | null | undefined;
8882
8598
  zipCode?: string | null | undefined;
8883
8599
  } | {
8884
- firstname?: string | null | undefined;
8885
- surname?: string | null | undefined;
8600
+ firstname: string;
8601
+ surname: string;
8886
8602
  middlename?: string | null | undefined;
8887
8603
  } | {
8888
8604
  country: string;
@@ -8910,10 +8626,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8910
8626
  start: string;
8911
8627
  end: string;
8912
8628
  } | null | undefined> | null | undefined;
8913
- actionDetails?: {
8914
- templateId?: string | undefined;
8915
- isImmediateCorrection?: boolean | undefined;
8916
- } | null | undefined;
8917
8629
  originalActionId?: string | null | undefined;
8918
8630
  } | {
8919
8631
  type: "PRINT_CERTIFICATE";
@@ -8940,8 +8652,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8940
8652
  street?: string | null | undefined;
8941
8653
  zipCode?: string | null | undefined;
8942
8654
  } | {
8943
- firstname?: string | null | undefined;
8944
- surname?: string | null | undefined;
8655
+ firstname: string;
8656
+ surname: string;
8945
8657
  middlename?: string | null | undefined;
8946
8658
  } | {
8947
8659
  country: string;
@@ -8969,6 +8681,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8969
8681
  start: string;
8970
8682
  end: string;
8971
8683
  } | null | undefined>;
8684
+ content?: {
8685
+ templateId?: string | undefined;
8686
+ } | null | undefined;
8972
8687
  createdBySignature?: string | null | undefined;
8973
8688
  createdAtLocation?: string | null | undefined;
8974
8689
  annotation?: Record<string, string | number | boolean | {
@@ -8987,8 +8702,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8987
8702
  street?: string | null | undefined;
8988
8703
  zipCode?: string | null | undefined;
8989
8704
  } | {
8990
- firstname?: string | null | undefined;
8991
- surname?: string | null | undefined;
8705
+ firstname: string;
8706
+ surname: string;
8992
8707
  middlename?: string | null | undefined;
8993
8708
  } | {
8994
8709
  country: string;
@@ -9016,10 +8731,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9016
8731
  start: string;
9017
8732
  end: string;
9018
8733
  } | null | undefined> | null | undefined;
9019
- actionDetails?: {
9020
- templateId?: string | undefined;
9021
- isImmediateCorrection?: boolean | undefined;
9022
- } | null | undefined;
9023
8734
  originalActionId?: string | null | undefined;
9024
8735
  } | {
9025
8736
  type: "REQUEST_CORRECTION";
@@ -9046,8 +8757,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9046
8757
  street?: string | null | undefined;
9047
8758
  zipCode?: string | null | undefined;
9048
8759
  } | {
9049
- firstname?: string | null | undefined;
9050
- surname?: string | null | undefined;
8760
+ firstname: string;
8761
+ surname: string;
9051
8762
  middlename?: string | null | undefined;
9052
8763
  } | {
9053
8764
  country: string;
@@ -9093,8 +8804,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9093
8804
  street?: string | null | undefined;
9094
8805
  zipCode?: string | null | undefined;
9095
8806
  } | {
9096
- firstname?: string | null | undefined;
9097
- surname?: string | null | undefined;
8807
+ firstname: string;
8808
+ surname: string;
9098
8809
  middlename?: string | null | undefined;
9099
8810
  } | {
9100
8811
  country: string;
@@ -9122,10 +8833,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9122
8833
  start: string;
9123
8834
  end: string;
9124
8835
  } | null | undefined> | null | undefined;
9125
- actionDetails?: {
9126
- templateId?: string | undefined;
9127
- isImmediateCorrection?: boolean | undefined;
9128
- } | null | undefined;
9129
8836
  originalActionId?: string | null | undefined;
9130
8837
  } | {
9131
8838
  type: "APPROVE_CORRECTION";
@@ -9152,8 +8859,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9152
8859
  street?: string | null | undefined;
9153
8860
  zipCode?: string | null | undefined;
9154
8861
  } | {
9155
- firstname?: string | null | undefined;
9156
- surname?: string | null | undefined;
8862
+ firstname: string;
8863
+ surname: string;
9157
8864
  middlename?: string | null | undefined;
9158
8865
  } | {
9159
8866
  country: string;
@@ -9200,8 +8907,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9200
8907
  street?: string | null | undefined;
9201
8908
  zipCode?: string | null | undefined;
9202
8909
  } | {
9203
- firstname?: string | null | undefined;
9204
- surname?: string | null | undefined;
8910
+ firstname: string;
8911
+ surname: string;
9205
8912
  middlename?: string | null | undefined;
9206
8913
  } | {
9207
8914
  country: string;
@@ -9229,15 +8936,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9229
8936
  start: string;
9230
8937
  end: string;
9231
8938
  } | null | undefined> | null | undefined;
9232
- actionDetails?: {
9233
- templateId?: string | undefined;
9234
- isImmediateCorrection?: boolean | undefined;
9235
- } | null | undefined;
9236
8939
  originalActionId?: string | null | undefined;
9237
8940
  } | {
9238
8941
  type: "REJECT_CORRECTION";
9239
8942
  id: string;
9240
8943
  status: "Rejected" | "Requested" | "Accepted";
8944
+ reason: {
8945
+ message: string;
8946
+ isDuplicate?: boolean | undefined;
8947
+ };
9241
8948
  transactionId: string;
9242
8949
  createdByUserType: "system" | "user";
9243
8950
  createdAt: string;
@@ -9259,8 +8966,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9259
8966
  street?: string | null | undefined;
9260
8967
  zipCode?: string | null | undefined;
9261
8968
  } | {
9262
- firstname?: string | null | undefined;
9263
- surname?: string | null | undefined;
8969
+ firstname: string;
8970
+ surname: string;
9264
8971
  middlename?: string | null | undefined;
9265
8972
  } | {
9266
8973
  country: string;
@@ -9307,8 +9014,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9307
9014
  street?: string | null | undefined;
9308
9015
  zipCode?: string | null | undefined;
9309
9016
  } | {
9310
- firstname?: string | null | undefined;
9311
- surname?: string | null | undefined;
9017
+ firstname: string;
9018
+ surname: string;
9312
9019
  middlename?: string | null | undefined;
9313
9020
  } | {
9314
9021
  country: string;
@@ -9336,10 +9043,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9336
9043
  start: string;
9337
9044
  end: string;
9338
9045
  } | null | undefined> | null | undefined;
9339
- actionDetails?: {
9340
- templateId?: string | undefined;
9341
- isImmediateCorrection?: boolean | undefined;
9342
- } | null | undefined;
9343
9046
  originalActionId?: string | null | undefined;
9344
9047
  } | {
9345
9048
  type: "READ";
@@ -9366,8 +9069,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9366
9069
  street?: string | null | undefined;
9367
9070
  zipCode?: string | null | undefined;
9368
9071
  } | {
9369
- firstname?: string | null | undefined;
9370
- surname?: string | null | undefined;
9072
+ firstname: string;
9073
+ surname: string;
9371
9074
  middlename?: string | null | undefined;
9372
9075
  } | {
9373
9076
  country: string;
@@ -9413,8 +9116,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9413
9116
  street?: string | null | undefined;
9414
9117
  zipCode?: string | null | undefined;
9415
9118
  } | {
9416
- firstname?: string | null | undefined;
9417
- surname?: string | null | undefined;
9119
+ firstname: string;
9120
+ surname: string;
9418
9121
  middlename?: string | null | undefined;
9419
9122
  } | {
9420
9123
  country: string;
@@ -9442,10 +9145,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9442
9145
  start: string;
9443
9146
  end: string;
9444
9147
  } | null | undefined> | null | undefined;
9445
- actionDetails?: {
9446
- templateId?: string | undefined;
9447
- isImmediateCorrection?: boolean | undefined;
9448
- } | null | undefined;
9449
9148
  originalActionId?: string | null | undefined;
9450
9149
  } | {
9451
9150
  type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
@@ -9458,10 +9157,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9458
9157
  createdByRole: string;
9459
9158
  createdBySignature?: string | null | undefined;
9460
9159
  createdAtLocation?: string | null | undefined;
9461
- actionDetails?: {
9462
- templateId?: string | undefined;
9463
- isImmediateCorrection?: boolean | undefined;
9464
- } | null | undefined;
9465
9160
  originalActionId?: string | null | undefined;
9466
9161
  })[];
9467
9162
  trackingId: string;
@@ -9496,8 +9191,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9496
9191
  street?: string | null | undefined;
9497
9192
  zipCode?: string | null | undefined;
9498
9193
  } | {
9499
- firstname?: string | null | undefined;
9500
- surname?: string | null | undefined;
9194
+ firstname: string;
9195
+ surname: string;
9501
9196
  middlename?: string | null | undefined;
9502
9197
  } | {
9503
9198
  country: string;
@@ -9544,8 +9239,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9544
9239
  street?: string | null | undefined;
9545
9240
  zipCode?: string | null | undefined;
9546
9241
  } | {
9547
- firstname?: string | null | undefined;
9548
- surname?: string | null | undefined;
9242
+ firstname: string;
9243
+ surname: string;
9549
9244
  middlename?: string | null | undefined;
9550
9245
  } | {
9551
9246
  country: string;
@@ -9573,10 +9268,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9573
9268
  start: string;
9574
9269
  end: string;
9575
9270
  } | null | undefined> | null | undefined;
9576
- actionDetails?: {
9577
- templateId?: string | undefined;
9578
- isImmediateCorrection?: boolean | undefined;
9579
- } | null | undefined;
9580
9271
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9581
9272
  } | {
9582
9273
  type: "UNASSIGN";
@@ -9603,8 +9294,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9603
9294
  street?: string | null | undefined;
9604
9295
  zipCode?: string | null | undefined;
9605
9296
  } | {
9606
- firstname?: string | null | undefined;
9607
- surname?: string | null | undefined;
9297
+ firstname: string;
9298
+ surname: string;
9608
9299
  middlename?: string | null | undefined;
9609
9300
  } | {
9610
9301
  country: string;
@@ -9650,8 +9341,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9650
9341
  street?: string | null | undefined;
9651
9342
  zipCode?: string | null | undefined;
9652
9343
  } | {
9653
- firstname?: string | null | undefined;
9654
- surname?: string | null | undefined;
9344
+ firstname: string;
9345
+ surname: string;
9655
9346
  middlename?: string | null | undefined;
9656
9347
  } | {
9657
9348
  country: string;
@@ -9679,10 +9370,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9679
9370
  start: string;
9680
9371
  end: string;
9681
9372
  } | null | undefined> | null | undefined;
9682
- actionDetails?: {
9683
- templateId?: string | undefined;
9684
- isImmediateCorrection?: boolean | undefined;
9685
- } | null | undefined;
9686
9373
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9687
9374
  } | {
9688
9375
  type: "REGISTER";
@@ -9709,8 +9396,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9709
9396
  street?: string | null | undefined;
9710
9397
  zipCode?: string | null | undefined;
9711
9398
  } | {
9712
- firstname?: string | null | undefined;
9713
- surname?: string | null | undefined;
9399
+ firstname: string;
9400
+ surname: string;
9714
9401
  middlename?: string | null | undefined;
9715
9402
  } | {
9716
9403
  country: string;
@@ -9756,8 +9443,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9756
9443
  street?: string | null | undefined;
9757
9444
  zipCode?: string | null | undefined;
9758
9445
  } | {
9759
- firstname?: string | null | undefined;
9760
- surname?: string | null | undefined;
9446
+ firstname: string;
9447
+ surname: string;
9761
9448
  middlename?: string | null | undefined;
9762
9449
  } | {
9763
9450
  country: string;
@@ -9785,10 +9472,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9785
9472
  start: string;
9786
9473
  end: string;
9787
9474
  } | null | undefined> | null | undefined;
9788
- actionDetails?: {
9789
- templateId?: string | undefined;
9790
- isImmediateCorrection?: boolean | undefined;
9791
- } | null | undefined;
9792
9475
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9793
9476
  registrationNumber?: string | undefined;
9794
9477
  } | {
@@ -9816,8 +9499,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9816
9499
  street?: string | null | undefined;
9817
9500
  zipCode?: string | null | undefined;
9818
9501
  } | {
9819
- firstname?: string | null | undefined;
9820
- surname?: string | null | undefined;
9502
+ firstname: string;
9503
+ surname: string;
9821
9504
  middlename?: string | null | undefined;
9822
9505
  } | {
9823
9506
  country: string;
@@ -9863,8 +9546,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9863
9546
  street?: string | null | undefined;
9864
9547
  zipCode?: string | null | undefined;
9865
9548
  } | {
9866
- firstname?: string | null | undefined;
9867
- surname?: string | null | undefined;
9549
+ firstname: string;
9550
+ surname: string;
9868
9551
  middlename?: string | null | undefined;
9869
9552
  } | {
9870
9553
  country: string;
@@ -9892,10 +9575,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9892
9575
  start: string;
9893
9576
  end: string;
9894
9577
  } | null | undefined> | null | undefined;
9895
- actionDetails?: {
9896
- templateId?: string | undefined;
9897
- isImmediateCorrection?: boolean | undefined;
9898
- } | null | undefined;
9899
9578
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9900
9579
  } | {
9901
9580
  type: "VALIDATE";
@@ -9922,8 +9601,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9922
9601
  street?: string | null | undefined;
9923
9602
  zipCode?: string | null | undefined;
9924
9603
  } | {
9925
- firstname?: string | null | undefined;
9926
- surname?: string | null | undefined;
9604
+ firstname: string;
9605
+ surname: string;
9927
9606
  middlename?: string | null | undefined;
9928
9607
  } | {
9929
9608
  country: string;
@@ -9969,8 +9648,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9969
9648
  street?: string | null | undefined;
9970
9649
  zipCode?: string | null | undefined;
9971
9650
  } | {
9972
- firstname?: string | null | undefined;
9973
- surname?: string | null | undefined;
9651
+ firstname: string;
9652
+ surname: string;
9974
9653
  middlename?: string | null | undefined;
9975
9654
  } | {
9976
9655
  country: string;
@@ -9998,10 +9677,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9998
9677
  start: string;
9999
9678
  end: string;
10000
9679
  } | null | undefined> | null | undefined;
10001
- actionDetails?: {
10002
- templateId?: string | undefined;
10003
- isImmediateCorrection?: boolean | undefined;
10004
- } | null | undefined;
10005
9680
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10006
9681
  } | {
10007
9682
  type: "REJECT";
@@ -10032,8 +9707,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10032
9707
  street?: string | null | undefined;
10033
9708
  zipCode?: string | null | undefined;
10034
9709
  } | {
10035
- firstname?: string | null | undefined;
10036
- surname?: string | null | undefined;
9710
+ firstname: string;
9711
+ surname: string;
10037
9712
  middlename?: string | null | undefined;
10038
9713
  } | {
10039
9714
  country: string;
@@ -10079,8 +9754,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10079
9754
  street?: string | null | undefined;
10080
9755
  zipCode?: string | null | undefined;
10081
9756
  } | {
10082
- firstname?: string | null | undefined;
10083
- surname?: string | null | undefined;
9757
+ firstname: string;
9758
+ surname: string;
10084
9759
  middlename?: string | null | undefined;
10085
9760
  } | {
10086
9761
  country: string;
@@ -10108,10 +9783,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10108
9783
  start: string;
10109
9784
  end: string;
10110
9785
  } | null | undefined> | null | undefined;
10111
- actionDetails?: {
10112
- templateId?: string | undefined;
10113
- isImmediateCorrection?: boolean | undefined;
10114
- } | null | undefined;
10115
9786
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10116
9787
  } | {
10117
9788
  type: "MARKED_AS_DUPLICATE";
@@ -10138,8 +9809,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10138
9809
  street?: string | null | undefined;
10139
9810
  zipCode?: string | null | undefined;
10140
9811
  } | {
10141
- firstname?: string | null | undefined;
10142
- surname?: string | null | undefined;
9812
+ firstname: string;
9813
+ surname: string;
10143
9814
  middlename?: string | null | undefined;
10144
9815
  } | {
10145
9816
  country: string;
@@ -10185,8 +9856,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10185
9856
  street?: string | null | undefined;
10186
9857
  zipCode?: string | null | undefined;
10187
9858
  } | {
10188
- firstname?: string | null | undefined;
10189
- surname?: string | null | undefined;
9859
+ firstname: string;
9860
+ surname: string;
10190
9861
  middlename?: string | null | undefined;
10191
9862
  } | {
10192
9863
  country: string;
@@ -10214,10 +9885,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10214
9885
  start: string;
10215
9886
  end: string;
10216
9887
  } | null | undefined> | null | undefined;
10217
- actionDetails?: {
10218
- templateId?: string | undefined;
10219
- isImmediateCorrection?: boolean | undefined;
10220
- } | null | undefined;
10221
9888
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10222
9889
  } | {
10223
9890
  type: "ARCHIVE";
@@ -10248,8 +9915,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10248
9915
  street?: string | null | undefined;
10249
9916
  zipCode?: string | null | undefined;
10250
9917
  } | {
10251
- firstname?: string | null | undefined;
10252
- surname?: string | null | undefined;
9918
+ firstname: string;
9919
+ surname: string;
10253
9920
  middlename?: string | null | undefined;
10254
9921
  } | {
10255
9922
  country: string;
@@ -10295,8 +9962,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10295
9962
  street?: string | null | undefined;
10296
9963
  zipCode?: string | null | undefined;
10297
9964
  } | {
10298
- firstname?: string | null | undefined;
10299
- surname?: string | null | undefined;
9965
+ firstname: string;
9966
+ surname: string;
10300
9967
  middlename?: string | null | undefined;
10301
9968
  } | {
10302
9969
  country: string;
@@ -10324,10 +9991,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10324
9991
  start: string;
10325
9992
  end: string;
10326
9993
  } | null | undefined> | null | undefined;
10327
- actionDetails?: {
10328
- templateId?: string | undefined;
10329
- isImmediateCorrection?: boolean | undefined;
10330
- } | null | undefined;
10331
9994
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10332
9995
  } | {
10333
9996
  type: "CREATE";
@@ -10354,8 +10017,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10354
10017
  street?: string | null | undefined;
10355
10018
  zipCode?: string | null | undefined;
10356
10019
  } | {
10357
- firstname?: string | null | undefined;
10358
- surname?: string | null | undefined;
10020
+ firstname: string;
10021
+ surname: string;
10359
10022
  middlename?: string | null | undefined;
10360
10023
  } | {
10361
10024
  country: string;
@@ -10401,8 +10064,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10401
10064
  street?: string | null | undefined;
10402
10065
  zipCode?: string | null | undefined;
10403
10066
  } | {
10404
- firstname?: string | null | undefined;
10405
- surname?: string | null | undefined;
10067
+ firstname: string;
10068
+ surname: string;
10406
10069
  middlename?: string | null | undefined;
10407
10070
  } | {
10408
10071
  country: string;
@@ -10430,10 +10093,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10430
10093
  start: string;
10431
10094
  end: string;
10432
10095
  } | null | undefined> | null | undefined;
10433
- actionDetails?: {
10434
- templateId?: string | undefined;
10435
- isImmediateCorrection?: boolean | undefined;
10436
- } | null | undefined;
10437
10096
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10438
10097
  } | {
10439
10098
  type: "NOTIFY";
@@ -10460,8 +10119,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10460
10119
  street?: string | null | undefined;
10461
10120
  zipCode?: string | null | undefined;
10462
10121
  } | {
10463
- firstname?: string | null | undefined;
10464
- surname?: string | null | undefined;
10122
+ firstname: string;
10123
+ surname: string;
10465
10124
  middlename?: string | null | undefined;
10466
10125
  } | {
10467
10126
  country: string;
@@ -10507,8 +10166,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10507
10166
  street?: string | null | undefined;
10508
10167
  zipCode?: string | null | undefined;
10509
10168
  } | {
10510
- firstname?: string | null | undefined;
10511
- surname?: string | null | undefined;
10169
+ firstname: string;
10170
+ surname: string;
10512
10171
  middlename?: string | null | undefined;
10513
10172
  } | {
10514
10173
  country: string;
@@ -10536,10 +10195,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10536
10195
  start: string;
10537
10196
  end: string;
10538
10197
  } | null | undefined> | null | undefined;
10539
- actionDetails?: {
10540
- templateId?: string | undefined;
10541
- isImmediateCorrection?: boolean | undefined;
10542
- } | null | undefined;
10543
10198
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10544
10199
  } | {
10545
10200
  type: "PRINT_CERTIFICATE";
@@ -10566,8 +10221,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10566
10221
  street?: string | null | undefined;
10567
10222
  zipCode?: string | null | undefined;
10568
10223
  } | {
10569
- firstname?: string | null | undefined;
10570
- surname?: string | null | undefined;
10224
+ firstname: string;
10225
+ surname: string;
10571
10226
  middlename?: string | null | undefined;
10572
10227
  } | {
10573
10228
  country: string;
@@ -10595,6 +10250,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10595
10250
  start: string;
10596
10251
  end: string;
10597
10252
  } | null | undefined>;
10253
+ content?: {
10254
+ templateId?: string | undefined;
10255
+ } | null | undefined;
10598
10256
  createdBySignature?: string | null | undefined;
10599
10257
  createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10600
10258
  annotation?: Record<string, string | number | boolean | {
@@ -10613,8 +10271,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10613
10271
  street?: string | null | undefined;
10614
10272
  zipCode?: string | null | undefined;
10615
10273
  } | {
10616
- firstname?: string | null | undefined;
10617
- surname?: string | null | undefined;
10274
+ firstname: string;
10275
+ surname: string;
10618
10276
  middlename?: string | null | undefined;
10619
10277
  } | {
10620
10278
  country: string;
@@ -10642,10 +10300,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10642
10300
  start: string;
10643
10301
  end: string;
10644
10302
  } | null | undefined> | null | undefined;
10645
- actionDetails?: {
10646
- templateId?: string | undefined;
10647
- isImmediateCorrection?: boolean | undefined;
10648
- } | null | undefined;
10649
10303
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10650
10304
  } | {
10651
10305
  type: "REQUEST_CORRECTION";
@@ -10672,8 +10326,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10672
10326
  street?: string | null | undefined;
10673
10327
  zipCode?: string | null | undefined;
10674
10328
  } | {
10675
- firstname?: string | null | undefined;
10676
- surname?: string | null | undefined;
10329
+ firstname: string;
10330
+ surname: string;
10677
10331
  middlename?: string | null | undefined;
10678
10332
  } | {
10679
10333
  country: string;
@@ -10719,8 +10373,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10719
10373
  street?: string | null | undefined;
10720
10374
  zipCode?: string | null | undefined;
10721
10375
  } | {
10722
- firstname?: string | null | undefined;
10723
- surname?: string | null | undefined;
10376
+ firstname: string;
10377
+ surname: string;
10724
10378
  middlename?: string | null | undefined;
10725
10379
  } | {
10726
10380
  country: string;
@@ -10748,10 +10402,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10748
10402
  start: string;
10749
10403
  end: string;
10750
10404
  } | null | undefined> | null | undefined;
10751
- actionDetails?: {
10752
- templateId?: string | undefined;
10753
- isImmediateCorrection?: boolean | undefined;
10754
- } | null | undefined;
10755
10405
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10756
10406
  } | {
10757
10407
  type: "APPROVE_CORRECTION";
@@ -10778,8 +10428,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10778
10428
  street?: string | null | undefined;
10779
10429
  zipCode?: string | null | undefined;
10780
10430
  } | {
10781
- firstname?: string | null | undefined;
10782
- surname?: string | null | undefined;
10431
+ firstname: string;
10432
+ surname: string;
10783
10433
  middlename?: string | null | undefined;
10784
10434
  } | {
10785
10435
  country: string;
@@ -10826,8 +10476,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10826
10476
  street?: string | null | undefined;
10827
10477
  zipCode?: string | null | undefined;
10828
10478
  } | {
10829
- firstname?: string | null | undefined;
10830
- surname?: string | null | undefined;
10479
+ firstname: string;
10480
+ surname: string;
10831
10481
  middlename?: string | null | undefined;
10832
10482
  } | {
10833
10483
  country: string;
@@ -10855,15 +10505,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10855
10505
  start: string;
10856
10506
  end: string;
10857
10507
  } | null | undefined> | null | undefined;
10858
- actionDetails?: {
10859
- templateId?: string | undefined;
10860
- isImmediateCorrection?: boolean | undefined;
10861
- } | null | undefined;
10862
10508
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10863
10509
  } | {
10864
10510
  type: "REJECT_CORRECTION";
10865
10511
  id: string & import("zod").BRAND<"UUID">;
10866
10512
  status: "Rejected" | "Requested" | "Accepted";
10513
+ reason: {
10514
+ message: string;
10515
+ isDuplicate?: boolean | undefined;
10516
+ };
10867
10517
  transactionId: string;
10868
10518
  createdByUserType: "system" | "user";
10869
10519
  createdAt: string;
@@ -10885,8 +10535,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10885
10535
  street?: string | null | undefined;
10886
10536
  zipCode?: string | null | undefined;
10887
10537
  } | {
10888
- firstname?: string | null | undefined;
10889
- surname?: string | null | undefined;
10538
+ firstname: string;
10539
+ surname: string;
10890
10540
  middlename?: string | null | undefined;
10891
10541
  } | {
10892
10542
  country: string;
@@ -10933,8 +10583,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10933
10583
  street?: string | null | undefined;
10934
10584
  zipCode?: string | null | undefined;
10935
10585
  } | {
10936
- firstname?: string | null | undefined;
10937
- surname?: string | null | undefined;
10586
+ firstname: string;
10587
+ surname: string;
10938
10588
  middlename?: string | null | undefined;
10939
10589
  } | {
10940
10590
  country: string;
@@ -10962,10 +10612,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10962
10612
  start: string;
10963
10613
  end: string;
10964
10614
  } | null | undefined> | null | undefined;
10965
- actionDetails?: {
10966
- templateId?: string | undefined;
10967
- isImmediateCorrection?: boolean | undefined;
10968
- } | null | undefined;
10969
10615
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10970
10616
  } | {
10971
10617
  type: "READ";
@@ -10992,8 +10638,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10992
10638
  street?: string | null | undefined;
10993
10639
  zipCode?: string | null | undefined;
10994
10640
  } | {
10995
- firstname?: string | null | undefined;
10996
- surname?: string | null | undefined;
10641
+ firstname: string;
10642
+ surname: string;
10997
10643
  middlename?: string | null | undefined;
10998
10644
  } | {
10999
10645
  country: string;
@@ -11039,8 +10685,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
11039
10685
  street?: string | null | undefined;
11040
10686
  zipCode?: string | null | undefined;
11041
10687
  } | {
11042
- firstname?: string | null | undefined;
11043
- surname?: string | null | undefined;
10688
+ firstname: string;
10689
+ surname: string;
11044
10690
  middlename?: string | null | undefined;
11045
10691
  } | {
11046
10692
  country: string;
@@ -11068,10 +10714,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
11068
10714
  start: string;
11069
10715
  end: string;
11070
10716
  } | null | undefined> | null | undefined;
11071
- actionDetails?: {
11072
- templateId?: string | undefined;
11073
- isImmediateCorrection?: boolean | undefined;
11074
- } | null | undefined;
11075
10717
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
11076
10718
  } | {
11077
10719
  type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
@@ -11084,10 +10726,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
11084
10726
  createdByRole: string;
11085
10727
  createdBySignature?: string | null | undefined;
11086
10728
  createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
11087
- actionDetails?: {
11088
- templateId?: string | undefined;
11089
- isImmediateCorrection?: boolean | undefined;
11090
- } | null | undefined;
11091
10729
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
11092
10730
  })[];
11093
10731
  trackingId: string;
@@ -11167,7 +10805,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
11167
10805
  set: import("@trpc/server").TRPCMutationProcedure<{
11168
10806
  input: {
11169
10807
  id: string;
11170
- externalId: string | null;
11171
10808
  name: string;
11172
10809
  partOf: string | null;
11173
10810
  }[];
@@ -11178,7 +10815,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
11178
10815
  input: void;
11179
10816
  output: {
11180
10817
  id: string & import("zod").BRAND<"UUID">;
11181
- externalId: string | null;
11182
10818
  name: string;
11183
10819
  partOf: (string & import("zod").BRAND<"UUID">) | null;
11184
10820
  }[];
@@ -11240,10 +10876,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
11240
10876
  clauses: {
11241
10877
  status?: {
11242
10878
  type: "exact";
11243
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
10879
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
11244
10880
  } | {
11245
10881
  type: "anyOf";
11246
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
10882
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
11247
10883
  } | undefined;
11248
10884
  data?: any;
11249
10885
  createdByUserType?: {
@@ -11349,10 +10985,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
11349
10985
  clauses: {
11350
10986
  status?: {
11351
10987
  type: "exact";
11352
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
10988
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
11353
10989
  } | {
11354
10990
  type: "anyOf";
11355
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
10991
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
11356
10992
  } | undefined;
11357
10993
  data?: any;
11358
10994
  createdByUserType?: {
@@ -11462,6 +11098,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
11462
11098
  label: import("../commons").TranslationConfig;
11463
11099
  }[];
11464
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;
11465
11102
  }[];
11466
11103
  meta: import("trpc-to-openapi").OpenApiMeta;
11467
11104
  }>;