@opencrvs/toolkit 1.8.0-rc.feef45c → 1.8.0-rc.fef0fdd

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 (43) hide show
  1. package/dist/commons/api/router.d.ts +9340 -7709
  2. package/dist/commons/conditionals/conditionals.d.ts +8 -3
  3. package/dist/commons/conditionals/validate.d.ts +6 -0
  4. package/dist/commons/events/ActionConfig.d.ts +72517 -38926
  5. package/dist/commons/events/ActionDocument.d.ts +2375 -665
  6. package/dist/commons/events/ActionInput.d.ts +1639 -367
  7. package/dist/commons/events/ActionType.d.ts +6 -0
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +913 -48
  9. package/dist/commons/events/CompositeFieldValue.d.ts +28 -0
  10. package/dist/commons/events/Constants.d.ts +3 -0
  11. package/dist/commons/events/CountryConfigQueryInput.d.ts +3068 -0
  12. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  13. package/dist/commons/events/Draft.d.ts +148 -44
  14. package/dist/commons/events/EventConfig.d.ts +28287 -11538
  15. package/dist/commons/events/EventDocument.d.ts +1479 -492
  16. package/dist/commons/events/EventIndex.d.ts +1433 -343
  17. package/dist/commons/events/EventInput.d.ts +0 -13
  18. package/dist/commons/events/EventMetadata.d.ts +325 -46
  19. package/dist/commons/events/FieldConfig.d.ts +2962 -1131
  20. package/dist/commons/events/FieldType.d.ts +6 -2
  21. package/dist/commons/events/FieldTypeMapping.d.ts +103 -54
  22. package/dist/commons/events/FieldValue.d.ts +48 -7
  23. package/dist/commons/events/FormConfig.d.ts +20532 -9126
  24. package/dist/commons/events/PageConfig.d.ts +4906 -2112
  25. package/dist/commons/events/SummaryConfig.d.ts +17 -5
  26. package/dist/commons/events/User.d.ts +31 -7
  27. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  28. package/dist/commons/events/WorkqueueConfig.d.ts +6262 -16
  29. package/dist/commons/events/defineConfig.d.ts +3204 -625
  30. package/dist/commons/events/event.d.ts +37 -8
  31. package/dist/commons/events/field.d.ts +34 -20
  32. package/dist/commons/events/index.d.ts +5 -0
  33. package/dist/commons/events/scopes.d.ts +21 -3
  34. package/dist/commons/events/serializer.d.ts +2 -0
  35. package/dist/commons/events/test.utils.d.ts +171 -42
  36. package/dist/commons/events/transactions.d.ts +1 -1
  37. package/dist/commons/events/utils.d.ts +10720 -321
  38. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  39. package/dist/conditionals/index.js +45 -8
  40. package/dist/events/index.js +4184 -1930
  41. package/dist/scopes/index.d.ts +161 -1
  42. package/dist/scopes/index.js +202 -1
  43. package/package.json +3 -3
@@ -1,24 +1,19 @@
1
1
  import { z } from 'zod';
2
2
  export declare const EventDocument: z.ZodObject<{
3
- id: z.ZodString;
3
+ id: z.ZodBranded<z.ZodString, "UUID">;
4
4
  type: z.ZodString;
5
- dateOfEvent: z.ZodOptional<z.ZodObject<{
6
- fieldId: z.ZodString;
7
- }, "strip", z.ZodTypeAny, {
8
- fieldId: string;
9
- }, {
10
- fieldId: string;
11
- }>>;
12
5
  createdAt: z.ZodString;
13
6
  updatedAt: z.ZodString;
14
- updatedAtLocation: z.ZodString;
15
7
  actions: z.ZodArray<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
16
- id: z.ZodString;
8
+ id: z.ZodBranded<z.ZodString, "UUID">;
17
9
  transactionId: z.ZodString;
10
+ createdByUserType: z.ZodEnum<["user", "system"]>;
18
11
  createdAt: z.ZodString;
19
12
  createdBy: z.ZodString;
20
13
  createdByRole: z.ZodString;
21
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
14
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
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<{
22
17
  filename: z.ZodString;
23
18
  originalFilename: z.ZodString;
24
19
  type: z.ZodString;
@@ -131,8 +126,20 @@ export declare const EventDocument: z.ZodObject<{
131
126
  addressLine2?: string | null | undefined;
132
127
  addressLine3?: string | null | undefined;
133
128
  postcodeOrZip?: string | null | undefined;
134
- }>]>>;
135
- annotation: 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.ZodNullable<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<{
136
143
  filename: z.ZodString;
137
144
  originalFilename: z.ZodString;
138
145
  type: z.ZodString;
@@ -245,18 +252,29 @@ export declare const EventDocument: z.ZodObject<{
245
252
  addressLine2?: string | null | undefined;
246
253
  addressLine3?: string | null | undefined;
247
254
  postcodeOrZip?: string | null | undefined;
248
- }>]>>>;
249
- createdAtLocation: z.ZodOptional<z.ZodString>;
250
- updatedAtLocation: z.ZodOptional<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]>]>>>>;
251
268
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
252
- originalActionId: z.ZodOptional<z.ZodString>;
269
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
253
270
  }, {
254
271
  type: z.ZodLiteral<"CREATE">;
255
272
  }>, "strip", z.ZodTypeAny, {
256
273
  type: "CREATE";
257
- id: string;
274
+ id: string & z.BRAND<"UUID">;
258
275
  status: "Rejected" | "Requested" | "Accepted";
259
276
  transactionId: string;
277
+ createdByUserType: "system" | "user";
260
278
  createdAt: string;
261
279
  createdBy: string;
262
280
  createdByRole: string;
@@ -275,6 +293,10 @@ export declare const EventDocument: z.ZodObject<{
275
293
  residentialArea?: string | null | undefined;
276
294
  street?: string | null | undefined;
277
295
  zipCode?: string | null | undefined;
296
+ } | {
297
+ firstname: string;
298
+ surname: string;
299
+ middlename?: string | null | undefined;
278
300
  } | {
279
301
  country: string;
280
302
  district: string;
@@ -297,7 +319,9 @@ export declare const EventDocument: z.ZodObject<{
297
319
  option: string;
298
320
  filename: string;
299
321
  originalFilename: string;
300
- }[] | undefined>;
322
+ }[] | [string, string] | null | undefined>;
323
+ createdBySignature?: string | null | undefined;
324
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
301
325
  annotation?: Record<string, string | number | boolean | {
302
326
  type: string;
303
327
  filename: string;
@@ -313,6 +337,10 @@ export declare const EventDocument: z.ZodObject<{
313
337
  residentialArea?: string | null | undefined;
314
338
  street?: string | null | undefined;
315
339
  zipCode?: string | null | undefined;
340
+ } | {
341
+ firstname: string;
342
+ surname: string;
343
+ middlename?: string | null | undefined;
316
344
  } | {
317
345
  country: string;
318
346
  district: string;
@@ -335,15 +363,14 @@ export declare const EventDocument: z.ZodObject<{
335
363
  option: string;
336
364
  filename: string;
337
365
  originalFilename: string;
338
- }[] | undefined> | undefined;
339
- createdAtLocation?: string | undefined;
340
- updatedAtLocation?: string | undefined;
341
- originalActionId?: string | undefined;
366
+ }[] | [string, string] | null | undefined> | null | undefined;
367
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
342
368
  }, {
343
369
  type: "CREATE";
344
370
  id: string;
345
371
  status: "Rejected" | "Requested" | "Accepted";
346
372
  transactionId: string;
373
+ createdByUserType: "system" | "user";
347
374
  createdAt: string;
348
375
  createdBy: string;
349
376
  createdByRole: string;
@@ -362,6 +389,10 @@ export declare const EventDocument: z.ZodObject<{
362
389
  residentialArea?: string | null | undefined;
363
390
  street?: string | null | undefined;
364
391
  zipCode?: string | null | undefined;
392
+ } | {
393
+ firstname: string;
394
+ surname: string;
395
+ middlename?: string | null | undefined;
365
396
  } | {
366
397
  country: string;
367
398
  district: string;
@@ -384,7 +415,9 @@ export declare const EventDocument: z.ZodObject<{
384
415
  option: string;
385
416
  filename: string;
386
417
  originalFilename: string;
387
- }[] | undefined>;
418
+ }[] | [string, string] | null | undefined>;
419
+ createdBySignature?: string | null | undefined;
420
+ createdAtLocation?: string | null | undefined;
388
421
  annotation?: Record<string, string | number | boolean | {
389
422
  type: string;
390
423
  filename: string;
@@ -400,6 +433,10 @@ export declare const EventDocument: z.ZodObject<{
400
433
  residentialArea?: string | null | undefined;
401
434
  street?: string | null | undefined;
402
435
  zipCode?: string | null | undefined;
436
+ } | {
437
+ firstname: string;
438
+ surname: string;
439
+ middlename?: string | null | undefined;
403
440
  } | {
404
441
  country: string;
405
442
  district: string;
@@ -422,17 +459,18 @@ export declare const EventDocument: z.ZodObject<{
422
459
  option: string;
423
460
  filename: string;
424
461
  originalFilename: string;
425
- }[] | undefined> | undefined;
426
- createdAtLocation?: string | undefined;
427
- updatedAtLocation?: string | undefined;
428
- originalActionId?: string | undefined;
462
+ }[] | [string, string] | null | undefined> | null | undefined;
463
+ originalActionId?: string | null | undefined;
429
464
  }>, z.ZodObject<z.objectUtil.extendShape<{
430
- id: z.ZodString;
465
+ id: z.ZodBranded<z.ZodString, "UUID">;
431
466
  transactionId: z.ZodString;
467
+ createdByUserType: z.ZodEnum<["user", "system"]>;
432
468
  createdAt: z.ZodString;
433
469
  createdBy: z.ZodString;
434
470
  createdByRole: z.ZodString;
435
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
471
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
472
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
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<{
436
474
  filename: z.ZodString;
437
475
  originalFilename: z.ZodString;
438
476
  type: z.ZodString;
@@ -545,8 +583,20 @@ export declare const EventDocument: z.ZodObject<{
545
583
  addressLine2?: string | null | undefined;
546
584
  addressLine3?: string | null | undefined;
547
585
  postcodeOrZip?: string | null | undefined;
548
- }>]>>;
549
- annotation: 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.ZodNullable<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<{
550
600
  filename: z.ZodString;
551
601
  originalFilename: z.ZodString;
552
602
  type: z.ZodString;
@@ -659,18 +709,29 @@ export declare const EventDocument: z.ZodObject<{
659
709
  addressLine2?: string | null | undefined;
660
710
  addressLine3?: string | null | undefined;
661
711
  postcodeOrZip?: string | null | undefined;
662
- }>]>>>;
663
- createdAtLocation: z.ZodOptional<z.ZodString>;
664
- updatedAtLocation: z.ZodOptional<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]>]>>>>;
665
725
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
666
- originalActionId: z.ZodOptional<z.ZodString>;
726
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
667
727
  }, {
668
728
  type: z.ZodLiteral<"VALIDATE">;
669
729
  }>, "strip", z.ZodTypeAny, {
670
730
  type: "VALIDATE";
671
- id: string;
731
+ id: string & z.BRAND<"UUID">;
672
732
  status: "Rejected" | "Requested" | "Accepted";
673
733
  transactionId: string;
734
+ createdByUserType: "system" | "user";
674
735
  createdAt: string;
675
736
  createdBy: string;
676
737
  createdByRole: string;
@@ -689,6 +750,10 @@ export declare const EventDocument: z.ZodObject<{
689
750
  residentialArea?: string | null | undefined;
690
751
  street?: string | null | undefined;
691
752
  zipCode?: string | null | undefined;
753
+ } | {
754
+ firstname: string;
755
+ surname: string;
756
+ middlename?: string | null | undefined;
692
757
  } | {
693
758
  country: string;
694
759
  district: string;
@@ -711,7 +776,9 @@ export declare const EventDocument: z.ZodObject<{
711
776
  option: string;
712
777
  filename: string;
713
778
  originalFilename: string;
714
- }[] | undefined>;
779
+ }[] | [string, string] | null | undefined>;
780
+ createdBySignature?: string | null | undefined;
781
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
715
782
  annotation?: Record<string, string | number | boolean | {
716
783
  type: string;
717
784
  filename: string;
@@ -727,6 +794,10 @@ export declare const EventDocument: z.ZodObject<{
727
794
  residentialArea?: string | null | undefined;
728
795
  street?: string | null | undefined;
729
796
  zipCode?: string | null | undefined;
797
+ } | {
798
+ firstname: string;
799
+ surname: string;
800
+ middlename?: string | null | undefined;
730
801
  } | {
731
802
  country: string;
732
803
  district: string;
@@ -749,15 +820,14 @@ export declare const EventDocument: z.ZodObject<{
749
820
  option: string;
750
821
  filename: string;
751
822
  originalFilename: string;
752
- }[] | undefined> | undefined;
753
- createdAtLocation?: string | undefined;
754
- updatedAtLocation?: string | undefined;
755
- originalActionId?: string | undefined;
823
+ }[] | [string, string] | null | undefined> | null | undefined;
824
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
756
825
  }, {
757
826
  type: "VALIDATE";
758
827
  id: string;
759
828
  status: "Rejected" | "Requested" | "Accepted";
760
829
  transactionId: string;
830
+ createdByUserType: "system" | "user";
761
831
  createdAt: string;
762
832
  createdBy: string;
763
833
  createdByRole: string;
@@ -776,6 +846,10 @@ export declare const EventDocument: z.ZodObject<{
776
846
  residentialArea?: string | null | undefined;
777
847
  street?: string | null | undefined;
778
848
  zipCode?: string | null | undefined;
849
+ } | {
850
+ firstname: string;
851
+ surname: string;
852
+ middlename?: string | null | undefined;
779
853
  } | {
780
854
  country: string;
781
855
  district: string;
@@ -798,7 +872,9 @@ export declare const EventDocument: z.ZodObject<{
798
872
  option: string;
799
873
  filename: string;
800
874
  originalFilename: string;
801
- }[] | undefined>;
875
+ }[] | [string, string] | null | undefined>;
876
+ createdBySignature?: string | null | undefined;
877
+ createdAtLocation?: string | null | undefined;
802
878
  annotation?: Record<string, string | number | boolean | {
803
879
  type: string;
804
880
  filename: string;
@@ -814,6 +890,10 @@ export declare const EventDocument: z.ZodObject<{
814
890
  residentialArea?: string | null | undefined;
815
891
  street?: string | null | undefined;
816
892
  zipCode?: string | null | undefined;
893
+ } | {
894
+ firstname: string;
895
+ surname: string;
896
+ middlename?: string | null | undefined;
817
897
  } | {
818
898
  country: string;
819
899
  district: string;
@@ -836,17 +916,18 @@ export declare const EventDocument: z.ZodObject<{
836
916
  option: string;
837
917
  filename: string;
838
918
  originalFilename: string;
839
- }[] | undefined> | undefined;
840
- createdAtLocation?: string | undefined;
841
- updatedAtLocation?: string | undefined;
842
- originalActionId?: string | undefined;
919
+ }[] | [string, string] | null | undefined> | null | undefined;
920
+ originalActionId?: string | null | undefined;
843
921
  }>, z.ZodObject<z.objectUtil.extendShape<{
844
- id: z.ZodString;
922
+ id: z.ZodBranded<z.ZodString, "UUID">;
845
923
  transactionId: z.ZodString;
924
+ createdByUserType: z.ZodEnum<["user", "system"]>;
846
925
  createdAt: z.ZodString;
847
926
  createdBy: z.ZodString;
848
927
  createdByRole: z.ZodString;
849
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
928
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
929
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
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<{
850
931
  filename: z.ZodString;
851
932
  originalFilename: z.ZodString;
852
933
  type: z.ZodString;
@@ -959,8 +1040,20 @@ export declare const EventDocument: z.ZodObject<{
959
1040
  addressLine2?: string | null | undefined;
960
1041
  addressLine3?: string | null | undefined;
961
1042
  postcodeOrZip?: string | null | undefined;
962
- }>]>>;
963
- annotation: 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.ZodNullable<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<{
964
1057
  filename: z.ZodString;
965
1058
  originalFilename: z.ZodString;
966
1059
  type: z.ZodString;
@@ -1073,18 +1166,43 @@ export declare const EventDocument: z.ZodObject<{
1073
1166
  addressLine2?: string | null | undefined;
1074
1167
  addressLine3?: string | null | undefined;
1075
1168
  postcodeOrZip?: string | null | undefined;
1076
- }>]>>>;
1077
- createdAtLocation: z.ZodOptional<z.ZodString>;
1078
- updatedAtLocation: z.ZodOptional<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]>]>>>>;
1079
1182
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1080
- originalActionId: z.ZodOptional<z.ZodString>;
1183
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1081
1184
  }, {
1082
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
+ }>;
1083
1196
  }>, "strip", z.ZodTypeAny, {
1084
1197
  type: "REJECT";
1085
- id: string;
1198
+ id: string & z.BRAND<"UUID">;
1086
1199
  status: "Rejected" | "Requested" | "Accepted";
1200
+ reason: {
1201
+ message: string;
1202
+ isDuplicate?: boolean | undefined;
1203
+ };
1087
1204
  transactionId: string;
1205
+ createdByUserType: "system" | "user";
1088
1206
  createdAt: string;
1089
1207
  createdBy: string;
1090
1208
  createdByRole: string;
@@ -1103,6 +1221,10 @@ export declare const EventDocument: z.ZodObject<{
1103
1221
  residentialArea?: string | null | undefined;
1104
1222
  street?: string | null | undefined;
1105
1223
  zipCode?: string | null | undefined;
1224
+ } | {
1225
+ firstname: string;
1226
+ surname: string;
1227
+ middlename?: string | null | undefined;
1106
1228
  } | {
1107
1229
  country: string;
1108
1230
  district: string;
@@ -1125,7 +1247,9 @@ export declare const EventDocument: z.ZodObject<{
1125
1247
  option: string;
1126
1248
  filename: string;
1127
1249
  originalFilename: string;
1128
- }[] | undefined>;
1250
+ }[] | [string, string] | null | undefined>;
1251
+ createdBySignature?: string | null | undefined;
1252
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1129
1253
  annotation?: Record<string, string | number | boolean | {
1130
1254
  type: string;
1131
1255
  filename: string;
@@ -1141,6 +1265,10 @@ export declare const EventDocument: z.ZodObject<{
1141
1265
  residentialArea?: string | null | undefined;
1142
1266
  street?: string | null | undefined;
1143
1267
  zipCode?: string | null | undefined;
1268
+ } | {
1269
+ firstname: string;
1270
+ surname: string;
1271
+ middlename?: string | null | undefined;
1144
1272
  } | {
1145
1273
  country: string;
1146
1274
  district: string;
@@ -1163,15 +1291,18 @@ export declare const EventDocument: z.ZodObject<{
1163
1291
  option: string;
1164
1292
  filename: string;
1165
1293
  originalFilename: string;
1166
- }[] | undefined> | undefined;
1167
- createdAtLocation?: string | undefined;
1168
- updatedAtLocation?: string | undefined;
1169
- originalActionId?: string | undefined;
1294
+ }[] | [string, string] | null | undefined> | null | undefined;
1295
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1170
1296
  }, {
1171
1297
  type: "REJECT";
1172
1298
  id: string;
1173
1299
  status: "Rejected" | "Requested" | "Accepted";
1300
+ reason: {
1301
+ message: string;
1302
+ isDuplicate?: boolean | undefined;
1303
+ };
1174
1304
  transactionId: string;
1305
+ createdByUserType: "system" | "user";
1175
1306
  createdAt: string;
1176
1307
  createdBy: string;
1177
1308
  createdByRole: string;
@@ -1190,6 +1321,10 @@ export declare const EventDocument: z.ZodObject<{
1190
1321
  residentialArea?: string | null | undefined;
1191
1322
  street?: string | null | undefined;
1192
1323
  zipCode?: string | null | undefined;
1324
+ } | {
1325
+ firstname: string;
1326
+ surname: string;
1327
+ middlename?: string | null | undefined;
1193
1328
  } | {
1194
1329
  country: string;
1195
1330
  district: string;
@@ -1212,7 +1347,9 @@ export declare const EventDocument: z.ZodObject<{
1212
1347
  option: string;
1213
1348
  filename: string;
1214
1349
  originalFilename: string;
1215
- }[] | undefined>;
1350
+ }[] | [string, string] | null | undefined>;
1351
+ createdBySignature?: string | null | undefined;
1352
+ createdAtLocation?: string | null | undefined;
1216
1353
  annotation?: Record<string, string | number | boolean | {
1217
1354
  type: string;
1218
1355
  filename: string;
@@ -1228,6 +1365,10 @@ export declare const EventDocument: z.ZodObject<{
1228
1365
  residentialArea?: string | null | undefined;
1229
1366
  street?: string | null | undefined;
1230
1367
  zipCode?: string | null | undefined;
1368
+ } | {
1369
+ firstname: string;
1370
+ surname: string;
1371
+ middlename?: string | null | undefined;
1231
1372
  } | {
1232
1373
  country: string;
1233
1374
  district: string;
@@ -1250,17 +1391,18 @@ export declare const EventDocument: z.ZodObject<{
1250
1391
  option: string;
1251
1392
  filename: string;
1252
1393
  originalFilename: string;
1253
- }[] | undefined> | undefined;
1254
- createdAtLocation?: string | undefined;
1255
- updatedAtLocation?: string | undefined;
1256
- originalActionId?: string | undefined;
1394
+ }[] | [string, string] | null | undefined> | null | undefined;
1395
+ originalActionId?: string | null | undefined;
1257
1396
  }>, z.ZodObject<z.objectUtil.extendShape<{
1258
- id: z.ZodString;
1397
+ id: z.ZodBranded<z.ZodString, "UUID">;
1259
1398
  transactionId: z.ZodString;
1399
+ createdByUserType: z.ZodEnum<["user", "system"]>;
1260
1400
  createdAt: z.ZodString;
1261
1401
  createdBy: z.ZodString;
1262
1402
  createdByRole: z.ZodString;
1263
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1403
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1404
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
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<{
1264
1406
  filename: z.ZodString;
1265
1407
  originalFilename: z.ZodString;
1266
1408
  type: z.ZodString;
@@ -1373,8 +1515,20 @@ export declare const EventDocument: z.ZodObject<{
1373
1515
  addressLine2?: string | null | undefined;
1374
1516
  addressLine3?: string | null | undefined;
1375
1517
  postcodeOrZip?: string | null | undefined;
1376
- }>]>>;
1377
- annotation: 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.ZodNullable<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<{
1378
1532
  filename: z.ZodString;
1379
1533
  originalFilename: z.ZodString;
1380
1534
  type: z.ZodString;
@@ -1487,18 +1641,29 @@ export declare const EventDocument: z.ZodObject<{
1487
1641
  addressLine2?: string | null | undefined;
1488
1642
  addressLine3?: string | null | undefined;
1489
1643
  postcodeOrZip?: string | null | undefined;
1490
- }>]>>>;
1491
- createdAtLocation: z.ZodOptional<z.ZodString>;
1492
- updatedAtLocation: z.ZodOptional<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]>]>>>>;
1493
1657
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1494
- originalActionId: z.ZodOptional<z.ZodString>;
1658
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1495
1659
  }, {
1496
1660
  type: z.ZodLiteral<"MARKED_AS_DUPLICATE">;
1497
1661
  }>, "strip", z.ZodTypeAny, {
1498
1662
  type: "MARKED_AS_DUPLICATE";
1499
- id: string;
1663
+ id: string & z.BRAND<"UUID">;
1500
1664
  status: "Rejected" | "Requested" | "Accepted";
1501
1665
  transactionId: string;
1666
+ createdByUserType: "system" | "user";
1502
1667
  createdAt: string;
1503
1668
  createdBy: string;
1504
1669
  createdByRole: string;
@@ -1517,6 +1682,10 @@ export declare const EventDocument: z.ZodObject<{
1517
1682
  residentialArea?: string | null | undefined;
1518
1683
  street?: string | null | undefined;
1519
1684
  zipCode?: string | null | undefined;
1685
+ } | {
1686
+ firstname: string;
1687
+ surname: string;
1688
+ middlename?: string | null | undefined;
1520
1689
  } | {
1521
1690
  country: string;
1522
1691
  district: string;
@@ -1539,7 +1708,9 @@ export declare const EventDocument: z.ZodObject<{
1539
1708
  option: string;
1540
1709
  filename: string;
1541
1710
  originalFilename: string;
1542
- }[] | undefined>;
1711
+ }[] | [string, string] | null | undefined>;
1712
+ createdBySignature?: string | null | undefined;
1713
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1543
1714
  annotation?: Record<string, string | number | boolean | {
1544
1715
  type: string;
1545
1716
  filename: string;
@@ -1555,6 +1726,10 @@ export declare const EventDocument: z.ZodObject<{
1555
1726
  residentialArea?: string | null | undefined;
1556
1727
  street?: string | null | undefined;
1557
1728
  zipCode?: string | null | undefined;
1729
+ } | {
1730
+ firstname: string;
1731
+ surname: string;
1732
+ middlename?: string | null | undefined;
1558
1733
  } | {
1559
1734
  country: string;
1560
1735
  district: string;
@@ -1577,15 +1752,14 @@ export declare const EventDocument: z.ZodObject<{
1577
1752
  option: string;
1578
1753
  filename: string;
1579
1754
  originalFilename: string;
1580
- }[] | undefined> | undefined;
1581
- createdAtLocation?: string | undefined;
1582
- updatedAtLocation?: string | undefined;
1583
- originalActionId?: string | undefined;
1755
+ }[] | [string, string] | null | undefined> | null | undefined;
1756
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1584
1757
  }, {
1585
1758
  type: "MARKED_AS_DUPLICATE";
1586
1759
  id: string;
1587
1760
  status: "Rejected" | "Requested" | "Accepted";
1588
1761
  transactionId: string;
1762
+ createdByUserType: "system" | "user";
1589
1763
  createdAt: string;
1590
1764
  createdBy: string;
1591
1765
  createdByRole: string;
@@ -1604,6 +1778,10 @@ export declare const EventDocument: z.ZodObject<{
1604
1778
  residentialArea?: string | null | undefined;
1605
1779
  street?: string | null | undefined;
1606
1780
  zipCode?: string | null | undefined;
1781
+ } | {
1782
+ firstname: string;
1783
+ surname: string;
1784
+ middlename?: string | null | undefined;
1607
1785
  } | {
1608
1786
  country: string;
1609
1787
  district: string;
@@ -1626,7 +1804,9 @@ export declare const EventDocument: z.ZodObject<{
1626
1804
  option: string;
1627
1805
  filename: string;
1628
1806
  originalFilename: string;
1629
- }[] | undefined>;
1807
+ }[] | [string, string] | null | undefined>;
1808
+ createdBySignature?: string | null | undefined;
1809
+ createdAtLocation?: string | null | undefined;
1630
1810
  annotation?: Record<string, string | number | boolean | {
1631
1811
  type: string;
1632
1812
  filename: string;
@@ -1642,6 +1822,10 @@ export declare const EventDocument: z.ZodObject<{
1642
1822
  residentialArea?: string | null | undefined;
1643
1823
  street?: string | null | undefined;
1644
1824
  zipCode?: string | null | undefined;
1825
+ } | {
1826
+ firstname: string;
1827
+ surname: string;
1828
+ middlename?: string | null | undefined;
1645
1829
  } | {
1646
1830
  country: string;
1647
1831
  district: string;
@@ -1664,17 +1848,18 @@ export declare const EventDocument: z.ZodObject<{
1664
1848
  option: string;
1665
1849
  filename: string;
1666
1850
  originalFilename: string;
1667
- }[] | undefined> | undefined;
1668
- createdAtLocation?: string | undefined;
1669
- updatedAtLocation?: string | undefined;
1670
- originalActionId?: string | undefined;
1851
+ }[] | [string, string] | null | undefined> | null | undefined;
1852
+ originalActionId?: string | null | undefined;
1671
1853
  }>, z.ZodObject<z.objectUtil.extendShape<{
1672
- id: z.ZodString;
1854
+ id: z.ZodBranded<z.ZodString, "UUID">;
1673
1855
  transactionId: z.ZodString;
1856
+ createdByUserType: z.ZodEnum<["user", "system"]>;
1674
1857
  createdAt: z.ZodString;
1675
1858
  createdBy: z.ZodString;
1676
1859
  createdByRole: z.ZodString;
1677
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1860
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1861
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
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<{
1678
1863
  filename: z.ZodString;
1679
1864
  originalFilename: z.ZodString;
1680
1865
  type: z.ZodString;
@@ -1787,8 +1972,20 @@ export declare const EventDocument: z.ZodObject<{
1787
1972
  addressLine2?: string | null | undefined;
1788
1973
  addressLine3?: string | null | undefined;
1789
1974
  postcodeOrZip?: string | null | undefined;
1790
- }>]>>;
1791
- annotation: 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.ZodNullable<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<{
1792
1989
  filename: z.ZodString;
1793
1990
  originalFilename: z.ZodString;
1794
1991
  type: z.ZodString;
@@ -1901,18 +2098,43 @@ export declare const EventDocument: z.ZodObject<{
1901
2098
  addressLine2?: string | null | undefined;
1902
2099
  addressLine3?: string | null | undefined;
1903
2100
  postcodeOrZip?: string | null | undefined;
1904
- }>]>>>;
1905
- createdAtLocation: z.ZodOptional<z.ZodString>;
1906
- updatedAtLocation: z.ZodOptional<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]>]>>>>;
1907
2114
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1908
- originalActionId: z.ZodOptional<z.ZodString>;
2115
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1909
2116
  }, {
1910
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
+ }>;
1911
2128
  }>, "strip", z.ZodTypeAny, {
1912
2129
  type: "ARCHIVE";
1913
- id: string;
2130
+ id: string & z.BRAND<"UUID">;
1914
2131
  status: "Rejected" | "Requested" | "Accepted";
2132
+ reason: {
2133
+ message: string;
2134
+ isDuplicate?: boolean | undefined;
2135
+ };
1915
2136
  transactionId: string;
2137
+ createdByUserType: "system" | "user";
1916
2138
  createdAt: string;
1917
2139
  createdBy: string;
1918
2140
  createdByRole: string;
@@ -1931,6 +2153,10 @@ export declare const EventDocument: z.ZodObject<{
1931
2153
  residentialArea?: string | null | undefined;
1932
2154
  street?: string | null | undefined;
1933
2155
  zipCode?: string | null | undefined;
2156
+ } | {
2157
+ firstname: string;
2158
+ surname: string;
2159
+ middlename?: string | null | undefined;
1934
2160
  } | {
1935
2161
  country: string;
1936
2162
  district: string;
@@ -1953,7 +2179,9 @@ export declare const EventDocument: z.ZodObject<{
1953
2179
  option: string;
1954
2180
  filename: string;
1955
2181
  originalFilename: string;
1956
- }[] | undefined>;
2182
+ }[] | [string, string] | null | undefined>;
2183
+ createdBySignature?: string | null | undefined;
2184
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1957
2185
  annotation?: Record<string, string | number | boolean | {
1958
2186
  type: string;
1959
2187
  filename: string;
@@ -1969,6 +2197,10 @@ export declare const EventDocument: z.ZodObject<{
1969
2197
  residentialArea?: string | null | undefined;
1970
2198
  street?: string | null | undefined;
1971
2199
  zipCode?: string | null | undefined;
2200
+ } | {
2201
+ firstname: string;
2202
+ surname: string;
2203
+ middlename?: string | null | undefined;
1972
2204
  } | {
1973
2205
  country: string;
1974
2206
  district: string;
@@ -1991,15 +2223,18 @@ export declare const EventDocument: z.ZodObject<{
1991
2223
  option: string;
1992
2224
  filename: string;
1993
2225
  originalFilename: string;
1994
- }[] | undefined> | undefined;
1995
- createdAtLocation?: string | undefined;
1996
- updatedAtLocation?: string | undefined;
1997
- originalActionId?: string | undefined;
2226
+ }[] | [string, string] | null | undefined> | null | undefined;
2227
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1998
2228
  }, {
1999
2229
  type: "ARCHIVE";
2000
2230
  id: string;
2001
2231
  status: "Rejected" | "Requested" | "Accepted";
2232
+ reason: {
2233
+ message: string;
2234
+ isDuplicate?: boolean | undefined;
2235
+ };
2002
2236
  transactionId: string;
2237
+ createdByUserType: "system" | "user";
2003
2238
  createdAt: string;
2004
2239
  createdBy: string;
2005
2240
  createdByRole: string;
@@ -2018,6 +2253,10 @@ export declare const EventDocument: z.ZodObject<{
2018
2253
  residentialArea?: string | null | undefined;
2019
2254
  street?: string | null | undefined;
2020
2255
  zipCode?: string | null | undefined;
2256
+ } | {
2257
+ firstname: string;
2258
+ surname: string;
2259
+ middlename?: string | null | undefined;
2021
2260
  } | {
2022
2261
  country: string;
2023
2262
  district: string;
@@ -2040,7 +2279,9 @@ export declare const EventDocument: z.ZodObject<{
2040
2279
  option: string;
2041
2280
  filename: string;
2042
2281
  originalFilename: string;
2043
- }[] | undefined>;
2282
+ }[] | [string, string] | null | undefined>;
2283
+ createdBySignature?: string | null | undefined;
2284
+ createdAtLocation?: string | null | undefined;
2044
2285
  annotation?: Record<string, string | number | boolean | {
2045
2286
  type: string;
2046
2287
  filename: string;
@@ -2056,6 +2297,10 @@ export declare const EventDocument: z.ZodObject<{
2056
2297
  residentialArea?: string | null | undefined;
2057
2298
  street?: string | null | undefined;
2058
2299
  zipCode?: string | null | undefined;
2300
+ } | {
2301
+ firstname: string;
2302
+ surname: string;
2303
+ middlename?: string | null | undefined;
2059
2304
  } | {
2060
2305
  country: string;
2061
2306
  district: string;
@@ -2078,17 +2323,18 @@ export declare const EventDocument: z.ZodObject<{
2078
2323
  option: string;
2079
2324
  filename: string;
2080
2325
  originalFilename: string;
2081
- }[] | undefined> | undefined;
2082
- createdAtLocation?: string | undefined;
2083
- updatedAtLocation?: string | undefined;
2084
- originalActionId?: string | undefined;
2326
+ }[] | [string, string] | null | undefined> | null | undefined;
2327
+ originalActionId?: string | null | undefined;
2085
2328
  }>, z.ZodObject<z.objectUtil.extendShape<{
2086
- id: z.ZodString;
2329
+ id: z.ZodBranded<z.ZodString, "UUID">;
2087
2330
  transactionId: z.ZodString;
2331
+ createdByUserType: z.ZodEnum<["user", "system"]>;
2088
2332
  createdAt: z.ZodString;
2089
2333
  createdBy: z.ZodString;
2090
2334
  createdByRole: z.ZodString;
2091
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2335
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2336
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
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<{
2092
2338
  filename: z.ZodString;
2093
2339
  originalFilename: z.ZodString;
2094
2340
  type: z.ZodString;
@@ -2201,8 +2447,20 @@ export declare const EventDocument: z.ZodObject<{
2201
2447
  addressLine2?: string | null | undefined;
2202
2448
  addressLine3?: string | null | undefined;
2203
2449
  postcodeOrZip?: string | null | undefined;
2204
- }>]>>;
2205
- annotation: 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.ZodNullable<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<{
2206
2464
  filename: z.ZodString;
2207
2465
  originalFilename: z.ZodString;
2208
2466
  type: z.ZodString;
@@ -2315,18 +2573,29 @@ export declare const EventDocument: z.ZodObject<{
2315
2573
  addressLine2?: string | null | undefined;
2316
2574
  addressLine3?: string | null | undefined;
2317
2575
  postcodeOrZip?: string | null | undefined;
2318
- }>]>>>;
2319
- createdAtLocation: z.ZodOptional<z.ZodString>;
2320
- updatedAtLocation: z.ZodOptional<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]>]>>>>;
2321
2589
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2322
- originalActionId: z.ZodOptional<z.ZodString>;
2590
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
2323
2591
  }, {
2324
2592
  type: z.ZodLiteral<"NOTIFY">;
2325
2593
  }>, "strip", z.ZodTypeAny, {
2326
2594
  type: "NOTIFY";
2327
- id: string;
2595
+ id: string & z.BRAND<"UUID">;
2328
2596
  status: "Rejected" | "Requested" | "Accepted";
2329
2597
  transactionId: string;
2598
+ createdByUserType: "system" | "user";
2330
2599
  createdAt: string;
2331
2600
  createdBy: string;
2332
2601
  createdByRole: string;
@@ -2345,6 +2614,10 @@ export declare const EventDocument: z.ZodObject<{
2345
2614
  residentialArea?: string | null | undefined;
2346
2615
  street?: string | null | undefined;
2347
2616
  zipCode?: string | null | undefined;
2617
+ } | {
2618
+ firstname: string;
2619
+ surname: string;
2620
+ middlename?: string | null | undefined;
2348
2621
  } | {
2349
2622
  country: string;
2350
2623
  district: string;
@@ -2367,7 +2640,9 @@ export declare const EventDocument: z.ZodObject<{
2367
2640
  option: string;
2368
2641
  filename: string;
2369
2642
  originalFilename: string;
2370
- }[] | undefined>;
2643
+ }[] | [string, string] | null | undefined>;
2644
+ createdBySignature?: string | null | undefined;
2645
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
2371
2646
  annotation?: Record<string, string | number | boolean | {
2372
2647
  type: string;
2373
2648
  filename: string;
@@ -2383,6 +2658,10 @@ export declare const EventDocument: z.ZodObject<{
2383
2658
  residentialArea?: string | null | undefined;
2384
2659
  street?: string | null | undefined;
2385
2660
  zipCode?: string | null | undefined;
2661
+ } | {
2662
+ firstname: string;
2663
+ surname: string;
2664
+ middlename?: string | null | undefined;
2386
2665
  } | {
2387
2666
  country: string;
2388
2667
  district: string;
@@ -2405,15 +2684,14 @@ export declare const EventDocument: z.ZodObject<{
2405
2684
  option: string;
2406
2685
  filename: string;
2407
2686
  originalFilename: string;
2408
- }[] | undefined> | undefined;
2409
- createdAtLocation?: string | undefined;
2410
- updatedAtLocation?: string | undefined;
2411
- originalActionId?: string | undefined;
2687
+ }[] | [string, string] | null | undefined> | null | undefined;
2688
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
2412
2689
  }, {
2413
2690
  type: "NOTIFY";
2414
2691
  id: string;
2415
2692
  status: "Rejected" | "Requested" | "Accepted";
2416
2693
  transactionId: string;
2694
+ createdByUserType: "system" | "user";
2417
2695
  createdAt: string;
2418
2696
  createdBy: string;
2419
2697
  createdByRole: string;
@@ -2432,6 +2710,10 @@ export declare const EventDocument: z.ZodObject<{
2432
2710
  residentialArea?: string | null | undefined;
2433
2711
  street?: string | null | undefined;
2434
2712
  zipCode?: string | null | undefined;
2713
+ } | {
2714
+ firstname: string;
2715
+ surname: string;
2716
+ middlename?: string | null | undefined;
2435
2717
  } | {
2436
2718
  country: string;
2437
2719
  district: string;
@@ -2454,7 +2736,9 @@ export declare const EventDocument: z.ZodObject<{
2454
2736
  option: string;
2455
2737
  filename: string;
2456
2738
  originalFilename: string;
2457
- }[] | undefined>;
2739
+ }[] | [string, string] | null | undefined>;
2740
+ createdBySignature?: string | null | undefined;
2741
+ createdAtLocation?: string | null | undefined;
2458
2742
  annotation?: Record<string, string | number | boolean | {
2459
2743
  type: string;
2460
2744
  filename: string;
@@ -2470,6 +2754,10 @@ export declare const EventDocument: z.ZodObject<{
2470
2754
  residentialArea?: string | null | undefined;
2471
2755
  street?: string | null | undefined;
2472
2756
  zipCode?: string | null | undefined;
2757
+ } | {
2758
+ firstname: string;
2759
+ surname: string;
2760
+ middlename?: string | null | undefined;
2473
2761
  } | {
2474
2762
  country: string;
2475
2763
  district: string;
@@ -2492,17 +2780,18 @@ export declare const EventDocument: z.ZodObject<{
2492
2780
  option: string;
2493
2781
  filename: string;
2494
2782
  originalFilename: string;
2495
- }[] | undefined> | undefined;
2496
- createdAtLocation?: string | undefined;
2497
- updatedAtLocation?: string | undefined;
2498
- originalActionId?: string | undefined;
2783
+ }[] | [string, string] | null | undefined> | null | undefined;
2784
+ originalActionId?: string | null | undefined;
2499
2785
  }>, z.ZodObject<z.objectUtil.extendShape<{
2500
- id: z.ZodString;
2786
+ id: z.ZodBranded<z.ZodString, "UUID">;
2501
2787
  transactionId: z.ZodString;
2788
+ createdByUserType: z.ZodEnum<["user", "system"]>;
2502
2789
  createdAt: z.ZodString;
2503
2790
  createdBy: z.ZodString;
2504
2791
  createdByRole: z.ZodString;
2505
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2792
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2793
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
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<{
2506
2795
  filename: z.ZodString;
2507
2796
  originalFilename: z.ZodString;
2508
2797
  type: z.ZodString;
@@ -2615,8 +2904,20 @@ export declare const EventDocument: z.ZodObject<{
2615
2904
  addressLine2?: string | null | undefined;
2616
2905
  addressLine3?: string | null | undefined;
2617
2906
  postcodeOrZip?: string | null | undefined;
2618
- }>]>>;
2619
- annotation: 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.ZodNullable<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<{
2620
2921
  filename: z.ZodString;
2621
2922
  originalFilename: z.ZodString;
2622
2923
  type: z.ZodString;
@@ -2729,19 +3030,30 @@ export declare const EventDocument: z.ZodObject<{
2729
3030
  addressLine2?: string | null | undefined;
2730
3031
  addressLine3?: string | null | undefined;
2731
3032
  postcodeOrZip?: string | null | undefined;
2732
- }>]>>>;
2733
- createdAtLocation: z.ZodOptional<z.ZodString>;
2734
- updatedAtLocation: z.ZodOptional<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]>]>>>>;
2735
3046
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2736
- originalActionId: z.ZodOptional<z.ZodString>;
3047
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
2737
3048
  }, {
2738
3049
  type: z.ZodLiteral<"REGISTER">;
2739
3050
  registrationNumber: z.ZodOptional<z.ZodString>;
2740
3051
  }>, "strip", z.ZodTypeAny, {
2741
3052
  type: "REGISTER";
2742
- id: string;
3053
+ id: string & z.BRAND<"UUID">;
2743
3054
  status: "Rejected" | "Requested" | "Accepted";
2744
3055
  transactionId: string;
3056
+ createdByUserType: "system" | "user";
2745
3057
  createdAt: string;
2746
3058
  createdBy: string;
2747
3059
  createdByRole: string;
@@ -2760,6 +3072,10 @@ export declare const EventDocument: z.ZodObject<{
2760
3072
  residentialArea?: string | null | undefined;
2761
3073
  street?: string | null | undefined;
2762
3074
  zipCode?: string | null | undefined;
3075
+ } | {
3076
+ firstname: string;
3077
+ surname: string;
3078
+ middlename?: string | null | undefined;
2763
3079
  } | {
2764
3080
  country: string;
2765
3081
  district: string;
@@ -2782,7 +3098,9 @@ export declare const EventDocument: z.ZodObject<{
2782
3098
  option: string;
2783
3099
  filename: string;
2784
3100
  originalFilename: string;
2785
- }[] | undefined>;
3101
+ }[] | [string, string] | null | undefined>;
3102
+ createdBySignature?: string | null | undefined;
3103
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
2786
3104
  annotation?: Record<string, string | number | boolean | {
2787
3105
  type: string;
2788
3106
  filename: string;
@@ -2798,6 +3116,10 @@ export declare const EventDocument: z.ZodObject<{
2798
3116
  residentialArea?: string | null | undefined;
2799
3117
  street?: string | null | undefined;
2800
3118
  zipCode?: string | null | undefined;
3119
+ } | {
3120
+ firstname: string;
3121
+ surname: string;
3122
+ middlename?: string | null | undefined;
2801
3123
  } | {
2802
3124
  country: string;
2803
3125
  district: string;
@@ -2820,16 +3142,15 @@ export declare const EventDocument: z.ZodObject<{
2820
3142
  option: string;
2821
3143
  filename: string;
2822
3144
  originalFilename: string;
2823
- }[] | undefined> | undefined;
2824
- createdAtLocation?: string | undefined;
2825
- updatedAtLocation?: string | undefined;
2826
- originalActionId?: string | undefined;
3145
+ }[] | [string, string] | null | undefined> | null | undefined;
3146
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
2827
3147
  registrationNumber?: string | undefined;
2828
3148
  }, {
2829
3149
  type: "REGISTER";
2830
3150
  id: string;
2831
3151
  status: "Rejected" | "Requested" | "Accepted";
2832
3152
  transactionId: string;
3153
+ createdByUserType: "system" | "user";
2833
3154
  createdAt: string;
2834
3155
  createdBy: string;
2835
3156
  createdByRole: string;
@@ -2848,6 +3169,10 @@ export declare const EventDocument: z.ZodObject<{
2848
3169
  residentialArea?: string | null | undefined;
2849
3170
  street?: string | null | undefined;
2850
3171
  zipCode?: string | null | undefined;
3172
+ } | {
3173
+ firstname: string;
3174
+ surname: string;
3175
+ middlename?: string | null | undefined;
2851
3176
  } | {
2852
3177
  country: string;
2853
3178
  district: string;
@@ -2870,7 +3195,9 @@ export declare const EventDocument: z.ZodObject<{
2870
3195
  option: string;
2871
3196
  filename: string;
2872
3197
  originalFilename: string;
2873
- }[] | undefined>;
3198
+ }[] | [string, string] | null | undefined>;
3199
+ createdBySignature?: string | null | undefined;
3200
+ createdAtLocation?: string | null | undefined;
2874
3201
  annotation?: Record<string, string | number | boolean | {
2875
3202
  type: string;
2876
3203
  filename: string;
@@ -2886,6 +3213,10 @@ export declare const EventDocument: z.ZodObject<{
2886
3213
  residentialArea?: string | null | undefined;
2887
3214
  street?: string | null | undefined;
2888
3215
  zipCode?: string | null | undefined;
3216
+ } | {
3217
+ firstname: string;
3218
+ surname: string;
3219
+ middlename?: string | null | undefined;
2889
3220
  } | {
2890
3221
  country: string;
2891
3222
  district: string;
@@ -2908,18 +3239,19 @@ export declare const EventDocument: z.ZodObject<{
2908
3239
  option: string;
2909
3240
  filename: string;
2910
3241
  originalFilename: string;
2911
- }[] | undefined> | undefined;
2912
- createdAtLocation?: string | undefined;
2913
- updatedAtLocation?: string | undefined;
2914
- originalActionId?: string | undefined;
3242
+ }[] | [string, string] | null | undefined> | null | undefined;
3243
+ originalActionId?: string | null | undefined;
2915
3244
  registrationNumber?: string | undefined;
2916
3245
  }>, z.ZodObject<z.objectUtil.extendShape<{
2917
- id: z.ZodString;
3246
+ id: z.ZodBranded<z.ZodString, "UUID">;
2918
3247
  transactionId: z.ZodString;
3248
+ createdByUserType: z.ZodEnum<["user", "system"]>;
2919
3249
  createdAt: z.ZodString;
2920
3250
  createdBy: z.ZodString;
2921
3251
  createdByRole: z.ZodString;
2922
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3252
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3253
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
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<{
2923
3255
  filename: z.ZodString;
2924
3256
  originalFilename: z.ZodString;
2925
3257
  type: z.ZodString;
@@ -3032,8 +3364,20 @@ export declare const EventDocument: z.ZodObject<{
3032
3364
  addressLine2?: string | null | undefined;
3033
3365
  addressLine3?: string | null | undefined;
3034
3366
  postcodeOrZip?: string | null | undefined;
3035
- }>]>>;
3036
- annotation: 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.ZodNullable<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<{
3037
3381
  filename: z.ZodString;
3038
3382
  originalFilename: z.ZodString;
3039
3383
  type: z.ZodString;
@@ -3146,18 +3490,29 @@ export declare const EventDocument: z.ZodObject<{
3146
3490
  addressLine2?: string | null | undefined;
3147
3491
  addressLine3?: string | null | undefined;
3148
3492
  postcodeOrZip?: string | null | undefined;
3149
- }>]>>>;
3150
- createdAtLocation: z.ZodOptional<z.ZodString>;
3151
- updatedAtLocation: z.ZodOptional<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]>]>>>>;
3152
3506
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3153
- originalActionId: z.ZodOptional<z.ZodString>;
3507
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
3154
3508
  }, {
3155
3509
  type: z.ZodLiteral<"DECLARE">;
3156
3510
  }>, "strip", z.ZodTypeAny, {
3157
3511
  type: "DECLARE";
3158
- id: string;
3512
+ id: string & z.BRAND<"UUID">;
3159
3513
  status: "Rejected" | "Requested" | "Accepted";
3160
3514
  transactionId: string;
3515
+ createdByUserType: "system" | "user";
3161
3516
  createdAt: string;
3162
3517
  createdBy: string;
3163
3518
  createdByRole: string;
@@ -3176,6 +3531,10 @@ export declare const EventDocument: z.ZodObject<{
3176
3531
  residentialArea?: string | null | undefined;
3177
3532
  street?: string | null | undefined;
3178
3533
  zipCode?: string | null | undefined;
3534
+ } | {
3535
+ firstname: string;
3536
+ surname: string;
3537
+ middlename?: string | null | undefined;
3179
3538
  } | {
3180
3539
  country: string;
3181
3540
  district: string;
@@ -3198,7 +3557,9 @@ export declare const EventDocument: z.ZodObject<{
3198
3557
  option: string;
3199
3558
  filename: string;
3200
3559
  originalFilename: string;
3201
- }[] | undefined>;
3560
+ }[] | [string, string] | null | undefined>;
3561
+ createdBySignature?: string | null | undefined;
3562
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
3202
3563
  annotation?: Record<string, string | number | boolean | {
3203
3564
  type: string;
3204
3565
  filename: string;
@@ -3214,6 +3575,10 @@ export declare const EventDocument: z.ZodObject<{
3214
3575
  residentialArea?: string | null | undefined;
3215
3576
  street?: string | null | undefined;
3216
3577
  zipCode?: string | null | undefined;
3578
+ } | {
3579
+ firstname: string;
3580
+ surname: string;
3581
+ middlename?: string | null | undefined;
3217
3582
  } | {
3218
3583
  country: string;
3219
3584
  district: string;
@@ -3236,15 +3601,14 @@ export declare const EventDocument: z.ZodObject<{
3236
3601
  option: string;
3237
3602
  filename: string;
3238
3603
  originalFilename: string;
3239
- }[] | undefined> | undefined;
3240
- createdAtLocation?: string | undefined;
3241
- updatedAtLocation?: string | undefined;
3242
- originalActionId?: string | undefined;
3604
+ }[] | [string, string] | null | undefined> | null | undefined;
3605
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
3243
3606
  }, {
3244
3607
  type: "DECLARE";
3245
3608
  id: string;
3246
3609
  status: "Rejected" | "Requested" | "Accepted";
3247
3610
  transactionId: string;
3611
+ createdByUserType: "system" | "user";
3248
3612
  createdAt: string;
3249
3613
  createdBy: string;
3250
3614
  createdByRole: string;
@@ -3263,6 +3627,10 @@ export declare const EventDocument: z.ZodObject<{
3263
3627
  residentialArea?: string | null | undefined;
3264
3628
  street?: string | null | undefined;
3265
3629
  zipCode?: string | null | undefined;
3630
+ } | {
3631
+ firstname: string;
3632
+ surname: string;
3633
+ middlename?: string | null | undefined;
3266
3634
  } | {
3267
3635
  country: string;
3268
3636
  district: string;
@@ -3285,7 +3653,9 @@ export declare const EventDocument: z.ZodObject<{
3285
3653
  option: string;
3286
3654
  filename: string;
3287
3655
  originalFilename: string;
3288
- }[] | undefined>;
3656
+ }[] | [string, string] | null | undefined>;
3657
+ createdBySignature?: string | null | undefined;
3658
+ createdAtLocation?: string | null | undefined;
3289
3659
  annotation?: Record<string, string | number | boolean | {
3290
3660
  type: string;
3291
3661
  filename: string;
@@ -3301,6 +3671,10 @@ export declare const EventDocument: z.ZodObject<{
3301
3671
  residentialArea?: string | null | undefined;
3302
3672
  street?: string | null | undefined;
3303
3673
  zipCode?: string | null | undefined;
3674
+ } | {
3675
+ firstname: string;
3676
+ surname: string;
3677
+ middlename?: string | null | undefined;
3304
3678
  } | {
3305
3679
  country: string;
3306
3680
  district: string;
@@ -3323,17 +3697,18 @@ export declare const EventDocument: z.ZodObject<{
3323
3697
  option: string;
3324
3698
  filename: string;
3325
3699
  originalFilename: string;
3326
- }[] | undefined> | undefined;
3327
- createdAtLocation?: string | undefined;
3328
- updatedAtLocation?: string | undefined;
3329
- originalActionId?: string | undefined;
3700
+ }[] | [string, string] | null | undefined> | null | undefined;
3701
+ originalActionId?: string | null | undefined;
3330
3702
  }>, z.ZodObject<z.objectUtil.extendShape<{
3331
- id: z.ZodString;
3703
+ id: z.ZodBranded<z.ZodString, "UUID">;
3332
3704
  transactionId: z.ZodString;
3705
+ createdByUserType: z.ZodEnum<["user", "system"]>;
3333
3706
  createdAt: z.ZodString;
3334
3707
  createdBy: z.ZodString;
3335
3708
  createdByRole: z.ZodString;
3336
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3709
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3710
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
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<{
3337
3712
  filename: z.ZodString;
3338
3713
  originalFilename: z.ZodString;
3339
3714
  type: z.ZodString;
@@ -3446,8 +3821,20 @@ export declare const EventDocument: z.ZodObject<{
3446
3821
  addressLine2?: string | null | undefined;
3447
3822
  addressLine3?: string | null | undefined;
3448
3823
  postcodeOrZip?: string | null | undefined;
3449
- }>]>>;
3450
- annotation: 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.ZodNullable<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<{
3451
3838
  filename: z.ZodString;
3452
3839
  originalFilename: z.ZodString;
3453
3840
  type: z.ZodString;
@@ -3560,19 +3947,30 @@ export declare const EventDocument: z.ZodObject<{
3560
3947
  addressLine2?: string | null | undefined;
3561
3948
  addressLine3?: string | null | undefined;
3562
3949
  postcodeOrZip?: string | null | undefined;
3563
- }>]>>>;
3564
- createdAtLocation: z.ZodOptional<z.ZodString>;
3565
- updatedAtLocation: z.ZodOptional<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]>]>>>>;
3566
3963
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3567
- originalActionId: z.ZodOptional<z.ZodString>;
3964
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
3568
3965
  }, {
3569
3966
  type: z.ZodLiteral<"ASSIGN">;
3570
3967
  assignedTo: z.ZodString;
3571
3968
  }>, "strip", z.ZodTypeAny, {
3572
3969
  type: "ASSIGN";
3573
- id: string;
3970
+ id: string & z.BRAND<"UUID">;
3574
3971
  status: "Rejected" | "Requested" | "Accepted";
3575
3972
  transactionId: string;
3973
+ createdByUserType: "system" | "user";
3576
3974
  createdAt: string;
3577
3975
  createdBy: string;
3578
3976
  createdByRole: string;
@@ -3591,6 +3989,10 @@ export declare const EventDocument: z.ZodObject<{
3591
3989
  residentialArea?: string | null | undefined;
3592
3990
  street?: string | null | undefined;
3593
3991
  zipCode?: string | null | undefined;
3992
+ } | {
3993
+ firstname: string;
3994
+ surname: string;
3995
+ middlename?: string | null | undefined;
3594
3996
  } | {
3595
3997
  country: string;
3596
3998
  district: string;
@@ -3613,8 +4015,10 @@ export declare const EventDocument: z.ZodObject<{
3613
4015
  option: string;
3614
4016
  filename: string;
3615
4017
  originalFilename: string;
3616
- }[] | undefined>;
4018
+ }[] | [string, string] | null | undefined>;
3617
4019
  assignedTo: string;
4020
+ createdBySignature?: string | null | undefined;
4021
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
3618
4022
  annotation?: Record<string, string | number | boolean | {
3619
4023
  type: string;
3620
4024
  filename: string;
@@ -3630,6 +4034,10 @@ export declare const EventDocument: z.ZodObject<{
3630
4034
  residentialArea?: string | null | undefined;
3631
4035
  street?: string | null | undefined;
3632
4036
  zipCode?: string | null | undefined;
4037
+ } | {
4038
+ firstname: string;
4039
+ surname: string;
4040
+ middlename?: string | null | undefined;
3633
4041
  } | {
3634
4042
  country: string;
3635
4043
  district: string;
@@ -3652,15 +4060,14 @@ export declare const EventDocument: z.ZodObject<{
3652
4060
  option: string;
3653
4061
  filename: string;
3654
4062
  originalFilename: string;
3655
- }[] | undefined> | undefined;
3656
- createdAtLocation?: string | undefined;
3657
- updatedAtLocation?: string | undefined;
3658
- originalActionId?: string | undefined;
4063
+ }[] | [string, string] | null | undefined> | null | undefined;
4064
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
3659
4065
  }, {
3660
4066
  type: "ASSIGN";
3661
4067
  id: string;
3662
4068
  status: "Rejected" | "Requested" | "Accepted";
3663
4069
  transactionId: string;
4070
+ createdByUserType: "system" | "user";
3664
4071
  createdAt: string;
3665
4072
  createdBy: string;
3666
4073
  createdByRole: string;
@@ -3679,6 +4086,10 @@ export declare const EventDocument: z.ZodObject<{
3679
4086
  residentialArea?: string | null | undefined;
3680
4087
  street?: string | null | undefined;
3681
4088
  zipCode?: string | null | undefined;
4089
+ } | {
4090
+ firstname: string;
4091
+ surname: string;
4092
+ middlename?: string | null | undefined;
3682
4093
  } | {
3683
4094
  country: string;
3684
4095
  district: string;
@@ -3701,8 +4112,10 @@ export declare const EventDocument: z.ZodObject<{
3701
4112
  option: string;
3702
4113
  filename: string;
3703
4114
  originalFilename: string;
3704
- }[] | undefined>;
4115
+ }[] | [string, string] | null | undefined>;
3705
4116
  assignedTo: string;
4117
+ createdBySignature?: string | null | undefined;
4118
+ createdAtLocation?: string | null | undefined;
3706
4119
  annotation?: Record<string, string | number | boolean | {
3707
4120
  type: string;
3708
4121
  filename: string;
@@ -3718,6 +4131,10 @@ export declare const EventDocument: z.ZodObject<{
3718
4131
  residentialArea?: string | null | undefined;
3719
4132
  street?: string | null | undefined;
3720
4133
  zipCode?: string | null | undefined;
4134
+ } | {
4135
+ firstname: string;
4136
+ surname: string;
4137
+ middlename?: string | null | undefined;
3721
4138
  } | {
3722
4139
  country: string;
3723
4140
  district: string;
@@ -3740,17 +4157,18 @@ export declare const EventDocument: z.ZodObject<{
3740
4157
  option: string;
3741
4158
  filename: string;
3742
4159
  originalFilename: string;
3743
- }[] | undefined> | undefined;
3744
- createdAtLocation?: string | undefined;
3745
- updatedAtLocation?: string | undefined;
3746
- originalActionId?: string | undefined;
4160
+ }[] | [string, string] | null | undefined> | null | undefined;
4161
+ originalActionId?: string | null | undefined;
3747
4162
  }>, z.ZodObject<z.objectUtil.extendShape<{
3748
- id: z.ZodString;
4163
+ id: z.ZodBranded<z.ZodString, "UUID">;
3749
4164
  transactionId: z.ZodString;
4165
+ createdByUserType: z.ZodEnum<["user", "system"]>;
3750
4166
  createdAt: z.ZodString;
3751
4167
  createdBy: z.ZodString;
3752
4168
  createdByRole: z.ZodString;
3753
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4169
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4170
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
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<{
3754
4172
  filename: z.ZodString;
3755
4173
  originalFilename: z.ZodString;
3756
4174
  type: z.ZodString;
@@ -3863,8 +4281,20 @@ export declare const EventDocument: z.ZodObject<{
3863
4281
  addressLine2?: string | null | undefined;
3864
4282
  addressLine3?: string | null | undefined;
3865
4283
  postcodeOrZip?: string | null | undefined;
3866
- }>]>>;
3867
- annotation: 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.ZodNullable<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<{
3868
4298
  filename: z.ZodString;
3869
4299
  originalFilename: z.ZodString;
3870
4300
  type: z.ZodString;
@@ -3977,18 +4407,29 @@ export declare const EventDocument: z.ZodObject<{
3977
4407
  addressLine2?: string | null | undefined;
3978
4408
  addressLine3?: string | null | undefined;
3979
4409
  postcodeOrZip?: string | null | undefined;
3980
- }>]>>>;
3981
- createdAtLocation: z.ZodOptional<z.ZodString>;
3982
- updatedAtLocation: z.ZodOptional<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]>]>>>>;
3983
4423
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3984
- originalActionId: z.ZodOptional<z.ZodString>;
4424
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
3985
4425
  }, {
3986
4426
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
3987
4427
  }>, "strip", z.ZodTypeAny, {
3988
4428
  type: "REQUEST_CORRECTION";
3989
- id: string;
4429
+ id: string & z.BRAND<"UUID">;
3990
4430
  status: "Rejected" | "Requested" | "Accepted";
3991
4431
  transactionId: string;
4432
+ createdByUserType: "system" | "user";
3992
4433
  createdAt: string;
3993
4434
  createdBy: string;
3994
4435
  createdByRole: string;
@@ -4007,6 +4448,10 @@ export declare const EventDocument: z.ZodObject<{
4007
4448
  residentialArea?: string | null | undefined;
4008
4449
  street?: string | null | undefined;
4009
4450
  zipCode?: string | null | undefined;
4451
+ } | {
4452
+ firstname: string;
4453
+ surname: string;
4454
+ middlename?: string | null | undefined;
4010
4455
  } | {
4011
4456
  country: string;
4012
4457
  district: string;
@@ -4029,7 +4474,9 @@ export declare const EventDocument: z.ZodObject<{
4029
4474
  option: string;
4030
4475
  filename: string;
4031
4476
  originalFilename: string;
4032
- }[] | undefined>;
4477
+ }[] | [string, string] | null | undefined>;
4478
+ createdBySignature?: string | null | undefined;
4479
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
4033
4480
  annotation?: Record<string, string | number | boolean | {
4034
4481
  type: string;
4035
4482
  filename: string;
@@ -4045,6 +4492,10 @@ export declare const EventDocument: z.ZodObject<{
4045
4492
  residentialArea?: string | null | undefined;
4046
4493
  street?: string | null | undefined;
4047
4494
  zipCode?: string | null | undefined;
4495
+ } | {
4496
+ firstname: string;
4497
+ surname: string;
4498
+ middlename?: string | null | undefined;
4048
4499
  } | {
4049
4500
  country: string;
4050
4501
  district: string;
@@ -4067,15 +4518,14 @@ export declare const EventDocument: z.ZodObject<{
4067
4518
  option: string;
4068
4519
  filename: string;
4069
4520
  originalFilename: string;
4070
- }[] | undefined> | undefined;
4071
- createdAtLocation?: string | undefined;
4072
- updatedAtLocation?: string | undefined;
4073
- originalActionId?: string | undefined;
4521
+ }[] | [string, string] | null | undefined> | null | undefined;
4522
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
4074
4523
  }, {
4075
4524
  type: "REQUEST_CORRECTION";
4076
4525
  id: string;
4077
4526
  status: "Rejected" | "Requested" | "Accepted";
4078
4527
  transactionId: string;
4528
+ createdByUserType: "system" | "user";
4079
4529
  createdAt: string;
4080
4530
  createdBy: string;
4081
4531
  createdByRole: string;
@@ -4094,6 +4544,10 @@ export declare const EventDocument: z.ZodObject<{
4094
4544
  residentialArea?: string | null | undefined;
4095
4545
  street?: string | null | undefined;
4096
4546
  zipCode?: string | null | undefined;
4547
+ } | {
4548
+ firstname: string;
4549
+ surname: string;
4550
+ middlename?: string | null | undefined;
4097
4551
  } | {
4098
4552
  country: string;
4099
4553
  district: string;
@@ -4116,7 +4570,9 @@ export declare const EventDocument: z.ZodObject<{
4116
4570
  option: string;
4117
4571
  filename: string;
4118
4572
  originalFilename: string;
4119
- }[] | undefined>;
4573
+ }[] | [string, string] | null | undefined>;
4574
+ createdBySignature?: string | null | undefined;
4575
+ createdAtLocation?: string | null | undefined;
4120
4576
  annotation?: Record<string, string | number | boolean | {
4121
4577
  type: string;
4122
4578
  filename: string;
@@ -4132,6 +4588,10 @@ export declare const EventDocument: z.ZodObject<{
4132
4588
  residentialArea?: string | null | undefined;
4133
4589
  street?: string | null | undefined;
4134
4590
  zipCode?: string | null | undefined;
4591
+ } | {
4592
+ firstname: string;
4593
+ surname: string;
4594
+ middlename?: string | null | undefined;
4135
4595
  } | {
4136
4596
  country: string;
4137
4597
  district: string;
@@ -4154,17 +4614,18 @@ export declare const EventDocument: z.ZodObject<{
4154
4614
  option: string;
4155
4615
  filename: string;
4156
4616
  originalFilename: string;
4157
- }[] | undefined> | undefined;
4158
- createdAtLocation?: string | undefined;
4159
- updatedAtLocation?: string | undefined;
4160
- originalActionId?: string | undefined;
4617
+ }[] | [string, string] | null | undefined> | null | undefined;
4618
+ originalActionId?: string | null | undefined;
4161
4619
  }>, z.ZodObject<z.objectUtil.extendShape<{
4162
- id: z.ZodString;
4620
+ id: z.ZodBranded<z.ZodString, "UUID">;
4163
4621
  transactionId: z.ZodString;
4622
+ createdByUserType: z.ZodEnum<["user", "system"]>;
4164
4623
  createdAt: z.ZodString;
4165
4624
  createdBy: z.ZodString;
4166
4625
  createdByRole: z.ZodString;
4167
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4626
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4627
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
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<{
4168
4629
  filename: z.ZodString;
4169
4630
  originalFilename: z.ZodString;
4170
4631
  type: z.ZodString;
@@ -4277,8 +4738,20 @@ export declare const EventDocument: z.ZodObject<{
4277
4738
  addressLine2?: string | null | undefined;
4278
4739
  addressLine3?: string | null | undefined;
4279
4740
  postcodeOrZip?: string | null | undefined;
4280
- }>]>>;
4281
- annotation: 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.ZodNullable<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<{
4282
4755
  filename: z.ZodString;
4283
4756
  originalFilename: z.ZodString;
4284
4757
  type: z.ZodString;
@@ -4391,19 +4864,30 @@ export declare const EventDocument: z.ZodObject<{
4391
4864
  addressLine2?: string | null | undefined;
4392
4865
  addressLine3?: string | null | undefined;
4393
4866
  postcodeOrZip?: string | null | undefined;
4394
- }>]>>>;
4395
- createdAtLocation: z.ZodOptional<z.ZodString>;
4396
- updatedAtLocation: z.ZodOptional<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]>]>>>>;
4397
4880
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4398
- originalActionId: z.ZodOptional<z.ZodString>;
4881
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
4399
4882
  }, {
4400
4883
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
4401
4884
  requestId: z.ZodString;
4402
4885
  }>, "strip", z.ZodTypeAny, {
4403
4886
  type: "APPROVE_CORRECTION";
4404
- id: string;
4887
+ id: string & z.BRAND<"UUID">;
4405
4888
  status: "Rejected" | "Requested" | "Accepted";
4406
4889
  transactionId: string;
4890
+ createdByUserType: "system" | "user";
4407
4891
  createdAt: string;
4408
4892
  createdBy: string;
4409
4893
  createdByRole: string;
@@ -4422,6 +4906,10 @@ export declare const EventDocument: z.ZodObject<{
4422
4906
  residentialArea?: string | null | undefined;
4423
4907
  street?: string | null | undefined;
4424
4908
  zipCode?: string | null | undefined;
4909
+ } | {
4910
+ firstname: string;
4911
+ surname: string;
4912
+ middlename?: string | null | undefined;
4425
4913
  } | {
4426
4914
  country: string;
4427
4915
  district: string;
@@ -4444,8 +4932,10 @@ export declare const EventDocument: z.ZodObject<{
4444
4932
  option: string;
4445
4933
  filename: string;
4446
4934
  originalFilename: string;
4447
- }[] | undefined>;
4935
+ }[] | [string, string] | null | undefined>;
4448
4936
  requestId: string;
4937
+ createdBySignature?: string | null | undefined;
4938
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
4449
4939
  annotation?: Record<string, string | number | boolean | {
4450
4940
  type: string;
4451
4941
  filename: string;
@@ -4461,6 +4951,10 @@ export declare const EventDocument: z.ZodObject<{
4461
4951
  residentialArea?: string | null | undefined;
4462
4952
  street?: string | null | undefined;
4463
4953
  zipCode?: string | null | undefined;
4954
+ } | {
4955
+ firstname: string;
4956
+ surname: string;
4957
+ middlename?: string | null | undefined;
4464
4958
  } | {
4465
4959
  country: string;
4466
4960
  district: string;
@@ -4483,15 +4977,14 @@ export declare const EventDocument: z.ZodObject<{
4483
4977
  option: string;
4484
4978
  filename: string;
4485
4979
  originalFilename: string;
4486
- }[] | undefined> | undefined;
4487
- createdAtLocation?: string | undefined;
4488
- updatedAtLocation?: string | undefined;
4489
- originalActionId?: string | undefined;
4980
+ }[] | [string, string] | null | undefined> | null | undefined;
4981
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
4490
4982
  }, {
4491
4983
  type: "APPROVE_CORRECTION";
4492
4984
  id: string;
4493
4985
  status: "Rejected" | "Requested" | "Accepted";
4494
4986
  transactionId: string;
4987
+ createdByUserType: "system" | "user";
4495
4988
  createdAt: string;
4496
4989
  createdBy: string;
4497
4990
  createdByRole: string;
@@ -4510,6 +5003,10 @@ export declare const EventDocument: z.ZodObject<{
4510
5003
  residentialArea?: string | null | undefined;
4511
5004
  street?: string | null | undefined;
4512
5005
  zipCode?: string | null | undefined;
5006
+ } | {
5007
+ firstname: string;
5008
+ surname: string;
5009
+ middlename?: string | null | undefined;
4513
5010
  } | {
4514
5011
  country: string;
4515
5012
  district: string;
@@ -4532,8 +5029,10 @@ export declare const EventDocument: z.ZodObject<{
4532
5029
  option: string;
4533
5030
  filename: string;
4534
5031
  originalFilename: string;
4535
- }[] | undefined>;
5032
+ }[] | [string, string] | null | undefined>;
4536
5033
  requestId: string;
5034
+ createdBySignature?: string | null | undefined;
5035
+ createdAtLocation?: string | null | undefined;
4537
5036
  annotation?: Record<string, string | number | boolean | {
4538
5037
  type: string;
4539
5038
  filename: string;
@@ -4549,6 +5048,10 @@ export declare const EventDocument: z.ZodObject<{
4549
5048
  residentialArea?: string | null | undefined;
4550
5049
  street?: string | null | undefined;
4551
5050
  zipCode?: string | null | undefined;
5051
+ } | {
5052
+ firstname: string;
5053
+ surname: string;
5054
+ middlename?: string | null | undefined;
4552
5055
  } | {
4553
5056
  country: string;
4554
5057
  district: string;
@@ -4571,17 +5074,18 @@ export declare const EventDocument: z.ZodObject<{
4571
5074
  option: string;
4572
5075
  filename: string;
4573
5076
  originalFilename: string;
4574
- }[] | undefined> | undefined;
4575
- createdAtLocation?: string | undefined;
4576
- updatedAtLocation?: string | undefined;
4577
- originalActionId?: string | undefined;
5077
+ }[] | [string, string] | null | undefined> | null | undefined;
5078
+ originalActionId?: string | null | undefined;
4578
5079
  }>, z.ZodObject<z.objectUtil.extendShape<{
4579
- id: z.ZodString;
5080
+ id: z.ZodBranded<z.ZodString, "UUID">;
4580
5081
  transactionId: z.ZodString;
5082
+ createdByUserType: z.ZodEnum<["user", "system"]>;
4581
5083
  createdAt: z.ZodString;
4582
5084
  createdBy: z.ZodString;
4583
5085
  createdByRole: z.ZodString;
4584
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5086
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5087
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
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<{
4585
5089
  filename: z.ZodString;
4586
5090
  originalFilename: z.ZodString;
4587
5091
  type: z.ZodString;
@@ -4694,8 +5198,20 @@ export declare const EventDocument: z.ZodObject<{
4694
5198
  addressLine2?: string | null | undefined;
4695
5199
  addressLine3?: string | null | undefined;
4696
5200
  postcodeOrZip?: string | null | undefined;
4697
- }>]>>;
4698
- annotation: 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.ZodNullable<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<{
4699
5215
  filename: z.ZodString;
4700
5216
  originalFilename: z.ZodString;
4701
5217
  type: z.ZodString;
@@ -4808,19 +5324,30 @@ export declare const EventDocument: z.ZodObject<{
4808
5324
  addressLine2?: string | null | undefined;
4809
5325
  addressLine3?: string | null | undefined;
4810
5326
  postcodeOrZip?: string | null | undefined;
4811
- }>]>>>;
4812
- createdAtLocation: z.ZodOptional<z.ZodString>;
4813
- updatedAtLocation: z.ZodOptional<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]>]>>>>;
4814
5340
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4815
- originalActionId: z.ZodOptional<z.ZodString>;
5341
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
4816
5342
  }, {
4817
5343
  type: z.ZodLiteral<"REJECT_CORRECTION">;
4818
5344
  requestId: z.ZodString;
4819
5345
  }>, "strip", z.ZodTypeAny, {
4820
5346
  type: "REJECT_CORRECTION";
4821
- id: string;
5347
+ id: string & z.BRAND<"UUID">;
4822
5348
  status: "Rejected" | "Requested" | "Accepted";
4823
5349
  transactionId: string;
5350
+ createdByUserType: "system" | "user";
4824
5351
  createdAt: string;
4825
5352
  createdBy: string;
4826
5353
  createdByRole: string;
@@ -4839,6 +5366,10 @@ export declare const EventDocument: z.ZodObject<{
4839
5366
  residentialArea?: string | null | undefined;
4840
5367
  street?: string | null | undefined;
4841
5368
  zipCode?: string | null | undefined;
5369
+ } | {
5370
+ firstname: string;
5371
+ surname: string;
5372
+ middlename?: string | null | undefined;
4842
5373
  } | {
4843
5374
  country: string;
4844
5375
  district: string;
@@ -4861,8 +5392,10 @@ export declare const EventDocument: z.ZodObject<{
4861
5392
  option: string;
4862
5393
  filename: string;
4863
5394
  originalFilename: string;
4864
- }[] | undefined>;
5395
+ }[] | [string, string] | null | undefined>;
4865
5396
  requestId: string;
5397
+ createdBySignature?: string | null | undefined;
5398
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
4866
5399
  annotation?: Record<string, string | number | boolean | {
4867
5400
  type: string;
4868
5401
  filename: string;
@@ -4878,6 +5411,10 @@ export declare const EventDocument: z.ZodObject<{
4878
5411
  residentialArea?: string | null | undefined;
4879
5412
  street?: string | null | undefined;
4880
5413
  zipCode?: string | null | undefined;
5414
+ } | {
5415
+ firstname: string;
5416
+ surname: string;
5417
+ middlename?: string | null | undefined;
4881
5418
  } | {
4882
5419
  country: string;
4883
5420
  district: string;
@@ -4900,15 +5437,14 @@ export declare const EventDocument: z.ZodObject<{
4900
5437
  option: string;
4901
5438
  filename: string;
4902
5439
  originalFilename: string;
4903
- }[] | undefined> | undefined;
4904
- createdAtLocation?: string | undefined;
4905
- updatedAtLocation?: string | undefined;
4906
- originalActionId?: string | undefined;
5440
+ }[] | [string, string] | null | undefined> | null | undefined;
5441
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
4907
5442
  }, {
4908
5443
  type: "REJECT_CORRECTION";
4909
5444
  id: string;
4910
5445
  status: "Rejected" | "Requested" | "Accepted";
4911
5446
  transactionId: string;
5447
+ createdByUserType: "system" | "user";
4912
5448
  createdAt: string;
4913
5449
  createdBy: string;
4914
5450
  createdByRole: string;
@@ -4927,6 +5463,10 @@ export declare const EventDocument: z.ZodObject<{
4927
5463
  residentialArea?: string | null | undefined;
4928
5464
  street?: string | null | undefined;
4929
5465
  zipCode?: string | null | undefined;
5466
+ } | {
5467
+ firstname: string;
5468
+ surname: string;
5469
+ middlename?: string | null | undefined;
4930
5470
  } | {
4931
5471
  country: string;
4932
5472
  district: string;
@@ -4949,8 +5489,10 @@ export declare const EventDocument: z.ZodObject<{
4949
5489
  option: string;
4950
5490
  filename: string;
4951
5491
  originalFilename: string;
4952
- }[] | undefined>;
5492
+ }[] | [string, string] | null | undefined>;
4953
5493
  requestId: string;
5494
+ createdBySignature?: string | null | undefined;
5495
+ createdAtLocation?: string | null | undefined;
4954
5496
  annotation?: Record<string, string | number | boolean | {
4955
5497
  type: string;
4956
5498
  filename: string;
@@ -4966,6 +5508,10 @@ export declare const EventDocument: z.ZodObject<{
4966
5508
  residentialArea?: string | null | undefined;
4967
5509
  street?: string | null | undefined;
4968
5510
  zipCode?: string | null | undefined;
5511
+ } | {
5512
+ firstname: string;
5513
+ surname: string;
5514
+ middlename?: string | null | undefined;
4969
5515
  } | {
4970
5516
  country: string;
4971
5517
  district: string;
@@ -4988,17 +5534,18 @@ export declare const EventDocument: z.ZodObject<{
4988
5534
  option: string;
4989
5535
  filename: string;
4990
5536
  originalFilename: string;
4991
- }[] | undefined> | undefined;
4992
- createdAtLocation?: string | undefined;
4993
- updatedAtLocation?: string | undefined;
4994
- originalActionId?: string | undefined;
5537
+ }[] | [string, string] | null | undefined> | null | undefined;
5538
+ originalActionId?: string | null | undefined;
4995
5539
  }>, z.ZodObject<z.objectUtil.extendShape<{
4996
- id: z.ZodString;
5540
+ id: z.ZodBranded<z.ZodString, "UUID">;
4997
5541
  transactionId: z.ZodString;
5542
+ createdByUserType: z.ZodEnum<["user", "system"]>;
4998
5543
  createdAt: z.ZodString;
4999
5544
  createdBy: z.ZodString;
5000
5545
  createdByRole: z.ZodString;
5001
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5546
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5547
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
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<{
5002
5549
  filename: z.ZodString;
5003
5550
  originalFilename: z.ZodString;
5004
5551
  type: z.ZodString;
@@ -5111,8 +5658,20 @@ export declare const EventDocument: z.ZodObject<{
5111
5658
  addressLine2?: string | null | undefined;
5112
5659
  addressLine3?: string | null | undefined;
5113
5660
  postcodeOrZip?: string | null | undefined;
5114
- }>]>>;
5115
- annotation: 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.ZodNullable<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<{
5116
5675
  filename: z.ZodString;
5117
5676
  originalFilename: z.ZodString;
5118
5677
  type: z.ZodString;
@@ -5225,19 +5784,29 @@ export declare const EventDocument: z.ZodObject<{
5225
5784
  addressLine2?: string | null | undefined;
5226
5785
  addressLine3?: string | null | undefined;
5227
5786
  postcodeOrZip?: string | null | undefined;
5228
- }>]>>>;
5229
- createdAtLocation: z.ZodOptional<z.ZodString>;
5230
- updatedAtLocation: z.ZodOptional<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]>]>>>>;
5231
5800
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5232
- originalActionId: z.ZodOptional<z.ZodString>;
5801
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
5233
5802
  }, {
5234
5803
  type: z.ZodLiteral<"UNASSIGN">;
5235
- assignedTo: z.ZodLiteral<null>;
5236
5804
  }>, "strip", z.ZodTypeAny, {
5237
5805
  type: "UNASSIGN";
5238
- id: string;
5806
+ id: string & z.BRAND<"UUID">;
5239
5807
  status: "Rejected" | "Requested" | "Accepted";
5240
5808
  transactionId: string;
5809
+ createdByUserType: "system" | "user";
5241
5810
  createdAt: string;
5242
5811
  createdBy: string;
5243
5812
  createdByRole: string;
@@ -5256,6 +5825,10 @@ export declare const EventDocument: z.ZodObject<{
5256
5825
  residentialArea?: string | null | undefined;
5257
5826
  street?: string | null | undefined;
5258
5827
  zipCode?: string | null | undefined;
5828
+ } | {
5829
+ firstname: string;
5830
+ surname: string;
5831
+ middlename?: string | null | undefined;
5259
5832
  } | {
5260
5833
  country: string;
5261
5834
  district: string;
@@ -5278,8 +5851,9 @@ export declare const EventDocument: z.ZodObject<{
5278
5851
  option: string;
5279
5852
  filename: string;
5280
5853
  originalFilename: string;
5281
- }[] | undefined>;
5282
- assignedTo: null;
5854
+ }[] | [string, string] | null | undefined>;
5855
+ createdBySignature?: string | null | undefined;
5856
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
5283
5857
  annotation?: Record<string, string | number | boolean | {
5284
5858
  type: string;
5285
5859
  filename: string;
@@ -5295,6 +5869,10 @@ export declare const EventDocument: z.ZodObject<{
5295
5869
  residentialArea?: string | null | undefined;
5296
5870
  street?: string | null | undefined;
5297
5871
  zipCode?: string | null | undefined;
5872
+ } | {
5873
+ firstname: string;
5874
+ surname: string;
5875
+ middlename?: string | null | undefined;
5298
5876
  } | {
5299
5877
  country: string;
5300
5878
  district: string;
@@ -5317,15 +5895,14 @@ export declare const EventDocument: z.ZodObject<{
5317
5895
  option: string;
5318
5896
  filename: string;
5319
5897
  originalFilename: string;
5320
- }[] | undefined> | undefined;
5321
- createdAtLocation?: string | undefined;
5322
- updatedAtLocation?: string | undefined;
5323
- originalActionId?: string | undefined;
5898
+ }[] | [string, string] | null | undefined> | null | undefined;
5899
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
5324
5900
  }, {
5325
5901
  type: "UNASSIGN";
5326
5902
  id: string;
5327
5903
  status: "Rejected" | "Requested" | "Accepted";
5328
5904
  transactionId: string;
5905
+ createdByUserType: "system" | "user";
5329
5906
  createdAt: string;
5330
5907
  createdBy: string;
5331
5908
  createdByRole: string;
@@ -5344,6 +5921,10 @@ export declare const EventDocument: z.ZodObject<{
5344
5921
  residentialArea?: string | null | undefined;
5345
5922
  street?: string | null | undefined;
5346
5923
  zipCode?: string | null | undefined;
5924
+ } | {
5925
+ firstname: string;
5926
+ surname: string;
5927
+ middlename?: string | null | undefined;
5347
5928
  } | {
5348
5929
  country: string;
5349
5930
  district: string;
@@ -5366,8 +5947,9 @@ export declare const EventDocument: z.ZodObject<{
5366
5947
  option: string;
5367
5948
  filename: string;
5368
5949
  originalFilename: string;
5369
- }[] | undefined>;
5370
- assignedTo: null;
5950
+ }[] | [string, string] | null | undefined>;
5951
+ createdBySignature?: string | null | undefined;
5952
+ createdAtLocation?: string | null | undefined;
5371
5953
  annotation?: Record<string, string | number | boolean | {
5372
5954
  type: string;
5373
5955
  filename: string;
@@ -5383,6 +5965,10 @@ export declare const EventDocument: z.ZodObject<{
5383
5965
  residentialArea?: string | null | undefined;
5384
5966
  street?: string | null | undefined;
5385
5967
  zipCode?: string | null | undefined;
5968
+ } | {
5969
+ firstname: string;
5970
+ surname: string;
5971
+ middlename?: string | null | undefined;
5386
5972
  } | {
5387
5973
  country: string;
5388
5974
  district: string;
@@ -5405,17 +5991,18 @@ export declare const EventDocument: z.ZodObject<{
5405
5991
  option: string;
5406
5992
  filename: string;
5407
5993
  originalFilename: string;
5408
- }[] | undefined> | undefined;
5409
- createdAtLocation?: string | undefined;
5410
- updatedAtLocation?: string | undefined;
5411
- originalActionId?: string | undefined;
5994
+ }[] | [string, string] | null | undefined> | null | undefined;
5995
+ originalActionId?: string | null | undefined;
5412
5996
  }>, z.ZodObject<z.objectUtil.extendShape<{
5413
- id: z.ZodString;
5997
+ id: z.ZodBranded<z.ZodString, "UUID">;
5414
5998
  transactionId: z.ZodString;
5999
+ createdByUserType: z.ZodEnum<["user", "system"]>;
5415
6000
  createdAt: z.ZodString;
5416
6001
  createdBy: z.ZodString;
5417
6002
  createdByRole: z.ZodString;
5418
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6003
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6004
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
6005
+ 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<{
5419
6006
  filename: z.ZodString;
5420
6007
  originalFilename: z.ZodString;
5421
6008
  type: z.ZodString;
@@ -5528,8 +6115,20 @@ export declare const EventDocument: z.ZodObject<{
5528
6115
  addressLine2?: string | null | undefined;
5529
6116
  addressLine3?: string | null | undefined;
5530
6117
  postcodeOrZip?: string | null | undefined;
5531
- }>]>>;
5532
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6118
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
6119
+ firstname: z.ZodString;
6120
+ surname: z.ZodString;
6121
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6122
+ }, "strip", z.ZodTypeAny, {
6123
+ firstname: string;
6124
+ surname: string;
6125
+ middlename?: string | null | undefined;
6126
+ }, {
6127
+ firstname: string;
6128
+ surname: string;
6129
+ middlename?: string | null | undefined;
6130
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
6131
+ annotation: z.ZodNullable<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<{
5533
6132
  filename: z.ZodString;
5534
6133
  originalFilename: z.ZodString;
5535
6134
  type: z.ZodString;
@@ -5642,18 +6241,29 @@ export declare const EventDocument: z.ZodObject<{
5642
6241
  addressLine2?: string | null | undefined;
5643
6242
  addressLine3?: string | null | undefined;
5644
6243
  postcodeOrZip?: string | null | undefined;
5645
- }>]>>>;
5646
- createdAtLocation: z.ZodOptional<z.ZodString>;
5647
- updatedAtLocation: z.ZodOptional<z.ZodString>;
6244
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
6245
+ firstname: z.ZodString;
6246
+ surname: z.ZodString;
6247
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6248
+ }, "strip", z.ZodTypeAny, {
6249
+ firstname: string;
6250
+ surname: string;
6251
+ middlename?: string | null | undefined;
6252
+ }, {
6253
+ firstname: string;
6254
+ surname: string;
6255
+ middlename?: string | null | undefined;
6256
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
5648
6257
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5649
- originalActionId: z.ZodOptional<z.ZodString>;
6258
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
5650
6259
  }, {
5651
6260
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
5652
6261
  }>, "strip", z.ZodTypeAny, {
5653
6262
  type: "PRINT_CERTIFICATE";
5654
- id: string;
6263
+ id: string & z.BRAND<"UUID">;
5655
6264
  status: "Rejected" | "Requested" | "Accepted";
5656
6265
  transactionId: string;
6266
+ createdByUserType: "system" | "user";
5657
6267
  createdAt: string;
5658
6268
  createdBy: string;
5659
6269
  createdByRole: string;
@@ -5672,6 +6282,10 @@ export declare const EventDocument: z.ZodObject<{
5672
6282
  residentialArea?: string | null | undefined;
5673
6283
  street?: string | null | undefined;
5674
6284
  zipCode?: string | null | undefined;
6285
+ } | {
6286
+ firstname: string;
6287
+ surname: string;
6288
+ middlename?: string | null | undefined;
5675
6289
  } | {
5676
6290
  country: string;
5677
6291
  district: string;
@@ -5694,7 +6308,9 @@ export declare const EventDocument: z.ZodObject<{
5694
6308
  option: string;
5695
6309
  filename: string;
5696
6310
  originalFilename: string;
5697
- }[] | undefined>;
6311
+ }[] | [string, string] | null | undefined>;
6312
+ createdBySignature?: string | null | undefined;
6313
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
5698
6314
  annotation?: Record<string, string | number | boolean | {
5699
6315
  type: string;
5700
6316
  filename: string;
@@ -5710,6 +6326,10 @@ export declare const EventDocument: z.ZodObject<{
5710
6326
  residentialArea?: string | null | undefined;
5711
6327
  street?: string | null | undefined;
5712
6328
  zipCode?: string | null | undefined;
6329
+ } | {
6330
+ firstname: string;
6331
+ surname: string;
6332
+ middlename?: string | null | undefined;
5713
6333
  } | {
5714
6334
  country: string;
5715
6335
  district: string;
@@ -5732,15 +6352,14 @@ export declare const EventDocument: z.ZodObject<{
5732
6352
  option: string;
5733
6353
  filename: string;
5734
6354
  originalFilename: string;
5735
- }[] | undefined> | undefined;
5736
- createdAtLocation?: string | undefined;
5737
- updatedAtLocation?: string | undefined;
5738
- originalActionId?: string | undefined;
6355
+ }[] | [string, string] | null | undefined> | null | undefined;
6356
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
5739
6357
  }, {
5740
6358
  type: "PRINT_CERTIFICATE";
5741
6359
  id: string;
5742
6360
  status: "Rejected" | "Requested" | "Accepted";
5743
6361
  transactionId: string;
6362
+ createdByUserType: "system" | "user";
5744
6363
  createdAt: string;
5745
6364
  createdBy: string;
5746
6365
  createdByRole: string;
@@ -5759,6 +6378,10 @@ export declare const EventDocument: z.ZodObject<{
5759
6378
  residentialArea?: string | null | undefined;
5760
6379
  street?: string | null | undefined;
5761
6380
  zipCode?: string | null | undefined;
6381
+ } | {
6382
+ firstname: string;
6383
+ surname: string;
6384
+ middlename?: string | null | undefined;
5762
6385
  } | {
5763
6386
  country: string;
5764
6387
  district: string;
@@ -5781,7 +6404,9 @@ export declare const EventDocument: z.ZodObject<{
5781
6404
  option: string;
5782
6405
  filename: string;
5783
6406
  originalFilename: string;
5784
- }[] | undefined>;
6407
+ }[] | [string, string] | null | undefined>;
6408
+ createdBySignature?: string | null | undefined;
6409
+ createdAtLocation?: string | null | undefined;
5785
6410
  annotation?: Record<string, string | number | boolean | {
5786
6411
  type: string;
5787
6412
  filename: string;
@@ -5797,6 +6422,10 @@ export declare const EventDocument: z.ZodObject<{
5797
6422
  residentialArea?: string | null | undefined;
5798
6423
  street?: string | null | undefined;
5799
6424
  zipCode?: string | null | undefined;
6425
+ } | {
6426
+ firstname: string;
6427
+ surname: string;
6428
+ middlename?: string | null | undefined;
5800
6429
  } | {
5801
6430
  country: string;
5802
6431
  district: string;
@@ -5819,17 +6448,18 @@ export declare const EventDocument: z.ZodObject<{
5819
6448
  option: string;
5820
6449
  filename: string;
5821
6450
  originalFilename: string;
5822
- }[] | undefined> | undefined;
5823
- createdAtLocation?: string | undefined;
5824
- updatedAtLocation?: string | undefined;
5825
- originalActionId?: string | undefined;
6451
+ }[] | [string, string] | null | undefined> | null | undefined;
6452
+ originalActionId?: string | null | undefined;
5826
6453
  }>, z.ZodObject<z.objectUtil.extendShape<{
5827
- id: z.ZodString;
6454
+ id: z.ZodBranded<z.ZodString, "UUID">;
5828
6455
  transactionId: z.ZodString;
6456
+ createdByUserType: z.ZodEnum<["user", "system"]>;
5829
6457
  createdAt: z.ZodString;
5830
6458
  createdBy: z.ZodString;
5831
6459
  createdByRole: z.ZodString;
5832
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6460
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6461
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
6462
+ 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<{
5833
6463
  filename: z.ZodString;
5834
6464
  originalFilename: z.ZodString;
5835
6465
  type: z.ZodString;
@@ -5942,8 +6572,20 @@ export declare const EventDocument: z.ZodObject<{
5942
6572
  addressLine2?: string | null | undefined;
5943
6573
  addressLine3?: string | null | undefined;
5944
6574
  postcodeOrZip?: string | null | undefined;
5945
- }>]>>;
5946
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6575
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
6576
+ firstname: z.ZodString;
6577
+ surname: z.ZodString;
6578
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6579
+ }, "strip", z.ZodTypeAny, {
6580
+ firstname: string;
6581
+ surname: string;
6582
+ middlename?: string | null | undefined;
6583
+ }, {
6584
+ firstname: string;
6585
+ surname: string;
6586
+ middlename?: string | null | undefined;
6587
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
6588
+ annotation: z.ZodNullable<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<{
5947
6589
  filename: z.ZodString;
5948
6590
  originalFilename: z.ZodString;
5949
6591
  type: z.ZodString;
@@ -6056,18 +6698,29 @@ export declare const EventDocument: z.ZodObject<{
6056
6698
  addressLine2?: string | null | undefined;
6057
6699
  addressLine3?: string | null | undefined;
6058
6700
  postcodeOrZip?: string | null | undefined;
6059
- }>]>>>;
6060
- createdAtLocation: z.ZodOptional<z.ZodString>;
6061
- updatedAtLocation: z.ZodOptional<z.ZodString>;
6701
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
6702
+ firstname: z.ZodString;
6703
+ surname: z.ZodString;
6704
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6705
+ }, "strip", z.ZodTypeAny, {
6706
+ firstname: string;
6707
+ surname: string;
6708
+ middlename?: string | null | undefined;
6709
+ }, {
6710
+ firstname: string;
6711
+ surname: string;
6712
+ middlename?: string | null | undefined;
6713
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
6062
6714
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6063
- originalActionId: z.ZodOptional<z.ZodString>;
6715
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
6064
6716
  }, {
6065
6717
  type: z.ZodLiteral<"READ">;
6066
6718
  }>, "strip", z.ZodTypeAny, {
6067
6719
  type: "READ";
6068
- id: string;
6720
+ id: string & z.BRAND<"UUID">;
6069
6721
  status: "Rejected" | "Requested" | "Accepted";
6070
6722
  transactionId: string;
6723
+ createdByUserType: "system" | "user";
6071
6724
  createdAt: string;
6072
6725
  createdBy: string;
6073
6726
  createdByRole: string;
@@ -6086,6 +6739,10 @@ export declare const EventDocument: z.ZodObject<{
6086
6739
  residentialArea?: string | null | undefined;
6087
6740
  street?: string | null | undefined;
6088
6741
  zipCode?: string | null | undefined;
6742
+ } | {
6743
+ firstname: string;
6744
+ surname: string;
6745
+ middlename?: string | null | undefined;
6089
6746
  } | {
6090
6747
  country: string;
6091
6748
  district: string;
@@ -6108,7 +6765,9 @@ export declare const EventDocument: z.ZodObject<{
6108
6765
  option: string;
6109
6766
  filename: string;
6110
6767
  originalFilename: string;
6111
- }[] | undefined>;
6768
+ }[] | [string, string] | null | undefined>;
6769
+ createdBySignature?: string | null | undefined;
6770
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6112
6771
  annotation?: Record<string, string | number | boolean | {
6113
6772
  type: string;
6114
6773
  filename: string;
@@ -6124,6 +6783,10 @@ export declare const EventDocument: z.ZodObject<{
6124
6783
  residentialArea?: string | null | undefined;
6125
6784
  street?: string | null | undefined;
6126
6785
  zipCode?: string | null | undefined;
6786
+ } | {
6787
+ firstname: string;
6788
+ surname: string;
6789
+ middlename?: string | null | undefined;
6127
6790
  } | {
6128
6791
  country: string;
6129
6792
  district: string;
@@ -6146,15 +6809,14 @@ export declare const EventDocument: z.ZodObject<{
6146
6809
  option: string;
6147
6810
  filename: string;
6148
6811
  originalFilename: string;
6149
- }[] | undefined> | undefined;
6150
- createdAtLocation?: string | undefined;
6151
- updatedAtLocation?: string | undefined;
6152
- originalActionId?: string | undefined;
6812
+ }[] | [string, string] | null | undefined> | null | undefined;
6813
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6153
6814
  }, {
6154
6815
  type: "READ";
6155
6816
  id: string;
6156
6817
  status: "Rejected" | "Requested" | "Accepted";
6157
6818
  transactionId: string;
6819
+ createdByUserType: "system" | "user";
6158
6820
  createdAt: string;
6159
6821
  createdBy: string;
6160
6822
  createdByRole: string;
@@ -6173,6 +6835,10 @@ export declare const EventDocument: z.ZodObject<{
6173
6835
  residentialArea?: string | null | undefined;
6174
6836
  street?: string | null | undefined;
6175
6837
  zipCode?: string | null | undefined;
6838
+ } | {
6839
+ firstname: string;
6840
+ surname: string;
6841
+ middlename?: string | null | undefined;
6176
6842
  } | {
6177
6843
  country: string;
6178
6844
  district: string;
@@ -6195,7 +6861,9 @@ export declare const EventDocument: z.ZodObject<{
6195
6861
  option: string;
6196
6862
  filename: string;
6197
6863
  originalFilename: string;
6198
- }[] | undefined>;
6864
+ }[] | [string, string] | null | undefined>;
6865
+ createdBySignature?: string | null | undefined;
6866
+ createdAtLocation?: string | null | undefined;
6199
6867
  annotation?: Record<string, string | number | boolean | {
6200
6868
  type: string;
6201
6869
  filename: string;
@@ -6211,6 +6879,10 @@ export declare const EventDocument: z.ZodObject<{
6211
6879
  residentialArea?: string | null | undefined;
6212
6880
  street?: string | null | undefined;
6213
6881
  zipCode?: string | null | undefined;
6882
+ } | {
6883
+ firstname: string;
6884
+ surname: string;
6885
+ middlename?: string | null | undefined;
6214
6886
  } | {
6215
6887
  country: string;
6216
6888
  district: string;
@@ -6233,17 +6905,18 @@ export declare const EventDocument: z.ZodObject<{
6233
6905
  option: string;
6234
6906
  filename: string;
6235
6907
  originalFilename: string;
6236
- }[] | undefined> | undefined;
6237
- createdAtLocation?: string | undefined;
6238
- updatedAtLocation?: string | undefined;
6239
- originalActionId?: string | undefined;
6908
+ }[] | [string, string] | null | undefined> | null | undefined;
6909
+ originalActionId?: string | null | undefined;
6240
6910
  }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
6241
- id: z.ZodString;
6911
+ id: z.ZodBranded<z.ZodString, "UUID">;
6242
6912
  transactionId: z.ZodString;
6913
+ createdByUserType: z.ZodEnum<["user", "system"]>;
6243
6914
  createdAt: z.ZodString;
6244
6915
  createdBy: z.ZodString;
6245
6916
  createdByRole: z.ZodString;
6246
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6917
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6918
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
6919
+ 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<{
6247
6920
  filename: z.ZodString;
6248
6921
  originalFilename: z.ZodString;
6249
6922
  type: z.ZodString;
@@ -6356,8 +7029,20 @@ export declare const EventDocument: z.ZodObject<{
6356
7029
  addressLine2?: string | null | undefined;
6357
7030
  addressLine3?: string | null | undefined;
6358
7031
  postcodeOrZip?: string | null | undefined;
6359
- }>]>>;
6360
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7032
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
7033
+ firstname: z.ZodString;
7034
+ surname: z.ZodString;
7035
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7036
+ }, "strip", z.ZodTypeAny, {
7037
+ firstname: string;
7038
+ surname: string;
7039
+ middlename?: string | null | undefined;
7040
+ }, {
7041
+ firstname: string;
7042
+ surname: string;
7043
+ middlename?: string | null | undefined;
7044
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
7045
+ annotation: z.ZodNullable<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<{
6361
7046
  filename: z.ZodString;
6362
7047
  originalFilename: z.ZodString;
6363
7048
  type: z.ZodString;
@@ -6470,43 +7155,61 @@ export declare const EventDocument: z.ZodObject<{
6470
7155
  addressLine2?: string | null | undefined;
6471
7156
  addressLine3?: string | null | undefined;
6472
7157
  postcodeOrZip?: string | null | undefined;
6473
- }>]>>>;
6474
- createdAtLocation: z.ZodOptional<z.ZodString>;
6475
- updatedAtLocation: z.ZodOptional<z.ZodString>;
7158
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
7159
+ firstname: z.ZodString;
7160
+ surname: z.ZodString;
7161
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7162
+ }, "strip", z.ZodTypeAny, {
7163
+ firstname: string;
7164
+ surname: string;
7165
+ middlename?: string | null | undefined;
7166
+ }, {
7167
+ firstname: string;
7168
+ surname: string;
7169
+ middlename?: string | null | undefined;
7170
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
6476
7171
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6477
- originalActionId: z.ZodOptional<z.ZodString>;
6478
- }, "createdBy" | "createdByRole" | "declaration" | "annotation" | "createdAtLocation">, {
7172
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
7173
+ }, "declaration" | "annotation">, {
6479
7174
  type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
6480
7175
  status: z.ZodLiteral<"Rejected">;
6481
7176
  }>, "strip", z.ZodTypeAny, {
6482
7177
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
6483
- id: string;
7178
+ id: string & z.BRAND<"UUID">;
6484
7179
  status: "Rejected";
6485
7180
  transactionId: string;
7181
+ createdByUserType: "system" | "user";
6486
7182
  createdAt: string;
6487
- updatedAtLocation?: string | undefined;
6488
- originalActionId?: string | undefined;
7183
+ createdBy: string;
7184
+ createdByRole: string;
7185
+ createdBySignature?: string | null | undefined;
7186
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7187
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6489
7188
  }, {
6490
7189
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
6491
7190
  id: string;
6492
7191
  status: "Rejected";
6493
7192
  transactionId: string;
7193
+ createdByUserType: "system" | "user";
6494
7194
  createdAt: string;
6495
- updatedAtLocation?: string | undefined;
6496
- originalActionId?: string | undefined;
7195
+ createdBy: string;
7196
+ createdByRole: string;
7197
+ createdBySignature?: string | null | undefined;
7198
+ createdAtLocation?: string | null | undefined;
7199
+ originalActionId?: string | null | undefined;
6497
7200
  }>]>, "many">;
6498
7201
  trackingId: z.ZodString;
6499
7202
  }, "strip", z.ZodTypeAny, {
6500
7203
  type: string;
6501
- id: string;
7204
+ id: string & z.BRAND<"UUID">;
6502
7205
  createdAt: string;
6503
- updatedAtLocation: string;
6504
7206
  updatedAt: string;
6505
7207
  actions: ({
6506
7208
  type: "ASSIGN";
6507
- id: string;
7209
+ id: string & z.BRAND<"UUID">;
6508
7210
  status: "Rejected" | "Requested" | "Accepted";
6509
7211
  transactionId: string;
7212
+ createdByUserType: "system" | "user";
6510
7213
  createdAt: string;
6511
7214
  createdBy: string;
6512
7215
  createdByRole: string;
@@ -6525,6 +7228,10 @@ export declare const EventDocument: z.ZodObject<{
6525
7228
  residentialArea?: string | null | undefined;
6526
7229
  street?: string | null | undefined;
6527
7230
  zipCode?: string | null | undefined;
7231
+ } | {
7232
+ firstname: string;
7233
+ surname: string;
7234
+ middlename?: string | null | undefined;
6528
7235
  } | {
6529
7236
  country: string;
6530
7237
  district: string;
@@ -6547,8 +7254,10 @@ export declare const EventDocument: z.ZodObject<{
6547
7254
  option: string;
6548
7255
  filename: string;
6549
7256
  originalFilename: string;
6550
- }[] | undefined>;
7257
+ }[] | [string, string] | null | undefined>;
6551
7258
  assignedTo: string;
7259
+ createdBySignature?: string | null | undefined;
7260
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6552
7261
  annotation?: Record<string, string | number | boolean | {
6553
7262
  type: string;
6554
7263
  filename: string;
@@ -6564,6 +7273,10 @@ export declare const EventDocument: z.ZodObject<{
6564
7273
  residentialArea?: string | null | undefined;
6565
7274
  street?: string | null | undefined;
6566
7275
  zipCode?: string | null | undefined;
7276
+ } | {
7277
+ firstname: string;
7278
+ surname: string;
7279
+ middlename?: string | null | undefined;
6567
7280
  } | {
6568
7281
  country: string;
6569
7282
  district: string;
@@ -6586,15 +7299,14 @@ export declare const EventDocument: z.ZodObject<{
6586
7299
  option: string;
6587
7300
  filename: string;
6588
7301
  originalFilename: string;
6589
- }[] | undefined> | undefined;
6590
- createdAtLocation?: string | undefined;
6591
- updatedAtLocation?: string | undefined;
6592
- originalActionId?: string | undefined;
7302
+ }[] | [string, string] | null | undefined> | null | undefined;
7303
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6593
7304
  } | {
6594
7305
  type: "UNASSIGN";
6595
- id: string;
7306
+ id: string & z.BRAND<"UUID">;
6596
7307
  status: "Rejected" | "Requested" | "Accepted";
6597
7308
  transactionId: string;
7309
+ createdByUserType: "system" | "user";
6598
7310
  createdAt: string;
6599
7311
  createdBy: string;
6600
7312
  createdByRole: string;
@@ -6613,6 +7325,10 @@ export declare const EventDocument: z.ZodObject<{
6613
7325
  residentialArea?: string | null | undefined;
6614
7326
  street?: string | null | undefined;
6615
7327
  zipCode?: string | null | undefined;
7328
+ } | {
7329
+ firstname: string;
7330
+ surname: string;
7331
+ middlename?: string | null | undefined;
6616
7332
  } | {
6617
7333
  country: string;
6618
7334
  district: string;
@@ -6635,8 +7351,9 @@ export declare const EventDocument: z.ZodObject<{
6635
7351
  option: string;
6636
7352
  filename: string;
6637
7353
  originalFilename: string;
6638
- }[] | undefined>;
6639
- assignedTo: null;
7354
+ }[] | [string, string] | null | undefined>;
7355
+ createdBySignature?: string | null | undefined;
7356
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6640
7357
  annotation?: Record<string, string | number | boolean | {
6641
7358
  type: string;
6642
7359
  filename: string;
@@ -6652,6 +7369,10 @@ export declare const EventDocument: z.ZodObject<{
6652
7369
  residentialArea?: string | null | undefined;
6653
7370
  street?: string | null | undefined;
6654
7371
  zipCode?: string | null | undefined;
7372
+ } | {
7373
+ firstname: string;
7374
+ surname: string;
7375
+ middlename?: string | null | undefined;
6655
7376
  } | {
6656
7377
  country: string;
6657
7378
  district: string;
@@ -6674,15 +7395,14 @@ export declare const EventDocument: z.ZodObject<{
6674
7395
  option: string;
6675
7396
  filename: string;
6676
7397
  originalFilename: string;
6677
- }[] | undefined> | undefined;
6678
- createdAtLocation?: string | undefined;
6679
- updatedAtLocation?: string | undefined;
6680
- originalActionId?: string | undefined;
7398
+ }[] | [string, string] | null | undefined> | null | undefined;
7399
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6681
7400
  } | {
6682
7401
  type: "REGISTER";
6683
- id: string;
7402
+ id: string & z.BRAND<"UUID">;
6684
7403
  status: "Rejected" | "Requested" | "Accepted";
6685
7404
  transactionId: string;
7405
+ createdByUserType: "system" | "user";
6686
7406
  createdAt: string;
6687
7407
  createdBy: string;
6688
7408
  createdByRole: string;
@@ -6701,6 +7421,10 @@ export declare const EventDocument: z.ZodObject<{
6701
7421
  residentialArea?: string | null | undefined;
6702
7422
  street?: string | null | undefined;
6703
7423
  zipCode?: string | null | undefined;
7424
+ } | {
7425
+ firstname: string;
7426
+ surname: string;
7427
+ middlename?: string | null | undefined;
6704
7428
  } | {
6705
7429
  country: string;
6706
7430
  district: string;
@@ -6723,7 +7447,9 @@ export declare const EventDocument: z.ZodObject<{
6723
7447
  option: string;
6724
7448
  filename: string;
6725
7449
  originalFilename: string;
6726
- }[] | undefined>;
7450
+ }[] | [string, string] | null | undefined>;
7451
+ createdBySignature?: string | null | undefined;
7452
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6727
7453
  annotation?: Record<string, string | number | boolean | {
6728
7454
  type: string;
6729
7455
  filename: string;
@@ -6739,6 +7465,10 @@ export declare const EventDocument: z.ZodObject<{
6739
7465
  residentialArea?: string | null | undefined;
6740
7466
  street?: string | null | undefined;
6741
7467
  zipCode?: string | null | undefined;
7468
+ } | {
7469
+ firstname: string;
7470
+ surname: string;
7471
+ middlename?: string | null | undefined;
6742
7472
  } | {
6743
7473
  country: string;
6744
7474
  district: string;
@@ -6761,16 +7491,15 @@ export declare const EventDocument: z.ZodObject<{
6761
7491
  option: string;
6762
7492
  filename: string;
6763
7493
  originalFilename: string;
6764
- }[] | undefined> | undefined;
6765
- createdAtLocation?: string | undefined;
6766
- updatedAtLocation?: string | undefined;
6767
- originalActionId?: string | undefined;
7494
+ }[] | [string, string] | null | undefined> | null | undefined;
7495
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6768
7496
  registrationNumber?: string | undefined;
6769
7497
  } | {
6770
7498
  type: "DECLARE";
6771
- id: string;
7499
+ id: string & z.BRAND<"UUID">;
6772
7500
  status: "Rejected" | "Requested" | "Accepted";
6773
7501
  transactionId: string;
7502
+ createdByUserType: "system" | "user";
6774
7503
  createdAt: string;
6775
7504
  createdBy: string;
6776
7505
  createdByRole: string;
@@ -6789,6 +7518,10 @@ export declare const EventDocument: z.ZodObject<{
6789
7518
  residentialArea?: string | null | undefined;
6790
7519
  street?: string | null | undefined;
6791
7520
  zipCode?: string | null | undefined;
7521
+ } | {
7522
+ firstname: string;
7523
+ surname: string;
7524
+ middlename?: string | null | undefined;
6792
7525
  } | {
6793
7526
  country: string;
6794
7527
  district: string;
@@ -6811,7 +7544,9 @@ export declare const EventDocument: z.ZodObject<{
6811
7544
  option: string;
6812
7545
  filename: string;
6813
7546
  originalFilename: string;
6814
- }[] | undefined>;
7547
+ }[] | [string, string] | null | undefined>;
7548
+ createdBySignature?: string | null | undefined;
7549
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6815
7550
  annotation?: Record<string, string | number | boolean | {
6816
7551
  type: string;
6817
7552
  filename: string;
@@ -6827,6 +7562,10 @@ export declare const EventDocument: z.ZodObject<{
6827
7562
  residentialArea?: string | null | undefined;
6828
7563
  street?: string | null | undefined;
6829
7564
  zipCode?: string | null | undefined;
7565
+ } | {
7566
+ firstname: string;
7567
+ surname: string;
7568
+ middlename?: string | null | undefined;
6830
7569
  } | {
6831
7570
  country: string;
6832
7571
  district: string;
@@ -6849,15 +7588,14 @@ export declare const EventDocument: z.ZodObject<{
6849
7588
  option: string;
6850
7589
  filename: string;
6851
7590
  originalFilename: string;
6852
- }[] | undefined> | undefined;
6853
- createdAtLocation?: string | undefined;
6854
- updatedAtLocation?: string | undefined;
6855
- originalActionId?: string | undefined;
7591
+ }[] | [string, string] | null | undefined> | null | undefined;
7592
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6856
7593
  } | {
6857
7594
  type: "VALIDATE";
6858
- id: string;
7595
+ id: string & z.BRAND<"UUID">;
6859
7596
  status: "Rejected" | "Requested" | "Accepted";
6860
7597
  transactionId: string;
7598
+ createdByUserType: "system" | "user";
6861
7599
  createdAt: string;
6862
7600
  createdBy: string;
6863
7601
  createdByRole: string;
@@ -6876,6 +7614,10 @@ export declare const EventDocument: z.ZodObject<{
6876
7614
  residentialArea?: string | null | undefined;
6877
7615
  street?: string | null | undefined;
6878
7616
  zipCode?: string | null | undefined;
7617
+ } | {
7618
+ firstname: string;
7619
+ surname: string;
7620
+ middlename?: string | null | undefined;
6879
7621
  } | {
6880
7622
  country: string;
6881
7623
  district: string;
@@ -6898,7 +7640,9 @@ export declare const EventDocument: z.ZodObject<{
6898
7640
  option: string;
6899
7641
  filename: string;
6900
7642
  originalFilename: string;
6901
- }[] | undefined>;
7643
+ }[] | [string, string] | null | undefined>;
7644
+ createdBySignature?: string | null | undefined;
7645
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6902
7646
  annotation?: Record<string, string | number | boolean | {
6903
7647
  type: string;
6904
7648
  filename: string;
@@ -6914,6 +7658,10 @@ export declare const EventDocument: z.ZodObject<{
6914
7658
  residentialArea?: string | null | undefined;
6915
7659
  street?: string | null | undefined;
6916
7660
  zipCode?: string | null | undefined;
7661
+ } | {
7662
+ firstname: string;
7663
+ surname: string;
7664
+ middlename?: string | null | undefined;
6917
7665
  } | {
6918
7666
  country: string;
6919
7667
  district: string;
@@ -6936,15 +7684,18 @@ export declare const EventDocument: z.ZodObject<{
6936
7684
  option: string;
6937
7685
  filename: string;
6938
7686
  originalFilename: string;
6939
- }[] | undefined> | undefined;
6940
- createdAtLocation?: string | undefined;
6941
- updatedAtLocation?: string | undefined;
6942
- originalActionId?: string | undefined;
7687
+ }[] | [string, string] | null | undefined> | null | undefined;
7688
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6943
7689
  } | {
6944
7690
  type: "REJECT";
6945
- id: string;
7691
+ id: string & z.BRAND<"UUID">;
6946
7692
  status: "Rejected" | "Requested" | "Accepted";
7693
+ reason: {
7694
+ message: string;
7695
+ isDuplicate?: boolean | undefined;
7696
+ };
6947
7697
  transactionId: string;
7698
+ createdByUserType: "system" | "user";
6948
7699
  createdAt: string;
6949
7700
  createdBy: string;
6950
7701
  createdByRole: string;
@@ -6963,6 +7714,10 @@ export declare const EventDocument: z.ZodObject<{
6963
7714
  residentialArea?: string | null | undefined;
6964
7715
  street?: string | null | undefined;
6965
7716
  zipCode?: string | null | undefined;
7717
+ } | {
7718
+ firstname: string;
7719
+ surname: string;
7720
+ middlename?: string | null | undefined;
6966
7721
  } | {
6967
7722
  country: string;
6968
7723
  district: string;
@@ -6985,7 +7740,9 @@ export declare const EventDocument: z.ZodObject<{
6985
7740
  option: string;
6986
7741
  filename: string;
6987
7742
  originalFilename: string;
6988
- }[] | undefined>;
7743
+ }[] | [string, string] | null | undefined>;
7744
+ createdBySignature?: string | null | undefined;
7745
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6989
7746
  annotation?: Record<string, string | number | boolean | {
6990
7747
  type: string;
6991
7748
  filename: string;
@@ -7001,6 +7758,10 @@ export declare const EventDocument: z.ZodObject<{
7001
7758
  residentialArea?: string | null | undefined;
7002
7759
  street?: string | null | undefined;
7003
7760
  zipCode?: string | null | undefined;
7761
+ } | {
7762
+ firstname: string;
7763
+ surname: string;
7764
+ middlename?: string | null | undefined;
7004
7765
  } | {
7005
7766
  country: string;
7006
7767
  district: string;
@@ -7023,15 +7784,14 @@ export declare const EventDocument: z.ZodObject<{
7023
7784
  option: string;
7024
7785
  filename: string;
7025
7786
  originalFilename: string;
7026
- }[] | undefined> | undefined;
7027
- createdAtLocation?: string | undefined;
7028
- updatedAtLocation?: string | undefined;
7029
- originalActionId?: string | undefined;
7787
+ }[] | [string, string] | null | undefined> | null | undefined;
7788
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7030
7789
  } | {
7031
7790
  type: "MARKED_AS_DUPLICATE";
7032
- id: string;
7791
+ id: string & z.BRAND<"UUID">;
7033
7792
  status: "Rejected" | "Requested" | "Accepted";
7034
7793
  transactionId: string;
7794
+ createdByUserType: "system" | "user";
7035
7795
  createdAt: string;
7036
7796
  createdBy: string;
7037
7797
  createdByRole: string;
@@ -7050,6 +7810,10 @@ export declare const EventDocument: z.ZodObject<{
7050
7810
  residentialArea?: string | null | undefined;
7051
7811
  street?: string | null | undefined;
7052
7812
  zipCode?: string | null | undefined;
7813
+ } | {
7814
+ firstname: string;
7815
+ surname: string;
7816
+ middlename?: string | null | undefined;
7053
7817
  } | {
7054
7818
  country: string;
7055
7819
  district: string;
@@ -7072,7 +7836,9 @@ export declare const EventDocument: z.ZodObject<{
7072
7836
  option: string;
7073
7837
  filename: string;
7074
7838
  originalFilename: string;
7075
- }[] | undefined>;
7839
+ }[] | [string, string] | null | undefined>;
7840
+ createdBySignature?: string | null | undefined;
7841
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7076
7842
  annotation?: Record<string, string | number | boolean | {
7077
7843
  type: string;
7078
7844
  filename: string;
@@ -7088,6 +7854,10 @@ export declare const EventDocument: z.ZodObject<{
7088
7854
  residentialArea?: string | null | undefined;
7089
7855
  street?: string | null | undefined;
7090
7856
  zipCode?: string | null | undefined;
7857
+ } | {
7858
+ firstname: string;
7859
+ surname: string;
7860
+ middlename?: string | null | undefined;
7091
7861
  } | {
7092
7862
  country: string;
7093
7863
  district: string;
@@ -7110,15 +7880,18 @@ export declare const EventDocument: z.ZodObject<{
7110
7880
  option: string;
7111
7881
  filename: string;
7112
7882
  originalFilename: string;
7113
- }[] | undefined> | undefined;
7114
- createdAtLocation?: string | undefined;
7115
- updatedAtLocation?: string | undefined;
7116
- originalActionId?: string | undefined;
7883
+ }[] | [string, string] | null | undefined> | null | undefined;
7884
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7117
7885
  } | {
7118
7886
  type: "ARCHIVE";
7119
- id: string;
7887
+ id: string & z.BRAND<"UUID">;
7120
7888
  status: "Rejected" | "Requested" | "Accepted";
7889
+ reason: {
7890
+ message: string;
7891
+ isDuplicate?: boolean | undefined;
7892
+ };
7121
7893
  transactionId: string;
7894
+ createdByUserType: "system" | "user";
7122
7895
  createdAt: string;
7123
7896
  createdBy: string;
7124
7897
  createdByRole: string;
@@ -7137,6 +7910,10 @@ export declare const EventDocument: z.ZodObject<{
7137
7910
  residentialArea?: string | null | undefined;
7138
7911
  street?: string | null | undefined;
7139
7912
  zipCode?: string | null | undefined;
7913
+ } | {
7914
+ firstname: string;
7915
+ surname: string;
7916
+ middlename?: string | null | undefined;
7140
7917
  } | {
7141
7918
  country: string;
7142
7919
  district: string;
@@ -7159,7 +7936,9 @@ export declare const EventDocument: z.ZodObject<{
7159
7936
  option: string;
7160
7937
  filename: string;
7161
7938
  originalFilename: string;
7162
- }[] | undefined>;
7939
+ }[] | [string, string] | null | undefined>;
7940
+ createdBySignature?: string | null | undefined;
7941
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7163
7942
  annotation?: Record<string, string | number | boolean | {
7164
7943
  type: string;
7165
7944
  filename: string;
@@ -7175,6 +7954,10 @@ export declare const EventDocument: z.ZodObject<{
7175
7954
  residentialArea?: string | null | undefined;
7176
7955
  street?: string | null | undefined;
7177
7956
  zipCode?: string | null | undefined;
7957
+ } | {
7958
+ firstname: string;
7959
+ surname: string;
7960
+ middlename?: string | null | undefined;
7178
7961
  } | {
7179
7962
  country: string;
7180
7963
  district: string;
@@ -7197,15 +7980,14 @@ export declare const EventDocument: z.ZodObject<{
7197
7980
  option: string;
7198
7981
  filename: string;
7199
7982
  originalFilename: string;
7200
- }[] | undefined> | undefined;
7201
- createdAtLocation?: string | undefined;
7202
- updatedAtLocation?: string | undefined;
7203
- originalActionId?: string | undefined;
7983
+ }[] | [string, string] | null | undefined> | null | undefined;
7984
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7204
7985
  } | {
7205
7986
  type: "CREATE";
7206
- id: string;
7987
+ id: string & z.BRAND<"UUID">;
7207
7988
  status: "Rejected" | "Requested" | "Accepted";
7208
7989
  transactionId: string;
7990
+ createdByUserType: "system" | "user";
7209
7991
  createdAt: string;
7210
7992
  createdBy: string;
7211
7993
  createdByRole: string;
@@ -7224,6 +8006,10 @@ export declare const EventDocument: z.ZodObject<{
7224
8006
  residentialArea?: string | null | undefined;
7225
8007
  street?: string | null | undefined;
7226
8008
  zipCode?: string | null | undefined;
8009
+ } | {
8010
+ firstname: string;
8011
+ surname: string;
8012
+ middlename?: string | null | undefined;
7227
8013
  } | {
7228
8014
  country: string;
7229
8015
  district: string;
@@ -7246,7 +8032,9 @@ export declare const EventDocument: z.ZodObject<{
7246
8032
  option: string;
7247
8033
  filename: string;
7248
8034
  originalFilename: string;
7249
- }[] | undefined>;
8035
+ }[] | [string, string] | null | undefined>;
8036
+ createdBySignature?: string | null | undefined;
8037
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7250
8038
  annotation?: Record<string, string | number | boolean | {
7251
8039
  type: string;
7252
8040
  filename: string;
@@ -7262,6 +8050,10 @@ export declare const EventDocument: z.ZodObject<{
7262
8050
  residentialArea?: string | null | undefined;
7263
8051
  street?: string | null | undefined;
7264
8052
  zipCode?: string | null | undefined;
8053
+ } | {
8054
+ firstname: string;
8055
+ surname: string;
8056
+ middlename?: string | null | undefined;
7265
8057
  } | {
7266
8058
  country: string;
7267
8059
  district: string;
@@ -7284,15 +8076,14 @@ export declare const EventDocument: z.ZodObject<{
7284
8076
  option: string;
7285
8077
  filename: string;
7286
8078
  originalFilename: string;
7287
- }[] | undefined> | undefined;
7288
- createdAtLocation?: string | undefined;
7289
- updatedAtLocation?: string | undefined;
7290
- originalActionId?: string | undefined;
8079
+ }[] | [string, string] | null | undefined> | null | undefined;
8080
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7291
8081
  } | {
7292
8082
  type: "NOTIFY";
7293
- id: string;
8083
+ id: string & z.BRAND<"UUID">;
7294
8084
  status: "Rejected" | "Requested" | "Accepted";
7295
8085
  transactionId: string;
8086
+ createdByUserType: "system" | "user";
7296
8087
  createdAt: string;
7297
8088
  createdBy: string;
7298
8089
  createdByRole: string;
@@ -7311,6 +8102,10 @@ export declare const EventDocument: z.ZodObject<{
7311
8102
  residentialArea?: string | null | undefined;
7312
8103
  street?: string | null | undefined;
7313
8104
  zipCode?: string | null | undefined;
8105
+ } | {
8106
+ firstname: string;
8107
+ surname: string;
8108
+ middlename?: string | null | undefined;
7314
8109
  } | {
7315
8110
  country: string;
7316
8111
  district: string;
@@ -7333,7 +8128,9 @@ export declare const EventDocument: z.ZodObject<{
7333
8128
  option: string;
7334
8129
  filename: string;
7335
8130
  originalFilename: string;
7336
- }[] | undefined>;
8131
+ }[] | [string, string] | null | undefined>;
8132
+ createdBySignature?: string | null | undefined;
8133
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7337
8134
  annotation?: Record<string, string | number | boolean | {
7338
8135
  type: string;
7339
8136
  filename: string;
@@ -7349,6 +8146,10 @@ export declare const EventDocument: z.ZodObject<{
7349
8146
  residentialArea?: string | null | undefined;
7350
8147
  street?: string | null | undefined;
7351
8148
  zipCode?: string | null | undefined;
8149
+ } | {
8150
+ firstname: string;
8151
+ surname: string;
8152
+ middlename?: string | null | undefined;
7352
8153
  } | {
7353
8154
  country: string;
7354
8155
  district: string;
@@ -7371,15 +8172,14 @@ export declare const EventDocument: z.ZodObject<{
7371
8172
  option: string;
7372
8173
  filename: string;
7373
8174
  originalFilename: string;
7374
- }[] | undefined> | undefined;
7375
- createdAtLocation?: string | undefined;
7376
- updatedAtLocation?: string | undefined;
7377
- originalActionId?: string | undefined;
8175
+ }[] | [string, string] | null | undefined> | null | undefined;
8176
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7378
8177
  } | {
7379
8178
  type: "PRINT_CERTIFICATE";
7380
- id: string;
8179
+ id: string & z.BRAND<"UUID">;
7381
8180
  status: "Rejected" | "Requested" | "Accepted";
7382
8181
  transactionId: string;
8182
+ createdByUserType: "system" | "user";
7383
8183
  createdAt: string;
7384
8184
  createdBy: string;
7385
8185
  createdByRole: string;
@@ -7398,6 +8198,10 @@ export declare const EventDocument: z.ZodObject<{
7398
8198
  residentialArea?: string | null | undefined;
7399
8199
  street?: string | null | undefined;
7400
8200
  zipCode?: string | null | undefined;
8201
+ } | {
8202
+ firstname: string;
8203
+ surname: string;
8204
+ middlename?: string | null | undefined;
7401
8205
  } | {
7402
8206
  country: string;
7403
8207
  district: string;
@@ -7420,7 +8224,9 @@ export declare const EventDocument: z.ZodObject<{
7420
8224
  option: string;
7421
8225
  filename: string;
7422
8226
  originalFilename: string;
7423
- }[] | undefined>;
8227
+ }[] | [string, string] | null | undefined>;
8228
+ createdBySignature?: string | null | undefined;
8229
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7424
8230
  annotation?: Record<string, string | number | boolean | {
7425
8231
  type: string;
7426
8232
  filename: string;
@@ -7436,6 +8242,10 @@ export declare const EventDocument: z.ZodObject<{
7436
8242
  residentialArea?: string | null | undefined;
7437
8243
  street?: string | null | undefined;
7438
8244
  zipCode?: string | null | undefined;
8245
+ } | {
8246
+ firstname: string;
8247
+ surname: string;
8248
+ middlename?: string | null | undefined;
7439
8249
  } | {
7440
8250
  country: string;
7441
8251
  district: string;
@@ -7458,15 +8268,14 @@ export declare const EventDocument: z.ZodObject<{
7458
8268
  option: string;
7459
8269
  filename: string;
7460
8270
  originalFilename: string;
7461
- }[] | undefined> | undefined;
7462
- createdAtLocation?: string | undefined;
7463
- updatedAtLocation?: string | undefined;
7464
- originalActionId?: string | undefined;
8271
+ }[] | [string, string] | null | undefined> | null | undefined;
8272
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7465
8273
  } | {
7466
8274
  type: "REQUEST_CORRECTION";
7467
- id: string;
8275
+ id: string & z.BRAND<"UUID">;
7468
8276
  status: "Rejected" | "Requested" | "Accepted";
7469
8277
  transactionId: string;
8278
+ createdByUserType: "system" | "user";
7470
8279
  createdAt: string;
7471
8280
  createdBy: string;
7472
8281
  createdByRole: string;
@@ -7485,6 +8294,10 @@ export declare const EventDocument: z.ZodObject<{
7485
8294
  residentialArea?: string | null | undefined;
7486
8295
  street?: string | null | undefined;
7487
8296
  zipCode?: string | null | undefined;
8297
+ } | {
8298
+ firstname: string;
8299
+ surname: string;
8300
+ middlename?: string | null | undefined;
7488
8301
  } | {
7489
8302
  country: string;
7490
8303
  district: string;
@@ -7507,7 +8320,9 @@ export declare const EventDocument: z.ZodObject<{
7507
8320
  option: string;
7508
8321
  filename: string;
7509
8322
  originalFilename: string;
7510
- }[] | undefined>;
8323
+ }[] | [string, string] | null | undefined>;
8324
+ createdBySignature?: string | null | undefined;
8325
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7511
8326
  annotation?: Record<string, string | number | boolean | {
7512
8327
  type: string;
7513
8328
  filename: string;
@@ -7523,6 +8338,10 @@ export declare const EventDocument: z.ZodObject<{
7523
8338
  residentialArea?: string | null | undefined;
7524
8339
  street?: string | null | undefined;
7525
8340
  zipCode?: string | null | undefined;
8341
+ } | {
8342
+ firstname: string;
8343
+ surname: string;
8344
+ middlename?: string | null | undefined;
7526
8345
  } | {
7527
8346
  country: string;
7528
8347
  district: string;
@@ -7545,15 +8364,14 @@ export declare const EventDocument: z.ZodObject<{
7545
8364
  option: string;
7546
8365
  filename: string;
7547
8366
  originalFilename: string;
7548
- }[] | undefined> | undefined;
7549
- createdAtLocation?: string | undefined;
7550
- updatedAtLocation?: string | undefined;
7551
- originalActionId?: string | undefined;
8367
+ }[] | [string, string] | null | undefined> | null | undefined;
8368
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7552
8369
  } | {
7553
8370
  type: "APPROVE_CORRECTION";
7554
- id: string;
8371
+ id: string & z.BRAND<"UUID">;
7555
8372
  status: "Rejected" | "Requested" | "Accepted";
7556
8373
  transactionId: string;
8374
+ createdByUserType: "system" | "user";
7557
8375
  createdAt: string;
7558
8376
  createdBy: string;
7559
8377
  createdByRole: string;
@@ -7572,6 +8390,10 @@ export declare const EventDocument: z.ZodObject<{
7572
8390
  residentialArea?: string | null | undefined;
7573
8391
  street?: string | null | undefined;
7574
8392
  zipCode?: string | null | undefined;
8393
+ } | {
8394
+ firstname: string;
8395
+ surname: string;
8396
+ middlename?: string | null | undefined;
7575
8397
  } | {
7576
8398
  country: string;
7577
8399
  district: string;
@@ -7594,8 +8416,10 @@ export declare const EventDocument: z.ZodObject<{
7594
8416
  option: string;
7595
8417
  filename: string;
7596
8418
  originalFilename: string;
7597
- }[] | undefined>;
8419
+ }[] | [string, string] | null | undefined>;
7598
8420
  requestId: string;
8421
+ createdBySignature?: string | null | undefined;
8422
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7599
8423
  annotation?: Record<string, string | number | boolean | {
7600
8424
  type: string;
7601
8425
  filename: string;
@@ -7611,6 +8435,10 @@ export declare const EventDocument: z.ZodObject<{
7611
8435
  residentialArea?: string | null | undefined;
7612
8436
  street?: string | null | undefined;
7613
8437
  zipCode?: string | null | undefined;
8438
+ } | {
8439
+ firstname: string;
8440
+ surname: string;
8441
+ middlename?: string | null | undefined;
7614
8442
  } | {
7615
8443
  country: string;
7616
8444
  district: string;
@@ -7633,15 +8461,14 @@ export declare const EventDocument: z.ZodObject<{
7633
8461
  option: string;
7634
8462
  filename: string;
7635
8463
  originalFilename: string;
7636
- }[] | undefined> | undefined;
7637
- createdAtLocation?: string | undefined;
7638
- updatedAtLocation?: string | undefined;
7639
- originalActionId?: string | undefined;
8464
+ }[] | [string, string] | null | undefined> | null | undefined;
8465
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7640
8466
  } | {
7641
8467
  type: "REJECT_CORRECTION";
7642
- id: string;
8468
+ id: string & z.BRAND<"UUID">;
7643
8469
  status: "Rejected" | "Requested" | "Accepted";
7644
8470
  transactionId: string;
8471
+ createdByUserType: "system" | "user";
7645
8472
  createdAt: string;
7646
8473
  createdBy: string;
7647
8474
  createdByRole: string;
@@ -7660,6 +8487,10 @@ export declare const EventDocument: z.ZodObject<{
7660
8487
  residentialArea?: string | null | undefined;
7661
8488
  street?: string | null | undefined;
7662
8489
  zipCode?: string | null | undefined;
8490
+ } | {
8491
+ firstname: string;
8492
+ surname: string;
8493
+ middlename?: string | null | undefined;
7663
8494
  } | {
7664
8495
  country: string;
7665
8496
  district: string;
@@ -7682,8 +8513,10 @@ export declare const EventDocument: z.ZodObject<{
7682
8513
  option: string;
7683
8514
  filename: string;
7684
8515
  originalFilename: string;
7685
- }[] | undefined>;
8516
+ }[] | [string, string] | null | undefined>;
7686
8517
  requestId: string;
8518
+ createdBySignature?: string | null | undefined;
8519
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7687
8520
  annotation?: Record<string, string | number | boolean | {
7688
8521
  type: string;
7689
8522
  filename: string;
@@ -7699,6 +8532,10 @@ export declare const EventDocument: z.ZodObject<{
7699
8532
  residentialArea?: string | null | undefined;
7700
8533
  street?: string | null | undefined;
7701
8534
  zipCode?: string | null | undefined;
8535
+ } | {
8536
+ firstname: string;
8537
+ surname: string;
8538
+ middlename?: string | null | undefined;
7702
8539
  } | {
7703
8540
  country: string;
7704
8541
  district: string;
@@ -7721,15 +8558,14 @@ export declare const EventDocument: z.ZodObject<{
7721
8558
  option: string;
7722
8559
  filename: string;
7723
8560
  originalFilename: string;
7724
- }[] | undefined> | undefined;
7725
- createdAtLocation?: string | undefined;
7726
- updatedAtLocation?: string | undefined;
7727
- originalActionId?: string | undefined;
8561
+ }[] | [string, string] | null | undefined> | null | undefined;
8562
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7728
8563
  } | {
7729
8564
  type: "READ";
7730
- id: string;
8565
+ id: string & z.BRAND<"UUID">;
7731
8566
  status: "Rejected" | "Requested" | "Accepted";
7732
8567
  transactionId: string;
8568
+ createdByUserType: "system" | "user";
7733
8569
  createdAt: string;
7734
8570
  createdBy: string;
7735
8571
  createdByRole: string;
@@ -7748,6 +8584,10 @@ export declare const EventDocument: z.ZodObject<{
7748
8584
  residentialArea?: string | null | undefined;
7749
8585
  street?: string | null | undefined;
7750
8586
  zipCode?: string | null | undefined;
8587
+ } | {
8588
+ firstname: string;
8589
+ surname: string;
8590
+ middlename?: string | null | undefined;
7751
8591
  } | {
7752
8592
  country: string;
7753
8593
  district: string;
@@ -7770,7 +8610,9 @@ export declare const EventDocument: z.ZodObject<{
7770
8610
  option: string;
7771
8611
  filename: string;
7772
8612
  originalFilename: string;
7773
- }[] | undefined>;
8613
+ }[] | [string, string] | null | undefined>;
8614
+ createdBySignature?: string | null | undefined;
8615
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7774
8616
  annotation?: Record<string, string | number | boolean | {
7775
8617
  type: string;
7776
8618
  filename: string;
@@ -7786,6 +8628,10 @@ export declare const EventDocument: z.ZodObject<{
7786
8628
  residentialArea?: string | null | undefined;
7787
8629
  street?: string | null | undefined;
7788
8630
  zipCode?: string | null | undefined;
8631
+ } | {
8632
+ firstname: string;
8633
+ surname: string;
8634
+ middlename?: string | null | undefined;
7789
8635
  } | {
7790
8636
  country: string;
7791
8637
  district: string;
@@ -7808,34 +8654,33 @@ export declare const EventDocument: z.ZodObject<{
7808
8654
  option: string;
7809
8655
  filename: string;
7810
8656
  originalFilename: string;
7811
- }[] | undefined> | undefined;
7812
- createdAtLocation?: string | undefined;
7813
- updatedAtLocation?: string | undefined;
7814
- originalActionId?: string | undefined;
8657
+ }[] | [string, string] | null | undefined> | null | undefined;
8658
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7815
8659
  } | {
7816
8660
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7817
- id: string;
8661
+ id: string & z.BRAND<"UUID">;
7818
8662
  status: "Rejected";
7819
8663
  transactionId: string;
8664
+ createdByUserType: "system" | "user";
7820
8665
  createdAt: string;
7821
- updatedAtLocation?: string | undefined;
7822
- originalActionId?: string | undefined;
8666
+ createdBy: string;
8667
+ createdByRole: string;
8668
+ createdBySignature?: string | null | undefined;
8669
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
8670
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7823
8671
  })[];
7824
8672
  trackingId: string;
7825
- dateOfEvent?: {
7826
- fieldId: string;
7827
- } | undefined;
7828
8673
  }, {
7829
8674
  type: string;
7830
8675
  id: string;
7831
8676
  createdAt: string;
7832
- updatedAtLocation: string;
7833
8677
  updatedAt: string;
7834
8678
  actions: ({
7835
8679
  type: "ASSIGN";
7836
8680
  id: string;
7837
8681
  status: "Rejected" | "Requested" | "Accepted";
7838
8682
  transactionId: string;
8683
+ createdByUserType: "system" | "user";
7839
8684
  createdAt: string;
7840
8685
  createdBy: string;
7841
8686
  createdByRole: string;
@@ -7854,6 +8699,10 @@ export declare const EventDocument: z.ZodObject<{
7854
8699
  residentialArea?: string | null | undefined;
7855
8700
  street?: string | null | undefined;
7856
8701
  zipCode?: string | null | undefined;
8702
+ } | {
8703
+ firstname: string;
8704
+ surname: string;
8705
+ middlename?: string | null | undefined;
7857
8706
  } | {
7858
8707
  country: string;
7859
8708
  district: string;
@@ -7876,8 +8725,10 @@ export declare const EventDocument: z.ZodObject<{
7876
8725
  option: string;
7877
8726
  filename: string;
7878
8727
  originalFilename: string;
7879
- }[] | undefined>;
8728
+ }[] | [string, string] | null | undefined>;
7880
8729
  assignedTo: string;
8730
+ createdBySignature?: string | null | undefined;
8731
+ createdAtLocation?: string | null | undefined;
7881
8732
  annotation?: Record<string, string | number | boolean | {
7882
8733
  type: string;
7883
8734
  filename: string;
@@ -7893,6 +8744,10 @@ export declare const EventDocument: z.ZodObject<{
7893
8744
  residentialArea?: string | null | undefined;
7894
8745
  street?: string | null | undefined;
7895
8746
  zipCode?: string | null | undefined;
8747
+ } | {
8748
+ firstname: string;
8749
+ surname: string;
8750
+ middlename?: string | null | undefined;
7896
8751
  } | {
7897
8752
  country: string;
7898
8753
  district: string;
@@ -7915,15 +8770,14 @@ export declare const EventDocument: z.ZodObject<{
7915
8770
  option: string;
7916
8771
  filename: string;
7917
8772
  originalFilename: string;
7918
- }[] | undefined> | undefined;
7919
- createdAtLocation?: string | undefined;
7920
- updatedAtLocation?: string | undefined;
7921
- originalActionId?: string | undefined;
8773
+ }[] | [string, string] | null | undefined> | null | undefined;
8774
+ originalActionId?: string | null | undefined;
7922
8775
  } | {
7923
8776
  type: "UNASSIGN";
7924
8777
  id: string;
7925
8778
  status: "Rejected" | "Requested" | "Accepted";
7926
8779
  transactionId: string;
8780
+ createdByUserType: "system" | "user";
7927
8781
  createdAt: string;
7928
8782
  createdBy: string;
7929
8783
  createdByRole: string;
@@ -7942,6 +8796,10 @@ export declare const EventDocument: z.ZodObject<{
7942
8796
  residentialArea?: string | null | undefined;
7943
8797
  street?: string | null | undefined;
7944
8798
  zipCode?: string | null | undefined;
8799
+ } | {
8800
+ firstname: string;
8801
+ surname: string;
8802
+ middlename?: string | null | undefined;
7945
8803
  } | {
7946
8804
  country: string;
7947
8805
  district: string;
@@ -7964,8 +8822,9 @@ export declare const EventDocument: z.ZodObject<{
7964
8822
  option: string;
7965
8823
  filename: string;
7966
8824
  originalFilename: string;
7967
- }[] | undefined>;
7968
- assignedTo: null;
8825
+ }[] | [string, string] | null | undefined>;
8826
+ createdBySignature?: string | null | undefined;
8827
+ createdAtLocation?: string | null | undefined;
7969
8828
  annotation?: Record<string, string | number | boolean | {
7970
8829
  type: string;
7971
8830
  filename: string;
@@ -7981,6 +8840,10 @@ export declare const EventDocument: z.ZodObject<{
7981
8840
  residentialArea?: string | null | undefined;
7982
8841
  street?: string | null | undefined;
7983
8842
  zipCode?: string | null | undefined;
8843
+ } | {
8844
+ firstname: string;
8845
+ surname: string;
8846
+ middlename?: string | null | undefined;
7984
8847
  } | {
7985
8848
  country: string;
7986
8849
  district: string;
@@ -8003,15 +8866,14 @@ export declare const EventDocument: z.ZodObject<{
8003
8866
  option: string;
8004
8867
  filename: string;
8005
8868
  originalFilename: string;
8006
- }[] | undefined> | undefined;
8007
- createdAtLocation?: string | undefined;
8008
- updatedAtLocation?: string | undefined;
8009
- originalActionId?: string | undefined;
8869
+ }[] | [string, string] | null | undefined> | null | undefined;
8870
+ originalActionId?: string | null | undefined;
8010
8871
  } | {
8011
8872
  type: "REGISTER";
8012
8873
  id: string;
8013
8874
  status: "Rejected" | "Requested" | "Accepted";
8014
8875
  transactionId: string;
8876
+ createdByUserType: "system" | "user";
8015
8877
  createdAt: string;
8016
8878
  createdBy: string;
8017
8879
  createdByRole: string;
@@ -8030,6 +8892,10 @@ export declare const EventDocument: z.ZodObject<{
8030
8892
  residentialArea?: string | null | undefined;
8031
8893
  street?: string | null | undefined;
8032
8894
  zipCode?: string | null | undefined;
8895
+ } | {
8896
+ firstname: string;
8897
+ surname: string;
8898
+ middlename?: string | null | undefined;
8033
8899
  } | {
8034
8900
  country: string;
8035
8901
  district: string;
@@ -8052,7 +8918,9 @@ export declare const EventDocument: z.ZodObject<{
8052
8918
  option: string;
8053
8919
  filename: string;
8054
8920
  originalFilename: string;
8055
- }[] | undefined>;
8921
+ }[] | [string, string] | null | undefined>;
8922
+ createdBySignature?: string | null | undefined;
8923
+ createdAtLocation?: string | null | undefined;
8056
8924
  annotation?: Record<string, string | number | boolean | {
8057
8925
  type: string;
8058
8926
  filename: string;
@@ -8068,6 +8936,10 @@ export declare const EventDocument: z.ZodObject<{
8068
8936
  residentialArea?: string | null | undefined;
8069
8937
  street?: string | null | undefined;
8070
8938
  zipCode?: string | null | undefined;
8939
+ } | {
8940
+ firstname: string;
8941
+ surname: string;
8942
+ middlename?: string | null | undefined;
8071
8943
  } | {
8072
8944
  country: string;
8073
8945
  district: string;
@@ -8090,16 +8962,15 @@ export declare const EventDocument: z.ZodObject<{
8090
8962
  option: string;
8091
8963
  filename: string;
8092
8964
  originalFilename: string;
8093
- }[] | undefined> | undefined;
8094
- createdAtLocation?: string | undefined;
8095
- updatedAtLocation?: string | undefined;
8096
- originalActionId?: string | undefined;
8965
+ }[] | [string, string] | null | undefined> | null | undefined;
8966
+ originalActionId?: string | null | undefined;
8097
8967
  registrationNumber?: string | undefined;
8098
8968
  } | {
8099
8969
  type: "DECLARE";
8100
8970
  id: string;
8101
8971
  status: "Rejected" | "Requested" | "Accepted";
8102
8972
  transactionId: string;
8973
+ createdByUserType: "system" | "user";
8103
8974
  createdAt: string;
8104
8975
  createdBy: string;
8105
8976
  createdByRole: string;
@@ -8118,6 +8989,10 @@ export declare const EventDocument: z.ZodObject<{
8118
8989
  residentialArea?: string | null | undefined;
8119
8990
  street?: string | null | undefined;
8120
8991
  zipCode?: string | null | undefined;
8992
+ } | {
8993
+ firstname: string;
8994
+ surname: string;
8995
+ middlename?: string | null | undefined;
8121
8996
  } | {
8122
8997
  country: string;
8123
8998
  district: string;
@@ -8140,7 +9015,9 @@ export declare const EventDocument: z.ZodObject<{
8140
9015
  option: string;
8141
9016
  filename: string;
8142
9017
  originalFilename: string;
8143
- }[] | undefined>;
9018
+ }[] | [string, string] | null | undefined>;
9019
+ createdBySignature?: string | null | undefined;
9020
+ createdAtLocation?: string | null | undefined;
8144
9021
  annotation?: Record<string, string | number | boolean | {
8145
9022
  type: string;
8146
9023
  filename: string;
@@ -8156,6 +9033,10 @@ export declare const EventDocument: z.ZodObject<{
8156
9033
  residentialArea?: string | null | undefined;
8157
9034
  street?: string | null | undefined;
8158
9035
  zipCode?: string | null | undefined;
9036
+ } | {
9037
+ firstname: string;
9038
+ surname: string;
9039
+ middlename?: string | null | undefined;
8159
9040
  } | {
8160
9041
  country: string;
8161
9042
  district: string;
@@ -8178,15 +9059,14 @@ export declare const EventDocument: z.ZodObject<{
8178
9059
  option: string;
8179
9060
  filename: string;
8180
9061
  originalFilename: string;
8181
- }[] | undefined> | undefined;
8182
- createdAtLocation?: string | undefined;
8183
- updatedAtLocation?: string | undefined;
8184
- originalActionId?: string | undefined;
9062
+ }[] | [string, string] | null | undefined> | null | undefined;
9063
+ originalActionId?: string | null | undefined;
8185
9064
  } | {
8186
9065
  type: "VALIDATE";
8187
9066
  id: string;
8188
9067
  status: "Rejected" | "Requested" | "Accepted";
8189
9068
  transactionId: string;
9069
+ createdByUserType: "system" | "user";
8190
9070
  createdAt: string;
8191
9071
  createdBy: string;
8192
9072
  createdByRole: string;
@@ -8205,6 +9085,10 @@ export declare const EventDocument: z.ZodObject<{
8205
9085
  residentialArea?: string | null | undefined;
8206
9086
  street?: string | null | undefined;
8207
9087
  zipCode?: string | null | undefined;
9088
+ } | {
9089
+ firstname: string;
9090
+ surname: string;
9091
+ middlename?: string | null | undefined;
8208
9092
  } | {
8209
9093
  country: string;
8210
9094
  district: string;
@@ -8227,7 +9111,9 @@ export declare const EventDocument: z.ZodObject<{
8227
9111
  option: string;
8228
9112
  filename: string;
8229
9113
  originalFilename: string;
8230
- }[] | undefined>;
9114
+ }[] | [string, string] | null | undefined>;
9115
+ createdBySignature?: string | null | undefined;
9116
+ createdAtLocation?: string | null | undefined;
8231
9117
  annotation?: Record<string, string | number | boolean | {
8232
9118
  type: string;
8233
9119
  filename: string;
@@ -8243,6 +9129,10 @@ export declare const EventDocument: z.ZodObject<{
8243
9129
  residentialArea?: string | null | undefined;
8244
9130
  street?: string | null | undefined;
8245
9131
  zipCode?: string | null | undefined;
9132
+ } | {
9133
+ firstname: string;
9134
+ surname: string;
9135
+ middlename?: string | null | undefined;
8246
9136
  } | {
8247
9137
  country: string;
8248
9138
  district: string;
@@ -8265,15 +9155,18 @@ export declare const EventDocument: z.ZodObject<{
8265
9155
  option: string;
8266
9156
  filename: string;
8267
9157
  originalFilename: string;
8268
- }[] | undefined> | undefined;
8269
- createdAtLocation?: string | undefined;
8270
- updatedAtLocation?: string | undefined;
8271
- originalActionId?: string | undefined;
9158
+ }[] | [string, string] | null | undefined> | null | undefined;
9159
+ originalActionId?: string | null | undefined;
8272
9160
  } | {
8273
9161
  type: "REJECT";
8274
9162
  id: string;
8275
9163
  status: "Rejected" | "Requested" | "Accepted";
9164
+ reason: {
9165
+ message: string;
9166
+ isDuplicate?: boolean | undefined;
9167
+ };
8276
9168
  transactionId: string;
9169
+ createdByUserType: "system" | "user";
8277
9170
  createdAt: string;
8278
9171
  createdBy: string;
8279
9172
  createdByRole: string;
@@ -8292,6 +9185,10 @@ export declare const EventDocument: z.ZodObject<{
8292
9185
  residentialArea?: string | null | undefined;
8293
9186
  street?: string | null | undefined;
8294
9187
  zipCode?: string | null | undefined;
9188
+ } | {
9189
+ firstname: string;
9190
+ surname: string;
9191
+ middlename?: string | null | undefined;
8295
9192
  } | {
8296
9193
  country: string;
8297
9194
  district: string;
@@ -8314,7 +9211,9 @@ export declare const EventDocument: z.ZodObject<{
8314
9211
  option: string;
8315
9212
  filename: string;
8316
9213
  originalFilename: string;
8317
- }[] | undefined>;
9214
+ }[] | [string, string] | null | undefined>;
9215
+ createdBySignature?: string | null | undefined;
9216
+ createdAtLocation?: string | null | undefined;
8318
9217
  annotation?: Record<string, string | number | boolean | {
8319
9218
  type: string;
8320
9219
  filename: string;
@@ -8330,6 +9229,10 @@ export declare const EventDocument: z.ZodObject<{
8330
9229
  residentialArea?: string | null | undefined;
8331
9230
  street?: string | null | undefined;
8332
9231
  zipCode?: string | null | undefined;
9232
+ } | {
9233
+ firstname: string;
9234
+ surname: string;
9235
+ middlename?: string | null | undefined;
8333
9236
  } | {
8334
9237
  country: string;
8335
9238
  district: string;
@@ -8352,15 +9255,14 @@ export declare const EventDocument: z.ZodObject<{
8352
9255
  option: string;
8353
9256
  filename: string;
8354
9257
  originalFilename: string;
8355
- }[] | undefined> | undefined;
8356
- createdAtLocation?: string | undefined;
8357
- updatedAtLocation?: string | undefined;
8358
- originalActionId?: string | undefined;
9258
+ }[] | [string, string] | null | undefined> | null | undefined;
9259
+ originalActionId?: string | null | undefined;
8359
9260
  } | {
8360
9261
  type: "MARKED_AS_DUPLICATE";
8361
9262
  id: string;
8362
9263
  status: "Rejected" | "Requested" | "Accepted";
8363
9264
  transactionId: string;
9265
+ createdByUserType: "system" | "user";
8364
9266
  createdAt: string;
8365
9267
  createdBy: string;
8366
9268
  createdByRole: string;
@@ -8379,6 +9281,10 @@ export declare const EventDocument: z.ZodObject<{
8379
9281
  residentialArea?: string | null | undefined;
8380
9282
  street?: string | null | undefined;
8381
9283
  zipCode?: string | null | undefined;
9284
+ } | {
9285
+ firstname: string;
9286
+ surname: string;
9287
+ middlename?: string | null | undefined;
8382
9288
  } | {
8383
9289
  country: string;
8384
9290
  district: string;
@@ -8401,7 +9307,9 @@ export declare const EventDocument: z.ZodObject<{
8401
9307
  option: string;
8402
9308
  filename: string;
8403
9309
  originalFilename: string;
8404
- }[] | undefined>;
9310
+ }[] | [string, string] | null | undefined>;
9311
+ createdBySignature?: string | null | undefined;
9312
+ createdAtLocation?: string | null | undefined;
8405
9313
  annotation?: Record<string, string | number | boolean | {
8406
9314
  type: string;
8407
9315
  filename: string;
@@ -8417,6 +9325,10 @@ export declare const EventDocument: z.ZodObject<{
8417
9325
  residentialArea?: string | null | undefined;
8418
9326
  street?: string | null | undefined;
8419
9327
  zipCode?: string | null | undefined;
9328
+ } | {
9329
+ firstname: string;
9330
+ surname: string;
9331
+ middlename?: string | null | undefined;
8420
9332
  } | {
8421
9333
  country: string;
8422
9334
  district: string;
@@ -8439,15 +9351,18 @@ export declare const EventDocument: z.ZodObject<{
8439
9351
  option: string;
8440
9352
  filename: string;
8441
9353
  originalFilename: string;
8442
- }[] | undefined> | undefined;
8443
- createdAtLocation?: string | undefined;
8444
- updatedAtLocation?: string | undefined;
8445
- originalActionId?: string | undefined;
9354
+ }[] | [string, string] | null | undefined> | null | undefined;
9355
+ originalActionId?: string | null | undefined;
8446
9356
  } | {
8447
9357
  type: "ARCHIVE";
8448
9358
  id: string;
8449
9359
  status: "Rejected" | "Requested" | "Accepted";
9360
+ reason: {
9361
+ message: string;
9362
+ isDuplicate?: boolean | undefined;
9363
+ };
8450
9364
  transactionId: string;
9365
+ createdByUserType: "system" | "user";
8451
9366
  createdAt: string;
8452
9367
  createdBy: string;
8453
9368
  createdByRole: string;
@@ -8466,6 +9381,10 @@ export declare const EventDocument: z.ZodObject<{
8466
9381
  residentialArea?: string | null | undefined;
8467
9382
  street?: string | null | undefined;
8468
9383
  zipCode?: string | null | undefined;
9384
+ } | {
9385
+ firstname: string;
9386
+ surname: string;
9387
+ middlename?: string | null | undefined;
8469
9388
  } | {
8470
9389
  country: string;
8471
9390
  district: string;
@@ -8488,7 +9407,9 @@ export declare const EventDocument: z.ZodObject<{
8488
9407
  option: string;
8489
9408
  filename: string;
8490
9409
  originalFilename: string;
8491
- }[] | undefined>;
9410
+ }[] | [string, string] | null | undefined>;
9411
+ createdBySignature?: string | null | undefined;
9412
+ createdAtLocation?: string | null | undefined;
8492
9413
  annotation?: Record<string, string | number | boolean | {
8493
9414
  type: string;
8494
9415
  filename: string;
@@ -8504,6 +9425,10 @@ export declare const EventDocument: z.ZodObject<{
8504
9425
  residentialArea?: string | null | undefined;
8505
9426
  street?: string | null | undefined;
8506
9427
  zipCode?: string | null | undefined;
9428
+ } | {
9429
+ firstname: string;
9430
+ surname: string;
9431
+ middlename?: string | null | undefined;
8507
9432
  } | {
8508
9433
  country: string;
8509
9434
  district: string;
@@ -8526,15 +9451,14 @@ export declare const EventDocument: z.ZodObject<{
8526
9451
  option: string;
8527
9452
  filename: string;
8528
9453
  originalFilename: string;
8529
- }[] | undefined> | undefined;
8530
- createdAtLocation?: string | undefined;
8531
- updatedAtLocation?: string | undefined;
8532
- originalActionId?: string | undefined;
9454
+ }[] | [string, string] | null | undefined> | null | undefined;
9455
+ originalActionId?: string | null | undefined;
8533
9456
  } | {
8534
9457
  type: "CREATE";
8535
9458
  id: string;
8536
9459
  status: "Rejected" | "Requested" | "Accepted";
8537
9460
  transactionId: string;
9461
+ createdByUserType: "system" | "user";
8538
9462
  createdAt: string;
8539
9463
  createdBy: string;
8540
9464
  createdByRole: string;
@@ -8553,6 +9477,10 @@ export declare const EventDocument: z.ZodObject<{
8553
9477
  residentialArea?: string | null | undefined;
8554
9478
  street?: string | null | undefined;
8555
9479
  zipCode?: string | null | undefined;
9480
+ } | {
9481
+ firstname: string;
9482
+ surname: string;
9483
+ middlename?: string | null | undefined;
8556
9484
  } | {
8557
9485
  country: string;
8558
9486
  district: string;
@@ -8575,7 +9503,9 @@ export declare const EventDocument: z.ZodObject<{
8575
9503
  option: string;
8576
9504
  filename: string;
8577
9505
  originalFilename: string;
8578
- }[] | undefined>;
9506
+ }[] | [string, string] | null | undefined>;
9507
+ createdBySignature?: string | null | undefined;
9508
+ createdAtLocation?: string | null | undefined;
8579
9509
  annotation?: Record<string, string | number | boolean | {
8580
9510
  type: string;
8581
9511
  filename: string;
@@ -8591,6 +9521,10 @@ export declare const EventDocument: z.ZodObject<{
8591
9521
  residentialArea?: string | null | undefined;
8592
9522
  street?: string | null | undefined;
8593
9523
  zipCode?: string | null | undefined;
9524
+ } | {
9525
+ firstname: string;
9526
+ surname: string;
9527
+ middlename?: string | null | undefined;
8594
9528
  } | {
8595
9529
  country: string;
8596
9530
  district: string;
@@ -8613,15 +9547,14 @@ export declare const EventDocument: z.ZodObject<{
8613
9547
  option: string;
8614
9548
  filename: string;
8615
9549
  originalFilename: string;
8616
- }[] | undefined> | undefined;
8617
- createdAtLocation?: string | undefined;
8618
- updatedAtLocation?: string | undefined;
8619
- originalActionId?: string | undefined;
9550
+ }[] | [string, string] | null | undefined> | null | undefined;
9551
+ originalActionId?: string | null | undefined;
8620
9552
  } | {
8621
9553
  type: "NOTIFY";
8622
9554
  id: string;
8623
9555
  status: "Rejected" | "Requested" | "Accepted";
8624
9556
  transactionId: string;
9557
+ createdByUserType: "system" | "user";
8625
9558
  createdAt: string;
8626
9559
  createdBy: string;
8627
9560
  createdByRole: string;
@@ -8640,6 +9573,10 @@ export declare const EventDocument: z.ZodObject<{
8640
9573
  residentialArea?: string | null | undefined;
8641
9574
  street?: string | null | undefined;
8642
9575
  zipCode?: string | null | undefined;
9576
+ } | {
9577
+ firstname: string;
9578
+ surname: string;
9579
+ middlename?: string | null | undefined;
8643
9580
  } | {
8644
9581
  country: string;
8645
9582
  district: string;
@@ -8662,7 +9599,9 @@ export declare const EventDocument: z.ZodObject<{
8662
9599
  option: string;
8663
9600
  filename: string;
8664
9601
  originalFilename: string;
8665
- }[] | undefined>;
9602
+ }[] | [string, string] | null | undefined>;
9603
+ createdBySignature?: string | null | undefined;
9604
+ createdAtLocation?: string | null | undefined;
8666
9605
  annotation?: Record<string, string | number | boolean | {
8667
9606
  type: string;
8668
9607
  filename: string;
@@ -8678,6 +9617,10 @@ export declare const EventDocument: z.ZodObject<{
8678
9617
  residentialArea?: string | null | undefined;
8679
9618
  street?: string | null | undefined;
8680
9619
  zipCode?: string | null | undefined;
9620
+ } | {
9621
+ firstname: string;
9622
+ surname: string;
9623
+ middlename?: string | null | undefined;
8681
9624
  } | {
8682
9625
  country: string;
8683
9626
  district: string;
@@ -8700,15 +9643,14 @@ export declare const EventDocument: z.ZodObject<{
8700
9643
  option: string;
8701
9644
  filename: string;
8702
9645
  originalFilename: string;
8703
- }[] | undefined> | undefined;
8704
- createdAtLocation?: string | undefined;
8705
- updatedAtLocation?: string | undefined;
8706
- originalActionId?: string | undefined;
9646
+ }[] | [string, string] | null | undefined> | null | undefined;
9647
+ originalActionId?: string | null | undefined;
8707
9648
  } | {
8708
9649
  type: "PRINT_CERTIFICATE";
8709
9650
  id: string;
8710
9651
  status: "Rejected" | "Requested" | "Accepted";
8711
9652
  transactionId: string;
9653
+ createdByUserType: "system" | "user";
8712
9654
  createdAt: string;
8713
9655
  createdBy: string;
8714
9656
  createdByRole: string;
@@ -8727,6 +9669,10 @@ export declare const EventDocument: z.ZodObject<{
8727
9669
  residentialArea?: string | null | undefined;
8728
9670
  street?: string | null | undefined;
8729
9671
  zipCode?: string | null | undefined;
9672
+ } | {
9673
+ firstname: string;
9674
+ surname: string;
9675
+ middlename?: string | null | undefined;
8730
9676
  } | {
8731
9677
  country: string;
8732
9678
  district: string;
@@ -8749,7 +9695,9 @@ export declare const EventDocument: z.ZodObject<{
8749
9695
  option: string;
8750
9696
  filename: string;
8751
9697
  originalFilename: string;
8752
- }[] | undefined>;
9698
+ }[] | [string, string] | null | undefined>;
9699
+ createdBySignature?: string | null | undefined;
9700
+ createdAtLocation?: string | null | undefined;
8753
9701
  annotation?: Record<string, string | number | boolean | {
8754
9702
  type: string;
8755
9703
  filename: string;
@@ -8765,6 +9713,10 @@ export declare const EventDocument: z.ZodObject<{
8765
9713
  residentialArea?: string | null | undefined;
8766
9714
  street?: string | null | undefined;
8767
9715
  zipCode?: string | null | undefined;
9716
+ } | {
9717
+ firstname: string;
9718
+ surname: string;
9719
+ middlename?: string | null | undefined;
8768
9720
  } | {
8769
9721
  country: string;
8770
9722
  district: string;
@@ -8787,15 +9739,14 @@ export declare const EventDocument: z.ZodObject<{
8787
9739
  option: string;
8788
9740
  filename: string;
8789
9741
  originalFilename: string;
8790
- }[] | undefined> | undefined;
8791
- createdAtLocation?: string | undefined;
8792
- updatedAtLocation?: string | undefined;
8793
- originalActionId?: string | undefined;
9742
+ }[] | [string, string] | null | undefined> | null | undefined;
9743
+ originalActionId?: string | null | undefined;
8794
9744
  } | {
8795
9745
  type: "REQUEST_CORRECTION";
8796
9746
  id: string;
8797
9747
  status: "Rejected" | "Requested" | "Accepted";
8798
9748
  transactionId: string;
9749
+ createdByUserType: "system" | "user";
8799
9750
  createdAt: string;
8800
9751
  createdBy: string;
8801
9752
  createdByRole: string;
@@ -8814,6 +9765,10 @@ export declare const EventDocument: z.ZodObject<{
8814
9765
  residentialArea?: string | null | undefined;
8815
9766
  street?: string | null | undefined;
8816
9767
  zipCode?: string | null | undefined;
9768
+ } | {
9769
+ firstname: string;
9770
+ surname: string;
9771
+ middlename?: string | null | undefined;
8817
9772
  } | {
8818
9773
  country: string;
8819
9774
  district: string;
@@ -8836,7 +9791,9 @@ export declare const EventDocument: z.ZodObject<{
8836
9791
  option: string;
8837
9792
  filename: string;
8838
9793
  originalFilename: string;
8839
- }[] | undefined>;
9794
+ }[] | [string, string] | null | undefined>;
9795
+ createdBySignature?: string | null | undefined;
9796
+ createdAtLocation?: string | null | undefined;
8840
9797
  annotation?: Record<string, string | number | boolean | {
8841
9798
  type: string;
8842
9799
  filename: string;
@@ -8852,6 +9809,10 @@ export declare const EventDocument: z.ZodObject<{
8852
9809
  residentialArea?: string | null | undefined;
8853
9810
  street?: string | null | undefined;
8854
9811
  zipCode?: string | null | undefined;
9812
+ } | {
9813
+ firstname: string;
9814
+ surname: string;
9815
+ middlename?: string | null | undefined;
8855
9816
  } | {
8856
9817
  country: string;
8857
9818
  district: string;
@@ -8874,15 +9835,14 @@ export declare const EventDocument: z.ZodObject<{
8874
9835
  option: string;
8875
9836
  filename: string;
8876
9837
  originalFilename: string;
8877
- }[] | undefined> | undefined;
8878
- createdAtLocation?: string | undefined;
8879
- updatedAtLocation?: string | undefined;
8880
- originalActionId?: string | undefined;
9838
+ }[] | [string, string] | null | undefined> | null | undefined;
9839
+ originalActionId?: string | null | undefined;
8881
9840
  } | {
8882
9841
  type: "APPROVE_CORRECTION";
8883
9842
  id: string;
8884
9843
  status: "Rejected" | "Requested" | "Accepted";
8885
9844
  transactionId: string;
9845
+ createdByUserType: "system" | "user";
8886
9846
  createdAt: string;
8887
9847
  createdBy: string;
8888
9848
  createdByRole: string;
@@ -8901,6 +9861,10 @@ export declare const EventDocument: z.ZodObject<{
8901
9861
  residentialArea?: string | null | undefined;
8902
9862
  street?: string | null | undefined;
8903
9863
  zipCode?: string | null | undefined;
9864
+ } | {
9865
+ firstname: string;
9866
+ surname: string;
9867
+ middlename?: string | null | undefined;
8904
9868
  } | {
8905
9869
  country: string;
8906
9870
  district: string;
@@ -8923,8 +9887,10 @@ export declare const EventDocument: z.ZodObject<{
8923
9887
  option: string;
8924
9888
  filename: string;
8925
9889
  originalFilename: string;
8926
- }[] | undefined>;
9890
+ }[] | [string, string] | null | undefined>;
8927
9891
  requestId: string;
9892
+ createdBySignature?: string | null | undefined;
9893
+ createdAtLocation?: string | null | undefined;
8928
9894
  annotation?: Record<string, string | number | boolean | {
8929
9895
  type: string;
8930
9896
  filename: string;
@@ -8940,6 +9906,10 @@ export declare const EventDocument: z.ZodObject<{
8940
9906
  residentialArea?: string | null | undefined;
8941
9907
  street?: string | null | undefined;
8942
9908
  zipCode?: string | null | undefined;
9909
+ } | {
9910
+ firstname: string;
9911
+ surname: string;
9912
+ middlename?: string | null | undefined;
8943
9913
  } | {
8944
9914
  country: string;
8945
9915
  district: string;
@@ -8962,15 +9932,14 @@ export declare const EventDocument: z.ZodObject<{
8962
9932
  option: string;
8963
9933
  filename: string;
8964
9934
  originalFilename: string;
8965
- }[] | undefined> | undefined;
8966
- createdAtLocation?: string | undefined;
8967
- updatedAtLocation?: string | undefined;
8968
- originalActionId?: string | undefined;
9935
+ }[] | [string, string] | null | undefined> | null | undefined;
9936
+ originalActionId?: string | null | undefined;
8969
9937
  } | {
8970
9938
  type: "REJECT_CORRECTION";
8971
9939
  id: string;
8972
9940
  status: "Rejected" | "Requested" | "Accepted";
8973
9941
  transactionId: string;
9942
+ createdByUserType: "system" | "user";
8974
9943
  createdAt: string;
8975
9944
  createdBy: string;
8976
9945
  createdByRole: string;
@@ -8989,6 +9958,10 @@ export declare const EventDocument: z.ZodObject<{
8989
9958
  residentialArea?: string | null | undefined;
8990
9959
  street?: string | null | undefined;
8991
9960
  zipCode?: string | null | undefined;
9961
+ } | {
9962
+ firstname: string;
9963
+ surname: string;
9964
+ middlename?: string | null | undefined;
8992
9965
  } | {
8993
9966
  country: string;
8994
9967
  district: string;
@@ -9011,8 +9984,10 @@ export declare const EventDocument: z.ZodObject<{
9011
9984
  option: string;
9012
9985
  filename: string;
9013
9986
  originalFilename: string;
9014
- }[] | undefined>;
9987
+ }[] | [string, string] | null | undefined>;
9015
9988
  requestId: string;
9989
+ createdBySignature?: string | null | undefined;
9990
+ createdAtLocation?: string | null | undefined;
9016
9991
  annotation?: Record<string, string | number | boolean | {
9017
9992
  type: string;
9018
9993
  filename: string;
@@ -9028,6 +10003,10 @@ export declare const EventDocument: z.ZodObject<{
9028
10003
  residentialArea?: string | null | undefined;
9029
10004
  street?: string | null | undefined;
9030
10005
  zipCode?: string | null | undefined;
10006
+ } | {
10007
+ firstname: string;
10008
+ surname: string;
10009
+ middlename?: string | null | undefined;
9031
10010
  } | {
9032
10011
  country: string;
9033
10012
  district: string;
@@ -9050,15 +10029,14 @@ export declare const EventDocument: z.ZodObject<{
9050
10029
  option: string;
9051
10030
  filename: string;
9052
10031
  originalFilename: string;
9053
- }[] | undefined> | undefined;
9054
- createdAtLocation?: string | undefined;
9055
- updatedAtLocation?: string | undefined;
9056
- originalActionId?: string | undefined;
10032
+ }[] | [string, string] | null | undefined> | null | undefined;
10033
+ originalActionId?: string | null | undefined;
9057
10034
  } | {
9058
10035
  type: "READ";
9059
10036
  id: string;
9060
10037
  status: "Rejected" | "Requested" | "Accepted";
9061
10038
  transactionId: string;
10039
+ createdByUserType: "system" | "user";
9062
10040
  createdAt: string;
9063
10041
  createdBy: string;
9064
10042
  createdByRole: string;
@@ -9077,6 +10055,10 @@ export declare const EventDocument: z.ZodObject<{
9077
10055
  residentialArea?: string | null | undefined;
9078
10056
  street?: string | null | undefined;
9079
10057
  zipCode?: string | null | undefined;
10058
+ } | {
10059
+ firstname: string;
10060
+ surname: string;
10061
+ middlename?: string | null | undefined;
9080
10062
  } | {
9081
10063
  country: string;
9082
10064
  district: string;
@@ -9099,7 +10081,9 @@ export declare const EventDocument: z.ZodObject<{
9099
10081
  option: string;
9100
10082
  filename: string;
9101
10083
  originalFilename: string;
9102
- }[] | undefined>;
10084
+ }[] | [string, string] | null | undefined>;
10085
+ createdBySignature?: string | null | undefined;
10086
+ createdAtLocation?: string | null | undefined;
9103
10087
  annotation?: Record<string, string | number | boolean | {
9104
10088
  type: string;
9105
10089
  filename: string;
@@ -9115,6 +10099,10 @@ export declare const EventDocument: z.ZodObject<{
9115
10099
  residentialArea?: string | null | undefined;
9116
10100
  street?: string | null | undefined;
9117
10101
  zipCode?: string | null | undefined;
10102
+ } | {
10103
+ firstname: string;
10104
+ surname: string;
10105
+ middlename?: string | null | undefined;
9118
10106
  } | {
9119
10107
  country: string;
9120
10108
  district: string;
@@ -9137,23 +10125,22 @@ export declare const EventDocument: z.ZodObject<{
9137
10125
  option: string;
9138
10126
  filename: string;
9139
10127
  originalFilename: string;
9140
- }[] | undefined> | undefined;
9141
- createdAtLocation?: string | undefined;
9142
- updatedAtLocation?: string | undefined;
9143
- originalActionId?: string | undefined;
10128
+ }[] | [string, string] | null | undefined> | null | undefined;
10129
+ originalActionId?: string | null | undefined;
9144
10130
  } | {
9145
10131
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
9146
10132
  id: string;
9147
10133
  status: "Rejected";
9148
10134
  transactionId: string;
10135
+ createdByUserType: "system" | "user";
9149
10136
  createdAt: string;
9150
- updatedAtLocation?: string | undefined;
9151
- originalActionId?: string | undefined;
10137
+ createdBy: string;
10138
+ createdByRole: string;
10139
+ createdBySignature?: string | null | undefined;
10140
+ createdAtLocation?: string | null | undefined;
10141
+ originalActionId?: string | null | undefined;
9152
10142
  })[];
9153
10143
  trackingId: string;
9154
- dateOfEvent?: {
9155
- fieldId: string;
9156
- } | undefined;
9157
10144
  }>;
9158
10145
  export type EventDocument = z.infer<typeof EventDocument>;
9159
10146
  //# sourceMappingURL=EventDocument.d.ts.map