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

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.
@@ -295,18 +295,492 @@ export declare const ActionStatus: {
295
295
  readonly Rejected: "Rejected";
296
296
  };
297
297
  export type ActionStatus = keyof typeof ActionStatus;
298
- export declare const ActionDetails: z.ZodObject<{
299
- templateId: z.ZodOptional<z.ZodString>;
300
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
298
+ export declare const ActionBase: z.ZodObject<{
299
+ id: z.ZodBranded<z.ZodString, "UUID">;
300
+ transactionId: z.ZodString;
301
+ createdByUserType: z.ZodEnum<["user", "system"]>;
302
+ createdAt: z.ZodString;
303
+ createdBy: z.ZodString;
304
+ createdByRole: z.ZodString;
305
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
306
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
307
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
308
+ start: z.ZodString;
309
+ end: z.ZodString;
310
+ }, "strip", z.ZodTypeAny, {
311
+ start: string;
312
+ end: string;
313
+ }, {
314
+ start: string;
315
+ end: string;
316
+ }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
317
+ path: z.ZodEffects<z.ZodString, string, string>;
318
+ originalFilename: z.ZodString;
319
+ type: z.ZodString;
320
+ }, "strip", z.ZodTypeAny, {
321
+ type: string;
322
+ path: string;
323
+ originalFilename: string;
324
+ }, {
325
+ type: string;
326
+ path: string;
327
+ originalFilename: string;
328
+ }>, z.ZodArray<z.ZodObject<{
329
+ path: z.ZodEffects<z.ZodString, string, string>;
330
+ originalFilename: z.ZodString;
331
+ type: z.ZodString;
332
+ option: z.ZodString;
333
+ }, "strip", z.ZodTypeAny, {
334
+ type: string;
335
+ option: string;
336
+ path: string;
337
+ originalFilename: string;
338
+ }, {
339
+ type: string;
340
+ option: string;
341
+ path: string;
342
+ originalFilename: string;
343
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
344
+ country: z.ZodString;
345
+ addressType: z.ZodLiteral<"DOMESTIC">;
346
+ province: z.ZodString;
347
+ district: z.ZodString;
348
+ }, {
349
+ urbanOrRural: z.ZodLiteral<"URBAN">;
350
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
351
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
352
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
353
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
354
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
355
+ }>, "strip", z.ZodTypeAny, {
356
+ country: string;
357
+ district: string;
358
+ addressType: "DOMESTIC";
359
+ province: string;
360
+ urbanOrRural: "URBAN";
361
+ number?: string | null | undefined;
362
+ town?: string | null | undefined;
363
+ residentialArea?: string | null | undefined;
364
+ street?: string | null | undefined;
365
+ zipCode?: string | null | undefined;
366
+ }, {
367
+ country: string;
368
+ district: string;
369
+ addressType: "DOMESTIC";
370
+ province: string;
371
+ urbanOrRural: "URBAN";
372
+ number?: string | null | undefined;
373
+ town?: string | null | undefined;
374
+ residentialArea?: string | null | undefined;
375
+ street?: string | null | undefined;
376
+ zipCode?: string | null | undefined;
377
+ }>, z.ZodObject<z.objectUtil.extendShape<{
378
+ country: z.ZodString;
379
+ addressType: z.ZodLiteral<"DOMESTIC">;
380
+ province: z.ZodString;
381
+ district: z.ZodString;
382
+ }, {
383
+ urbanOrRural: z.ZodLiteral<"RURAL">;
384
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
385
+ }>, "strip", z.ZodTypeAny, {
386
+ country: string;
387
+ district: string;
388
+ addressType: "DOMESTIC";
389
+ province: string;
390
+ urbanOrRural: "RURAL";
391
+ village?: string | null | undefined;
392
+ }, {
393
+ country: string;
394
+ district: string;
395
+ addressType: "DOMESTIC";
396
+ province: string;
397
+ urbanOrRural: "RURAL";
398
+ village?: string | null | undefined;
399
+ }>, z.ZodUndefined, z.ZodObject<{
400
+ country: z.ZodString;
401
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
402
+ state: z.ZodString;
403
+ district2: z.ZodString;
404
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
405
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
406
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
407
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
408
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
409
+ }, "strip", z.ZodTypeAny, {
410
+ country: string;
411
+ state: string;
412
+ addressType: "INTERNATIONAL";
413
+ district2: string;
414
+ cityOrTown?: string | null | undefined;
415
+ addressLine1?: string | null | undefined;
416
+ addressLine2?: string | null | undefined;
417
+ addressLine3?: string | null | undefined;
418
+ postcodeOrZip?: string | null | undefined;
419
+ }, {
420
+ country: string;
421
+ state: string;
422
+ addressType: "INTERNATIONAL";
423
+ district2: string;
424
+ cityOrTown?: string | null | undefined;
425
+ addressLine1?: string | null | undefined;
426
+ addressLine2?: string | null | undefined;
427
+ addressLine3?: string | null | undefined;
428
+ postcodeOrZip?: string | null | undefined;
429
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
430
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
431
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
432
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
433
+ }, "strip", z.ZodTypeAny, {
434
+ firstname?: string | null | undefined;
435
+ surname?: string | null | undefined;
436
+ middlename?: string | null | undefined;
437
+ }, {
438
+ firstname?: string | null | undefined;
439
+ surname?: string | null | undefined;
440
+ middlename?: string | null | undefined;
441
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
442
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
443
+ start: z.ZodString;
444
+ end: z.ZodString;
445
+ }, "strip", z.ZodTypeAny, {
446
+ start: string;
447
+ end: string;
448
+ }, {
449
+ start: string;
450
+ end: string;
451
+ }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
452
+ path: z.ZodEffects<z.ZodString, string, string>;
453
+ originalFilename: z.ZodString;
454
+ type: z.ZodString;
455
+ }, "strip", z.ZodTypeAny, {
456
+ type: string;
457
+ path: string;
458
+ originalFilename: string;
459
+ }, {
460
+ type: string;
461
+ path: string;
462
+ originalFilename: string;
463
+ }>, z.ZodArray<z.ZodObject<{
464
+ path: z.ZodEffects<z.ZodString, string, string>;
465
+ originalFilename: z.ZodString;
466
+ type: z.ZodString;
467
+ option: z.ZodString;
468
+ }, "strip", z.ZodTypeAny, {
469
+ type: string;
470
+ option: string;
471
+ path: string;
472
+ originalFilename: string;
473
+ }, {
474
+ type: string;
475
+ option: string;
476
+ path: string;
477
+ originalFilename: string;
478
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
479
+ country: z.ZodString;
480
+ addressType: z.ZodLiteral<"DOMESTIC">;
481
+ province: z.ZodString;
482
+ district: z.ZodString;
483
+ }, {
484
+ urbanOrRural: z.ZodLiteral<"URBAN">;
485
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
486
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
487
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
488
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
489
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
490
+ }>, "strip", z.ZodTypeAny, {
491
+ country: string;
492
+ district: string;
493
+ addressType: "DOMESTIC";
494
+ province: string;
495
+ urbanOrRural: "URBAN";
496
+ number?: string | null | undefined;
497
+ town?: string | null | undefined;
498
+ residentialArea?: string | null | undefined;
499
+ street?: string | null | undefined;
500
+ zipCode?: string | null | undefined;
501
+ }, {
502
+ country: string;
503
+ district: string;
504
+ addressType: "DOMESTIC";
505
+ province: string;
506
+ urbanOrRural: "URBAN";
507
+ number?: string | null | undefined;
508
+ town?: string | null | undefined;
509
+ residentialArea?: string | null | undefined;
510
+ street?: string | null | undefined;
511
+ zipCode?: string | null | undefined;
512
+ }>, z.ZodObject<z.objectUtil.extendShape<{
513
+ country: z.ZodString;
514
+ addressType: z.ZodLiteral<"DOMESTIC">;
515
+ province: z.ZodString;
516
+ district: z.ZodString;
517
+ }, {
518
+ urbanOrRural: z.ZodLiteral<"RURAL">;
519
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
520
+ }>, "strip", z.ZodTypeAny, {
521
+ country: string;
522
+ district: string;
523
+ addressType: "DOMESTIC";
524
+ province: string;
525
+ urbanOrRural: "RURAL";
526
+ village?: string | null | undefined;
527
+ }, {
528
+ country: string;
529
+ district: string;
530
+ addressType: "DOMESTIC";
531
+ province: string;
532
+ urbanOrRural: "RURAL";
533
+ village?: string | null | undefined;
534
+ }>, z.ZodUndefined, z.ZodObject<{
535
+ country: z.ZodString;
536
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
537
+ state: z.ZodString;
538
+ district2: z.ZodString;
539
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
540
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
541
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
542
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
543
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
544
+ }, "strip", z.ZodTypeAny, {
545
+ country: string;
546
+ state: string;
547
+ addressType: "INTERNATIONAL";
548
+ district2: string;
549
+ cityOrTown?: string | null | undefined;
550
+ addressLine1?: string | null | undefined;
551
+ addressLine2?: string | null | undefined;
552
+ addressLine3?: string | null | undefined;
553
+ postcodeOrZip?: string | null | undefined;
554
+ }, {
555
+ country: string;
556
+ state: string;
557
+ addressType: "INTERNATIONAL";
558
+ district2: string;
559
+ cityOrTown?: string | null | undefined;
560
+ addressLine1?: string | null | undefined;
561
+ addressLine2?: string | null | undefined;
562
+ addressLine3?: string | null | undefined;
563
+ postcodeOrZip?: string | null | undefined;
564
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
565
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
566
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
567
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
568
+ }, "strip", z.ZodTypeAny, {
569
+ firstname?: string | null | undefined;
570
+ surname?: string | null | undefined;
571
+ middlename?: string | null | undefined;
572
+ }, {
573
+ firstname?: string | null | undefined;
574
+ surname?: string | null | undefined;
575
+ middlename?: string | null | undefined;
576
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
577
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
578
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
301
579
  }, "strip", z.ZodTypeAny, {
302
- templateId?: string | undefined;
303
- isImmediateCorrection?: boolean | undefined;
580
+ id: string & z.BRAND<"UUID">;
581
+ status: "Rejected" | "Requested" | "Accepted";
582
+ transactionId: string;
583
+ createdByUserType: "system" | "user";
584
+ createdAt: string;
585
+ createdBy: string;
586
+ createdByRole: string;
587
+ declaration: Record<string, string | number | boolean | {
588
+ type: string;
589
+ path: string;
590
+ originalFilename: string;
591
+ } | {
592
+ country: string;
593
+ district: string;
594
+ addressType: "DOMESTIC";
595
+ province: string;
596
+ urbanOrRural: "URBAN";
597
+ number?: string | null | undefined;
598
+ town?: string | null | undefined;
599
+ residentialArea?: string | null | undefined;
600
+ street?: string | null | undefined;
601
+ zipCode?: string | null | undefined;
602
+ } | {
603
+ firstname?: string | null | undefined;
604
+ surname?: string | null | undefined;
605
+ middlename?: string | null | undefined;
606
+ } | {
607
+ country: string;
608
+ district: string;
609
+ addressType: "DOMESTIC";
610
+ province: string;
611
+ urbanOrRural: "RURAL";
612
+ village?: string | null | undefined;
613
+ } | {
614
+ country: string;
615
+ state: string;
616
+ addressType: "INTERNATIONAL";
617
+ district2: string;
618
+ cityOrTown?: string | null | undefined;
619
+ addressLine1?: string | null | undefined;
620
+ addressLine2?: string | null | undefined;
621
+ addressLine3?: string | null | undefined;
622
+ postcodeOrZip?: string | null | undefined;
623
+ } | {
624
+ type: string;
625
+ option: string;
626
+ path: string;
627
+ originalFilename: string;
628
+ }[] | {
629
+ start: string;
630
+ end: string;
631
+ } | null | undefined>;
632
+ createdBySignature?: string | null | undefined;
633
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
634
+ annotation?: Record<string, string | number | boolean | {
635
+ type: string;
636
+ path: string;
637
+ originalFilename: string;
638
+ } | {
639
+ country: string;
640
+ district: string;
641
+ addressType: "DOMESTIC";
642
+ province: string;
643
+ urbanOrRural: "URBAN";
644
+ number?: string | null | undefined;
645
+ town?: string | null | undefined;
646
+ residentialArea?: string | null | undefined;
647
+ street?: string | null | undefined;
648
+ zipCode?: string | null | undefined;
649
+ } | {
650
+ firstname?: string | null | undefined;
651
+ surname?: string | null | undefined;
652
+ middlename?: string | null | undefined;
653
+ } | {
654
+ country: string;
655
+ district: string;
656
+ addressType: "DOMESTIC";
657
+ province: string;
658
+ urbanOrRural: "RURAL";
659
+ village?: string | null | undefined;
660
+ } | {
661
+ country: string;
662
+ state: string;
663
+ addressType: "INTERNATIONAL";
664
+ district2: string;
665
+ cityOrTown?: string | null | undefined;
666
+ addressLine1?: string | null | undefined;
667
+ addressLine2?: string | null | undefined;
668
+ addressLine3?: string | null | undefined;
669
+ postcodeOrZip?: string | null | undefined;
670
+ } | {
671
+ type: string;
672
+ option: string;
673
+ path: string;
674
+ originalFilename: string;
675
+ }[] | {
676
+ start: string;
677
+ end: string;
678
+ } | null | undefined> | null | undefined;
679
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
304
680
  }, {
305
- templateId?: string | undefined;
306
- isImmediateCorrection?: boolean | undefined;
681
+ id: string;
682
+ status: "Rejected" | "Requested" | "Accepted";
683
+ transactionId: string;
684
+ createdByUserType: "system" | "user";
685
+ createdAt: string;
686
+ createdBy: string;
687
+ createdByRole: string;
688
+ declaration: Record<string, string | number | boolean | {
689
+ type: string;
690
+ path: string;
691
+ originalFilename: string;
692
+ } | {
693
+ country: string;
694
+ district: string;
695
+ addressType: "DOMESTIC";
696
+ province: string;
697
+ urbanOrRural: "URBAN";
698
+ number?: string | null | undefined;
699
+ town?: string | null | undefined;
700
+ residentialArea?: string | null | undefined;
701
+ street?: string | null | undefined;
702
+ zipCode?: string | null | undefined;
703
+ } | {
704
+ firstname?: string | null | undefined;
705
+ surname?: string | null | undefined;
706
+ middlename?: string | null | undefined;
707
+ } | {
708
+ country: string;
709
+ district: string;
710
+ addressType: "DOMESTIC";
711
+ province: string;
712
+ urbanOrRural: "RURAL";
713
+ village?: string | null | undefined;
714
+ } | {
715
+ country: string;
716
+ state: string;
717
+ addressType: "INTERNATIONAL";
718
+ district2: string;
719
+ cityOrTown?: string | null | undefined;
720
+ addressLine1?: string | null | undefined;
721
+ addressLine2?: string | null | undefined;
722
+ addressLine3?: string | null | undefined;
723
+ postcodeOrZip?: string | null | undefined;
724
+ } | {
725
+ type: string;
726
+ option: string;
727
+ path: string;
728
+ originalFilename: string;
729
+ }[] | {
730
+ start: string;
731
+ end: string;
732
+ } | null | undefined>;
733
+ createdBySignature?: string | null | undefined;
734
+ createdAtLocation?: string | null | undefined;
735
+ annotation?: Record<string, string | number | boolean | {
736
+ type: string;
737
+ path: string;
738
+ originalFilename: string;
739
+ } | {
740
+ country: string;
741
+ district: string;
742
+ addressType: "DOMESTIC";
743
+ province: string;
744
+ urbanOrRural: "URBAN";
745
+ number?: string | null | undefined;
746
+ town?: string | null | undefined;
747
+ residentialArea?: string | null | undefined;
748
+ street?: string | null | undefined;
749
+ zipCode?: string | null | undefined;
750
+ } | {
751
+ firstname?: string | null | undefined;
752
+ surname?: string | null | undefined;
753
+ middlename?: string | null | undefined;
754
+ } | {
755
+ country: string;
756
+ district: string;
757
+ addressType: "DOMESTIC";
758
+ province: string;
759
+ urbanOrRural: "RURAL";
760
+ village?: string | null | undefined;
761
+ } | {
762
+ country: string;
763
+ state: string;
764
+ addressType: "INTERNATIONAL";
765
+ district2: string;
766
+ cityOrTown?: string | null | undefined;
767
+ addressLine1?: string | null | undefined;
768
+ addressLine2?: string | null | undefined;
769
+ addressLine3?: string | null | undefined;
770
+ postcodeOrZip?: string | null | undefined;
771
+ } | {
772
+ type: string;
773
+ option: string;
774
+ path: string;
775
+ originalFilename: string;
776
+ }[] | {
777
+ start: string;
778
+ end: string;
779
+ } | null | undefined> | null | undefined;
780
+ originalActionId?: string | null | undefined;
307
781
  }>;
308
- export type ActionDetails = z.infer<typeof ActionDetails>;
309
- export declare const ActionBase: z.ZodObject<{
782
+ export type ActionBase = z.infer<typeof ActionBase>;
783
+ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
310
784
  id: z.ZodBranded<z.ZodString, "UUID">;
311
785
  transactionId: z.ZodString;
312
786
  createdByUserType: z.ZodEnum<["user", "system"]>;
@@ -585,19 +1059,13 @@ export declare const ActionBase: z.ZodObject<{
585
1059
  surname?: string | null | undefined;
586
1060
  middlename?: string | null | undefined;
587
1061
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
588
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
589
- templateId: z.ZodOptional<z.ZodString>;
590
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
591
- }, "strip", z.ZodTypeAny, {
592
- templateId?: string | undefined;
593
- isImmediateCorrection?: boolean | undefined;
594
- }, {
595
- templateId?: string | undefined;
596
- isImmediateCorrection?: boolean | undefined;
597
- }>>>;
598
1062
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
599
1063
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
600
- }, "strip", z.ZodTypeAny, {
1064
+ }, {
1065
+ type: z.ZodLiteral<"REGISTER">;
1066
+ registrationNumber: z.ZodOptional<z.ZodString>;
1067
+ }>, "strip", z.ZodTypeAny, {
1068
+ type: "REGISTER";
601
1069
  id: string & z.BRAND<"UUID">;
602
1070
  status: "Rejected" | "Requested" | "Accepted";
603
1071
  transactionId: string;
@@ -697,12 +1165,10 @@ export declare const ActionBase: z.ZodObject<{
697
1165
  start: string;
698
1166
  end: string;
699
1167
  } | null | undefined> | null | undefined;
700
- actionDetails?: {
701
- templateId?: string | undefined;
702
- isImmediateCorrection?: boolean | undefined;
703
- } | null | undefined;
704
1168
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1169
+ registrationNumber?: string | undefined;
705
1170
  }, {
1171
+ type: "REGISTER";
706
1172
  id: string;
707
1173
  status: "Rejected" | "Requested" | "Accepted";
708
1174
  transactionId: string;
@@ -802,14 +1268,21 @@ export declare const ActionBase: z.ZodObject<{
802
1268
  start: string;
803
1269
  end: string;
804
1270
  } | null | undefined> | null | undefined;
805
- actionDetails?: {
806
- templateId?: string | undefined;
807
- isImmediateCorrection?: boolean | undefined;
808
- } | null | undefined;
809
1271
  originalActionId?: string | null | undefined;
1272
+ registrationNumber?: string | undefined;
810
1273
  }>;
811
- export type ActionBase = z.infer<typeof ActionBase>;
812
- export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
1274
+ export type RegisterAction = z.infer<typeof RegisterAction>;
1275
+ export declare const RejectionReason: z.ZodObject<{
1276
+ message: z.ZodString;
1277
+ isDuplicate: z.ZodOptional<z.ZodBoolean>;
1278
+ }, "strip", z.ZodTypeAny, {
1279
+ message: string;
1280
+ isDuplicate?: boolean | undefined;
1281
+ }, {
1282
+ message: string;
1283
+ isDuplicate?: boolean | undefined;
1284
+ }>;
1285
+ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
813
1286
  id: z.ZodBranded<z.ZodString, "UUID">;
814
1287
  transactionId: z.ZodString;
815
1288
  createdByUserType: z.ZodEnum<["user", "system"]>;
@@ -1088,23 +1561,12 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
1088
1561
  surname?: string | null | undefined;
1089
1562
  middlename?: string | null | undefined;
1090
1563
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
1091
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1092
- templateId: z.ZodOptional<z.ZodString>;
1093
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
1094
- }, "strip", z.ZodTypeAny, {
1095
- templateId?: string | undefined;
1096
- isImmediateCorrection?: boolean | undefined;
1097
- }, {
1098
- templateId?: string | undefined;
1099
- isImmediateCorrection?: boolean | undefined;
1100
- }>>>;
1101
1564
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1102
1565
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1103
1566
  }, {
1104
- type: z.ZodLiteral<"REGISTER">;
1105
- registrationNumber: z.ZodOptional<z.ZodString>;
1567
+ type: z.ZodLiteral<"CREATE">;
1106
1568
  }>, "strip", z.ZodTypeAny, {
1107
- type: "REGISTER";
1569
+ type: "CREATE";
1108
1570
  id: string & z.BRAND<"UUID">;
1109
1571
  status: "Rejected" | "Requested" | "Accepted";
1110
1572
  transactionId: string;
@@ -1204,14 +1666,9 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
1204
1666
  start: string;
1205
1667
  end: string;
1206
1668
  } | null | undefined> | null | undefined;
1207
- actionDetails?: {
1208
- templateId?: string | undefined;
1209
- isImmediateCorrection?: boolean | undefined;
1210
- } | null | undefined;
1211
1669
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1212
- registrationNumber?: string | undefined;
1213
1670
  }, {
1214
- type: "REGISTER";
1671
+ type: "CREATE";
1215
1672
  id: string;
1216
1673
  status: "Rejected" | "Requested" | "Accepted";
1217
1674
  transactionId: string;
@@ -1311,25 +1768,17 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
1311
1768
  start: string;
1312
1769
  end: string;
1313
1770
  } | null | undefined> | null | undefined;
1314
- actionDetails?: {
1315
- templateId?: string | undefined;
1316
- isImmediateCorrection?: boolean | undefined;
1317
- } | null | undefined;
1318
1771
  originalActionId?: string | null | undefined;
1319
- registrationNumber?: string | undefined;
1320
1772
  }>;
1321
- export type RegisterAction = z.infer<typeof RegisterAction>;
1322
- export declare const RejectionReason: z.ZodObject<{
1323
- message: z.ZodString;
1324
- isDuplicate: z.ZodOptional<z.ZodBoolean>;
1773
+ export declare const PrintContent: z.ZodObject<{
1774
+ templateId: z.ZodOptional<z.ZodString>;
1325
1775
  }, "strip", z.ZodTypeAny, {
1326
- message: string;
1327
- isDuplicate?: boolean | undefined;
1776
+ templateId?: string | undefined;
1328
1777
  }, {
1329
- message: string;
1330
- isDuplicate?: boolean | undefined;
1778
+ templateId?: string | undefined;
1331
1779
  }>;
1332
- declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1780
+ export type PrintContent = z.infer<typeof PrintContent>;
1781
+ declare const PrintCertificateAction: z.ZodObject<z.objectUtil.extendShape<{
1333
1782
  id: z.ZodBranded<z.ZodString, "UUID">;
1334
1783
  transactionId: z.ZodString;
1335
1784
  createdByUserType: z.ZodEnum<["user", "system"]>;
@@ -1608,22 +2057,19 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1608
2057
  surname?: string | null | undefined;
1609
2058
  middlename?: string | null | undefined;
1610
2059
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
1611
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2060
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2061
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
2062
+ }, {
2063
+ type: z.ZodLiteral<"PRINT_CERTIFICATE">;
2064
+ content: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1612
2065
  templateId: z.ZodOptional<z.ZodString>;
1613
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
1614
2066
  }, "strip", z.ZodTypeAny, {
1615
2067
  templateId?: string | undefined;
1616
- isImmediateCorrection?: boolean | undefined;
1617
2068
  }, {
1618
2069
  templateId?: string | undefined;
1619
- isImmediateCorrection?: boolean | undefined;
1620
2070
  }>>>;
1621
- status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1622
- originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1623
- }, {
1624
- type: z.ZodLiteral<"CREATE">;
1625
2071
  }>, "strip", z.ZodTypeAny, {
1626
- type: "CREATE";
2072
+ type: "PRINT_CERTIFICATE";
1627
2073
  id: string & z.BRAND<"UUID">;
1628
2074
  status: "Rejected" | "Requested" | "Accepted";
1629
2075
  transactionId: string;
@@ -1676,6 +2122,9 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1676
2122
  start: string;
1677
2123
  end: string;
1678
2124
  } | null | undefined>;
2125
+ content?: {
2126
+ templateId?: string | undefined;
2127
+ } | null | undefined;
1679
2128
  createdBySignature?: string | null | undefined;
1680
2129
  createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1681
2130
  annotation?: Record<string, string | number | boolean | {
@@ -1723,13 +2172,9 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1723
2172
  start: string;
1724
2173
  end: string;
1725
2174
  } | null | undefined> | null | undefined;
1726
- actionDetails?: {
1727
- templateId?: string | undefined;
1728
- isImmediateCorrection?: boolean | undefined;
1729
- } | null | undefined;
1730
2175
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1731
2176
  }, {
1732
- type: "CREATE";
2177
+ type: "PRINT_CERTIFICATE";
1733
2178
  id: string;
1734
2179
  status: "Rejected" | "Requested" | "Accepted";
1735
2180
  transactionId: string;
@@ -1782,6 +2227,9 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1782
2227
  start: string;
1783
2228
  end: string;
1784
2229
  } | null | undefined>;
2230
+ content?: {
2231
+ templateId?: string | undefined;
2232
+ } | null | undefined;
1785
2233
  createdBySignature?: string | null | undefined;
1786
2234
  createdAtLocation?: string | null | undefined;
1787
2235
  annotation?: Record<string, string | number | boolean | {
@@ -1829,12 +2277,9 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1829
2277
  start: string;
1830
2278
  end: string;
1831
2279
  } | null | undefined> | null | undefined;
1832
- actionDetails?: {
1833
- templateId?: string | undefined;
1834
- isImmediateCorrection?: boolean | undefined;
1835
- } | null | undefined;
1836
2280
  originalActionId?: string | null | undefined;
1837
2281
  }>;
2282
+ export type PrintCertificateAction = z.infer<typeof PrintCertificateAction>;
1838
2283
  declare const RequestedCorrectionAction: z.ZodObject<z.objectUtil.extendShape<{
1839
2284
  id: z.ZodBranded<z.ZodString, "UUID">;
1840
2285
  transactionId: z.ZodString;
@@ -2114,16 +2559,6 @@ declare const RequestedCorrectionAction: z.ZodObject<z.objectUtil.extendShape<{
2114
2559
  surname?: string | null | undefined;
2115
2560
  middlename?: string | null | undefined;
2116
2561
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
2117
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2118
- templateId: z.ZodOptional<z.ZodString>;
2119
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
2120
- }, "strip", z.ZodTypeAny, {
2121
- templateId?: string | undefined;
2122
- isImmediateCorrection?: boolean | undefined;
2123
- }, {
2124
- templateId?: string | undefined;
2125
- isImmediateCorrection?: boolean | undefined;
2126
- }>>>;
2127
2562
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2128
2563
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
2129
2564
  }, {
@@ -2229,10 +2664,6 @@ declare const RequestedCorrectionAction: z.ZodObject<z.objectUtil.extendShape<{
2229
2664
  start: string;
2230
2665
  end: string;
2231
2666
  } | null | undefined> | null | undefined;
2232
- actionDetails?: {
2233
- templateId?: string | undefined;
2234
- isImmediateCorrection?: boolean | undefined;
2235
- } | null | undefined;
2236
2667
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
2237
2668
  }, {
2238
2669
  type: "REQUEST_CORRECTION";
@@ -2335,10 +2766,6 @@ declare const RequestedCorrectionAction: z.ZodObject<z.objectUtil.extendShape<{
2335
2766
  start: string;
2336
2767
  end: string;
2337
2768
  } | null | undefined> | null | undefined;
2338
- actionDetails?: {
2339
- templateId?: string | undefined;
2340
- isImmediateCorrection?: boolean | undefined;
2341
- } | null | undefined;
2342
2769
  originalActionId?: string | null | undefined;
2343
2770
  }>;
2344
2771
  export type RequestedCorrectionAction = z.infer<typeof RequestedCorrectionAction>;
@@ -2621,16 +3048,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2621
3048
  surname?: string | null | undefined;
2622
3049
  middlename?: string | null | undefined;
2623
3050
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
2624
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2625
- templateId: z.ZodOptional<z.ZodString>;
2626
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
2627
- }, "strip", z.ZodTypeAny, {
2628
- templateId?: string | undefined;
2629
- isImmediateCorrection?: boolean | undefined;
2630
- }, {
2631
- templateId?: string | undefined;
2632
- isImmediateCorrection?: boolean | undefined;
2633
- }>>>;
2634
3051
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2635
3052
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
2636
3053
  }, {
@@ -2736,10 +3153,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2736
3153
  start: string;
2737
3154
  end: string;
2738
3155
  } | null | undefined> | null | undefined;
2739
- actionDetails?: {
2740
- templateId?: string | undefined;
2741
- isImmediateCorrection?: boolean | undefined;
2742
- } | null | undefined;
2743
3156
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
2744
3157
  }, {
2745
3158
  type: "CREATE";
@@ -2842,10 +3255,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2842
3255
  start: string;
2843
3256
  end: string;
2844
3257
  } | null | undefined> | null | undefined;
2845
- actionDetails?: {
2846
- templateId?: string | undefined;
2847
- isImmediateCorrection?: boolean | undefined;
2848
- } | null | undefined;
2849
3258
  originalActionId?: string | null | undefined;
2850
3259
  }>, z.ZodObject<z.objectUtil.extendShape<{
2851
3260
  id: z.ZodBranded<z.ZodString, "UUID">;
@@ -3126,16 +3535,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3126
3535
  surname?: string | null | undefined;
3127
3536
  middlename?: string | null | undefined;
3128
3537
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
3129
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3130
- templateId: z.ZodOptional<z.ZodString>;
3131
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
3132
- }, "strip", z.ZodTypeAny, {
3133
- templateId?: string | undefined;
3134
- isImmediateCorrection?: boolean | undefined;
3135
- }, {
3136
- templateId?: string | undefined;
3137
- isImmediateCorrection?: boolean | undefined;
3138
- }>>>;
3139
3538
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3140
3539
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
3141
3540
  }, {
@@ -3241,10 +3640,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3241
3640
  start: string;
3242
3641
  end: string;
3243
3642
  } | null | undefined> | null | undefined;
3244
- actionDetails?: {
3245
- templateId?: string | undefined;
3246
- isImmediateCorrection?: boolean | undefined;
3247
- } | null | undefined;
3248
3643
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
3249
3644
  }, {
3250
3645
  type: "VALIDATE";
@@ -3347,10 +3742,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3347
3742
  start: string;
3348
3743
  end: string;
3349
3744
  } | null | undefined> | null | undefined;
3350
- actionDetails?: {
3351
- templateId?: string | undefined;
3352
- isImmediateCorrection?: boolean | undefined;
3353
- } | null | undefined;
3354
3745
  originalActionId?: string | null | undefined;
3355
3746
  }>, z.ZodObject<z.objectUtil.extendShape<{
3356
3747
  id: z.ZodBranded<z.ZodString, "UUID">;
@@ -3631,16 +4022,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3631
4022
  surname?: string | null | undefined;
3632
4023
  middlename?: string | null | undefined;
3633
4024
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
3634
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3635
- templateId: z.ZodOptional<z.ZodString>;
3636
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
3637
- }, "strip", z.ZodTypeAny, {
3638
- templateId?: string | undefined;
3639
- isImmediateCorrection?: boolean | undefined;
3640
- }, {
3641
- templateId?: string | undefined;
3642
- isImmediateCorrection?: boolean | undefined;
3643
- }>>>;
3644
4025
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3645
4026
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
3646
4027
  }, {
@@ -3760,10 +4141,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3760
4141
  start: string;
3761
4142
  end: string;
3762
4143
  } | null | undefined> | null | undefined;
3763
- actionDetails?: {
3764
- templateId?: string | undefined;
3765
- isImmediateCorrection?: boolean | undefined;
3766
- } | null | undefined;
3767
4144
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
3768
4145
  }, {
3769
4146
  type: "REJECT";
@@ -3870,10 +4247,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3870
4247
  start: string;
3871
4248
  end: string;
3872
4249
  } | null | undefined> | null | undefined;
3873
- actionDetails?: {
3874
- templateId?: string | undefined;
3875
- isImmediateCorrection?: boolean | undefined;
3876
- } | null | undefined;
3877
4250
  originalActionId?: string | null | undefined;
3878
4251
  }>, z.ZodObject<z.objectUtil.extendShape<{
3879
4252
  id: z.ZodBranded<z.ZodString, "UUID">;
@@ -4154,16 +4527,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4154
4527
  surname?: string | null | undefined;
4155
4528
  middlename?: string | null | undefined;
4156
4529
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
4157
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
4158
- templateId: z.ZodOptional<z.ZodString>;
4159
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
4160
- }, "strip", z.ZodTypeAny, {
4161
- templateId?: string | undefined;
4162
- isImmediateCorrection?: boolean | undefined;
4163
- }, {
4164
- templateId?: string | undefined;
4165
- isImmediateCorrection?: boolean | undefined;
4166
- }>>>;
4167
4530
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4168
4531
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
4169
4532
  }, {
@@ -4269,10 +4632,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4269
4632
  start: string;
4270
4633
  end: string;
4271
4634
  } | null | undefined> | null | undefined;
4272
- actionDetails?: {
4273
- templateId?: string | undefined;
4274
- isImmediateCorrection?: boolean | undefined;
4275
- } | null | undefined;
4276
4635
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
4277
4636
  }, {
4278
4637
  type: "MARKED_AS_DUPLICATE";
@@ -4375,10 +4734,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4375
4734
  start: string;
4376
4735
  end: string;
4377
4736
  } | null | undefined> | null | undefined;
4378
- actionDetails?: {
4379
- templateId?: string | undefined;
4380
- isImmediateCorrection?: boolean | undefined;
4381
- } | null | undefined;
4382
4737
  originalActionId?: string | null | undefined;
4383
4738
  }>, z.ZodObject<z.objectUtil.extendShape<{
4384
4739
  id: z.ZodBranded<z.ZodString, "UUID">;
@@ -4659,16 +5014,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4659
5014
  surname?: string | null | undefined;
4660
5015
  middlename?: string | null | undefined;
4661
5016
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
4662
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
4663
- templateId: z.ZodOptional<z.ZodString>;
4664
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
4665
- }, "strip", z.ZodTypeAny, {
4666
- templateId?: string | undefined;
4667
- isImmediateCorrection?: boolean | undefined;
4668
- }, {
4669
- templateId?: string | undefined;
4670
- isImmediateCorrection?: boolean | undefined;
4671
- }>>>;
4672
5017
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4673
5018
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
4674
5019
  }, {
@@ -4788,10 +5133,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4788
5133
  start: string;
4789
5134
  end: string;
4790
5135
  } | null | undefined> | null | undefined;
4791
- actionDetails?: {
4792
- templateId?: string | undefined;
4793
- isImmediateCorrection?: boolean | undefined;
4794
- } | null | undefined;
4795
5136
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
4796
5137
  }, {
4797
5138
  type: "ARCHIVE";
@@ -4898,10 +5239,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4898
5239
  start: string;
4899
5240
  end: string;
4900
5241
  } | null | undefined> | null | undefined;
4901
- actionDetails?: {
4902
- templateId?: string | undefined;
4903
- isImmediateCorrection?: boolean | undefined;
4904
- } | null | undefined;
4905
5242
  originalActionId?: string | null | undefined;
4906
5243
  }>, z.ZodObject<z.objectUtil.extendShape<{
4907
5244
  id: z.ZodBranded<z.ZodString, "UUID">;
@@ -5182,16 +5519,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5182
5519
  surname?: string | null | undefined;
5183
5520
  middlename?: string | null | undefined;
5184
5521
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
5185
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
5186
- templateId: z.ZodOptional<z.ZodString>;
5187
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
5188
- }, "strip", z.ZodTypeAny, {
5189
- templateId?: string | undefined;
5190
- isImmediateCorrection?: boolean | undefined;
5191
- }, {
5192
- templateId?: string | undefined;
5193
- isImmediateCorrection?: boolean | undefined;
5194
- }>>>;
5195
5522
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5196
5523
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
5197
5524
  }, {
@@ -5297,10 +5624,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5297
5624
  start: string;
5298
5625
  end: string;
5299
5626
  } | null | undefined> | null | undefined;
5300
- actionDetails?: {
5301
- templateId?: string | undefined;
5302
- isImmediateCorrection?: boolean | undefined;
5303
- } | null | undefined;
5304
5627
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
5305
5628
  }, {
5306
5629
  type: "NOTIFY";
@@ -5403,10 +5726,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5403
5726
  start: string;
5404
5727
  end: string;
5405
5728
  } | null | undefined> | null | undefined;
5406
- actionDetails?: {
5407
- templateId?: string | undefined;
5408
- isImmediateCorrection?: boolean | undefined;
5409
- } | null | undefined;
5410
5729
  originalActionId?: string | null | undefined;
5411
5730
  }>, z.ZodObject<z.objectUtil.extendShape<{
5412
5731
  id: z.ZodBranded<z.ZodString, "UUID">;
@@ -5687,16 +6006,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5687
6006
  surname?: string | null | undefined;
5688
6007
  middlename?: string | null | undefined;
5689
6008
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
5690
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
5691
- templateId: z.ZodOptional<z.ZodString>;
5692
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
5693
- }, "strip", z.ZodTypeAny, {
5694
- templateId?: string | undefined;
5695
- isImmediateCorrection?: boolean | undefined;
5696
- }, {
5697
- templateId?: string | undefined;
5698
- isImmediateCorrection?: boolean | undefined;
5699
- }>>>;
5700
6009
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5701
6010
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
5702
6011
  }, {
@@ -5803,10 +6112,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5803
6112
  start: string;
5804
6113
  end: string;
5805
6114
  } | null | undefined> | null | undefined;
5806
- actionDetails?: {
5807
- templateId?: string | undefined;
5808
- isImmediateCorrection?: boolean | undefined;
5809
- } | null | undefined;
5810
6115
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
5811
6116
  registrationNumber?: string | undefined;
5812
6117
  }, {
@@ -5910,10 +6215,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5910
6215
  start: string;
5911
6216
  end: string;
5912
6217
  } | null | undefined> | null | undefined;
5913
- actionDetails?: {
5914
- templateId?: string | undefined;
5915
- isImmediateCorrection?: boolean | undefined;
5916
- } | null | undefined;
5917
6218
  originalActionId?: string | null | undefined;
5918
6219
  registrationNumber?: string | undefined;
5919
6220
  }>, z.ZodObject<z.objectUtil.extendShape<{
@@ -6195,16 +6496,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6195
6496
  surname?: string | null | undefined;
6196
6497
  middlename?: string | null | undefined;
6197
6498
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
6198
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
6199
- templateId: z.ZodOptional<z.ZodString>;
6200
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
6201
- }, "strip", z.ZodTypeAny, {
6202
- templateId?: string | undefined;
6203
- isImmediateCorrection?: boolean | undefined;
6204
- }, {
6205
- templateId?: string | undefined;
6206
- isImmediateCorrection?: boolean | undefined;
6207
- }>>>;
6208
6499
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6209
6500
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
6210
6501
  }, {
@@ -6310,10 +6601,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6310
6601
  start: string;
6311
6602
  end: string;
6312
6603
  } | null | undefined> | null | undefined;
6313
- actionDetails?: {
6314
- templateId?: string | undefined;
6315
- isImmediateCorrection?: boolean | undefined;
6316
- } | null | undefined;
6317
6604
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6318
6605
  }, {
6319
6606
  type: "DECLARE";
@@ -6416,10 +6703,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6416
6703
  start: string;
6417
6704
  end: string;
6418
6705
  } | null | undefined> | null | undefined;
6419
- actionDetails?: {
6420
- templateId?: string | undefined;
6421
- isImmediateCorrection?: boolean | undefined;
6422
- } | null | undefined;
6423
6706
  originalActionId?: string | null | undefined;
6424
6707
  }>, z.ZodObject<z.objectUtil.extendShape<{
6425
6708
  id: z.ZodBranded<z.ZodString, "UUID">;
@@ -6700,16 +6983,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6700
6983
  surname?: string | null | undefined;
6701
6984
  middlename?: string | null | undefined;
6702
6985
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
6703
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
6704
- templateId: z.ZodOptional<z.ZodString>;
6705
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
6706
- }, "strip", z.ZodTypeAny, {
6707
- templateId?: string | undefined;
6708
- isImmediateCorrection?: boolean | undefined;
6709
- }, {
6710
- templateId?: string | undefined;
6711
- isImmediateCorrection?: boolean | undefined;
6712
- }>>>;
6713
6986
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6714
6987
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
6715
6988
  }, {
@@ -6817,10 +7090,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6817
7090
  start: string;
6818
7091
  end: string;
6819
7092
  } | null | undefined> | null | undefined;
6820
- actionDetails?: {
6821
- templateId?: string | undefined;
6822
- isImmediateCorrection?: boolean | undefined;
6823
- } | null | undefined;
6824
7093
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6825
7094
  }, {
6826
7095
  type: "ASSIGN";
@@ -6924,10 +7193,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6924
7193
  start: string;
6925
7194
  end: string;
6926
7195
  } | null | undefined> | null | undefined;
6927
- actionDetails?: {
6928
- templateId?: string | undefined;
6929
- isImmediateCorrection?: boolean | undefined;
6930
- } | null | undefined;
6931
7196
  originalActionId?: string | null | undefined;
6932
7197
  }>, z.ZodObject<z.objectUtil.extendShape<{
6933
7198
  id: z.ZodBranded<z.ZodString, "UUID">;
@@ -7208,16 +7473,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7208
7473
  surname?: string | null | undefined;
7209
7474
  middlename?: string | null | undefined;
7210
7475
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
7211
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
7212
- templateId: z.ZodOptional<z.ZodString>;
7213
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
7214
- }, "strip", z.ZodTypeAny, {
7215
- templateId?: string | undefined;
7216
- isImmediateCorrection?: boolean | undefined;
7217
- }, {
7218
- templateId?: string | undefined;
7219
- isImmediateCorrection?: boolean | undefined;
7220
- }>>>;
7221
7476
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
7222
7477
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
7223
7478
  }, {
@@ -7323,10 +7578,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7323
7578
  start: string;
7324
7579
  end: string;
7325
7580
  } | null | undefined> | null | undefined;
7326
- actionDetails?: {
7327
- templateId?: string | undefined;
7328
- isImmediateCorrection?: boolean | undefined;
7329
- } | null | undefined;
7330
7581
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7331
7582
  }, {
7332
7583
  type: "REQUEST_CORRECTION";
@@ -7429,10 +7680,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7429
7680
  start: string;
7430
7681
  end: string;
7431
7682
  } | null | undefined> | null | undefined;
7432
- actionDetails?: {
7433
- templateId?: string | undefined;
7434
- isImmediateCorrection?: boolean | undefined;
7435
- } | null | undefined;
7436
7683
  originalActionId?: string | null | undefined;
7437
7684
  }>, z.ZodObject<z.objectUtil.extendShape<{
7438
7685
  id: z.ZodBranded<z.ZodString, "UUID">;
@@ -7713,16 +7960,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7713
7960
  surname?: string | null | undefined;
7714
7961
  middlename?: string | null | undefined;
7715
7962
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
7716
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
7717
- templateId: z.ZodOptional<z.ZodString>;
7718
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
7719
- }, "strip", z.ZodTypeAny, {
7720
- templateId?: string | undefined;
7721
- isImmediateCorrection?: boolean | undefined;
7722
- }, {
7723
- templateId?: string | undefined;
7724
- isImmediateCorrection?: boolean | undefined;
7725
- }>>>;
7726
7963
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
7727
7964
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
7728
7965
  }, {
@@ -7830,10 +8067,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7830
8067
  start: string;
7831
8068
  end: string;
7832
8069
  } | null | undefined> | null | undefined;
7833
- actionDetails?: {
7834
- templateId?: string | undefined;
7835
- isImmediateCorrection?: boolean | undefined;
7836
- } | null | undefined;
7837
8070
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7838
8071
  }, {
7839
8072
  type: "APPROVE_CORRECTION";
@@ -7937,10 +8170,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7937
8170
  start: string;
7938
8171
  end: string;
7939
8172
  } | null | undefined> | null | undefined;
7940
- actionDetails?: {
7941
- templateId?: string | undefined;
7942
- isImmediateCorrection?: boolean | undefined;
7943
- } | null | undefined;
7944
8173
  originalActionId?: string | null | undefined;
7945
8174
  }>, z.ZodObject<z.objectUtil.extendShape<{
7946
8175
  id: z.ZodBranded<z.ZodString, "UUID">;
@@ -8217,29 +8446,33 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
8217
8446
  surname?: string | null | undefined;
8218
8447
  middlename?: string | null | undefined;
8219
8448
  }, {
8220
- firstname?: string | null | undefined;
8221
- surname?: string | null | undefined;
8222
- middlename?: string | null | undefined;
8223
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
8224
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
8225
- templateId: z.ZodOptional<z.ZodString>;
8226
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
8227
- }, "strip", z.ZodTypeAny, {
8228
- templateId?: string | undefined;
8229
- isImmediateCorrection?: boolean | undefined;
8230
- }, {
8231
- templateId?: string | undefined;
8232
- isImmediateCorrection?: boolean | undefined;
8233
- }>>>;
8449
+ firstname?: string | null | undefined;
8450
+ surname?: string | null | undefined;
8451
+ middlename?: string | null | undefined;
8452
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
8234
8453
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
8235
8454
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
8236
8455
  }, {
8237
8456
  type: z.ZodLiteral<"REJECT_CORRECTION">;
8238
8457
  requestId: z.ZodString;
8458
+ reason: z.ZodObject<{
8459
+ message: z.ZodString;
8460
+ isDuplicate: z.ZodOptional<z.ZodBoolean>;
8461
+ }, "strip", z.ZodTypeAny, {
8462
+ message: string;
8463
+ isDuplicate?: boolean | undefined;
8464
+ }, {
8465
+ message: string;
8466
+ isDuplicate?: boolean | undefined;
8467
+ }>;
8239
8468
  }>, "strip", z.ZodTypeAny, {
8240
8469
  type: "REJECT_CORRECTION";
8241
8470
  id: string & z.BRAND<"UUID">;
8242
8471
  status: "Rejected" | "Requested" | "Accepted";
8472
+ reason: {
8473
+ message: string;
8474
+ isDuplicate?: boolean | undefined;
8475
+ };
8243
8476
  transactionId: string;
8244
8477
  createdByUserType: "system" | "user";
8245
8478
  createdAt: string;
@@ -8338,15 +8571,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
8338
8571
  start: string;
8339
8572
  end: string;
8340
8573
  } | null | undefined> | null | undefined;
8341
- actionDetails?: {
8342
- templateId?: string | undefined;
8343
- isImmediateCorrection?: boolean | undefined;
8344
- } | null | undefined;
8345
8574
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
8346
8575
  }, {
8347
8576
  type: "REJECT_CORRECTION";
8348
8577
  id: string;
8349
8578
  status: "Rejected" | "Requested" | "Accepted";
8579
+ reason: {
8580
+ message: string;
8581
+ isDuplicate?: boolean | undefined;
8582
+ };
8350
8583
  transactionId: string;
8351
8584
  createdByUserType: "system" | "user";
8352
8585
  createdAt: string;
@@ -8445,10 +8678,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
8445
8678
  start: string;
8446
8679
  end: string;
8447
8680
  } | null | undefined> | null | undefined;
8448
- actionDetails?: {
8449
- templateId?: string | undefined;
8450
- isImmediateCorrection?: boolean | undefined;
8451
- } | null | undefined;
8452
8681
  originalActionId?: string | null | undefined;
8453
8682
  }>, z.ZodObject<z.objectUtil.extendShape<{
8454
8683
  id: z.ZodBranded<z.ZodString, "UUID">;
@@ -8729,16 +8958,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
8729
8958
  surname?: string | null | undefined;
8730
8959
  middlename?: string | null | undefined;
8731
8960
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
8732
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
8733
- templateId: z.ZodOptional<z.ZodString>;
8734
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
8735
- }, "strip", z.ZodTypeAny, {
8736
- templateId?: string | undefined;
8737
- isImmediateCorrection?: boolean | undefined;
8738
- }, {
8739
- templateId?: string | undefined;
8740
- isImmediateCorrection?: boolean | undefined;
8741
- }>>>;
8742
8961
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
8743
8962
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
8744
8963
  }, {
@@ -8844,10 +9063,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
8844
9063
  start: string;
8845
9064
  end: string;
8846
9065
  } | null | undefined> | null | undefined;
8847
- actionDetails?: {
8848
- templateId?: string | undefined;
8849
- isImmediateCorrection?: boolean | undefined;
8850
- } | null | undefined;
8851
9066
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
8852
9067
  }, {
8853
9068
  type: "UNASSIGN";
@@ -8950,10 +9165,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
8950
9165
  start: string;
8951
9166
  end: string;
8952
9167
  } | null | undefined> | null | undefined;
8953
- actionDetails?: {
8954
- templateId?: string | undefined;
8955
- isImmediateCorrection?: boolean | undefined;
8956
- } | null | undefined;
8957
9168
  originalActionId?: string | null | undefined;
8958
9169
  }>, z.ZodObject<z.objectUtil.extendShape<{
8959
9170
  id: z.ZodBranded<z.ZodString, "UUID">;
@@ -9234,20 +9445,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
9234
9445
  surname?: string | null | undefined;
9235
9446
  middlename?: string | null | undefined;
9236
9447
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
9237
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
9448
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
9449
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
9450
+ }, {
9451
+ type: z.ZodLiteral<"PRINT_CERTIFICATE">;
9452
+ content: z.ZodNullable<z.ZodOptional<z.ZodObject<{
9238
9453
  templateId: z.ZodOptional<z.ZodString>;
9239
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
9240
9454
  }, "strip", z.ZodTypeAny, {
9241
9455
  templateId?: string | undefined;
9242
- isImmediateCorrection?: boolean | undefined;
9243
9456
  }, {
9244
9457
  templateId?: string | undefined;
9245
- isImmediateCorrection?: boolean | undefined;
9246
9458
  }>>>;
9247
- status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
9248
- originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
9249
- }, {
9250
- type: z.ZodLiteral<"PRINT_CERTIFICATE">;
9251
9459
  }>, "strip", z.ZodTypeAny, {
9252
9460
  type: "PRINT_CERTIFICATE";
9253
9461
  id: string & z.BRAND<"UUID">;
@@ -9302,6 +9510,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
9302
9510
  start: string;
9303
9511
  end: string;
9304
9512
  } | null | undefined>;
9513
+ content?: {
9514
+ templateId?: string | undefined;
9515
+ } | null | undefined;
9305
9516
  createdBySignature?: string | null | undefined;
9306
9517
  createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
9307
9518
  annotation?: Record<string, string | number | boolean | {
@@ -9349,10 +9560,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
9349
9560
  start: string;
9350
9561
  end: string;
9351
9562
  } | null | undefined> | null | undefined;
9352
- actionDetails?: {
9353
- templateId?: string | undefined;
9354
- isImmediateCorrection?: boolean | undefined;
9355
- } | null | undefined;
9356
9563
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
9357
9564
  }, {
9358
9565
  type: "PRINT_CERTIFICATE";
@@ -9408,6 +9615,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
9408
9615
  start: string;
9409
9616
  end: string;
9410
9617
  } | null | undefined>;
9618
+ content?: {
9619
+ templateId?: string | undefined;
9620
+ } | null | undefined;
9411
9621
  createdBySignature?: string | null | undefined;
9412
9622
  createdAtLocation?: string | null | undefined;
9413
9623
  annotation?: Record<string, string | number | boolean | {
@@ -9455,10 +9665,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
9455
9665
  start: string;
9456
9666
  end: string;
9457
9667
  } | null | undefined> | null | undefined;
9458
- actionDetails?: {
9459
- templateId?: string | undefined;
9460
- isImmediateCorrection?: boolean | undefined;
9461
- } | null | undefined;
9462
9668
  originalActionId?: string | null | undefined;
9463
9669
  }>, z.ZodObject<z.objectUtil.extendShape<{
9464
9670
  id: z.ZodBranded<z.ZodString, "UUID">;
@@ -9739,16 +9945,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
9739
9945
  surname?: string | null | undefined;
9740
9946
  middlename?: string | null | undefined;
9741
9947
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
9742
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
9743
- templateId: z.ZodOptional<z.ZodString>;
9744
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
9745
- }, "strip", z.ZodTypeAny, {
9746
- templateId?: string | undefined;
9747
- isImmediateCorrection?: boolean | undefined;
9748
- }, {
9749
- templateId?: string | undefined;
9750
- isImmediateCorrection?: boolean | undefined;
9751
- }>>>;
9752
9948
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
9753
9949
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
9754
9950
  }, {
@@ -9854,10 +10050,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
9854
10050
  start: string;
9855
10051
  end: string;
9856
10052
  } | null | undefined> | null | undefined;
9857
- actionDetails?: {
9858
- templateId?: string | undefined;
9859
- isImmediateCorrection?: boolean | undefined;
9860
- } | null | undefined;
9861
10053
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
9862
10054
  }, {
9863
10055
  type: "READ";
@@ -9960,10 +10152,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
9960
10152
  start: string;
9961
10153
  end: string;
9962
10154
  } | null | undefined> | null | undefined;
9963
- actionDetails?: {
9964
- templateId?: string | undefined;
9965
- isImmediateCorrection?: boolean | undefined;
9966
- } | null | undefined;
9967
10155
  originalActionId?: string | null | undefined;
9968
10156
  }>]>;
9969
10157
  export type ActionDocument = z.infer<typeof ActionDocument>;
@@ -10246,16 +10434,6 @@ export declare const AsyncRejectActionDocument: z.ZodObject<z.objectUtil.extendS
10246
10434
  surname?: string | null | undefined;
10247
10435
  middlename?: string | null | undefined;
10248
10436
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
10249
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
10250
- templateId: z.ZodOptional<z.ZodString>;
10251
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
10252
- }, "strip", z.ZodTypeAny, {
10253
- templateId?: string | undefined;
10254
- isImmediateCorrection?: boolean | undefined;
10255
- }, {
10256
- templateId?: string | undefined;
10257
- isImmediateCorrection?: boolean | undefined;
10258
- }>>>;
10259
10437
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
10260
10438
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
10261
10439
  }, "declaration" | "annotation">, {
@@ -10272,10 +10450,6 @@ export declare const AsyncRejectActionDocument: z.ZodObject<z.objectUtil.extendS
10272
10450
  createdByRole: string;
10273
10451
  createdBySignature?: string | null | undefined;
10274
10452
  createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
10275
- actionDetails?: {
10276
- templateId?: string | undefined;
10277
- isImmediateCorrection?: boolean | undefined;
10278
- } | null | undefined;
10279
10453
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
10280
10454
  }, {
10281
10455
  type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
@@ -10288,10 +10462,6 @@ export declare const AsyncRejectActionDocument: z.ZodObject<z.objectUtil.extendS
10288
10462
  createdByRole: string;
10289
10463
  createdBySignature?: string | null | undefined;
10290
10464
  createdAtLocation?: string | null | undefined;
10291
- actionDetails?: {
10292
- templateId?: string | undefined;
10293
- isImmediateCorrection?: boolean | undefined;
10294
- } | null | undefined;
10295
10465
  originalActionId?: string | null | undefined;
10296
10466
  }>;
10297
10467
  export type AsyncRejectActionDocument = z.infer<typeof AsyncRejectActionDocument>;
@@ -10574,16 +10744,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10574
10744
  surname?: string | null | undefined;
10575
10745
  middlename?: string | null | undefined;
10576
10746
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
10577
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
10578
- templateId: z.ZodOptional<z.ZodString>;
10579
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
10580
- }, "strip", z.ZodTypeAny, {
10581
- templateId?: string | undefined;
10582
- isImmediateCorrection?: boolean | undefined;
10583
- }, {
10584
- templateId?: string | undefined;
10585
- isImmediateCorrection?: boolean | undefined;
10586
- }>>>;
10587
10747
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
10588
10748
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
10589
10749
  }, {
@@ -10689,10 +10849,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10689
10849
  start: string;
10690
10850
  end: string;
10691
10851
  } | null | undefined> | null | undefined;
10692
- actionDetails?: {
10693
- templateId?: string | undefined;
10694
- isImmediateCorrection?: boolean | undefined;
10695
- } | null | undefined;
10696
10852
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
10697
10853
  }, {
10698
10854
  type: "CREATE";
@@ -10795,10 +10951,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10795
10951
  start: string;
10796
10952
  end: string;
10797
10953
  } | null | undefined> | null | undefined;
10798
- actionDetails?: {
10799
- templateId?: string | undefined;
10800
- isImmediateCorrection?: boolean | undefined;
10801
- } | null | undefined;
10802
10954
  originalActionId?: string | null | undefined;
10803
10955
  }>, z.ZodObject<z.objectUtil.extendShape<{
10804
10956
  id: z.ZodBranded<z.ZodString, "UUID">;
@@ -11079,16 +11231,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11079
11231
  surname?: string | null | undefined;
11080
11232
  middlename?: string | null | undefined;
11081
11233
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
11082
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
11083
- templateId: z.ZodOptional<z.ZodString>;
11084
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
11085
- }, "strip", z.ZodTypeAny, {
11086
- templateId?: string | undefined;
11087
- isImmediateCorrection?: boolean | undefined;
11088
- }, {
11089
- templateId?: string | undefined;
11090
- isImmediateCorrection?: boolean | undefined;
11091
- }>>>;
11092
11234
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
11093
11235
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
11094
11236
  }, {
@@ -11194,10 +11336,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11194
11336
  start: string;
11195
11337
  end: string;
11196
11338
  } | null | undefined> | null | undefined;
11197
- actionDetails?: {
11198
- templateId?: string | undefined;
11199
- isImmediateCorrection?: boolean | undefined;
11200
- } | null | undefined;
11201
11339
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
11202
11340
  }, {
11203
11341
  type: "VALIDATE";
@@ -11300,10 +11438,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11300
11438
  start: string;
11301
11439
  end: string;
11302
11440
  } | null | undefined> | null | undefined;
11303
- actionDetails?: {
11304
- templateId?: string | undefined;
11305
- isImmediateCorrection?: boolean | undefined;
11306
- } | null | undefined;
11307
11441
  originalActionId?: string | null | undefined;
11308
11442
  }>, z.ZodObject<z.objectUtil.extendShape<{
11309
11443
  id: z.ZodBranded<z.ZodString, "UUID">;
@@ -11584,16 +11718,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11584
11718
  surname?: string | null | undefined;
11585
11719
  middlename?: string | null | undefined;
11586
11720
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
11587
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
11588
- templateId: z.ZodOptional<z.ZodString>;
11589
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
11590
- }, "strip", z.ZodTypeAny, {
11591
- templateId?: string | undefined;
11592
- isImmediateCorrection?: boolean | undefined;
11593
- }, {
11594
- templateId?: string | undefined;
11595
- isImmediateCorrection?: boolean | undefined;
11596
- }>>>;
11597
11721
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
11598
11722
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
11599
11723
  }, {
@@ -11713,10 +11837,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11713
11837
  start: string;
11714
11838
  end: string;
11715
11839
  } | null | undefined> | null | undefined;
11716
- actionDetails?: {
11717
- templateId?: string | undefined;
11718
- isImmediateCorrection?: boolean | undefined;
11719
- } | null | undefined;
11720
11840
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
11721
11841
  }, {
11722
11842
  type: "REJECT";
@@ -11823,10 +11943,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11823
11943
  start: string;
11824
11944
  end: string;
11825
11945
  } | null | undefined> | null | undefined;
11826
- actionDetails?: {
11827
- templateId?: string | undefined;
11828
- isImmediateCorrection?: boolean | undefined;
11829
- } | null | undefined;
11830
11946
  originalActionId?: string | null | undefined;
11831
11947
  }>, z.ZodObject<z.objectUtil.extendShape<{
11832
11948
  id: z.ZodBranded<z.ZodString, "UUID">;
@@ -12107,16 +12223,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12107
12223
  surname?: string | null | undefined;
12108
12224
  middlename?: string | null | undefined;
12109
12225
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
12110
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
12111
- templateId: z.ZodOptional<z.ZodString>;
12112
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
12113
- }, "strip", z.ZodTypeAny, {
12114
- templateId?: string | undefined;
12115
- isImmediateCorrection?: boolean | undefined;
12116
- }, {
12117
- templateId?: string | undefined;
12118
- isImmediateCorrection?: boolean | undefined;
12119
- }>>>;
12120
12226
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
12121
12227
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
12122
12228
  }, {
@@ -12222,10 +12328,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12222
12328
  start: string;
12223
12329
  end: string;
12224
12330
  } | null | undefined> | null | undefined;
12225
- actionDetails?: {
12226
- templateId?: string | undefined;
12227
- isImmediateCorrection?: boolean | undefined;
12228
- } | null | undefined;
12229
12331
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
12230
12332
  }, {
12231
12333
  type: "MARKED_AS_DUPLICATE";
@@ -12328,10 +12430,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12328
12430
  start: string;
12329
12431
  end: string;
12330
12432
  } | null | undefined> | null | undefined;
12331
- actionDetails?: {
12332
- templateId?: string | undefined;
12333
- isImmediateCorrection?: boolean | undefined;
12334
- } | null | undefined;
12335
12433
  originalActionId?: string | null | undefined;
12336
12434
  }>, z.ZodObject<z.objectUtil.extendShape<{
12337
12435
  id: z.ZodBranded<z.ZodString, "UUID">;
@@ -12612,16 +12710,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12612
12710
  surname?: string | null | undefined;
12613
12711
  middlename?: string | null | undefined;
12614
12712
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
12615
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
12616
- templateId: z.ZodOptional<z.ZodString>;
12617
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
12618
- }, "strip", z.ZodTypeAny, {
12619
- templateId?: string | undefined;
12620
- isImmediateCorrection?: boolean | undefined;
12621
- }, {
12622
- templateId?: string | undefined;
12623
- isImmediateCorrection?: boolean | undefined;
12624
- }>>>;
12625
12713
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
12626
12714
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
12627
12715
  }, {
@@ -12741,10 +12829,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12741
12829
  start: string;
12742
12830
  end: string;
12743
12831
  } | null | undefined> | null | undefined;
12744
- actionDetails?: {
12745
- templateId?: string | undefined;
12746
- isImmediateCorrection?: boolean | undefined;
12747
- } | null | undefined;
12748
12832
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
12749
12833
  }, {
12750
12834
  type: "ARCHIVE";
@@ -12851,10 +12935,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12851
12935
  start: string;
12852
12936
  end: string;
12853
12937
  } | null | undefined> | null | undefined;
12854
- actionDetails?: {
12855
- templateId?: string | undefined;
12856
- isImmediateCorrection?: boolean | undefined;
12857
- } | null | undefined;
12858
12938
  originalActionId?: string | null | undefined;
12859
12939
  }>, z.ZodObject<z.objectUtil.extendShape<{
12860
12940
  id: z.ZodBranded<z.ZodString, "UUID">;
@@ -13135,16 +13215,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13135
13215
  surname?: string | null | undefined;
13136
13216
  middlename?: string | null | undefined;
13137
13217
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
13138
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
13139
- templateId: z.ZodOptional<z.ZodString>;
13140
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
13141
- }, "strip", z.ZodTypeAny, {
13142
- templateId?: string | undefined;
13143
- isImmediateCorrection?: boolean | undefined;
13144
- }, {
13145
- templateId?: string | undefined;
13146
- isImmediateCorrection?: boolean | undefined;
13147
- }>>>;
13148
13218
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
13149
13219
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
13150
13220
  }, {
@@ -13250,10 +13320,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13250
13320
  start: string;
13251
13321
  end: string;
13252
13322
  } | null | undefined> | null | undefined;
13253
- actionDetails?: {
13254
- templateId?: string | undefined;
13255
- isImmediateCorrection?: boolean | undefined;
13256
- } | null | undefined;
13257
13323
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
13258
13324
  }, {
13259
13325
  type: "NOTIFY";
@@ -13356,10 +13422,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13356
13422
  start: string;
13357
13423
  end: string;
13358
13424
  } | null | undefined> | null | undefined;
13359
- actionDetails?: {
13360
- templateId?: string | undefined;
13361
- isImmediateCorrection?: boolean | undefined;
13362
- } | null | undefined;
13363
13425
  originalActionId?: string | null | undefined;
13364
13426
  }>, z.ZodObject<z.objectUtil.extendShape<{
13365
13427
  id: z.ZodBranded<z.ZodString, "UUID">;
@@ -13640,16 +13702,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13640
13702
  surname?: string | null | undefined;
13641
13703
  middlename?: string | null | undefined;
13642
13704
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
13643
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
13644
- templateId: z.ZodOptional<z.ZodString>;
13645
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
13646
- }, "strip", z.ZodTypeAny, {
13647
- templateId?: string | undefined;
13648
- isImmediateCorrection?: boolean | undefined;
13649
- }, {
13650
- templateId?: string | undefined;
13651
- isImmediateCorrection?: boolean | undefined;
13652
- }>>>;
13653
13705
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
13654
13706
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
13655
13707
  }, {
@@ -13756,10 +13808,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13756
13808
  start: string;
13757
13809
  end: string;
13758
13810
  } | null | undefined> | null | undefined;
13759
- actionDetails?: {
13760
- templateId?: string | undefined;
13761
- isImmediateCorrection?: boolean | undefined;
13762
- } | null | undefined;
13763
13811
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
13764
13812
  registrationNumber?: string | undefined;
13765
13813
  }, {
@@ -13863,10 +13911,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13863
13911
  start: string;
13864
13912
  end: string;
13865
13913
  } | null | undefined> | null | undefined;
13866
- actionDetails?: {
13867
- templateId?: string | undefined;
13868
- isImmediateCorrection?: boolean | undefined;
13869
- } | null | undefined;
13870
13914
  originalActionId?: string | null | undefined;
13871
13915
  registrationNumber?: string | undefined;
13872
13916
  }>, z.ZodObject<z.objectUtil.extendShape<{
@@ -14148,16 +14192,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
14148
14192
  surname?: string | null | undefined;
14149
14193
  middlename?: string | null | undefined;
14150
14194
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
14151
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
14152
- templateId: z.ZodOptional<z.ZodString>;
14153
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
14154
- }, "strip", z.ZodTypeAny, {
14155
- templateId?: string | undefined;
14156
- isImmediateCorrection?: boolean | undefined;
14157
- }, {
14158
- templateId?: string | undefined;
14159
- isImmediateCorrection?: boolean | undefined;
14160
- }>>>;
14161
14195
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
14162
14196
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
14163
14197
  }, {
@@ -14263,10 +14297,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
14263
14297
  start: string;
14264
14298
  end: string;
14265
14299
  } | null | undefined> | null | undefined;
14266
- actionDetails?: {
14267
- templateId?: string | undefined;
14268
- isImmediateCorrection?: boolean | undefined;
14269
- } | null | undefined;
14270
14300
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
14271
14301
  }, {
14272
14302
  type: "DECLARE";
@@ -14369,10 +14399,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
14369
14399
  start: string;
14370
14400
  end: string;
14371
14401
  } | null | undefined> | null | undefined;
14372
- actionDetails?: {
14373
- templateId?: string | undefined;
14374
- isImmediateCorrection?: boolean | undefined;
14375
- } | null | undefined;
14376
14402
  originalActionId?: string | null | undefined;
14377
14403
  }>, z.ZodObject<z.objectUtil.extendShape<{
14378
14404
  id: z.ZodBranded<z.ZodString, "UUID">;
@@ -14653,16 +14679,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
14653
14679
  surname?: string | null | undefined;
14654
14680
  middlename?: string | null | undefined;
14655
14681
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
14656
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
14657
- templateId: z.ZodOptional<z.ZodString>;
14658
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
14659
- }, "strip", z.ZodTypeAny, {
14660
- templateId?: string | undefined;
14661
- isImmediateCorrection?: boolean | undefined;
14662
- }, {
14663
- templateId?: string | undefined;
14664
- isImmediateCorrection?: boolean | undefined;
14665
- }>>>;
14666
14682
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
14667
14683
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
14668
14684
  }, {
@@ -14770,10 +14786,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
14770
14786
  start: string;
14771
14787
  end: string;
14772
14788
  } | null | undefined> | null | undefined;
14773
- actionDetails?: {
14774
- templateId?: string | undefined;
14775
- isImmediateCorrection?: boolean | undefined;
14776
- } | null | undefined;
14777
14789
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
14778
14790
  }, {
14779
14791
  type: "ASSIGN";
@@ -14877,10 +14889,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
14877
14889
  start: string;
14878
14890
  end: string;
14879
14891
  } | null | undefined> | null | undefined;
14880
- actionDetails?: {
14881
- templateId?: string | undefined;
14882
- isImmediateCorrection?: boolean | undefined;
14883
- } | null | undefined;
14884
14892
  originalActionId?: string | null | undefined;
14885
14893
  }>, z.ZodObject<z.objectUtil.extendShape<{
14886
14894
  id: z.ZodBranded<z.ZodString, "UUID">;
@@ -15161,16 +15169,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
15161
15169
  surname?: string | null | undefined;
15162
15170
  middlename?: string | null | undefined;
15163
15171
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
15164
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
15165
- templateId: z.ZodOptional<z.ZodString>;
15166
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
15167
- }, "strip", z.ZodTypeAny, {
15168
- templateId?: string | undefined;
15169
- isImmediateCorrection?: boolean | undefined;
15170
- }, {
15171
- templateId?: string | undefined;
15172
- isImmediateCorrection?: boolean | undefined;
15173
- }>>>;
15174
15172
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
15175
15173
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
15176
15174
  }, {
@@ -15276,10 +15274,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
15276
15274
  start: string;
15277
15275
  end: string;
15278
15276
  } | null | undefined> | null | undefined;
15279
- actionDetails?: {
15280
- templateId?: string | undefined;
15281
- isImmediateCorrection?: boolean | undefined;
15282
- } | null | undefined;
15283
15277
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
15284
15278
  }, {
15285
15279
  type: "REQUEST_CORRECTION";
@@ -15382,10 +15376,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
15382
15376
  start: string;
15383
15377
  end: string;
15384
15378
  } | null | undefined> | null | undefined;
15385
- actionDetails?: {
15386
- templateId?: string | undefined;
15387
- isImmediateCorrection?: boolean | undefined;
15388
- } | null | undefined;
15389
15379
  originalActionId?: string | null | undefined;
15390
15380
  }>, z.ZodObject<z.objectUtil.extendShape<{
15391
15381
  id: z.ZodBranded<z.ZodString, "UUID">;
@@ -15666,16 +15656,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
15666
15656
  surname?: string | null | undefined;
15667
15657
  middlename?: string | null | undefined;
15668
15658
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
15669
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
15670
- templateId: z.ZodOptional<z.ZodString>;
15671
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
15672
- }, "strip", z.ZodTypeAny, {
15673
- templateId?: string | undefined;
15674
- isImmediateCorrection?: boolean | undefined;
15675
- }, {
15676
- templateId?: string | undefined;
15677
- isImmediateCorrection?: boolean | undefined;
15678
- }>>>;
15679
15659
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
15680
15660
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
15681
15661
  }, {
@@ -15783,10 +15763,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
15783
15763
  start: string;
15784
15764
  end: string;
15785
15765
  } | null | undefined> | null | undefined;
15786
- actionDetails?: {
15787
- templateId?: string | undefined;
15788
- isImmediateCorrection?: boolean | undefined;
15789
- } | null | undefined;
15790
15766
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
15791
15767
  }, {
15792
15768
  type: "APPROVE_CORRECTION";
@@ -15890,10 +15866,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
15890
15866
  start: string;
15891
15867
  end: string;
15892
15868
  } | null | undefined> | null | undefined;
15893
- actionDetails?: {
15894
- templateId?: string | undefined;
15895
- isImmediateCorrection?: boolean | undefined;
15896
- } | null | undefined;
15897
15869
  originalActionId?: string | null | undefined;
15898
15870
  }>, z.ZodObject<z.objectUtil.extendShape<{
15899
15871
  id: z.ZodBranded<z.ZodString, "UUID">;
@@ -16174,25 +16146,29 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
16174
16146
  surname?: string | null | undefined;
16175
16147
  middlename?: string | null | undefined;
16176
16148
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
16177
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
16178
- templateId: z.ZodOptional<z.ZodString>;
16179
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
16180
- }, "strip", z.ZodTypeAny, {
16181
- templateId?: string | undefined;
16182
- isImmediateCorrection?: boolean | undefined;
16183
- }, {
16184
- templateId?: string | undefined;
16185
- isImmediateCorrection?: boolean | undefined;
16186
- }>>>;
16187
16149
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
16188
16150
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
16189
16151
  }, {
16190
16152
  type: z.ZodLiteral<"REJECT_CORRECTION">;
16191
16153
  requestId: z.ZodString;
16154
+ reason: z.ZodObject<{
16155
+ message: z.ZodString;
16156
+ isDuplicate: z.ZodOptional<z.ZodBoolean>;
16157
+ }, "strip", z.ZodTypeAny, {
16158
+ message: string;
16159
+ isDuplicate?: boolean | undefined;
16160
+ }, {
16161
+ message: string;
16162
+ isDuplicate?: boolean | undefined;
16163
+ }>;
16192
16164
  }>, "strip", z.ZodTypeAny, {
16193
16165
  type: "REJECT_CORRECTION";
16194
16166
  id: string & z.BRAND<"UUID">;
16195
16167
  status: "Rejected" | "Requested" | "Accepted";
16168
+ reason: {
16169
+ message: string;
16170
+ isDuplicate?: boolean | undefined;
16171
+ };
16196
16172
  transactionId: string;
16197
16173
  createdByUserType: "system" | "user";
16198
16174
  createdAt: string;
@@ -16291,15 +16267,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
16291
16267
  start: string;
16292
16268
  end: string;
16293
16269
  } | null | undefined> | null | undefined;
16294
- actionDetails?: {
16295
- templateId?: string | undefined;
16296
- isImmediateCorrection?: boolean | undefined;
16297
- } | null | undefined;
16298
16270
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
16299
16271
  }, {
16300
16272
  type: "REJECT_CORRECTION";
16301
16273
  id: string;
16302
16274
  status: "Rejected" | "Requested" | "Accepted";
16275
+ reason: {
16276
+ message: string;
16277
+ isDuplicate?: boolean | undefined;
16278
+ };
16303
16279
  transactionId: string;
16304
16280
  createdByUserType: "system" | "user";
16305
16281
  createdAt: string;
@@ -16398,10 +16374,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
16398
16374
  start: string;
16399
16375
  end: string;
16400
16376
  } | null | undefined> | null | undefined;
16401
- actionDetails?: {
16402
- templateId?: string | undefined;
16403
- isImmediateCorrection?: boolean | undefined;
16404
- } | null | undefined;
16405
16377
  originalActionId?: string | null | undefined;
16406
16378
  }>, z.ZodObject<z.objectUtil.extendShape<{
16407
16379
  id: z.ZodBranded<z.ZodString, "UUID">;
@@ -16682,16 +16654,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
16682
16654
  surname?: string | null | undefined;
16683
16655
  middlename?: string | null | undefined;
16684
16656
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
16685
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
16686
- templateId: z.ZodOptional<z.ZodString>;
16687
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
16688
- }, "strip", z.ZodTypeAny, {
16689
- templateId?: string | undefined;
16690
- isImmediateCorrection?: boolean | undefined;
16691
- }, {
16692
- templateId?: string | undefined;
16693
- isImmediateCorrection?: boolean | undefined;
16694
- }>>>;
16695
16657
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
16696
16658
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
16697
16659
  }, {
@@ -16797,10 +16759,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
16797
16759
  start: string;
16798
16760
  end: string;
16799
16761
  } | null | undefined> | null | undefined;
16800
- actionDetails?: {
16801
- templateId?: string | undefined;
16802
- isImmediateCorrection?: boolean | undefined;
16803
- } | null | undefined;
16804
16762
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
16805
16763
  }, {
16806
16764
  type: "UNASSIGN";
@@ -16903,10 +16861,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
16903
16861
  start: string;
16904
16862
  end: string;
16905
16863
  } | null | undefined> | null | undefined;
16906
- actionDetails?: {
16907
- templateId?: string | undefined;
16908
- isImmediateCorrection?: boolean | undefined;
16909
- } | null | undefined;
16910
16864
  originalActionId?: string | null | undefined;
16911
16865
  }>, z.ZodObject<z.objectUtil.extendShape<{
16912
16866
  id: z.ZodBranded<z.ZodString, "UUID">;
@@ -17187,20 +17141,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
17187
17141
  surname?: string | null | undefined;
17188
17142
  middlename?: string | null | undefined;
17189
17143
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
17190
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
17144
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
17145
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
17146
+ }, {
17147
+ type: z.ZodLiteral<"PRINT_CERTIFICATE">;
17148
+ content: z.ZodNullable<z.ZodOptional<z.ZodObject<{
17191
17149
  templateId: z.ZodOptional<z.ZodString>;
17192
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
17193
17150
  }, "strip", z.ZodTypeAny, {
17194
17151
  templateId?: string | undefined;
17195
- isImmediateCorrection?: boolean | undefined;
17196
17152
  }, {
17197
17153
  templateId?: string | undefined;
17198
- isImmediateCorrection?: boolean | undefined;
17199
17154
  }>>>;
17200
- status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
17201
- originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
17202
- }, {
17203
- type: z.ZodLiteral<"PRINT_CERTIFICATE">;
17204
17155
  }>, "strip", z.ZodTypeAny, {
17205
17156
  type: "PRINT_CERTIFICATE";
17206
17157
  id: string & z.BRAND<"UUID">;
@@ -17255,6 +17206,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
17255
17206
  start: string;
17256
17207
  end: string;
17257
17208
  } | null | undefined>;
17209
+ content?: {
17210
+ templateId?: string | undefined;
17211
+ } | null | undefined;
17258
17212
  createdBySignature?: string | null | undefined;
17259
17213
  createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
17260
17214
  annotation?: Record<string, string | number | boolean | {
@@ -17302,10 +17256,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
17302
17256
  start: string;
17303
17257
  end: string;
17304
17258
  } | null | undefined> | null | undefined;
17305
- actionDetails?: {
17306
- templateId?: string | undefined;
17307
- isImmediateCorrection?: boolean | undefined;
17308
- } | null | undefined;
17309
17259
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
17310
17260
  }, {
17311
17261
  type: "PRINT_CERTIFICATE";
@@ -17361,6 +17311,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
17361
17311
  start: string;
17362
17312
  end: string;
17363
17313
  } | null | undefined>;
17314
+ content?: {
17315
+ templateId?: string | undefined;
17316
+ } | null | undefined;
17364
17317
  createdBySignature?: string | null | undefined;
17365
17318
  createdAtLocation?: string | null | undefined;
17366
17319
  annotation?: Record<string, string | number | boolean | {
@@ -17408,10 +17361,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
17408
17361
  start: string;
17409
17362
  end: string;
17410
17363
  } | null | undefined> | null | undefined;
17411
- actionDetails?: {
17412
- templateId?: string | undefined;
17413
- isImmediateCorrection?: boolean | undefined;
17414
- } | null | undefined;
17415
17364
  originalActionId?: string | null | undefined;
17416
17365
  }>, z.ZodObject<z.objectUtil.extendShape<{
17417
17366
  id: z.ZodBranded<z.ZodString, "UUID">;
@@ -17692,16 +17641,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
17692
17641
  surname?: string | null | undefined;
17693
17642
  middlename?: string | null | undefined;
17694
17643
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
17695
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
17696
- templateId: z.ZodOptional<z.ZodString>;
17697
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
17698
- }, "strip", z.ZodTypeAny, {
17699
- templateId?: string | undefined;
17700
- isImmediateCorrection?: boolean | undefined;
17701
- }, {
17702
- templateId?: string | undefined;
17703
- isImmediateCorrection?: boolean | undefined;
17704
- }>>>;
17705
17644
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
17706
17645
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
17707
17646
  }, {
@@ -17807,10 +17746,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
17807
17746
  start: string;
17808
17747
  end: string;
17809
17748
  } | null | undefined> | null | undefined;
17810
- actionDetails?: {
17811
- templateId?: string | undefined;
17812
- isImmediateCorrection?: boolean | undefined;
17813
- } | null | undefined;
17814
17749
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
17815
17750
  }, {
17816
17751
  type: "READ";
@@ -17913,10 +17848,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
17913
17848
  start: string;
17914
17849
  end: string;
17915
17850
  } | null | undefined> | null | undefined;
17916
- actionDetails?: {
17917
- templateId?: string | undefined;
17918
- isImmediateCorrection?: boolean | undefined;
17919
- } | null | undefined;
17920
17851
  originalActionId?: string | null | undefined;
17921
17852
  }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
17922
17853
  id: z.ZodBranded<z.ZodString, "UUID">;
@@ -18197,16 +18128,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
18197
18128
  surname?: string | null | undefined;
18198
18129
  middlename?: string | null | undefined;
18199
18130
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
18200
- actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
18201
- templateId: z.ZodOptional<z.ZodString>;
18202
- isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
18203
- }, "strip", z.ZodTypeAny, {
18204
- templateId?: string | undefined;
18205
- isImmediateCorrection?: boolean | undefined;
18206
- }, {
18207
- templateId?: string | undefined;
18208
- isImmediateCorrection?: boolean | undefined;
18209
- }>>>;
18210
18131
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
18211
18132
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
18212
18133
  }, "declaration" | "annotation">, {
@@ -18223,10 +18144,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
18223
18144
  createdByRole: string;
18224
18145
  createdBySignature?: string | null | undefined;
18225
18146
  createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
18226
- actionDetails?: {
18227
- templateId?: string | undefined;
18228
- isImmediateCorrection?: boolean | undefined;
18229
- } | null | undefined;
18230
18147
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
18231
18148
  }, {
18232
18149
  type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
@@ -18239,10 +18156,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
18239
18156
  createdByRole: string;
18240
18157
  createdBySignature?: string | null | undefined;
18241
18158
  createdAtLocation?: string | null | undefined;
18242
- actionDetails?: {
18243
- templateId?: string | undefined;
18244
- isImmediateCorrection?: boolean | undefined;
18245
- } | null | undefined;
18246
18159
  originalActionId?: string | null | undefined;
18247
18160
  }>]>;
18248
18161
  export type Action = ActionDocument | AsyncRejectActionDocument;