@opencrvs/toolkit 1.8.0-rc.ffb4f66 → 1.8.0-rc.ffe24c3

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 (42) hide show
  1. package/dist/commons/api/router.d.ts +14742 -734
  2. package/dist/commons/conditionals/conditionals.d.ts +14 -6
  3. package/dist/commons/conditionals/validate.d.ts +10 -6
  4. package/dist/commons/events/ActionConfig.d.ts +117418 -1729
  5. package/dist/commons/events/ActionDocument.d.ts +2581 -560
  6. package/dist/commons/events/ActionInput.d.ts +1705 -425
  7. package/dist/commons/events/ActionType.d.ts +6 -0
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +1233 -22
  9. package/dist/commons/events/CompositeFieldValue.d.ts +31 -0
  10. package/dist/commons/events/Constants.d.ts +3 -0
  11. package/dist/commons/events/CountryConfigQueryInput.d.ts +3730 -0
  12. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  13. package/dist/commons/events/Draft.d.ts +162 -43
  14. package/dist/commons/events/EventConfig.d.ts +56501 -1354
  15. package/dist/commons/events/EventDocument.d.ts +1635 -396
  16. package/dist/commons/events/EventIndex.d.ts +2007 -27
  17. package/dist/commons/events/EventMetadata.d.ts +343 -45
  18. package/dist/commons/events/FieldConfig.d.ts +5450 -1033
  19. package/dist/commons/events/FieldType.d.ts +6 -3
  20. package/dist/commons/events/FieldTypeMapping.d.ts +103 -54
  21. package/dist/commons/events/FieldValue.d.ts +49 -8
  22. package/dist/commons/events/FormConfig.d.ts +49156 -514
  23. package/dist/commons/events/PageConfig.d.ts +12206 -204
  24. package/dist/commons/events/SummaryConfig.d.ts +93 -42
  25. package/dist/commons/events/User.d.ts +31 -2
  26. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  27. package/dist/commons/events/WorkqueueConfig.d.ts +7300 -20
  28. package/dist/commons/events/defineConfig.d.ts +9001 -58
  29. package/dist/commons/events/event.d.ts +54 -0
  30. package/dist/commons/events/field.d.ts +82 -0
  31. package/dist/commons/events/index.d.ts +8 -0
  32. package/dist/commons/events/scopes.d.ts +44 -0
  33. package/dist/commons/events/serializer.d.ts +2 -0
  34. package/dist/commons/events/test.utils.d.ts +171 -79
  35. package/dist/commons/events/transactions.d.ts +1 -1
  36. package/dist/commons/events/utils.d.ts +13365 -71
  37. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  38. package/dist/conditionals/index.js +76 -36
  39. package/dist/events/index.js +4114 -1495
  40. package/dist/scopes/index.d.ts +161 -1
  41. package/dist/scopes/index.js +202 -1
  42. package/package.json +4 -3
@@ -1,14 +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
5
  createdAt: z.ZodString;
6
6
  updatedAt: z.ZodString;
7
7
  actions: z.ZodArray<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
8
- id: z.ZodString;
8
+ id: z.ZodBranded<z.ZodString, "UUID">;
9
+ transactionId: z.ZodString;
10
+ createdByUserType: z.ZodEnum<["user", "system"]>;
9
11
  createdAt: z.ZodString;
10
12
  createdBy: z.ZodString;
11
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13
+ createdByRole: z.ZodString;
14
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.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<{
12
17
  filename: z.ZodString;
13
18
  originalFilename: z.ZodString;
14
19
  type: z.ZodString;
@@ -121,8 +126,20 @@ export declare const EventDocument: z.ZodObject<{
121
126
  addressLine2?: string | null | undefined;
122
127
  addressLine3?: string | null | undefined;
123
128
  postcodeOrZip?: string | null | undefined;
124
- }>]>>;
125
- 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<{
126
143
  filename: z.ZodString;
127
144
  originalFilename: z.ZodString;
128
145
  type: z.ZodString;
@@ -235,18 +252,32 @@ export declare const EventDocument: z.ZodObject<{
235
252
  addressLine2?: string | null | undefined;
236
253
  addressLine3?: string | null | undefined;
237
254
  postcodeOrZip?: string | null | undefined;
238
- }>]>>>;
239
- createdAtLocation: z.ZodString;
255
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
256
+ firstname: z.ZodString;
257
+ surname: z.ZodString;
258
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
259
+ }, "strip", z.ZodTypeAny, {
260
+ firstname: string;
261
+ surname: string;
262
+ middlename?: string | null | undefined;
263
+ }, {
264
+ firstname: string;
265
+ surname: string;
266
+ middlename?: string | null | undefined;
267
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
240
268
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
241
- originalActionId: z.ZodOptional<z.ZodString>;
269
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
242
270
  }, {
243
271
  type: z.ZodLiteral<"CREATE">;
244
272
  }>, "strip", z.ZodTypeAny, {
245
273
  type: "CREATE";
246
- id: string;
274
+ id: string & z.BRAND<"UUID">;
247
275
  status: "Rejected" | "Requested" | "Accepted";
276
+ transactionId: string;
277
+ createdByUserType: "system" | "user";
248
278
  createdAt: string;
249
279
  createdBy: string;
280
+ createdByRole: string;
250
281
  declaration: Record<string, string | number | boolean | {
251
282
  type: string;
252
283
  filename: string;
@@ -262,6 +293,10 @@ export declare const EventDocument: z.ZodObject<{
262
293
  residentialArea?: string | null | undefined;
263
294
  street?: string | null | undefined;
264
295
  zipCode?: string | null | undefined;
296
+ } | {
297
+ firstname: string;
298
+ surname: string;
299
+ middlename?: string | null | undefined;
265
300
  } | {
266
301
  country: string;
267
302
  district: string;
@@ -284,8 +319,9 @@ export declare const EventDocument: z.ZodObject<{
284
319
  option: string;
285
320
  filename: string;
286
321
  originalFilename: string;
287
- }[] | undefined>;
288
- createdAtLocation: string;
322
+ }[] | [string, string] | null | undefined>;
323
+ createdBySignature?: string | null | undefined;
324
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
289
325
  annotation?: Record<string, string | number | boolean | {
290
326
  type: string;
291
327
  filename: string;
@@ -301,6 +337,10 @@ export declare const EventDocument: z.ZodObject<{
301
337
  residentialArea?: string | null | undefined;
302
338
  street?: string | null | undefined;
303
339
  zipCode?: string | null | undefined;
340
+ } | {
341
+ firstname: string;
342
+ surname: string;
343
+ middlename?: string | null | undefined;
304
344
  } | {
305
345
  country: string;
306
346
  district: string;
@@ -323,14 +363,17 @@ export declare const EventDocument: z.ZodObject<{
323
363
  option: string;
324
364
  filename: string;
325
365
  originalFilename: string;
326
- }[] | undefined> | undefined;
327
- originalActionId?: string | undefined;
366
+ }[] | [string, string] | null | undefined> | null | undefined;
367
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
328
368
  }, {
329
369
  type: "CREATE";
330
370
  id: string;
331
371
  status: "Rejected" | "Requested" | "Accepted";
372
+ transactionId: string;
373
+ createdByUserType: "system" | "user";
332
374
  createdAt: string;
333
375
  createdBy: string;
376
+ createdByRole: string;
334
377
  declaration: Record<string, string | number | boolean | {
335
378
  type: string;
336
379
  filename: string;
@@ -346,6 +389,10 @@ export declare const EventDocument: z.ZodObject<{
346
389
  residentialArea?: string | null | undefined;
347
390
  street?: string | null | undefined;
348
391
  zipCode?: string | null | undefined;
392
+ } | {
393
+ firstname: string;
394
+ surname: string;
395
+ middlename?: string | null | undefined;
349
396
  } | {
350
397
  country: string;
351
398
  district: string;
@@ -368,8 +415,9 @@ export declare const EventDocument: z.ZodObject<{
368
415
  option: string;
369
416
  filename: string;
370
417
  originalFilename: string;
371
- }[] | undefined>;
372
- createdAtLocation: string;
418
+ }[] | [string, string] | null | undefined>;
419
+ createdBySignature?: string | null | undefined;
420
+ createdAtLocation?: string | null | undefined;
373
421
  annotation?: Record<string, string | number | boolean | {
374
422
  type: string;
375
423
  filename: string;
@@ -385,6 +433,10 @@ export declare const EventDocument: z.ZodObject<{
385
433
  residentialArea?: string | null | undefined;
386
434
  street?: string | null | undefined;
387
435
  zipCode?: string | null | undefined;
436
+ } | {
437
+ firstname: string;
438
+ surname: string;
439
+ middlename?: string | null | undefined;
388
440
  } | {
389
441
  country: string;
390
442
  district: string;
@@ -407,13 +459,18 @@ export declare const EventDocument: z.ZodObject<{
407
459
  option: string;
408
460
  filename: string;
409
461
  originalFilename: string;
410
- }[] | undefined> | undefined;
411
- originalActionId?: string | undefined;
462
+ }[] | [string, string] | null | undefined> | null | undefined;
463
+ originalActionId?: string | null | undefined;
412
464
  }>, z.ZodObject<z.objectUtil.extendShape<{
413
- id: z.ZodString;
465
+ id: z.ZodBranded<z.ZodString, "UUID">;
466
+ transactionId: z.ZodString;
467
+ createdByUserType: z.ZodEnum<["user", "system"]>;
414
468
  createdAt: z.ZodString;
415
469
  createdBy: z.ZodString;
416
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
470
+ createdByRole: z.ZodString;
471
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
472
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.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<{
417
474
  filename: z.ZodString;
418
475
  originalFilename: z.ZodString;
419
476
  type: z.ZodString;
@@ -526,8 +583,20 @@ export declare const EventDocument: z.ZodObject<{
526
583
  addressLine2?: string | null | undefined;
527
584
  addressLine3?: string | null | undefined;
528
585
  postcodeOrZip?: string | null | undefined;
529
- }>]>>;
530
- 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<{
531
600
  filename: z.ZodString;
532
601
  originalFilename: z.ZodString;
533
602
  type: z.ZodString;
@@ -640,18 +709,32 @@ export declare const EventDocument: z.ZodObject<{
640
709
  addressLine2?: string | null | undefined;
641
710
  addressLine3?: string | null | undefined;
642
711
  postcodeOrZip?: string | null | undefined;
643
- }>]>>>;
644
- createdAtLocation: z.ZodString;
712
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
713
+ firstname: z.ZodString;
714
+ surname: z.ZodString;
715
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
716
+ }, "strip", z.ZodTypeAny, {
717
+ firstname: string;
718
+ surname: string;
719
+ middlename?: string | null | undefined;
720
+ }, {
721
+ firstname: string;
722
+ surname: string;
723
+ middlename?: string | null | undefined;
724
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
645
725
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
646
- originalActionId: z.ZodOptional<z.ZodString>;
726
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
647
727
  }, {
648
728
  type: z.ZodLiteral<"VALIDATE">;
649
729
  }>, "strip", z.ZodTypeAny, {
650
730
  type: "VALIDATE";
651
- id: string;
731
+ id: string & z.BRAND<"UUID">;
652
732
  status: "Rejected" | "Requested" | "Accepted";
733
+ transactionId: string;
734
+ createdByUserType: "system" | "user";
653
735
  createdAt: string;
654
736
  createdBy: string;
737
+ createdByRole: string;
655
738
  declaration: Record<string, string | number | boolean | {
656
739
  type: string;
657
740
  filename: string;
@@ -667,6 +750,10 @@ export declare const EventDocument: z.ZodObject<{
667
750
  residentialArea?: string | null | undefined;
668
751
  street?: string | null | undefined;
669
752
  zipCode?: string | null | undefined;
753
+ } | {
754
+ firstname: string;
755
+ surname: string;
756
+ middlename?: string | null | undefined;
670
757
  } | {
671
758
  country: string;
672
759
  district: string;
@@ -689,8 +776,9 @@ export declare const EventDocument: z.ZodObject<{
689
776
  option: string;
690
777
  filename: string;
691
778
  originalFilename: string;
692
- }[] | undefined>;
693
- createdAtLocation: string;
779
+ }[] | [string, string] | null | undefined>;
780
+ createdBySignature?: string | null | undefined;
781
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
694
782
  annotation?: Record<string, string | number | boolean | {
695
783
  type: string;
696
784
  filename: string;
@@ -706,6 +794,10 @@ export declare const EventDocument: z.ZodObject<{
706
794
  residentialArea?: string | null | undefined;
707
795
  street?: string | null | undefined;
708
796
  zipCode?: string | null | undefined;
797
+ } | {
798
+ firstname: string;
799
+ surname: string;
800
+ middlename?: string | null | undefined;
709
801
  } | {
710
802
  country: string;
711
803
  district: string;
@@ -728,14 +820,17 @@ export declare const EventDocument: z.ZodObject<{
728
820
  option: string;
729
821
  filename: string;
730
822
  originalFilename: string;
731
- }[] | undefined> | undefined;
732
- originalActionId?: string | undefined;
823
+ }[] | [string, string] | null | undefined> | null | undefined;
824
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
733
825
  }, {
734
826
  type: "VALIDATE";
735
827
  id: string;
736
828
  status: "Rejected" | "Requested" | "Accepted";
829
+ transactionId: string;
830
+ createdByUserType: "system" | "user";
737
831
  createdAt: string;
738
832
  createdBy: string;
833
+ createdByRole: string;
739
834
  declaration: Record<string, string | number | boolean | {
740
835
  type: string;
741
836
  filename: string;
@@ -751,6 +846,10 @@ export declare const EventDocument: z.ZodObject<{
751
846
  residentialArea?: string | null | undefined;
752
847
  street?: string | null | undefined;
753
848
  zipCode?: string | null | undefined;
849
+ } | {
850
+ firstname: string;
851
+ surname: string;
852
+ middlename?: string | null | undefined;
754
853
  } | {
755
854
  country: string;
756
855
  district: string;
@@ -773,8 +872,9 @@ export declare const EventDocument: z.ZodObject<{
773
872
  option: string;
774
873
  filename: string;
775
874
  originalFilename: string;
776
- }[] | undefined>;
777
- createdAtLocation: string;
875
+ }[] | [string, string] | null | undefined>;
876
+ createdBySignature?: string | null | undefined;
877
+ createdAtLocation?: string | null | undefined;
778
878
  annotation?: Record<string, string | number | boolean | {
779
879
  type: string;
780
880
  filename: string;
@@ -790,6 +890,10 @@ export declare const EventDocument: z.ZodObject<{
790
890
  residentialArea?: string | null | undefined;
791
891
  street?: string | null | undefined;
792
892
  zipCode?: string | null | undefined;
893
+ } | {
894
+ firstname: string;
895
+ surname: string;
896
+ middlename?: string | null | undefined;
793
897
  } | {
794
898
  country: string;
795
899
  district: string;
@@ -812,13 +916,18 @@ export declare const EventDocument: z.ZodObject<{
812
916
  option: string;
813
917
  filename: string;
814
918
  originalFilename: string;
815
- }[] | undefined> | undefined;
816
- originalActionId?: string | undefined;
919
+ }[] | [string, string] | null | undefined> | null | undefined;
920
+ originalActionId?: string | null | undefined;
817
921
  }>, z.ZodObject<z.objectUtil.extendShape<{
818
- id: z.ZodString;
922
+ id: z.ZodBranded<z.ZodString, "UUID">;
923
+ transactionId: z.ZodString;
924
+ createdByUserType: z.ZodEnum<["user", "system"]>;
819
925
  createdAt: z.ZodString;
820
926
  createdBy: z.ZodString;
821
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
927
+ createdByRole: z.ZodString;
928
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
929
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.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<{
822
931
  filename: z.ZodString;
823
932
  originalFilename: z.ZodString;
824
933
  type: z.ZodString;
@@ -931,8 +1040,20 @@ export declare const EventDocument: z.ZodObject<{
931
1040
  addressLine2?: string | null | undefined;
932
1041
  addressLine3?: string | null | undefined;
933
1042
  postcodeOrZip?: string | null | undefined;
934
- }>]>>;
935
- 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<{
936
1057
  filename: z.ZodString;
937
1058
  originalFilename: z.ZodString;
938
1059
  type: z.ZodString;
@@ -1045,18 +1166,46 @@ export declare const EventDocument: z.ZodObject<{
1045
1166
  addressLine2?: string | null | undefined;
1046
1167
  addressLine3?: string | null | undefined;
1047
1168
  postcodeOrZip?: string | null | undefined;
1048
- }>]>>>;
1049
- createdAtLocation: z.ZodString;
1169
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
1170
+ firstname: z.ZodString;
1171
+ surname: z.ZodString;
1172
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1173
+ }, "strip", z.ZodTypeAny, {
1174
+ firstname: string;
1175
+ surname: string;
1176
+ middlename?: string | null | undefined;
1177
+ }, {
1178
+ firstname: string;
1179
+ surname: string;
1180
+ middlename?: string | null | undefined;
1181
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
1050
1182
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1051
- originalActionId: z.ZodOptional<z.ZodString>;
1183
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1052
1184
  }, {
1053
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
+ }>;
1054
1196
  }>, "strip", z.ZodTypeAny, {
1055
1197
  type: "REJECT";
1056
- id: string;
1198
+ id: string & z.BRAND<"UUID">;
1057
1199
  status: "Rejected" | "Requested" | "Accepted";
1200
+ reason: {
1201
+ message: string;
1202
+ isDuplicate?: boolean | undefined;
1203
+ };
1204
+ transactionId: string;
1205
+ createdByUserType: "system" | "user";
1058
1206
  createdAt: string;
1059
1207
  createdBy: string;
1208
+ createdByRole: string;
1060
1209
  declaration: Record<string, string | number | boolean | {
1061
1210
  type: string;
1062
1211
  filename: string;
@@ -1072,6 +1221,10 @@ export declare const EventDocument: z.ZodObject<{
1072
1221
  residentialArea?: string | null | undefined;
1073
1222
  street?: string | null | undefined;
1074
1223
  zipCode?: string | null | undefined;
1224
+ } | {
1225
+ firstname: string;
1226
+ surname: string;
1227
+ middlename?: string | null | undefined;
1075
1228
  } | {
1076
1229
  country: string;
1077
1230
  district: string;
@@ -1094,8 +1247,9 @@ export declare const EventDocument: z.ZodObject<{
1094
1247
  option: string;
1095
1248
  filename: string;
1096
1249
  originalFilename: string;
1097
- }[] | undefined>;
1098
- createdAtLocation: string;
1250
+ }[] | [string, string] | null | undefined>;
1251
+ createdBySignature?: string | null | undefined;
1252
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1099
1253
  annotation?: Record<string, string | number | boolean | {
1100
1254
  type: string;
1101
1255
  filename: string;
@@ -1111,6 +1265,10 @@ export declare const EventDocument: z.ZodObject<{
1111
1265
  residentialArea?: string | null | undefined;
1112
1266
  street?: string | null | undefined;
1113
1267
  zipCode?: string | null | undefined;
1268
+ } | {
1269
+ firstname: string;
1270
+ surname: string;
1271
+ middlename?: string | null | undefined;
1114
1272
  } | {
1115
1273
  country: string;
1116
1274
  district: string;
@@ -1133,14 +1291,21 @@ export declare const EventDocument: z.ZodObject<{
1133
1291
  option: string;
1134
1292
  filename: string;
1135
1293
  originalFilename: string;
1136
- }[] | undefined> | undefined;
1137
- originalActionId?: string | undefined;
1294
+ }[] | [string, string] | null | undefined> | null | undefined;
1295
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1138
1296
  }, {
1139
1297
  type: "REJECT";
1140
1298
  id: string;
1141
1299
  status: "Rejected" | "Requested" | "Accepted";
1300
+ reason: {
1301
+ message: string;
1302
+ isDuplicate?: boolean | undefined;
1303
+ };
1304
+ transactionId: string;
1305
+ createdByUserType: "system" | "user";
1142
1306
  createdAt: string;
1143
1307
  createdBy: string;
1308
+ createdByRole: string;
1144
1309
  declaration: Record<string, string | number | boolean | {
1145
1310
  type: string;
1146
1311
  filename: string;
@@ -1156,6 +1321,10 @@ export declare const EventDocument: z.ZodObject<{
1156
1321
  residentialArea?: string | null | undefined;
1157
1322
  street?: string | null | undefined;
1158
1323
  zipCode?: string | null | undefined;
1324
+ } | {
1325
+ firstname: string;
1326
+ surname: string;
1327
+ middlename?: string | null | undefined;
1159
1328
  } | {
1160
1329
  country: string;
1161
1330
  district: string;
@@ -1178,8 +1347,9 @@ export declare const EventDocument: z.ZodObject<{
1178
1347
  option: string;
1179
1348
  filename: string;
1180
1349
  originalFilename: string;
1181
- }[] | undefined>;
1182
- createdAtLocation: string;
1350
+ }[] | [string, string] | null | undefined>;
1351
+ createdBySignature?: string | null | undefined;
1352
+ createdAtLocation?: string | null | undefined;
1183
1353
  annotation?: Record<string, string | number | boolean | {
1184
1354
  type: string;
1185
1355
  filename: string;
@@ -1195,6 +1365,10 @@ export declare const EventDocument: z.ZodObject<{
1195
1365
  residentialArea?: string | null | undefined;
1196
1366
  street?: string | null | undefined;
1197
1367
  zipCode?: string | null | undefined;
1368
+ } | {
1369
+ firstname: string;
1370
+ surname: string;
1371
+ middlename?: string | null | undefined;
1198
1372
  } | {
1199
1373
  country: string;
1200
1374
  district: string;
@@ -1217,13 +1391,18 @@ export declare const EventDocument: z.ZodObject<{
1217
1391
  option: string;
1218
1392
  filename: string;
1219
1393
  originalFilename: string;
1220
- }[] | undefined> | undefined;
1221
- originalActionId?: string | undefined;
1394
+ }[] | [string, string] | null | undefined> | null | undefined;
1395
+ originalActionId?: string | null | undefined;
1222
1396
  }>, z.ZodObject<z.objectUtil.extendShape<{
1223
- id: z.ZodString;
1397
+ id: z.ZodBranded<z.ZodString, "UUID">;
1398
+ transactionId: z.ZodString;
1399
+ createdByUserType: z.ZodEnum<["user", "system"]>;
1224
1400
  createdAt: z.ZodString;
1225
1401
  createdBy: z.ZodString;
1226
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1402
+ createdByRole: z.ZodString;
1403
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1404
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.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<{
1227
1406
  filename: z.ZodString;
1228
1407
  originalFilename: z.ZodString;
1229
1408
  type: z.ZodString;
@@ -1336,8 +1515,20 @@ export declare const EventDocument: z.ZodObject<{
1336
1515
  addressLine2?: string | null | undefined;
1337
1516
  addressLine3?: string | null | undefined;
1338
1517
  postcodeOrZip?: string | null | undefined;
1339
- }>]>>;
1340
- 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<{
1341
1532
  filename: z.ZodString;
1342
1533
  originalFilename: z.ZodString;
1343
1534
  type: z.ZodString;
@@ -1450,18 +1641,32 @@ export declare const EventDocument: z.ZodObject<{
1450
1641
  addressLine2?: string | null | undefined;
1451
1642
  addressLine3?: string | null | undefined;
1452
1643
  postcodeOrZip?: string | null | undefined;
1453
- }>]>>>;
1454
- createdAtLocation: z.ZodString;
1644
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
1645
+ firstname: z.ZodString;
1646
+ surname: z.ZodString;
1647
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1648
+ }, "strip", z.ZodTypeAny, {
1649
+ firstname: string;
1650
+ surname: string;
1651
+ middlename?: string | null | undefined;
1652
+ }, {
1653
+ firstname: string;
1654
+ surname: string;
1655
+ middlename?: string | null | undefined;
1656
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
1455
1657
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1456
- originalActionId: z.ZodOptional<z.ZodString>;
1658
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1457
1659
  }, {
1458
1660
  type: z.ZodLiteral<"MARKED_AS_DUPLICATE">;
1459
1661
  }>, "strip", z.ZodTypeAny, {
1460
1662
  type: "MARKED_AS_DUPLICATE";
1461
- id: string;
1663
+ id: string & z.BRAND<"UUID">;
1462
1664
  status: "Rejected" | "Requested" | "Accepted";
1665
+ transactionId: string;
1666
+ createdByUserType: "system" | "user";
1463
1667
  createdAt: string;
1464
1668
  createdBy: string;
1669
+ createdByRole: string;
1465
1670
  declaration: Record<string, string | number | boolean | {
1466
1671
  type: string;
1467
1672
  filename: string;
@@ -1477,6 +1682,10 @@ export declare const EventDocument: z.ZodObject<{
1477
1682
  residentialArea?: string | null | undefined;
1478
1683
  street?: string | null | undefined;
1479
1684
  zipCode?: string | null | undefined;
1685
+ } | {
1686
+ firstname: string;
1687
+ surname: string;
1688
+ middlename?: string | null | undefined;
1480
1689
  } | {
1481
1690
  country: string;
1482
1691
  district: string;
@@ -1499,8 +1708,9 @@ export declare const EventDocument: z.ZodObject<{
1499
1708
  option: string;
1500
1709
  filename: string;
1501
1710
  originalFilename: string;
1502
- }[] | undefined>;
1503
- createdAtLocation: string;
1711
+ }[] | [string, string] | null | undefined>;
1712
+ createdBySignature?: string | null | undefined;
1713
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1504
1714
  annotation?: Record<string, string | number | boolean | {
1505
1715
  type: string;
1506
1716
  filename: string;
@@ -1516,6 +1726,10 @@ export declare const EventDocument: z.ZodObject<{
1516
1726
  residentialArea?: string | null | undefined;
1517
1727
  street?: string | null | undefined;
1518
1728
  zipCode?: string | null | undefined;
1729
+ } | {
1730
+ firstname: string;
1731
+ surname: string;
1732
+ middlename?: string | null | undefined;
1519
1733
  } | {
1520
1734
  country: string;
1521
1735
  district: string;
@@ -1538,14 +1752,17 @@ export declare const EventDocument: z.ZodObject<{
1538
1752
  option: string;
1539
1753
  filename: string;
1540
1754
  originalFilename: string;
1541
- }[] | undefined> | undefined;
1542
- originalActionId?: string | undefined;
1755
+ }[] | [string, string] | null | undefined> | null | undefined;
1756
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1543
1757
  }, {
1544
1758
  type: "MARKED_AS_DUPLICATE";
1545
1759
  id: string;
1546
1760
  status: "Rejected" | "Requested" | "Accepted";
1761
+ transactionId: string;
1762
+ createdByUserType: "system" | "user";
1547
1763
  createdAt: string;
1548
1764
  createdBy: string;
1765
+ createdByRole: string;
1549
1766
  declaration: Record<string, string | number | boolean | {
1550
1767
  type: string;
1551
1768
  filename: string;
@@ -1561,6 +1778,10 @@ export declare const EventDocument: z.ZodObject<{
1561
1778
  residentialArea?: string | null | undefined;
1562
1779
  street?: string | null | undefined;
1563
1780
  zipCode?: string | null | undefined;
1781
+ } | {
1782
+ firstname: string;
1783
+ surname: string;
1784
+ middlename?: string | null | undefined;
1564
1785
  } | {
1565
1786
  country: string;
1566
1787
  district: string;
@@ -1583,8 +1804,9 @@ export declare const EventDocument: z.ZodObject<{
1583
1804
  option: string;
1584
1805
  filename: string;
1585
1806
  originalFilename: string;
1586
- }[] | undefined>;
1587
- createdAtLocation: string;
1807
+ }[] | [string, string] | null | undefined>;
1808
+ createdBySignature?: string | null | undefined;
1809
+ createdAtLocation?: string | null | undefined;
1588
1810
  annotation?: Record<string, string | number | boolean | {
1589
1811
  type: string;
1590
1812
  filename: string;
@@ -1600,6 +1822,10 @@ export declare const EventDocument: z.ZodObject<{
1600
1822
  residentialArea?: string | null | undefined;
1601
1823
  street?: string | null | undefined;
1602
1824
  zipCode?: string | null | undefined;
1825
+ } | {
1826
+ firstname: string;
1827
+ surname: string;
1828
+ middlename?: string | null | undefined;
1603
1829
  } | {
1604
1830
  country: string;
1605
1831
  district: string;
@@ -1622,13 +1848,18 @@ export declare const EventDocument: z.ZodObject<{
1622
1848
  option: string;
1623
1849
  filename: string;
1624
1850
  originalFilename: string;
1625
- }[] | undefined> | undefined;
1626
- originalActionId?: string | undefined;
1851
+ }[] | [string, string] | null | undefined> | null | undefined;
1852
+ originalActionId?: string | null | undefined;
1627
1853
  }>, z.ZodObject<z.objectUtil.extendShape<{
1628
- id: z.ZodString;
1854
+ id: z.ZodBranded<z.ZodString, "UUID">;
1855
+ transactionId: z.ZodString;
1856
+ createdByUserType: z.ZodEnum<["user", "system"]>;
1629
1857
  createdAt: z.ZodString;
1630
1858
  createdBy: z.ZodString;
1631
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1859
+ createdByRole: z.ZodString;
1860
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1861
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.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<{
1632
1863
  filename: z.ZodString;
1633
1864
  originalFilename: z.ZodString;
1634
1865
  type: z.ZodString;
@@ -1741,8 +1972,20 @@ export declare const EventDocument: z.ZodObject<{
1741
1972
  addressLine2?: string | null | undefined;
1742
1973
  addressLine3?: string | null | undefined;
1743
1974
  postcodeOrZip?: string | null | undefined;
1744
- }>]>>;
1745
- 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<{
1746
1989
  filename: z.ZodString;
1747
1990
  originalFilename: z.ZodString;
1748
1991
  type: z.ZodString;
@@ -1855,18 +2098,46 @@ export declare const EventDocument: z.ZodObject<{
1855
2098
  addressLine2?: string | null | undefined;
1856
2099
  addressLine3?: string | null | undefined;
1857
2100
  postcodeOrZip?: string | null | undefined;
1858
- }>]>>>;
1859
- createdAtLocation: z.ZodString;
2101
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2102
+ firstname: z.ZodString;
2103
+ surname: z.ZodString;
2104
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2105
+ }, "strip", z.ZodTypeAny, {
2106
+ firstname: string;
2107
+ surname: string;
2108
+ middlename?: string | null | undefined;
2109
+ }, {
2110
+ firstname: string;
2111
+ surname: string;
2112
+ middlename?: string | null | undefined;
2113
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
1860
2114
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1861
- originalActionId: z.ZodOptional<z.ZodString>;
2115
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1862
2116
  }, {
1863
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
+ }>;
1864
2128
  }>, "strip", z.ZodTypeAny, {
1865
2129
  type: "ARCHIVE";
1866
- id: string;
2130
+ id: string & z.BRAND<"UUID">;
1867
2131
  status: "Rejected" | "Requested" | "Accepted";
2132
+ reason: {
2133
+ message: string;
2134
+ isDuplicate?: boolean | undefined;
2135
+ };
2136
+ transactionId: string;
2137
+ createdByUserType: "system" | "user";
1868
2138
  createdAt: string;
1869
2139
  createdBy: string;
2140
+ createdByRole: string;
1870
2141
  declaration: Record<string, string | number | boolean | {
1871
2142
  type: string;
1872
2143
  filename: string;
@@ -1882,6 +2153,10 @@ export declare const EventDocument: z.ZodObject<{
1882
2153
  residentialArea?: string | null | undefined;
1883
2154
  street?: string | null | undefined;
1884
2155
  zipCode?: string | null | undefined;
2156
+ } | {
2157
+ firstname: string;
2158
+ surname: string;
2159
+ middlename?: string | null | undefined;
1885
2160
  } | {
1886
2161
  country: string;
1887
2162
  district: string;
@@ -1904,8 +2179,9 @@ export declare const EventDocument: z.ZodObject<{
1904
2179
  option: string;
1905
2180
  filename: string;
1906
2181
  originalFilename: string;
1907
- }[] | undefined>;
1908
- createdAtLocation: string;
2182
+ }[] | [string, string] | null | undefined>;
2183
+ createdBySignature?: string | null | undefined;
2184
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1909
2185
  annotation?: Record<string, string | number | boolean | {
1910
2186
  type: string;
1911
2187
  filename: string;
@@ -1921,6 +2197,10 @@ export declare const EventDocument: z.ZodObject<{
1921
2197
  residentialArea?: string | null | undefined;
1922
2198
  street?: string | null | undefined;
1923
2199
  zipCode?: string | null | undefined;
2200
+ } | {
2201
+ firstname: string;
2202
+ surname: string;
2203
+ middlename?: string | null | undefined;
1924
2204
  } | {
1925
2205
  country: string;
1926
2206
  district: string;
@@ -1943,14 +2223,21 @@ export declare const EventDocument: z.ZodObject<{
1943
2223
  option: string;
1944
2224
  filename: string;
1945
2225
  originalFilename: string;
1946
- }[] | undefined> | undefined;
1947
- originalActionId?: string | undefined;
2226
+ }[] | [string, string] | null | undefined> | null | undefined;
2227
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1948
2228
  }, {
1949
2229
  type: "ARCHIVE";
1950
2230
  id: string;
1951
2231
  status: "Rejected" | "Requested" | "Accepted";
2232
+ reason: {
2233
+ message: string;
2234
+ isDuplicate?: boolean | undefined;
2235
+ };
2236
+ transactionId: string;
2237
+ createdByUserType: "system" | "user";
1952
2238
  createdAt: string;
1953
2239
  createdBy: string;
2240
+ createdByRole: string;
1954
2241
  declaration: Record<string, string | number | boolean | {
1955
2242
  type: string;
1956
2243
  filename: string;
@@ -1966,6 +2253,10 @@ export declare const EventDocument: z.ZodObject<{
1966
2253
  residentialArea?: string | null | undefined;
1967
2254
  street?: string | null | undefined;
1968
2255
  zipCode?: string | null | undefined;
2256
+ } | {
2257
+ firstname: string;
2258
+ surname: string;
2259
+ middlename?: string | null | undefined;
1969
2260
  } | {
1970
2261
  country: string;
1971
2262
  district: string;
@@ -1988,8 +2279,9 @@ export declare const EventDocument: z.ZodObject<{
1988
2279
  option: string;
1989
2280
  filename: string;
1990
2281
  originalFilename: string;
1991
- }[] | undefined>;
1992
- createdAtLocation: string;
2282
+ }[] | [string, string] | null | undefined>;
2283
+ createdBySignature?: string | null | undefined;
2284
+ createdAtLocation?: string | null | undefined;
1993
2285
  annotation?: Record<string, string | number | boolean | {
1994
2286
  type: string;
1995
2287
  filename: string;
@@ -2005,6 +2297,10 @@ export declare const EventDocument: z.ZodObject<{
2005
2297
  residentialArea?: string | null | undefined;
2006
2298
  street?: string | null | undefined;
2007
2299
  zipCode?: string | null | undefined;
2300
+ } | {
2301
+ firstname: string;
2302
+ surname: string;
2303
+ middlename?: string | null | undefined;
2008
2304
  } | {
2009
2305
  country: string;
2010
2306
  district: string;
@@ -2027,13 +2323,18 @@ export declare const EventDocument: z.ZodObject<{
2027
2323
  option: string;
2028
2324
  filename: string;
2029
2325
  originalFilename: string;
2030
- }[] | undefined> | undefined;
2031
- originalActionId?: string | undefined;
2326
+ }[] | [string, string] | null | undefined> | null | undefined;
2327
+ originalActionId?: string | null | undefined;
2032
2328
  }>, z.ZodObject<z.objectUtil.extendShape<{
2033
- id: z.ZodString;
2329
+ id: z.ZodBranded<z.ZodString, "UUID">;
2330
+ transactionId: z.ZodString;
2331
+ createdByUserType: z.ZodEnum<["user", "system"]>;
2034
2332
  createdAt: z.ZodString;
2035
2333
  createdBy: z.ZodString;
2036
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2334
+ createdByRole: z.ZodString;
2335
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2336
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.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<{
2037
2338
  filename: z.ZodString;
2038
2339
  originalFilename: z.ZodString;
2039
2340
  type: z.ZodString;
@@ -2146,8 +2447,20 @@ export declare const EventDocument: z.ZodObject<{
2146
2447
  addressLine2?: string | null | undefined;
2147
2448
  addressLine3?: string | null | undefined;
2148
2449
  postcodeOrZip?: string | null | undefined;
2149
- }>]>>;
2150
- 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<{
2151
2464
  filename: z.ZodString;
2152
2465
  originalFilename: z.ZodString;
2153
2466
  type: z.ZodString;
@@ -2260,18 +2573,32 @@ export declare const EventDocument: z.ZodObject<{
2260
2573
  addressLine2?: string | null | undefined;
2261
2574
  addressLine3?: string | null | undefined;
2262
2575
  postcodeOrZip?: string | null | undefined;
2263
- }>]>>>;
2264
- createdAtLocation: z.ZodString;
2576
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2577
+ firstname: z.ZodString;
2578
+ surname: z.ZodString;
2579
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2580
+ }, "strip", z.ZodTypeAny, {
2581
+ firstname: string;
2582
+ surname: string;
2583
+ middlename?: string | null | undefined;
2584
+ }, {
2585
+ firstname: string;
2586
+ surname: string;
2587
+ middlename?: string | null | undefined;
2588
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
2265
2589
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2266
- originalActionId: z.ZodOptional<z.ZodString>;
2590
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
2267
2591
  }, {
2268
2592
  type: z.ZodLiteral<"NOTIFY">;
2269
2593
  }>, "strip", z.ZodTypeAny, {
2270
2594
  type: "NOTIFY";
2271
- id: string;
2595
+ id: string & z.BRAND<"UUID">;
2272
2596
  status: "Rejected" | "Requested" | "Accepted";
2597
+ transactionId: string;
2598
+ createdByUserType: "system" | "user";
2273
2599
  createdAt: string;
2274
2600
  createdBy: string;
2601
+ createdByRole: string;
2275
2602
  declaration: Record<string, string | number | boolean | {
2276
2603
  type: string;
2277
2604
  filename: string;
@@ -2287,6 +2614,10 @@ export declare const EventDocument: z.ZodObject<{
2287
2614
  residentialArea?: string | null | undefined;
2288
2615
  street?: string | null | undefined;
2289
2616
  zipCode?: string | null | undefined;
2617
+ } | {
2618
+ firstname: string;
2619
+ surname: string;
2620
+ middlename?: string | null | undefined;
2290
2621
  } | {
2291
2622
  country: string;
2292
2623
  district: string;
@@ -2309,8 +2640,9 @@ export declare const EventDocument: z.ZodObject<{
2309
2640
  option: string;
2310
2641
  filename: string;
2311
2642
  originalFilename: string;
2312
- }[] | undefined>;
2313
- createdAtLocation: string;
2643
+ }[] | [string, string] | null | undefined>;
2644
+ createdBySignature?: string | null | undefined;
2645
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
2314
2646
  annotation?: Record<string, string | number | boolean | {
2315
2647
  type: string;
2316
2648
  filename: string;
@@ -2326,6 +2658,10 @@ export declare const EventDocument: z.ZodObject<{
2326
2658
  residentialArea?: string | null | undefined;
2327
2659
  street?: string | null | undefined;
2328
2660
  zipCode?: string | null | undefined;
2661
+ } | {
2662
+ firstname: string;
2663
+ surname: string;
2664
+ middlename?: string | null | undefined;
2329
2665
  } | {
2330
2666
  country: string;
2331
2667
  district: string;
@@ -2348,14 +2684,17 @@ export declare const EventDocument: z.ZodObject<{
2348
2684
  option: string;
2349
2685
  filename: string;
2350
2686
  originalFilename: string;
2351
- }[] | undefined> | undefined;
2352
- originalActionId?: string | undefined;
2687
+ }[] | [string, string] | null | undefined> | null | undefined;
2688
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
2353
2689
  }, {
2354
2690
  type: "NOTIFY";
2355
2691
  id: string;
2356
2692
  status: "Rejected" | "Requested" | "Accepted";
2693
+ transactionId: string;
2694
+ createdByUserType: "system" | "user";
2357
2695
  createdAt: string;
2358
2696
  createdBy: string;
2697
+ createdByRole: string;
2359
2698
  declaration: Record<string, string | number | boolean | {
2360
2699
  type: string;
2361
2700
  filename: string;
@@ -2371,6 +2710,10 @@ export declare const EventDocument: z.ZodObject<{
2371
2710
  residentialArea?: string | null | undefined;
2372
2711
  street?: string | null | undefined;
2373
2712
  zipCode?: string | null | undefined;
2713
+ } | {
2714
+ firstname: string;
2715
+ surname: string;
2716
+ middlename?: string | null | undefined;
2374
2717
  } | {
2375
2718
  country: string;
2376
2719
  district: string;
@@ -2393,8 +2736,9 @@ export declare const EventDocument: z.ZodObject<{
2393
2736
  option: string;
2394
2737
  filename: string;
2395
2738
  originalFilename: string;
2396
- }[] | undefined>;
2397
- createdAtLocation: string;
2739
+ }[] | [string, string] | null | undefined>;
2740
+ createdBySignature?: string | null | undefined;
2741
+ createdAtLocation?: string | null | undefined;
2398
2742
  annotation?: Record<string, string | number | boolean | {
2399
2743
  type: string;
2400
2744
  filename: string;
@@ -2410,6 +2754,10 @@ export declare const EventDocument: z.ZodObject<{
2410
2754
  residentialArea?: string | null | undefined;
2411
2755
  street?: string | null | undefined;
2412
2756
  zipCode?: string | null | undefined;
2757
+ } | {
2758
+ firstname: string;
2759
+ surname: string;
2760
+ middlename?: string | null | undefined;
2413
2761
  } | {
2414
2762
  country: string;
2415
2763
  district: string;
@@ -2432,13 +2780,18 @@ export declare const EventDocument: z.ZodObject<{
2432
2780
  option: string;
2433
2781
  filename: string;
2434
2782
  originalFilename: string;
2435
- }[] | undefined> | undefined;
2436
- originalActionId?: string | undefined;
2783
+ }[] | [string, string] | null | undefined> | null | undefined;
2784
+ originalActionId?: string | null | undefined;
2437
2785
  }>, z.ZodObject<z.objectUtil.extendShape<{
2438
- id: z.ZodString;
2786
+ id: z.ZodBranded<z.ZodString, "UUID">;
2787
+ transactionId: z.ZodString;
2788
+ createdByUserType: z.ZodEnum<["user", "system"]>;
2439
2789
  createdAt: z.ZodString;
2440
2790
  createdBy: z.ZodString;
2441
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2791
+ createdByRole: z.ZodString;
2792
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2793
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.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<{
2442
2795
  filename: z.ZodString;
2443
2796
  originalFilename: z.ZodString;
2444
2797
  type: z.ZodString;
@@ -2551,8 +2904,20 @@ export declare const EventDocument: z.ZodObject<{
2551
2904
  addressLine2?: string | null | undefined;
2552
2905
  addressLine3?: string | null | undefined;
2553
2906
  postcodeOrZip?: string | null | undefined;
2554
- }>]>>;
2555
- 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<{
2556
2921
  filename: z.ZodString;
2557
2922
  originalFilename: z.ZodString;
2558
2923
  type: z.ZodString;
@@ -2665,19 +3030,33 @@ export declare const EventDocument: z.ZodObject<{
2665
3030
  addressLine2?: string | null | undefined;
2666
3031
  addressLine3?: string | null | undefined;
2667
3032
  postcodeOrZip?: string | null | undefined;
2668
- }>]>>>;
2669
- createdAtLocation: z.ZodString;
3033
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
3034
+ firstname: z.ZodString;
3035
+ surname: z.ZodString;
3036
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3037
+ }, "strip", z.ZodTypeAny, {
3038
+ firstname: string;
3039
+ surname: string;
3040
+ middlename?: string | null | undefined;
3041
+ }, {
3042
+ firstname: string;
3043
+ surname: string;
3044
+ middlename?: string | null | undefined;
3045
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
2670
3046
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2671
- originalActionId: z.ZodOptional<z.ZodString>;
3047
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
2672
3048
  }, {
2673
3049
  type: z.ZodLiteral<"REGISTER">;
2674
3050
  registrationNumber: z.ZodOptional<z.ZodString>;
2675
3051
  }>, "strip", z.ZodTypeAny, {
2676
3052
  type: "REGISTER";
2677
- id: string;
3053
+ id: string & z.BRAND<"UUID">;
2678
3054
  status: "Rejected" | "Requested" | "Accepted";
3055
+ transactionId: string;
3056
+ createdByUserType: "system" | "user";
2679
3057
  createdAt: string;
2680
3058
  createdBy: string;
3059
+ createdByRole: string;
2681
3060
  declaration: Record<string, string | number | boolean | {
2682
3061
  type: string;
2683
3062
  filename: string;
@@ -2693,6 +3072,10 @@ export declare const EventDocument: z.ZodObject<{
2693
3072
  residentialArea?: string | null | undefined;
2694
3073
  street?: string | null | undefined;
2695
3074
  zipCode?: string | null | undefined;
3075
+ } | {
3076
+ firstname: string;
3077
+ surname: string;
3078
+ middlename?: string | null | undefined;
2696
3079
  } | {
2697
3080
  country: string;
2698
3081
  district: string;
@@ -2715,8 +3098,9 @@ export declare const EventDocument: z.ZodObject<{
2715
3098
  option: string;
2716
3099
  filename: string;
2717
3100
  originalFilename: string;
2718
- }[] | undefined>;
2719
- createdAtLocation: string;
3101
+ }[] | [string, string] | null | undefined>;
3102
+ createdBySignature?: string | null | undefined;
3103
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
2720
3104
  annotation?: Record<string, string | number | boolean | {
2721
3105
  type: string;
2722
3106
  filename: string;
@@ -2732,6 +3116,10 @@ export declare const EventDocument: z.ZodObject<{
2732
3116
  residentialArea?: string | null | undefined;
2733
3117
  street?: string | null | undefined;
2734
3118
  zipCode?: string | null | undefined;
3119
+ } | {
3120
+ firstname: string;
3121
+ surname: string;
3122
+ middlename?: string | null | undefined;
2735
3123
  } | {
2736
3124
  country: string;
2737
3125
  district: string;
@@ -2754,15 +3142,18 @@ export declare const EventDocument: z.ZodObject<{
2754
3142
  option: string;
2755
3143
  filename: string;
2756
3144
  originalFilename: string;
2757
- }[] | undefined> | undefined;
2758
- originalActionId?: string | undefined;
3145
+ }[] | [string, string] | null | undefined> | null | undefined;
3146
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
2759
3147
  registrationNumber?: string | undefined;
2760
3148
  }, {
2761
3149
  type: "REGISTER";
2762
3150
  id: string;
2763
3151
  status: "Rejected" | "Requested" | "Accepted";
3152
+ transactionId: string;
3153
+ createdByUserType: "system" | "user";
2764
3154
  createdAt: string;
2765
3155
  createdBy: string;
3156
+ createdByRole: string;
2766
3157
  declaration: Record<string, string | number | boolean | {
2767
3158
  type: string;
2768
3159
  filename: string;
@@ -2778,6 +3169,10 @@ export declare const EventDocument: z.ZodObject<{
2778
3169
  residentialArea?: string | null | undefined;
2779
3170
  street?: string | null | undefined;
2780
3171
  zipCode?: string | null | undefined;
3172
+ } | {
3173
+ firstname: string;
3174
+ surname: string;
3175
+ middlename?: string | null | undefined;
2781
3176
  } | {
2782
3177
  country: string;
2783
3178
  district: string;
@@ -2800,8 +3195,9 @@ export declare const EventDocument: z.ZodObject<{
2800
3195
  option: string;
2801
3196
  filename: string;
2802
3197
  originalFilename: string;
2803
- }[] | undefined>;
2804
- createdAtLocation: string;
3198
+ }[] | [string, string] | null | undefined>;
3199
+ createdBySignature?: string | null | undefined;
3200
+ createdAtLocation?: string | null | undefined;
2805
3201
  annotation?: Record<string, string | number | boolean | {
2806
3202
  type: string;
2807
3203
  filename: string;
@@ -2817,6 +3213,10 @@ export declare const EventDocument: z.ZodObject<{
2817
3213
  residentialArea?: string | null | undefined;
2818
3214
  street?: string | null | undefined;
2819
3215
  zipCode?: string | null | undefined;
3216
+ } | {
3217
+ firstname: string;
3218
+ surname: string;
3219
+ middlename?: string | null | undefined;
2820
3220
  } | {
2821
3221
  country: string;
2822
3222
  district: string;
@@ -2839,14 +3239,19 @@ export declare const EventDocument: z.ZodObject<{
2839
3239
  option: string;
2840
3240
  filename: string;
2841
3241
  originalFilename: string;
2842
- }[] | undefined> | undefined;
2843
- originalActionId?: string | undefined;
3242
+ }[] | [string, string] | null | undefined> | null | undefined;
3243
+ originalActionId?: string | null | undefined;
2844
3244
  registrationNumber?: string | undefined;
2845
3245
  }>, z.ZodObject<z.objectUtil.extendShape<{
2846
- id: z.ZodString;
3246
+ id: z.ZodBranded<z.ZodString, "UUID">;
3247
+ transactionId: z.ZodString;
3248
+ createdByUserType: z.ZodEnum<["user", "system"]>;
2847
3249
  createdAt: z.ZodString;
2848
3250
  createdBy: z.ZodString;
2849
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3251
+ createdByRole: z.ZodString;
3252
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3253
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.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<{
2850
3255
  filename: z.ZodString;
2851
3256
  originalFilename: z.ZodString;
2852
3257
  type: z.ZodString;
@@ -2959,8 +3364,20 @@ export declare const EventDocument: z.ZodObject<{
2959
3364
  addressLine2?: string | null | undefined;
2960
3365
  addressLine3?: string | null | undefined;
2961
3366
  postcodeOrZip?: string | null | undefined;
2962
- }>]>>;
2963
- 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<{
2964
3381
  filename: z.ZodString;
2965
3382
  originalFilename: z.ZodString;
2966
3383
  type: z.ZodString;
@@ -3073,18 +3490,32 @@ export declare const EventDocument: z.ZodObject<{
3073
3490
  addressLine2?: string | null | undefined;
3074
3491
  addressLine3?: string | null | undefined;
3075
3492
  postcodeOrZip?: string | null | undefined;
3076
- }>]>>>;
3077
- createdAtLocation: z.ZodString;
3493
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
3494
+ firstname: z.ZodString;
3495
+ surname: z.ZodString;
3496
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3497
+ }, "strip", z.ZodTypeAny, {
3498
+ firstname: string;
3499
+ surname: string;
3500
+ middlename?: string | null | undefined;
3501
+ }, {
3502
+ firstname: string;
3503
+ surname: string;
3504
+ middlename?: string | null | undefined;
3505
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
3078
3506
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3079
- originalActionId: z.ZodOptional<z.ZodString>;
3507
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
3080
3508
  }, {
3081
3509
  type: z.ZodLiteral<"DECLARE">;
3082
3510
  }>, "strip", z.ZodTypeAny, {
3083
3511
  type: "DECLARE";
3084
- id: string;
3512
+ id: string & z.BRAND<"UUID">;
3085
3513
  status: "Rejected" | "Requested" | "Accepted";
3514
+ transactionId: string;
3515
+ createdByUserType: "system" | "user";
3086
3516
  createdAt: string;
3087
3517
  createdBy: string;
3518
+ createdByRole: string;
3088
3519
  declaration: Record<string, string | number | boolean | {
3089
3520
  type: string;
3090
3521
  filename: string;
@@ -3100,6 +3531,10 @@ export declare const EventDocument: z.ZodObject<{
3100
3531
  residentialArea?: string | null | undefined;
3101
3532
  street?: string | null | undefined;
3102
3533
  zipCode?: string | null | undefined;
3534
+ } | {
3535
+ firstname: string;
3536
+ surname: string;
3537
+ middlename?: string | null | undefined;
3103
3538
  } | {
3104
3539
  country: string;
3105
3540
  district: string;
@@ -3122,8 +3557,9 @@ export declare const EventDocument: z.ZodObject<{
3122
3557
  option: string;
3123
3558
  filename: string;
3124
3559
  originalFilename: string;
3125
- }[] | undefined>;
3126
- createdAtLocation: string;
3560
+ }[] | [string, string] | null | undefined>;
3561
+ createdBySignature?: string | null | undefined;
3562
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
3127
3563
  annotation?: Record<string, string | number | boolean | {
3128
3564
  type: string;
3129
3565
  filename: string;
@@ -3139,6 +3575,10 @@ export declare const EventDocument: z.ZodObject<{
3139
3575
  residentialArea?: string | null | undefined;
3140
3576
  street?: string | null | undefined;
3141
3577
  zipCode?: string | null | undefined;
3578
+ } | {
3579
+ firstname: string;
3580
+ surname: string;
3581
+ middlename?: string | null | undefined;
3142
3582
  } | {
3143
3583
  country: string;
3144
3584
  district: string;
@@ -3161,14 +3601,17 @@ export declare const EventDocument: z.ZodObject<{
3161
3601
  option: string;
3162
3602
  filename: string;
3163
3603
  originalFilename: string;
3164
- }[] | undefined> | undefined;
3165
- originalActionId?: string | undefined;
3604
+ }[] | [string, string] | null | undefined> | null | undefined;
3605
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
3166
3606
  }, {
3167
3607
  type: "DECLARE";
3168
3608
  id: string;
3169
3609
  status: "Rejected" | "Requested" | "Accepted";
3610
+ transactionId: string;
3611
+ createdByUserType: "system" | "user";
3170
3612
  createdAt: string;
3171
3613
  createdBy: string;
3614
+ createdByRole: string;
3172
3615
  declaration: Record<string, string | number | boolean | {
3173
3616
  type: string;
3174
3617
  filename: string;
@@ -3184,6 +3627,10 @@ export declare const EventDocument: z.ZodObject<{
3184
3627
  residentialArea?: string | null | undefined;
3185
3628
  street?: string | null | undefined;
3186
3629
  zipCode?: string | null | undefined;
3630
+ } | {
3631
+ firstname: string;
3632
+ surname: string;
3633
+ middlename?: string | null | undefined;
3187
3634
  } | {
3188
3635
  country: string;
3189
3636
  district: string;
@@ -3206,8 +3653,9 @@ export declare const EventDocument: z.ZodObject<{
3206
3653
  option: string;
3207
3654
  filename: string;
3208
3655
  originalFilename: string;
3209
- }[] | undefined>;
3210
- createdAtLocation: string;
3656
+ }[] | [string, string] | null | undefined>;
3657
+ createdBySignature?: string | null | undefined;
3658
+ createdAtLocation?: string | null | undefined;
3211
3659
  annotation?: Record<string, string | number | boolean | {
3212
3660
  type: string;
3213
3661
  filename: string;
@@ -3223,6 +3671,10 @@ export declare const EventDocument: z.ZodObject<{
3223
3671
  residentialArea?: string | null | undefined;
3224
3672
  street?: string | null | undefined;
3225
3673
  zipCode?: string | null | undefined;
3674
+ } | {
3675
+ firstname: string;
3676
+ surname: string;
3677
+ middlename?: string | null | undefined;
3226
3678
  } | {
3227
3679
  country: string;
3228
3680
  district: string;
@@ -3245,13 +3697,18 @@ export declare const EventDocument: z.ZodObject<{
3245
3697
  option: string;
3246
3698
  filename: string;
3247
3699
  originalFilename: string;
3248
- }[] | undefined> | undefined;
3249
- originalActionId?: string | undefined;
3700
+ }[] | [string, string] | null | undefined> | null | undefined;
3701
+ originalActionId?: string | null | undefined;
3250
3702
  }>, z.ZodObject<z.objectUtil.extendShape<{
3251
- id: z.ZodString;
3703
+ id: z.ZodBranded<z.ZodString, "UUID">;
3704
+ transactionId: z.ZodString;
3705
+ createdByUserType: z.ZodEnum<["user", "system"]>;
3252
3706
  createdAt: z.ZodString;
3253
3707
  createdBy: z.ZodString;
3254
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3708
+ createdByRole: z.ZodString;
3709
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3710
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.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<{
3255
3712
  filename: z.ZodString;
3256
3713
  originalFilename: z.ZodString;
3257
3714
  type: z.ZodString;
@@ -3364,8 +3821,20 @@ export declare const EventDocument: z.ZodObject<{
3364
3821
  addressLine2?: string | null | undefined;
3365
3822
  addressLine3?: string | null | undefined;
3366
3823
  postcodeOrZip?: string | null | undefined;
3367
- }>]>>;
3368
- 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<{
3369
3838
  filename: z.ZodString;
3370
3839
  originalFilename: z.ZodString;
3371
3840
  type: z.ZodString;
@@ -3478,19 +3947,33 @@ export declare const EventDocument: z.ZodObject<{
3478
3947
  addressLine2?: string | null | undefined;
3479
3948
  addressLine3?: string | null | undefined;
3480
3949
  postcodeOrZip?: string | null | undefined;
3481
- }>]>>>;
3482
- createdAtLocation: z.ZodString;
3950
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
3951
+ firstname: z.ZodString;
3952
+ surname: z.ZodString;
3953
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3954
+ }, "strip", z.ZodTypeAny, {
3955
+ firstname: string;
3956
+ surname: string;
3957
+ middlename?: string | null | undefined;
3958
+ }, {
3959
+ firstname: string;
3960
+ surname: string;
3961
+ middlename?: string | null | undefined;
3962
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
3483
3963
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3484
- originalActionId: z.ZodOptional<z.ZodString>;
3964
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
3485
3965
  }, {
3486
3966
  type: z.ZodLiteral<"ASSIGN">;
3487
3967
  assignedTo: z.ZodString;
3488
3968
  }>, "strip", z.ZodTypeAny, {
3489
3969
  type: "ASSIGN";
3490
- id: string;
3970
+ id: string & z.BRAND<"UUID">;
3491
3971
  status: "Rejected" | "Requested" | "Accepted";
3972
+ transactionId: string;
3973
+ createdByUserType: "system" | "user";
3492
3974
  createdAt: string;
3493
3975
  createdBy: string;
3976
+ createdByRole: string;
3494
3977
  declaration: Record<string, string | number | boolean | {
3495
3978
  type: string;
3496
3979
  filename: string;
@@ -3506,6 +3989,10 @@ export declare const EventDocument: z.ZodObject<{
3506
3989
  residentialArea?: string | null | undefined;
3507
3990
  street?: string | null | undefined;
3508
3991
  zipCode?: string | null | undefined;
3992
+ } | {
3993
+ firstname: string;
3994
+ surname: string;
3995
+ middlename?: string | null | undefined;
3509
3996
  } | {
3510
3997
  country: string;
3511
3998
  district: string;
@@ -3528,9 +4015,10 @@ export declare const EventDocument: z.ZodObject<{
3528
4015
  option: string;
3529
4016
  filename: string;
3530
4017
  originalFilename: string;
3531
- }[] | undefined>;
3532
- createdAtLocation: string;
4018
+ }[] | [string, string] | null | undefined>;
3533
4019
  assignedTo: string;
4020
+ createdBySignature?: string | null | undefined;
4021
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
3534
4022
  annotation?: Record<string, string | number | boolean | {
3535
4023
  type: string;
3536
4024
  filename: string;
@@ -3546,6 +4034,10 @@ export declare const EventDocument: z.ZodObject<{
3546
4034
  residentialArea?: string | null | undefined;
3547
4035
  street?: string | null | undefined;
3548
4036
  zipCode?: string | null | undefined;
4037
+ } | {
4038
+ firstname: string;
4039
+ surname: string;
4040
+ middlename?: string | null | undefined;
3549
4041
  } | {
3550
4042
  country: string;
3551
4043
  district: string;
@@ -3568,14 +4060,17 @@ export declare const EventDocument: z.ZodObject<{
3568
4060
  option: string;
3569
4061
  filename: string;
3570
4062
  originalFilename: string;
3571
- }[] | undefined> | undefined;
3572
- originalActionId?: string | undefined;
4063
+ }[] | [string, string] | null | undefined> | null | undefined;
4064
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
3573
4065
  }, {
3574
4066
  type: "ASSIGN";
3575
4067
  id: string;
3576
4068
  status: "Rejected" | "Requested" | "Accepted";
4069
+ transactionId: string;
4070
+ createdByUserType: "system" | "user";
3577
4071
  createdAt: string;
3578
4072
  createdBy: string;
4073
+ createdByRole: string;
3579
4074
  declaration: Record<string, string | number | boolean | {
3580
4075
  type: string;
3581
4076
  filename: string;
@@ -3591,6 +4086,10 @@ export declare const EventDocument: z.ZodObject<{
3591
4086
  residentialArea?: string | null | undefined;
3592
4087
  street?: string | null | undefined;
3593
4088
  zipCode?: string | null | undefined;
4089
+ } | {
4090
+ firstname: string;
4091
+ surname: string;
4092
+ middlename?: string | null | undefined;
3594
4093
  } | {
3595
4094
  country: string;
3596
4095
  district: string;
@@ -3613,9 +4112,10 @@ export declare const EventDocument: z.ZodObject<{
3613
4112
  option: string;
3614
4113
  filename: string;
3615
4114
  originalFilename: string;
3616
- }[] | undefined>;
3617
- createdAtLocation: string;
4115
+ }[] | [string, string] | null | undefined>;
3618
4116
  assignedTo: string;
4117
+ createdBySignature?: string | null | undefined;
4118
+ createdAtLocation?: string | null | undefined;
3619
4119
  annotation?: Record<string, string | number | boolean | {
3620
4120
  type: string;
3621
4121
  filename: string;
@@ -3631,6 +4131,10 @@ export declare const EventDocument: z.ZodObject<{
3631
4131
  residentialArea?: string | null | undefined;
3632
4132
  street?: string | null | undefined;
3633
4133
  zipCode?: string | null | undefined;
4134
+ } | {
4135
+ firstname: string;
4136
+ surname: string;
4137
+ middlename?: string | null | undefined;
3634
4138
  } | {
3635
4139
  country: string;
3636
4140
  district: string;
@@ -3653,13 +4157,18 @@ export declare const EventDocument: z.ZodObject<{
3653
4157
  option: string;
3654
4158
  filename: string;
3655
4159
  originalFilename: string;
3656
- }[] | undefined> | undefined;
3657
- originalActionId?: string | undefined;
4160
+ }[] | [string, string] | null | undefined> | null | undefined;
4161
+ originalActionId?: string | null | undefined;
3658
4162
  }>, z.ZodObject<z.objectUtil.extendShape<{
3659
- id: z.ZodString;
4163
+ id: z.ZodBranded<z.ZodString, "UUID">;
4164
+ transactionId: z.ZodString;
4165
+ createdByUserType: z.ZodEnum<["user", "system"]>;
3660
4166
  createdAt: z.ZodString;
3661
4167
  createdBy: z.ZodString;
3662
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4168
+ createdByRole: z.ZodString;
4169
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4170
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.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<{
3663
4172
  filename: z.ZodString;
3664
4173
  originalFilename: z.ZodString;
3665
4174
  type: z.ZodString;
@@ -3772,8 +4281,20 @@ export declare const EventDocument: z.ZodObject<{
3772
4281
  addressLine2?: string | null | undefined;
3773
4282
  addressLine3?: string | null | undefined;
3774
4283
  postcodeOrZip?: string | null | undefined;
3775
- }>]>>;
3776
- 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<{
3777
4298
  filename: z.ZodString;
3778
4299
  originalFilename: z.ZodString;
3779
4300
  type: z.ZodString;
@@ -3886,18 +4407,32 @@ export declare const EventDocument: z.ZodObject<{
3886
4407
  addressLine2?: string | null | undefined;
3887
4408
  addressLine3?: string | null | undefined;
3888
4409
  postcodeOrZip?: string | null | undefined;
3889
- }>]>>>;
3890
- createdAtLocation: z.ZodString;
4410
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
4411
+ firstname: z.ZodString;
4412
+ surname: z.ZodString;
4413
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4414
+ }, "strip", z.ZodTypeAny, {
4415
+ firstname: string;
4416
+ surname: string;
4417
+ middlename?: string | null | undefined;
4418
+ }, {
4419
+ firstname: string;
4420
+ surname: string;
4421
+ middlename?: string | null | undefined;
4422
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
3891
4423
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3892
- originalActionId: z.ZodOptional<z.ZodString>;
4424
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
3893
4425
  }, {
3894
4426
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
3895
4427
  }>, "strip", z.ZodTypeAny, {
3896
4428
  type: "REQUEST_CORRECTION";
3897
- id: string;
4429
+ id: string & z.BRAND<"UUID">;
3898
4430
  status: "Rejected" | "Requested" | "Accepted";
4431
+ transactionId: string;
4432
+ createdByUserType: "system" | "user";
3899
4433
  createdAt: string;
3900
4434
  createdBy: string;
4435
+ createdByRole: string;
3901
4436
  declaration: Record<string, string | number | boolean | {
3902
4437
  type: string;
3903
4438
  filename: string;
@@ -3913,6 +4448,10 @@ export declare const EventDocument: z.ZodObject<{
3913
4448
  residentialArea?: string | null | undefined;
3914
4449
  street?: string | null | undefined;
3915
4450
  zipCode?: string | null | undefined;
4451
+ } | {
4452
+ firstname: string;
4453
+ surname: string;
4454
+ middlename?: string | null | undefined;
3916
4455
  } | {
3917
4456
  country: string;
3918
4457
  district: string;
@@ -3935,8 +4474,9 @@ export declare const EventDocument: z.ZodObject<{
3935
4474
  option: string;
3936
4475
  filename: string;
3937
4476
  originalFilename: string;
3938
- }[] | undefined>;
3939
- createdAtLocation: string;
4477
+ }[] | [string, string] | null | undefined>;
4478
+ createdBySignature?: string | null | undefined;
4479
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
3940
4480
  annotation?: Record<string, string | number | boolean | {
3941
4481
  type: string;
3942
4482
  filename: string;
@@ -3952,6 +4492,10 @@ export declare const EventDocument: z.ZodObject<{
3952
4492
  residentialArea?: string | null | undefined;
3953
4493
  street?: string | null | undefined;
3954
4494
  zipCode?: string | null | undefined;
4495
+ } | {
4496
+ firstname: string;
4497
+ surname: string;
4498
+ middlename?: string | null | undefined;
3955
4499
  } | {
3956
4500
  country: string;
3957
4501
  district: string;
@@ -3974,14 +4518,17 @@ export declare const EventDocument: z.ZodObject<{
3974
4518
  option: string;
3975
4519
  filename: string;
3976
4520
  originalFilename: string;
3977
- }[] | undefined> | undefined;
3978
- originalActionId?: string | undefined;
4521
+ }[] | [string, string] | null | undefined> | null | undefined;
4522
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
3979
4523
  }, {
3980
4524
  type: "REQUEST_CORRECTION";
3981
4525
  id: string;
3982
4526
  status: "Rejected" | "Requested" | "Accepted";
4527
+ transactionId: string;
4528
+ createdByUserType: "system" | "user";
3983
4529
  createdAt: string;
3984
4530
  createdBy: string;
4531
+ createdByRole: string;
3985
4532
  declaration: Record<string, string | number | boolean | {
3986
4533
  type: string;
3987
4534
  filename: string;
@@ -3997,6 +4544,10 @@ export declare const EventDocument: z.ZodObject<{
3997
4544
  residentialArea?: string | null | undefined;
3998
4545
  street?: string | null | undefined;
3999
4546
  zipCode?: string | null | undefined;
4547
+ } | {
4548
+ firstname: string;
4549
+ surname: string;
4550
+ middlename?: string | null | undefined;
4000
4551
  } | {
4001
4552
  country: string;
4002
4553
  district: string;
@@ -4019,8 +4570,9 @@ export declare const EventDocument: z.ZodObject<{
4019
4570
  option: string;
4020
4571
  filename: string;
4021
4572
  originalFilename: string;
4022
- }[] | undefined>;
4023
- createdAtLocation: string;
4573
+ }[] | [string, string] | null | undefined>;
4574
+ createdBySignature?: string | null | undefined;
4575
+ createdAtLocation?: string | null | undefined;
4024
4576
  annotation?: Record<string, string | number | boolean | {
4025
4577
  type: string;
4026
4578
  filename: string;
@@ -4036,6 +4588,10 @@ export declare const EventDocument: z.ZodObject<{
4036
4588
  residentialArea?: string | null | undefined;
4037
4589
  street?: string | null | undefined;
4038
4590
  zipCode?: string | null | undefined;
4591
+ } | {
4592
+ firstname: string;
4593
+ surname: string;
4594
+ middlename?: string | null | undefined;
4039
4595
  } | {
4040
4596
  country: string;
4041
4597
  district: string;
@@ -4058,13 +4614,18 @@ export declare const EventDocument: z.ZodObject<{
4058
4614
  option: string;
4059
4615
  filename: string;
4060
4616
  originalFilename: string;
4061
- }[] | undefined> | undefined;
4062
- originalActionId?: string | undefined;
4617
+ }[] | [string, string] | null | undefined> | null | undefined;
4618
+ originalActionId?: string | null | undefined;
4063
4619
  }>, z.ZodObject<z.objectUtil.extendShape<{
4064
- id: z.ZodString;
4620
+ id: z.ZodBranded<z.ZodString, "UUID">;
4621
+ transactionId: z.ZodString;
4622
+ createdByUserType: z.ZodEnum<["user", "system"]>;
4065
4623
  createdAt: z.ZodString;
4066
4624
  createdBy: z.ZodString;
4067
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4625
+ createdByRole: z.ZodString;
4626
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4627
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.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<{
4068
4629
  filename: z.ZodString;
4069
4630
  originalFilename: z.ZodString;
4070
4631
  type: z.ZodString;
@@ -4177,8 +4738,20 @@ export declare const EventDocument: z.ZodObject<{
4177
4738
  addressLine2?: string | null | undefined;
4178
4739
  addressLine3?: string | null | undefined;
4179
4740
  postcodeOrZip?: string | null | undefined;
4180
- }>]>>;
4181
- 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<{
4182
4755
  filename: z.ZodString;
4183
4756
  originalFilename: z.ZodString;
4184
4757
  type: z.ZodString;
@@ -4291,19 +4864,33 @@ export declare const EventDocument: z.ZodObject<{
4291
4864
  addressLine2?: string | null | undefined;
4292
4865
  addressLine3?: string | null | undefined;
4293
4866
  postcodeOrZip?: string | null | undefined;
4294
- }>]>>>;
4295
- createdAtLocation: z.ZodString;
4867
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
4868
+ firstname: z.ZodString;
4869
+ surname: z.ZodString;
4870
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4871
+ }, "strip", z.ZodTypeAny, {
4872
+ firstname: string;
4873
+ surname: string;
4874
+ middlename?: string | null | undefined;
4875
+ }, {
4876
+ firstname: string;
4877
+ surname: string;
4878
+ middlename?: string | null | undefined;
4879
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
4296
4880
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4297
- originalActionId: z.ZodOptional<z.ZodString>;
4881
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
4298
4882
  }, {
4299
4883
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
4300
4884
  requestId: z.ZodString;
4301
4885
  }>, "strip", z.ZodTypeAny, {
4302
4886
  type: "APPROVE_CORRECTION";
4303
- id: string;
4887
+ id: string & z.BRAND<"UUID">;
4304
4888
  status: "Rejected" | "Requested" | "Accepted";
4889
+ transactionId: string;
4890
+ createdByUserType: "system" | "user";
4305
4891
  createdAt: string;
4306
4892
  createdBy: string;
4893
+ createdByRole: string;
4307
4894
  declaration: Record<string, string | number | boolean | {
4308
4895
  type: string;
4309
4896
  filename: string;
@@ -4319,6 +4906,10 @@ export declare const EventDocument: z.ZodObject<{
4319
4906
  residentialArea?: string | null | undefined;
4320
4907
  street?: string | null | undefined;
4321
4908
  zipCode?: string | null | undefined;
4909
+ } | {
4910
+ firstname: string;
4911
+ surname: string;
4912
+ middlename?: string | null | undefined;
4322
4913
  } | {
4323
4914
  country: string;
4324
4915
  district: string;
@@ -4341,9 +4932,10 @@ export declare const EventDocument: z.ZodObject<{
4341
4932
  option: string;
4342
4933
  filename: string;
4343
4934
  originalFilename: string;
4344
- }[] | undefined>;
4345
- createdAtLocation: string;
4935
+ }[] | [string, string] | null | undefined>;
4346
4936
  requestId: string;
4937
+ createdBySignature?: string | null | undefined;
4938
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
4347
4939
  annotation?: Record<string, string | number | boolean | {
4348
4940
  type: string;
4349
4941
  filename: string;
@@ -4359,6 +4951,10 @@ export declare const EventDocument: z.ZodObject<{
4359
4951
  residentialArea?: string | null | undefined;
4360
4952
  street?: string | null | undefined;
4361
4953
  zipCode?: string | null | undefined;
4954
+ } | {
4955
+ firstname: string;
4956
+ surname: string;
4957
+ middlename?: string | null | undefined;
4362
4958
  } | {
4363
4959
  country: string;
4364
4960
  district: string;
@@ -4381,14 +4977,17 @@ export declare const EventDocument: z.ZodObject<{
4381
4977
  option: string;
4382
4978
  filename: string;
4383
4979
  originalFilename: string;
4384
- }[] | undefined> | undefined;
4385
- originalActionId?: string | undefined;
4980
+ }[] | [string, string] | null | undefined> | null | undefined;
4981
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
4386
4982
  }, {
4387
4983
  type: "APPROVE_CORRECTION";
4388
4984
  id: string;
4389
4985
  status: "Rejected" | "Requested" | "Accepted";
4986
+ transactionId: string;
4987
+ createdByUserType: "system" | "user";
4390
4988
  createdAt: string;
4391
4989
  createdBy: string;
4990
+ createdByRole: string;
4392
4991
  declaration: Record<string, string | number | boolean | {
4393
4992
  type: string;
4394
4993
  filename: string;
@@ -4404,6 +5003,10 @@ export declare const EventDocument: z.ZodObject<{
4404
5003
  residentialArea?: string | null | undefined;
4405
5004
  street?: string | null | undefined;
4406
5005
  zipCode?: string | null | undefined;
5006
+ } | {
5007
+ firstname: string;
5008
+ surname: string;
5009
+ middlename?: string | null | undefined;
4407
5010
  } | {
4408
5011
  country: string;
4409
5012
  district: string;
@@ -4426,9 +5029,10 @@ export declare const EventDocument: z.ZodObject<{
4426
5029
  option: string;
4427
5030
  filename: string;
4428
5031
  originalFilename: string;
4429
- }[] | undefined>;
4430
- createdAtLocation: string;
5032
+ }[] | [string, string] | null | undefined>;
4431
5033
  requestId: string;
5034
+ createdBySignature?: string | null | undefined;
5035
+ createdAtLocation?: string | null | undefined;
4432
5036
  annotation?: Record<string, string | number | boolean | {
4433
5037
  type: string;
4434
5038
  filename: string;
@@ -4444,6 +5048,10 @@ export declare const EventDocument: z.ZodObject<{
4444
5048
  residentialArea?: string | null | undefined;
4445
5049
  street?: string | null | undefined;
4446
5050
  zipCode?: string | null | undefined;
5051
+ } | {
5052
+ firstname: string;
5053
+ surname: string;
5054
+ middlename?: string | null | undefined;
4447
5055
  } | {
4448
5056
  country: string;
4449
5057
  district: string;
@@ -4466,13 +5074,18 @@ export declare const EventDocument: z.ZodObject<{
4466
5074
  option: string;
4467
5075
  filename: string;
4468
5076
  originalFilename: string;
4469
- }[] | undefined> | undefined;
4470
- originalActionId?: string | undefined;
5077
+ }[] | [string, string] | null | undefined> | null | undefined;
5078
+ originalActionId?: string | null | undefined;
4471
5079
  }>, z.ZodObject<z.objectUtil.extendShape<{
4472
- id: z.ZodString;
5080
+ id: z.ZodBranded<z.ZodString, "UUID">;
5081
+ transactionId: z.ZodString;
5082
+ createdByUserType: z.ZodEnum<["user", "system"]>;
4473
5083
  createdAt: z.ZodString;
4474
5084
  createdBy: z.ZodString;
4475
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5085
+ createdByRole: z.ZodString;
5086
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5087
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.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<{
4476
5089
  filename: z.ZodString;
4477
5090
  originalFilename: z.ZodString;
4478
5091
  type: z.ZodString;
@@ -4585,8 +5198,20 @@ export declare const EventDocument: z.ZodObject<{
4585
5198
  addressLine2?: string | null | undefined;
4586
5199
  addressLine3?: string | null | undefined;
4587
5200
  postcodeOrZip?: string | null | undefined;
4588
- }>]>>;
4589
- 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<{
4590
5215
  filename: z.ZodString;
4591
5216
  originalFilename: z.ZodString;
4592
5217
  type: z.ZodString;
@@ -4699,19 +5324,33 @@ export declare const EventDocument: z.ZodObject<{
4699
5324
  addressLine2?: string | null | undefined;
4700
5325
  addressLine3?: string | null | undefined;
4701
5326
  postcodeOrZip?: string | null | undefined;
4702
- }>]>>>;
4703
- createdAtLocation: z.ZodString;
5327
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
5328
+ firstname: z.ZodString;
5329
+ surname: z.ZodString;
5330
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5331
+ }, "strip", z.ZodTypeAny, {
5332
+ firstname: string;
5333
+ surname: string;
5334
+ middlename?: string | null | undefined;
5335
+ }, {
5336
+ firstname: string;
5337
+ surname: string;
5338
+ middlename?: string | null | undefined;
5339
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
4704
5340
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4705
- originalActionId: z.ZodOptional<z.ZodString>;
5341
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
4706
5342
  }, {
4707
5343
  type: z.ZodLiteral<"REJECT_CORRECTION">;
4708
5344
  requestId: z.ZodString;
4709
5345
  }>, "strip", z.ZodTypeAny, {
4710
5346
  type: "REJECT_CORRECTION";
4711
- id: string;
5347
+ id: string & z.BRAND<"UUID">;
4712
5348
  status: "Rejected" | "Requested" | "Accepted";
5349
+ transactionId: string;
5350
+ createdByUserType: "system" | "user";
4713
5351
  createdAt: string;
4714
5352
  createdBy: string;
5353
+ createdByRole: string;
4715
5354
  declaration: Record<string, string | number | boolean | {
4716
5355
  type: string;
4717
5356
  filename: string;
@@ -4727,6 +5366,10 @@ export declare const EventDocument: z.ZodObject<{
4727
5366
  residentialArea?: string | null | undefined;
4728
5367
  street?: string | null | undefined;
4729
5368
  zipCode?: string | null | undefined;
5369
+ } | {
5370
+ firstname: string;
5371
+ surname: string;
5372
+ middlename?: string | null | undefined;
4730
5373
  } | {
4731
5374
  country: string;
4732
5375
  district: string;
@@ -4749,9 +5392,10 @@ export declare const EventDocument: z.ZodObject<{
4749
5392
  option: string;
4750
5393
  filename: string;
4751
5394
  originalFilename: string;
4752
- }[] | undefined>;
4753
- createdAtLocation: string;
5395
+ }[] | [string, string] | null | undefined>;
4754
5396
  requestId: string;
5397
+ createdBySignature?: string | null | undefined;
5398
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
4755
5399
  annotation?: Record<string, string | number | boolean | {
4756
5400
  type: string;
4757
5401
  filename: string;
@@ -4767,6 +5411,10 @@ export declare const EventDocument: z.ZodObject<{
4767
5411
  residentialArea?: string | null | undefined;
4768
5412
  street?: string | null | undefined;
4769
5413
  zipCode?: string | null | undefined;
5414
+ } | {
5415
+ firstname: string;
5416
+ surname: string;
5417
+ middlename?: string | null | undefined;
4770
5418
  } | {
4771
5419
  country: string;
4772
5420
  district: string;
@@ -4789,14 +5437,17 @@ export declare const EventDocument: z.ZodObject<{
4789
5437
  option: string;
4790
5438
  filename: string;
4791
5439
  originalFilename: string;
4792
- }[] | undefined> | undefined;
4793
- originalActionId?: string | undefined;
5440
+ }[] | [string, string] | null | undefined> | null | undefined;
5441
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
4794
5442
  }, {
4795
5443
  type: "REJECT_CORRECTION";
4796
5444
  id: string;
4797
5445
  status: "Rejected" | "Requested" | "Accepted";
5446
+ transactionId: string;
5447
+ createdByUserType: "system" | "user";
4798
5448
  createdAt: string;
4799
5449
  createdBy: string;
5450
+ createdByRole: string;
4800
5451
  declaration: Record<string, string | number | boolean | {
4801
5452
  type: string;
4802
5453
  filename: string;
@@ -4812,6 +5463,10 @@ export declare const EventDocument: z.ZodObject<{
4812
5463
  residentialArea?: string | null | undefined;
4813
5464
  street?: string | null | undefined;
4814
5465
  zipCode?: string | null | undefined;
5466
+ } | {
5467
+ firstname: string;
5468
+ surname: string;
5469
+ middlename?: string | null | undefined;
4815
5470
  } | {
4816
5471
  country: string;
4817
5472
  district: string;
@@ -4834,9 +5489,10 @@ export declare const EventDocument: z.ZodObject<{
4834
5489
  option: string;
4835
5490
  filename: string;
4836
5491
  originalFilename: string;
4837
- }[] | undefined>;
4838
- createdAtLocation: string;
5492
+ }[] | [string, string] | null | undefined>;
4839
5493
  requestId: string;
5494
+ createdBySignature?: string | null | undefined;
5495
+ createdAtLocation?: string | null | undefined;
4840
5496
  annotation?: Record<string, string | number | boolean | {
4841
5497
  type: string;
4842
5498
  filename: string;
@@ -4852,6 +5508,10 @@ export declare const EventDocument: z.ZodObject<{
4852
5508
  residentialArea?: string | null | undefined;
4853
5509
  street?: string | null | undefined;
4854
5510
  zipCode?: string | null | undefined;
5511
+ } | {
5512
+ firstname: string;
5513
+ surname: string;
5514
+ middlename?: string | null | undefined;
4855
5515
  } | {
4856
5516
  country: string;
4857
5517
  district: string;
@@ -4874,13 +5534,18 @@ export declare const EventDocument: z.ZodObject<{
4874
5534
  option: string;
4875
5535
  filename: string;
4876
5536
  originalFilename: string;
4877
- }[] | undefined> | undefined;
4878
- originalActionId?: string | undefined;
5537
+ }[] | [string, string] | null | undefined> | null | undefined;
5538
+ originalActionId?: string | null | undefined;
4879
5539
  }>, z.ZodObject<z.objectUtil.extendShape<{
4880
- id: z.ZodString;
5540
+ id: z.ZodBranded<z.ZodString, "UUID">;
5541
+ transactionId: z.ZodString;
5542
+ createdByUserType: z.ZodEnum<["user", "system"]>;
4881
5543
  createdAt: z.ZodString;
4882
5544
  createdBy: z.ZodString;
4883
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5545
+ createdByRole: z.ZodString;
5546
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5547
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.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<{
4884
5549
  filename: z.ZodString;
4885
5550
  originalFilename: z.ZodString;
4886
5551
  type: z.ZodString;
@@ -4993,8 +5658,20 @@ export declare const EventDocument: z.ZodObject<{
4993
5658
  addressLine2?: string | null | undefined;
4994
5659
  addressLine3?: string | null | undefined;
4995
5660
  postcodeOrZip?: string | null | undefined;
4996
- }>]>>;
4997
- 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<{
4998
5675
  filename: z.ZodString;
4999
5676
  originalFilename: z.ZodString;
5000
5677
  type: z.ZodString;
@@ -5107,19 +5784,32 @@ export declare const EventDocument: z.ZodObject<{
5107
5784
  addressLine2?: string | null | undefined;
5108
5785
  addressLine3?: string | null | undefined;
5109
5786
  postcodeOrZip?: string | null | undefined;
5110
- }>]>>>;
5111
- createdAtLocation: z.ZodString;
5787
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
5788
+ firstname: z.ZodString;
5789
+ surname: z.ZodString;
5790
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5791
+ }, "strip", z.ZodTypeAny, {
5792
+ firstname: string;
5793
+ surname: string;
5794
+ middlename?: string | null | undefined;
5795
+ }, {
5796
+ firstname: string;
5797
+ surname: string;
5798
+ middlename?: string | null | undefined;
5799
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
5112
5800
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5113
- originalActionId: z.ZodOptional<z.ZodString>;
5801
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
5114
5802
  }, {
5115
5803
  type: z.ZodLiteral<"UNASSIGN">;
5116
- assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
5117
5804
  }>, "strip", z.ZodTypeAny, {
5118
5805
  type: "UNASSIGN";
5119
- id: string;
5806
+ id: string & z.BRAND<"UUID">;
5120
5807
  status: "Rejected" | "Requested" | "Accepted";
5808
+ transactionId: string;
5809
+ createdByUserType: "system" | "user";
5121
5810
  createdAt: string;
5122
5811
  createdBy: string;
5812
+ createdByRole: string;
5123
5813
  declaration: Record<string, string | number | boolean | {
5124
5814
  type: string;
5125
5815
  filename: string;
@@ -5135,6 +5825,10 @@ export declare const EventDocument: z.ZodObject<{
5135
5825
  residentialArea?: string | null | undefined;
5136
5826
  street?: string | null | undefined;
5137
5827
  zipCode?: string | null | undefined;
5828
+ } | {
5829
+ firstname: string;
5830
+ surname: string;
5831
+ middlename?: string | null | undefined;
5138
5832
  } | {
5139
5833
  country: string;
5140
5834
  district: string;
@@ -5157,9 +5851,9 @@ export declare const EventDocument: z.ZodObject<{
5157
5851
  option: string;
5158
5852
  filename: string;
5159
5853
  originalFilename: string;
5160
- }[] | undefined>;
5161
- createdAtLocation: string;
5162
- assignedTo: null;
5854
+ }[] | [string, string] | null | undefined>;
5855
+ createdBySignature?: string | null | undefined;
5856
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
5163
5857
  annotation?: Record<string, string | number | boolean | {
5164
5858
  type: string;
5165
5859
  filename: string;
@@ -5175,6 +5869,10 @@ export declare const EventDocument: z.ZodObject<{
5175
5869
  residentialArea?: string | null | undefined;
5176
5870
  street?: string | null | undefined;
5177
5871
  zipCode?: string | null | undefined;
5872
+ } | {
5873
+ firstname: string;
5874
+ surname: string;
5875
+ middlename?: string | null | undefined;
5178
5876
  } | {
5179
5877
  country: string;
5180
5878
  district: string;
@@ -5197,14 +5895,17 @@ export declare const EventDocument: z.ZodObject<{
5197
5895
  option: string;
5198
5896
  filename: string;
5199
5897
  originalFilename: string;
5200
- }[] | undefined> | undefined;
5201
- originalActionId?: string | undefined;
5898
+ }[] | [string, string] | null | undefined> | null | undefined;
5899
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
5202
5900
  }, {
5203
5901
  type: "UNASSIGN";
5204
5902
  id: string;
5205
5903
  status: "Rejected" | "Requested" | "Accepted";
5904
+ transactionId: string;
5905
+ createdByUserType: "system" | "user";
5206
5906
  createdAt: string;
5207
5907
  createdBy: string;
5908
+ createdByRole: string;
5208
5909
  declaration: Record<string, string | number | boolean | {
5209
5910
  type: string;
5210
5911
  filename: string;
@@ -5220,6 +5921,10 @@ export declare const EventDocument: z.ZodObject<{
5220
5921
  residentialArea?: string | null | undefined;
5221
5922
  street?: string | null | undefined;
5222
5923
  zipCode?: string | null | undefined;
5924
+ } | {
5925
+ firstname: string;
5926
+ surname: string;
5927
+ middlename?: string | null | undefined;
5223
5928
  } | {
5224
5929
  country: string;
5225
5930
  district: string;
@@ -5242,8 +5947,9 @@ export declare const EventDocument: z.ZodObject<{
5242
5947
  option: string;
5243
5948
  filename: string;
5244
5949
  originalFilename: string;
5245
- }[] | undefined>;
5246
- createdAtLocation: string;
5950
+ }[] | [string, string] | null | undefined>;
5951
+ createdBySignature?: string | null | undefined;
5952
+ createdAtLocation?: string | null | undefined;
5247
5953
  annotation?: Record<string, string | number | boolean | {
5248
5954
  type: string;
5249
5955
  filename: string;
@@ -5259,6 +5965,10 @@ export declare const EventDocument: z.ZodObject<{
5259
5965
  residentialArea?: string | null | undefined;
5260
5966
  street?: string | null | undefined;
5261
5967
  zipCode?: string | null | undefined;
5968
+ } | {
5969
+ firstname: string;
5970
+ surname: string;
5971
+ middlename?: string | null | undefined;
5262
5972
  } | {
5263
5973
  country: string;
5264
5974
  district: string;
@@ -5281,14 +5991,18 @@ export declare const EventDocument: z.ZodObject<{
5281
5991
  option: string;
5282
5992
  filename: string;
5283
5993
  originalFilename: string;
5284
- }[] | undefined> | undefined;
5285
- originalActionId?: string | undefined;
5286
- assignedTo?: null | undefined;
5994
+ }[] | [string, string] | null | undefined> | null | undefined;
5995
+ originalActionId?: string | null | undefined;
5287
5996
  }>, z.ZodObject<z.objectUtil.extendShape<{
5288
- id: z.ZodString;
5997
+ id: z.ZodBranded<z.ZodString, "UUID">;
5998
+ transactionId: z.ZodString;
5999
+ createdByUserType: z.ZodEnum<["user", "system"]>;
5289
6000
  createdAt: z.ZodString;
5290
6001
  createdBy: z.ZodString;
5291
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6002
+ createdByRole: z.ZodString;
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<{
5292
6006
  filename: z.ZodString;
5293
6007
  originalFilename: z.ZodString;
5294
6008
  type: z.ZodString;
@@ -5401,8 +6115,20 @@ export declare const EventDocument: z.ZodObject<{
5401
6115
  addressLine2?: string | null | undefined;
5402
6116
  addressLine3?: string | null | undefined;
5403
6117
  postcodeOrZip?: string | null | undefined;
5404
- }>]>>;
5405
- 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<{
5406
6132
  filename: z.ZodString;
5407
6133
  originalFilename: z.ZodString;
5408
6134
  type: z.ZodString;
@@ -5515,18 +6241,32 @@ export declare const EventDocument: z.ZodObject<{
5515
6241
  addressLine2?: string | null | undefined;
5516
6242
  addressLine3?: string | null | undefined;
5517
6243
  postcodeOrZip?: string | null | undefined;
5518
- }>]>>>;
5519
- createdAtLocation: 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]>]>>>>;
5520
6257
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5521
- originalActionId: z.ZodOptional<z.ZodString>;
6258
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
5522
6259
  }, {
5523
6260
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
5524
6261
  }>, "strip", z.ZodTypeAny, {
5525
6262
  type: "PRINT_CERTIFICATE";
5526
- id: string;
6263
+ id: string & z.BRAND<"UUID">;
5527
6264
  status: "Rejected" | "Requested" | "Accepted";
6265
+ transactionId: string;
6266
+ createdByUserType: "system" | "user";
5528
6267
  createdAt: string;
5529
6268
  createdBy: string;
6269
+ createdByRole: string;
5530
6270
  declaration: Record<string, string | number | boolean | {
5531
6271
  type: string;
5532
6272
  filename: string;
@@ -5542,6 +6282,10 @@ export declare const EventDocument: z.ZodObject<{
5542
6282
  residentialArea?: string | null | undefined;
5543
6283
  street?: string | null | undefined;
5544
6284
  zipCode?: string | null | undefined;
6285
+ } | {
6286
+ firstname: string;
6287
+ surname: string;
6288
+ middlename?: string | null | undefined;
5545
6289
  } | {
5546
6290
  country: string;
5547
6291
  district: string;
@@ -5564,8 +6308,9 @@ export declare const EventDocument: z.ZodObject<{
5564
6308
  option: string;
5565
6309
  filename: string;
5566
6310
  originalFilename: string;
5567
- }[] | undefined>;
5568
- createdAtLocation: string;
6311
+ }[] | [string, string] | null | undefined>;
6312
+ createdBySignature?: string | null | undefined;
6313
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
5569
6314
  annotation?: Record<string, string | number | boolean | {
5570
6315
  type: string;
5571
6316
  filename: string;
@@ -5581,6 +6326,10 @@ export declare const EventDocument: z.ZodObject<{
5581
6326
  residentialArea?: string | null | undefined;
5582
6327
  street?: string | null | undefined;
5583
6328
  zipCode?: string | null | undefined;
6329
+ } | {
6330
+ firstname: string;
6331
+ surname: string;
6332
+ middlename?: string | null | undefined;
5584
6333
  } | {
5585
6334
  country: string;
5586
6335
  district: string;
@@ -5603,14 +6352,17 @@ export declare const EventDocument: z.ZodObject<{
5603
6352
  option: string;
5604
6353
  filename: string;
5605
6354
  originalFilename: string;
5606
- }[] | undefined> | undefined;
5607
- originalActionId?: string | undefined;
6355
+ }[] | [string, string] | null | undefined> | null | undefined;
6356
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
5608
6357
  }, {
5609
6358
  type: "PRINT_CERTIFICATE";
5610
6359
  id: string;
5611
6360
  status: "Rejected" | "Requested" | "Accepted";
6361
+ transactionId: string;
6362
+ createdByUserType: "system" | "user";
5612
6363
  createdAt: string;
5613
6364
  createdBy: string;
6365
+ createdByRole: string;
5614
6366
  declaration: Record<string, string | number | boolean | {
5615
6367
  type: string;
5616
6368
  filename: string;
@@ -5626,6 +6378,10 @@ export declare const EventDocument: z.ZodObject<{
5626
6378
  residentialArea?: string | null | undefined;
5627
6379
  street?: string | null | undefined;
5628
6380
  zipCode?: string | null | undefined;
6381
+ } | {
6382
+ firstname: string;
6383
+ surname: string;
6384
+ middlename?: string | null | undefined;
5629
6385
  } | {
5630
6386
  country: string;
5631
6387
  district: string;
@@ -5648,8 +6404,9 @@ export declare const EventDocument: z.ZodObject<{
5648
6404
  option: string;
5649
6405
  filename: string;
5650
6406
  originalFilename: string;
5651
- }[] | undefined>;
5652
- createdAtLocation: string;
6407
+ }[] | [string, string] | null | undefined>;
6408
+ createdBySignature?: string | null | undefined;
6409
+ createdAtLocation?: string | null | undefined;
5653
6410
  annotation?: Record<string, string | number | boolean | {
5654
6411
  type: string;
5655
6412
  filename: string;
@@ -5665,6 +6422,10 @@ export declare const EventDocument: z.ZodObject<{
5665
6422
  residentialArea?: string | null | undefined;
5666
6423
  street?: string | null | undefined;
5667
6424
  zipCode?: string | null | undefined;
6425
+ } | {
6426
+ firstname: string;
6427
+ surname: string;
6428
+ middlename?: string | null | undefined;
5668
6429
  } | {
5669
6430
  country: string;
5670
6431
  district: string;
@@ -5687,13 +6448,18 @@ export declare const EventDocument: z.ZodObject<{
5687
6448
  option: string;
5688
6449
  filename: string;
5689
6450
  originalFilename: string;
5690
- }[] | undefined> | undefined;
5691
- originalActionId?: string | undefined;
6451
+ }[] | [string, string] | null | undefined> | null | undefined;
6452
+ originalActionId?: string | null | undefined;
5692
6453
  }>, z.ZodObject<z.objectUtil.extendShape<{
5693
- id: z.ZodString;
6454
+ id: z.ZodBranded<z.ZodString, "UUID">;
6455
+ transactionId: z.ZodString;
6456
+ createdByUserType: z.ZodEnum<["user", "system"]>;
5694
6457
  createdAt: z.ZodString;
5695
6458
  createdBy: z.ZodString;
5696
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6459
+ createdByRole: z.ZodString;
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<{
5697
6463
  filename: z.ZodString;
5698
6464
  originalFilename: z.ZodString;
5699
6465
  type: z.ZodString;
@@ -5806,8 +6572,20 @@ export declare const EventDocument: z.ZodObject<{
5806
6572
  addressLine2?: string | null | undefined;
5807
6573
  addressLine3?: string | null | undefined;
5808
6574
  postcodeOrZip?: string | null | undefined;
5809
- }>]>>;
5810
- 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<{
5811
6589
  filename: z.ZodString;
5812
6590
  originalFilename: z.ZodString;
5813
6591
  type: z.ZodString;
@@ -5920,18 +6698,32 @@ export declare const EventDocument: z.ZodObject<{
5920
6698
  addressLine2?: string | null | undefined;
5921
6699
  addressLine3?: string | null | undefined;
5922
6700
  postcodeOrZip?: string | null | undefined;
5923
- }>]>>>;
5924
- createdAtLocation: 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]>]>>>>;
5925
6714
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5926
- originalActionId: z.ZodOptional<z.ZodString>;
6715
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
5927
6716
  }, {
5928
6717
  type: z.ZodLiteral<"READ">;
5929
6718
  }>, "strip", z.ZodTypeAny, {
5930
6719
  type: "READ";
5931
- id: string;
6720
+ id: string & z.BRAND<"UUID">;
5932
6721
  status: "Rejected" | "Requested" | "Accepted";
6722
+ transactionId: string;
6723
+ createdByUserType: "system" | "user";
5933
6724
  createdAt: string;
5934
6725
  createdBy: string;
6726
+ createdByRole: string;
5935
6727
  declaration: Record<string, string | number | boolean | {
5936
6728
  type: string;
5937
6729
  filename: string;
@@ -5947,6 +6739,10 @@ export declare const EventDocument: z.ZodObject<{
5947
6739
  residentialArea?: string | null | undefined;
5948
6740
  street?: string | null | undefined;
5949
6741
  zipCode?: string | null | undefined;
6742
+ } | {
6743
+ firstname: string;
6744
+ surname: string;
6745
+ middlename?: string | null | undefined;
5950
6746
  } | {
5951
6747
  country: string;
5952
6748
  district: string;
@@ -5969,8 +6765,9 @@ export declare const EventDocument: z.ZodObject<{
5969
6765
  option: string;
5970
6766
  filename: string;
5971
6767
  originalFilename: string;
5972
- }[] | undefined>;
5973
- createdAtLocation: string;
6768
+ }[] | [string, string] | null | undefined>;
6769
+ createdBySignature?: string | null | undefined;
6770
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
5974
6771
  annotation?: Record<string, string | number | boolean | {
5975
6772
  type: string;
5976
6773
  filename: string;
@@ -5986,6 +6783,10 @@ export declare const EventDocument: z.ZodObject<{
5986
6783
  residentialArea?: string | null | undefined;
5987
6784
  street?: string | null | undefined;
5988
6785
  zipCode?: string | null | undefined;
6786
+ } | {
6787
+ firstname: string;
6788
+ surname: string;
6789
+ middlename?: string | null | undefined;
5989
6790
  } | {
5990
6791
  country: string;
5991
6792
  district: string;
@@ -6008,14 +6809,17 @@ export declare const EventDocument: z.ZodObject<{
6008
6809
  option: string;
6009
6810
  filename: string;
6010
6811
  originalFilename: string;
6011
- }[] | undefined> | undefined;
6012
- originalActionId?: string | undefined;
6812
+ }[] | [string, string] | null | undefined> | null | undefined;
6813
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6013
6814
  }, {
6014
6815
  type: "READ";
6015
6816
  id: string;
6016
6817
  status: "Rejected" | "Requested" | "Accepted";
6818
+ transactionId: string;
6819
+ createdByUserType: "system" | "user";
6017
6820
  createdAt: string;
6018
6821
  createdBy: string;
6822
+ createdByRole: string;
6019
6823
  declaration: Record<string, string | number | boolean | {
6020
6824
  type: string;
6021
6825
  filename: string;
@@ -6031,6 +6835,10 @@ export declare const EventDocument: z.ZodObject<{
6031
6835
  residentialArea?: string | null | undefined;
6032
6836
  street?: string | null | undefined;
6033
6837
  zipCode?: string | null | undefined;
6838
+ } | {
6839
+ firstname: string;
6840
+ surname: string;
6841
+ middlename?: string | null | undefined;
6034
6842
  } | {
6035
6843
  country: string;
6036
6844
  district: string;
@@ -6053,8 +6861,9 @@ export declare const EventDocument: z.ZodObject<{
6053
6861
  option: string;
6054
6862
  filename: string;
6055
6863
  originalFilename: string;
6056
- }[] | undefined>;
6057
- createdAtLocation: string;
6864
+ }[] | [string, string] | null | undefined>;
6865
+ createdBySignature?: string | null | undefined;
6866
+ createdAtLocation?: string | null | undefined;
6058
6867
  annotation?: Record<string, string | number | boolean | {
6059
6868
  type: string;
6060
6869
  filename: string;
@@ -6070,6 +6879,10 @@ export declare const EventDocument: z.ZodObject<{
6070
6879
  residentialArea?: string | null | undefined;
6071
6880
  street?: string | null | undefined;
6072
6881
  zipCode?: string | null | undefined;
6882
+ } | {
6883
+ firstname: string;
6884
+ surname: string;
6885
+ middlename?: string | null | undefined;
6073
6886
  } | {
6074
6887
  country: string;
6075
6888
  district: string;
@@ -6092,13 +6905,18 @@ export declare const EventDocument: z.ZodObject<{
6092
6905
  option: string;
6093
6906
  filename: string;
6094
6907
  originalFilename: string;
6095
- }[] | undefined> | undefined;
6096
- originalActionId?: string | undefined;
6908
+ }[] | [string, string] | null | undefined> | null | undefined;
6909
+ originalActionId?: string | null | undefined;
6097
6910
  }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
6098
- id: z.ZodString;
6911
+ id: z.ZodBranded<z.ZodString, "UUID">;
6912
+ transactionId: z.ZodString;
6913
+ createdByUserType: z.ZodEnum<["user", "system"]>;
6099
6914
  createdAt: z.ZodString;
6100
6915
  createdBy: z.ZodString;
6101
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6916
+ createdByRole: z.ZodString;
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<{
6102
6920
  filename: z.ZodString;
6103
6921
  originalFilename: z.ZodString;
6104
6922
  type: z.ZodString;
@@ -6211,8 +7029,20 @@ export declare const EventDocument: z.ZodObject<{
6211
7029
  addressLine2?: string | null | undefined;
6212
7030
  addressLine3?: string | null | undefined;
6213
7031
  postcodeOrZip?: string | null | undefined;
6214
- }>]>>;
6215
- 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<{
6216
7046
  filename: z.ZodString;
6217
7047
  originalFilename: z.ZodString;
6218
7048
  type: z.ZodString;
@@ -6325,38 +7155,64 @@ export declare const EventDocument: z.ZodObject<{
6325
7155
  addressLine2?: string | null | undefined;
6326
7156
  addressLine3?: string | null | undefined;
6327
7157
  postcodeOrZip?: string | null | undefined;
6328
- }>]>>>;
6329
- createdAtLocation: 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]>]>>>>;
6330
7171
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6331
- originalActionId: z.ZodOptional<z.ZodString>;
6332
- }, "createdBy" | "declaration" | "annotation" | "createdAtLocation">, {
7172
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
7173
+ }, "declaration" | "annotation">, {
6333
7174
  type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
6334
7175
  status: z.ZodLiteral<"Rejected">;
6335
7176
  }>, "strip", z.ZodTypeAny, {
6336
7177
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
6337
- id: string;
7178
+ id: string & z.BRAND<"UUID">;
6338
7179
  status: "Rejected";
7180
+ transactionId: string;
7181
+ createdByUserType: "system" | "user";
6339
7182
  createdAt: string;
6340
- 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;
6341
7188
  }, {
6342
7189
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
6343
7190
  id: string;
6344
7191
  status: "Rejected";
7192
+ transactionId: string;
7193
+ createdByUserType: "system" | "user";
6345
7194
  createdAt: string;
6346
- originalActionId?: string | undefined;
7195
+ createdBy: string;
7196
+ createdByRole: string;
7197
+ createdBySignature?: string | null | undefined;
7198
+ createdAtLocation?: string | null | undefined;
7199
+ originalActionId?: string | null | undefined;
6347
7200
  }>]>, "many">;
6348
7201
  trackingId: z.ZodString;
6349
7202
  }, "strip", z.ZodTypeAny, {
6350
7203
  type: string;
6351
- id: string;
7204
+ id: string & z.BRAND<"UUID">;
6352
7205
  createdAt: string;
6353
7206
  updatedAt: string;
6354
7207
  actions: ({
6355
7208
  type: "ASSIGN";
6356
- id: string;
7209
+ id: string & z.BRAND<"UUID">;
6357
7210
  status: "Rejected" | "Requested" | "Accepted";
7211
+ transactionId: string;
7212
+ createdByUserType: "system" | "user";
6358
7213
  createdAt: string;
6359
7214
  createdBy: string;
7215
+ createdByRole: string;
6360
7216
  declaration: Record<string, string | number | boolean | {
6361
7217
  type: string;
6362
7218
  filename: string;
@@ -6372,6 +7228,10 @@ export declare const EventDocument: z.ZodObject<{
6372
7228
  residentialArea?: string | null | undefined;
6373
7229
  street?: string | null | undefined;
6374
7230
  zipCode?: string | null | undefined;
7231
+ } | {
7232
+ firstname: string;
7233
+ surname: string;
7234
+ middlename?: string | null | undefined;
6375
7235
  } | {
6376
7236
  country: string;
6377
7237
  district: string;
@@ -6394,9 +7254,10 @@ export declare const EventDocument: z.ZodObject<{
6394
7254
  option: string;
6395
7255
  filename: string;
6396
7256
  originalFilename: string;
6397
- }[] | undefined>;
6398
- createdAtLocation: string;
7257
+ }[] | [string, string] | null | undefined>;
6399
7258
  assignedTo: string;
7259
+ createdBySignature?: string | null | undefined;
7260
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6400
7261
  annotation?: Record<string, string | number | boolean | {
6401
7262
  type: string;
6402
7263
  filename: string;
@@ -6412,6 +7273,10 @@ export declare const EventDocument: z.ZodObject<{
6412
7273
  residentialArea?: string | null | undefined;
6413
7274
  street?: string | null | undefined;
6414
7275
  zipCode?: string | null | undefined;
7276
+ } | {
7277
+ firstname: string;
7278
+ surname: string;
7279
+ middlename?: string | null | undefined;
6415
7280
  } | {
6416
7281
  country: string;
6417
7282
  district: string;
@@ -6434,14 +7299,17 @@ export declare const EventDocument: z.ZodObject<{
6434
7299
  option: string;
6435
7300
  filename: string;
6436
7301
  originalFilename: string;
6437
- }[] | undefined> | undefined;
6438
- originalActionId?: string | undefined;
7302
+ }[] | [string, string] | null | undefined> | null | undefined;
7303
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6439
7304
  } | {
6440
7305
  type: "UNASSIGN";
6441
- id: string;
7306
+ id: string & z.BRAND<"UUID">;
6442
7307
  status: "Rejected" | "Requested" | "Accepted";
7308
+ transactionId: string;
7309
+ createdByUserType: "system" | "user";
6443
7310
  createdAt: string;
6444
7311
  createdBy: string;
7312
+ createdByRole: string;
6445
7313
  declaration: Record<string, string | number | boolean | {
6446
7314
  type: string;
6447
7315
  filename: string;
@@ -6457,6 +7325,10 @@ export declare const EventDocument: z.ZodObject<{
6457
7325
  residentialArea?: string | null | undefined;
6458
7326
  street?: string | null | undefined;
6459
7327
  zipCode?: string | null | undefined;
7328
+ } | {
7329
+ firstname: string;
7330
+ surname: string;
7331
+ middlename?: string | null | undefined;
6460
7332
  } | {
6461
7333
  country: string;
6462
7334
  district: string;
@@ -6479,9 +7351,9 @@ export declare const EventDocument: z.ZodObject<{
6479
7351
  option: string;
6480
7352
  filename: string;
6481
7353
  originalFilename: string;
6482
- }[] | undefined>;
6483
- createdAtLocation: string;
6484
- assignedTo: null;
7354
+ }[] | [string, string] | null | undefined>;
7355
+ createdBySignature?: string | null | undefined;
7356
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6485
7357
  annotation?: Record<string, string | number | boolean | {
6486
7358
  type: string;
6487
7359
  filename: string;
@@ -6497,6 +7369,10 @@ export declare const EventDocument: z.ZodObject<{
6497
7369
  residentialArea?: string | null | undefined;
6498
7370
  street?: string | null | undefined;
6499
7371
  zipCode?: string | null | undefined;
7372
+ } | {
7373
+ firstname: string;
7374
+ surname: string;
7375
+ middlename?: string | null | undefined;
6500
7376
  } | {
6501
7377
  country: string;
6502
7378
  district: string;
@@ -6519,14 +7395,17 @@ export declare const EventDocument: z.ZodObject<{
6519
7395
  option: string;
6520
7396
  filename: string;
6521
7397
  originalFilename: string;
6522
- }[] | undefined> | undefined;
6523
- originalActionId?: string | undefined;
7398
+ }[] | [string, string] | null | undefined> | null | undefined;
7399
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6524
7400
  } | {
6525
7401
  type: "REGISTER";
6526
- id: string;
7402
+ id: string & z.BRAND<"UUID">;
6527
7403
  status: "Rejected" | "Requested" | "Accepted";
7404
+ transactionId: string;
7405
+ createdByUserType: "system" | "user";
6528
7406
  createdAt: string;
6529
7407
  createdBy: string;
7408
+ createdByRole: string;
6530
7409
  declaration: Record<string, string | number | boolean | {
6531
7410
  type: string;
6532
7411
  filename: string;
@@ -6542,6 +7421,10 @@ export declare const EventDocument: z.ZodObject<{
6542
7421
  residentialArea?: string | null | undefined;
6543
7422
  street?: string | null | undefined;
6544
7423
  zipCode?: string | null | undefined;
7424
+ } | {
7425
+ firstname: string;
7426
+ surname: string;
7427
+ middlename?: string | null | undefined;
6545
7428
  } | {
6546
7429
  country: string;
6547
7430
  district: string;
@@ -6564,8 +7447,9 @@ export declare const EventDocument: z.ZodObject<{
6564
7447
  option: string;
6565
7448
  filename: string;
6566
7449
  originalFilename: string;
6567
- }[] | undefined>;
6568
- createdAtLocation: string;
7450
+ }[] | [string, string] | null | undefined>;
7451
+ createdBySignature?: string | null | undefined;
7452
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6569
7453
  annotation?: Record<string, string | number | boolean | {
6570
7454
  type: string;
6571
7455
  filename: string;
@@ -6581,6 +7465,10 @@ export declare const EventDocument: z.ZodObject<{
6581
7465
  residentialArea?: string | null | undefined;
6582
7466
  street?: string | null | undefined;
6583
7467
  zipCode?: string | null | undefined;
7468
+ } | {
7469
+ firstname: string;
7470
+ surname: string;
7471
+ middlename?: string | null | undefined;
6584
7472
  } | {
6585
7473
  country: string;
6586
7474
  district: string;
@@ -6603,15 +7491,18 @@ export declare const EventDocument: z.ZodObject<{
6603
7491
  option: string;
6604
7492
  filename: string;
6605
7493
  originalFilename: string;
6606
- }[] | undefined> | undefined;
6607
- originalActionId?: string | undefined;
7494
+ }[] | [string, string] | null | undefined> | null | undefined;
7495
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6608
7496
  registrationNumber?: string | undefined;
6609
7497
  } | {
6610
7498
  type: "DECLARE";
6611
- id: string;
7499
+ id: string & z.BRAND<"UUID">;
6612
7500
  status: "Rejected" | "Requested" | "Accepted";
7501
+ transactionId: string;
7502
+ createdByUserType: "system" | "user";
6613
7503
  createdAt: string;
6614
7504
  createdBy: string;
7505
+ createdByRole: string;
6615
7506
  declaration: Record<string, string | number | boolean | {
6616
7507
  type: string;
6617
7508
  filename: string;
@@ -6627,6 +7518,10 @@ export declare const EventDocument: z.ZodObject<{
6627
7518
  residentialArea?: string | null | undefined;
6628
7519
  street?: string | null | undefined;
6629
7520
  zipCode?: string | null | undefined;
7521
+ } | {
7522
+ firstname: string;
7523
+ surname: string;
7524
+ middlename?: string | null | undefined;
6630
7525
  } | {
6631
7526
  country: string;
6632
7527
  district: string;
@@ -6649,8 +7544,9 @@ export declare const EventDocument: z.ZodObject<{
6649
7544
  option: string;
6650
7545
  filename: string;
6651
7546
  originalFilename: string;
6652
- }[] | undefined>;
6653
- createdAtLocation: string;
7547
+ }[] | [string, string] | null | undefined>;
7548
+ createdBySignature?: string | null | undefined;
7549
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6654
7550
  annotation?: Record<string, string | number | boolean | {
6655
7551
  type: string;
6656
7552
  filename: string;
@@ -6666,6 +7562,10 @@ export declare const EventDocument: z.ZodObject<{
6666
7562
  residentialArea?: string | null | undefined;
6667
7563
  street?: string | null | undefined;
6668
7564
  zipCode?: string | null | undefined;
7565
+ } | {
7566
+ firstname: string;
7567
+ surname: string;
7568
+ middlename?: string | null | undefined;
6669
7569
  } | {
6670
7570
  country: string;
6671
7571
  district: string;
@@ -6688,14 +7588,17 @@ export declare const EventDocument: z.ZodObject<{
6688
7588
  option: string;
6689
7589
  filename: string;
6690
7590
  originalFilename: string;
6691
- }[] | undefined> | undefined;
6692
- originalActionId?: string | undefined;
7591
+ }[] | [string, string] | null | undefined> | null | undefined;
7592
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6693
7593
  } | {
6694
7594
  type: "VALIDATE";
6695
- id: string;
7595
+ id: string & z.BRAND<"UUID">;
6696
7596
  status: "Rejected" | "Requested" | "Accepted";
7597
+ transactionId: string;
7598
+ createdByUserType: "system" | "user";
6697
7599
  createdAt: string;
6698
7600
  createdBy: string;
7601
+ createdByRole: string;
6699
7602
  declaration: Record<string, string | number | boolean | {
6700
7603
  type: string;
6701
7604
  filename: string;
@@ -6711,6 +7614,10 @@ export declare const EventDocument: z.ZodObject<{
6711
7614
  residentialArea?: string | null | undefined;
6712
7615
  street?: string | null | undefined;
6713
7616
  zipCode?: string | null | undefined;
7617
+ } | {
7618
+ firstname: string;
7619
+ surname: string;
7620
+ middlename?: string | null | undefined;
6714
7621
  } | {
6715
7622
  country: string;
6716
7623
  district: string;
@@ -6733,8 +7640,9 @@ export declare const EventDocument: z.ZodObject<{
6733
7640
  option: string;
6734
7641
  filename: string;
6735
7642
  originalFilename: string;
6736
- }[] | undefined>;
6737
- createdAtLocation: string;
7643
+ }[] | [string, string] | null | undefined>;
7644
+ createdBySignature?: string | null | undefined;
7645
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6738
7646
  annotation?: Record<string, string | number | boolean | {
6739
7647
  type: string;
6740
7648
  filename: string;
@@ -6750,6 +7658,10 @@ export declare const EventDocument: z.ZodObject<{
6750
7658
  residentialArea?: string | null | undefined;
6751
7659
  street?: string | null | undefined;
6752
7660
  zipCode?: string | null | undefined;
7661
+ } | {
7662
+ firstname: string;
7663
+ surname: string;
7664
+ middlename?: string | null | undefined;
6753
7665
  } | {
6754
7666
  country: string;
6755
7667
  district: string;
@@ -6772,14 +7684,21 @@ export declare const EventDocument: z.ZodObject<{
6772
7684
  option: string;
6773
7685
  filename: string;
6774
7686
  originalFilename: string;
6775
- }[] | undefined> | undefined;
6776
- originalActionId?: string | undefined;
7687
+ }[] | [string, string] | null | undefined> | null | undefined;
7688
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6777
7689
  } | {
6778
7690
  type: "REJECT";
6779
- id: string;
7691
+ id: string & z.BRAND<"UUID">;
6780
7692
  status: "Rejected" | "Requested" | "Accepted";
7693
+ reason: {
7694
+ message: string;
7695
+ isDuplicate?: boolean | undefined;
7696
+ };
7697
+ transactionId: string;
7698
+ createdByUserType: "system" | "user";
6781
7699
  createdAt: string;
6782
7700
  createdBy: string;
7701
+ createdByRole: string;
6783
7702
  declaration: Record<string, string | number | boolean | {
6784
7703
  type: string;
6785
7704
  filename: string;
@@ -6795,6 +7714,10 @@ export declare const EventDocument: z.ZodObject<{
6795
7714
  residentialArea?: string | null | undefined;
6796
7715
  street?: string | null | undefined;
6797
7716
  zipCode?: string | null | undefined;
7717
+ } | {
7718
+ firstname: string;
7719
+ surname: string;
7720
+ middlename?: string | null | undefined;
6798
7721
  } | {
6799
7722
  country: string;
6800
7723
  district: string;
@@ -6817,8 +7740,9 @@ export declare const EventDocument: z.ZodObject<{
6817
7740
  option: string;
6818
7741
  filename: string;
6819
7742
  originalFilename: string;
6820
- }[] | undefined>;
6821
- createdAtLocation: string;
7743
+ }[] | [string, string] | null | undefined>;
7744
+ createdBySignature?: string | null | undefined;
7745
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6822
7746
  annotation?: Record<string, string | number | boolean | {
6823
7747
  type: string;
6824
7748
  filename: string;
@@ -6834,6 +7758,10 @@ export declare const EventDocument: z.ZodObject<{
6834
7758
  residentialArea?: string | null | undefined;
6835
7759
  street?: string | null | undefined;
6836
7760
  zipCode?: string | null | undefined;
7761
+ } | {
7762
+ firstname: string;
7763
+ surname: string;
7764
+ middlename?: string | null | undefined;
6837
7765
  } | {
6838
7766
  country: string;
6839
7767
  district: string;
@@ -6856,14 +7784,17 @@ export declare const EventDocument: z.ZodObject<{
6856
7784
  option: string;
6857
7785
  filename: string;
6858
7786
  originalFilename: string;
6859
- }[] | undefined> | undefined;
6860
- originalActionId?: string | undefined;
7787
+ }[] | [string, string] | null | undefined> | null | undefined;
7788
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6861
7789
  } | {
6862
7790
  type: "MARKED_AS_DUPLICATE";
6863
- id: string;
7791
+ id: string & z.BRAND<"UUID">;
6864
7792
  status: "Rejected" | "Requested" | "Accepted";
7793
+ transactionId: string;
7794
+ createdByUserType: "system" | "user";
6865
7795
  createdAt: string;
6866
7796
  createdBy: string;
7797
+ createdByRole: string;
6867
7798
  declaration: Record<string, string | number | boolean | {
6868
7799
  type: string;
6869
7800
  filename: string;
@@ -6879,6 +7810,10 @@ export declare const EventDocument: z.ZodObject<{
6879
7810
  residentialArea?: string | null | undefined;
6880
7811
  street?: string | null | undefined;
6881
7812
  zipCode?: string | null | undefined;
7813
+ } | {
7814
+ firstname: string;
7815
+ surname: string;
7816
+ middlename?: string | null | undefined;
6882
7817
  } | {
6883
7818
  country: string;
6884
7819
  district: string;
@@ -6901,8 +7836,9 @@ export declare const EventDocument: z.ZodObject<{
6901
7836
  option: string;
6902
7837
  filename: string;
6903
7838
  originalFilename: string;
6904
- }[] | undefined>;
6905
- createdAtLocation: string;
7839
+ }[] | [string, string] | null | undefined>;
7840
+ createdBySignature?: string | null | undefined;
7841
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6906
7842
  annotation?: Record<string, string | number | boolean | {
6907
7843
  type: string;
6908
7844
  filename: string;
@@ -6918,6 +7854,10 @@ export declare const EventDocument: z.ZodObject<{
6918
7854
  residentialArea?: string | null | undefined;
6919
7855
  street?: string | null | undefined;
6920
7856
  zipCode?: string | null | undefined;
7857
+ } | {
7858
+ firstname: string;
7859
+ surname: string;
7860
+ middlename?: string | null | undefined;
6921
7861
  } | {
6922
7862
  country: string;
6923
7863
  district: string;
@@ -6940,14 +7880,21 @@ export declare const EventDocument: z.ZodObject<{
6940
7880
  option: string;
6941
7881
  filename: string;
6942
7882
  originalFilename: string;
6943
- }[] | undefined> | undefined;
6944
- originalActionId?: string | undefined;
7883
+ }[] | [string, string] | null | undefined> | null | undefined;
7884
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6945
7885
  } | {
6946
7886
  type: "ARCHIVE";
6947
- id: string;
7887
+ id: string & z.BRAND<"UUID">;
6948
7888
  status: "Rejected" | "Requested" | "Accepted";
7889
+ reason: {
7890
+ message: string;
7891
+ isDuplicate?: boolean | undefined;
7892
+ };
7893
+ transactionId: string;
7894
+ createdByUserType: "system" | "user";
6949
7895
  createdAt: string;
6950
7896
  createdBy: string;
7897
+ createdByRole: string;
6951
7898
  declaration: Record<string, string | number | boolean | {
6952
7899
  type: string;
6953
7900
  filename: string;
@@ -6963,6 +7910,10 @@ export declare const EventDocument: z.ZodObject<{
6963
7910
  residentialArea?: string | null | undefined;
6964
7911
  street?: string | null | undefined;
6965
7912
  zipCode?: string | null | undefined;
7913
+ } | {
7914
+ firstname: string;
7915
+ surname: string;
7916
+ middlename?: string | null | undefined;
6966
7917
  } | {
6967
7918
  country: string;
6968
7919
  district: string;
@@ -6985,8 +7936,9 @@ export declare const EventDocument: z.ZodObject<{
6985
7936
  option: string;
6986
7937
  filename: string;
6987
7938
  originalFilename: string;
6988
- }[] | undefined>;
6989
- createdAtLocation: string;
7939
+ }[] | [string, string] | null | undefined>;
7940
+ createdBySignature?: string | null | undefined;
7941
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6990
7942
  annotation?: Record<string, string | number | boolean | {
6991
7943
  type: string;
6992
7944
  filename: string;
@@ -7002,6 +7954,10 @@ export declare const EventDocument: z.ZodObject<{
7002
7954
  residentialArea?: string | null | undefined;
7003
7955
  street?: string | null | undefined;
7004
7956
  zipCode?: string | null | undefined;
7957
+ } | {
7958
+ firstname: string;
7959
+ surname: string;
7960
+ middlename?: string | null | undefined;
7005
7961
  } | {
7006
7962
  country: string;
7007
7963
  district: string;
@@ -7024,14 +7980,17 @@ export declare const EventDocument: z.ZodObject<{
7024
7980
  option: string;
7025
7981
  filename: string;
7026
7982
  originalFilename: string;
7027
- }[] | undefined> | undefined;
7028
- originalActionId?: string | undefined;
7983
+ }[] | [string, string] | null | undefined> | null | undefined;
7984
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7029
7985
  } | {
7030
7986
  type: "CREATE";
7031
- id: string;
7987
+ id: string & z.BRAND<"UUID">;
7032
7988
  status: "Rejected" | "Requested" | "Accepted";
7989
+ transactionId: string;
7990
+ createdByUserType: "system" | "user";
7033
7991
  createdAt: string;
7034
7992
  createdBy: string;
7993
+ createdByRole: string;
7035
7994
  declaration: Record<string, string | number | boolean | {
7036
7995
  type: string;
7037
7996
  filename: string;
@@ -7047,6 +8006,10 @@ export declare const EventDocument: z.ZodObject<{
7047
8006
  residentialArea?: string | null | undefined;
7048
8007
  street?: string | null | undefined;
7049
8008
  zipCode?: string | null | undefined;
8009
+ } | {
8010
+ firstname: string;
8011
+ surname: string;
8012
+ middlename?: string | null | undefined;
7050
8013
  } | {
7051
8014
  country: string;
7052
8015
  district: string;
@@ -7069,8 +8032,9 @@ export declare const EventDocument: z.ZodObject<{
7069
8032
  option: string;
7070
8033
  filename: string;
7071
8034
  originalFilename: string;
7072
- }[] | undefined>;
7073
- createdAtLocation: string;
8035
+ }[] | [string, string] | null | undefined>;
8036
+ createdBySignature?: string | null | undefined;
8037
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7074
8038
  annotation?: Record<string, string | number | boolean | {
7075
8039
  type: string;
7076
8040
  filename: string;
@@ -7086,6 +8050,10 @@ export declare const EventDocument: z.ZodObject<{
7086
8050
  residentialArea?: string | null | undefined;
7087
8051
  street?: string | null | undefined;
7088
8052
  zipCode?: string | null | undefined;
8053
+ } | {
8054
+ firstname: string;
8055
+ surname: string;
8056
+ middlename?: string | null | undefined;
7089
8057
  } | {
7090
8058
  country: string;
7091
8059
  district: string;
@@ -7108,14 +8076,17 @@ export declare const EventDocument: z.ZodObject<{
7108
8076
  option: string;
7109
8077
  filename: string;
7110
8078
  originalFilename: string;
7111
- }[] | undefined> | undefined;
7112
- originalActionId?: string | undefined;
8079
+ }[] | [string, string] | null | undefined> | null | undefined;
8080
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7113
8081
  } | {
7114
8082
  type: "NOTIFY";
7115
- id: string;
8083
+ id: string & z.BRAND<"UUID">;
7116
8084
  status: "Rejected" | "Requested" | "Accepted";
8085
+ transactionId: string;
8086
+ createdByUserType: "system" | "user";
7117
8087
  createdAt: string;
7118
8088
  createdBy: string;
8089
+ createdByRole: string;
7119
8090
  declaration: Record<string, string | number | boolean | {
7120
8091
  type: string;
7121
8092
  filename: string;
@@ -7131,6 +8102,10 @@ export declare const EventDocument: z.ZodObject<{
7131
8102
  residentialArea?: string | null | undefined;
7132
8103
  street?: string | null | undefined;
7133
8104
  zipCode?: string | null | undefined;
8105
+ } | {
8106
+ firstname: string;
8107
+ surname: string;
8108
+ middlename?: string | null | undefined;
7134
8109
  } | {
7135
8110
  country: string;
7136
8111
  district: string;
@@ -7153,8 +8128,9 @@ export declare const EventDocument: z.ZodObject<{
7153
8128
  option: string;
7154
8129
  filename: string;
7155
8130
  originalFilename: string;
7156
- }[] | undefined>;
7157
- createdAtLocation: string;
8131
+ }[] | [string, string] | null | undefined>;
8132
+ createdBySignature?: string | null | undefined;
8133
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7158
8134
  annotation?: Record<string, string | number | boolean | {
7159
8135
  type: string;
7160
8136
  filename: string;
@@ -7170,6 +8146,10 @@ export declare const EventDocument: z.ZodObject<{
7170
8146
  residentialArea?: string | null | undefined;
7171
8147
  street?: string | null | undefined;
7172
8148
  zipCode?: string | null | undefined;
8149
+ } | {
8150
+ firstname: string;
8151
+ surname: string;
8152
+ middlename?: string | null | undefined;
7173
8153
  } | {
7174
8154
  country: string;
7175
8155
  district: string;
@@ -7192,14 +8172,17 @@ export declare const EventDocument: z.ZodObject<{
7192
8172
  option: string;
7193
8173
  filename: string;
7194
8174
  originalFilename: string;
7195
- }[] | undefined> | undefined;
7196
- originalActionId?: string | undefined;
8175
+ }[] | [string, string] | null | undefined> | null | undefined;
8176
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7197
8177
  } | {
7198
8178
  type: "PRINT_CERTIFICATE";
7199
- id: string;
8179
+ id: string & z.BRAND<"UUID">;
7200
8180
  status: "Rejected" | "Requested" | "Accepted";
8181
+ transactionId: string;
8182
+ createdByUserType: "system" | "user";
7201
8183
  createdAt: string;
7202
8184
  createdBy: string;
8185
+ createdByRole: string;
7203
8186
  declaration: Record<string, string | number | boolean | {
7204
8187
  type: string;
7205
8188
  filename: string;
@@ -7215,6 +8198,10 @@ export declare const EventDocument: z.ZodObject<{
7215
8198
  residentialArea?: string | null | undefined;
7216
8199
  street?: string | null | undefined;
7217
8200
  zipCode?: string | null | undefined;
8201
+ } | {
8202
+ firstname: string;
8203
+ surname: string;
8204
+ middlename?: string | null | undefined;
7218
8205
  } | {
7219
8206
  country: string;
7220
8207
  district: string;
@@ -7237,8 +8224,9 @@ export declare const EventDocument: z.ZodObject<{
7237
8224
  option: string;
7238
8225
  filename: string;
7239
8226
  originalFilename: string;
7240
- }[] | undefined>;
7241
- createdAtLocation: string;
8227
+ }[] | [string, string] | null | undefined>;
8228
+ createdBySignature?: string | null | undefined;
8229
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7242
8230
  annotation?: Record<string, string | number | boolean | {
7243
8231
  type: string;
7244
8232
  filename: string;
@@ -7254,6 +8242,10 @@ export declare const EventDocument: z.ZodObject<{
7254
8242
  residentialArea?: string | null | undefined;
7255
8243
  street?: string | null | undefined;
7256
8244
  zipCode?: string | null | undefined;
8245
+ } | {
8246
+ firstname: string;
8247
+ surname: string;
8248
+ middlename?: string | null | undefined;
7257
8249
  } | {
7258
8250
  country: string;
7259
8251
  district: string;
@@ -7276,14 +8268,17 @@ export declare const EventDocument: z.ZodObject<{
7276
8268
  option: string;
7277
8269
  filename: string;
7278
8270
  originalFilename: string;
7279
- }[] | undefined> | undefined;
7280
- originalActionId?: string | undefined;
8271
+ }[] | [string, string] | null | undefined> | null | undefined;
8272
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7281
8273
  } | {
7282
8274
  type: "REQUEST_CORRECTION";
7283
- id: string;
8275
+ id: string & z.BRAND<"UUID">;
7284
8276
  status: "Rejected" | "Requested" | "Accepted";
8277
+ transactionId: string;
8278
+ createdByUserType: "system" | "user";
7285
8279
  createdAt: string;
7286
8280
  createdBy: string;
8281
+ createdByRole: string;
7287
8282
  declaration: Record<string, string | number | boolean | {
7288
8283
  type: string;
7289
8284
  filename: string;
@@ -7299,6 +8294,10 @@ export declare const EventDocument: z.ZodObject<{
7299
8294
  residentialArea?: string | null | undefined;
7300
8295
  street?: string | null | undefined;
7301
8296
  zipCode?: string | null | undefined;
8297
+ } | {
8298
+ firstname: string;
8299
+ surname: string;
8300
+ middlename?: string | null | undefined;
7302
8301
  } | {
7303
8302
  country: string;
7304
8303
  district: string;
@@ -7321,8 +8320,9 @@ export declare const EventDocument: z.ZodObject<{
7321
8320
  option: string;
7322
8321
  filename: string;
7323
8322
  originalFilename: string;
7324
- }[] | undefined>;
7325
- createdAtLocation: string;
8323
+ }[] | [string, string] | null | undefined>;
8324
+ createdBySignature?: string | null | undefined;
8325
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7326
8326
  annotation?: Record<string, string | number | boolean | {
7327
8327
  type: string;
7328
8328
  filename: string;
@@ -7338,6 +8338,10 @@ export declare const EventDocument: z.ZodObject<{
7338
8338
  residentialArea?: string | null | undefined;
7339
8339
  street?: string | null | undefined;
7340
8340
  zipCode?: string | null | undefined;
8341
+ } | {
8342
+ firstname: string;
8343
+ surname: string;
8344
+ middlename?: string | null | undefined;
7341
8345
  } | {
7342
8346
  country: string;
7343
8347
  district: string;
@@ -7360,14 +8364,17 @@ export declare const EventDocument: z.ZodObject<{
7360
8364
  option: string;
7361
8365
  filename: string;
7362
8366
  originalFilename: string;
7363
- }[] | undefined> | undefined;
7364
- originalActionId?: string | undefined;
8367
+ }[] | [string, string] | null | undefined> | null | undefined;
8368
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7365
8369
  } | {
7366
8370
  type: "APPROVE_CORRECTION";
7367
- id: string;
8371
+ id: string & z.BRAND<"UUID">;
7368
8372
  status: "Rejected" | "Requested" | "Accepted";
8373
+ transactionId: string;
8374
+ createdByUserType: "system" | "user";
7369
8375
  createdAt: string;
7370
8376
  createdBy: string;
8377
+ createdByRole: string;
7371
8378
  declaration: Record<string, string | number | boolean | {
7372
8379
  type: string;
7373
8380
  filename: string;
@@ -7383,6 +8390,10 @@ export declare const EventDocument: z.ZodObject<{
7383
8390
  residentialArea?: string | null | undefined;
7384
8391
  street?: string | null | undefined;
7385
8392
  zipCode?: string | null | undefined;
8393
+ } | {
8394
+ firstname: string;
8395
+ surname: string;
8396
+ middlename?: string | null | undefined;
7386
8397
  } | {
7387
8398
  country: string;
7388
8399
  district: string;
@@ -7405,9 +8416,10 @@ export declare const EventDocument: z.ZodObject<{
7405
8416
  option: string;
7406
8417
  filename: string;
7407
8418
  originalFilename: string;
7408
- }[] | undefined>;
7409
- createdAtLocation: string;
8419
+ }[] | [string, string] | null | undefined>;
7410
8420
  requestId: string;
8421
+ createdBySignature?: string | null | undefined;
8422
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7411
8423
  annotation?: Record<string, string | number | boolean | {
7412
8424
  type: string;
7413
8425
  filename: string;
@@ -7423,6 +8435,10 @@ export declare const EventDocument: z.ZodObject<{
7423
8435
  residentialArea?: string | null | undefined;
7424
8436
  street?: string | null | undefined;
7425
8437
  zipCode?: string | null | undefined;
8438
+ } | {
8439
+ firstname: string;
8440
+ surname: string;
8441
+ middlename?: string | null | undefined;
7426
8442
  } | {
7427
8443
  country: string;
7428
8444
  district: string;
@@ -7445,14 +8461,17 @@ export declare const EventDocument: z.ZodObject<{
7445
8461
  option: string;
7446
8462
  filename: string;
7447
8463
  originalFilename: string;
7448
- }[] | undefined> | undefined;
7449
- originalActionId?: string | undefined;
8464
+ }[] | [string, string] | null | undefined> | null | undefined;
8465
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7450
8466
  } | {
7451
8467
  type: "REJECT_CORRECTION";
7452
- id: string;
8468
+ id: string & z.BRAND<"UUID">;
7453
8469
  status: "Rejected" | "Requested" | "Accepted";
8470
+ transactionId: string;
8471
+ createdByUserType: "system" | "user";
7454
8472
  createdAt: string;
7455
8473
  createdBy: string;
8474
+ createdByRole: string;
7456
8475
  declaration: Record<string, string | number | boolean | {
7457
8476
  type: string;
7458
8477
  filename: string;
@@ -7468,6 +8487,10 @@ export declare const EventDocument: z.ZodObject<{
7468
8487
  residentialArea?: string | null | undefined;
7469
8488
  street?: string | null | undefined;
7470
8489
  zipCode?: string | null | undefined;
8490
+ } | {
8491
+ firstname: string;
8492
+ surname: string;
8493
+ middlename?: string | null | undefined;
7471
8494
  } | {
7472
8495
  country: string;
7473
8496
  district: string;
@@ -7490,9 +8513,10 @@ export declare const EventDocument: z.ZodObject<{
7490
8513
  option: string;
7491
8514
  filename: string;
7492
8515
  originalFilename: string;
7493
- }[] | undefined>;
7494
- createdAtLocation: string;
8516
+ }[] | [string, string] | null | undefined>;
7495
8517
  requestId: string;
8518
+ createdBySignature?: string | null | undefined;
8519
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7496
8520
  annotation?: Record<string, string | number | boolean | {
7497
8521
  type: string;
7498
8522
  filename: string;
@@ -7508,6 +8532,10 @@ export declare const EventDocument: z.ZodObject<{
7508
8532
  residentialArea?: string | null | undefined;
7509
8533
  street?: string | null | undefined;
7510
8534
  zipCode?: string | null | undefined;
8535
+ } | {
8536
+ firstname: string;
8537
+ surname: string;
8538
+ middlename?: string | null | undefined;
7511
8539
  } | {
7512
8540
  country: string;
7513
8541
  district: string;
@@ -7530,14 +8558,17 @@ export declare const EventDocument: z.ZodObject<{
7530
8558
  option: string;
7531
8559
  filename: string;
7532
8560
  originalFilename: string;
7533
- }[] | undefined> | undefined;
7534
- originalActionId?: string | undefined;
8561
+ }[] | [string, string] | null | undefined> | null | undefined;
8562
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7535
8563
  } | {
7536
8564
  type: "READ";
7537
- id: string;
8565
+ id: string & z.BRAND<"UUID">;
7538
8566
  status: "Rejected" | "Requested" | "Accepted";
8567
+ transactionId: string;
8568
+ createdByUserType: "system" | "user";
7539
8569
  createdAt: string;
7540
8570
  createdBy: string;
8571
+ createdByRole: string;
7541
8572
  declaration: Record<string, string | number | boolean | {
7542
8573
  type: string;
7543
8574
  filename: string;
@@ -7553,6 +8584,10 @@ export declare const EventDocument: z.ZodObject<{
7553
8584
  residentialArea?: string | null | undefined;
7554
8585
  street?: string | null | undefined;
7555
8586
  zipCode?: string | null | undefined;
8587
+ } | {
8588
+ firstname: string;
8589
+ surname: string;
8590
+ middlename?: string | null | undefined;
7556
8591
  } | {
7557
8592
  country: string;
7558
8593
  district: string;
@@ -7575,8 +8610,9 @@ export declare const EventDocument: z.ZodObject<{
7575
8610
  option: string;
7576
8611
  filename: string;
7577
8612
  originalFilename: string;
7578
- }[] | undefined>;
7579
- createdAtLocation: string;
8613
+ }[] | [string, string] | null | undefined>;
8614
+ createdBySignature?: string | null | undefined;
8615
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7580
8616
  annotation?: Record<string, string | number | boolean | {
7581
8617
  type: string;
7582
8618
  filename: string;
@@ -7592,6 +8628,10 @@ export declare const EventDocument: z.ZodObject<{
7592
8628
  residentialArea?: string | null | undefined;
7593
8629
  street?: string | null | undefined;
7594
8630
  zipCode?: string | null | undefined;
8631
+ } | {
8632
+ firstname: string;
8633
+ surname: string;
8634
+ middlename?: string | null | undefined;
7595
8635
  } | {
7596
8636
  country: string;
7597
8637
  district: string;
@@ -7614,14 +8654,20 @@ export declare const EventDocument: z.ZodObject<{
7614
8654
  option: string;
7615
8655
  filename: string;
7616
8656
  originalFilename: string;
7617
- }[] | undefined> | undefined;
7618
- originalActionId?: string | undefined;
8657
+ }[] | [string, string] | null | undefined> | null | undefined;
8658
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7619
8659
  } | {
7620
8660
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7621
- id: string;
8661
+ id: string & z.BRAND<"UUID">;
7622
8662
  status: "Rejected";
8663
+ transactionId: string;
8664
+ createdByUserType: "system" | "user";
7623
8665
  createdAt: string;
7624
- 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;
7625
8671
  })[];
7626
8672
  trackingId: string;
7627
8673
  }, {
@@ -7633,8 +8679,11 @@ export declare const EventDocument: z.ZodObject<{
7633
8679
  type: "ASSIGN";
7634
8680
  id: string;
7635
8681
  status: "Rejected" | "Requested" | "Accepted";
8682
+ transactionId: string;
8683
+ createdByUserType: "system" | "user";
7636
8684
  createdAt: string;
7637
8685
  createdBy: string;
8686
+ createdByRole: string;
7638
8687
  declaration: Record<string, string | number | boolean | {
7639
8688
  type: string;
7640
8689
  filename: string;
@@ -7650,6 +8699,10 @@ export declare const EventDocument: z.ZodObject<{
7650
8699
  residentialArea?: string | null | undefined;
7651
8700
  street?: string | null | undefined;
7652
8701
  zipCode?: string | null | undefined;
8702
+ } | {
8703
+ firstname: string;
8704
+ surname: string;
8705
+ middlename?: string | null | undefined;
7653
8706
  } | {
7654
8707
  country: string;
7655
8708
  district: string;
@@ -7672,9 +8725,10 @@ export declare const EventDocument: z.ZodObject<{
7672
8725
  option: string;
7673
8726
  filename: string;
7674
8727
  originalFilename: string;
7675
- }[] | undefined>;
7676
- createdAtLocation: string;
8728
+ }[] | [string, string] | null | undefined>;
7677
8729
  assignedTo: string;
8730
+ createdBySignature?: string | null | undefined;
8731
+ createdAtLocation?: string | null | undefined;
7678
8732
  annotation?: Record<string, string | number | boolean | {
7679
8733
  type: string;
7680
8734
  filename: string;
@@ -7690,6 +8744,10 @@ export declare const EventDocument: z.ZodObject<{
7690
8744
  residentialArea?: string | null | undefined;
7691
8745
  street?: string | null | undefined;
7692
8746
  zipCode?: string | null | undefined;
8747
+ } | {
8748
+ firstname: string;
8749
+ surname: string;
8750
+ middlename?: string | null | undefined;
7693
8751
  } | {
7694
8752
  country: string;
7695
8753
  district: string;
@@ -7712,14 +8770,17 @@ export declare const EventDocument: z.ZodObject<{
7712
8770
  option: string;
7713
8771
  filename: string;
7714
8772
  originalFilename: string;
7715
- }[] | undefined> | undefined;
7716
- originalActionId?: string | undefined;
8773
+ }[] | [string, string] | null | undefined> | null | undefined;
8774
+ originalActionId?: string | null | undefined;
7717
8775
  } | {
7718
8776
  type: "UNASSIGN";
7719
8777
  id: string;
7720
8778
  status: "Rejected" | "Requested" | "Accepted";
8779
+ transactionId: string;
8780
+ createdByUserType: "system" | "user";
7721
8781
  createdAt: string;
7722
8782
  createdBy: string;
8783
+ createdByRole: string;
7723
8784
  declaration: Record<string, string | number | boolean | {
7724
8785
  type: string;
7725
8786
  filename: string;
@@ -7735,6 +8796,10 @@ export declare const EventDocument: z.ZodObject<{
7735
8796
  residentialArea?: string | null | undefined;
7736
8797
  street?: string | null | undefined;
7737
8798
  zipCode?: string | null | undefined;
8799
+ } | {
8800
+ firstname: string;
8801
+ surname: string;
8802
+ middlename?: string | null | undefined;
7738
8803
  } | {
7739
8804
  country: string;
7740
8805
  district: string;
@@ -7757,8 +8822,9 @@ export declare const EventDocument: z.ZodObject<{
7757
8822
  option: string;
7758
8823
  filename: string;
7759
8824
  originalFilename: string;
7760
- }[] | undefined>;
7761
- createdAtLocation: string;
8825
+ }[] | [string, string] | null | undefined>;
8826
+ createdBySignature?: string | null | undefined;
8827
+ createdAtLocation?: string | null | undefined;
7762
8828
  annotation?: Record<string, string | number | boolean | {
7763
8829
  type: string;
7764
8830
  filename: string;
@@ -7774,6 +8840,10 @@ export declare const EventDocument: z.ZodObject<{
7774
8840
  residentialArea?: string | null | undefined;
7775
8841
  street?: string | null | undefined;
7776
8842
  zipCode?: string | null | undefined;
8843
+ } | {
8844
+ firstname: string;
8845
+ surname: string;
8846
+ middlename?: string | null | undefined;
7777
8847
  } | {
7778
8848
  country: string;
7779
8849
  district: string;
@@ -7796,15 +8866,17 @@ export declare const EventDocument: z.ZodObject<{
7796
8866
  option: string;
7797
8867
  filename: string;
7798
8868
  originalFilename: string;
7799
- }[] | undefined> | undefined;
7800
- originalActionId?: string | undefined;
7801
- assignedTo?: null | undefined;
8869
+ }[] | [string, string] | null | undefined> | null | undefined;
8870
+ originalActionId?: string | null | undefined;
7802
8871
  } | {
7803
8872
  type: "REGISTER";
7804
8873
  id: string;
7805
8874
  status: "Rejected" | "Requested" | "Accepted";
8875
+ transactionId: string;
8876
+ createdByUserType: "system" | "user";
7806
8877
  createdAt: string;
7807
8878
  createdBy: string;
8879
+ createdByRole: string;
7808
8880
  declaration: Record<string, string | number | boolean | {
7809
8881
  type: string;
7810
8882
  filename: string;
@@ -7820,6 +8892,10 @@ export declare const EventDocument: z.ZodObject<{
7820
8892
  residentialArea?: string | null | undefined;
7821
8893
  street?: string | null | undefined;
7822
8894
  zipCode?: string | null | undefined;
8895
+ } | {
8896
+ firstname: string;
8897
+ surname: string;
8898
+ middlename?: string | null | undefined;
7823
8899
  } | {
7824
8900
  country: string;
7825
8901
  district: string;
@@ -7842,8 +8918,9 @@ export declare const EventDocument: z.ZodObject<{
7842
8918
  option: string;
7843
8919
  filename: string;
7844
8920
  originalFilename: string;
7845
- }[] | undefined>;
7846
- createdAtLocation: string;
8921
+ }[] | [string, string] | null | undefined>;
8922
+ createdBySignature?: string | null | undefined;
8923
+ createdAtLocation?: string | null | undefined;
7847
8924
  annotation?: Record<string, string | number | boolean | {
7848
8925
  type: string;
7849
8926
  filename: string;
@@ -7859,6 +8936,10 @@ export declare const EventDocument: z.ZodObject<{
7859
8936
  residentialArea?: string | null | undefined;
7860
8937
  street?: string | null | undefined;
7861
8938
  zipCode?: string | null | undefined;
8939
+ } | {
8940
+ firstname: string;
8941
+ surname: string;
8942
+ middlename?: string | null | undefined;
7862
8943
  } | {
7863
8944
  country: string;
7864
8945
  district: string;
@@ -7881,15 +8962,18 @@ export declare const EventDocument: z.ZodObject<{
7881
8962
  option: string;
7882
8963
  filename: string;
7883
8964
  originalFilename: string;
7884
- }[] | undefined> | undefined;
7885
- originalActionId?: string | undefined;
8965
+ }[] | [string, string] | null | undefined> | null | undefined;
8966
+ originalActionId?: string | null | undefined;
7886
8967
  registrationNumber?: string | undefined;
7887
8968
  } | {
7888
8969
  type: "DECLARE";
7889
8970
  id: string;
7890
8971
  status: "Rejected" | "Requested" | "Accepted";
8972
+ transactionId: string;
8973
+ createdByUserType: "system" | "user";
7891
8974
  createdAt: string;
7892
8975
  createdBy: string;
8976
+ createdByRole: string;
7893
8977
  declaration: Record<string, string | number | boolean | {
7894
8978
  type: string;
7895
8979
  filename: string;
@@ -7905,6 +8989,10 @@ export declare const EventDocument: z.ZodObject<{
7905
8989
  residentialArea?: string | null | undefined;
7906
8990
  street?: string | null | undefined;
7907
8991
  zipCode?: string | null | undefined;
8992
+ } | {
8993
+ firstname: string;
8994
+ surname: string;
8995
+ middlename?: string | null | undefined;
7908
8996
  } | {
7909
8997
  country: string;
7910
8998
  district: string;
@@ -7927,8 +9015,9 @@ export declare const EventDocument: z.ZodObject<{
7927
9015
  option: string;
7928
9016
  filename: string;
7929
9017
  originalFilename: string;
7930
- }[] | undefined>;
7931
- createdAtLocation: string;
9018
+ }[] | [string, string] | null | undefined>;
9019
+ createdBySignature?: string | null | undefined;
9020
+ createdAtLocation?: string | null | undefined;
7932
9021
  annotation?: Record<string, string | number | boolean | {
7933
9022
  type: string;
7934
9023
  filename: string;
@@ -7944,6 +9033,10 @@ export declare const EventDocument: z.ZodObject<{
7944
9033
  residentialArea?: string | null | undefined;
7945
9034
  street?: string | null | undefined;
7946
9035
  zipCode?: string | null | undefined;
9036
+ } | {
9037
+ firstname: string;
9038
+ surname: string;
9039
+ middlename?: string | null | undefined;
7947
9040
  } | {
7948
9041
  country: string;
7949
9042
  district: string;
@@ -7966,14 +9059,17 @@ export declare const EventDocument: z.ZodObject<{
7966
9059
  option: string;
7967
9060
  filename: string;
7968
9061
  originalFilename: string;
7969
- }[] | undefined> | undefined;
7970
- originalActionId?: string | undefined;
9062
+ }[] | [string, string] | null | undefined> | null | undefined;
9063
+ originalActionId?: string | null | undefined;
7971
9064
  } | {
7972
9065
  type: "VALIDATE";
7973
9066
  id: string;
7974
9067
  status: "Rejected" | "Requested" | "Accepted";
9068
+ transactionId: string;
9069
+ createdByUserType: "system" | "user";
7975
9070
  createdAt: string;
7976
9071
  createdBy: string;
9072
+ createdByRole: string;
7977
9073
  declaration: Record<string, string | number | boolean | {
7978
9074
  type: string;
7979
9075
  filename: string;
@@ -7989,6 +9085,10 @@ export declare const EventDocument: z.ZodObject<{
7989
9085
  residentialArea?: string | null | undefined;
7990
9086
  street?: string | null | undefined;
7991
9087
  zipCode?: string | null | undefined;
9088
+ } | {
9089
+ firstname: string;
9090
+ surname: string;
9091
+ middlename?: string | null | undefined;
7992
9092
  } | {
7993
9093
  country: string;
7994
9094
  district: string;
@@ -8011,8 +9111,9 @@ export declare const EventDocument: z.ZodObject<{
8011
9111
  option: string;
8012
9112
  filename: string;
8013
9113
  originalFilename: string;
8014
- }[] | undefined>;
8015
- createdAtLocation: string;
9114
+ }[] | [string, string] | null | undefined>;
9115
+ createdBySignature?: string | null | undefined;
9116
+ createdAtLocation?: string | null | undefined;
8016
9117
  annotation?: Record<string, string | number | boolean | {
8017
9118
  type: string;
8018
9119
  filename: string;
@@ -8028,6 +9129,10 @@ export declare const EventDocument: z.ZodObject<{
8028
9129
  residentialArea?: string | null | undefined;
8029
9130
  street?: string | null | undefined;
8030
9131
  zipCode?: string | null | undefined;
9132
+ } | {
9133
+ firstname: string;
9134
+ surname: string;
9135
+ middlename?: string | null | undefined;
8031
9136
  } | {
8032
9137
  country: string;
8033
9138
  district: string;
@@ -8050,14 +9155,21 @@ export declare const EventDocument: z.ZodObject<{
8050
9155
  option: string;
8051
9156
  filename: string;
8052
9157
  originalFilename: string;
8053
- }[] | undefined> | undefined;
8054
- originalActionId?: string | undefined;
9158
+ }[] | [string, string] | null | undefined> | null | undefined;
9159
+ originalActionId?: string | null | undefined;
8055
9160
  } | {
8056
9161
  type: "REJECT";
8057
9162
  id: string;
8058
9163
  status: "Rejected" | "Requested" | "Accepted";
9164
+ reason: {
9165
+ message: string;
9166
+ isDuplicate?: boolean | undefined;
9167
+ };
9168
+ transactionId: string;
9169
+ createdByUserType: "system" | "user";
8059
9170
  createdAt: string;
8060
9171
  createdBy: string;
9172
+ createdByRole: string;
8061
9173
  declaration: Record<string, string | number | boolean | {
8062
9174
  type: string;
8063
9175
  filename: string;
@@ -8073,6 +9185,10 @@ export declare const EventDocument: z.ZodObject<{
8073
9185
  residentialArea?: string | null | undefined;
8074
9186
  street?: string | null | undefined;
8075
9187
  zipCode?: string | null | undefined;
9188
+ } | {
9189
+ firstname: string;
9190
+ surname: string;
9191
+ middlename?: string | null | undefined;
8076
9192
  } | {
8077
9193
  country: string;
8078
9194
  district: string;
@@ -8095,8 +9211,9 @@ export declare const EventDocument: z.ZodObject<{
8095
9211
  option: string;
8096
9212
  filename: string;
8097
9213
  originalFilename: string;
8098
- }[] | undefined>;
8099
- createdAtLocation: string;
9214
+ }[] | [string, string] | null | undefined>;
9215
+ createdBySignature?: string | null | undefined;
9216
+ createdAtLocation?: string | null | undefined;
8100
9217
  annotation?: Record<string, string | number | boolean | {
8101
9218
  type: string;
8102
9219
  filename: string;
@@ -8112,6 +9229,10 @@ export declare const EventDocument: z.ZodObject<{
8112
9229
  residentialArea?: string | null | undefined;
8113
9230
  street?: string | null | undefined;
8114
9231
  zipCode?: string | null | undefined;
9232
+ } | {
9233
+ firstname: string;
9234
+ surname: string;
9235
+ middlename?: string | null | undefined;
8115
9236
  } | {
8116
9237
  country: string;
8117
9238
  district: string;
@@ -8134,14 +9255,17 @@ export declare const EventDocument: z.ZodObject<{
8134
9255
  option: string;
8135
9256
  filename: string;
8136
9257
  originalFilename: string;
8137
- }[] | undefined> | undefined;
8138
- originalActionId?: string | undefined;
9258
+ }[] | [string, string] | null | undefined> | null | undefined;
9259
+ originalActionId?: string | null | undefined;
8139
9260
  } | {
8140
9261
  type: "MARKED_AS_DUPLICATE";
8141
9262
  id: string;
8142
9263
  status: "Rejected" | "Requested" | "Accepted";
9264
+ transactionId: string;
9265
+ createdByUserType: "system" | "user";
8143
9266
  createdAt: string;
8144
9267
  createdBy: string;
9268
+ createdByRole: string;
8145
9269
  declaration: Record<string, string | number | boolean | {
8146
9270
  type: string;
8147
9271
  filename: string;
@@ -8157,6 +9281,10 @@ export declare const EventDocument: z.ZodObject<{
8157
9281
  residentialArea?: string | null | undefined;
8158
9282
  street?: string | null | undefined;
8159
9283
  zipCode?: string | null | undefined;
9284
+ } | {
9285
+ firstname: string;
9286
+ surname: string;
9287
+ middlename?: string | null | undefined;
8160
9288
  } | {
8161
9289
  country: string;
8162
9290
  district: string;
@@ -8179,8 +9307,9 @@ export declare const EventDocument: z.ZodObject<{
8179
9307
  option: string;
8180
9308
  filename: string;
8181
9309
  originalFilename: string;
8182
- }[] | undefined>;
8183
- createdAtLocation: string;
9310
+ }[] | [string, string] | null | undefined>;
9311
+ createdBySignature?: string | null | undefined;
9312
+ createdAtLocation?: string | null | undefined;
8184
9313
  annotation?: Record<string, string | number | boolean | {
8185
9314
  type: string;
8186
9315
  filename: string;
@@ -8196,6 +9325,10 @@ export declare const EventDocument: z.ZodObject<{
8196
9325
  residentialArea?: string | null | undefined;
8197
9326
  street?: string | null | undefined;
8198
9327
  zipCode?: string | null | undefined;
9328
+ } | {
9329
+ firstname: string;
9330
+ surname: string;
9331
+ middlename?: string | null | undefined;
8199
9332
  } | {
8200
9333
  country: string;
8201
9334
  district: string;
@@ -8218,14 +9351,21 @@ export declare const EventDocument: z.ZodObject<{
8218
9351
  option: string;
8219
9352
  filename: string;
8220
9353
  originalFilename: string;
8221
- }[] | undefined> | undefined;
8222
- originalActionId?: string | undefined;
9354
+ }[] | [string, string] | null | undefined> | null | undefined;
9355
+ originalActionId?: string | null | undefined;
8223
9356
  } | {
8224
9357
  type: "ARCHIVE";
8225
9358
  id: string;
8226
9359
  status: "Rejected" | "Requested" | "Accepted";
9360
+ reason: {
9361
+ message: string;
9362
+ isDuplicate?: boolean | undefined;
9363
+ };
9364
+ transactionId: string;
9365
+ createdByUserType: "system" | "user";
8227
9366
  createdAt: string;
8228
9367
  createdBy: string;
9368
+ createdByRole: string;
8229
9369
  declaration: Record<string, string | number | boolean | {
8230
9370
  type: string;
8231
9371
  filename: string;
@@ -8241,6 +9381,10 @@ export declare const EventDocument: z.ZodObject<{
8241
9381
  residentialArea?: string | null | undefined;
8242
9382
  street?: string | null | undefined;
8243
9383
  zipCode?: string | null | undefined;
9384
+ } | {
9385
+ firstname: string;
9386
+ surname: string;
9387
+ middlename?: string | null | undefined;
8244
9388
  } | {
8245
9389
  country: string;
8246
9390
  district: string;
@@ -8263,8 +9407,9 @@ export declare const EventDocument: z.ZodObject<{
8263
9407
  option: string;
8264
9408
  filename: string;
8265
9409
  originalFilename: string;
8266
- }[] | undefined>;
8267
- createdAtLocation: string;
9410
+ }[] | [string, string] | null | undefined>;
9411
+ createdBySignature?: string | null | undefined;
9412
+ createdAtLocation?: string | null | undefined;
8268
9413
  annotation?: Record<string, string | number | boolean | {
8269
9414
  type: string;
8270
9415
  filename: string;
@@ -8280,6 +9425,10 @@ export declare const EventDocument: z.ZodObject<{
8280
9425
  residentialArea?: string | null | undefined;
8281
9426
  street?: string | null | undefined;
8282
9427
  zipCode?: string | null | undefined;
9428
+ } | {
9429
+ firstname: string;
9430
+ surname: string;
9431
+ middlename?: string | null | undefined;
8283
9432
  } | {
8284
9433
  country: string;
8285
9434
  district: string;
@@ -8302,14 +9451,17 @@ export declare const EventDocument: z.ZodObject<{
8302
9451
  option: string;
8303
9452
  filename: string;
8304
9453
  originalFilename: string;
8305
- }[] | undefined> | undefined;
8306
- originalActionId?: string | undefined;
9454
+ }[] | [string, string] | null | undefined> | null | undefined;
9455
+ originalActionId?: string | null | undefined;
8307
9456
  } | {
8308
9457
  type: "CREATE";
8309
9458
  id: string;
8310
9459
  status: "Rejected" | "Requested" | "Accepted";
9460
+ transactionId: string;
9461
+ createdByUserType: "system" | "user";
8311
9462
  createdAt: string;
8312
9463
  createdBy: string;
9464
+ createdByRole: string;
8313
9465
  declaration: Record<string, string | number | boolean | {
8314
9466
  type: string;
8315
9467
  filename: string;
@@ -8325,6 +9477,10 @@ export declare const EventDocument: z.ZodObject<{
8325
9477
  residentialArea?: string | null | undefined;
8326
9478
  street?: string | null | undefined;
8327
9479
  zipCode?: string | null | undefined;
9480
+ } | {
9481
+ firstname: string;
9482
+ surname: string;
9483
+ middlename?: string | null | undefined;
8328
9484
  } | {
8329
9485
  country: string;
8330
9486
  district: string;
@@ -8347,8 +9503,9 @@ export declare const EventDocument: z.ZodObject<{
8347
9503
  option: string;
8348
9504
  filename: string;
8349
9505
  originalFilename: string;
8350
- }[] | undefined>;
8351
- createdAtLocation: string;
9506
+ }[] | [string, string] | null | undefined>;
9507
+ createdBySignature?: string | null | undefined;
9508
+ createdAtLocation?: string | null | undefined;
8352
9509
  annotation?: Record<string, string | number | boolean | {
8353
9510
  type: string;
8354
9511
  filename: string;
@@ -8364,6 +9521,10 @@ export declare const EventDocument: z.ZodObject<{
8364
9521
  residentialArea?: string | null | undefined;
8365
9522
  street?: string | null | undefined;
8366
9523
  zipCode?: string | null | undefined;
9524
+ } | {
9525
+ firstname: string;
9526
+ surname: string;
9527
+ middlename?: string | null | undefined;
8367
9528
  } | {
8368
9529
  country: string;
8369
9530
  district: string;
@@ -8386,14 +9547,17 @@ export declare const EventDocument: z.ZodObject<{
8386
9547
  option: string;
8387
9548
  filename: string;
8388
9549
  originalFilename: string;
8389
- }[] | undefined> | undefined;
8390
- originalActionId?: string | undefined;
9550
+ }[] | [string, string] | null | undefined> | null | undefined;
9551
+ originalActionId?: string | null | undefined;
8391
9552
  } | {
8392
9553
  type: "NOTIFY";
8393
9554
  id: string;
8394
9555
  status: "Rejected" | "Requested" | "Accepted";
9556
+ transactionId: string;
9557
+ createdByUserType: "system" | "user";
8395
9558
  createdAt: string;
8396
9559
  createdBy: string;
9560
+ createdByRole: string;
8397
9561
  declaration: Record<string, string | number | boolean | {
8398
9562
  type: string;
8399
9563
  filename: string;
@@ -8409,6 +9573,10 @@ export declare const EventDocument: z.ZodObject<{
8409
9573
  residentialArea?: string | null | undefined;
8410
9574
  street?: string | null | undefined;
8411
9575
  zipCode?: string | null | undefined;
9576
+ } | {
9577
+ firstname: string;
9578
+ surname: string;
9579
+ middlename?: string | null | undefined;
8412
9580
  } | {
8413
9581
  country: string;
8414
9582
  district: string;
@@ -8431,8 +9599,9 @@ export declare const EventDocument: z.ZodObject<{
8431
9599
  option: string;
8432
9600
  filename: string;
8433
9601
  originalFilename: string;
8434
- }[] | undefined>;
8435
- createdAtLocation: string;
9602
+ }[] | [string, string] | null | undefined>;
9603
+ createdBySignature?: string | null | undefined;
9604
+ createdAtLocation?: string | null | undefined;
8436
9605
  annotation?: Record<string, string | number | boolean | {
8437
9606
  type: string;
8438
9607
  filename: string;
@@ -8448,6 +9617,10 @@ export declare const EventDocument: z.ZodObject<{
8448
9617
  residentialArea?: string | null | undefined;
8449
9618
  street?: string | null | undefined;
8450
9619
  zipCode?: string | null | undefined;
9620
+ } | {
9621
+ firstname: string;
9622
+ surname: string;
9623
+ middlename?: string | null | undefined;
8451
9624
  } | {
8452
9625
  country: string;
8453
9626
  district: string;
@@ -8470,14 +9643,17 @@ export declare const EventDocument: z.ZodObject<{
8470
9643
  option: string;
8471
9644
  filename: string;
8472
9645
  originalFilename: string;
8473
- }[] | undefined> | undefined;
8474
- originalActionId?: string | undefined;
9646
+ }[] | [string, string] | null | undefined> | null | undefined;
9647
+ originalActionId?: string | null | undefined;
8475
9648
  } | {
8476
9649
  type: "PRINT_CERTIFICATE";
8477
9650
  id: string;
8478
9651
  status: "Rejected" | "Requested" | "Accepted";
9652
+ transactionId: string;
9653
+ createdByUserType: "system" | "user";
8479
9654
  createdAt: string;
8480
9655
  createdBy: string;
9656
+ createdByRole: string;
8481
9657
  declaration: Record<string, string | number | boolean | {
8482
9658
  type: string;
8483
9659
  filename: string;
@@ -8493,6 +9669,10 @@ export declare const EventDocument: z.ZodObject<{
8493
9669
  residentialArea?: string | null | undefined;
8494
9670
  street?: string | null | undefined;
8495
9671
  zipCode?: string | null | undefined;
9672
+ } | {
9673
+ firstname: string;
9674
+ surname: string;
9675
+ middlename?: string | null | undefined;
8496
9676
  } | {
8497
9677
  country: string;
8498
9678
  district: string;
@@ -8515,8 +9695,9 @@ export declare const EventDocument: z.ZodObject<{
8515
9695
  option: string;
8516
9696
  filename: string;
8517
9697
  originalFilename: string;
8518
- }[] | undefined>;
8519
- createdAtLocation: string;
9698
+ }[] | [string, string] | null | undefined>;
9699
+ createdBySignature?: string | null | undefined;
9700
+ createdAtLocation?: string | null | undefined;
8520
9701
  annotation?: Record<string, string | number | boolean | {
8521
9702
  type: string;
8522
9703
  filename: string;
@@ -8532,6 +9713,10 @@ export declare const EventDocument: z.ZodObject<{
8532
9713
  residentialArea?: string | null | undefined;
8533
9714
  street?: string | null | undefined;
8534
9715
  zipCode?: string | null | undefined;
9716
+ } | {
9717
+ firstname: string;
9718
+ surname: string;
9719
+ middlename?: string | null | undefined;
8535
9720
  } | {
8536
9721
  country: string;
8537
9722
  district: string;
@@ -8554,14 +9739,17 @@ export declare const EventDocument: z.ZodObject<{
8554
9739
  option: string;
8555
9740
  filename: string;
8556
9741
  originalFilename: string;
8557
- }[] | undefined> | undefined;
8558
- originalActionId?: string | undefined;
9742
+ }[] | [string, string] | null | undefined> | null | undefined;
9743
+ originalActionId?: string | null | undefined;
8559
9744
  } | {
8560
9745
  type: "REQUEST_CORRECTION";
8561
9746
  id: string;
8562
9747
  status: "Rejected" | "Requested" | "Accepted";
9748
+ transactionId: string;
9749
+ createdByUserType: "system" | "user";
8563
9750
  createdAt: string;
8564
9751
  createdBy: string;
9752
+ createdByRole: string;
8565
9753
  declaration: Record<string, string | number | boolean | {
8566
9754
  type: string;
8567
9755
  filename: string;
@@ -8577,6 +9765,10 @@ export declare const EventDocument: z.ZodObject<{
8577
9765
  residentialArea?: string | null | undefined;
8578
9766
  street?: string | null | undefined;
8579
9767
  zipCode?: string | null | undefined;
9768
+ } | {
9769
+ firstname: string;
9770
+ surname: string;
9771
+ middlename?: string | null | undefined;
8580
9772
  } | {
8581
9773
  country: string;
8582
9774
  district: string;
@@ -8599,8 +9791,9 @@ export declare const EventDocument: z.ZodObject<{
8599
9791
  option: string;
8600
9792
  filename: string;
8601
9793
  originalFilename: string;
8602
- }[] | undefined>;
8603
- createdAtLocation: string;
9794
+ }[] | [string, string] | null | undefined>;
9795
+ createdBySignature?: string | null | undefined;
9796
+ createdAtLocation?: string | null | undefined;
8604
9797
  annotation?: Record<string, string | number | boolean | {
8605
9798
  type: string;
8606
9799
  filename: string;
@@ -8616,6 +9809,10 @@ export declare const EventDocument: z.ZodObject<{
8616
9809
  residentialArea?: string | null | undefined;
8617
9810
  street?: string | null | undefined;
8618
9811
  zipCode?: string | null | undefined;
9812
+ } | {
9813
+ firstname: string;
9814
+ surname: string;
9815
+ middlename?: string | null | undefined;
8619
9816
  } | {
8620
9817
  country: string;
8621
9818
  district: string;
@@ -8638,14 +9835,17 @@ export declare const EventDocument: z.ZodObject<{
8638
9835
  option: string;
8639
9836
  filename: string;
8640
9837
  originalFilename: string;
8641
- }[] | undefined> | undefined;
8642
- originalActionId?: string | undefined;
9838
+ }[] | [string, string] | null | undefined> | null | undefined;
9839
+ originalActionId?: string | null | undefined;
8643
9840
  } | {
8644
9841
  type: "APPROVE_CORRECTION";
8645
9842
  id: string;
8646
9843
  status: "Rejected" | "Requested" | "Accepted";
9844
+ transactionId: string;
9845
+ createdByUserType: "system" | "user";
8647
9846
  createdAt: string;
8648
9847
  createdBy: string;
9848
+ createdByRole: string;
8649
9849
  declaration: Record<string, string | number | boolean | {
8650
9850
  type: string;
8651
9851
  filename: string;
@@ -8661,6 +9861,10 @@ export declare const EventDocument: z.ZodObject<{
8661
9861
  residentialArea?: string | null | undefined;
8662
9862
  street?: string | null | undefined;
8663
9863
  zipCode?: string | null | undefined;
9864
+ } | {
9865
+ firstname: string;
9866
+ surname: string;
9867
+ middlename?: string | null | undefined;
8664
9868
  } | {
8665
9869
  country: string;
8666
9870
  district: string;
@@ -8683,9 +9887,10 @@ export declare const EventDocument: z.ZodObject<{
8683
9887
  option: string;
8684
9888
  filename: string;
8685
9889
  originalFilename: string;
8686
- }[] | undefined>;
8687
- createdAtLocation: string;
9890
+ }[] | [string, string] | null | undefined>;
8688
9891
  requestId: string;
9892
+ createdBySignature?: string | null | undefined;
9893
+ createdAtLocation?: string | null | undefined;
8689
9894
  annotation?: Record<string, string | number | boolean | {
8690
9895
  type: string;
8691
9896
  filename: string;
@@ -8701,6 +9906,10 @@ export declare const EventDocument: z.ZodObject<{
8701
9906
  residentialArea?: string | null | undefined;
8702
9907
  street?: string | null | undefined;
8703
9908
  zipCode?: string | null | undefined;
9909
+ } | {
9910
+ firstname: string;
9911
+ surname: string;
9912
+ middlename?: string | null | undefined;
8704
9913
  } | {
8705
9914
  country: string;
8706
9915
  district: string;
@@ -8723,14 +9932,17 @@ export declare const EventDocument: z.ZodObject<{
8723
9932
  option: string;
8724
9933
  filename: string;
8725
9934
  originalFilename: string;
8726
- }[] | undefined> | undefined;
8727
- originalActionId?: string | undefined;
9935
+ }[] | [string, string] | null | undefined> | null | undefined;
9936
+ originalActionId?: string | null | undefined;
8728
9937
  } | {
8729
9938
  type: "REJECT_CORRECTION";
8730
9939
  id: string;
8731
9940
  status: "Rejected" | "Requested" | "Accepted";
9941
+ transactionId: string;
9942
+ createdByUserType: "system" | "user";
8732
9943
  createdAt: string;
8733
9944
  createdBy: string;
9945
+ createdByRole: string;
8734
9946
  declaration: Record<string, string | number | boolean | {
8735
9947
  type: string;
8736
9948
  filename: string;
@@ -8746,6 +9958,10 @@ export declare const EventDocument: z.ZodObject<{
8746
9958
  residentialArea?: string | null | undefined;
8747
9959
  street?: string | null | undefined;
8748
9960
  zipCode?: string | null | undefined;
9961
+ } | {
9962
+ firstname: string;
9963
+ surname: string;
9964
+ middlename?: string | null | undefined;
8749
9965
  } | {
8750
9966
  country: string;
8751
9967
  district: string;
@@ -8768,9 +9984,10 @@ export declare const EventDocument: z.ZodObject<{
8768
9984
  option: string;
8769
9985
  filename: string;
8770
9986
  originalFilename: string;
8771
- }[] | undefined>;
8772
- createdAtLocation: string;
9987
+ }[] | [string, string] | null | undefined>;
8773
9988
  requestId: string;
9989
+ createdBySignature?: string | null | undefined;
9990
+ createdAtLocation?: string | null | undefined;
8774
9991
  annotation?: Record<string, string | number | boolean | {
8775
9992
  type: string;
8776
9993
  filename: string;
@@ -8786,6 +10003,10 @@ export declare const EventDocument: z.ZodObject<{
8786
10003
  residentialArea?: string | null | undefined;
8787
10004
  street?: string | null | undefined;
8788
10005
  zipCode?: string | null | undefined;
10006
+ } | {
10007
+ firstname: string;
10008
+ surname: string;
10009
+ middlename?: string | null | undefined;
8789
10010
  } | {
8790
10011
  country: string;
8791
10012
  district: string;
@@ -8808,14 +10029,17 @@ export declare const EventDocument: z.ZodObject<{
8808
10029
  option: string;
8809
10030
  filename: string;
8810
10031
  originalFilename: string;
8811
- }[] | undefined> | undefined;
8812
- originalActionId?: string | undefined;
10032
+ }[] | [string, string] | null | undefined> | null | undefined;
10033
+ originalActionId?: string | null | undefined;
8813
10034
  } | {
8814
10035
  type: "READ";
8815
10036
  id: string;
8816
10037
  status: "Rejected" | "Requested" | "Accepted";
10038
+ transactionId: string;
10039
+ createdByUserType: "system" | "user";
8817
10040
  createdAt: string;
8818
10041
  createdBy: string;
10042
+ createdByRole: string;
8819
10043
  declaration: Record<string, string | number | boolean | {
8820
10044
  type: string;
8821
10045
  filename: string;
@@ -8831,6 +10055,10 @@ export declare const EventDocument: z.ZodObject<{
8831
10055
  residentialArea?: string | null | undefined;
8832
10056
  street?: string | null | undefined;
8833
10057
  zipCode?: string | null | undefined;
10058
+ } | {
10059
+ firstname: string;
10060
+ surname: string;
10061
+ middlename?: string | null | undefined;
8834
10062
  } | {
8835
10063
  country: string;
8836
10064
  district: string;
@@ -8853,8 +10081,9 @@ export declare const EventDocument: z.ZodObject<{
8853
10081
  option: string;
8854
10082
  filename: string;
8855
10083
  originalFilename: string;
8856
- }[] | undefined>;
8857
- createdAtLocation: string;
10084
+ }[] | [string, string] | null | undefined>;
10085
+ createdBySignature?: string | null | undefined;
10086
+ createdAtLocation?: string | null | undefined;
8858
10087
  annotation?: Record<string, string | number | boolean | {
8859
10088
  type: string;
8860
10089
  filename: string;
@@ -8870,6 +10099,10 @@ export declare const EventDocument: z.ZodObject<{
8870
10099
  residentialArea?: string | null | undefined;
8871
10100
  street?: string | null | undefined;
8872
10101
  zipCode?: string | null | undefined;
10102
+ } | {
10103
+ firstname: string;
10104
+ surname: string;
10105
+ middlename?: string | null | undefined;
8873
10106
  } | {
8874
10107
  country: string;
8875
10108
  district: string;
@@ -8892,14 +10125,20 @@ export declare const EventDocument: z.ZodObject<{
8892
10125
  option: string;
8893
10126
  filename: string;
8894
10127
  originalFilename: string;
8895
- }[] | undefined> | undefined;
8896
- originalActionId?: string | undefined;
10128
+ }[] | [string, string] | null | undefined> | null | undefined;
10129
+ originalActionId?: string | null | undefined;
8897
10130
  } | {
8898
10131
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
8899
10132
  id: string;
8900
10133
  status: "Rejected";
10134
+ transactionId: string;
10135
+ createdByUserType: "system" | "user";
8901
10136
  createdAt: string;
8902
- originalActionId?: string | undefined;
10137
+ createdBy: string;
10138
+ createdByRole: string;
10139
+ createdBySignature?: string | null | undefined;
10140
+ createdAtLocation?: string | null | undefined;
10141
+ originalActionId?: string | null | undefined;
8903
10142
  })[];
8904
10143
  trackingId: string;
8905
10144
  }>;