@opencrvs/toolkit 1.8.0-rc.f7910f3 → 1.8.0-rc.f7aaf07

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/README.md +1 -1
  2. package/dist/commons/api/router.d.ts +20619 -14618
  3. package/dist/commons/conditionals/conditionals.d.ts +36 -6
  4. package/dist/commons/conditionals/validate.d.ts +18 -17
  5. package/dist/commons/events/ActionConfig.d.ts +116370 -6084
  6. package/dist/commons/events/ActionDocument.d.ts +9528 -401
  7. package/dist/commons/events/ActionInput.d.ts +3536 -519
  8. package/dist/commons/events/ActionType.d.ts +32 -16
  9. package/dist/commons/events/AdvancedSearchConfig.d.ts +1233 -22
  10. package/dist/commons/events/CompositeFieldValue.d.ts +31 -0
  11. package/dist/commons/events/Conditional.d.ts +21 -5
  12. package/dist/commons/events/Constants.d.ts +3 -0
  13. package/dist/commons/events/CountryConfigQueryInput.d.ts +3068 -0
  14. package/dist/commons/events/CreatedAtLocation.d.ts +3 -0
  15. package/dist/commons/events/Draft.d.ts +193 -59
  16. package/dist/commons/events/EventConfig.d.ts +55962 -3150
  17. package/dist/commons/events/EventConfigInput.d.ts +5 -2
  18. package/dist/commons/events/EventDocument.d.ts +2192 -552
  19. package/dist/commons/events/EventIndex.d.ts +2026 -22
  20. package/dist/commons/events/EventMetadata.d.ts +332 -40
  21. package/dist/commons/events/FieldConfig.d.ts +5678 -1061
  22. package/dist/commons/events/FieldType.d.ts +6 -3
  23. package/dist/commons/events/FieldTypeMapping.d.ts +103 -54
  24. package/dist/commons/events/FieldValue.d.ts +49 -8
  25. package/dist/commons/events/FormConfig.d.ts +49225 -346
  26. package/dist/commons/events/PageConfig.d.ts +12337 -0
  27. package/dist/commons/events/SummaryConfig.d.ts +93 -42
  28. package/dist/commons/events/TemplateConfig.d.ts +5 -5
  29. package/dist/commons/events/User.d.ts +31 -2
  30. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  31. package/dist/commons/events/WorkqueueConfig.d.ts +6290 -20
  32. package/dist/commons/events/defineConfig.d.ts +9039 -501
  33. package/dist/commons/events/event.d.ts +54 -0
  34. package/dist/commons/events/field.d.ts +82 -0
  35. package/dist/commons/events/index.d.ts +10 -1
  36. package/dist/commons/events/scopes.d.ts +44 -0
  37. package/dist/commons/events/serializer.d.ts +2 -0
  38. package/dist/commons/events/test.utils.d.ts +161 -300
  39. package/dist/commons/events/utils.d.ts +13384 -186
  40. package/dist/commons/events/utils.test.d.ts +2 -0
  41. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  42. package/dist/conditionals/index.js +228 -120
  43. package/dist/events/index.js +5066 -2198
  44. package/dist/scopes/index.d.ts +161 -1
  45. package/dist/scopes/index.js +202 -1
  46. package/package.json +3 -2
@@ -4,11 +4,16 @@ export declare const EventDocument: z.ZodObject<{
4
4
  type: z.ZodString;
5
5
  createdAt: z.ZodString;
6
6
  updatedAt: z.ZodString;
7
- actions: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
7
+ actions: z.ZodArray<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
8
8
  id: z.ZodString;
9
+ transactionId: z.ZodString;
10
+ createdByUserType: z.ZodEnum<["user", "system"]>;
9
11
  createdAt: z.ZodString;
10
12
  createdBy: z.ZodString;
11
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13
+ createdByRole: z.ZodString;
14
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12
17
  filename: z.ZodString;
13
18
  originalFilename: z.ZodString;
14
19
  type: z.ZodString;
@@ -121,8 +126,20 @@ export declare const EventDocument: z.ZodObject<{
121
126
  addressLine2?: string | null | undefined;
122
127
  addressLine3?: string | null | undefined;
123
128
  postcodeOrZip?: string | null | undefined;
124
- }>]>>;
125
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
129
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
130
+ firstname: z.ZodString;
131
+ surname: z.ZodString;
132
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
133
+ }, "strip", z.ZodTypeAny, {
134
+ firstname: string;
135
+ surname: string;
136
+ middlename?: string | null | undefined;
137
+ }, {
138
+ firstname: string;
139
+ surname: string;
140
+ middlename?: string | null | undefined;
141
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
142
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
126
143
  filename: z.ZodString;
127
144
  originalFilename: z.ZodString;
128
145
  type: z.ZodString;
@@ -235,14 +252,33 @@ export declare const EventDocument: z.ZodObject<{
235
252
  addressLine2?: string | null | undefined;
236
253
  addressLine3?: string | null | undefined;
237
254
  postcodeOrZip?: string | null | undefined;
238
- }>]>>>;
239
- createdAtLocation: z.ZodString;
255
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
256
+ firstname: z.ZodString;
257
+ surname: z.ZodString;
258
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
259
+ }, "strip", z.ZodTypeAny, {
260
+ firstname: string;
261
+ surname: string;
262
+ middlename?: string | null | undefined;
263
+ }, {
264
+ firstname: string;
265
+ surname: string;
266
+ middlename?: string | null | undefined;
267
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
268
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
269
+ originalActionId: z.ZodOptional<z.ZodString>;
240
270
  }, {
241
271
  type: z.ZodLiteral<"CREATE">;
242
272
  }>, "strip", z.ZodTypeAny, {
243
273
  type: "CREATE";
244
274
  id: string;
245
- data: Record<string, string | number | boolean | {
275
+ status: "Rejected" | "Requested" | "Accepted";
276
+ transactionId: string;
277
+ createdByUserType: "system" | "user";
278
+ createdAt: string;
279
+ createdBy: string;
280
+ createdByRole: string;
281
+ declaration: Record<string, string | number | boolean | {
246
282
  type: string;
247
283
  filename: string;
248
284
  originalFilename: string;
@@ -257,6 +293,10 @@ export declare const EventDocument: z.ZodObject<{
257
293
  residentialArea?: string | null | undefined;
258
294
  street?: string | null | undefined;
259
295
  zipCode?: string | null | undefined;
296
+ } | {
297
+ firstname: string;
298
+ surname: string;
299
+ middlename?: string | null | undefined;
260
300
  } | {
261
301
  country: string;
262
302
  district: string;
@@ -279,11 +319,10 @@ export declare const EventDocument: z.ZodObject<{
279
319
  option: string;
280
320
  filename: string;
281
321
  originalFilename: string;
282
- }[] | undefined>;
283
- createdAt: string;
284
- createdBy: string;
285
- createdAtLocation: string;
286
- metadata?: Record<string, string | number | boolean | {
322
+ }[] | [string, string] | null | undefined>;
323
+ createdBySignature?: string | null | undefined;
324
+ createdAtLocation?: string | null | undefined;
325
+ annotation?: Record<string, string | number | boolean | {
287
326
  type: string;
288
327
  filename: string;
289
328
  originalFilename: string;
@@ -298,6 +337,10 @@ export declare const EventDocument: z.ZodObject<{
298
337
  residentialArea?: string | null | undefined;
299
338
  street?: string | null | undefined;
300
339
  zipCode?: string | null | undefined;
340
+ } | {
341
+ firstname: string;
342
+ surname: string;
343
+ middlename?: string | null | undefined;
301
344
  } | {
302
345
  country: string;
303
346
  district: string;
@@ -320,11 +363,18 @@ export declare const EventDocument: z.ZodObject<{
320
363
  option: string;
321
364
  filename: string;
322
365
  originalFilename: string;
323
- }[] | undefined> | undefined;
366
+ }[] | [string, string] | null | undefined> | undefined;
367
+ originalActionId?: string | undefined;
324
368
  }, {
325
369
  type: "CREATE";
326
370
  id: string;
327
- data: Record<string, string | number | boolean | {
371
+ status: "Rejected" | "Requested" | "Accepted";
372
+ transactionId: string;
373
+ createdByUserType: "system" | "user";
374
+ createdAt: string;
375
+ createdBy: string;
376
+ createdByRole: string;
377
+ declaration: Record<string, string | number | boolean | {
328
378
  type: string;
329
379
  filename: string;
330
380
  originalFilename: string;
@@ -339,6 +389,10 @@ export declare const EventDocument: z.ZodObject<{
339
389
  residentialArea?: string | null | undefined;
340
390
  street?: string | null | undefined;
341
391
  zipCode?: string | null | undefined;
392
+ } | {
393
+ firstname: string;
394
+ surname: string;
395
+ middlename?: string | null | undefined;
342
396
  } | {
343
397
  country: string;
344
398
  district: string;
@@ -361,11 +415,10 @@ export declare const EventDocument: z.ZodObject<{
361
415
  option: string;
362
416
  filename: string;
363
417
  originalFilename: string;
364
- }[] | undefined>;
365
- createdAt: string;
366
- createdBy: string;
367
- createdAtLocation: string;
368
- metadata?: Record<string, string | number | boolean | {
418
+ }[] | [string, string] | null | undefined>;
419
+ createdBySignature?: string | null | undefined;
420
+ createdAtLocation?: string | null | undefined;
421
+ annotation?: Record<string, string | number | boolean | {
369
422
  type: string;
370
423
  filename: string;
371
424
  originalFilename: string;
@@ -380,6 +433,10 @@ export declare const EventDocument: z.ZodObject<{
380
433
  residentialArea?: string | null | undefined;
381
434
  street?: string | null | undefined;
382
435
  zipCode?: string | null | undefined;
436
+ } | {
437
+ firstname: string;
438
+ surname: string;
439
+ middlename?: string | null | undefined;
383
440
  } | {
384
441
  country: string;
385
442
  district: string;
@@ -402,12 +459,18 @@ export declare const EventDocument: z.ZodObject<{
402
459
  option: string;
403
460
  filename: string;
404
461
  originalFilename: string;
405
- }[] | undefined> | undefined;
462
+ }[] | [string, string] | null | undefined> | undefined;
463
+ originalActionId?: string | undefined;
406
464
  }>, z.ZodObject<z.objectUtil.extendShape<{
407
465
  id: z.ZodString;
466
+ transactionId: z.ZodString;
467
+ createdByUserType: z.ZodEnum<["user", "system"]>;
408
468
  createdAt: z.ZodString;
409
469
  createdBy: z.ZodString;
410
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
470
+ createdByRole: z.ZodString;
471
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
472
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
473
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
411
474
  filename: z.ZodString;
412
475
  originalFilename: z.ZodString;
413
476
  type: z.ZodString;
@@ -520,8 +583,20 @@ export declare const EventDocument: z.ZodObject<{
520
583
  addressLine2?: string | null | undefined;
521
584
  addressLine3?: string | null | undefined;
522
585
  postcodeOrZip?: string | null | undefined;
523
- }>]>>;
524
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
586
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
587
+ firstname: z.ZodString;
588
+ surname: z.ZodString;
589
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
590
+ }, "strip", z.ZodTypeAny, {
591
+ firstname: string;
592
+ surname: string;
593
+ middlename?: string | null | undefined;
594
+ }, {
595
+ firstname: string;
596
+ surname: string;
597
+ middlename?: string | null | undefined;
598
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
599
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
525
600
  filename: z.ZodString;
526
601
  originalFilename: z.ZodString;
527
602
  type: z.ZodString;
@@ -634,14 +709,33 @@ export declare const EventDocument: z.ZodObject<{
634
709
  addressLine2?: string | null | undefined;
635
710
  addressLine3?: string | null | undefined;
636
711
  postcodeOrZip?: string | null | undefined;
637
- }>]>>>;
638
- createdAtLocation: z.ZodString;
712
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
713
+ firstname: z.ZodString;
714
+ surname: z.ZodString;
715
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
716
+ }, "strip", z.ZodTypeAny, {
717
+ firstname: string;
718
+ surname: string;
719
+ middlename?: string | null | undefined;
720
+ }, {
721
+ firstname: string;
722
+ surname: string;
723
+ middlename?: string | null | undefined;
724
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
725
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
726
+ originalActionId: z.ZodOptional<z.ZodString>;
639
727
  }, {
640
728
  type: z.ZodLiteral<"VALIDATE">;
641
729
  }>, "strip", z.ZodTypeAny, {
642
730
  type: "VALIDATE";
643
731
  id: string;
644
- data: Record<string, string | number | boolean | {
732
+ status: "Rejected" | "Requested" | "Accepted";
733
+ transactionId: string;
734
+ createdByUserType: "system" | "user";
735
+ createdAt: string;
736
+ createdBy: string;
737
+ createdByRole: string;
738
+ declaration: Record<string, string | number | boolean | {
645
739
  type: string;
646
740
  filename: string;
647
741
  originalFilename: string;
@@ -656,6 +750,10 @@ export declare const EventDocument: z.ZodObject<{
656
750
  residentialArea?: string | null | undefined;
657
751
  street?: string | null | undefined;
658
752
  zipCode?: string | null | undefined;
753
+ } | {
754
+ firstname: string;
755
+ surname: string;
756
+ middlename?: string | null | undefined;
659
757
  } | {
660
758
  country: string;
661
759
  district: string;
@@ -678,11 +776,10 @@ export declare const EventDocument: z.ZodObject<{
678
776
  option: string;
679
777
  filename: string;
680
778
  originalFilename: string;
681
- }[] | undefined>;
682
- createdAt: string;
683
- createdBy: string;
684
- createdAtLocation: string;
685
- metadata?: Record<string, string | number | boolean | {
779
+ }[] | [string, string] | null | undefined>;
780
+ createdBySignature?: string | null | undefined;
781
+ createdAtLocation?: string | null | undefined;
782
+ annotation?: Record<string, string | number | boolean | {
686
783
  type: string;
687
784
  filename: string;
688
785
  originalFilename: string;
@@ -697,6 +794,10 @@ export declare const EventDocument: z.ZodObject<{
697
794
  residentialArea?: string | null | undefined;
698
795
  street?: string | null | undefined;
699
796
  zipCode?: string | null | undefined;
797
+ } | {
798
+ firstname: string;
799
+ surname: string;
800
+ middlename?: string | null | undefined;
700
801
  } | {
701
802
  country: string;
702
803
  district: string;
@@ -719,11 +820,18 @@ export declare const EventDocument: z.ZodObject<{
719
820
  option: string;
720
821
  filename: string;
721
822
  originalFilename: string;
722
- }[] | undefined> | undefined;
823
+ }[] | [string, string] | null | undefined> | undefined;
824
+ originalActionId?: string | undefined;
723
825
  }, {
724
826
  type: "VALIDATE";
725
827
  id: string;
726
- data: Record<string, string | number | boolean | {
828
+ status: "Rejected" | "Requested" | "Accepted";
829
+ transactionId: string;
830
+ createdByUserType: "system" | "user";
831
+ createdAt: string;
832
+ createdBy: string;
833
+ createdByRole: string;
834
+ declaration: Record<string, string | number | boolean | {
727
835
  type: string;
728
836
  filename: string;
729
837
  originalFilename: string;
@@ -738,6 +846,10 @@ export declare const EventDocument: z.ZodObject<{
738
846
  residentialArea?: string | null | undefined;
739
847
  street?: string | null | undefined;
740
848
  zipCode?: string | null | undefined;
849
+ } | {
850
+ firstname: string;
851
+ surname: string;
852
+ middlename?: string | null | undefined;
741
853
  } | {
742
854
  country: string;
743
855
  district: string;
@@ -760,11 +872,10 @@ export declare const EventDocument: z.ZodObject<{
760
872
  option: string;
761
873
  filename: string;
762
874
  originalFilename: string;
763
- }[] | undefined>;
764
- createdAt: string;
765
- createdBy: string;
766
- createdAtLocation: string;
767
- metadata?: Record<string, string | number | boolean | {
875
+ }[] | [string, string] | null | undefined>;
876
+ createdBySignature?: string | null | undefined;
877
+ createdAtLocation?: string | null | undefined;
878
+ annotation?: Record<string, string | number | boolean | {
768
879
  type: string;
769
880
  filename: string;
770
881
  originalFilename: string;
@@ -779,6 +890,10 @@ export declare const EventDocument: z.ZodObject<{
779
890
  residentialArea?: string | null | undefined;
780
891
  street?: string | null | undefined;
781
892
  zipCode?: string | null | undefined;
893
+ } | {
894
+ firstname: string;
895
+ surname: string;
896
+ middlename?: string | null | undefined;
782
897
  } | {
783
898
  country: string;
784
899
  district: string;
@@ -801,12 +916,18 @@ export declare const EventDocument: z.ZodObject<{
801
916
  option: string;
802
917
  filename: string;
803
918
  originalFilename: string;
804
- }[] | undefined> | undefined;
919
+ }[] | [string, string] | null | undefined> | undefined;
920
+ originalActionId?: string | undefined;
805
921
  }>, z.ZodObject<z.objectUtil.extendShape<{
806
922
  id: z.ZodString;
923
+ transactionId: z.ZodString;
924
+ createdByUserType: z.ZodEnum<["user", "system"]>;
807
925
  createdAt: z.ZodString;
808
926
  createdBy: z.ZodString;
809
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
927
+ createdByRole: z.ZodString;
928
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
929
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
930
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
810
931
  filename: z.ZodString;
811
932
  originalFilename: z.ZodString;
812
933
  type: z.ZodString;
@@ -919,8 +1040,20 @@ export declare const EventDocument: z.ZodObject<{
919
1040
  addressLine2?: string | null | undefined;
920
1041
  addressLine3?: string | null | undefined;
921
1042
  postcodeOrZip?: string | null | undefined;
922
- }>]>>;
923
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1043
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
1044
+ firstname: z.ZodString;
1045
+ surname: z.ZodString;
1046
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1047
+ }, "strip", z.ZodTypeAny, {
1048
+ firstname: string;
1049
+ surname: string;
1050
+ middlename?: string | null | undefined;
1051
+ }, {
1052
+ firstname: string;
1053
+ surname: string;
1054
+ middlename?: string | null | undefined;
1055
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
1056
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
924
1057
  filename: z.ZodString;
925
1058
  originalFilename: z.ZodString;
926
1059
  type: z.ZodString;
@@ -1033,14 +1166,47 @@ export declare const EventDocument: z.ZodObject<{
1033
1166
  addressLine2?: string | null | undefined;
1034
1167
  addressLine3?: string | null | undefined;
1035
1168
  postcodeOrZip?: string | null | undefined;
1036
- }>]>>>;
1037
- createdAtLocation: z.ZodString;
1169
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
1170
+ firstname: z.ZodString;
1171
+ surname: z.ZodString;
1172
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1173
+ }, "strip", z.ZodTypeAny, {
1174
+ firstname: string;
1175
+ surname: string;
1176
+ middlename?: string | null | undefined;
1177
+ }, {
1178
+ firstname: string;
1179
+ surname: string;
1180
+ middlename?: string | null | undefined;
1181
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
1182
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1183
+ originalActionId: z.ZodOptional<z.ZodString>;
1038
1184
  }, {
1039
1185
  type: z.ZodLiteral<"REJECT">;
1186
+ reason: z.ZodObject<{
1187
+ message: z.ZodString;
1188
+ isDuplicate: z.ZodOptional<z.ZodBoolean>;
1189
+ }, "strip", z.ZodTypeAny, {
1190
+ message: string;
1191
+ isDuplicate?: boolean | undefined;
1192
+ }, {
1193
+ message: string;
1194
+ isDuplicate?: boolean | undefined;
1195
+ }>;
1040
1196
  }>, "strip", z.ZodTypeAny, {
1041
1197
  type: "REJECT";
1042
1198
  id: string;
1043
- data: Record<string, string | number | boolean | {
1199
+ status: "Rejected" | "Requested" | "Accepted";
1200
+ reason: {
1201
+ message: string;
1202
+ isDuplicate?: boolean | undefined;
1203
+ };
1204
+ transactionId: string;
1205
+ createdByUserType: "system" | "user";
1206
+ createdAt: string;
1207
+ createdBy: string;
1208
+ createdByRole: string;
1209
+ declaration: Record<string, string | number | boolean | {
1044
1210
  type: string;
1045
1211
  filename: string;
1046
1212
  originalFilename: string;
@@ -1055,6 +1221,10 @@ export declare const EventDocument: z.ZodObject<{
1055
1221
  residentialArea?: string | null | undefined;
1056
1222
  street?: string | null | undefined;
1057
1223
  zipCode?: string | null | undefined;
1224
+ } | {
1225
+ firstname: string;
1226
+ surname: string;
1227
+ middlename?: string | null | undefined;
1058
1228
  } | {
1059
1229
  country: string;
1060
1230
  district: string;
@@ -1077,11 +1247,10 @@ export declare const EventDocument: z.ZodObject<{
1077
1247
  option: string;
1078
1248
  filename: string;
1079
1249
  originalFilename: string;
1080
- }[] | undefined>;
1081
- createdAt: string;
1082
- createdBy: string;
1083
- createdAtLocation: string;
1084
- metadata?: Record<string, string | number | boolean | {
1250
+ }[] | [string, string] | null | undefined>;
1251
+ createdBySignature?: string | null | undefined;
1252
+ createdAtLocation?: string | null | undefined;
1253
+ annotation?: Record<string, string | number | boolean | {
1085
1254
  type: string;
1086
1255
  filename: string;
1087
1256
  originalFilename: string;
@@ -1096,6 +1265,10 @@ export declare const EventDocument: z.ZodObject<{
1096
1265
  residentialArea?: string | null | undefined;
1097
1266
  street?: string | null | undefined;
1098
1267
  zipCode?: string | null | undefined;
1268
+ } | {
1269
+ firstname: string;
1270
+ surname: string;
1271
+ middlename?: string | null | undefined;
1099
1272
  } | {
1100
1273
  country: string;
1101
1274
  district: string;
@@ -1118,11 +1291,22 @@ export declare const EventDocument: z.ZodObject<{
1118
1291
  option: string;
1119
1292
  filename: string;
1120
1293
  originalFilename: string;
1121
- }[] | undefined> | undefined;
1294
+ }[] | [string, string] | null | undefined> | undefined;
1295
+ originalActionId?: string | undefined;
1122
1296
  }, {
1123
1297
  type: "REJECT";
1124
1298
  id: string;
1125
- data: Record<string, string | number | boolean | {
1299
+ status: "Rejected" | "Requested" | "Accepted";
1300
+ reason: {
1301
+ message: string;
1302
+ isDuplicate?: boolean | undefined;
1303
+ };
1304
+ transactionId: string;
1305
+ createdByUserType: "system" | "user";
1306
+ createdAt: string;
1307
+ createdBy: string;
1308
+ createdByRole: string;
1309
+ declaration: Record<string, string | number | boolean | {
1126
1310
  type: string;
1127
1311
  filename: string;
1128
1312
  originalFilename: string;
@@ -1137,6 +1321,10 @@ export declare const EventDocument: z.ZodObject<{
1137
1321
  residentialArea?: string | null | undefined;
1138
1322
  street?: string | null | undefined;
1139
1323
  zipCode?: string | null | undefined;
1324
+ } | {
1325
+ firstname: string;
1326
+ surname: string;
1327
+ middlename?: string | null | undefined;
1140
1328
  } | {
1141
1329
  country: string;
1142
1330
  district: string;
@@ -1159,11 +1347,10 @@ export declare const EventDocument: z.ZodObject<{
1159
1347
  option: string;
1160
1348
  filename: string;
1161
1349
  originalFilename: string;
1162
- }[] | undefined>;
1163
- createdAt: string;
1164
- createdBy: string;
1165
- createdAtLocation: string;
1166
- metadata?: Record<string, string | number | boolean | {
1350
+ }[] | [string, string] | null | undefined>;
1351
+ createdBySignature?: string | null | undefined;
1352
+ createdAtLocation?: string | null | undefined;
1353
+ annotation?: Record<string, string | number | boolean | {
1167
1354
  type: string;
1168
1355
  filename: string;
1169
1356
  originalFilename: string;
@@ -1178,6 +1365,10 @@ export declare const EventDocument: z.ZodObject<{
1178
1365
  residentialArea?: string | null | undefined;
1179
1366
  street?: string | null | undefined;
1180
1367
  zipCode?: string | null | undefined;
1368
+ } | {
1369
+ firstname: string;
1370
+ surname: string;
1371
+ middlename?: string | null | undefined;
1181
1372
  } | {
1182
1373
  country: string;
1183
1374
  district: string;
@@ -1200,12 +1391,18 @@ export declare const EventDocument: z.ZodObject<{
1200
1391
  option: string;
1201
1392
  filename: string;
1202
1393
  originalFilename: string;
1203
- }[] | undefined> | undefined;
1394
+ }[] | [string, string] | null | undefined> | undefined;
1395
+ originalActionId?: string | undefined;
1204
1396
  }>, z.ZodObject<z.objectUtil.extendShape<{
1205
1397
  id: z.ZodString;
1398
+ transactionId: z.ZodString;
1399
+ createdByUserType: z.ZodEnum<["user", "system"]>;
1206
1400
  createdAt: z.ZodString;
1207
1401
  createdBy: z.ZodString;
1208
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1402
+ createdByRole: z.ZodString;
1403
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1404
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1405
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1209
1406
  filename: z.ZodString;
1210
1407
  originalFilename: z.ZodString;
1211
1408
  type: z.ZodString;
@@ -1318,8 +1515,20 @@ export declare const EventDocument: z.ZodObject<{
1318
1515
  addressLine2?: string | null | undefined;
1319
1516
  addressLine3?: string | null | undefined;
1320
1517
  postcodeOrZip?: string | null | undefined;
1321
- }>]>>;
1322
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1518
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
1519
+ firstname: z.ZodString;
1520
+ surname: z.ZodString;
1521
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1522
+ }, "strip", z.ZodTypeAny, {
1523
+ firstname: string;
1524
+ surname: string;
1525
+ middlename?: string | null | undefined;
1526
+ }, {
1527
+ firstname: string;
1528
+ surname: string;
1529
+ middlename?: string | null | undefined;
1530
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
1531
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1323
1532
  filename: z.ZodString;
1324
1533
  originalFilename: z.ZodString;
1325
1534
  type: z.ZodString;
@@ -1432,14 +1641,33 @@ export declare const EventDocument: z.ZodObject<{
1432
1641
  addressLine2?: string | null | undefined;
1433
1642
  addressLine3?: string | null | undefined;
1434
1643
  postcodeOrZip?: string | null | undefined;
1435
- }>]>>>;
1436
- createdAtLocation: z.ZodString;
1644
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
1645
+ firstname: z.ZodString;
1646
+ surname: z.ZodString;
1647
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1648
+ }, "strip", z.ZodTypeAny, {
1649
+ firstname: string;
1650
+ surname: string;
1651
+ middlename?: string | null | undefined;
1652
+ }, {
1653
+ firstname: string;
1654
+ surname: string;
1655
+ middlename?: string | null | undefined;
1656
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
1657
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1658
+ originalActionId: z.ZodOptional<z.ZodString>;
1437
1659
  }, {
1438
1660
  type: z.ZodLiteral<"MARKED_AS_DUPLICATE">;
1439
1661
  }>, "strip", z.ZodTypeAny, {
1440
1662
  type: "MARKED_AS_DUPLICATE";
1441
1663
  id: string;
1442
- data: Record<string, string | number | boolean | {
1664
+ status: "Rejected" | "Requested" | "Accepted";
1665
+ transactionId: string;
1666
+ createdByUserType: "system" | "user";
1667
+ createdAt: string;
1668
+ createdBy: string;
1669
+ createdByRole: string;
1670
+ declaration: Record<string, string | number | boolean | {
1443
1671
  type: string;
1444
1672
  filename: string;
1445
1673
  originalFilename: string;
@@ -1454,6 +1682,10 @@ export declare const EventDocument: z.ZodObject<{
1454
1682
  residentialArea?: string | null | undefined;
1455
1683
  street?: string | null | undefined;
1456
1684
  zipCode?: string | null | undefined;
1685
+ } | {
1686
+ firstname: string;
1687
+ surname: string;
1688
+ middlename?: string | null | undefined;
1457
1689
  } | {
1458
1690
  country: string;
1459
1691
  district: string;
@@ -1476,11 +1708,10 @@ export declare const EventDocument: z.ZodObject<{
1476
1708
  option: string;
1477
1709
  filename: string;
1478
1710
  originalFilename: string;
1479
- }[] | undefined>;
1480
- createdAt: string;
1481
- createdBy: string;
1482
- createdAtLocation: string;
1483
- metadata?: Record<string, string | number | boolean | {
1711
+ }[] | [string, string] | null | undefined>;
1712
+ createdBySignature?: string | null | undefined;
1713
+ createdAtLocation?: string | null | undefined;
1714
+ annotation?: Record<string, string | number | boolean | {
1484
1715
  type: string;
1485
1716
  filename: string;
1486
1717
  originalFilename: string;
@@ -1495,6 +1726,10 @@ export declare const EventDocument: z.ZodObject<{
1495
1726
  residentialArea?: string | null | undefined;
1496
1727
  street?: string | null | undefined;
1497
1728
  zipCode?: string | null | undefined;
1729
+ } | {
1730
+ firstname: string;
1731
+ surname: string;
1732
+ middlename?: string | null | undefined;
1498
1733
  } | {
1499
1734
  country: string;
1500
1735
  district: string;
@@ -1517,11 +1752,18 @@ export declare const EventDocument: z.ZodObject<{
1517
1752
  option: string;
1518
1753
  filename: string;
1519
1754
  originalFilename: string;
1520
- }[] | undefined> | undefined;
1755
+ }[] | [string, string] | null | undefined> | undefined;
1756
+ originalActionId?: string | undefined;
1521
1757
  }, {
1522
1758
  type: "MARKED_AS_DUPLICATE";
1523
1759
  id: string;
1524
- data: Record<string, string | number | boolean | {
1760
+ status: "Rejected" | "Requested" | "Accepted";
1761
+ transactionId: string;
1762
+ createdByUserType: "system" | "user";
1763
+ createdAt: string;
1764
+ createdBy: string;
1765
+ createdByRole: string;
1766
+ declaration: Record<string, string | number | boolean | {
1525
1767
  type: string;
1526
1768
  filename: string;
1527
1769
  originalFilename: string;
@@ -1536,6 +1778,10 @@ export declare const EventDocument: z.ZodObject<{
1536
1778
  residentialArea?: string | null | undefined;
1537
1779
  street?: string | null | undefined;
1538
1780
  zipCode?: string | null | undefined;
1781
+ } | {
1782
+ firstname: string;
1783
+ surname: string;
1784
+ middlename?: string | null | undefined;
1539
1785
  } | {
1540
1786
  country: string;
1541
1787
  district: string;
@@ -1558,11 +1804,10 @@ export declare const EventDocument: z.ZodObject<{
1558
1804
  option: string;
1559
1805
  filename: string;
1560
1806
  originalFilename: string;
1561
- }[] | undefined>;
1562
- createdAt: string;
1563
- createdBy: string;
1564
- createdAtLocation: string;
1565
- metadata?: Record<string, string | number | boolean | {
1807
+ }[] | [string, string] | null | undefined>;
1808
+ createdBySignature?: string | null | undefined;
1809
+ createdAtLocation?: string | null | undefined;
1810
+ annotation?: Record<string, string | number | boolean | {
1566
1811
  type: string;
1567
1812
  filename: string;
1568
1813
  originalFilename: string;
@@ -1577,6 +1822,10 @@ export declare const EventDocument: z.ZodObject<{
1577
1822
  residentialArea?: string | null | undefined;
1578
1823
  street?: string | null | undefined;
1579
1824
  zipCode?: string | null | undefined;
1825
+ } | {
1826
+ firstname: string;
1827
+ surname: string;
1828
+ middlename?: string | null | undefined;
1580
1829
  } | {
1581
1830
  country: string;
1582
1831
  district: string;
@@ -1599,12 +1848,18 @@ export declare const EventDocument: z.ZodObject<{
1599
1848
  option: string;
1600
1849
  filename: string;
1601
1850
  originalFilename: string;
1602
- }[] | undefined> | undefined;
1851
+ }[] | [string, string] | null | undefined> | undefined;
1852
+ originalActionId?: string | undefined;
1603
1853
  }>, z.ZodObject<z.objectUtil.extendShape<{
1604
1854
  id: z.ZodString;
1855
+ transactionId: z.ZodString;
1856
+ createdByUserType: z.ZodEnum<["user", "system"]>;
1605
1857
  createdAt: z.ZodString;
1606
1858
  createdBy: z.ZodString;
1607
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1859
+ createdByRole: z.ZodString;
1860
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1861
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1862
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1608
1863
  filename: z.ZodString;
1609
1864
  originalFilename: z.ZodString;
1610
1865
  type: z.ZodString;
@@ -1717,8 +1972,20 @@ export declare const EventDocument: z.ZodObject<{
1717
1972
  addressLine2?: string | null | undefined;
1718
1973
  addressLine3?: string | null | undefined;
1719
1974
  postcodeOrZip?: string | null | undefined;
1720
- }>]>>;
1721
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1975
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
1976
+ firstname: z.ZodString;
1977
+ surname: z.ZodString;
1978
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1979
+ }, "strip", z.ZodTypeAny, {
1980
+ firstname: string;
1981
+ surname: string;
1982
+ middlename?: string | null | undefined;
1983
+ }, {
1984
+ firstname: string;
1985
+ surname: string;
1986
+ middlename?: string | null | undefined;
1987
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
1988
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1722
1989
  filename: z.ZodString;
1723
1990
  originalFilename: z.ZodString;
1724
1991
  type: z.ZodString;
@@ -1831,14 +2098,47 @@ export declare const EventDocument: z.ZodObject<{
1831
2098
  addressLine2?: string | null | undefined;
1832
2099
  addressLine3?: string | null | undefined;
1833
2100
  postcodeOrZip?: string | null | undefined;
1834
- }>]>>>;
1835
- createdAtLocation: z.ZodString;
2101
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2102
+ firstname: z.ZodString;
2103
+ surname: z.ZodString;
2104
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2105
+ }, "strip", z.ZodTypeAny, {
2106
+ firstname: string;
2107
+ surname: string;
2108
+ middlename?: string | null | undefined;
2109
+ }, {
2110
+ firstname: string;
2111
+ surname: string;
2112
+ middlename?: string | null | undefined;
2113
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
2114
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2115
+ originalActionId: z.ZodOptional<z.ZodString>;
1836
2116
  }, {
1837
2117
  type: z.ZodLiteral<"ARCHIVE">;
2118
+ reason: z.ZodObject<{
2119
+ message: z.ZodString;
2120
+ isDuplicate: z.ZodOptional<z.ZodBoolean>;
2121
+ }, "strip", z.ZodTypeAny, {
2122
+ message: string;
2123
+ isDuplicate?: boolean | undefined;
2124
+ }, {
2125
+ message: string;
2126
+ isDuplicate?: boolean | undefined;
2127
+ }>;
1838
2128
  }>, "strip", z.ZodTypeAny, {
1839
2129
  type: "ARCHIVE";
1840
2130
  id: string;
1841
- data: Record<string, string | number | boolean | {
2131
+ status: "Rejected" | "Requested" | "Accepted";
2132
+ reason: {
2133
+ message: string;
2134
+ isDuplicate?: boolean | undefined;
2135
+ };
2136
+ transactionId: string;
2137
+ createdByUserType: "system" | "user";
2138
+ createdAt: string;
2139
+ createdBy: string;
2140
+ createdByRole: string;
2141
+ declaration: Record<string, string | number | boolean | {
1842
2142
  type: string;
1843
2143
  filename: string;
1844
2144
  originalFilename: string;
@@ -1853,6 +2153,10 @@ export declare const EventDocument: z.ZodObject<{
1853
2153
  residentialArea?: string | null | undefined;
1854
2154
  street?: string | null | undefined;
1855
2155
  zipCode?: string | null | undefined;
2156
+ } | {
2157
+ firstname: string;
2158
+ surname: string;
2159
+ middlename?: string | null | undefined;
1856
2160
  } | {
1857
2161
  country: string;
1858
2162
  district: string;
@@ -1875,11 +2179,10 @@ export declare const EventDocument: z.ZodObject<{
1875
2179
  option: string;
1876
2180
  filename: string;
1877
2181
  originalFilename: string;
1878
- }[] | undefined>;
1879
- createdAt: string;
1880
- createdBy: string;
1881
- createdAtLocation: string;
1882
- metadata?: Record<string, string | number | boolean | {
2182
+ }[] | [string, string] | null | undefined>;
2183
+ createdBySignature?: string | null | undefined;
2184
+ createdAtLocation?: string | null | undefined;
2185
+ annotation?: Record<string, string | number | boolean | {
1883
2186
  type: string;
1884
2187
  filename: string;
1885
2188
  originalFilename: string;
@@ -1894,6 +2197,10 @@ export declare const EventDocument: z.ZodObject<{
1894
2197
  residentialArea?: string | null | undefined;
1895
2198
  street?: string | null | undefined;
1896
2199
  zipCode?: string | null | undefined;
2200
+ } | {
2201
+ firstname: string;
2202
+ surname: string;
2203
+ middlename?: string | null | undefined;
1897
2204
  } | {
1898
2205
  country: string;
1899
2206
  district: string;
@@ -1916,11 +2223,22 @@ export declare const EventDocument: z.ZodObject<{
1916
2223
  option: string;
1917
2224
  filename: string;
1918
2225
  originalFilename: string;
1919
- }[] | undefined> | undefined;
2226
+ }[] | [string, string] | null | undefined> | undefined;
2227
+ originalActionId?: string | undefined;
1920
2228
  }, {
1921
2229
  type: "ARCHIVE";
1922
2230
  id: string;
1923
- data: Record<string, string | number | boolean | {
2231
+ status: "Rejected" | "Requested" | "Accepted";
2232
+ reason: {
2233
+ message: string;
2234
+ isDuplicate?: boolean | undefined;
2235
+ };
2236
+ transactionId: string;
2237
+ createdByUserType: "system" | "user";
2238
+ createdAt: string;
2239
+ createdBy: string;
2240
+ createdByRole: string;
2241
+ declaration: Record<string, string | number | boolean | {
1924
2242
  type: string;
1925
2243
  filename: string;
1926
2244
  originalFilename: string;
@@ -1935,6 +2253,10 @@ export declare const EventDocument: z.ZodObject<{
1935
2253
  residentialArea?: string | null | undefined;
1936
2254
  street?: string | null | undefined;
1937
2255
  zipCode?: string | null | undefined;
2256
+ } | {
2257
+ firstname: string;
2258
+ surname: string;
2259
+ middlename?: string | null | undefined;
1938
2260
  } | {
1939
2261
  country: string;
1940
2262
  district: string;
@@ -1957,11 +2279,10 @@ export declare const EventDocument: z.ZodObject<{
1957
2279
  option: string;
1958
2280
  filename: string;
1959
2281
  originalFilename: string;
1960
- }[] | undefined>;
1961
- createdAt: string;
1962
- createdBy: string;
1963
- createdAtLocation: string;
1964
- metadata?: Record<string, string | number | boolean | {
2282
+ }[] | [string, string] | null | undefined>;
2283
+ createdBySignature?: string | null | undefined;
2284
+ createdAtLocation?: string | null | undefined;
2285
+ annotation?: Record<string, string | number | boolean | {
1965
2286
  type: string;
1966
2287
  filename: string;
1967
2288
  originalFilename: string;
@@ -1976,6 +2297,10 @@ export declare const EventDocument: z.ZodObject<{
1976
2297
  residentialArea?: string | null | undefined;
1977
2298
  street?: string | null | undefined;
1978
2299
  zipCode?: string | null | undefined;
2300
+ } | {
2301
+ firstname: string;
2302
+ surname: string;
2303
+ middlename?: string | null | undefined;
1979
2304
  } | {
1980
2305
  country: string;
1981
2306
  district: string;
@@ -1998,12 +2323,18 @@ export declare const EventDocument: z.ZodObject<{
1998
2323
  option: string;
1999
2324
  filename: string;
2000
2325
  originalFilename: string;
2001
- }[] | undefined> | undefined;
2326
+ }[] | [string, string] | null | undefined> | undefined;
2327
+ originalActionId?: string | undefined;
2002
2328
  }>, z.ZodObject<z.objectUtil.extendShape<{
2003
2329
  id: z.ZodString;
2330
+ transactionId: z.ZodString;
2331
+ createdByUserType: z.ZodEnum<["user", "system"]>;
2004
2332
  createdAt: z.ZodString;
2005
2333
  createdBy: z.ZodString;
2006
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2334
+ createdByRole: z.ZodString;
2335
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2336
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2337
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2007
2338
  filename: z.ZodString;
2008
2339
  originalFilename: z.ZodString;
2009
2340
  type: z.ZodString;
@@ -2116,8 +2447,20 @@ export declare const EventDocument: z.ZodObject<{
2116
2447
  addressLine2?: string | null | undefined;
2117
2448
  addressLine3?: string | null | undefined;
2118
2449
  postcodeOrZip?: string | null | undefined;
2119
- }>]>>;
2120
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2450
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2451
+ firstname: z.ZodString;
2452
+ surname: z.ZodString;
2453
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2454
+ }, "strip", z.ZodTypeAny, {
2455
+ firstname: string;
2456
+ surname: string;
2457
+ middlename?: string | null | undefined;
2458
+ }, {
2459
+ firstname: string;
2460
+ surname: string;
2461
+ middlename?: string | null | undefined;
2462
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
2463
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2121
2464
  filename: z.ZodString;
2122
2465
  originalFilename: z.ZodString;
2123
2466
  type: z.ZodString;
@@ -2230,14 +2573,33 @@ export declare const EventDocument: z.ZodObject<{
2230
2573
  addressLine2?: string | null | undefined;
2231
2574
  addressLine3?: string | null | undefined;
2232
2575
  postcodeOrZip?: string | null | undefined;
2233
- }>]>>>;
2234
- createdAtLocation: z.ZodString;
2576
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2577
+ firstname: z.ZodString;
2578
+ surname: z.ZodString;
2579
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2580
+ }, "strip", z.ZodTypeAny, {
2581
+ firstname: string;
2582
+ surname: string;
2583
+ middlename?: string | null | undefined;
2584
+ }, {
2585
+ firstname: string;
2586
+ surname: string;
2587
+ middlename?: string | null | undefined;
2588
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
2589
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2590
+ originalActionId: z.ZodOptional<z.ZodString>;
2235
2591
  }, {
2236
2592
  type: z.ZodLiteral<"NOTIFY">;
2237
2593
  }>, "strip", z.ZodTypeAny, {
2238
2594
  type: "NOTIFY";
2239
2595
  id: string;
2240
- data: Record<string, string | number | boolean | {
2596
+ status: "Rejected" | "Requested" | "Accepted";
2597
+ transactionId: string;
2598
+ createdByUserType: "system" | "user";
2599
+ createdAt: string;
2600
+ createdBy: string;
2601
+ createdByRole: string;
2602
+ declaration: Record<string, string | number | boolean | {
2241
2603
  type: string;
2242
2604
  filename: string;
2243
2605
  originalFilename: string;
@@ -2252,6 +2614,10 @@ export declare const EventDocument: z.ZodObject<{
2252
2614
  residentialArea?: string | null | undefined;
2253
2615
  street?: string | null | undefined;
2254
2616
  zipCode?: string | null | undefined;
2617
+ } | {
2618
+ firstname: string;
2619
+ surname: string;
2620
+ middlename?: string | null | undefined;
2255
2621
  } | {
2256
2622
  country: string;
2257
2623
  district: string;
@@ -2274,11 +2640,10 @@ export declare const EventDocument: z.ZodObject<{
2274
2640
  option: string;
2275
2641
  filename: string;
2276
2642
  originalFilename: string;
2277
- }[] | undefined>;
2278
- createdAt: string;
2279
- createdBy: string;
2280
- createdAtLocation: string;
2281
- metadata?: Record<string, string | number | boolean | {
2643
+ }[] | [string, string] | null | undefined>;
2644
+ createdBySignature?: string | null | undefined;
2645
+ createdAtLocation?: string | null | undefined;
2646
+ annotation?: Record<string, string | number | boolean | {
2282
2647
  type: string;
2283
2648
  filename: string;
2284
2649
  originalFilename: string;
@@ -2293,6 +2658,10 @@ export declare const EventDocument: z.ZodObject<{
2293
2658
  residentialArea?: string | null | undefined;
2294
2659
  street?: string | null | undefined;
2295
2660
  zipCode?: string | null | undefined;
2661
+ } | {
2662
+ firstname: string;
2663
+ surname: string;
2664
+ middlename?: string | null | undefined;
2296
2665
  } | {
2297
2666
  country: string;
2298
2667
  district: string;
@@ -2315,11 +2684,18 @@ export declare const EventDocument: z.ZodObject<{
2315
2684
  option: string;
2316
2685
  filename: string;
2317
2686
  originalFilename: string;
2318
- }[] | undefined> | undefined;
2687
+ }[] | [string, string] | null | undefined> | undefined;
2688
+ originalActionId?: string | undefined;
2319
2689
  }, {
2320
2690
  type: "NOTIFY";
2321
2691
  id: string;
2322
- data: Record<string, string | number | boolean | {
2692
+ status: "Rejected" | "Requested" | "Accepted";
2693
+ transactionId: string;
2694
+ createdByUserType: "system" | "user";
2695
+ createdAt: string;
2696
+ createdBy: string;
2697
+ createdByRole: string;
2698
+ declaration: Record<string, string | number | boolean | {
2323
2699
  type: string;
2324
2700
  filename: string;
2325
2701
  originalFilename: string;
@@ -2334,6 +2710,10 @@ export declare const EventDocument: z.ZodObject<{
2334
2710
  residentialArea?: string | null | undefined;
2335
2711
  street?: string | null | undefined;
2336
2712
  zipCode?: string | null | undefined;
2713
+ } | {
2714
+ firstname: string;
2715
+ surname: string;
2716
+ middlename?: string | null | undefined;
2337
2717
  } | {
2338
2718
  country: string;
2339
2719
  district: string;
@@ -2356,11 +2736,10 @@ export declare const EventDocument: z.ZodObject<{
2356
2736
  option: string;
2357
2737
  filename: string;
2358
2738
  originalFilename: string;
2359
- }[] | undefined>;
2360
- createdAt: string;
2361
- createdBy: string;
2362
- createdAtLocation: string;
2363
- metadata?: Record<string, string | number | boolean | {
2739
+ }[] | [string, string] | null | undefined>;
2740
+ createdBySignature?: string | null | undefined;
2741
+ createdAtLocation?: string | null | undefined;
2742
+ annotation?: Record<string, string | number | boolean | {
2364
2743
  type: string;
2365
2744
  filename: string;
2366
2745
  originalFilename: string;
@@ -2375,6 +2754,10 @@ export declare const EventDocument: z.ZodObject<{
2375
2754
  residentialArea?: string | null | undefined;
2376
2755
  street?: string | null | undefined;
2377
2756
  zipCode?: string | null | undefined;
2757
+ } | {
2758
+ firstname: string;
2759
+ surname: string;
2760
+ middlename?: string | null | undefined;
2378
2761
  } | {
2379
2762
  country: string;
2380
2763
  district: string;
@@ -2397,12 +2780,18 @@ export declare const EventDocument: z.ZodObject<{
2397
2780
  option: string;
2398
2781
  filename: string;
2399
2782
  originalFilename: string;
2400
- }[] | undefined> | undefined;
2783
+ }[] | [string, string] | null | undefined> | undefined;
2784
+ originalActionId?: string | undefined;
2401
2785
  }>, z.ZodObject<z.objectUtil.extendShape<{
2402
2786
  id: z.ZodString;
2787
+ transactionId: z.ZodString;
2788
+ createdByUserType: z.ZodEnum<["user", "system"]>;
2403
2789
  createdAt: z.ZodString;
2404
2790
  createdBy: z.ZodString;
2405
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2791
+ createdByRole: z.ZodString;
2792
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2793
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2794
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2406
2795
  filename: z.ZodString;
2407
2796
  originalFilename: z.ZodString;
2408
2797
  type: z.ZodString;
@@ -2515,8 +2904,20 @@ export declare const EventDocument: z.ZodObject<{
2515
2904
  addressLine2?: string | null | undefined;
2516
2905
  addressLine3?: string | null | undefined;
2517
2906
  postcodeOrZip?: string | null | undefined;
2518
- }>]>>;
2519
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2907
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2908
+ firstname: z.ZodString;
2909
+ surname: z.ZodString;
2910
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2911
+ }, "strip", z.ZodTypeAny, {
2912
+ firstname: string;
2913
+ surname: string;
2914
+ middlename?: string | null | undefined;
2915
+ }, {
2916
+ firstname: string;
2917
+ surname: string;
2918
+ middlename?: string | null | undefined;
2919
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
2920
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2520
2921
  filename: z.ZodString;
2521
2922
  originalFilename: z.ZodString;
2522
2923
  type: z.ZodString;
@@ -2629,24 +3030,34 @@ export declare const EventDocument: z.ZodObject<{
2629
3030
  addressLine2?: string | null | undefined;
2630
3031
  addressLine3?: string | null | undefined;
2631
3032
  postcodeOrZip?: string | null | undefined;
2632
- }>]>>>;
2633
- createdAtLocation: z.ZodString;
3033
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
3034
+ firstname: z.ZodString;
3035
+ surname: z.ZodString;
3036
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3037
+ }, "strip", z.ZodTypeAny, {
3038
+ firstname: string;
3039
+ surname: string;
3040
+ middlename?: string | null | undefined;
3041
+ }, {
3042
+ firstname: string;
3043
+ surname: string;
3044
+ middlename?: string | null | undefined;
3045
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
3046
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3047
+ originalActionId: z.ZodOptional<z.ZodString>;
2634
3048
  }, {
2635
3049
  type: z.ZodLiteral<"REGISTER">;
2636
- identifiers: z.ZodObject<{
2637
- trackingId: z.ZodString;
2638
- registrationNumber: z.ZodString;
2639
- }, "strip", z.ZodTypeAny, {
2640
- trackingId: string;
2641
- registrationNumber: string;
2642
- }, {
2643
- trackingId: string;
2644
- registrationNumber: string;
2645
- }>;
3050
+ registrationNumber: z.ZodOptional<z.ZodString>;
2646
3051
  }>, "strip", z.ZodTypeAny, {
2647
3052
  type: "REGISTER";
2648
3053
  id: string;
2649
- data: Record<string, string | number | boolean | {
3054
+ status: "Rejected" | "Requested" | "Accepted";
3055
+ transactionId: string;
3056
+ createdByUserType: "system" | "user";
3057
+ createdAt: string;
3058
+ createdBy: string;
3059
+ createdByRole: string;
3060
+ declaration: Record<string, string | number | boolean | {
2650
3061
  type: string;
2651
3062
  filename: string;
2652
3063
  originalFilename: string;
@@ -2661,6 +3072,10 @@ export declare const EventDocument: z.ZodObject<{
2661
3072
  residentialArea?: string | null | undefined;
2662
3073
  street?: string | null | undefined;
2663
3074
  zipCode?: string | null | undefined;
3075
+ } | {
3076
+ firstname: string;
3077
+ surname: string;
3078
+ middlename?: string | null | undefined;
2664
3079
  } | {
2665
3080
  country: string;
2666
3081
  district: string;
@@ -2683,15 +3098,10 @@ export declare const EventDocument: z.ZodObject<{
2683
3098
  option: string;
2684
3099
  filename: string;
2685
3100
  originalFilename: string;
2686
- }[] | undefined>;
2687
- createdAt: string;
2688
- createdBy: string;
2689
- createdAtLocation: string;
2690
- identifiers: {
2691
- trackingId: string;
2692
- registrationNumber: string;
2693
- };
2694
- metadata?: Record<string, string | number | boolean | {
3101
+ }[] | [string, string] | null | undefined>;
3102
+ createdBySignature?: string | null | undefined;
3103
+ createdAtLocation?: string | null | undefined;
3104
+ annotation?: Record<string, string | number | boolean | {
2695
3105
  type: string;
2696
3106
  filename: string;
2697
3107
  originalFilename: string;
@@ -2706,6 +3116,10 @@ export declare const EventDocument: z.ZodObject<{
2706
3116
  residentialArea?: string | null | undefined;
2707
3117
  street?: string | null | undefined;
2708
3118
  zipCode?: string | null | undefined;
3119
+ } | {
3120
+ firstname: string;
3121
+ surname: string;
3122
+ middlename?: string | null | undefined;
2709
3123
  } | {
2710
3124
  country: string;
2711
3125
  district: string;
@@ -2728,11 +3142,19 @@ export declare const EventDocument: z.ZodObject<{
2728
3142
  option: string;
2729
3143
  filename: string;
2730
3144
  originalFilename: string;
2731
- }[] | undefined> | undefined;
3145
+ }[] | [string, string] | null | undefined> | undefined;
3146
+ originalActionId?: string | undefined;
3147
+ registrationNumber?: string | undefined;
2732
3148
  }, {
2733
3149
  type: "REGISTER";
2734
3150
  id: string;
2735
- data: Record<string, string | number | boolean | {
3151
+ status: "Rejected" | "Requested" | "Accepted";
3152
+ transactionId: string;
3153
+ createdByUserType: "system" | "user";
3154
+ createdAt: string;
3155
+ createdBy: string;
3156
+ createdByRole: string;
3157
+ declaration: Record<string, string | number | boolean | {
2736
3158
  type: string;
2737
3159
  filename: string;
2738
3160
  originalFilename: string;
@@ -2747,6 +3169,10 @@ export declare const EventDocument: z.ZodObject<{
2747
3169
  residentialArea?: string | null | undefined;
2748
3170
  street?: string | null | undefined;
2749
3171
  zipCode?: string | null | undefined;
3172
+ } | {
3173
+ firstname: string;
3174
+ surname: string;
3175
+ middlename?: string | null | undefined;
2750
3176
  } | {
2751
3177
  country: string;
2752
3178
  district: string;
@@ -2769,15 +3195,10 @@ export declare const EventDocument: z.ZodObject<{
2769
3195
  option: string;
2770
3196
  filename: string;
2771
3197
  originalFilename: string;
2772
- }[] | undefined>;
2773
- createdAt: string;
2774
- createdBy: string;
2775
- createdAtLocation: string;
2776
- identifiers: {
2777
- trackingId: string;
2778
- registrationNumber: string;
2779
- };
2780
- metadata?: Record<string, string | number | boolean | {
3198
+ }[] | [string, string] | null | undefined>;
3199
+ createdBySignature?: string | null | undefined;
3200
+ createdAtLocation?: string | null | undefined;
3201
+ annotation?: Record<string, string | number | boolean | {
2781
3202
  type: string;
2782
3203
  filename: string;
2783
3204
  originalFilename: string;
@@ -2792,6 +3213,10 @@ export declare const EventDocument: z.ZodObject<{
2792
3213
  residentialArea?: string | null | undefined;
2793
3214
  street?: string | null | undefined;
2794
3215
  zipCode?: string | null | undefined;
3216
+ } | {
3217
+ firstname: string;
3218
+ surname: string;
3219
+ middlename?: string | null | undefined;
2795
3220
  } | {
2796
3221
  country: string;
2797
3222
  district: string;
@@ -2814,12 +3239,19 @@ export declare const EventDocument: z.ZodObject<{
2814
3239
  option: string;
2815
3240
  filename: string;
2816
3241
  originalFilename: string;
2817
- }[] | undefined> | undefined;
3242
+ }[] | [string, string] | null | undefined> | undefined;
3243
+ originalActionId?: string | undefined;
3244
+ registrationNumber?: string | undefined;
2818
3245
  }>, z.ZodObject<z.objectUtil.extendShape<{
2819
3246
  id: z.ZodString;
3247
+ transactionId: z.ZodString;
3248
+ createdByUserType: z.ZodEnum<["user", "system"]>;
2820
3249
  createdAt: z.ZodString;
2821
3250
  createdBy: z.ZodString;
2822
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3251
+ createdByRole: z.ZodString;
3252
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3253
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3254
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2823
3255
  filename: z.ZodString;
2824
3256
  originalFilename: z.ZodString;
2825
3257
  type: z.ZodString;
@@ -2932,8 +3364,20 @@ export declare const EventDocument: z.ZodObject<{
2932
3364
  addressLine2?: string | null | undefined;
2933
3365
  addressLine3?: string | null | undefined;
2934
3366
  postcodeOrZip?: string | null | undefined;
2935
- }>]>>;
2936
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3367
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
3368
+ firstname: z.ZodString;
3369
+ surname: z.ZodString;
3370
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3371
+ }, "strip", z.ZodTypeAny, {
3372
+ firstname: string;
3373
+ surname: string;
3374
+ middlename?: string | null | undefined;
3375
+ }, {
3376
+ firstname: string;
3377
+ surname: string;
3378
+ middlename?: string | null | undefined;
3379
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
3380
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2937
3381
  filename: z.ZodString;
2938
3382
  originalFilename: z.ZodString;
2939
3383
  type: z.ZodString;
@@ -3046,14 +3490,33 @@ export declare const EventDocument: z.ZodObject<{
3046
3490
  addressLine2?: string | null | undefined;
3047
3491
  addressLine3?: string | null | undefined;
3048
3492
  postcodeOrZip?: string | null | undefined;
3049
- }>]>>>;
3050
- createdAtLocation: z.ZodString;
3493
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
3494
+ firstname: z.ZodString;
3495
+ surname: z.ZodString;
3496
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3497
+ }, "strip", z.ZodTypeAny, {
3498
+ firstname: string;
3499
+ surname: string;
3500
+ middlename?: string | null | undefined;
3501
+ }, {
3502
+ firstname: string;
3503
+ surname: string;
3504
+ middlename?: string | null | undefined;
3505
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
3506
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3507
+ originalActionId: z.ZodOptional<z.ZodString>;
3051
3508
  }, {
3052
3509
  type: z.ZodLiteral<"DECLARE">;
3053
3510
  }>, "strip", z.ZodTypeAny, {
3054
3511
  type: "DECLARE";
3055
3512
  id: string;
3056
- data: Record<string, string | number | boolean | {
3513
+ status: "Rejected" | "Requested" | "Accepted";
3514
+ transactionId: string;
3515
+ createdByUserType: "system" | "user";
3516
+ createdAt: string;
3517
+ createdBy: string;
3518
+ createdByRole: string;
3519
+ declaration: Record<string, string | number | boolean | {
3057
3520
  type: string;
3058
3521
  filename: string;
3059
3522
  originalFilename: string;
@@ -3068,6 +3531,10 @@ export declare const EventDocument: z.ZodObject<{
3068
3531
  residentialArea?: string | null | undefined;
3069
3532
  street?: string | null | undefined;
3070
3533
  zipCode?: string | null | undefined;
3534
+ } | {
3535
+ firstname: string;
3536
+ surname: string;
3537
+ middlename?: string | null | undefined;
3071
3538
  } | {
3072
3539
  country: string;
3073
3540
  district: string;
@@ -3090,11 +3557,10 @@ export declare const EventDocument: z.ZodObject<{
3090
3557
  option: string;
3091
3558
  filename: string;
3092
3559
  originalFilename: string;
3093
- }[] | undefined>;
3094
- createdAt: string;
3095
- createdBy: string;
3096
- createdAtLocation: string;
3097
- metadata?: Record<string, string | number | boolean | {
3560
+ }[] | [string, string] | null | undefined>;
3561
+ createdBySignature?: string | null | undefined;
3562
+ createdAtLocation?: string | null | undefined;
3563
+ annotation?: Record<string, string | number | boolean | {
3098
3564
  type: string;
3099
3565
  filename: string;
3100
3566
  originalFilename: string;
@@ -3109,6 +3575,10 @@ export declare const EventDocument: z.ZodObject<{
3109
3575
  residentialArea?: string | null | undefined;
3110
3576
  street?: string | null | undefined;
3111
3577
  zipCode?: string | null | undefined;
3578
+ } | {
3579
+ firstname: string;
3580
+ surname: string;
3581
+ middlename?: string | null | undefined;
3112
3582
  } | {
3113
3583
  country: string;
3114
3584
  district: string;
@@ -3131,11 +3601,18 @@ export declare const EventDocument: z.ZodObject<{
3131
3601
  option: string;
3132
3602
  filename: string;
3133
3603
  originalFilename: string;
3134
- }[] | undefined> | undefined;
3604
+ }[] | [string, string] | null | undefined> | undefined;
3605
+ originalActionId?: string | undefined;
3135
3606
  }, {
3136
3607
  type: "DECLARE";
3137
3608
  id: string;
3138
- data: Record<string, string | number | boolean | {
3609
+ status: "Rejected" | "Requested" | "Accepted";
3610
+ transactionId: string;
3611
+ createdByUserType: "system" | "user";
3612
+ createdAt: string;
3613
+ createdBy: string;
3614
+ createdByRole: string;
3615
+ declaration: Record<string, string | number | boolean | {
3139
3616
  type: string;
3140
3617
  filename: string;
3141
3618
  originalFilename: string;
@@ -3150,6 +3627,10 @@ export declare const EventDocument: z.ZodObject<{
3150
3627
  residentialArea?: string | null | undefined;
3151
3628
  street?: string | null | undefined;
3152
3629
  zipCode?: string | null | undefined;
3630
+ } | {
3631
+ firstname: string;
3632
+ surname: string;
3633
+ middlename?: string | null | undefined;
3153
3634
  } | {
3154
3635
  country: string;
3155
3636
  district: string;
@@ -3172,11 +3653,10 @@ export declare const EventDocument: z.ZodObject<{
3172
3653
  option: string;
3173
3654
  filename: string;
3174
3655
  originalFilename: string;
3175
- }[] | undefined>;
3176
- createdAt: string;
3177
- createdBy: string;
3178
- createdAtLocation: string;
3179
- metadata?: Record<string, string | number | boolean | {
3656
+ }[] | [string, string] | null | undefined>;
3657
+ createdBySignature?: string | null | undefined;
3658
+ createdAtLocation?: string | null | undefined;
3659
+ annotation?: Record<string, string | number | boolean | {
3180
3660
  type: string;
3181
3661
  filename: string;
3182
3662
  originalFilename: string;
@@ -3191,6 +3671,10 @@ export declare const EventDocument: z.ZodObject<{
3191
3671
  residentialArea?: string | null | undefined;
3192
3672
  street?: string | null | undefined;
3193
3673
  zipCode?: string | null | undefined;
3674
+ } | {
3675
+ firstname: string;
3676
+ surname: string;
3677
+ middlename?: string | null | undefined;
3194
3678
  } | {
3195
3679
  country: string;
3196
3680
  district: string;
@@ -3213,12 +3697,18 @@ export declare const EventDocument: z.ZodObject<{
3213
3697
  option: string;
3214
3698
  filename: string;
3215
3699
  originalFilename: string;
3216
- }[] | undefined> | undefined;
3700
+ }[] | [string, string] | null | undefined> | undefined;
3701
+ originalActionId?: string | undefined;
3217
3702
  }>, z.ZodObject<z.objectUtil.extendShape<{
3218
3703
  id: z.ZodString;
3704
+ transactionId: z.ZodString;
3705
+ createdByUserType: z.ZodEnum<["user", "system"]>;
3219
3706
  createdAt: z.ZodString;
3220
3707
  createdBy: z.ZodString;
3221
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3708
+ createdByRole: z.ZodString;
3709
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3710
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3711
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3222
3712
  filename: z.ZodString;
3223
3713
  originalFilename: z.ZodString;
3224
3714
  type: z.ZodString;
@@ -3331,8 +3821,20 @@ export declare const EventDocument: z.ZodObject<{
3331
3821
  addressLine2?: string | null | undefined;
3332
3822
  addressLine3?: string | null | undefined;
3333
3823
  postcodeOrZip?: string | null | undefined;
3334
- }>]>>;
3335
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3824
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
3825
+ firstname: z.ZodString;
3826
+ surname: z.ZodString;
3827
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3828
+ }, "strip", z.ZodTypeAny, {
3829
+ firstname: string;
3830
+ surname: string;
3831
+ middlename?: string | null | undefined;
3832
+ }, {
3833
+ firstname: string;
3834
+ surname: string;
3835
+ middlename?: string | null | undefined;
3836
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
3837
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3336
3838
  filename: z.ZodString;
3337
3839
  originalFilename: z.ZodString;
3338
3840
  type: z.ZodString;
@@ -3445,15 +3947,34 @@ export declare const EventDocument: z.ZodObject<{
3445
3947
  addressLine2?: string | null | undefined;
3446
3948
  addressLine3?: string | null | undefined;
3447
3949
  postcodeOrZip?: string | null | undefined;
3448
- }>]>>>;
3449
- createdAtLocation: z.ZodString;
3950
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
3951
+ firstname: z.ZodString;
3952
+ surname: z.ZodString;
3953
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3954
+ }, "strip", z.ZodTypeAny, {
3955
+ firstname: string;
3956
+ surname: string;
3957
+ middlename?: string | null | undefined;
3958
+ }, {
3959
+ firstname: string;
3960
+ surname: string;
3961
+ middlename?: string | null | undefined;
3962
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
3963
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3964
+ originalActionId: z.ZodOptional<z.ZodString>;
3450
3965
  }, {
3451
3966
  type: z.ZodLiteral<"ASSIGN">;
3452
3967
  assignedTo: z.ZodString;
3453
3968
  }>, "strip", z.ZodTypeAny, {
3454
3969
  type: "ASSIGN";
3455
3970
  id: string;
3456
- data: Record<string, string | number | boolean | {
3971
+ status: "Rejected" | "Requested" | "Accepted";
3972
+ transactionId: string;
3973
+ createdByUserType: "system" | "user";
3974
+ createdAt: string;
3975
+ createdBy: string;
3976
+ createdByRole: string;
3977
+ declaration: Record<string, string | number | boolean | {
3457
3978
  type: string;
3458
3979
  filename: string;
3459
3980
  originalFilename: string;
@@ -3468,6 +3989,10 @@ export declare const EventDocument: z.ZodObject<{
3468
3989
  residentialArea?: string | null | undefined;
3469
3990
  street?: string | null | undefined;
3470
3991
  zipCode?: string | null | undefined;
3992
+ } | {
3993
+ firstname: string;
3994
+ surname: string;
3995
+ middlename?: string | null | undefined;
3471
3996
  } | {
3472
3997
  country: string;
3473
3998
  district: string;
@@ -3490,12 +4015,11 @@ export declare const EventDocument: z.ZodObject<{
3490
4015
  option: string;
3491
4016
  filename: string;
3492
4017
  originalFilename: string;
3493
- }[] | undefined>;
3494
- createdAt: string;
3495
- createdBy: string;
3496
- createdAtLocation: string;
4018
+ }[] | [string, string] | null | undefined>;
3497
4019
  assignedTo: string;
3498
- metadata?: Record<string, string | number | boolean | {
4020
+ createdBySignature?: string | null | undefined;
4021
+ createdAtLocation?: string | null | undefined;
4022
+ annotation?: Record<string, string | number | boolean | {
3499
4023
  type: string;
3500
4024
  filename: string;
3501
4025
  originalFilename: string;
@@ -3510,6 +4034,10 @@ export declare const EventDocument: z.ZodObject<{
3510
4034
  residentialArea?: string | null | undefined;
3511
4035
  street?: string | null | undefined;
3512
4036
  zipCode?: string | null | undefined;
4037
+ } | {
4038
+ firstname: string;
4039
+ surname: string;
4040
+ middlename?: string | null | undefined;
3513
4041
  } | {
3514
4042
  country: string;
3515
4043
  district: string;
@@ -3532,11 +4060,18 @@ export declare const EventDocument: z.ZodObject<{
3532
4060
  option: string;
3533
4061
  filename: string;
3534
4062
  originalFilename: string;
3535
- }[] | undefined> | undefined;
4063
+ }[] | [string, string] | null | undefined> | undefined;
4064
+ originalActionId?: string | undefined;
3536
4065
  }, {
3537
4066
  type: "ASSIGN";
3538
4067
  id: string;
3539
- data: Record<string, string | number | boolean | {
4068
+ status: "Rejected" | "Requested" | "Accepted";
4069
+ transactionId: string;
4070
+ createdByUserType: "system" | "user";
4071
+ createdAt: string;
4072
+ createdBy: string;
4073
+ createdByRole: string;
4074
+ declaration: Record<string, string | number | boolean | {
3540
4075
  type: string;
3541
4076
  filename: string;
3542
4077
  originalFilename: string;
@@ -3551,6 +4086,10 @@ export declare const EventDocument: z.ZodObject<{
3551
4086
  residentialArea?: string | null | undefined;
3552
4087
  street?: string | null | undefined;
3553
4088
  zipCode?: string | null | undefined;
4089
+ } | {
4090
+ firstname: string;
4091
+ surname: string;
4092
+ middlename?: string | null | undefined;
3554
4093
  } | {
3555
4094
  country: string;
3556
4095
  district: string;
@@ -3573,12 +4112,11 @@ export declare const EventDocument: z.ZodObject<{
3573
4112
  option: string;
3574
4113
  filename: string;
3575
4114
  originalFilename: string;
3576
- }[] | undefined>;
3577
- createdAt: string;
3578
- createdBy: string;
3579
- createdAtLocation: string;
4115
+ }[] | [string, string] | null | undefined>;
3580
4116
  assignedTo: string;
3581
- metadata?: Record<string, string | number | boolean | {
4117
+ createdBySignature?: string | null | undefined;
4118
+ createdAtLocation?: string | null | undefined;
4119
+ annotation?: Record<string, string | number | boolean | {
3582
4120
  type: string;
3583
4121
  filename: string;
3584
4122
  originalFilename: string;
@@ -3593,6 +4131,10 @@ export declare const EventDocument: z.ZodObject<{
3593
4131
  residentialArea?: string | null | undefined;
3594
4132
  street?: string | null | undefined;
3595
4133
  zipCode?: string | null | undefined;
4134
+ } | {
4135
+ firstname: string;
4136
+ surname: string;
4137
+ middlename?: string | null | undefined;
3596
4138
  } | {
3597
4139
  country: string;
3598
4140
  district: string;
@@ -3615,12 +4157,18 @@ export declare const EventDocument: z.ZodObject<{
3615
4157
  option: string;
3616
4158
  filename: string;
3617
4159
  originalFilename: string;
3618
- }[] | undefined> | undefined;
4160
+ }[] | [string, string] | null | undefined> | undefined;
4161
+ originalActionId?: string | undefined;
3619
4162
  }>, z.ZodObject<z.objectUtil.extendShape<{
3620
4163
  id: z.ZodString;
4164
+ transactionId: z.ZodString;
4165
+ createdByUserType: z.ZodEnum<["user", "system"]>;
3621
4166
  createdAt: z.ZodString;
3622
4167
  createdBy: z.ZodString;
3623
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4168
+ createdByRole: z.ZodString;
4169
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4170
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4171
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3624
4172
  filename: z.ZodString;
3625
4173
  originalFilename: z.ZodString;
3626
4174
  type: z.ZodString;
@@ -3733,8 +4281,20 @@ export declare const EventDocument: z.ZodObject<{
3733
4281
  addressLine2?: string | null | undefined;
3734
4282
  addressLine3?: string | null | undefined;
3735
4283
  postcodeOrZip?: string | null | undefined;
3736
- }>]>>;
3737
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4284
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
4285
+ firstname: z.ZodString;
4286
+ surname: z.ZodString;
4287
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4288
+ }, "strip", z.ZodTypeAny, {
4289
+ firstname: string;
4290
+ surname: string;
4291
+ middlename?: string | null | undefined;
4292
+ }, {
4293
+ firstname: string;
4294
+ surname: string;
4295
+ middlename?: string | null | undefined;
4296
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
4297
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3738
4298
  filename: z.ZodString;
3739
4299
  originalFilename: z.ZodString;
3740
4300
  type: z.ZodString;
@@ -3847,14 +4407,33 @@ export declare const EventDocument: z.ZodObject<{
3847
4407
  addressLine2?: string | null | undefined;
3848
4408
  addressLine3?: string | null | undefined;
3849
4409
  postcodeOrZip?: string | null | undefined;
3850
- }>]>>>;
3851
- createdAtLocation: z.ZodString;
4410
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
4411
+ firstname: z.ZodString;
4412
+ surname: z.ZodString;
4413
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4414
+ }, "strip", z.ZodTypeAny, {
4415
+ firstname: string;
4416
+ surname: string;
4417
+ middlename?: string | null | undefined;
4418
+ }, {
4419
+ firstname: string;
4420
+ surname: string;
4421
+ middlename?: string | null | undefined;
4422
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
4423
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4424
+ originalActionId: z.ZodOptional<z.ZodString>;
3852
4425
  }, {
3853
4426
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
3854
4427
  }>, "strip", z.ZodTypeAny, {
3855
4428
  type: "REQUEST_CORRECTION";
3856
4429
  id: string;
3857
- data: Record<string, string | number | boolean | {
4430
+ status: "Rejected" | "Requested" | "Accepted";
4431
+ transactionId: string;
4432
+ createdByUserType: "system" | "user";
4433
+ createdAt: string;
4434
+ createdBy: string;
4435
+ createdByRole: string;
4436
+ declaration: Record<string, string | number | boolean | {
3858
4437
  type: string;
3859
4438
  filename: string;
3860
4439
  originalFilename: string;
@@ -3869,6 +4448,10 @@ export declare const EventDocument: z.ZodObject<{
3869
4448
  residentialArea?: string | null | undefined;
3870
4449
  street?: string | null | undefined;
3871
4450
  zipCode?: string | null | undefined;
4451
+ } | {
4452
+ firstname: string;
4453
+ surname: string;
4454
+ middlename?: string | null | undefined;
3872
4455
  } | {
3873
4456
  country: string;
3874
4457
  district: string;
@@ -3891,11 +4474,10 @@ export declare const EventDocument: z.ZodObject<{
3891
4474
  option: string;
3892
4475
  filename: string;
3893
4476
  originalFilename: string;
3894
- }[] | undefined>;
3895
- createdAt: string;
3896
- createdBy: string;
3897
- createdAtLocation: string;
3898
- metadata?: Record<string, string | number | boolean | {
4477
+ }[] | [string, string] | null | undefined>;
4478
+ createdBySignature?: string | null | undefined;
4479
+ createdAtLocation?: string | null | undefined;
4480
+ annotation?: Record<string, string | number | boolean | {
3899
4481
  type: string;
3900
4482
  filename: string;
3901
4483
  originalFilename: string;
@@ -3910,6 +4492,10 @@ export declare const EventDocument: z.ZodObject<{
3910
4492
  residentialArea?: string | null | undefined;
3911
4493
  street?: string | null | undefined;
3912
4494
  zipCode?: string | null | undefined;
4495
+ } | {
4496
+ firstname: string;
4497
+ surname: string;
4498
+ middlename?: string | null | undefined;
3913
4499
  } | {
3914
4500
  country: string;
3915
4501
  district: string;
@@ -3932,11 +4518,18 @@ export declare const EventDocument: z.ZodObject<{
3932
4518
  option: string;
3933
4519
  filename: string;
3934
4520
  originalFilename: string;
3935
- }[] | undefined> | undefined;
4521
+ }[] | [string, string] | null | undefined> | undefined;
4522
+ originalActionId?: string | undefined;
3936
4523
  }, {
3937
4524
  type: "REQUEST_CORRECTION";
3938
4525
  id: string;
3939
- data: Record<string, string | number | boolean | {
4526
+ status: "Rejected" | "Requested" | "Accepted";
4527
+ transactionId: string;
4528
+ createdByUserType: "system" | "user";
4529
+ createdAt: string;
4530
+ createdBy: string;
4531
+ createdByRole: string;
4532
+ declaration: Record<string, string | number | boolean | {
3940
4533
  type: string;
3941
4534
  filename: string;
3942
4535
  originalFilename: string;
@@ -3951,6 +4544,10 @@ export declare const EventDocument: z.ZodObject<{
3951
4544
  residentialArea?: string | null | undefined;
3952
4545
  street?: string | null | undefined;
3953
4546
  zipCode?: string | null | undefined;
4547
+ } | {
4548
+ firstname: string;
4549
+ surname: string;
4550
+ middlename?: string | null | undefined;
3954
4551
  } | {
3955
4552
  country: string;
3956
4553
  district: string;
@@ -3973,11 +4570,10 @@ export declare const EventDocument: z.ZodObject<{
3973
4570
  option: string;
3974
4571
  filename: string;
3975
4572
  originalFilename: string;
3976
- }[] | undefined>;
3977
- createdAt: string;
3978
- createdBy: string;
3979
- createdAtLocation: string;
3980
- metadata?: Record<string, string | number | boolean | {
4573
+ }[] | [string, string] | null | undefined>;
4574
+ createdBySignature?: string | null | undefined;
4575
+ createdAtLocation?: string | null | undefined;
4576
+ annotation?: Record<string, string | number | boolean | {
3981
4577
  type: string;
3982
4578
  filename: string;
3983
4579
  originalFilename: string;
@@ -3992,6 +4588,10 @@ export declare const EventDocument: z.ZodObject<{
3992
4588
  residentialArea?: string | null | undefined;
3993
4589
  street?: string | null | undefined;
3994
4590
  zipCode?: string | null | undefined;
4591
+ } | {
4592
+ firstname: string;
4593
+ surname: string;
4594
+ middlename?: string | null | undefined;
3995
4595
  } | {
3996
4596
  country: string;
3997
4597
  district: string;
@@ -4014,12 +4614,18 @@ export declare const EventDocument: z.ZodObject<{
4014
4614
  option: string;
4015
4615
  filename: string;
4016
4616
  originalFilename: string;
4017
- }[] | undefined> | undefined;
4617
+ }[] | [string, string] | null | undefined> | undefined;
4618
+ originalActionId?: string | undefined;
4018
4619
  }>, z.ZodObject<z.objectUtil.extendShape<{
4019
4620
  id: z.ZodString;
4621
+ transactionId: z.ZodString;
4622
+ createdByUserType: z.ZodEnum<["user", "system"]>;
4020
4623
  createdAt: z.ZodString;
4021
4624
  createdBy: z.ZodString;
4022
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4625
+ createdByRole: z.ZodString;
4626
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4627
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4628
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4023
4629
  filename: z.ZodString;
4024
4630
  originalFilename: z.ZodString;
4025
4631
  type: z.ZodString;
@@ -4132,8 +4738,20 @@ export declare const EventDocument: z.ZodObject<{
4132
4738
  addressLine2?: string | null | undefined;
4133
4739
  addressLine3?: string | null | undefined;
4134
4740
  postcodeOrZip?: string | null | undefined;
4135
- }>]>>;
4136
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4741
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
4742
+ firstname: z.ZodString;
4743
+ surname: z.ZodString;
4744
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4745
+ }, "strip", z.ZodTypeAny, {
4746
+ firstname: string;
4747
+ surname: string;
4748
+ middlename?: string | null | undefined;
4749
+ }, {
4750
+ firstname: string;
4751
+ surname: string;
4752
+ middlename?: string | null | undefined;
4753
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
4754
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4137
4755
  filename: z.ZodString;
4138
4756
  originalFilename: z.ZodString;
4139
4757
  type: z.ZodString;
@@ -4246,15 +4864,34 @@ export declare const EventDocument: z.ZodObject<{
4246
4864
  addressLine2?: string | null | undefined;
4247
4865
  addressLine3?: string | null | undefined;
4248
4866
  postcodeOrZip?: string | null | undefined;
4249
- }>]>>>;
4250
- createdAtLocation: z.ZodString;
4867
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
4868
+ firstname: z.ZodString;
4869
+ surname: z.ZodString;
4870
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4871
+ }, "strip", z.ZodTypeAny, {
4872
+ firstname: string;
4873
+ surname: string;
4874
+ middlename?: string | null | undefined;
4875
+ }, {
4876
+ firstname: string;
4877
+ surname: string;
4878
+ middlename?: string | null | undefined;
4879
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
4880
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4881
+ originalActionId: z.ZodOptional<z.ZodString>;
4251
4882
  }, {
4252
4883
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
4253
4884
  requestId: z.ZodString;
4254
4885
  }>, "strip", z.ZodTypeAny, {
4255
4886
  type: "APPROVE_CORRECTION";
4256
4887
  id: string;
4257
- data: Record<string, string | number | boolean | {
4888
+ status: "Rejected" | "Requested" | "Accepted";
4889
+ transactionId: string;
4890
+ createdByUserType: "system" | "user";
4891
+ createdAt: string;
4892
+ createdBy: string;
4893
+ createdByRole: string;
4894
+ declaration: Record<string, string | number | boolean | {
4258
4895
  type: string;
4259
4896
  filename: string;
4260
4897
  originalFilename: string;
@@ -4269,6 +4906,10 @@ export declare const EventDocument: z.ZodObject<{
4269
4906
  residentialArea?: string | null | undefined;
4270
4907
  street?: string | null | undefined;
4271
4908
  zipCode?: string | null | undefined;
4909
+ } | {
4910
+ firstname: string;
4911
+ surname: string;
4912
+ middlename?: string | null | undefined;
4272
4913
  } | {
4273
4914
  country: string;
4274
4915
  district: string;
@@ -4291,12 +4932,11 @@ export declare const EventDocument: z.ZodObject<{
4291
4932
  option: string;
4292
4933
  filename: string;
4293
4934
  originalFilename: string;
4294
- }[] | undefined>;
4295
- createdAt: string;
4296
- createdBy: string;
4297
- createdAtLocation: string;
4935
+ }[] | [string, string] | null | undefined>;
4298
4936
  requestId: string;
4299
- metadata?: Record<string, string | number | boolean | {
4937
+ createdBySignature?: string | null | undefined;
4938
+ createdAtLocation?: string | null | undefined;
4939
+ annotation?: Record<string, string | number | boolean | {
4300
4940
  type: string;
4301
4941
  filename: string;
4302
4942
  originalFilename: string;
@@ -4311,6 +4951,10 @@ export declare const EventDocument: z.ZodObject<{
4311
4951
  residentialArea?: string | null | undefined;
4312
4952
  street?: string | null | undefined;
4313
4953
  zipCode?: string | null | undefined;
4954
+ } | {
4955
+ firstname: string;
4956
+ surname: string;
4957
+ middlename?: string | null | undefined;
4314
4958
  } | {
4315
4959
  country: string;
4316
4960
  district: string;
@@ -4333,11 +4977,18 @@ export declare const EventDocument: z.ZodObject<{
4333
4977
  option: string;
4334
4978
  filename: string;
4335
4979
  originalFilename: string;
4336
- }[] | undefined> | undefined;
4980
+ }[] | [string, string] | null | undefined> | undefined;
4981
+ originalActionId?: string | undefined;
4337
4982
  }, {
4338
4983
  type: "APPROVE_CORRECTION";
4339
4984
  id: string;
4340
- data: Record<string, string | number | boolean | {
4985
+ status: "Rejected" | "Requested" | "Accepted";
4986
+ transactionId: string;
4987
+ createdByUserType: "system" | "user";
4988
+ createdAt: string;
4989
+ createdBy: string;
4990
+ createdByRole: string;
4991
+ declaration: Record<string, string | number | boolean | {
4341
4992
  type: string;
4342
4993
  filename: string;
4343
4994
  originalFilename: string;
@@ -4352,6 +5003,10 @@ export declare const EventDocument: z.ZodObject<{
4352
5003
  residentialArea?: string | null | undefined;
4353
5004
  street?: string | null | undefined;
4354
5005
  zipCode?: string | null | undefined;
5006
+ } | {
5007
+ firstname: string;
5008
+ surname: string;
5009
+ middlename?: string | null | undefined;
4355
5010
  } | {
4356
5011
  country: string;
4357
5012
  district: string;
@@ -4374,12 +5029,11 @@ export declare const EventDocument: z.ZodObject<{
4374
5029
  option: string;
4375
5030
  filename: string;
4376
5031
  originalFilename: string;
4377
- }[] | undefined>;
4378
- createdAt: string;
4379
- createdBy: string;
4380
- createdAtLocation: string;
5032
+ }[] | [string, string] | null | undefined>;
4381
5033
  requestId: string;
4382
- metadata?: Record<string, string | number | boolean | {
5034
+ createdBySignature?: string | null | undefined;
5035
+ createdAtLocation?: string | null | undefined;
5036
+ annotation?: Record<string, string | number | boolean | {
4383
5037
  type: string;
4384
5038
  filename: string;
4385
5039
  originalFilename: string;
@@ -4394,6 +5048,10 @@ export declare const EventDocument: z.ZodObject<{
4394
5048
  residentialArea?: string | null | undefined;
4395
5049
  street?: string | null | undefined;
4396
5050
  zipCode?: string | null | undefined;
5051
+ } | {
5052
+ firstname: string;
5053
+ surname: string;
5054
+ middlename?: string | null | undefined;
4397
5055
  } | {
4398
5056
  country: string;
4399
5057
  district: string;
@@ -4416,12 +5074,18 @@ export declare const EventDocument: z.ZodObject<{
4416
5074
  option: string;
4417
5075
  filename: string;
4418
5076
  originalFilename: string;
4419
- }[] | undefined> | undefined;
5077
+ }[] | [string, string] | null | undefined> | undefined;
5078
+ originalActionId?: string | undefined;
4420
5079
  }>, z.ZodObject<z.objectUtil.extendShape<{
4421
5080
  id: z.ZodString;
5081
+ transactionId: z.ZodString;
5082
+ createdByUserType: z.ZodEnum<["user", "system"]>;
4422
5083
  createdAt: z.ZodString;
4423
5084
  createdBy: z.ZodString;
4424
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5085
+ createdByRole: z.ZodString;
5086
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5087
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5088
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4425
5089
  filename: z.ZodString;
4426
5090
  originalFilename: z.ZodString;
4427
5091
  type: z.ZodString;
@@ -4534,8 +5198,20 @@ export declare const EventDocument: z.ZodObject<{
4534
5198
  addressLine2?: string | null | undefined;
4535
5199
  addressLine3?: string | null | undefined;
4536
5200
  postcodeOrZip?: string | null | undefined;
4537
- }>]>>;
4538
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5201
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
5202
+ firstname: z.ZodString;
5203
+ surname: z.ZodString;
5204
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5205
+ }, "strip", z.ZodTypeAny, {
5206
+ firstname: string;
5207
+ surname: string;
5208
+ middlename?: string | null | undefined;
5209
+ }, {
5210
+ firstname: string;
5211
+ surname: string;
5212
+ middlename?: string | null | undefined;
5213
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
5214
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4539
5215
  filename: z.ZodString;
4540
5216
  originalFilename: z.ZodString;
4541
5217
  type: z.ZodString;
@@ -4648,15 +5324,34 @@ export declare const EventDocument: z.ZodObject<{
4648
5324
  addressLine2?: string | null | undefined;
4649
5325
  addressLine3?: string | null | undefined;
4650
5326
  postcodeOrZip?: string | null | undefined;
4651
- }>]>>>;
4652
- createdAtLocation: z.ZodString;
5327
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
5328
+ firstname: z.ZodString;
5329
+ surname: z.ZodString;
5330
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5331
+ }, "strip", z.ZodTypeAny, {
5332
+ firstname: string;
5333
+ surname: string;
5334
+ middlename?: string | null | undefined;
5335
+ }, {
5336
+ firstname: string;
5337
+ surname: string;
5338
+ middlename?: string | null | undefined;
5339
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
5340
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5341
+ originalActionId: z.ZodOptional<z.ZodString>;
4653
5342
  }, {
4654
5343
  type: z.ZodLiteral<"REJECT_CORRECTION">;
4655
5344
  requestId: z.ZodString;
4656
5345
  }>, "strip", z.ZodTypeAny, {
4657
5346
  type: "REJECT_CORRECTION";
4658
5347
  id: string;
4659
- data: Record<string, string | number | boolean | {
5348
+ status: "Rejected" | "Requested" | "Accepted";
5349
+ transactionId: string;
5350
+ createdByUserType: "system" | "user";
5351
+ createdAt: string;
5352
+ createdBy: string;
5353
+ createdByRole: string;
5354
+ declaration: Record<string, string | number | boolean | {
4660
5355
  type: string;
4661
5356
  filename: string;
4662
5357
  originalFilename: string;
@@ -4671,6 +5366,10 @@ export declare const EventDocument: z.ZodObject<{
4671
5366
  residentialArea?: string | null | undefined;
4672
5367
  street?: string | null | undefined;
4673
5368
  zipCode?: string | null | undefined;
5369
+ } | {
5370
+ firstname: string;
5371
+ surname: string;
5372
+ middlename?: string | null | undefined;
4674
5373
  } | {
4675
5374
  country: string;
4676
5375
  district: string;
@@ -4693,12 +5392,11 @@ export declare const EventDocument: z.ZodObject<{
4693
5392
  option: string;
4694
5393
  filename: string;
4695
5394
  originalFilename: string;
4696
- }[] | undefined>;
4697
- createdAt: string;
4698
- createdBy: string;
4699
- createdAtLocation: string;
5395
+ }[] | [string, string] | null | undefined>;
4700
5396
  requestId: string;
4701
- metadata?: Record<string, string | number | boolean | {
5397
+ createdBySignature?: string | null | undefined;
5398
+ createdAtLocation?: string | null | undefined;
5399
+ annotation?: Record<string, string | number | boolean | {
4702
5400
  type: string;
4703
5401
  filename: string;
4704
5402
  originalFilename: string;
@@ -4713,6 +5411,10 @@ export declare const EventDocument: z.ZodObject<{
4713
5411
  residentialArea?: string | null | undefined;
4714
5412
  street?: string | null | undefined;
4715
5413
  zipCode?: string | null | undefined;
5414
+ } | {
5415
+ firstname: string;
5416
+ surname: string;
5417
+ middlename?: string | null | undefined;
4716
5418
  } | {
4717
5419
  country: string;
4718
5420
  district: string;
@@ -4735,11 +5437,18 @@ export declare const EventDocument: z.ZodObject<{
4735
5437
  option: string;
4736
5438
  filename: string;
4737
5439
  originalFilename: string;
4738
- }[] | undefined> | undefined;
5440
+ }[] | [string, string] | null | undefined> | undefined;
5441
+ originalActionId?: string | undefined;
4739
5442
  }, {
4740
5443
  type: "REJECT_CORRECTION";
4741
5444
  id: string;
4742
- data: Record<string, string | number | boolean | {
5445
+ status: "Rejected" | "Requested" | "Accepted";
5446
+ transactionId: string;
5447
+ createdByUserType: "system" | "user";
5448
+ createdAt: string;
5449
+ createdBy: string;
5450
+ createdByRole: string;
5451
+ declaration: Record<string, string | number | boolean | {
4743
5452
  type: string;
4744
5453
  filename: string;
4745
5454
  originalFilename: string;
@@ -4754,6 +5463,10 @@ export declare const EventDocument: z.ZodObject<{
4754
5463
  residentialArea?: string | null | undefined;
4755
5464
  street?: string | null | undefined;
4756
5465
  zipCode?: string | null | undefined;
5466
+ } | {
5467
+ firstname: string;
5468
+ surname: string;
5469
+ middlename?: string | null | undefined;
4757
5470
  } | {
4758
5471
  country: string;
4759
5472
  district: string;
@@ -4776,12 +5489,11 @@ export declare const EventDocument: z.ZodObject<{
4776
5489
  option: string;
4777
5490
  filename: string;
4778
5491
  originalFilename: string;
4779
- }[] | undefined>;
4780
- createdAt: string;
4781
- createdBy: string;
4782
- createdAtLocation: string;
5492
+ }[] | [string, string] | null | undefined>;
4783
5493
  requestId: string;
4784
- metadata?: Record<string, string | number | boolean | {
5494
+ createdBySignature?: string | null | undefined;
5495
+ createdAtLocation?: string | null | undefined;
5496
+ annotation?: Record<string, string | number | boolean | {
4785
5497
  type: string;
4786
5498
  filename: string;
4787
5499
  originalFilename: string;
@@ -4796,6 +5508,10 @@ export declare const EventDocument: z.ZodObject<{
4796
5508
  residentialArea?: string | null | undefined;
4797
5509
  street?: string | null | undefined;
4798
5510
  zipCode?: string | null | undefined;
5511
+ } | {
5512
+ firstname: string;
5513
+ surname: string;
5514
+ middlename?: string | null | undefined;
4799
5515
  } | {
4800
5516
  country: string;
4801
5517
  district: string;
@@ -4818,12 +5534,18 @@ export declare const EventDocument: z.ZodObject<{
4818
5534
  option: string;
4819
5535
  filename: string;
4820
5536
  originalFilename: string;
4821
- }[] | undefined> | undefined;
5537
+ }[] | [string, string] | null | undefined> | undefined;
5538
+ originalActionId?: string | undefined;
4822
5539
  }>, z.ZodObject<z.objectUtil.extendShape<{
4823
5540
  id: z.ZodString;
5541
+ transactionId: z.ZodString;
5542
+ createdByUserType: z.ZodEnum<["user", "system"]>;
4824
5543
  createdAt: z.ZodString;
4825
5544
  createdBy: z.ZodString;
4826
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5545
+ createdByRole: z.ZodString;
5546
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5547
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5548
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4827
5549
  filename: z.ZodString;
4828
5550
  originalFilename: z.ZodString;
4829
5551
  type: z.ZodString;
@@ -4936,8 +5658,20 @@ export declare const EventDocument: z.ZodObject<{
4936
5658
  addressLine2?: string | null | undefined;
4937
5659
  addressLine3?: string | null | undefined;
4938
5660
  postcodeOrZip?: string | null | undefined;
4939
- }>]>>;
4940
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5661
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
5662
+ firstname: z.ZodString;
5663
+ surname: z.ZodString;
5664
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5665
+ }, "strip", z.ZodTypeAny, {
5666
+ firstname: string;
5667
+ surname: string;
5668
+ middlename?: string | null | undefined;
5669
+ }, {
5670
+ firstname: string;
5671
+ surname: string;
5672
+ middlename?: string | null | undefined;
5673
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
5674
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4941
5675
  filename: z.ZodString;
4942
5676
  originalFilename: z.ZodString;
4943
5677
  type: z.ZodString;
@@ -5050,14 +5784,34 @@ export declare const EventDocument: z.ZodObject<{
5050
5784
  addressLine2?: string | null | undefined;
5051
5785
  addressLine3?: string | null | undefined;
5052
5786
  postcodeOrZip?: string | null | undefined;
5053
- }>]>>>;
5054
- createdAtLocation: z.ZodString;
5787
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
5788
+ firstname: z.ZodString;
5789
+ surname: z.ZodString;
5790
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5791
+ }, "strip", z.ZodTypeAny, {
5792
+ firstname: string;
5793
+ surname: string;
5794
+ middlename?: string | null | undefined;
5795
+ }, {
5796
+ firstname: string;
5797
+ surname: string;
5798
+ middlename?: string | null | undefined;
5799
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
5800
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5801
+ originalActionId: z.ZodOptional<z.ZodString>;
5055
5802
  }, {
5056
5803
  type: z.ZodLiteral<"UNASSIGN">;
5804
+ assignedTo: z.ZodLiteral<null>;
5057
5805
  }>, "strip", z.ZodTypeAny, {
5058
5806
  type: "UNASSIGN";
5059
5807
  id: string;
5060
- data: Record<string, string | number | boolean | {
5808
+ status: "Rejected" | "Requested" | "Accepted";
5809
+ transactionId: string;
5810
+ createdByUserType: "system" | "user";
5811
+ createdAt: string;
5812
+ createdBy: string;
5813
+ createdByRole: string;
5814
+ declaration: Record<string, string | number | boolean | {
5061
5815
  type: string;
5062
5816
  filename: string;
5063
5817
  originalFilename: string;
@@ -5072,6 +5826,10 @@ export declare const EventDocument: z.ZodObject<{
5072
5826
  residentialArea?: string | null | undefined;
5073
5827
  street?: string | null | undefined;
5074
5828
  zipCode?: string | null | undefined;
5829
+ } | {
5830
+ firstname: string;
5831
+ surname: string;
5832
+ middlename?: string | null | undefined;
5075
5833
  } | {
5076
5834
  country: string;
5077
5835
  district: string;
@@ -5094,11 +5852,11 @@ export declare const EventDocument: z.ZodObject<{
5094
5852
  option: string;
5095
5853
  filename: string;
5096
5854
  originalFilename: string;
5097
- }[] | undefined>;
5098
- createdAt: string;
5099
- createdBy: string;
5100
- createdAtLocation: string;
5101
- metadata?: Record<string, string | number | boolean | {
5855
+ }[] | [string, string] | null | undefined>;
5856
+ assignedTo: null;
5857
+ createdBySignature?: string | null | undefined;
5858
+ createdAtLocation?: string | null | undefined;
5859
+ annotation?: Record<string, string | number | boolean | {
5102
5860
  type: string;
5103
5861
  filename: string;
5104
5862
  originalFilename: string;
@@ -5113,6 +5871,10 @@ export declare const EventDocument: z.ZodObject<{
5113
5871
  residentialArea?: string | null | undefined;
5114
5872
  street?: string | null | undefined;
5115
5873
  zipCode?: string | null | undefined;
5874
+ } | {
5875
+ firstname: string;
5876
+ surname: string;
5877
+ middlename?: string | null | undefined;
5116
5878
  } | {
5117
5879
  country: string;
5118
5880
  district: string;
@@ -5135,11 +5897,18 @@ export declare const EventDocument: z.ZodObject<{
5135
5897
  option: string;
5136
5898
  filename: string;
5137
5899
  originalFilename: string;
5138
- }[] | undefined> | undefined;
5900
+ }[] | [string, string] | null | undefined> | undefined;
5901
+ originalActionId?: string | undefined;
5139
5902
  }, {
5140
5903
  type: "UNASSIGN";
5141
5904
  id: string;
5142
- data: Record<string, string | number | boolean | {
5905
+ status: "Rejected" | "Requested" | "Accepted";
5906
+ transactionId: string;
5907
+ createdByUserType: "system" | "user";
5908
+ createdAt: string;
5909
+ createdBy: string;
5910
+ createdByRole: string;
5911
+ declaration: Record<string, string | number | boolean | {
5143
5912
  type: string;
5144
5913
  filename: string;
5145
5914
  originalFilename: string;
@@ -5154,6 +5923,10 @@ export declare const EventDocument: z.ZodObject<{
5154
5923
  residentialArea?: string | null | undefined;
5155
5924
  street?: string | null | undefined;
5156
5925
  zipCode?: string | null | undefined;
5926
+ } | {
5927
+ firstname: string;
5928
+ surname: string;
5929
+ middlename?: string | null | undefined;
5157
5930
  } | {
5158
5931
  country: string;
5159
5932
  district: string;
@@ -5176,11 +5949,11 @@ export declare const EventDocument: z.ZodObject<{
5176
5949
  option: string;
5177
5950
  filename: string;
5178
5951
  originalFilename: string;
5179
- }[] | undefined>;
5180
- createdAt: string;
5181
- createdBy: string;
5182
- createdAtLocation: string;
5183
- metadata?: Record<string, string | number | boolean | {
5952
+ }[] | [string, string] | null | undefined>;
5953
+ assignedTo: null;
5954
+ createdBySignature?: string | null | undefined;
5955
+ createdAtLocation?: string | null | undefined;
5956
+ annotation?: Record<string, string | number | boolean | {
5184
5957
  type: string;
5185
5958
  filename: string;
5186
5959
  originalFilename: string;
@@ -5195,6 +5968,10 @@ export declare const EventDocument: z.ZodObject<{
5195
5968
  residentialArea?: string | null | undefined;
5196
5969
  street?: string | null | undefined;
5197
5970
  zipCode?: string | null | undefined;
5971
+ } | {
5972
+ firstname: string;
5973
+ surname: string;
5974
+ middlename?: string | null | undefined;
5198
5975
  } | {
5199
5976
  country: string;
5200
5977
  district: string;
@@ -5217,12 +5994,18 @@ export declare const EventDocument: z.ZodObject<{
5217
5994
  option: string;
5218
5995
  filename: string;
5219
5996
  originalFilename: string;
5220
- }[] | undefined> | undefined;
5997
+ }[] | [string, string] | null | undefined> | undefined;
5998
+ originalActionId?: string | undefined;
5221
5999
  }>, z.ZodObject<z.objectUtil.extendShape<{
5222
6000
  id: z.ZodString;
6001
+ transactionId: z.ZodString;
6002
+ createdByUserType: z.ZodEnum<["user", "system"]>;
5223
6003
  createdAt: z.ZodString;
5224
6004
  createdBy: z.ZodString;
5225
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6005
+ createdByRole: z.ZodString;
6006
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6007
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6008
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5226
6009
  filename: z.ZodString;
5227
6010
  originalFilename: z.ZodString;
5228
6011
  type: z.ZodString;
@@ -5335,8 +6118,20 @@ export declare const EventDocument: z.ZodObject<{
5335
6118
  addressLine2?: string | null | undefined;
5336
6119
  addressLine3?: string | null | undefined;
5337
6120
  postcodeOrZip?: string | null | undefined;
5338
- }>]>>;
5339
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6121
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
6122
+ firstname: z.ZodString;
6123
+ surname: z.ZodString;
6124
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6125
+ }, "strip", z.ZodTypeAny, {
6126
+ firstname: string;
6127
+ surname: string;
6128
+ middlename?: string | null | undefined;
6129
+ }, {
6130
+ firstname: string;
6131
+ surname: string;
6132
+ middlename?: string | null | undefined;
6133
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
6134
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5340
6135
  filename: z.ZodString;
5341
6136
  originalFilename: z.ZodString;
5342
6137
  type: z.ZodString;
@@ -5449,14 +6244,33 @@ export declare const EventDocument: z.ZodObject<{
5449
6244
  addressLine2?: string | null | undefined;
5450
6245
  addressLine3?: string | null | undefined;
5451
6246
  postcodeOrZip?: string | null | undefined;
5452
- }>]>>>;
5453
- createdAtLocation: z.ZodString;
6247
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
6248
+ firstname: z.ZodString;
6249
+ surname: z.ZodString;
6250
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6251
+ }, "strip", z.ZodTypeAny, {
6252
+ firstname: string;
6253
+ surname: string;
6254
+ middlename?: string | null | undefined;
6255
+ }, {
6256
+ firstname: string;
6257
+ surname: string;
6258
+ middlename?: string | null | undefined;
6259
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
6260
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6261
+ originalActionId: z.ZodOptional<z.ZodString>;
5454
6262
  }, {
5455
6263
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
5456
6264
  }>, "strip", z.ZodTypeAny, {
5457
6265
  type: "PRINT_CERTIFICATE";
5458
6266
  id: string;
5459
- data: Record<string, string | number | boolean | {
6267
+ status: "Rejected" | "Requested" | "Accepted";
6268
+ transactionId: string;
6269
+ createdByUserType: "system" | "user";
6270
+ createdAt: string;
6271
+ createdBy: string;
6272
+ createdByRole: string;
6273
+ declaration: Record<string, string | number | boolean | {
5460
6274
  type: string;
5461
6275
  filename: string;
5462
6276
  originalFilename: string;
@@ -5471,6 +6285,10 @@ export declare const EventDocument: z.ZodObject<{
5471
6285
  residentialArea?: string | null | undefined;
5472
6286
  street?: string | null | undefined;
5473
6287
  zipCode?: string | null | undefined;
6288
+ } | {
6289
+ firstname: string;
6290
+ surname: string;
6291
+ middlename?: string | null | undefined;
5474
6292
  } | {
5475
6293
  country: string;
5476
6294
  district: string;
@@ -5493,11 +6311,10 @@ export declare const EventDocument: z.ZodObject<{
5493
6311
  option: string;
5494
6312
  filename: string;
5495
6313
  originalFilename: string;
5496
- }[] | undefined>;
5497
- createdAt: string;
5498
- createdBy: string;
5499
- createdAtLocation: string;
5500
- metadata?: Record<string, string | number | boolean | {
6314
+ }[] | [string, string] | null | undefined>;
6315
+ createdBySignature?: string | null | undefined;
6316
+ createdAtLocation?: string | null | undefined;
6317
+ annotation?: Record<string, string | number | boolean | {
5501
6318
  type: string;
5502
6319
  filename: string;
5503
6320
  originalFilename: string;
@@ -5512,6 +6329,10 @@ export declare const EventDocument: z.ZodObject<{
5512
6329
  residentialArea?: string | null | undefined;
5513
6330
  street?: string | null | undefined;
5514
6331
  zipCode?: string | null | undefined;
6332
+ } | {
6333
+ firstname: string;
6334
+ surname: string;
6335
+ middlename?: string | null | undefined;
5515
6336
  } | {
5516
6337
  country: string;
5517
6338
  district: string;
@@ -5534,11 +6355,18 @@ export declare const EventDocument: z.ZodObject<{
5534
6355
  option: string;
5535
6356
  filename: string;
5536
6357
  originalFilename: string;
5537
- }[] | undefined> | undefined;
6358
+ }[] | [string, string] | null | undefined> | undefined;
6359
+ originalActionId?: string | undefined;
5538
6360
  }, {
5539
6361
  type: "PRINT_CERTIFICATE";
5540
6362
  id: string;
5541
- data: Record<string, string | number | boolean | {
6363
+ status: "Rejected" | "Requested" | "Accepted";
6364
+ transactionId: string;
6365
+ createdByUserType: "system" | "user";
6366
+ createdAt: string;
6367
+ createdBy: string;
6368
+ createdByRole: string;
6369
+ declaration: Record<string, string | number | boolean | {
5542
6370
  type: string;
5543
6371
  filename: string;
5544
6372
  originalFilename: string;
@@ -5553,6 +6381,10 @@ export declare const EventDocument: z.ZodObject<{
5553
6381
  residentialArea?: string | null | undefined;
5554
6382
  street?: string | null | undefined;
5555
6383
  zipCode?: string | null | undefined;
6384
+ } | {
6385
+ firstname: string;
6386
+ surname: string;
6387
+ middlename?: string | null | undefined;
5556
6388
  } | {
5557
6389
  country: string;
5558
6390
  district: string;
@@ -5575,11 +6407,10 @@ export declare const EventDocument: z.ZodObject<{
5575
6407
  option: string;
5576
6408
  filename: string;
5577
6409
  originalFilename: string;
5578
- }[] | undefined>;
5579
- createdAt: string;
5580
- createdBy: string;
5581
- createdAtLocation: string;
5582
- metadata?: Record<string, string | number | boolean | {
6410
+ }[] | [string, string] | null | undefined>;
6411
+ createdBySignature?: string | null | undefined;
6412
+ createdAtLocation?: string | null | undefined;
6413
+ annotation?: Record<string, string | number | boolean | {
5583
6414
  type: string;
5584
6415
  filename: string;
5585
6416
  originalFilename: string;
@@ -5594,6 +6425,10 @@ export declare const EventDocument: z.ZodObject<{
5594
6425
  residentialArea?: string | null | undefined;
5595
6426
  street?: string | null | undefined;
5596
6427
  zipCode?: string | null | undefined;
6428
+ } | {
6429
+ firstname: string;
6430
+ surname: string;
6431
+ middlename?: string | null | undefined;
5597
6432
  } | {
5598
6433
  country: string;
5599
6434
  district: string;
@@ -5616,12 +6451,18 @@ export declare const EventDocument: z.ZodObject<{
5616
6451
  option: string;
5617
6452
  filename: string;
5618
6453
  originalFilename: string;
5619
- }[] | undefined> | undefined;
6454
+ }[] | [string, string] | null | undefined> | undefined;
6455
+ originalActionId?: string | undefined;
5620
6456
  }>, z.ZodObject<z.objectUtil.extendShape<{
5621
6457
  id: z.ZodString;
6458
+ transactionId: z.ZodString;
6459
+ createdByUserType: z.ZodEnum<["user", "system"]>;
5622
6460
  createdAt: z.ZodString;
5623
6461
  createdBy: z.ZodString;
5624
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6462
+ createdByRole: z.ZodString;
6463
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6464
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6465
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5625
6466
  filename: z.ZodString;
5626
6467
  originalFilename: z.ZodString;
5627
6468
  type: z.ZodString;
@@ -5734,8 +6575,20 @@ export declare const EventDocument: z.ZodObject<{
5734
6575
  addressLine2?: string | null | undefined;
5735
6576
  addressLine3?: string | null | undefined;
5736
6577
  postcodeOrZip?: string | null | undefined;
5737
- }>]>>;
5738
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6578
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
6579
+ firstname: z.ZodString;
6580
+ surname: z.ZodString;
6581
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6582
+ }, "strip", z.ZodTypeAny, {
6583
+ firstname: string;
6584
+ surname: string;
6585
+ middlename?: string | null | undefined;
6586
+ }, {
6587
+ firstname: string;
6588
+ surname: string;
6589
+ middlename?: string | null | undefined;
6590
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
6591
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5739
6592
  filename: z.ZodString;
5740
6593
  originalFilename: z.ZodString;
5741
6594
  type: z.ZodString;
@@ -5848,14 +6701,33 @@ export declare const EventDocument: z.ZodObject<{
5848
6701
  addressLine2?: string | null | undefined;
5849
6702
  addressLine3?: string | null | undefined;
5850
6703
  postcodeOrZip?: string | null | undefined;
5851
- }>]>>>;
5852
- createdAtLocation: z.ZodString;
6704
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
6705
+ firstname: z.ZodString;
6706
+ surname: z.ZodString;
6707
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6708
+ }, "strip", z.ZodTypeAny, {
6709
+ firstname: string;
6710
+ surname: string;
6711
+ middlename?: string | null | undefined;
6712
+ }, {
6713
+ firstname: string;
6714
+ surname: string;
6715
+ middlename?: string | null | undefined;
6716
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
6717
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6718
+ originalActionId: z.ZodOptional<z.ZodString>;
5853
6719
  }, {
5854
- type: z.ZodLiteral<"CUSTOM">;
6720
+ type: z.ZodLiteral<"READ">;
5855
6721
  }>, "strip", z.ZodTypeAny, {
5856
- type: "CUSTOM";
6722
+ type: "READ";
5857
6723
  id: string;
5858
- data: Record<string, string | number | boolean | {
6724
+ status: "Rejected" | "Requested" | "Accepted";
6725
+ transactionId: string;
6726
+ createdByUserType: "system" | "user";
6727
+ createdAt: string;
6728
+ createdBy: string;
6729
+ createdByRole: string;
6730
+ declaration: Record<string, string | number | boolean | {
5859
6731
  type: string;
5860
6732
  filename: string;
5861
6733
  originalFilename: string;
@@ -5870,6 +6742,10 @@ export declare const EventDocument: z.ZodObject<{
5870
6742
  residentialArea?: string | null | undefined;
5871
6743
  street?: string | null | undefined;
5872
6744
  zipCode?: string | null | undefined;
6745
+ } | {
6746
+ firstname: string;
6747
+ surname: string;
6748
+ middlename?: string | null | undefined;
5873
6749
  } | {
5874
6750
  country: string;
5875
6751
  district: string;
@@ -5892,11 +6768,10 @@ export declare const EventDocument: z.ZodObject<{
5892
6768
  option: string;
5893
6769
  filename: string;
5894
6770
  originalFilename: string;
5895
- }[] | undefined>;
5896
- createdAt: string;
5897
- createdBy: string;
5898
- createdAtLocation: string;
5899
- metadata?: Record<string, string | number | boolean | {
6771
+ }[] | [string, string] | null | undefined>;
6772
+ createdBySignature?: string | null | undefined;
6773
+ createdAtLocation?: string | null | undefined;
6774
+ annotation?: Record<string, string | number | boolean | {
5900
6775
  type: string;
5901
6776
  filename: string;
5902
6777
  originalFilename: string;
@@ -5911,6 +6786,10 @@ export declare const EventDocument: z.ZodObject<{
5911
6786
  residentialArea?: string | null | undefined;
5912
6787
  street?: string | null | undefined;
5913
6788
  zipCode?: string | null | undefined;
6789
+ } | {
6790
+ firstname: string;
6791
+ surname: string;
6792
+ middlename?: string | null | undefined;
5914
6793
  } | {
5915
6794
  country: string;
5916
6795
  district: string;
@@ -5933,11 +6812,18 @@ export declare const EventDocument: z.ZodObject<{
5933
6812
  option: string;
5934
6813
  filename: string;
5935
6814
  originalFilename: string;
5936
- }[] | undefined> | undefined;
6815
+ }[] | [string, string] | null | undefined> | undefined;
6816
+ originalActionId?: string | undefined;
5937
6817
  }, {
5938
- type: "CUSTOM";
6818
+ type: "READ";
5939
6819
  id: string;
5940
- data: Record<string, string | number | boolean | {
6820
+ status: "Rejected" | "Requested" | "Accepted";
6821
+ transactionId: string;
6822
+ createdByUserType: "system" | "user";
6823
+ createdAt: string;
6824
+ createdBy: string;
6825
+ createdByRole: string;
6826
+ declaration: Record<string, string | number | boolean | {
5941
6827
  type: string;
5942
6828
  filename: string;
5943
6829
  originalFilename: string;
@@ -5952,6 +6838,10 @@ export declare const EventDocument: z.ZodObject<{
5952
6838
  residentialArea?: string | null | undefined;
5953
6839
  street?: string | null | undefined;
5954
6840
  zipCode?: string | null | undefined;
6841
+ } | {
6842
+ firstname: string;
6843
+ surname: string;
6844
+ middlename?: string | null | undefined;
5955
6845
  } | {
5956
6846
  country: string;
5957
6847
  district: string;
@@ -5974,11 +6864,10 @@ export declare const EventDocument: z.ZodObject<{
5974
6864
  option: string;
5975
6865
  filename: string;
5976
6866
  originalFilename: string;
5977
- }[] | undefined>;
5978
- createdAt: string;
5979
- createdBy: string;
5980
- createdAtLocation: string;
5981
- metadata?: Record<string, string | number | boolean | {
6867
+ }[] | [string, string] | null | undefined>;
6868
+ createdBySignature?: string | null | undefined;
6869
+ createdAtLocation?: string | null | undefined;
6870
+ annotation?: Record<string, string | number | boolean | {
5982
6871
  type: string;
5983
6872
  filename: string;
5984
6873
  originalFilename: string;
@@ -5993,6 +6882,10 @@ export declare const EventDocument: z.ZodObject<{
5993
6882
  residentialArea?: string | null | undefined;
5994
6883
  street?: string | null | undefined;
5995
6884
  zipCode?: string | null | undefined;
6885
+ } | {
6886
+ firstname: string;
6887
+ surname: string;
6888
+ middlename?: string | null | undefined;
5996
6889
  } | {
5997
6890
  country: string;
5998
6891
  district: string;
@@ -6015,41 +6908,111 @@ export declare const EventDocument: z.ZodObject<{
6015
6908
  option: string;
6016
6909
  filename: string;
6017
6910
  originalFilename: string;
6018
- }[] | undefined> | undefined;
6019
- }>]>, "many">;
6020
- trackingId: z.ZodString;
6021
- }, "strip", z.ZodTypeAny, {
6022
- type: string;
6023
- id: string;
6024
- createdAt: string;
6025
- trackingId: string;
6026
- updatedAt: string;
6027
- actions: ({
6028
- type: "ASSIGN";
6029
- id: string;
6030
- data: Record<string, string | number | boolean | {
6911
+ }[] | [string, string] | null | undefined> | undefined;
6912
+ originalActionId?: string | undefined;
6913
+ }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
6914
+ id: z.ZodString;
6915
+ transactionId: z.ZodString;
6916
+ createdByUserType: z.ZodEnum<["user", "system"]>;
6917
+ createdAt: z.ZodString;
6918
+ createdBy: z.ZodString;
6919
+ createdByRole: z.ZodString;
6920
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6921
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6922
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6923
+ filename: z.ZodString;
6924
+ originalFilename: z.ZodString;
6925
+ type: z.ZodString;
6926
+ }, "strip", z.ZodTypeAny, {
6031
6927
  type: string;
6032
6928
  filename: string;
6033
6929
  originalFilename: string;
6034
- } | {
6035
- country: string;
6036
- district: string;
6037
- addressType: "DOMESTIC";
6038
- province: string;
6039
- urbanOrRural: "URBAN";
6040
- number?: string | null | undefined;
6041
- town?: string | null | undefined;
6042
- residentialArea?: string | null | undefined;
6043
- street?: string | null | undefined;
6044
- zipCode?: string | null | undefined;
6045
- } | {
6046
- country: string;
6930
+ }, {
6931
+ type: string;
6932
+ filename: string;
6933
+ originalFilename: string;
6934
+ }>, z.ZodArray<z.ZodObject<{
6935
+ filename: z.ZodString;
6936
+ originalFilename: z.ZodString;
6937
+ type: z.ZodString;
6938
+ option: z.ZodString;
6939
+ }, "strip", z.ZodTypeAny, {
6940
+ type: string;
6941
+ option: string;
6942
+ filename: string;
6943
+ originalFilename: string;
6944
+ }, {
6945
+ type: string;
6946
+ option: string;
6947
+ filename: string;
6948
+ originalFilename: string;
6949
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
6950
+ country: z.ZodString;
6951
+ addressType: z.ZodLiteral<"DOMESTIC">;
6952
+ province: z.ZodString;
6953
+ district: z.ZodString;
6954
+ }, {
6955
+ urbanOrRural: z.ZodLiteral<"URBAN">;
6956
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6957
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6958
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6959
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6960
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6961
+ }>, "strip", z.ZodTypeAny, {
6962
+ country: string;
6963
+ district: string;
6964
+ addressType: "DOMESTIC";
6965
+ province: string;
6966
+ urbanOrRural: "URBAN";
6967
+ number?: string | null | undefined;
6968
+ town?: string | null | undefined;
6969
+ residentialArea?: string | null | undefined;
6970
+ street?: string | null | undefined;
6971
+ zipCode?: string | null | undefined;
6972
+ }, {
6973
+ country: string;
6974
+ district: string;
6975
+ addressType: "DOMESTIC";
6976
+ province: string;
6977
+ urbanOrRural: "URBAN";
6978
+ number?: string | null | undefined;
6979
+ town?: string | null | undefined;
6980
+ residentialArea?: string | null | undefined;
6981
+ street?: string | null | undefined;
6982
+ zipCode?: string | null | undefined;
6983
+ }>, z.ZodObject<z.objectUtil.extendShape<{
6984
+ country: z.ZodString;
6985
+ addressType: z.ZodLiteral<"DOMESTIC">;
6986
+ province: z.ZodString;
6987
+ district: z.ZodString;
6988
+ }, {
6989
+ urbanOrRural: z.ZodLiteral<"RURAL">;
6990
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6991
+ }>, "strip", z.ZodTypeAny, {
6992
+ country: string;
6047
6993
  district: string;
6048
6994
  addressType: "DOMESTIC";
6049
6995
  province: string;
6050
6996
  urbanOrRural: "RURAL";
6051
6997
  village?: string | null | undefined;
6052
- } | {
6998
+ }, {
6999
+ country: string;
7000
+ district: string;
7001
+ addressType: "DOMESTIC";
7002
+ province: string;
7003
+ urbanOrRural: "RURAL";
7004
+ village?: string | null | undefined;
7005
+ }>, z.ZodUndefined, z.ZodObject<{
7006
+ country: z.ZodString;
7007
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
7008
+ state: z.ZodString;
7009
+ district2: z.ZodString;
7010
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7011
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7012
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7013
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7014
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7015
+ }, "strip", z.ZodTypeAny, {
6053
7016
  country: string;
6054
7017
  state: string;
6055
7018
  addressType: "INTERNATIONAL";
@@ -6059,17 +7022,246 @@ export declare const EventDocument: z.ZodObject<{
6059
7022
  addressLine2?: string | null | undefined;
6060
7023
  addressLine3?: string | null | undefined;
6061
7024
  postcodeOrZip?: string | null | undefined;
6062
- } | {
7025
+ }, {
7026
+ country: string;
7027
+ state: string;
7028
+ addressType: "INTERNATIONAL";
7029
+ district2: string;
7030
+ cityOrTown?: string | null | undefined;
7031
+ addressLine1?: string | null | undefined;
7032
+ addressLine2?: string | null | undefined;
7033
+ addressLine3?: string | null | undefined;
7034
+ postcodeOrZip?: string | null | undefined;
7035
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
7036
+ firstname: z.ZodString;
7037
+ surname: z.ZodString;
7038
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7039
+ }, "strip", z.ZodTypeAny, {
7040
+ firstname: string;
7041
+ surname: string;
7042
+ middlename?: string | null | undefined;
7043
+ }, {
7044
+ firstname: string;
7045
+ surname: string;
7046
+ middlename?: string | null | undefined;
7047
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
7048
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7049
+ filename: z.ZodString;
7050
+ originalFilename: z.ZodString;
7051
+ type: z.ZodString;
7052
+ }, "strip", z.ZodTypeAny, {
7053
+ type: string;
7054
+ filename: string;
7055
+ originalFilename: string;
7056
+ }, {
7057
+ type: string;
7058
+ filename: string;
7059
+ originalFilename: string;
7060
+ }>, z.ZodArray<z.ZodObject<{
7061
+ filename: z.ZodString;
7062
+ originalFilename: z.ZodString;
7063
+ type: z.ZodString;
7064
+ option: z.ZodString;
7065
+ }, "strip", z.ZodTypeAny, {
6063
7066
  type: string;
6064
7067
  option: string;
6065
7068
  filename: string;
6066
7069
  originalFilename: string;
6067
- }[] | undefined>;
7070
+ }, {
7071
+ type: string;
7072
+ option: string;
7073
+ filename: string;
7074
+ originalFilename: string;
7075
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
7076
+ country: z.ZodString;
7077
+ addressType: z.ZodLiteral<"DOMESTIC">;
7078
+ province: z.ZodString;
7079
+ district: z.ZodString;
7080
+ }, {
7081
+ urbanOrRural: z.ZodLiteral<"URBAN">;
7082
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7083
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7084
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7085
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7086
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7087
+ }>, "strip", z.ZodTypeAny, {
7088
+ country: string;
7089
+ district: string;
7090
+ addressType: "DOMESTIC";
7091
+ province: string;
7092
+ urbanOrRural: "URBAN";
7093
+ number?: string | null | undefined;
7094
+ town?: string | null | undefined;
7095
+ residentialArea?: string | null | undefined;
7096
+ street?: string | null | undefined;
7097
+ zipCode?: string | null | undefined;
7098
+ }, {
7099
+ country: string;
7100
+ district: string;
7101
+ addressType: "DOMESTIC";
7102
+ province: string;
7103
+ urbanOrRural: "URBAN";
7104
+ number?: string | null | undefined;
7105
+ town?: string | null | undefined;
7106
+ residentialArea?: string | null | undefined;
7107
+ street?: string | null | undefined;
7108
+ zipCode?: string | null | undefined;
7109
+ }>, z.ZodObject<z.objectUtil.extendShape<{
7110
+ country: z.ZodString;
7111
+ addressType: z.ZodLiteral<"DOMESTIC">;
7112
+ province: z.ZodString;
7113
+ district: z.ZodString;
7114
+ }, {
7115
+ urbanOrRural: z.ZodLiteral<"RURAL">;
7116
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7117
+ }>, "strip", z.ZodTypeAny, {
7118
+ country: string;
7119
+ district: string;
7120
+ addressType: "DOMESTIC";
7121
+ province: string;
7122
+ urbanOrRural: "RURAL";
7123
+ village?: string | null | undefined;
7124
+ }, {
7125
+ country: string;
7126
+ district: string;
7127
+ addressType: "DOMESTIC";
7128
+ province: string;
7129
+ urbanOrRural: "RURAL";
7130
+ village?: string | null | undefined;
7131
+ }>, z.ZodUndefined, z.ZodObject<{
7132
+ country: z.ZodString;
7133
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
7134
+ state: z.ZodString;
7135
+ district2: z.ZodString;
7136
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7137
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7138
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7139
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7140
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7141
+ }, "strip", z.ZodTypeAny, {
7142
+ country: string;
7143
+ state: string;
7144
+ addressType: "INTERNATIONAL";
7145
+ district2: string;
7146
+ cityOrTown?: string | null | undefined;
7147
+ addressLine1?: string | null | undefined;
7148
+ addressLine2?: string | null | undefined;
7149
+ addressLine3?: string | null | undefined;
7150
+ postcodeOrZip?: string | null | undefined;
7151
+ }, {
7152
+ country: string;
7153
+ state: string;
7154
+ addressType: "INTERNATIONAL";
7155
+ district2: string;
7156
+ cityOrTown?: string | null | undefined;
7157
+ addressLine1?: string | null | undefined;
7158
+ addressLine2?: string | null | undefined;
7159
+ addressLine3?: string | null | undefined;
7160
+ postcodeOrZip?: string | null | undefined;
7161
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
7162
+ firstname: z.ZodString;
7163
+ surname: z.ZodString;
7164
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7165
+ }, "strip", z.ZodTypeAny, {
7166
+ firstname: string;
7167
+ surname: string;
7168
+ middlename?: string | null | undefined;
7169
+ }, {
7170
+ firstname: string;
7171
+ surname: string;
7172
+ middlename?: string | null | undefined;
7173
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
7174
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
7175
+ originalActionId: z.ZodOptional<z.ZodString>;
7176
+ }, "declaration" | "annotation">, {
7177
+ type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
7178
+ status: z.ZodLiteral<"Rejected">;
7179
+ }>, "strip", z.ZodTypeAny, {
7180
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7181
+ id: string;
7182
+ status: "Rejected";
7183
+ transactionId: string;
7184
+ createdByUserType: "system" | "user";
7185
+ createdAt: string;
7186
+ createdBy: string;
7187
+ createdByRole: string;
7188
+ createdBySignature?: string | null | undefined;
7189
+ createdAtLocation?: string | null | undefined;
7190
+ originalActionId?: string | undefined;
7191
+ }, {
7192
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7193
+ id: string;
7194
+ status: "Rejected";
7195
+ transactionId: string;
7196
+ createdByUserType: "system" | "user";
7197
+ createdAt: string;
7198
+ createdBy: string;
7199
+ createdByRole: string;
7200
+ createdBySignature?: string | null | undefined;
7201
+ createdAtLocation?: string | null | undefined;
7202
+ originalActionId?: string | undefined;
7203
+ }>]>, "many">;
7204
+ trackingId: z.ZodString;
7205
+ }, "strip", z.ZodTypeAny, {
7206
+ type: string;
7207
+ id: string;
7208
+ createdAt: string;
7209
+ updatedAt: string;
7210
+ actions: ({
7211
+ type: "ASSIGN";
7212
+ id: string;
7213
+ status: "Rejected" | "Requested" | "Accepted";
7214
+ transactionId: string;
7215
+ createdByUserType: "system" | "user";
6068
7216
  createdAt: string;
6069
7217
  createdBy: string;
6070
- createdAtLocation: string;
7218
+ createdByRole: string;
7219
+ declaration: Record<string, string | number | boolean | {
7220
+ type: string;
7221
+ filename: string;
7222
+ originalFilename: string;
7223
+ } | {
7224
+ country: string;
7225
+ district: string;
7226
+ addressType: "DOMESTIC";
7227
+ province: string;
7228
+ urbanOrRural: "URBAN";
7229
+ number?: string | null | undefined;
7230
+ town?: string | null | undefined;
7231
+ residentialArea?: string | null | undefined;
7232
+ street?: string | null | undefined;
7233
+ zipCode?: string | null | undefined;
7234
+ } | {
7235
+ firstname: string;
7236
+ surname: string;
7237
+ middlename?: string | null | undefined;
7238
+ } | {
7239
+ country: string;
7240
+ district: string;
7241
+ addressType: "DOMESTIC";
7242
+ province: string;
7243
+ urbanOrRural: "RURAL";
7244
+ village?: string | null | undefined;
7245
+ } | {
7246
+ country: string;
7247
+ state: string;
7248
+ addressType: "INTERNATIONAL";
7249
+ district2: string;
7250
+ cityOrTown?: string | null | undefined;
7251
+ addressLine1?: string | null | undefined;
7252
+ addressLine2?: string | null | undefined;
7253
+ addressLine3?: string | null | undefined;
7254
+ postcodeOrZip?: string | null | undefined;
7255
+ } | {
7256
+ type: string;
7257
+ option: string;
7258
+ filename: string;
7259
+ originalFilename: string;
7260
+ }[] | [string, string] | null | undefined>;
6071
7261
  assignedTo: string;
6072
- metadata?: Record<string, string | number | boolean | {
7262
+ createdBySignature?: string | null | undefined;
7263
+ createdAtLocation?: string | null | undefined;
7264
+ annotation?: Record<string, string | number | boolean | {
6073
7265
  type: string;
6074
7266
  filename: string;
6075
7267
  originalFilename: string;
@@ -6084,6 +7276,10 @@ export declare const EventDocument: z.ZodObject<{
6084
7276
  residentialArea?: string | null | undefined;
6085
7277
  street?: string | null | undefined;
6086
7278
  zipCode?: string | null | undefined;
7279
+ } | {
7280
+ firstname: string;
7281
+ surname: string;
7282
+ middlename?: string | null | undefined;
6087
7283
  } | {
6088
7284
  country: string;
6089
7285
  district: string;
@@ -6106,11 +7302,18 @@ export declare const EventDocument: z.ZodObject<{
6106
7302
  option: string;
6107
7303
  filename: string;
6108
7304
  originalFilename: string;
6109
- }[] | undefined> | undefined;
7305
+ }[] | [string, string] | null | undefined> | undefined;
7306
+ originalActionId?: string | undefined;
6110
7307
  } | {
6111
7308
  type: "UNASSIGN";
6112
7309
  id: string;
6113
- data: Record<string, string | number | boolean | {
7310
+ status: "Rejected" | "Requested" | "Accepted";
7311
+ transactionId: string;
7312
+ createdByUserType: "system" | "user";
7313
+ createdAt: string;
7314
+ createdBy: string;
7315
+ createdByRole: string;
7316
+ declaration: Record<string, string | number | boolean | {
6114
7317
  type: string;
6115
7318
  filename: string;
6116
7319
  originalFilename: string;
@@ -6125,6 +7328,10 @@ export declare const EventDocument: z.ZodObject<{
6125
7328
  residentialArea?: string | null | undefined;
6126
7329
  street?: string | null | undefined;
6127
7330
  zipCode?: string | null | undefined;
7331
+ } | {
7332
+ firstname: string;
7333
+ surname: string;
7334
+ middlename?: string | null | undefined;
6128
7335
  } | {
6129
7336
  country: string;
6130
7337
  district: string;
@@ -6147,11 +7354,11 @@ export declare const EventDocument: z.ZodObject<{
6147
7354
  option: string;
6148
7355
  filename: string;
6149
7356
  originalFilename: string;
6150
- }[] | undefined>;
6151
- createdAt: string;
6152
- createdBy: string;
6153
- createdAtLocation: string;
6154
- metadata?: Record<string, string | number | boolean | {
7357
+ }[] | [string, string] | null | undefined>;
7358
+ assignedTo: null;
7359
+ createdBySignature?: string | null | undefined;
7360
+ createdAtLocation?: string | null | undefined;
7361
+ annotation?: Record<string, string | number | boolean | {
6155
7362
  type: string;
6156
7363
  filename: string;
6157
7364
  originalFilename: string;
@@ -6166,6 +7373,10 @@ export declare const EventDocument: z.ZodObject<{
6166
7373
  residentialArea?: string | null | undefined;
6167
7374
  street?: string | null | undefined;
6168
7375
  zipCode?: string | null | undefined;
7376
+ } | {
7377
+ firstname: string;
7378
+ surname: string;
7379
+ middlename?: string | null | undefined;
6169
7380
  } | {
6170
7381
  country: string;
6171
7382
  district: string;
@@ -6188,11 +7399,18 @@ export declare const EventDocument: z.ZodObject<{
6188
7399
  option: string;
6189
7400
  filename: string;
6190
7401
  originalFilename: string;
6191
- }[] | undefined> | undefined;
7402
+ }[] | [string, string] | null | undefined> | undefined;
7403
+ originalActionId?: string | undefined;
6192
7404
  } | {
6193
7405
  type: "REGISTER";
6194
7406
  id: string;
6195
- data: Record<string, string | number | boolean | {
7407
+ status: "Rejected" | "Requested" | "Accepted";
7408
+ transactionId: string;
7409
+ createdByUserType: "system" | "user";
7410
+ createdAt: string;
7411
+ createdBy: string;
7412
+ createdByRole: string;
7413
+ declaration: Record<string, string | number | boolean | {
6196
7414
  type: string;
6197
7415
  filename: string;
6198
7416
  originalFilename: string;
@@ -6207,6 +7425,10 @@ export declare const EventDocument: z.ZodObject<{
6207
7425
  residentialArea?: string | null | undefined;
6208
7426
  street?: string | null | undefined;
6209
7427
  zipCode?: string | null | undefined;
7428
+ } | {
7429
+ firstname: string;
7430
+ surname: string;
7431
+ middlename?: string | null | undefined;
6210
7432
  } | {
6211
7433
  country: string;
6212
7434
  district: string;
@@ -6229,15 +7451,10 @@ export declare const EventDocument: z.ZodObject<{
6229
7451
  option: string;
6230
7452
  filename: string;
6231
7453
  originalFilename: string;
6232
- }[] | undefined>;
6233
- createdAt: string;
6234
- createdBy: string;
6235
- createdAtLocation: string;
6236
- identifiers: {
6237
- trackingId: string;
6238
- registrationNumber: string;
6239
- };
6240
- metadata?: Record<string, string | number | boolean | {
7454
+ }[] | [string, string] | null | undefined>;
7455
+ createdBySignature?: string | null | undefined;
7456
+ createdAtLocation?: string | null | undefined;
7457
+ annotation?: Record<string, string | number | boolean | {
6241
7458
  type: string;
6242
7459
  filename: string;
6243
7460
  originalFilename: string;
@@ -6252,6 +7469,10 @@ export declare const EventDocument: z.ZodObject<{
6252
7469
  residentialArea?: string | null | undefined;
6253
7470
  street?: string | null | undefined;
6254
7471
  zipCode?: string | null | undefined;
7472
+ } | {
7473
+ firstname: string;
7474
+ surname: string;
7475
+ middlename?: string | null | undefined;
6255
7476
  } | {
6256
7477
  country: string;
6257
7478
  district: string;
@@ -6274,11 +7495,19 @@ export declare const EventDocument: z.ZodObject<{
6274
7495
  option: string;
6275
7496
  filename: string;
6276
7497
  originalFilename: string;
6277
- }[] | undefined> | undefined;
7498
+ }[] | [string, string] | null | undefined> | undefined;
7499
+ originalActionId?: string | undefined;
7500
+ registrationNumber?: string | undefined;
6278
7501
  } | {
6279
7502
  type: "DECLARE";
6280
7503
  id: string;
6281
- data: Record<string, string | number | boolean | {
7504
+ status: "Rejected" | "Requested" | "Accepted";
7505
+ transactionId: string;
7506
+ createdByUserType: "system" | "user";
7507
+ createdAt: string;
7508
+ createdBy: string;
7509
+ createdByRole: string;
7510
+ declaration: Record<string, string | number | boolean | {
6282
7511
  type: string;
6283
7512
  filename: string;
6284
7513
  originalFilename: string;
@@ -6293,6 +7522,10 @@ export declare const EventDocument: z.ZodObject<{
6293
7522
  residentialArea?: string | null | undefined;
6294
7523
  street?: string | null | undefined;
6295
7524
  zipCode?: string | null | undefined;
7525
+ } | {
7526
+ firstname: string;
7527
+ surname: string;
7528
+ middlename?: string | null | undefined;
6296
7529
  } | {
6297
7530
  country: string;
6298
7531
  district: string;
@@ -6315,11 +7548,10 @@ export declare const EventDocument: z.ZodObject<{
6315
7548
  option: string;
6316
7549
  filename: string;
6317
7550
  originalFilename: string;
6318
- }[] | undefined>;
6319
- createdAt: string;
6320
- createdBy: string;
6321
- createdAtLocation: string;
6322
- metadata?: Record<string, string | number | boolean | {
7551
+ }[] | [string, string] | null | undefined>;
7552
+ createdBySignature?: string | null | undefined;
7553
+ createdAtLocation?: string | null | undefined;
7554
+ annotation?: Record<string, string | number | boolean | {
6323
7555
  type: string;
6324
7556
  filename: string;
6325
7557
  originalFilename: string;
@@ -6334,6 +7566,10 @@ export declare const EventDocument: z.ZodObject<{
6334
7566
  residentialArea?: string | null | undefined;
6335
7567
  street?: string | null | undefined;
6336
7568
  zipCode?: string | null | undefined;
7569
+ } | {
7570
+ firstname: string;
7571
+ surname: string;
7572
+ middlename?: string | null | undefined;
6337
7573
  } | {
6338
7574
  country: string;
6339
7575
  district: string;
@@ -6356,11 +7592,18 @@ export declare const EventDocument: z.ZodObject<{
6356
7592
  option: string;
6357
7593
  filename: string;
6358
7594
  originalFilename: string;
6359
- }[] | undefined> | undefined;
7595
+ }[] | [string, string] | null | undefined> | undefined;
7596
+ originalActionId?: string | undefined;
6360
7597
  } | {
6361
7598
  type: "VALIDATE";
6362
7599
  id: string;
6363
- data: Record<string, string | number | boolean | {
7600
+ status: "Rejected" | "Requested" | "Accepted";
7601
+ transactionId: string;
7602
+ createdByUserType: "system" | "user";
7603
+ createdAt: string;
7604
+ createdBy: string;
7605
+ createdByRole: string;
7606
+ declaration: Record<string, string | number | boolean | {
6364
7607
  type: string;
6365
7608
  filename: string;
6366
7609
  originalFilename: string;
@@ -6375,6 +7618,10 @@ export declare const EventDocument: z.ZodObject<{
6375
7618
  residentialArea?: string | null | undefined;
6376
7619
  street?: string | null | undefined;
6377
7620
  zipCode?: string | null | undefined;
7621
+ } | {
7622
+ firstname: string;
7623
+ surname: string;
7624
+ middlename?: string | null | undefined;
6378
7625
  } | {
6379
7626
  country: string;
6380
7627
  district: string;
@@ -6397,11 +7644,10 @@ export declare const EventDocument: z.ZodObject<{
6397
7644
  option: string;
6398
7645
  filename: string;
6399
7646
  originalFilename: string;
6400
- }[] | undefined>;
6401
- createdAt: string;
6402
- createdBy: string;
6403
- createdAtLocation: string;
6404
- metadata?: Record<string, string | number | boolean | {
7647
+ }[] | [string, string] | null | undefined>;
7648
+ createdBySignature?: string | null | undefined;
7649
+ createdAtLocation?: string | null | undefined;
7650
+ annotation?: Record<string, string | number | boolean | {
6405
7651
  type: string;
6406
7652
  filename: string;
6407
7653
  originalFilename: string;
@@ -6416,6 +7662,10 @@ export declare const EventDocument: z.ZodObject<{
6416
7662
  residentialArea?: string | null | undefined;
6417
7663
  street?: string | null | undefined;
6418
7664
  zipCode?: string | null | undefined;
7665
+ } | {
7666
+ firstname: string;
7667
+ surname: string;
7668
+ middlename?: string | null | undefined;
6419
7669
  } | {
6420
7670
  country: string;
6421
7671
  district: string;
@@ -6438,11 +7688,22 @@ export declare const EventDocument: z.ZodObject<{
6438
7688
  option: string;
6439
7689
  filename: string;
6440
7690
  originalFilename: string;
6441
- }[] | undefined> | undefined;
7691
+ }[] | [string, string] | null | undefined> | undefined;
7692
+ originalActionId?: string | undefined;
6442
7693
  } | {
6443
7694
  type: "REJECT";
6444
7695
  id: string;
6445
- data: Record<string, string | number | boolean | {
7696
+ status: "Rejected" | "Requested" | "Accepted";
7697
+ reason: {
7698
+ message: string;
7699
+ isDuplicate?: boolean | undefined;
7700
+ };
7701
+ transactionId: string;
7702
+ createdByUserType: "system" | "user";
7703
+ createdAt: string;
7704
+ createdBy: string;
7705
+ createdByRole: string;
7706
+ declaration: Record<string, string | number | boolean | {
6446
7707
  type: string;
6447
7708
  filename: string;
6448
7709
  originalFilename: string;
@@ -6457,6 +7718,10 @@ export declare const EventDocument: z.ZodObject<{
6457
7718
  residentialArea?: string | null | undefined;
6458
7719
  street?: string | null | undefined;
6459
7720
  zipCode?: string | null | undefined;
7721
+ } | {
7722
+ firstname: string;
7723
+ surname: string;
7724
+ middlename?: string | null | undefined;
6460
7725
  } | {
6461
7726
  country: string;
6462
7727
  district: string;
@@ -6479,11 +7744,10 @@ export declare const EventDocument: z.ZodObject<{
6479
7744
  option: string;
6480
7745
  filename: string;
6481
7746
  originalFilename: string;
6482
- }[] | undefined>;
6483
- createdAt: string;
6484
- createdBy: string;
6485
- createdAtLocation: string;
6486
- metadata?: Record<string, string | number | boolean | {
7747
+ }[] | [string, string] | null | undefined>;
7748
+ createdBySignature?: string | null | undefined;
7749
+ createdAtLocation?: string | null | undefined;
7750
+ annotation?: Record<string, string | number | boolean | {
6487
7751
  type: string;
6488
7752
  filename: string;
6489
7753
  originalFilename: string;
@@ -6498,6 +7762,10 @@ export declare const EventDocument: z.ZodObject<{
6498
7762
  residentialArea?: string | null | undefined;
6499
7763
  street?: string | null | undefined;
6500
7764
  zipCode?: string | null | undefined;
7765
+ } | {
7766
+ firstname: string;
7767
+ surname: string;
7768
+ middlename?: string | null | undefined;
6501
7769
  } | {
6502
7770
  country: string;
6503
7771
  district: string;
@@ -6520,11 +7788,18 @@ export declare const EventDocument: z.ZodObject<{
6520
7788
  option: string;
6521
7789
  filename: string;
6522
7790
  originalFilename: string;
6523
- }[] | undefined> | undefined;
7791
+ }[] | [string, string] | null | undefined> | undefined;
7792
+ originalActionId?: string | undefined;
6524
7793
  } | {
6525
7794
  type: "MARKED_AS_DUPLICATE";
6526
7795
  id: string;
6527
- data: Record<string, string | number | boolean | {
7796
+ status: "Rejected" | "Requested" | "Accepted";
7797
+ transactionId: string;
7798
+ createdByUserType: "system" | "user";
7799
+ createdAt: string;
7800
+ createdBy: string;
7801
+ createdByRole: string;
7802
+ declaration: Record<string, string | number | boolean | {
6528
7803
  type: string;
6529
7804
  filename: string;
6530
7805
  originalFilename: string;
@@ -6539,6 +7814,10 @@ export declare const EventDocument: z.ZodObject<{
6539
7814
  residentialArea?: string | null | undefined;
6540
7815
  street?: string | null | undefined;
6541
7816
  zipCode?: string | null | undefined;
7817
+ } | {
7818
+ firstname: string;
7819
+ surname: string;
7820
+ middlename?: string | null | undefined;
6542
7821
  } | {
6543
7822
  country: string;
6544
7823
  district: string;
@@ -6561,11 +7840,10 @@ export declare const EventDocument: z.ZodObject<{
6561
7840
  option: string;
6562
7841
  filename: string;
6563
7842
  originalFilename: string;
6564
- }[] | undefined>;
6565
- createdAt: string;
6566
- createdBy: string;
6567
- createdAtLocation: string;
6568
- metadata?: Record<string, string | number | boolean | {
7843
+ }[] | [string, string] | null | undefined>;
7844
+ createdBySignature?: string | null | undefined;
7845
+ createdAtLocation?: string | null | undefined;
7846
+ annotation?: Record<string, string | number | boolean | {
6569
7847
  type: string;
6570
7848
  filename: string;
6571
7849
  originalFilename: string;
@@ -6580,6 +7858,10 @@ export declare const EventDocument: z.ZodObject<{
6580
7858
  residentialArea?: string | null | undefined;
6581
7859
  street?: string | null | undefined;
6582
7860
  zipCode?: string | null | undefined;
7861
+ } | {
7862
+ firstname: string;
7863
+ surname: string;
7864
+ middlename?: string | null | undefined;
6583
7865
  } | {
6584
7866
  country: string;
6585
7867
  district: string;
@@ -6602,11 +7884,22 @@ export declare const EventDocument: z.ZodObject<{
6602
7884
  option: string;
6603
7885
  filename: string;
6604
7886
  originalFilename: string;
6605
- }[] | undefined> | undefined;
7887
+ }[] | [string, string] | null | undefined> | undefined;
7888
+ originalActionId?: string | undefined;
6606
7889
  } | {
6607
7890
  type: "ARCHIVE";
6608
7891
  id: string;
6609
- data: Record<string, string | number | boolean | {
7892
+ status: "Rejected" | "Requested" | "Accepted";
7893
+ reason: {
7894
+ message: string;
7895
+ isDuplicate?: boolean | undefined;
7896
+ };
7897
+ transactionId: string;
7898
+ createdByUserType: "system" | "user";
7899
+ createdAt: string;
7900
+ createdBy: string;
7901
+ createdByRole: string;
7902
+ declaration: Record<string, string | number | boolean | {
6610
7903
  type: string;
6611
7904
  filename: string;
6612
7905
  originalFilename: string;
@@ -6621,6 +7914,10 @@ export declare const EventDocument: z.ZodObject<{
6621
7914
  residentialArea?: string | null | undefined;
6622
7915
  street?: string | null | undefined;
6623
7916
  zipCode?: string | null | undefined;
7917
+ } | {
7918
+ firstname: string;
7919
+ surname: string;
7920
+ middlename?: string | null | undefined;
6624
7921
  } | {
6625
7922
  country: string;
6626
7923
  district: string;
@@ -6643,11 +7940,10 @@ export declare const EventDocument: z.ZodObject<{
6643
7940
  option: string;
6644
7941
  filename: string;
6645
7942
  originalFilename: string;
6646
- }[] | undefined>;
6647
- createdAt: string;
6648
- createdBy: string;
6649
- createdAtLocation: string;
6650
- metadata?: Record<string, string | number | boolean | {
7943
+ }[] | [string, string] | null | undefined>;
7944
+ createdBySignature?: string | null | undefined;
7945
+ createdAtLocation?: string | null | undefined;
7946
+ annotation?: Record<string, string | number | boolean | {
6651
7947
  type: string;
6652
7948
  filename: string;
6653
7949
  originalFilename: string;
@@ -6662,6 +7958,10 @@ export declare const EventDocument: z.ZodObject<{
6662
7958
  residentialArea?: string | null | undefined;
6663
7959
  street?: string | null | undefined;
6664
7960
  zipCode?: string | null | undefined;
7961
+ } | {
7962
+ firstname: string;
7963
+ surname: string;
7964
+ middlename?: string | null | undefined;
6665
7965
  } | {
6666
7966
  country: string;
6667
7967
  district: string;
@@ -6684,11 +7984,18 @@ export declare const EventDocument: z.ZodObject<{
6684
7984
  option: string;
6685
7985
  filename: string;
6686
7986
  originalFilename: string;
6687
- }[] | undefined> | undefined;
7987
+ }[] | [string, string] | null | undefined> | undefined;
7988
+ originalActionId?: string | undefined;
6688
7989
  } | {
6689
7990
  type: "CREATE";
6690
7991
  id: string;
6691
- data: Record<string, string | number | boolean | {
7992
+ status: "Rejected" | "Requested" | "Accepted";
7993
+ transactionId: string;
7994
+ createdByUserType: "system" | "user";
7995
+ createdAt: string;
7996
+ createdBy: string;
7997
+ createdByRole: string;
7998
+ declaration: Record<string, string | number | boolean | {
6692
7999
  type: string;
6693
8000
  filename: string;
6694
8001
  originalFilename: string;
@@ -6703,6 +8010,10 @@ export declare const EventDocument: z.ZodObject<{
6703
8010
  residentialArea?: string | null | undefined;
6704
8011
  street?: string | null | undefined;
6705
8012
  zipCode?: string | null | undefined;
8013
+ } | {
8014
+ firstname: string;
8015
+ surname: string;
8016
+ middlename?: string | null | undefined;
6706
8017
  } | {
6707
8018
  country: string;
6708
8019
  district: string;
@@ -6725,11 +8036,10 @@ export declare const EventDocument: z.ZodObject<{
6725
8036
  option: string;
6726
8037
  filename: string;
6727
8038
  originalFilename: string;
6728
- }[] | undefined>;
6729
- createdAt: string;
6730
- createdBy: string;
6731
- createdAtLocation: string;
6732
- metadata?: Record<string, string | number | boolean | {
8039
+ }[] | [string, string] | null | undefined>;
8040
+ createdBySignature?: string | null | undefined;
8041
+ createdAtLocation?: string | null | undefined;
8042
+ annotation?: Record<string, string | number | boolean | {
6733
8043
  type: string;
6734
8044
  filename: string;
6735
8045
  originalFilename: string;
@@ -6744,6 +8054,10 @@ export declare const EventDocument: z.ZodObject<{
6744
8054
  residentialArea?: string | null | undefined;
6745
8055
  street?: string | null | undefined;
6746
8056
  zipCode?: string | null | undefined;
8057
+ } | {
8058
+ firstname: string;
8059
+ surname: string;
8060
+ middlename?: string | null | undefined;
6747
8061
  } | {
6748
8062
  country: string;
6749
8063
  district: string;
@@ -6766,11 +8080,18 @@ export declare const EventDocument: z.ZodObject<{
6766
8080
  option: string;
6767
8081
  filename: string;
6768
8082
  originalFilename: string;
6769
- }[] | undefined> | undefined;
8083
+ }[] | [string, string] | null | undefined> | undefined;
8084
+ originalActionId?: string | undefined;
6770
8085
  } | {
6771
8086
  type: "NOTIFY";
6772
8087
  id: string;
6773
- data: Record<string, string | number | boolean | {
8088
+ status: "Rejected" | "Requested" | "Accepted";
8089
+ transactionId: string;
8090
+ createdByUserType: "system" | "user";
8091
+ createdAt: string;
8092
+ createdBy: string;
8093
+ createdByRole: string;
8094
+ declaration: Record<string, string | number | boolean | {
6774
8095
  type: string;
6775
8096
  filename: string;
6776
8097
  originalFilename: string;
@@ -6785,6 +8106,10 @@ export declare const EventDocument: z.ZodObject<{
6785
8106
  residentialArea?: string | null | undefined;
6786
8107
  street?: string | null | undefined;
6787
8108
  zipCode?: string | null | undefined;
8109
+ } | {
8110
+ firstname: string;
8111
+ surname: string;
8112
+ middlename?: string | null | undefined;
6788
8113
  } | {
6789
8114
  country: string;
6790
8115
  district: string;
@@ -6807,11 +8132,10 @@ export declare const EventDocument: z.ZodObject<{
6807
8132
  option: string;
6808
8133
  filename: string;
6809
8134
  originalFilename: string;
6810
- }[] | undefined>;
6811
- createdAt: string;
6812
- createdBy: string;
6813
- createdAtLocation: string;
6814
- metadata?: Record<string, string | number | boolean | {
8135
+ }[] | [string, string] | null | undefined>;
8136
+ createdBySignature?: string | null | undefined;
8137
+ createdAtLocation?: string | null | undefined;
8138
+ annotation?: Record<string, string | number | boolean | {
6815
8139
  type: string;
6816
8140
  filename: string;
6817
8141
  originalFilename: string;
@@ -6826,6 +8150,10 @@ export declare const EventDocument: z.ZodObject<{
6826
8150
  residentialArea?: string | null | undefined;
6827
8151
  street?: string | null | undefined;
6828
8152
  zipCode?: string | null | undefined;
8153
+ } | {
8154
+ firstname: string;
8155
+ surname: string;
8156
+ middlename?: string | null | undefined;
6829
8157
  } | {
6830
8158
  country: string;
6831
8159
  district: string;
@@ -6848,11 +8176,18 @@ export declare const EventDocument: z.ZodObject<{
6848
8176
  option: string;
6849
8177
  filename: string;
6850
8178
  originalFilename: string;
6851
- }[] | undefined> | undefined;
8179
+ }[] | [string, string] | null | undefined> | undefined;
8180
+ originalActionId?: string | undefined;
6852
8181
  } | {
6853
8182
  type: "PRINT_CERTIFICATE";
6854
8183
  id: string;
6855
- data: Record<string, string | number | boolean | {
8184
+ status: "Rejected" | "Requested" | "Accepted";
8185
+ transactionId: string;
8186
+ createdByUserType: "system" | "user";
8187
+ createdAt: string;
8188
+ createdBy: string;
8189
+ createdByRole: string;
8190
+ declaration: Record<string, string | number | boolean | {
6856
8191
  type: string;
6857
8192
  filename: string;
6858
8193
  originalFilename: string;
@@ -6867,6 +8202,10 @@ export declare const EventDocument: z.ZodObject<{
6867
8202
  residentialArea?: string | null | undefined;
6868
8203
  street?: string | null | undefined;
6869
8204
  zipCode?: string | null | undefined;
8205
+ } | {
8206
+ firstname: string;
8207
+ surname: string;
8208
+ middlename?: string | null | undefined;
6870
8209
  } | {
6871
8210
  country: string;
6872
8211
  district: string;
@@ -6889,11 +8228,10 @@ export declare const EventDocument: z.ZodObject<{
6889
8228
  option: string;
6890
8229
  filename: string;
6891
8230
  originalFilename: string;
6892
- }[] | undefined>;
6893
- createdAt: string;
6894
- createdBy: string;
6895
- createdAtLocation: string;
6896
- metadata?: Record<string, string | number | boolean | {
8231
+ }[] | [string, string] | null | undefined>;
8232
+ createdBySignature?: string | null | undefined;
8233
+ createdAtLocation?: string | null | undefined;
8234
+ annotation?: Record<string, string | number | boolean | {
6897
8235
  type: string;
6898
8236
  filename: string;
6899
8237
  originalFilename: string;
@@ -6908,6 +8246,10 @@ export declare const EventDocument: z.ZodObject<{
6908
8246
  residentialArea?: string | null | undefined;
6909
8247
  street?: string | null | undefined;
6910
8248
  zipCode?: string | null | undefined;
8249
+ } | {
8250
+ firstname: string;
8251
+ surname: string;
8252
+ middlename?: string | null | undefined;
6911
8253
  } | {
6912
8254
  country: string;
6913
8255
  district: string;
@@ -6930,11 +8272,18 @@ export declare const EventDocument: z.ZodObject<{
6930
8272
  option: string;
6931
8273
  filename: string;
6932
8274
  originalFilename: string;
6933
- }[] | undefined> | undefined;
8275
+ }[] | [string, string] | null | undefined> | undefined;
8276
+ originalActionId?: string | undefined;
6934
8277
  } | {
6935
8278
  type: "REQUEST_CORRECTION";
6936
8279
  id: string;
6937
- data: Record<string, string | number | boolean | {
8280
+ status: "Rejected" | "Requested" | "Accepted";
8281
+ transactionId: string;
8282
+ createdByUserType: "system" | "user";
8283
+ createdAt: string;
8284
+ createdBy: string;
8285
+ createdByRole: string;
8286
+ declaration: Record<string, string | number | boolean | {
6938
8287
  type: string;
6939
8288
  filename: string;
6940
8289
  originalFilename: string;
@@ -6949,6 +8298,10 @@ export declare const EventDocument: z.ZodObject<{
6949
8298
  residentialArea?: string | null | undefined;
6950
8299
  street?: string | null | undefined;
6951
8300
  zipCode?: string | null | undefined;
8301
+ } | {
8302
+ firstname: string;
8303
+ surname: string;
8304
+ middlename?: string | null | undefined;
6952
8305
  } | {
6953
8306
  country: string;
6954
8307
  district: string;
@@ -6971,11 +8324,10 @@ export declare const EventDocument: z.ZodObject<{
6971
8324
  option: string;
6972
8325
  filename: string;
6973
8326
  originalFilename: string;
6974
- }[] | undefined>;
6975
- createdAt: string;
6976
- createdBy: string;
6977
- createdAtLocation: string;
6978
- metadata?: Record<string, string | number | boolean | {
8327
+ }[] | [string, string] | null | undefined>;
8328
+ createdBySignature?: string | null | undefined;
8329
+ createdAtLocation?: string | null | undefined;
8330
+ annotation?: Record<string, string | number | boolean | {
6979
8331
  type: string;
6980
8332
  filename: string;
6981
8333
  originalFilename: string;
@@ -6990,6 +8342,10 @@ export declare const EventDocument: z.ZodObject<{
6990
8342
  residentialArea?: string | null | undefined;
6991
8343
  street?: string | null | undefined;
6992
8344
  zipCode?: string | null | undefined;
8345
+ } | {
8346
+ firstname: string;
8347
+ surname: string;
8348
+ middlename?: string | null | undefined;
6993
8349
  } | {
6994
8350
  country: string;
6995
8351
  district: string;
@@ -7012,11 +8368,18 @@ export declare const EventDocument: z.ZodObject<{
7012
8368
  option: string;
7013
8369
  filename: string;
7014
8370
  originalFilename: string;
7015
- }[] | undefined> | undefined;
8371
+ }[] | [string, string] | null | undefined> | undefined;
8372
+ originalActionId?: string | undefined;
7016
8373
  } | {
7017
8374
  type: "APPROVE_CORRECTION";
7018
8375
  id: string;
7019
- data: Record<string, string | number | boolean | {
8376
+ status: "Rejected" | "Requested" | "Accepted";
8377
+ transactionId: string;
8378
+ createdByUserType: "system" | "user";
8379
+ createdAt: string;
8380
+ createdBy: string;
8381
+ createdByRole: string;
8382
+ declaration: Record<string, string | number | boolean | {
7020
8383
  type: string;
7021
8384
  filename: string;
7022
8385
  originalFilename: string;
@@ -7031,6 +8394,10 @@ export declare const EventDocument: z.ZodObject<{
7031
8394
  residentialArea?: string | null | undefined;
7032
8395
  street?: string | null | undefined;
7033
8396
  zipCode?: string | null | undefined;
8397
+ } | {
8398
+ firstname: string;
8399
+ surname: string;
8400
+ middlename?: string | null | undefined;
7034
8401
  } | {
7035
8402
  country: string;
7036
8403
  district: string;
@@ -7053,12 +8420,11 @@ export declare const EventDocument: z.ZodObject<{
7053
8420
  option: string;
7054
8421
  filename: string;
7055
8422
  originalFilename: string;
7056
- }[] | undefined>;
7057
- createdAt: string;
7058
- createdBy: string;
7059
- createdAtLocation: string;
8423
+ }[] | [string, string] | null | undefined>;
7060
8424
  requestId: string;
7061
- metadata?: Record<string, string | number | boolean | {
8425
+ createdBySignature?: string | null | undefined;
8426
+ createdAtLocation?: string | null | undefined;
8427
+ annotation?: Record<string, string | number | boolean | {
7062
8428
  type: string;
7063
8429
  filename: string;
7064
8430
  originalFilename: string;
@@ -7073,6 +8439,10 @@ export declare const EventDocument: z.ZodObject<{
7073
8439
  residentialArea?: string | null | undefined;
7074
8440
  street?: string | null | undefined;
7075
8441
  zipCode?: string | null | undefined;
8442
+ } | {
8443
+ firstname: string;
8444
+ surname: string;
8445
+ middlename?: string | null | undefined;
7076
8446
  } | {
7077
8447
  country: string;
7078
8448
  district: string;
@@ -7095,11 +8465,18 @@ export declare const EventDocument: z.ZodObject<{
7095
8465
  option: string;
7096
8466
  filename: string;
7097
8467
  originalFilename: string;
7098
- }[] | undefined> | undefined;
8468
+ }[] | [string, string] | null | undefined> | undefined;
8469
+ originalActionId?: string | undefined;
7099
8470
  } | {
7100
8471
  type: "REJECT_CORRECTION";
7101
8472
  id: string;
7102
- data: Record<string, string | number | boolean | {
8473
+ status: "Rejected" | "Requested" | "Accepted";
8474
+ transactionId: string;
8475
+ createdByUserType: "system" | "user";
8476
+ createdAt: string;
8477
+ createdBy: string;
8478
+ createdByRole: string;
8479
+ declaration: Record<string, string | number | boolean | {
7103
8480
  type: string;
7104
8481
  filename: string;
7105
8482
  originalFilename: string;
@@ -7114,6 +8491,10 @@ export declare const EventDocument: z.ZodObject<{
7114
8491
  residentialArea?: string | null | undefined;
7115
8492
  street?: string | null | undefined;
7116
8493
  zipCode?: string | null | undefined;
8494
+ } | {
8495
+ firstname: string;
8496
+ surname: string;
8497
+ middlename?: string | null | undefined;
7117
8498
  } | {
7118
8499
  country: string;
7119
8500
  district: string;
@@ -7136,12 +8517,11 @@ export declare const EventDocument: z.ZodObject<{
7136
8517
  option: string;
7137
8518
  filename: string;
7138
8519
  originalFilename: string;
7139
- }[] | undefined>;
7140
- createdAt: string;
7141
- createdBy: string;
7142
- createdAtLocation: string;
8520
+ }[] | [string, string] | null | undefined>;
7143
8521
  requestId: string;
7144
- metadata?: Record<string, string | number | boolean | {
8522
+ createdBySignature?: string | null | undefined;
8523
+ createdAtLocation?: string | null | undefined;
8524
+ annotation?: Record<string, string | number | boolean | {
7145
8525
  type: string;
7146
8526
  filename: string;
7147
8527
  originalFilename: string;
@@ -7156,6 +8536,10 @@ export declare const EventDocument: z.ZodObject<{
7156
8536
  residentialArea?: string | null | undefined;
7157
8537
  street?: string | null | undefined;
7158
8538
  zipCode?: string | null | undefined;
8539
+ } | {
8540
+ firstname: string;
8541
+ surname: string;
8542
+ middlename?: string | null | undefined;
7159
8543
  } | {
7160
8544
  country: string;
7161
8545
  district: string;
@@ -7178,11 +8562,18 @@ export declare const EventDocument: z.ZodObject<{
7178
8562
  option: string;
7179
8563
  filename: string;
7180
8564
  originalFilename: string;
7181
- }[] | undefined> | undefined;
8565
+ }[] | [string, string] | null | undefined> | undefined;
8566
+ originalActionId?: string | undefined;
7182
8567
  } | {
7183
- type: "CUSTOM";
8568
+ type: "READ";
7184
8569
  id: string;
7185
- data: Record<string, string | number | boolean | {
8570
+ status: "Rejected" | "Requested" | "Accepted";
8571
+ transactionId: string;
8572
+ createdByUserType: "system" | "user";
8573
+ createdAt: string;
8574
+ createdBy: string;
8575
+ createdByRole: string;
8576
+ declaration: Record<string, string | number | boolean | {
7186
8577
  type: string;
7187
8578
  filename: string;
7188
8579
  originalFilename: string;
@@ -7197,6 +8588,10 @@ export declare const EventDocument: z.ZodObject<{
7197
8588
  residentialArea?: string | null | undefined;
7198
8589
  street?: string | null | undefined;
7199
8590
  zipCode?: string | null | undefined;
8591
+ } | {
8592
+ firstname: string;
8593
+ surname: string;
8594
+ middlename?: string | null | undefined;
7200
8595
  } | {
7201
8596
  country: string;
7202
8597
  district: string;
@@ -7219,11 +8614,10 @@ export declare const EventDocument: z.ZodObject<{
7219
8614
  option: string;
7220
8615
  filename: string;
7221
8616
  originalFilename: string;
7222
- }[] | undefined>;
7223
- createdAt: string;
7224
- createdBy: string;
7225
- createdAtLocation: string;
7226
- metadata?: Record<string, string | number | boolean | {
8617
+ }[] | [string, string] | null | undefined>;
8618
+ createdBySignature?: string | null | undefined;
8619
+ createdAtLocation?: string | null | undefined;
8620
+ annotation?: Record<string, string | number | boolean | {
7227
8621
  type: string;
7228
8622
  filename: string;
7229
8623
  originalFilename: string;
@@ -7238,6 +8632,10 @@ export declare const EventDocument: z.ZodObject<{
7238
8632
  residentialArea?: string | null | undefined;
7239
8633
  street?: string | null | undefined;
7240
8634
  zipCode?: string | null | undefined;
8635
+ } | {
8636
+ firstname: string;
8637
+ surname: string;
8638
+ middlename?: string | null | undefined;
7241
8639
  } | {
7242
8640
  country: string;
7243
8641
  district: string;
@@ -7260,18 +8658,37 @@ export declare const EventDocument: z.ZodObject<{
7260
8658
  option: string;
7261
8659
  filename: string;
7262
8660
  originalFilename: string;
7263
- }[] | undefined> | undefined;
8661
+ }[] | [string, string] | null | undefined> | undefined;
8662
+ originalActionId?: string | undefined;
8663
+ } | {
8664
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
8665
+ id: string;
8666
+ status: "Rejected";
8667
+ transactionId: string;
8668
+ createdByUserType: "system" | "user";
8669
+ createdAt: string;
8670
+ createdBy: string;
8671
+ createdByRole: string;
8672
+ createdBySignature?: string | null | undefined;
8673
+ createdAtLocation?: string | null | undefined;
8674
+ originalActionId?: string | undefined;
7264
8675
  })[];
8676
+ trackingId: string;
7265
8677
  }, {
7266
8678
  type: string;
7267
8679
  id: string;
7268
8680
  createdAt: string;
7269
- trackingId: string;
7270
8681
  updatedAt: string;
7271
8682
  actions: ({
7272
8683
  type: "ASSIGN";
7273
8684
  id: string;
7274
- data: Record<string, string | number | boolean | {
8685
+ status: "Rejected" | "Requested" | "Accepted";
8686
+ transactionId: string;
8687
+ createdByUserType: "system" | "user";
8688
+ createdAt: string;
8689
+ createdBy: string;
8690
+ createdByRole: string;
8691
+ declaration: Record<string, string | number | boolean | {
7275
8692
  type: string;
7276
8693
  filename: string;
7277
8694
  originalFilename: string;
@@ -7286,6 +8703,10 @@ export declare const EventDocument: z.ZodObject<{
7286
8703
  residentialArea?: string | null | undefined;
7287
8704
  street?: string | null | undefined;
7288
8705
  zipCode?: string | null | undefined;
8706
+ } | {
8707
+ firstname: string;
8708
+ surname: string;
8709
+ middlename?: string | null | undefined;
7289
8710
  } | {
7290
8711
  country: string;
7291
8712
  district: string;
@@ -7308,12 +8729,11 @@ export declare const EventDocument: z.ZodObject<{
7308
8729
  option: string;
7309
8730
  filename: string;
7310
8731
  originalFilename: string;
7311
- }[] | undefined>;
7312
- createdAt: string;
7313
- createdBy: string;
7314
- createdAtLocation: string;
8732
+ }[] | [string, string] | null | undefined>;
7315
8733
  assignedTo: string;
7316
- metadata?: Record<string, string | number | boolean | {
8734
+ createdBySignature?: string | null | undefined;
8735
+ createdAtLocation?: string | null | undefined;
8736
+ annotation?: Record<string, string | number | boolean | {
7317
8737
  type: string;
7318
8738
  filename: string;
7319
8739
  originalFilename: string;
@@ -7328,6 +8748,10 @@ export declare const EventDocument: z.ZodObject<{
7328
8748
  residentialArea?: string | null | undefined;
7329
8749
  street?: string | null | undefined;
7330
8750
  zipCode?: string | null | undefined;
8751
+ } | {
8752
+ firstname: string;
8753
+ surname: string;
8754
+ middlename?: string | null | undefined;
7331
8755
  } | {
7332
8756
  country: string;
7333
8757
  district: string;
@@ -7350,11 +8774,18 @@ export declare const EventDocument: z.ZodObject<{
7350
8774
  option: string;
7351
8775
  filename: string;
7352
8776
  originalFilename: string;
7353
- }[] | undefined> | undefined;
8777
+ }[] | [string, string] | null | undefined> | undefined;
8778
+ originalActionId?: string | undefined;
7354
8779
  } | {
7355
8780
  type: "UNASSIGN";
7356
8781
  id: string;
7357
- data: Record<string, string | number | boolean | {
8782
+ status: "Rejected" | "Requested" | "Accepted";
8783
+ transactionId: string;
8784
+ createdByUserType: "system" | "user";
8785
+ createdAt: string;
8786
+ createdBy: string;
8787
+ createdByRole: string;
8788
+ declaration: Record<string, string | number | boolean | {
7358
8789
  type: string;
7359
8790
  filename: string;
7360
8791
  originalFilename: string;
@@ -7369,6 +8800,10 @@ export declare const EventDocument: z.ZodObject<{
7369
8800
  residentialArea?: string | null | undefined;
7370
8801
  street?: string | null | undefined;
7371
8802
  zipCode?: string | null | undefined;
8803
+ } | {
8804
+ firstname: string;
8805
+ surname: string;
8806
+ middlename?: string | null | undefined;
7372
8807
  } | {
7373
8808
  country: string;
7374
8809
  district: string;
@@ -7391,11 +8826,11 @@ export declare const EventDocument: z.ZodObject<{
7391
8826
  option: string;
7392
8827
  filename: string;
7393
8828
  originalFilename: string;
7394
- }[] | undefined>;
7395
- createdAt: string;
7396
- createdBy: string;
7397
- createdAtLocation: string;
7398
- metadata?: Record<string, string | number | boolean | {
8829
+ }[] | [string, string] | null | undefined>;
8830
+ assignedTo: null;
8831
+ createdBySignature?: string | null | undefined;
8832
+ createdAtLocation?: string | null | undefined;
8833
+ annotation?: Record<string, string | number | boolean | {
7399
8834
  type: string;
7400
8835
  filename: string;
7401
8836
  originalFilename: string;
@@ -7410,6 +8845,10 @@ export declare const EventDocument: z.ZodObject<{
7410
8845
  residentialArea?: string | null | undefined;
7411
8846
  street?: string | null | undefined;
7412
8847
  zipCode?: string | null | undefined;
8848
+ } | {
8849
+ firstname: string;
8850
+ surname: string;
8851
+ middlename?: string | null | undefined;
7413
8852
  } | {
7414
8853
  country: string;
7415
8854
  district: string;
@@ -7432,11 +8871,18 @@ export declare const EventDocument: z.ZodObject<{
7432
8871
  option: string;
7433
8872
  filename: string;
7434
8873
  originalFilename: string;
7435
- }[] | undefined> | undefined;
8874
+ }[] | [string, string] | null | undefined> | undefined;
8875
+ originalActionId?: string | undefined;
7436
8876
  } | {
7437
8877
  type: "REGISTER";
7438
8878
  id: string;
7439
- data: Record<string, string | number | boolean | {
8879
+ status: "Rejected" | "Requested" | "Accepted";
8880
+ transactionId: string;
8881
+ createdByUserType: "system" | "user";
8882
+ createdAt: string;
8883
+ createdBy: string;
8884
+ createdByRole: string;
8885
+ declaration: Record<string, string | number | boolean | {
7440
8886
  type: string;
7441
8887
  filename: string;
7442
8888
  originalFilename: string;
@@ -7451,6 +8897,10 @@ export declare const EventDocument: z.ZodObject<{
7451
8897
  residentialArea?: string | null | undefined;
7452
8898
  street?: string | null | undefined;
7453
8899
  zipCode?: string | null | undefined;
8900
+ } | {
8901
+ firstname: string;
8902
+ surname: string;
8903
+ middlename?: string | null | undefined;
7454
8904
  } | {
7455
8905
  country: string;
7456
8906
  district: string;
@@ -7473,15 +8923,10 @@ export declare const EventDocument: z.ZodObject<{
7473
8923
  option: string;
7474
8924
  filename: string;
7475
8925
  originalFilename: string;
7476
- }[] | undefined>;
7477
- createdAt: string;
7478
- createdBy: string;
7479
- createdAtLocation: string;
7480
- identifiers: {
7481
- trackingId: string;
7482
- registrationNumber: string;
7483
- };
7484
- metadata?: Record<string, string | number | boolean | {
8926
+ }[] | [string, string] | null | undefined>;
8927
+ createdBySignature?: string | null | undefined;
8928
+ createdAtLocation?: string | null | undefined;
8929
+ annotation?: Record<string, string | number | boolean | {
7485
8930
  type: string;
7486
8931
  filename: string;
7487
8932
  originalFilename: string;
@@ -7496,6 +8941,10 @@ export declare const EventDocument: z.ZodObject<{
7496
8941
  residentialArea?: string | null | undefined;
7497
8942
  street?: string | null | undefined;
7498
8943
  zipCode?: string | null | undefined;
8944
+ } | {
8945
+ firstname: string;
8946
+ surname: string;
8947
+ middlename?: string | null | undefined;
7499
8948
  } | {
7500
8949
  country: string;
7501
8950
  district: string;
@@ -7518,11 +8967,19 @@ export declare const EventDocument: z.ZodObject<{
7518
8967
  option: string;
7519
8968
  filename: string;
7520
8969
  originalFilename: string;
7521
- }[] | undefined> | undefined;
8970
+ }[] | [string, string] | null | undefined> | undefined;
8971
+ originalActionId?: string | undefined;
8972
+ registrationNumber?: string | undefined;
7522
8973
  } | {
7523
8974
  type: "DECLARE";
7524
8975
  id: string;
7525
- data: Record<string, string | number | boolean | {
8976
+ status: "Rejected" | "Requested" | "Accepted";
8977
+ transactionId: string;
8978
+ createdByUserType: "system" | "user";
8979
+ createdAt: string;
8980
+ createdBy: string;
8981
+ createdByRole: string;
8982
+ declaration: Record<string, string | number | boolean | {
7526
8983
  type: string;
7527
8984
  filename: string;
7528
8985
  originalFilename: string;
@@ -7537,6 +8994,10 @@ export declare const EventDocument: z.ZodObject<{
7537
8994
  residentialArea?: string | null | undefined;
7538
8995
  street?: string | null | undefined;
7539
8996
  zipCode?: string | null | undefined;
8997
+ } | {
8998
+ firstname: string;
8999
+ surname: string;
9000
+ middlename?: string | null | undefined;
7540
9001
  } | {
7541
9002
  country: string;
7542
9003
  district: string;
@@ -7559,11 +9020,10 @@ export declare const EventDocument: z.ZodObject<{
7559
9020
  option: string;
7560
9021
  filename: string;
7561
9022
  originalFilename: string;
7562
- }[] | undefined>;
7563
- createdAt: string;
7564
- createdBy: string;
7565
- createdAtLocation: string;
7566
- metadata?: Record<string, string | number | boolean | {
9023
+ }[] | [string, string] | null | undefined>;
9024
+ createdBySignature?: string | null | undefined;
9025
+ createdAtLocation?: string | null | undefined;
9026
+ annotation?: Record<string, string | number | boolean | {
7567
9027
  type: string;
7568
9028
  filename: string;
7569
9029
  originalFilename: string;
@@ -7578,6 +9038,10 @@ export declare const EventDocument: z.ZodObject<{
7578
9038
  residentialArea?: string | null | undefined;
7579
9039
  street?: string | null | undefined;
7580
9040
  zipCode?: string | null | undefined;
9041
+ } | {
9042
+ firstname: string;
9043
+ surname: string;
9044
+ middlename?: string | null | undefined;
7581
9045
  } | {
7582
9046
  country: string;
7583
9047
  district: string;
@@ -7600,11 +9064,18 @@ export declare const EventDocument: z.ZodObject<{
7600
9064
  option: string;
7601
9065
  filename: string;
7602
9066
  originalFilename: string;
7603
- }[] | undefined> | undefined;
9067
+ }[] | [string, string] | null | undefined> | undefined;
9068
+ originalActionId?: string | undefined;
7604
9069
  } | {
7605
9070
  type: "VALIDATE";
7606
9071
  id: string;
7607
- data: Record<string, string | number | boolean | {
9072
+ status: "Rejected" | "Requested" | "Accepted";
9073
+ transactionId: string;
9074
+ createdByUserType: "system" | "user";
9075
+ createdAt: string;
9076
+ createdBy: string;
9077
+ createdByRole: string;
9078
+ declaration: Record<string, string | number | boolean | {
7608
9079
  type: string;
7609
9080
  filename: string;
7610
9081
  originalFilename: string;
@@ -7619,6 +9090,10 @@ export declare const EventDocument: z.ZodObject<{
7619
9090
  residentialArea?: string | null | undefined;
7620
9091
  street?: string | null | undefined;
7621
9092
  zipCode?: string | null | undefined;
9093
+ } | {
9094
+ firstname: string;
9095
+ surname: string;
9096
+ middlename?: string | null | undefined;
7622
9097
  } | {
7623
9098
  country: string;
7624
9099
  district: string;
@@ -7641,11 +9116,10 @@ export declare const EventDocument: z.ZodObject<{
7641
9116
  option: string;
7642
9117
  filename: string;
7643
9118
  originalFilename: string;
7644
- }[] | undefined>;
7645
- createdAt: string;
7646
- createdBy: string;
7647
- createdAtLocation: string;
7648
- metadata?: Record<string, string | number | boolean | {
9119
+ }[] | [string, string] | null | undefined>;
9120
+ createdBySignature?: string | null | undefined;
9121
+ createdAtLocation?: string | null | undefined;
9122
+ annotation?: Record<string, string | number | boolean | {
7649
9123
  type: string;
7650
9124
  filename: string;
7651
9125
  originalFilename: string;
@@ -7660,6 +9134,10 @@ export declare const EventDocument: z.ZodObject<{
7660
9134
  residentialArea?: string | null | undefined;
7661
9135
  street?: string | null | undefined;
7662
9136
  zipCode?: string | null | undefined;
9137
+ } | {
9138
+ firstname: string;
9139
+ surname: string;
9140
+ middlename?: string | null | undefined;
7663
9141
  } | {
7664
9142
  country: string;
7665
9143
  district: string;
@@ -7682,11 +9160,22 @@ export declare const EventDocument: z.ZodObject<{
7682
9160
  option: string;
7683
9161
  filename: string;
7684
9162
  originalFilename: string;
7685
- }[] | undefined> | undefined;
9163
+ }[] | [string, string] | null | undefined> | undefined;
9164
+ originalActionId?: string | undefined;
7686
9165
  } | {
7687
9166
  type: "REJECT";
7688
9167
  id: string;
7689
- data: Record<string, string | number | boolean | {
9168
+ status: "Rejected" | "Requested" | "Accepted";
9169
+ reason: {
9170
+ message: string;
9171
+ isDuplicate?: boolean | undefined;
9172
+ };
9173
+ transactionId: string;
9174
+ createdByUserType: "system" | "user";
9175
+ createdAt: string;
9176
+ createdBy: string;
9177
+ createdByRole: string;
9178
+ declaration: Record<string, string | number | boolean | {
7690
9179
  type: string;
7691
9180
  filename: string;
7692
9181
  originalFilename: string;
@@ -7701,6 +9190,10 @@ export declare const EventDocument: z.ZodObject<{
7701
9190
  residentialArea?: string | null | undefined;
7702
9191
  street?: string | null | undefined;
7703
9192
  zipCode?: string | null | undefined;
9193
+ } | {
9194
+ firstname: string;
9195
+ surname: string;
9196
+ middlename?: string | null | undefined;
7704
9197
  } | {
7705
9198
  country: string;
7706
9199
  district: string;
@@ -7723,11 +9216,10 @@ export declare const EventDocument: z.ZodObject<{
7723
9216
  option: string;
7724
9217
  filename: string;
7725
9218
  originalFilename: string;
7726
- }[] | undefined>;
7727
- createdAt: string;
7728
- createdBy: string;
7729
- createdAtLocation: string;
7730
- metadata?: Record<string, string | number | boolean | {
9219
+ }[] | [string, string] | null | undefined>;
9220
+ createdBySignature?: string | null | undefined;
9221
+ createdAtLocation?: string | null | undefined;
9222
+ annotation?: Record<string, string | number | boolean | {
7731
9223
  type: string;
7732
9224
  filename: string;
7733
9225
  originalFilename: string;
@@ -7742,6 +9234,10 @@ export declare const EventDocument: z.ZodObject<{
7742
9234
  residentialArea?: string | null | undefined;
7743
9235
  street?: string | null | undefined;
7744
9236
  zipCode?: string | null | undefined;
9237
+ } | {
9238
+ firstname: string;
9239
+ surname: string;
9240
+ middlename?: string | null | undefined;
7745
9241
  } | {
7746
9242
  country: string;
7747
9243
  district: string;
@@ -7764,11 +9260,18 @@ export declare const EventDocument: z.ZodObject<{
7764
9260
  option: string;
7765
9261
  filename: string;
7766
9262
  originalFilename: string;
7767
- }[] | undefined> | undefined;
9263
+ }[] | [string, string] | null | undefined> | undefined;
9264
+ originalActionId?: string | undefined;
7768
9265
  } | {
7769
9266
  type: "MARKED_AS_DUPLICATE";
7770
9267
  id: string;
7771
- data: Record<string, string | number | boolean | {
9268
+ status: "Rejected" | "Requested" | "Accepted";
9269
+ transactionId: string;
9270
+ createdByUserType: "system" | "user";
9271
+ createdAt: string;
9272
+ createdBy: string;
9273
+ createdByRole: string;
9274
+ declaration: Record<string, string | number | boolean | {
7772
9275
  type: string;
7773
9276
  filename: string;
7774
9277
  originalFilename: string;
@@ -7783,6 +9286,10 @@ export declare const EventDocument: z.ZodObject<{
7783
9286
  residentialArea?: string | null | undefined;
7784
9287
  street?: string | null | undefined;
7785
9288
  zipCode?: string | null | undefined;
9289
+ } | {
9290
+ firstname: string;
9291
+ surname: string;
9292
+ middlename?: string | null | undefined;
7786
9293
  } | {
7787
9294
  country: string;
7788
9295
  district: string;
@@ -7805,11 +9312,10 @@ export declare const EventDocument: z.ZodObject<{
7805
9312
  option: string;
7806
9313
  filename: string;
7807
9314
  originalFilename: string;
7808
- }[] | undefined>;
7809
- createdAt: string;
7810
- createdBy: string;
7811
- createdAtLocation: string;
7812
- metadata?: Record<string, string | number | boolean | {
9315
+ }[] | [string, string] | null | undefined>;
9316
+ createdBySignature?: string | null | undefined;
9317
+ createdAtLocation?: string | null | undefined;
9318
+ annotation?: Record<string, string | number | boolean | {
7813
9319
  type: string;
7814
9320
  filename: string;
7815
9321
  originalFilename: string;
@@ -7824,6 +9330,10 @@ export declare const EventDocument: z.ZodObject<{
7824
9330
  residentialArea?: string | null | undefined;
7825
9331
  street?: string | null | undefined;
7826
9332
  zipCode?: string | null | undefined;
9333
+ } | {
9334
+ firstname: string;
9335
+ surname: string;
9336
+ middlename?: string | null | undefined;
7827
9337
  } | {
7828
9338
  country: string;
7829
9339
  district: string;
@@ -7846,11 +9356,22 @@ export declare const EventDocument: z.ZodObject<{
7846
9356
  option: string;
7847
9357
  filename: string;
7848
9358
  originalFilename: string;
7849
- }[] | undefined> | undefined;
9359
+ }[] | [string, string] | null | undefined> | undefined;
9360
+ originalActionId?: string | undefined;
7850
9361
  } | {
7851
9362
  type: "ARCHIVE";
7852
9363
  id: string;
7853
- data: Record<string, string | number | boolean | {
9364
+ status: "Rejected" | "Requested" | "Accepted";
9365
+ reason: {
9366
+ message: string;
9367
+ isDuplicate?: boolean | undefined;
9368
+ };
9369
+ transactionId: string;
9370
+ createdByUserType: "system" | "user";
9371
+ createdAt: string;
9372
+ createdBy: string;
9373
+ createdByRole: string;
9374
+ declaration: Record<string, string | number | boolean | {
7854
9375
  type: string;
7855
9376
  filename: string;
7856
9377
  originalFilename: string;
@@ -7865,6 +9386,10 @@ export declare const EventDocument: z.ZodObject<{
7865
9386
  residentialArea?: string | null | undefined;
7866
9387
  street?: string | null | undefined;
7867
9388
  zipCode?: string | null | undefined;
9389
+ } | {
9390
+ firstname: string;
9391
+ surname: string;
9392
+ middlename?: string | null | undefined;
7868
9393
  } | {
7869
9394
  country: string;
7870
9395
  district: string;
@@ -7887,11 +9412,10 @@ export declare const EventDocument: z.ZodObject<{
7887
9412
  option: string;
7888
9413
  filename: string;
7889
9414
  originalFilename: string;
7890
- }[] | undefined>;
7891
- createdAt: string;
7892
- createdBy: string;
7893
- createdAtLocation: string;
7894
- metadata?: Record<string, string | number | boolean | {
9415
+ }[] | [string, string] | null | undefined>;
9416
+ createdBySignature?: string | null | undefined;
9417
+ createdAtLocation?: string | null | undefined;
9418
+ annotation?: Record<string, string | number | boolean | {
7895
9419
  type: string;
7896
9420
  filename: string;
7897
9421
  originalFilename: string;
@@ -7906,6 +9430,10 @@ export declare const EventDocument: z.ZodObject<{
7906
9430
  residentialArea?: string | null | undefined;
7907
9431
  street?: string | null | undefined;
7908
9432
  zipCode?: string | null | undefined;
9433
+ } | {
9434
+ firstname: string;
9435
+ surname: string;
9436
+ middlename?: string | null | undefined;
7909
9437
  } | {
7910
9438
  country: string;
7911
9439
  district: string;
@@ -7928,11 +9456,18 @@ export declare const EventDocument: z.ZodObject<{
7928
9456
  option: string;
7929
9457
  filename: string;
7930
9458
  originalFilename: string;
7931
- }[] | undefined> | undefined;
9459
+ }[] | [string, string] | null | undefined> | undefined;
9460
+ originalActionId?: string | undefined;
7932
9461
  } | {
7933
9462
  type: "CREATE";
7934
9463
  id: string;
7935
- data: Record<string, string | number | boolean | {
9464
+ status: "Rejected" | "Requested" | "Accepted";
9465
+ transactionId: string;
9466
+ createdByUserType: "system" | "user";
9467
+ createdAt: string;
9468
+ createdBy: string;
9469
+ createdByRole: string;
9470
+ declaration: Record<string, string | number | boolean | {
7936
9471
  type: string;
7937
9472
  filename: string;
7938
9473
  originalFilename: string;
@@ -7947,6 +9482,10 @@ export declare const EventDocument: z.ZodObject<{
7947
9482
  residentialArea?: string | null | undefined;
7948
9483
  street?: string | null | undefined;
7949
9484
  zipCode?: string | null | undefined;
9485
+ } | {
9486
+ firstname: string;
9487
+ surname: string;
9488
+ middlename?: string | null | undefined;
7950
9489
  } | {
7951
9490
  country: string;
7952
9491
  district: string;
@@ -7969,11 +9508,10 @@ export declare const EventDocument: z.ZodObject<{
7969
9508
  option: string;
7970
9509
  filename: string;
7971
9510
  originalFilename: string;
7972
- }[] | undefined>;
7973
- createdAt: string;
7974
- createdBy: string;
7975
- createdAtLocation: string;
7976
- metadata?: Record<string, string | number | boolean | {
9511
+ }[] | [string, string] | null | undefined>;
9512
+ createdBySignature?: string | null | undefined;
9513
+ createdAtLocation?: string | null | undefined;
9514
+ annotation?: Record<string, string | number | boolean | {
7977
9515
  type: string;
7978
9516
  filename: string;
7979
9517
  originalFilename: string;
@@ -7988,6 +9526,10 @@ export declare const EventDocument: z.ZodObject<{
7988
9526
  residentialArea?: string | null | undefined;
7989
9527
  street?: string | null | undefined;
7990
9528
  zipCode?: string | null | undefined;
9529
+ } | {
9530
+ firstname: string;
9531
+ surname: string;
9532
+ middlename?: string | null | undefined;
7991
9533
  } | {
7992
9534
  country: string;
7993
9535
  district: string;
@@ -8010,11 +9552,18 @@ export declare const EventDocument: z.ZodObject<{
8010
9552
  option: string;
8011
9553
  filename: string;
8012
9554
  originalFilename: string;
8013
- }[] | undefined> | undefined;
9555
+ }[] | [string, string] | null | undefined> | undefined;
9556
+ originalActionId?: string | undefined;
8014
9557
  } | {
8015
9558
  type: "NOTIFY";
8016
9559
  id: string;
8017
- data: Record<string, string | number | boolean | {
9560
+ status: "Rejected" | "Requested" | "Accepted";
9561
+ transactionId: string;
9562
+ createdByUserType: "system" | "user";
9563
+ createdAt: string;
9564
+ createdBy: string;
9565
+ createdByRole: string;
9566
+ declaration: Record<string, string | number | boolean | {
8018
9567
  type: string;
8019
9568
  filename: string;
8020
9569
  originalFilename: string;
@@ -8029,6 +9578,10 @@ export declare const EventDocument: z.ZodObject<{
8029
9578
  residentialArea?: string | null | undefined;
8030
9579
  street?: string | null | undefined;
8031
9580
  zipCode?: string | null | undefined;
9581
+ } | {
9582
+ firstname: string;
9583
+ surname: string;
9584
+ middlename?: string | null | undefined;
8032
9585
  } | {
8033
9586
  country: string;
8034
9587
  district: string;
@@ -8051,11 +9604,10 @@ export declare const EventDocument: z.ZodObject<{
8051
9604
  option: string;
8052
9605
  filename: string;
8053
9606
  originalFilename: string;
8054
- }[] | undefined>;
8055
- createdAt: string;
8056
- createdBy: string;
8057
- createdAtLocation: string;
8058
- metadata?: Record<string, string | number | boolean | {
9607
+ }[] | [string, string] | null | undefined>;
9608
+ createdBySignature?: string | null | undefined;
9609
+ createdAtLocation?: string | null | undefined;
9610
+ annotation?: Record<string, string | number | boolean | {
8059
9611
  type: string;
8060
9612
  filename: string;
8061
9613
  originalFilename: string;
@@ -8070,6 +9622,10 @@ export declare const EventDocument: z.ZodObject<{
8070
9622
  residentialArea?: string | null | undefined;
8071
9623
  street?: string | null | undefined;
8072
9624
  zipCode?: string | null | undefined;
9625
+ } | {
9626
+ firstname: string;
9627
+ surname: string;
9628
+ middlename?: string | null | undefined;
8073
9629
  } | {
8074
9630
  country: string;
8075
9631
  district: string;
@@ -8092,11 +9648,18 @@ export declare const EventDocument: z.ZodObject<{
8092
9648
  option: string;
8093
9649
  filename: string;
8094
9650
  originalFilename: string;
8095
- }[] | undefined> | undefined;
9651
+ }[] | [string, string] | null | undefined> | undefined;
9652
+ originalActionId?: string | undefined;
8096
9653
  } | {
8097
9654
  type: "PRINT_CERTIFICATE";
8098
9655
  id: string;
8099
- data: Record<string, string | number | boolean | {
9656
+ status: "Rejected" | "Requested" | "Accepted";
9657
+ transactionId: string;
9658
+ createdByUserType: "system" | "user";
9659
+ createdAt: string;
9660
+ createdBy: string;
9661
+ createdByRole: string;
9662
+ declaration: Record<string, string | number | boolean | {
8100
9663
  type: string;
8101
9664
  filename: string;
8102
9665
  originalFilename: string;
@@ -8111,6 +9674,10 @@ export declare const EventDocument: z.ZodObject<{
8111
9674
  residentialArea?: string | null | undefined;
8112
9675
  street?: string | null | undefined;
8113
9676
  zipCode?: string | null | undefined;
9677
+ } | {
9678
+ firstname: string;
9679
+ surname: string;
9680
+ middlename?: string | null | undefined;
8114
9681
  } | {
8115
9682
  country: string;
8116
9683
  district: string;
@@ -8133,11 +9700,10 @@ export declare const EventDocument: z.ZodObject<{
8133
9700
  option: string;
8134
9701
  filename: string;
8135
9702
  originalFilename: string;
8136
- }[] | undefined>;
8137
- createdAt: string;
8138
- createdBy: string;
8139
- createdAtLocation: string;
8140
- metadata?: Record<string, string | number | boolean | {
9703
+ }[] | [string, string] | null | undefined>;
9704
+ createdBySignature?: string | null | undefined;
9705
+ createdAtLocation?: string | null | undefined;
9706
+ annotation?: Record<string, string | number | boolean | {
8141
9707
  type: string;
8142
9708
  filename: string;
8143
9709
  originalFilename: string;
@@ -8152,6 +9718,10 @@ export declare const EventDocument: z.ZodObject<{
8152
9718
  residentialArea?: string | null | undefined;
8153
9719
  street?: string | null | undefined;
8154
9720
  zipCode?: string | null | undefined;
9721
+ } | {
9722
+ firstname: string;
9723
+ surname: string;
9724
+ middlename?: string | null | undefined;
8155
9725
  } | {
8156
9726
  country: string;
8157
9727
  district: string;
@@ -8174,11 +9744,18 @@ export declare const EventDocument: z.ZodObject<{
8174
9744
  option: string;
8175
9745
  filename: string;
8176
9746
  originalFilename: string;
8177
- }[] | undefined> | undefined;
9747
+ }[] | [string, string] | null | undefined> | undefined;
9748
+ originalActionId?: string | undefined;
8178
9749
  } | {
8179
9750
  type: "REQUEST_CORRECTION";
8180
9751
  id: string;
8181
- data: Record<string, string | number | boolean | {
9752
+ status: "Rejected" | "Requested" | "Accepted";
9753
+ transactionId: string;
9754
+ createdByUserType: "system" | "user";
9755
+ createdAt: string;
9756
+ createdBy: string;
9757
+ createdByRole: string;
9758
+ declaration: Record<string, string | number | boolean | {
8182
9759
  type: string;
8183
9760
  filename: string;
8184
9761
  originalFilename: string;
@@ -8193,6 +9770,10 @@ export declare const EventDocument: z.ZodObject<{
8193
9770
  residentialArea?: string | null | undefined;
8194
9771
  street?: string | null | undefined;
8195
9772
  zipCode?: string | null | undefined;
9773
+ } | {
9774
+ firstname: string;
9775
+ surname: string;
9776
+ middlename?: string | null | undefined;
8196
9777
  } | {
8197
9778
  country: string;
8198
9779
  district: string;
@@ -8215,11 +9796,10 @@ export declare const EventDocument: z.ZodObject<{
8215
9796
  option: string;
8216
9797
  filename: string;
8217
9798
  originalFilename: string;
8218
- }[] | undefined>;
8219
- createdAt: string;
8220
- createdBy: string;
8221
- createdAtLocation: string;
8222
- metadata?: Record<string, string | number | boolean | {
9799
+ }[] | [string, string] | null | undefined>;
9800
+ createdBySignature?: string | null | undefined;
9801
+ createdAtLocation?: string | null | undefined;
9802
+ annotation?: Record<string, string | number | boolean | {
8223
9803
  type: string;
8224
9804
  filename: string;
8225
9805
  originalFilename: string;
@@ -8234,6 +9814,10 @@ export declare const EventDocument: z.ZodObject<{
8234
9814
  residentialArea?: string | null | undefined;
8235
9815
  street?: string | null | undefined;
8236
9816
  zipCode?: string | null | undefined;
9817
+ } | {
9818
+ firstname: string;
9819
+ surname: string;
9820
+ middlename?: string | null | undefined;
8237
9821
  } | {
8238
9822
  country: string;
8239
9823
  district: string;
@@ -8256,11 +9840,18 @@ export declare const EventDocument: z.ZodObject<{
8256
9840
  option: string;
8257
9841
  filename: string;
8258
9842
  originalFilename: string;
8259
- }[] | undefined> | undefined;
9843
+ }[] | [string, string] | null | undefined> | undefined;
9844
+ originalActionId?: string | undefined;
8260
9845
  } | {
8261
9846
  type: "APPROVE_CORRECTION";
8262
9847
  id: string;
8263
- data: Record<string, string | number | boolean | {
9848
+ status: "Rejected" | "Requested" | "Accepted";
9849
+ transactionId: string;
9850
+ createdByUserType: "system" | "user";
9851
+ createdAt: string;
9852
+ createdBy: string;
9853
+ createdByRole: string;
9854
+ declaration: Record<string, string | number | boolean | {
8264
9855
  type: string;
8265
9856
  filename: string;
8266
9857
  originalFilename: string;
@@ -8275,6 +9866,10 @@ export declare const EventDocument: z.ZodObject<{
8275
9866
  residentialArea?: string | null | undefined;
8276
9867
  street?: string | null | undefined;
8277
9868
  zipCode?: string | null | undefined;
9869
+ } | {
9870
+ firstname: string;
9871
+ surname: string;
9872
+ middlename?: string | null | undefined;
8278
9873
  } | {
8279
9874
  country: string;
8280
9875
  district: string;
@@ -8297,12 +9892,11 @@ export declare const EventDocument: z.ZodObject<{
8297
9892
  option: string;
8298
9893
  filename: string;
8299
9894
  originalFilename: string;
8300
- }[] | undefined>;
8301
- createdAt: string;
8302
- createdBy: string;
8303
- createdAtLocation: string;
9895
+ }[] | [string, string] | null | undefined>;
8304
9896
  requestId: string;
8305
- metadata?: Record<string, string | number | boolean | {
9897
+ createdBySignature?: string | null | undefined;
9898
+ createdAtLocation?: string | null | undefined;
9899
+ annotation?: Record<string, string | number | boolean | {
8306
9900
  type: string;
8307
9901
  filename: string;
8308
9902
  originalFilename: string;
@@ -8317,6 +9911,10 @@ export declare const EventDocument: z.ZodObject<{
8317
9911
  residentialArea?: string | null | undefined;
8318
9912
  street?: string | null | undefined;
8319
9913
  zipCode?: string | null | undefined;
9914
+ } | {
9915
+ firstname: string;
9916
+ surname: string;
9917
+ middlename?: string | null | undefined;
8320
9918
  } | {
8321
9919
  country: string;
8322
9920
  district: string;
@@ -8339,11 +9937,18 @@ export declare const EventDocument: z.ZodObject<{
8339
9937
  option: string;
8340
9938
  filename: string;
8341
9939
  originalFilename: string;
8342
- }[] | undefined> | undefined;
9940
+ }[] | [string, string] | null | undefined> | undefined;
9941
+ originalActionId?: string | undefined;
8343
9942
  } | {
8344
9943
  type: "REJECT_CORRECTION";
8345
9944
  id: string;
8346
- data: Record<string, string | number | boolean | {
9945
+ status: "Rejected" | "Requested" | "Accepted";
9946
+ transactionId: string;
9947
+ createdByUserType: "system" | "user";
9948
+ createdAt: string;
9949
+ createdBy: string;
9950
+ createdByRole: string;
9951
+ declaration: Record<string, string | number | boolean | {
8347
9952
  type: string;
8348
9953
  filename: string;
8349
9954
  originalFilename: string;
@@ -8358,6 +9963,10 @@ export declare const EventDocument: z.ZodObject<{
8358
9963
  residentialArea?: string | null | undefined;
8359
9964
  street?: string | null | undefined;
8360
9965
  zipCode?: string | null | undefined;
9966
+ } | {
9967
+ firstname: string;
9968
+ surname: string;
9969
+ middlename?: string | null | undefined;
8361
9970
  } | {
8362
9971
  country: string;
8363
9972
  district: string;
@@ -8380,12 +9989,11 @@ export declare const EventDocument: z.ZodObject<{
8380
9989
  option: string;
8381
9990
  filename: string;
8382
9991
  originalFilename: string;
8383
- }[] | undefined>;
8384
- createdAt: string;
8385
- createdBy: string;
8386
- createdAtLocation: string;
9992
+ }[] | [string, string] | null | undefined>;
8387
9993
  requestId: string;
8388
- metadata?: Record<string, string | number | boolean | {
9994
+ createdBySignature?: string | null | undefined;
9995
+ createdAtLocation?: string | null | undefined;
9996
+ annotation?: Record<string, string | number | boolean | {
8389
9997
  type: string;
8390
9998
  filename: string;
8391
9999
  originalFilename: string;
@@ -8400,6 +10008,10 @@ export declare const EventDocument: z.ZodObject<{
8400
10008
  residentialArea?: string | null | undefined;
8401
10009
  street?: string | null | undefined;
8402
10010
  zipCode?: string | null | undefined;
10011
+ } | {
10012
+ firstname: string;
10013
+ surname: string;
10014
+ middlename?: string | null | undefined;
8403
10015
  } | {
8404
10016
  country: string;
8405
10017
  district: string;
@@ -8422,11 +10034,18 @@ export declare const EventDocument: z.ZodObject<{
8422
10034
  option: string;
8423
10035
  filename: string;
8424
10036
  originalFilename: string;
8425
- }[] | undefined> | undefined;
10037
+ }[] | [string, string] | null | undefined> | undefined;
10038
+ originalActionId?: string | undefined;
8426
10039
  } | {
8427
- type: "CUSTOM";
10040
+ type: "READ";
8428
10041
  id: string;
8429
- data: Record<string, string | number | boolean | {
10042
+ status: "Rejected" | "Requested" | "Accepted";
10043
+ transactionId: string;
10044
+ createdByUserType: "system" | "user";
10045
+ createdAt: string;
10046
+ createdBy: string;
10047
+ createdByRole: string;
10048
+ declaration: Record<string, string | number | boolean | {
8430
10049
  type: string;
8431
10050
  filename: string;
8432
10051
  originalFilename: string;
@@ -8441,6 +10060,10 @@ export declare const EventDocument: z.ZodObject<{
8441
10060
  residentialArea?: string | null | undefined;
8442
10061
  street?: string | null | undefined;
8443
10062
  zipCode?: string | null | undefined;
10063
+ } | {
10064
+ firstname: string;
10065
+ surname: string;
10066
+ middlename?: string | null | undefined;
8444
10067
  } | {
8445
10068
  country: string;
8446
10069
  district: string;
@@ -8463,11 +10086,10 @@ export declare const EventDocument: z.ZodObject<{
8463
10086
  option: string;
8464
10087
  filename: string;
8465
10088
  originalFilename: string;
8466
- }[] | undefined>;
8467
- createdAt: string;
8468
- createdBy: string;
8469
- createdAtLocation: string;
8470
- metadata?: Record<string, string | number | boolean | {
10089
+ }[] | [string, string] | null | undefined>;
10090
+ createdBySignature?: string | null | undefined;
10091
+ createdAtLocation?: string | null | undefined;
10092
+ annotation?: Record<string, string | number | boolean | {
8471
10093
  type: string;
8472
10094
  filename: string;
8473
10095
  originalFilename: string;
@@ -8482,6 +10104,10 @@ export declare const EventDocument: z.ZodObject<{
8482
10104
  residentialArea?: string | null | undefined;
8483
10105
  street?: string | null | undefined;
8484
10106
  zipCode?: string | null | undefined;
10107
+ } | {
10108
+ firstname: string;
10109
+ surname: string;
10110
+ middlename?: string | null | undefined;
8485
10111
  } | {
8486
10112
  country: string;
8487
10113
  district: string;
@@ -8504,8 +10130,22 @@ export declare const EventDocument: z.ZodObject<{
8504
10130
  option: string;
8505
10131
  filename: string;
8506
10132
  originalFilename: string;
8507
- }[] | undefined> | undefined;
10133
+ }[] | [string, string] | null | undefined> | undefined;
10134
+ originalActionId?: string | undefined;
10135
+ } | {
10136
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
10137
+ id: string;
10138
+ status: "Rejected";
10139
+ transactionId: string;
10140
+ createdByUserType: "system" | "user";
10141
+ createdAt: string;
10142
+ createdBy: string;
10143
+ createdByRole: string;
10144
+ createdBySignature?: string | null | undefined;
10145
+ createdAtLocation?: string | null | undefined;
10146
+ originalActionId?: string | undefined;
8508
10147
  })[];
10148
+ trackingId: string;
8509
10149
  }>;
8510
10150
  export type EventDocument = z.infer<typeof EventDocument>;
8511
10151
  //# sourceMappingURL=EventDocument.d.ts.map