@opencrvs/toolkit 1.8.0-rc.ffbb9d7 → 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 (44) hide show
  1. package/dist/commons/api/router.d.ts +14748 -727
  2. package/dist/commons/conditionals/conditionals.d.ts +14 -6
  3. package/dist/commons/conditionals/validate.d.ts +11 -11
  4. package/dist/commons/events/ActionConfig.d.ts +117418 -1729
  5. package/dist/commons/events/ActionDocument.d.ts +2581 -554
  6. package/dist/commons/events/ActionInput.d.ts +1795 -425
  7. package/dist/commons/events/ActionType.d.ts +8 -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 +165 -43
  14. package/dist/commons/events/EventConfig.d.ts +56501 -1354
  15. package/dist/commons/events/EventDocument.d.ts +1635 -391
  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/TemplateConfig.d.ts +4 -4
  26. package/dist/commons/events/User.d.ts +31 -2
  27. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  28. package/dist/commons/events/WorkqueueConfig.d.ts +7300 -20
  29. package/dist/commons/events/defineConfig.d.ts +9001 -58
  30. package/dist/commons/events/event.d.ts +54 -0
  31. package/dist/commons/events/field.d.ts +82 -0
  32. package/dist/commons/events/index.d.ts +8 -0
  33. package/dist/commons/events/scopes.d.ts +44 -0
  34. package/dist/commons/events/serializer.d.ts +2 -0
  35. package/dist/commons/events/test.utils.d.ts +171 -79
  36. package/dist/commons/events/transactions.d.ts +1 -1
  37. package/dist/commons/events/utils.d.ts +13375 -73
  38. package/dist/commons/events/utils.test.d.ts +2 -0
  39. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  40. package/dist/conditionals/index.js +76 -36
  41. package/dist/events/index.js +4630 -1941
  42. package/dist/scopes/index.d.ts +161 -1
  43. package/dist/scopes/index.js +202 -1
  44. 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,18 +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
5804
  }>, "strip", z.ZodTypeAny, {
5117
5805
  type: "UNASSIGN";
5118
- id: string;
5806
+ id: string & z.BRAND<"UUID">;
5119
5807
  status: "Rejected" | "Requested" | "Accepted";
5808
+ transactionId: string;
5809
+ createdByUserType: "system" | "user";
5120
5810
  createdAt: string;
5121
5811
  createdBy: string;
5812
+ createdByRole: string;
5122
5813
  declaration: Record<string, string | number | boolean | {
5123
5814
  type: string;
5124
5815
  filename: string;
@@ -5134,6 +5825,10 @@ export declare const EventDocument: z.ZodObject<{
5134
5825
  residentialArea?: string | null | undefined;
5135
5826
  street?: string | null | undefined;
5136
5827
  zipCode?: string | null | undefined;
5828
+ } | {
5829
+ firstname: string;
5830
+ surname: string;
5831
+ middlename?: string | null | undefined;
5137
5832
  } | {
5138
5833
  country: string;
5139
5834
  district: string;
@@ -5156,8 +5851,9 @@ export declare const EventDocument: z.ZodObject<{
5156
5851
  option: string;
5157
5852
  filename: string;
5158
5853
  originalFilename: string;
5159
- }[] | undefined>;
5160
- createdAtLocation: string;
5854
+ }[] | [string, string] | null | undefined>;
5855
+ createdBySignature?: string | null | undefined;
5856
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
5161
5857
  annotation?: Record<string, string | number | boolean | {
5162
5858
  type: string;
5163
5859
  filename: string;
@@ -5173,6 +5869,10 @@ export declare const EventDocument: z.ZodObject<{
5173
5869
  residentialArea?: string | null | undefined;
5174
5870
  street?: string | null | undefined;
5175
5871
  zipCode?: string | null | undefined;
5872
+ } | {
5873
+ firstname: string;
5874
+ surname: string;
5875
+ middlename?: string | null | undefined;
5176
5876
  } | {
5177
5877
  country: string;
5178
5878
  district: string;
@@ -5195,14 +5895,17 @@ export declare const EventDocument: z.ZodObject<{
5195
5895
  option: string;
5196
5896
  filename: string;
5197
5897
  originalFilename: string;
5198
- }[] | undefined> | undefined;
5199
- originalActionId?: string | undefined;
5898
+ }[] | [string, string] | null | undefined> | null | undefined;
5899
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
5200
5900
  }, {
5201
5901
  type: "UNASSIGN";
5202
5902
  id: string;
5203
5903
  status: "Rejected" | "Requested" | "Accepted";
5904
+ transactionId: string;
5905
+ createdByUserType: "system" | "user";
5204
5906
  createdAt: string;
5205
5907
  createdBy: string;
5908
+ createdByRole: string;
5206
5909
  declaration: Record<string, string | number | boolean | {
5207
5910
  type: string;
5208
5911
  filename: string;
@@ -5218,6 +5921,10 @@ export declare const EventDocument: z.ZodObject<{
5218
5921
  residentialArea?: string | null | undefined;
5219
5922
  street?: string | null | undefined;
5220
5923
  zipCode?: string | null | undefined;
5924
+ } | {
5925
+ firstname: string;
5926
+ surname: string;
5927
+ middlename?: string | null | undefined;
5221
5928
  } | {
5222
5929
  country: string;
5223
5930
  district: string;
@@ -5240,8 +5947,9 @@ export declare const EventDocument: z.ZodObject<{
5240
5947
  option: string;
5241
5948
  filename: string;
5242
5949
  originalFilename: string;
5243
- }[] | undefined>;
5244
- createdAtLocation: string;
5950
+ }[] | [string, string] | null | undefined>;
5951
+ createdBySignature?: string | null | undefined;
5952
+ createdAtLocation?: string | null | undefined;
5245
5953
  annotation?: Record<string, string | number | boolean | {
5246
5954
  type: string;
5247
5955
  filename: string;
@@ -5257,6 +5965,10 @@ export declare const EventDocument: z.ZodObject<{
5257
5965
  residentialArea?: string | null | undefined;
5258
5966
  street?: string | null | undefined;
5259
5967
  zipCode?: string | null | undefined;
5968
+ } | {
5969
+ firstname: string;
5970
+ surname: string;
5971
+ middlename?: string | null | undefined;
5260
5972
  } | {
5261
5973
  country: string;
5262
5974
  district: string;
@@ -5279,13 +5991,18 @@ export declare const EventDocument: z.ZodObject<{
5279
5991
  option: string;
5280
5992
  filename: string;
5281
5993
  originalFilename: string;
5282
- }[] | undefined> | undefined;
5283
- originalActionId?: string | undefined;
5994
+ }[] | [string, string] | null | undefined> | null | undefined;
5995
+ originalActionId?: string | null | undefined;
5284
5996
  }>, z.ZodObject<z.objectUtil.extendShape<{
5285
- id: z.ZodString;
5997
+ id: z.ZodBranded<z.ZodString, "UUID">;
5998
+ transactionId: z.ZodString;
5999
+ createdByUserType: z.ZodEnum<["user", "system"]>;
5286
6000
  createdAt: z.ZodString;
5287
6001
  createdBy: z.ZodString;
5288
- 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<{
5289
6006
  filename: z.ZodString;
5290
6007
  originalFilename: z.ZodString;
5291
6008
  type: z.ZodString;
@@ -5398,8 +6115,20 @@ export declare const EventDocument: z.ZodObject<{
5398
6115
  addressLine2?: string | null | undefined;
5399
6116
  addressLine3?: string | null | undefined;
5400
6117
  postcodeOrZip?: string | null | undefined;
5401
- }>]>>;
5402
- 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<{
5403
6132
  filename: z.ZodString;
5404
6133
  originalFilename: z.ZodString;
5405
6134
  type: z.ZodString;
@@ -5512,18 +6241,32 @@ export declare const EventDocument: z.ZodObject<{
5512
6241
  addressLine2?: string | null | undefined;
5513
6242
  addressLine3?: string | null | undefined;
5514
6243
  postcodeOrZip?: string | null | undefined;
5515
- }>]>>>;
5516
- 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]>]>>>>;
5517
6257
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5518
- originalActionId: z.ZodOptional<z.ZodString>;
6258
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
5519
6259
  }, {
5520
6260
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
5521
6261
  }>, "strip", z.ZodTypeAny, {
5522
6262
  type: "PRINT_CERTIFICATE";
5523
- id: string;
6263
+ id: string & z.BRAND<"UUID">;
5524
6264
  status: "Rejected" | "Requested" | "Accepted";
6265
+ transactionId: string;
6266
+ createdByUserType: "system" | "user";
5525
6267
  createdAt: string;
5526
6268
  createdBy: string;
6269
+ createdByRole: string;
5527
6270
  declaration: Record<string, string | number | boolean | {
5528
6271
  type: string;
5529
6272
  filename: string;
@@ -5539,6 +6282,10 @@ export declare const EventDocument: z.ZodObject<{
5539
6282
  residentialArea?: string | null | undefined;
5540
6283
  street?: string | null | undefined;
5541
6284
  zipCode?: string | null | undefined;
6285
+ } | {
6286
+ firstname: string;
6287
+ surname: string;
6288
+ middlename?: string | null | undefined;
5542
6289
  } | {
5543
6290
  country: string;
5544
6291
  district: string;
@@ -5561,8 +6308,9 @@ export declare const EventDocument: z.ZodObject<{
5561
6308
  option: string;
5562
6309
  filename: string;
5563
6310
  originalFilename: string;
5564
- }[] | undefined>;
5565
- createdAtLocation: string;
6311
+ }[] | [string, string] | null | undefined>;
6312
+ createdBySignature?: string | null | undefined;
6313
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
5566
6314
  annotation?: Record<string, string | number | boolean | {
5567
6315
  type: string;
5568
6316
  filename: string;
@@ -5578,6 +6326,10 @@ export declare const EventDocument: z.ZodObject<{
5578
6326
  residentialArea?: string | null | undefined;
5579
6327
  street?: string | null | undefined;
5580
6328
  zipCode?: string | null | undefined;
6329
+ } | {
6330
+ firstname: string;
6331
+ surname: string;
6332
+ middlename?: string | null | undefined;
5581
6333
  } | {
5582
6334
  country: string;
5583
6335
  district: string;
@@ -5600,14 +6352,17 @@ export declare const EventDocument: z.ZodObject<{
5600
6352
  option: string;
5601
6353
  filename: string;
5602
6354
  originalFilename: string;
5603
- }[] | undefined> | undefined;
5604
- originalActionId?: string | undefined;
6355
+ }[] | [string, string] | null | undefined> | null | undefined;
6356
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
5605
6357
  }, {
5606
6358
  type: "PRINT_CERTIFICATE";
5607
6359
  id: string;
5608
6360
  status: "Rejected" | "Requested" | "Accepted";
6361
+ transactionId: string;
6362
+ createdByUserType: "system" | "user";
5609
6363
  createdAt: string;
5610
6364
  createdBy: string;
6365
+ createdByRole: string;
5611
6366
  declaration: Record<string, string | number | boolean | {
5612
6367
  type: string;
5613
6368
  filename: string;
@@ -5623,6 +6378,10 @@ export declare const EventDocument: z.ZodObject<{
5623
6378
  residentialArea?: string | null | undefined;
5624
6379
  street?: string | null | undefined;
5625
6380
  zipCode?: string | null | undefined;
6381
+ } | {
6382
+ firstname: string;
6383
+ surname: string;
6384
+ middlename?: string | null | undefined;
5626
6385
  } | {
5627
6386
  country: string;
5628
6387
  district: string;
@@ -5645,8 +6404,9 @@ export declare const EventDocument: z.ZodObject<{
5645
6404
  option: string;
5646
6405
  filename: string;
5647
6406
  originalFilename: string;
5648
- }[] | undefined>;
5649
- createdAtLocation: string;
6407
+ }[] | [string, string] | null | undefined>;
6408
+ createdBySignature?: string | null | undefined;
6409
+ createdAtLocation?: string | null | undefined;
5650
6410
  annotation?: Record<string, string | number | boolean | {
5651
6411
  type: string;
5652
6412
  filename: string;
@@ -5662,6 +6422,10 @@ export declare const EventDocument: z.ZodObject<{
5662
6422
  residentialArea?: string | null | undefined;
5663
6423
  street?: string | null | undefined;
5664
6424
  zipCode?: string | null | undefined;
6425
+ } | {
6426
+ firstname: string;
6427
+ surname: string;
6428
+ middlename?: string | null | undefined;
5665
6429
  } | {
5666
6430
  country: string;
5667
6431
  district: string;
@@ -5684,13 +6448,18 @@ export declare const EventDocument: z.ZodObject<{
5684
6448
  option: string;
5685
6449
  filename: string;
5686
6450
  originalFilename: string;
5687
- }[] | undefined> | undefined;
5688
- originalActionId?: string | undefined;
6451
+ }[] | [string, string] | null | undefined> | null | undefined;
6452
+ originalActionId?: string | null | undefined;
5689
6453
  }>, z.ZodObject<z.objectUtil.extendShape<{
5690
- id: z.ZodString;
6454
+ id: z.ZodBranded<z.ZodString, "UUID">;
6455
+ transactionId: z.ZodString;
6456
+ createdByUserType: z.ZodEnum<["user", "system"]>;
5691
6457
  createdAt: z.ZodString;
5692
6458
  createdBy: z.ZodString;
5693
- 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<{
5694
6463
  filename: z.ZodString;
5695
6464
  originalFilename: z.ZodString;
5696
6465
  type: z.ZodString;
@@ -5803,8 +6572,20 @@ export declare const EventDocument: z.ZodObject<{
5803
6572
  addressLine2?: string | null | undefined;
5804
6573
  addressLine3?: string | null | undefined;
5805
6574
  postcodeOrZip?: string | null | undefined;
5806
- }>]>>;
5807
- 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<{
5808
6589
  filename: z.ZodString;
5809
6590
  originalFilename: z.ZodString;
5810
6591
  type: z.ZodString;
@@ -5917,18 +6698,32 @@ export declare const EventDocument: z.ZodObject<{
5917
6698
  addressLine2?: string | null | undefined;
5918
6699
  addressLine3?: string | null | undefined;
5919
6700
  postcodeOrZip?: string | null | undefined;
5920
- }>]>>>;
5921
- 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]>]>>>>;
5922
6714
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5923
- originalActionId: z.ZodOptional<z.ZodString>;
6715
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
5924
6716
  }, {
5925
6717
  type: z.ZodLiteral<"READ">;
5926
6718
  }>, "strip", z.ZodTypeAny, {
5927
6719
  type: "READ";
5928
- id: string;
6720
+ id: string & z.BRAND<"UUID">;
5929
6721
  status: "Rejected" | "Requested" | "Accepted";
6722
+ transactionId: string;
6723
+ createdByUserType: "system" | "user";
5930
6724
  createdAt: string;
5931
6725
  createdBy: string;
6726
+ createdByRole: string;
5932
6727
  declaration: Record<string, string | number | boolean | {
5933
6728
  type: string;
5934
6729
  filename: string;
@@ -5944,6 +6739,10 @@ export declare const EventDocument: z.ZodObject<{
5944
6739
  residentialArea?: string | null | undefined;
5945
6740
  street?: string | null | undefined;
5946
6741
  zipCode?: string | null | undefined;
6742
+ } | {
6743
+ firstname: string;
6744
+ surname: string;
6745
+ middlename?: string | null | undefined;
5947
6746
  } | {
5948
6747
  country: string;
5949
6748
  district: string;
@@ -5966,8 +6765,9 @@ export declare const EventDocument: z.ZodObject<{
5966
6765
  option: string;
5967
6766
  filename: string;
5968
6767
  originalFilename: string;
5969
- }[] | undefined>;
5970
- createdAtLocation: string;
6768
+ }[] | [string, string] | null | undefined>;
6769
+ createdBySignature?: string | null | undefined;
6770
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
5971
6771
  annotation?: Record<string, string | number | boolean | {
5972
6772
  type: string;
5973
6773
  filename: string;
@@ -5983,6 +6783,10 @@ export declare const EventDocument: z.ZodObject<{
5983
6783
  residentialArea?: string | null | undefined;
5984
6784
  street?: string | null | undefined;
5985
6785
  zipCode?: string | null | undefined;
6786
+ } | {
6787
+ firstname: string;
6788
+ surname: string;
6789
+ middlename?: string | null | undefined;
5986
6790
  } | {
5987
6791
  country: string;
5988
6792
  district: string;
@@ -6005,14 +6809,17 @@ export declare const EventDocument: z.ZodObject<{
6005
6809
  option: string;
6006
6810
  filename: string;
6007
6811
  originalFilename: string;
6008
- }[] | undefined> | undefined;
6009
- originalActionId?: string | undefined;
6812
+ }[] | [string, string] | null | undefined> | null | undefined;
6813
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6010
6814
  }, {
6011
6815
  type: "READ";
6012
6816
  id: string;
6013
6817
  status: "Rejected" | "Requested" | "Accepted";
6818
+ transactionId: string;
6819
+ createdByUserType: "system" | "user";
6014
6820
  createdAt: string;
6015
6821
  createdBy: string;
6822
+ createdByRole: string;
6016
6823
  declaration: Record<string, string | number | boolean | {
6017
6824
  type: string;
6018
6825
  filename: string;
@@ -6028,6 +6835,10 @@ export declare const EventDocument: z.ZodObject<{
6028
6835
  residentialArea?: string | null | undefined;
6029
6836
  street?: string | null | undefined;
6030
6837
  zipCode?: string | null | undefined;
6838
+ } | {
6839
+ firstname: string;
6840
+ surname: string;
6841
+ middlename?: string | null | undefined;
6031
6842
  } | {
6032
6843
  country: string;
6033
6844
  district: string;
@@ -6050,8 +6861,9 @@ export declare const EventDocument: z.ZodObject<{
6050
6861
  option: string;
6051
6862
  filename: string;
6052
6863
  originalFilename: string;
6053
- }[] | undefined>;
6054
- createdAtLocation: string;
6864
+ }[] | [string, string] | null | undefined>;
6865
+ createdBySignature?: string | null | undefined;
6866
+ createdAtLocation?: string | null | undefined;
6055
6867
  annotation?: Record<string, string | number | boolean | {
6056
6868
  type: string;
6057
6869
  filename: string;
@@ -6067,6 +6879,10 @@ export declare const EventDocument: z.ZodObject<{
6067
6879
  residentialArea?: string | null | undefined;
6068
6880
  street?: string | null | undefined;
6069
6881
  zipCode?: string | null | undefined;
6882
+ } | {
6883
+ firstname: string;
6884
+ surname: string;
6885
+ middlename?: string | null | undefined;
6070
6886
  } | {
6071
6887
  country: string;
6072
6888
  district: string;
@@ -6089,13 +6905,18 @@ export declare const EventDocument: z.ZodObject<{
6089
6905
  option: string;
6090
6906
  filename: string;
6091
6907
  originalFilename: string;
6092
- }[] | undefined> | undefined;
6093
- originalActionId?: string | undefined;
6908
+ }[] | [string, string] | null | undefined> | null | undefined;
6909
+ originalActionId?: string | null | undefined;
6094
6910
  }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
6095
- id: z.ZodString;
6911
+ id: z.ZodBranded<z.ZodString, "UUID">;
6912
+ transactionId: z.ZodString;
6913
+ createdByUserType: z.ZodEnum<["user", "system"]>;
6096
6914
  createdAt: z.ZodString;
6097
6915
  createdBy: z.ZodString;
6098
- 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<{
6099
6920
  filename: z.ZodString;
6100
6921
  originalFilename: z.ZodString;
6101
6922
  type: z.ZodString;
@@ -6208,8 +7029,20 @@ export declare const EventDocument: z.ZodObject<{
6208
7029
  addressLine2?: string | null | undefined;
6209
7030
  addressLine3?: string | null | undefined;
6210
7031
  postcodeOrZip?: string | null | undefined;
6211
- }>]>>;
6212
- 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<{
6213
7046
  filename: z.ZodString;
6214
7047
  originalFilename: z.ZodString;
6215
7048
  type: z.ZodString;
@@ -6322,38 +7155,64 @@ export declare const EventDocument: z.ZodObject<{
6322
7155
  addressLine2?: string | null | undefined;
6323
7156
  addressLine3?: string | null | undefined;
6324
7157
  postcodeOrZip?: string | null | undefined;
6325
- }>]>>>;
6326
- 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]>]>>>>;
6327
7171
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6328
- originalActionId: z.ZodOptional<z.ZodString>;
6329
- }, "createdBy" | "declaration" | "annotation" | "createdAtLocation">, {
7172
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
7173
+ }, "declaration" | "annotation">, {
6330
7174
  type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
6331
7175
  status: z.ZodLiteral<"Rejected">;
6332
7176
  }>, "strip", z.ZodTypeAny, {
6333
7177
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
6334
- id: string;
7178
+ id: string & z.BRAND<"UUID">;
6335
7179
  status: "Rejected";
7180
+ transactionId: string;
7181
+ createdByUserType: "system" | "user";
6336
7182
  createdAt: string;
6337
- 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;
6338
7188
  }, {
6339
7189
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
6340
7190
  id: string;
6341
7191
  status: "Rejected";
7192
+ transactionId: string;
7193
+ createdByUserType: "system" | "user";
6342
7194
  createdAt: string;
6343
- originalActionId?: string | undefined;
7195
+ createdBy: string;
7196
+ createdByRole: string;
7197
+ createdBySignature?: string | null | undefined;
7198
+ createdAtLocation?: string | null | undefined;
7199
+ originalActionId?: string | null | undefined;
6344
7200
  }>]>, "many">;
6345
7201
  trackingId: z.ZodString;
6346
7202
  }, "strip", z.ZodTypeAny, {
6347
7203
  type: string;
6348
- id: string;
7204
+ id: string & z.BRAND<"UUID">;
6349
7205
  createdAt: string;
6350
7206
  updatedAt: string;
6351
7207
  actions: ({
6352
7208
  type: "ASSIGN";
6353
- id: string;
7209
+ id: string & z.BRAND<"UUID">;
6354
7210
  status: "Rejected" | "Requested" | "Accepted";
7211
+ transactionId: string;
7212
+ createdByUserType: "system" | "user";
6355
7213
  createdAt: string;
6356
7214
  createdBy: string;
7215
+ createdByRole: string;
6357
7216
  declaration: Record<string, string | number | boolean | {
6358
7217
  type: string;
6359
7218
  filename: string;
@@ -6369,6 +7228,10 @@ export declare const EventDocument: z.ZodObject<{
6369
7228
  residentialArea?: string | null | undefined;
6370
7229
  street?: string | null | undefined;
6371
7230
  zipCode?: string | null | undefined;
7231
+ } | {
7232
+ firstname: string;
7233
+ surname: string;
7234
+ middlename?: string | null | undefined;
6372
7235
  } | {
6373
7236
  country: string;
6374
7237
  district: string;
@@ -6391,9 +7254,10 @@ export declare const EventDocument: z.ZodObject<{
6391
7254
  option: string;
6392
7255
  filename: string;
6393
7256
  originalFilename: string;
6394
- }[] | undefined>;
6395
- createdAtLocation: string;
7257
+ }[] | [string, string] | null | undefined>;
6396
7258
  assignedTo: string;
7259
+ createdBySignature?: string | null | undefined;
7260
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6397
7261
  annotation?: Record<string, string | number | boolean | {
6398
7262
  type: string;
6399
7263
  filename: string;
@@ -6409,6 +7273,10 @@ export declare const EventDocument: z.ZodObject<{
6409
7273
  residentialArea?: string | null | undefined;
6410
7274
  street?: string | null | undefined;
6411
7275
  zipCode?: string | null | undefined;
7276
+ } | {
7277
+ firstname: string;
7278
+ surname: string;
7279
+ middlename?: string | null | undefined;
6412
7280
  } | {
6413
7281
  country: string;
6414
7282
  district: string;
@@ -6431,14 +7299,17 @@ export declare const EventDocument: z.ZodObject<{
6431
7299
  option: string;
6432
7300
  filename: string;
6433
7301
  originalFilename: string;
6434
- }[] | undefined> | undefined;
6435
- originalActionId?: string | undefined;
7302
+ }[] | [string, string] | null | undefined> | null | undefined;
7303
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6436
7304
  } | {
6437
7305
  type: "UNASSIGN";
6438
- id: string;
7306
+ id: string & z.BRAND<"UUID">;
6439
7307
  status: "Rejected" | "Requested" | "Accepted";
7308
+ transactionId: string;
7309
+ createdByUserType: "system" | "user";
6440
7310
  createdAt: string;
6441
7311
  createdBy: string;
7312
+ createdByRole: string;
6442
7313
  declaration: Record<string, string | number | boolean | {
6443
7314
  type: string;
6444
7315
  filename: string;
@@ -6454,6 +7325,10 @@ export declare const EventDocument: z.ZodObject<{
6454
7325
  residentialArea?: string | null | undefined;
6455
7326
  street?: string | null | undefined;
6456
7327
  zipCode?: string | null | undefined;
7328
+ } | {
7329
+ firstname: string;
7330
+ surname: string;
7331
+ middlename?: string | null | undefined;
6457
7332
  } | {
6458
7333
  country: string;
6459
7334
  district: string;
@@ -6476,8 +7351,9 @@ export declare const EventDocument: z.ZodObject<{
6476
7351
  option: string;
6477
7352
  filename: string;
6478
7353
  originalFilename: string;
6479
- }[] | undefined>;
6480
- createdAtLocation: string;
7354
+ }[] | [string, string] | null | undefined>;
7355
+ createdBySignature?: string | null | undefined;
7356
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6481
7357
  annotation?: Record<string, string | number | boolean | {
6482
7358
  type: string;
6483
7359
  filename: string;
@@ -6493,6 +7369,10 @@ export declare const EventDocument: z.ZodObject<{
6493
7369
  residentialArea?: string | null | undefined;
6494
7370
  street?: string | null | undefined;
6495
7371
  zipCode?: string | null | undefined;
7372
+ } | {
7373
+ firstname: string;
7374
+ surname: string;
7375
+ middlename?: string | null | undefined;
6496
7376
  } | {
6497
7377
  country: string;
6498
7378
  district: string;
@@ -6515,14 +7395,17 @@ export declare const EventDocument: z.ZodObject<{
6515
7395
  option: string;
6516
7396
  filename: string;
6517
7397
  originalFilename: string;
6518
- }[] | undefined> | undefined;
6519
- originalActionId?: string | undefined;
7398
+ }[] | [string, string] | null | undefined> | null | undefined;
7399
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6520
7400
  } | {
6521
7401
  type: "REGISTER";
6522
- id: string;
7402
+ id: string & z.BRAND<"UUID">;
6523
7403
  status: "Rejected" | "Requested" | "Accepted";
7404
+ transactionId: string;
7405
+ createdByUserType: "system" | "user";
6524
7406
  createdAt: string;
6525
7407
  createdBy: string;
7408
+ createdByRole: string;
6526
7409
  declaration: Record<string, string | number | boolean | {
6527
7410
  type: string;
6528
7411
  filename: string;
@@ -6538,6 +7421,10 @@ export declare const EventDocument: z.ZodObject<{
6538
7421
  residentialArea?: string | null | undefined;
6539
7422
  street?: string | null | undefined;
6540
7423
  zipCode?: string | null | undefined;
7424
+ } | {
7425
+ firstname: string;
7426
+ surname: string;
7427
+ middlename?: string | null | undefined;
6541
7428
  } | {
6542
7429
  country: string;
6543
7430
  district: string;
@@ -6560,8 +7447,9 @@ export declare const EventDocument: z.ZodObject<{
6560
7447
  option: string;
6561
7448
  filename: string;
6562
7449
  originalFilename: string;
6563
- }[] | undefined>;
6564
- createdAtLocation: string;
7450
+ }[] | [string, string] | null | undefined>;
7451
+ createdBySignature?: string | null | undefined;
7452
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6565
7453
  annotation?: Record<string, string | number | boolean | {
6566
7454
  type: string;
6567
7455
  filename: string;
@@ -6577,6 +7465,10 @@ export declare const EventDocument: z.ZodObject<{
6577
7465
  residentialArea?: string | null | undefined;
6578
7466
  street?: string | null | undefined;
6579
7467
  zipCode?: string | null | undefined;
7468
+ } | {
7469
+ firstname: string;
7470
+ surname: string;
7471
+ middlename?: string | null | undefined;
6580
7472
  } | {
6581
7473
  country: string;
6582
7474
  district: string;
@@ -6599,15 +7491,18 @@ export declare const EventDocument: z.ZodObject<{
6599
7491
  option: string;
6600
7492
  filename: string;
6601
7493
  originalFilename: string;
6602
- }[] | undefined> | undefined;
6603
- originalActionId?: string | undefined;
7494
+ }[] | [string, string] | null | undefined> | null | undefined;
7495
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6604
7496
  registrationNumber?: string | undefined;
6605
7497
  } | {
6606
7498
  type: "DECLARE";
6607
- id: string;
7499
+ id: string & z.BRAND<"UUID">;
6608
7500
  status: "Rejected" | "Requested" | "Accepted";
7501
+ transactionId: string;
7502
+ createdByUserType: "system" | "user";
6609
7503
  createdAt: string;
6610
7504
  createdBy: string;
7505
+ createdByRole: string;
6611
7506
  declaration: Record<string, string | number | boolean | {
6612
7507
  type: string;
6613
7508
  filename: string;
@@ -6623,6 +7518,10 @@ export declare const EventDocument: z.ZodObject<{
6623
7518
  residentialArea?: string | null | undefined;
6624
7519
  street?: string | null | undefined;
6625
7520
  zipCode?: string | null | undefined;
7521
+ } | {
7522
+ firstname: string;
7523
+ surname: string;
7524
+ middlename?: string | null | undefined;
6626
7525
  } | {
6627
7526
  country: string;
6628
7527
  district: string;
@@ -6645,8 +7544,9 @@ export declare const EventDocument: z.ZodObject<{
6645
7544
  option: string;
6646
7545
  filename: string;
6647
7546
  originalFilename: string;
6648
- }[] | undefined>;
6649
- createdAtLocation: string;
7547
+ }[] | [string, string] | null | undefined>;
7548
+ createdBySignature?: string | null | undefined;
7549
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6650
7550
  annotation?: Record<string, string | number | boolean | {
6651
7551
  type: string;
6652
7552
  filename: string;
@@ -6662,6 +7562,10 @@ export declare const EventDocument: z.ZodObject<{
6662
7562
  residentialArea?: string | null | undefined;
6663
7563
  street?: string | null | undefined;
6664
7564
  zipCode?: string | null | undefined;
7565
+ } | {
7566
+ firstname: string;
7567
+ surname: string;
7568
+ middlename?: string | null | undefined;
6665
7569
  } | {
6666
7570
  country: string;
6667
7571
  district: string;
@@ -6684,14 +7588,17 @@ export declare const EventDocument: z.ZodObject<{
6684
7588
  option: string;
6685
7589
  filename: string;
6686
7590
  originalFilename: string;
6687
- }[] | undefined> | undefined;
6688
- originalActionId?: string | undefined;
7591
+ }[] | [string, string] | null | undefined> | null | undefined;
7592
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6689
7593
  } | {
6690
7594
  type: "VALIDATE";
6691
- id: string;
7595
+ id: string & z.BRAND<"UUID">;
6692
7596
  status: "Rejected" | "Requested" | "Accepted";
7597
+ transactionId: string;
7598
+ createdByUserType: "system" | "user";
6693
7599
  createdAt: string;
6694
7600
  createdBy: string;
7601
+ createdByRole: string;
6695
7602
  declaration: Record<string, string | number | boolean | {
6696
7603
  type: string;
6697
7604
  filename: string;
@@ -6707,6 +7614,10 @@ export declare const EventDocument: z.ZodObject<{
6707
7614
  residentialArea?: string | null | undefined;
6708
7615
  street?: string | null | undefined;
6709
7616
  zipCode?: string | null | undefined;
7617
+ } | {
7618
+ firstname: string;
7619
+ surname: string;
7620
+ middlename?: string | null | undefined;
6710
7621
  } | {
6711
7622
  country: string;
6712
7623
  district: string;
@@ -6729,8 +7640,9 @@ export declare const EventDocument: z.ZodObject<{
6729
7640
  option: string;
6730
7641
  filename: string;
6731
7642
  originalFilename: string;
6732
- }[] | undefined>;
6733
- createdAtLocation: string;
7643
+ }[] | [string, string] | null | undefined>;
7644
+ createdBySignature?: string | null | undefined;
7645
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6734
7646
  annotation?: Record<string, string | number | boolean | {
6735
7647
  type: string;
6736
7648
  filename: string;
@@ -6746,6 +7658,10 @@ export declare const EventDocument: z.ZodObject<{
6746
7658
  residentialArea?: string | null | undefined;
6747
7659
  street?: string | null | undefined;
6748
7660
  zipCode?: string | null | undefined;
7661
+ } | {
7662
+ firstname: string;
7663
+ surname: string;
7664
+ middlename?: string | null | undefined;
6749
7665
  } | {
6750
7666
  country: string;
6751
7667
  district: string;
@@ -6768,14 +7684,21 @@ export declare const EventDocument: z.ZodObject<{
6768
7684
  option: string;
6769
7685
  filename: string;
6770
7686
  originalFilename: string;
6771
- }[] | undefined> | undefined;
6772
- originalActionId?: string | undefined;
7687
+ }[] | [string, string] | null | undefined> | null | undefined;
7688
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6773
7689
  } | {
6774
7690
  type: "REJECT";
6775
- id: string;
7691
+ id: string & z.BRAND<"UUID">;
6776
7692
  status: "Rejected" | "Requested" | "Accepted";
7693
+ reason: {
7694
+ message: string;
7695
+ isDuplicate?: boolean | undefined;
7696
+ };
7697
+ transactionId: string;
7698
+ createdByUserType: "system" | "user";
6777
7699
  createdAt: string;
6778
7700
  createdBy: string;
7701
+ createdByRole: string;
6779
7702
  declaration: Record<string, string | number | boolean | {
6780
7703
  type: string;
6781
7704
  filename: string;
@@ -6791,6 +7714,10 @@ export declare const EventDocument: z.ZodObject<{
6791
7714
  residentialArea?: string | null | undefined;
6792
7715
  street?: string | null | undefined;
6793
7716
  zipCode?: string | null | undefined;
7717
+ } | {
7718
+ firstname: string;
7719
+ surname: string;
7720
+ middlename?: string | null | undefined;
6794
7721
  } | {
6795
7722
  country: string;
6796
7723
  district: string;
@@ -6813,8 +7740,9 @@ export declare const EventDocument: z.ZodObject<{
6813
7740
  option: string;
6814
7741
  filename: string;
6815
7742
  originalFilename: string;
6816
- }[] | undefined>;
6817
- createdAtLocation: string;
7743
+ }[] | [string, string] | null | undefined>;
7744
+ createdBySignature?: string | null | undefined;
7745
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6818
7746
  annotation?: Record<string, string | number | boolean | {
6819
7747
  type: string;
6820
7748
  filename: string;
@@ -6830,6 +7758,10 @@ export declare const EventDocument: z.ZodObject<{
6830
7758
  residentialArea?: string | null | undefined;
6831
7759
  street?: string | null | undefined;
6832
7760
  zipCode?: string | null | undefined;
7761
+ } | {
7762
+ firstname: string;
7763
+ surname: string;
7764
+ middlename?: string | null | undefined;
6833
7765
  } | {
6834
7766
  country: string;
6835
7767
  district: string;
@@ -6852,14 +7784,17 @@ export declare const EventDocument: z.ZodObject<{
6852
7784
  option: string;
6853
7785
  filename: string;
6854
7786
  originalFilename: string;
6855
- }[] | undefined> | undefined;
6856
- originalActionId?: string | undefined;
7787
+ }[] | [string, string] | null | undefined> | null | undefined;
7788
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6857
7789
  } | {
6858
7790
  type: "MARKED_AS_DUPLICATE";
6859
- id: string;
7791
+ id: string & z.BRAND<"UUID">;
6860
7792
  status: "Rejected" | "Requested" | "Accepted";
7793
+ transactionId: string;
7794
+ createdByUserType: "system" | "user";
6861
7795
  createdAt: string;
6862
7796
  createdBy: string;
7797
+ createdByRole: string;
6863
7798
  declaration: Record<string, string | number | boolean | {
6864
7799
  type: string;
6865
7800
  filename: string;
@@ -6875,6 +7810,10 @@ export declare const EventDocument: z.ZodObject<{
6875
7810
  residentialArea?: string | null | undefined;
6876
7811
  street?: string | null | undefined;
6877
7812
  zipCode?: string | null | undefined;
7813
+ } | {
7814
+ firstname: string;
7815
+ surname: string;
7816
+ middlename?: string | null | undefined;
6878
7817
  } | {
6879
7818
  country: string;
6880
7819
  district: string;
@@ -6897,8 +7836,9 @@ export declare const EventDocument: z.ZodObject<{
6897
7836
  option: string;
6898
7837
  filename: string;
6899
7838
  originalFilename: string;
6900
- }[] | undefined>;
6901
- createdAtLocation: string;
7839
+ }[] | [string, string] | null | undefined>;
7840
+ createdBySignature?: string | null | undefined;
7841
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6902
7842
  annotation?: Record<string, string | number | boolean | {
6903
7843
  type: string;
6904
7844
  filename: string;
@@ -6914,6 +7854,10 @@ export declare const EventDocument: z.ZodObject<{
6914
7854
  residentialArea?: string | null | undefined;
6915
7855
  street?: string | null | undefined;
6916
7856
  zipCode?: string | null | undefined;
7857
+ } | {
7858
+ firstname: string;
7859
+ surname: string;
7860
+ middlename?: string | null | undefined;
6917
7861
  } | {
6918
7862
  country: string;
6919
7863
  district: string;
@@ -6936,14 +7880,21 @@ export declare const EventDocument: z.ZodObject<{
6936
7880
  option: string;
6937
7881
  filename: string;
6938
7882
  originalFilename: string;
6939
- }[] | undefined> | undefined;
6940
- originalActionId?: string | undefined;
7883
+ }[] | [string, string] | null | undefined> | null | undefined;
7884
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6941
7885
  } | {
6942
7886
  type: "ARCHIVE";
6943
- id: string;
7887
+ id: string & z.BRAND<"UUID">;
6944
7888
  status: "Rejected" | "Requested" | "Accepted";
7889
+ reason: {
7890
+ message: string;
7891
+ isDuplicate?: boolean | undefined;
7892
+ };
7893
+ transactionId: string;
7894
+ createdByUserType: "system" | "user";
6945
7895
  createdAt: string;
6946
7896
  createdBy: string;
7897
+ createdByRole: string;
6947
7898
  declaration: Record<string, string | number | boolean | {
6948
7899
  type: string;
6949
7900
  filename: string;
@@ -6959,6 +7910,10 @@ export declare const EventDocument: z.ZodObject<{
6959
7910
  residentialArea?: string | null | undefined;
6960
7911
  street?: string | null | undefined;
6961
7912
  zipCode?: string | null | undefined;
7913
+ } | {
7914
+ firstname: string;
7915
+ surname: string;
7916
+ middlename?: string | null | undefined;
6962
7917
  } | {
6963
7918
  country: string;
6964
7919
  district: string;
@@ -6981,8 +7936,9 @@ export declare const EventDocument: z.ZodObject<{
6981
7936
  option: string;
6982
7937
  filename: string;
6983
7938
  originalFilename: string;
6984
- }[] | undefined>;
6985
- createdAtLocation: string;
7939
+ }[] | [string, string] | null | undefined>;
7940
+ createdBySignature?: string | null | undefined;
7941
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6986
7942
  annotation?: Record<string, string | number | boolean | {
6987
7943
  type: string;
6988
7944
  filename: string;
@@ -6998,6 +7954,10 @@ export declare const EventDocument: z.ZodObject<{
6998
7954
  residentialArea?: string | null | undefined;
6999
7955
  street?: string | null | undefined;
7000
7956
  zipCode?: string | null | undefined;
7957
+ } | {
7958
+ firstname: string;
7959
+ surname: string;
7960
+ middlename?: string | null | undefined;
7001
7961
  } | {
7002
7962
  country: string;
7003
7963
  district: string;
@@ -7020,14 +7980,17 @@ export declare const EventDocument: z.ZodObject<{
7020
7980
  option: string;
7021
7981
  filename: string;
7022
7982
  originalFilename: string;
7023
- }[] | undefined> | undefined;
7024
- originalActionId?: string | undefined;
7983
+ }[] | [string, string] | null | undefined> | null | undefined;
7984
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7025
7985
  } | {
7026
7986
  type: "CREATE";
7027
- id: string;
7987
+ id: string & z.BRAND<"UUID">;
7028
7988
  status: "Rejected" | "Requested" | "Accepted";
7989
+ transactionId: string;
7990
+ createdByUserType: "system" | "user";
7029
7991
  createdAt: string;
7030
7992
  createdBy: string;
7993
+ createdByRole: string;
7031
7994
  declaration: Record<string, string | number | boolean | {
7032
7995
  type: string;
7033
7996
  filename: string;
@@ -7043,6 +8006,10 @@ export declare const EventDocument: z.ZodObject<{
7043
8006
  residentialArea?: string | null | undefined;
7044
8007
  street?: string | null | undefined;
7045
8008
  zipCode?: string | null | undefined;
8009
+ } | {
8010
+ firstname: string;
8011
+ surname: string;
8012
+ middlename?: string | null | undefined;
7046
8013
  } | {
7047
8014
  country: string;
7048
8015
  district: string;
@@ -7065,8 +8032,9 @@ export declare const EventDocument: z.ZodObject<{
7065
8032
  option: string;
7066
8033
  filename: string;
7067
8034
  originalFilename: string;
7068
- }[] | undefined>;
7069
- createdAtLocation: string;
8035
+ }[] | [string, string] | null | undefined>;
8036
+ createdBySignature?: string | null | undefined;
8037
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7070
8038
  annotation?: Record<string, string | number | boolean | {
7071
8039
  type: string;
7072
8040
  filename: string;
@@ -7082,6 +8050,10 @@ export declare const EventDocument: z.ZodObject<{
7082
8050
  residentialArea?: string | null | undefined;
7083
8051
  street?: string | null | undefined;
7084
8052
  zipCode?: string | null | undefined;
8053
+ } | {
8054
+ firstname: string;
8055
+ surname: string;
8056
+ middlename?: string | null | undefined;
7085
8057
  } | {
7086
8058
  country: string;
7087
8059
  district: string;
@@ -7104,14 +8076,17 @@ export declare const EventDocument: z.ZodObject<{
7104
8076
  option: string;
7105
8077
  filename: string;
7106
8078
  originalFilename: string;
7107
- }[] | undefined> | undefined;
7108
- originalActionId?: string | undefined;
8079
+ }[] | [string, string] | null | undefined> | null | undefined;
8080
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7109
8081
  } | {
7110
8082
  type: "NOTIFY";
7111
- id: string;
8083
+ id: string & z.BRAND<"UUID">;
7112
8084
  status: "Rejected" | "Requested" | "Accepted";
8085
+ transactionId: string;
8086
+ createdByUserType: "system" | "user";
7113
8087
  createdAt: string;
7114
8088
  createdBy: string;
8089
+ createdByRole: string;
7115
8090
  declaration: Record<string, string | number | boolean | {
7116
8091
  type: string;
7117
8092
  filename: string;
@@ -7127,6 +8102,10 @@ export declare const EventDocument: z.ZodObject<{
7127
8102
  residentialArea?: string | null | undefined;
7128
8103
  street?: string | null | undefined;
7129
8104
  zipCode?: string | null | undefined;
8105
+ } | {
8106
+ firstname: string;
8107
+ surname: string;
8108
+ middlename?: string | null | undefined;
7130
8109
  } | {
7131
8110
  country: string;
7132
8111
  district: string;
@@ -7149,8 +8128,9 @@ export declare const EventDocument: z.ZodObject<{
7149
8128
  option: string;
7150
8129
  filename: string;
7151
8130
  originalFilename: string;
7152
- }[] | undefined>;
7153
- createdAtLocation: string;
8131
+ }[] | [string, string] | null | undefined>;
8132
+ createdBySignature?: string | null | undefined;
8133
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7154
8134
  annotation?: Record<string, string | number | boolean | {
7155
8135
  type: string;
7156
8136
  filename: string;
@@ -7166,6 +8146,10 @@ export declare const EventDocument: z.ZodObject<{
7166
8146
  residentialArea?: string | null | undefined;
7167
8147
  street?: string | null | undefined;
7168
8148
  zipCode?: string | null | undefined;
8149
+ } | {
8150
+ firstname: string;
8151
+ surname: string;
8152
+ middlename?: string | null | undefined;
7169
8153
  } | {
7170
8154
  country: string;
7171
8155
  district: string;
@@ -7188,14 +8172,17 @@ export declare const EventDocument: z.ZodObject<{
7188
8172
  option: string;
7189
8173
  filename: string;
7190
8174
  originalFilename: string;
7191
- }[] | undefined> | undefined;
7192
- originalActionId?: string | undefined;
8175
+ }[] | [string, string] | null | undefined> | null | undefined;
8176
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7193
8177
  } | {
7194
8178
  type: "PRINT_CERTIFICATE";
7195
- id: string;
8179
+ id: string & z.BRAND<"UUID">;
7196
8180
  status: "Rejected" | "Requested" | "Accepted";
8181
+ transactionId: string;
8182
+ createdByUserType: "system" | "user";
7197
8183
  createdAt: string;
7198
8184
  createdBy: string;
8185
+ createdByRole: string;
7199
8186
  declaration: Record<string, string | number | boolean | {
7200
8187
  type: string;
7201
8188
  filename: string;
@@ -7211,6 +8198,10 @@ export declare const EventDocument: z.ZodObject<{
7211
8198
  residentialArea?: string | null | undefined;
7212
8199
  street?: string | null | undefined;
7213
8200
  zipCode?: string | null | undefined;
8201
+ } | {
8202
+ firstname: string;
8203
+ surname: string;
8204
+ middlename?: string | null | undefined;
7214
8205
  } | {
7215
8206
  country: string;
7216
8207
  district: string;
@@ -7233,8 +8224,9 @@ export declare const EventDocument: z.ZodObject<{
7233
8224
  option: string;
7234
8225
  filename: string;
7235
8226
  originalFilename: string;
7236
- }[] | undefined>;
7237
- createdAtLocation: string;
8227
+ }[] | [string, string] | null | undefined>;
8228
+ createdBySignature?: string | null | undefined;
8229
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7238
8230
  annotation?: Record<string, string | number | boolean | {
7239
8231
  type: string;
7240
8232
  filename: string;
@@ -7250,6 +8242,10 @@ export declare const EventDocument: z.ZodObject<{
7250
8242
  residentialArea?: string | null | undefined;
7251
8243
  street?: string | null | undefined;
7252
8244
  zipCode?: string | null | undefined;
8245
+ } | {
8246
+ firstname: string;
8247
+ surname: string;
8248
+ middlename?: string | null | undefined;
7253
8249
  } | {
7254
8250
  country: string;
7255
8251
  district: string;
@@ -7272,14 +8268,17 @@ export declare const EventDocument: z.ZodObject<{
7272
8268
  option: string;
7273
8269
  filename: string;
7274
8270
  originalFilename: string;
7275
- }[] | undefined> | undefined;
7276
- originalActionId?: string | undefined;
8271
+ }[] | [string, string] | null | undefined> | null | undefined;
8272
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7277
8273
  } | {
7278
8274
  type: "REQUEST_CORRECTION";
7279
- id: string;
8275
+ id: string & z.BRAND<"UUID">;
7280
8276
  status: "Rejected" | "Requested" | "Accepted";
8277
+ transactionId: string;
8278
+ createdByUserType: "system" | "user";
7281
8279
  createdAt: string;
7282
8280
  createdBy: string;
8281
+ createdByRole: string;
7283
8282
  declaration: Record<string, string | number | boolean | {
7284
8283
  type: string;
7285
8284
  filename: string;
@@ -7295,6 +8294,10 @@ export declare const EventDocument: z.ZodObject<{
7295
8294
  residentialArea?: string | null | undefined;
7296
8295
  street?: string | null | undefined;
7297
8296
  zipCode?: string | null | undefined;
8297
+ } | {
8298
+ firstname: string;
8299
+ surname: string;
8300
+ middlename?: string | null | undefined;
7298
8301
  } | {
7299
8302
  country: string;
7300
8303
  district: string;
@@ -7317,8 +8320,9 @@ export declare const EventDocument: z.ZodObject<{
7317
8320
  option: string;
7318
8321
  filename: string;
7319
8322
  originalFilename: string;
7320
- }[] | undefined>;
7321
- createdAtLocation: string;
8323
+ }[] | [string, string] | null | undefined>;
8324
+ createdBySignature?: string | null | undefined;
8325
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7322
8326
  annotation?: Record<string, string | number | boolean | {
7323
8327
  type: string;
7324
8328
  filename: string;
@@ -7334,6 +8338,10 @@ export declare const EventDocument: z.ZodObject<{
7334
8338
  residentialArea?: string | null | undefined;
7335
8339
  street?: string | null | undefined;
7336
8340
  zipCode?: string | null | undefined;
8341
+ } | {
8342
+ firstname: string;
8343
+ surname: string;
8344
+ middlename?: string | null | undefined;
7337
8345
  } | {
7338
8346
  country: string;
7339
8347
  district: string;
@@ -7356,14 +8364,17 @@ export declare const EventDocument: z.ZodObject<{
7356
8364
  option: string;
7357
8365
  filename: string;
7358
8366
  originalFilename: string;
7359
- }[] | undefined> | undefined;
7360
- originalActionId?: string | undefined;
8367
+ }[] | [string, string] | null | undefined> | null | undefined;
8368
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7361
8369
  } | {
7362
8370
  type: "APPROVE_CORRECTION";
7363
- id: string;
8371
+ id: string & z.BRAND<"UUID">;
7364
8372
  status: "Rejected" | "Requested" | "Accepted";
8373
+ transactionId: string;
8374
+ createdByUserType: "system" | "user";
7365
8375
  createdAt: string;
7366
8376
  createdBy: string;
8377
+ createdByRole: string;
7367
8378
  declaration: Record<string, string | number | boolean | {
7368
8379
  type: string;
7369
8380
  filename: string;
@@ -7379,6 +8390,10 @@ export declare const EventDocument: z.ZodObject<{
7379
8390
  residentialArea?: string | null | undefined;
7380
8391
  street?: string | null | undefined;
7381
8392
  zipCode?: string | null | undefined;
8393
+ } | {
8394
+ firstname: string;
8395
+ surname: string;
8396
+ middlename?: string | null | undefined;
7382
8397
  } | {
7383
8398
  country: string;
7384
8399
  district: string;
@@ -7401,9 +8416,10 @@ export declare const EventDocument: z.ZodObject<{
7401
8416
  option: string;
7402
8417
  filename: string;
7403
8418
  originalFilename: string;
7404
- }[] | undefined>;
7405
- createdAtLocation: string;
8419
+ }[] | [string, string] | null | undefined>;
7406
8420
  requestId: string;
8421
+ createdBySignature?: string | null | undefined;
8422
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7407
8423
  annotation?: Record<string, string | number | boolean | {
7408
8424
  type: string;
7409
8425
  filename: string;
@@ -7419,6 +8435,10 @@ export declare const EventDocument: z.ZodObject<{
7419
8435
  residentialArea?: string | null | undefined;
7420
8436
  street?: string | null | undefined;
7421
8437
  zipCode?: string | null | undefined;
8438
+ } | {
8439
+ firstname: string;
8440
+ surname: string;
8441
+ middlename?: string | null | undefined;
7422
8442
  } | {
7423
8443
  country: string;
7424
8444
  district: string;
@@ -7441,14 +8461,17 @@ export declare const EventDocument: z.ZodObject<{
7441
8461
  option: string;
7442
8462
  filename: string;
7443
8463
  originalFilename: string;
7444
- }[] | undefined> | undefined;
7445
- originalActionId?: string | undefined;
8464
+ }[] | [string, string] | null | undefined> | null | undefined;
8465
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7446
8466
  } | {
7447
8467
  type: "REJECT_CORRECTION";
7448
- id: string;
8468
+ id: string & z.BRAND<"UUID">;
7449
8469
  status: "Rejected" | "Requested" | "Accepted";
8470
+ transactionId: string;
8471
+ createdByUserType: "system" | "user";
7450
8472
  createdAt: string;
7451
8473
  createdBy: string;
8474
+ createdByRole: string;
7452
8475
  declaration: Record<string, string | number | boolean | {
7453
8476
  type: string;
7454
8477
  filename: string;
@@ -7464,6 +8487,10 @@ export declare const EventDocument: z.ZodObject<{
7464
8487
  residentialArea?: string | null | undefined;
7465
8488
  street?: string | null | undefined;
7466
8489
  zipCode?: string | null | undefined;
8490
+ } | {
8491
+ firstname: string;
8492
+ surname: string;
8493
+ middlename?: string | null | undefined;
7467
8494
  } | {
7468
8495
  country: string;
7469
8496
  district: string;
@@ -7486,9 +8513,10 @@ export declare const EventDocument: z.ZodObject<{
7486
8513
  option: string;
7487
8514
  filename: string;
7488
8515
  originalFilename: string;
7489
- }[] | undefined>;
7490
- createdAtLocation: string;
8516
+ }[] | [string, string] | null | undefined>;
7491
8517
  requestId: string;
8518
+ createdBySignature?: string | null | undefined;
8519
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7492
8520
  annotation?: Record<string, string | number | boolean | {
7493
8521
  type: string;
7494
8522
  filename: string;
@@ -7504,6 +8532,10 @@ export declare const EventDocument: z.ZodObject<{
7504
8532
  residentialArea?: string | null | undefined;
7505
8533
  street?: string | null | undefined;
7506
8534
  zipCode?: string | null | undefined;
8535
+ } | {
8536
+ firstname: string;
8537
+ surname: string;
8538
+ middlename?: string | null | undefined;
7507
8539
  } | {
7508
8540
  country: string;
7509
8541
  district: string;
@@ -7526,14 +8558,17 @@ export declare const EventDocument: z.ZodObject<{
7526
8558
  option: string;
7527
8559
  filename: string;
7528
8560
  originalFilename: string;
7529
- }[] | undefined> | undefined;
7530
- originalActionId?: string | undefined;
8561
+ }[] | [string, string] | null | undefined> | null | undefined;
8562
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7531
8563
  } | {
7532
8564
  type: "READ";
7533
- id: string;
8565
+ id: string & z.BRAND<"UUID">;
7534
8566
  status: "Rejected" | "Requested" | "Accepted";
8567
+ transactionId: string;
8568
+ createdByUserType: "system" | "user";
7535
8569
  createdAt: string;
7536
8570
  createdBy: string;
8571
+ createdByRole: string;
7537
8572
  declaration: Record<string, string | number | boolean | {
7538
8573
  type: string;
7539
8574
  filename: string;
@@ -7549,6 +8584,10 @@ export declare const EventDocument: z.ZodObject<{
7549
8584
  residentialArea?: string | null | undefined;
7550
8585
  street?: string | null | undefined;
7551
8586
  zipCode?: string | null | undefined;
8587
+ } | {
8588
+ firstname: string;
8589
+ surname: string;
8590
+ middlename?: string | null | undefined;
7552
8591
  } | {
7553
8592
  country: string;
7554
8593
  district: string;
@@ -7571,8 +8610,9 @@ export declare const EventDocument: z.ZodObject<{
7571
8610
  option: string;
7572
8611
  filename: string;
7573
8612
  originalFilename: string;
7574
- }[] | undefined>;
7575
- createdAtLocation: string;
8613
+ }[] | [string, string] | null | undefined>;
8614
+ createdBySignature?: string | null | undefined;
8615
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7576
8616
  annotation?: Record<string, string | number | boolean | {
7577
8617
  type: string;
7578
8618
  filename: string;
@@ -7588,6 +8628,10 @@ export declare const EventDocument: z.ZodObject<{
7588
8628
  residentialArea?: string | null | undefined;
7589
8629
  street?: string | null | undefined;
7590
8630
  zipCode?: string | null | undefined;
8631
+ } | {
8632
+ firstname: string;
8633
+ surname: string;
8634
+ middlename?: string | null | undefined;
7591
8635
  } | {
7592
8636
  country: string;
7593
8637
  district: string;
@@ -7610,14 +8654,20 @@ export declare const EventDocument: z.ZodObject<{
7610
8654
  option: string;
7611
8655
  filename: string;
7612
8656
  originalFilename: string;
7613
- }[] | undefined> | undefined;
7614
- originalActionId?: string | undefined;
8657
+ }[] | [string, string] | null | undefined> | null | undefined;
8658
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7615
8659
  } | {
7616
8660
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7617
- id: string;
8661
+ id: string & z.BRAND<"UUID">;
7618
8662
  status: "Rejected";
8663
+ transactionId: string;
8664
+ createdByUserType: "system" | "user";
7619
8665
  createdAt: string;
7620
- 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;
7621
8671
  })[];
7622
8672
  trackingId: string;
7623
8673
  }, {
@@ -7629,8 +8679,11 @@ export declare const EventDocument: z.ZodObject<{
7629
8679
  type: "ASSIGN";
7630
8680
  id: string;
7631
8681
  status: "Rejected" | "Requested" | "Accepted";
8682
+ transactionId: string;
8683
+ createdByUserType: "system" | "user";
7632
8684
  createdAt: string;
7633
8685
  createdBy: string;
8686
+ createdByRole: string;
7634
8687
  declaration: Record<string, string | number | boolean | {
7635
8688
  type: string;
7636
8689
  filename: string;
@@ -7646,6 +8699,10 @@ export declare const EventDocument: z.ZodObject<{
7646
8699
  residentialArea?: string | null | undefined;
7647
8700
  street?: string | null | undefined;
7648
8701
  zipCode?: string | null | undefined;
8702
+ } | {
8703
+ firstname: string;
8704
+ surname: string;
8705
+ middlename?: string | null | undefined;
7649
8706
  } | {
7650
8707
  country: string;
7651
8708
  district: string;
@@ -7668,9 +8725,10 @@ export declare const EventDocument: z.ZodObject<{
7668
8725
  option: string;
7669
8726
  filename: string;
7670
8727
  originalFilename: string;
7671
- }[] | undefined>;
7672
- createdAtLocation: string;
8728
+ }[] | [string, string] | null | undefined>;
7673
8729
  assignedTo: string;
8730
+ createdBySignature?: string | null | undefined;
8731
+ createdAtLocation?: string | null | undefined;
7674
8732
  annotation?: Record<string, string | number | boolean | {
7675
8733
  type: string;
7676
8734
  filename: string;
@@ -7686,6 +8744,10 @@ export declare const EventDocument: z.ZodObject<{
7686
8744
  residentialArea?: string | null | undefined;
7687
8745
  street?: string | null | undefined;
7688
8746
  zipCode?: string | null | undefined;
8747
+ } | {
8748
+ firstname: string;
8749
+ surname: string;
8750
+ middlename?: string | null | undefined;
7689
8751
  } | {
7690
8752
  country: string;
7691
8753
  district: string;
@@ -7708,14 +8770,17 @@ export declare const EventDocument: z.ZodObject<{
7708
8770
  option: string;
7709
8771
  filename: string;
7710
8772
  originalFilename: string;
7711
- }[] | undefined> | undefined;
7712
- originalActionId?: string | undefined;
8773
+ }[] | [string, string] | null | undefined> | null | undefined;
8774
+ originalActionId?: string | null | undefined;
7713
8775
  } | {
7714
8776
  type: "UNASSIGN";
7715
8777
  id: string;
7716
8778
  status: "Rejected" | "Requested" | "Accepted";
8779
+ transactionId: string;
8780
+ createdByUserType: "system" | "user";
7717
8781
  createdAt: string;
7718
8782
  createdBy: string;
8783
+ createdByRole: string;
7719
8784
  declaration: Record<string, string | number | boolean | {
7720
8785
  type: string;
7721
8786
  filename: string;
@@ -7731,6 +8796,10 @@ export declare const EventDocument: z.ZodObject<{
7731
8796
  residentialArea?: string | null | undefined;
7732
8797
  street?: string | null | undefined;
7733
8798
  zipCode?: string | null | undefined;
8799
+ } | {
8800
+ firstname: string;
8801
+ surname: string;
8802
+ middlename?: string | null | undefined;
7734
8803
  } | {
7735
8804
  country: string;
7736
8805
  district: string;
@@ -7753,8 +8822,9 @@ export declare const EventDocument: z.ZodObject<{
7753
8822
  option: string;
7754
8823
  filename: string;
7755
8824
  originalFilename: string;
7756
- }[] | undefined>;
7757
- createdAtLocation: string;
8825
+ }[] | [string, string] | null | undefined>;
8826
+ createdBySignature?: string | null | undefined;
8827
+ createdAtLocation?: string | null | undefined;
7758
8828
  annotation?: Record<string, string | number | boolean | {
7759
8829
  type: string;
7760
8830
  filename: string;
@@ -7770,6 +8840,10 @@ export declare const EventDocument: z.ZodObject<{
7770
8840
  residentialArea?: string | null | undefined;
7771
8841
  street?: string | null | undefined;
7772
8842
  zipCode?: string | null | undefined;
8843
+ } | {
8844
+ firstname: string;
8845
+ surname: string;
8846
+ middlename?: string | null | undefined;
7773
8847
  } | {
7774
8848
  country: string;
7775
8849
  district: string;
@@ -7792,14 +8866,17 @@ export declare const EventDocument: z.ZodObject<{
7792
8866
  option: string;
7793
8867
  filename: string;
7794
8868
  originalFilename: string;
7795
- }[] | undefined> | undefined;
7796
- originalActionId?: string | undefined;
8869
+ }[] | [string, string] | null | undefined> | null | undefined;
8870
+ originalActionId?: string | null | undefined;
7797
8871
  } | {
7798
8872
  type: "REGISTER";
7799
8873
  id: string;
7800
8874
  status: "Rejected" | "Requested" | "Accepted";
8875
+ transactionId: string;
8876
+ createdByUserType: "system" | "user";
7801
8877
  createdAt: string;
7802
8878
  createdBy: string;
8879
+ createdByRole: string;
7803
8880
  declaration: Record<string, string | number | boolean | {
7804
8881
  type: string;
7805
8882
  filename: string;
@@ -7815,6 +8892,10 @@ export declare const EventDocument: z.ZodObject<{
7815
8892
  residentialArea?: string | null | undefined;
7816
8893
  street?: string | null | undefined;
7817
8894
  zipCode?: string | null | undefined;
8895
+ } | {
8896
+ firstname: string;
8897
+ surname: string;
8898
+ middlename?: string | null | undefined;
7818
8899
  } | {
7819
8900
  country: string;
7820
8901
  district: string;
@@ -7837,8 +8918,9 @@ export declare const EventDocument: z.ZodObject<{
7837
8918
  option: string;
7838
8919
  filename: string;
7839
8920
  originalFilename: string;
7840
- }[] | undefined>;
7841
- createdAtLocation: string;
8921
+ }[] | [string, string] | null | undefined>;
8922
+ createdBySignature?: string | null | undefined;
8923
+ createdAtLocation?: string | null | undefined;
7842
8924
  annotation?: Record<string, string | number | boolean | {
7843
8925
  type: string;
7844
8926
  filename: string;
@@ -7854,6 +8936,10 @@ export declare const EventDocument: z.ZodObject<{
7854
8936
  residentialArea?: string | null | undefined;
7855
8937
  street?: string | null | undefined;
7856
8938
  zipCode?: string | null | undefined;
8939
+ } | {
8940
+ firstname: string;
8941
+ surname: string;
8942
+ middlename?: string | null | undefined;
7857
8943
  } | {
7858
8944
  country: string;
7859
8945
  district: string;
@@ -7876,15 +8962,18 @@ export declare const EventDocument: z.ZodObject<{
7876
8962
  option: string;
7877
8963
  filename: string;
7878
8964
  originalFilename: string;
7879
- }[] | undefined> | undefined;
7880
- originalActionId?: string | undefined;
8965
+ }[] | [string, string] | null | undefined> | null | undefined;
8966
+ originalActionId?: string | null | undefined;
7881
8967
  registrationNumber?: string | undefined;
7882
8968
  } | {
7883
8969
  type: "DECLARE";
7884
8970
  id: string;
7885
8971
  status: "Rejected" | "Requested" | "Accepted";
8972
+ transactionId: string;
8973
+ createdByUserType: "system" | "user";
7886
8974
  createdAt: string;
7887
8975
  createdBy: string;
8976
+ createdByRole: string;
7888
8977
  declaration: Record<string, string | number | boolean | {
7889
8978
  type: string;
7890
8979
  filename: string;
@@ -7900,6 +8989,10 @@ export declare const EventDocument: z.ZodObject<{
7900
8989
  residentialArea?: string | null | undefined;
7901
8990
  street?: string | null | undefined;
7902
8991
  zipCode?: string | null | undefined;
8992
+ } | {
8993
+ firstname: string;
8994
+ surname: string;
8995
+ middlename?: string | null | undefined;
7903
8996
  } | {
7904
8997
  country: string;
7905
8998
  district: string;
@@ -7922,8 +9015,9 @@ export declare const EventDocument: z.ZodObject<{
7922
9015
  option: string;
7923
9016
  filename: string;
7924
9017
  originalFilename: string;
7925
- }[] | undefined>;
7926
- createdAtLocation: string;
9018
+ }[] | [string, string] | null | undefined>;
9019
+ createdBySignature?: string | null | undefined;
9020
+ createdAtLocation?: string | null | undefined;
7927
9021
  annotation?: Record<string, string | number | boolean | {
7928
9022
  type: string;
7929
9023
  filename: string;
@@ -7939,6 +9033,10 @@ export declare const EventDocument: z.ZodObject<{
7939
9033
  residentialArea?: string | null | undefined;
7940
9034
  street?: string | null | undefined;
7941
9035
  zipCode?: string | null | undefined;
9036
+ } | {
9037
+ firstname: string;
9038
+ surname: string;
9039
+ middlename?: string | null | undefined;
7942
9040
  } | {
7943
9041
  country: string;
7944
9042
  district: string;
@@ -7961,14 +9059,17 @@ export declare const EventDocument: z.ZodObject<{
7961
9059
  option: string;
7962
9060
  filename: string;
7963
9061
  originalFilename: string;
7964
- }[] | undefined> | undefined;
7965
- originalActionId?: string | undefined;
9062
+ }[] | [string, string] | null | undefined> | null | undefined;
9063
+ originalActionId?: string | null | undefined;
7966
9064
  } | {
7967
9065
  type: "VALIDATE";
7968
9066
  id: string;
7969
9067
  status: "Rejected" | "Requested" | "Accepted";
9068
+ transactionId: string;
9069
+ createdByUserType: "system" | "user";
7970
9070
  createdAt: string;
7971
9071
  createdBy: string;
9072
+ createdByRole: string;
7972
9073
  declaration: Record<string, string | number | boolean | {
7973
9074
  type: string;
7974
9075
  filename: string;
@@ -7984,6 +9085,10 @@ export declare const EventDocument: z.ZodObject<{
7984
9085
  residentialArea?: string | null | undefined;
7985
9086
  street?: string | null | undefined;
7986
9087
  zipCode?: string | null | undefined;
9088
+ } | {
9089
+ firstname: string;
9090
+ surname: string;
9091
+ middlename?: string | null | undefined;
7987
9092
  } | {
7988
9093
  country: string;
7989
9094
  district: string;
@@ -8006,8 +9111,9 @@ export declare const EventDocument: z.ZodObject<{
8006
9111
  option: string;
8007
9112
  filename: string;
8008
9113
  originalFilename: string;
8009
- }[] | undefined>;
8010
- createdAtLocation: string;
9114
+ }[] | [string, string] | null | undefined>;
9115
+ createdBySignature?: string | null | undefined;
9116
+ createdAtLocation?: string | null | undefined;
8011
9117
  annotation?: Record<string, string | number | boolean | {
8012
9118
  type: string;
8013
9119
  filename: string;
@@ -8023,6 +9129,10 @@ export declare const EventDocument: z.ZodObject<{
8023
9129
  residentialArea?: string | null | undefined;
8024
9130
  street?: string | null | undefined;
8025
9131
  zipCode?: string | null | undefined;
9132
+ } | {
9133
+ firstname: string;
9134
+ surname: string;
9135
+ middlename?: string | null | undefined;
8026
9136
  } | {
8027
9137
  country: string;
8028
9138
  district: string;
@@ -8045,14 +9155,21 @@ export declare const EventDocument: z.ZodObject<{
8045
9155
  option: string;
8046
9156
  filename: string;
8047
9157
  originalFilename: string;
8048
- }[] | undefined> | undefined;
8049
- originalActionId?: string | undefined;
9158
+ }[] | [string, string] | null | undefined> | null | undefined;
9159
+ originalActionId?: string | null | undefined;
8050
9160
  } | {
8051
9161
  type: "REJECT";
8052
9162
  id: string;
8053
9163
  status: "Rejected" | "Requested" | "Accepted";
9164
+ reason: {
9165
+ message: string;
9166
+ isDuplicate?: boolean | undefined;
9167
+ };
9168
+ transactionId: string;
9169
+ createdByUserType: "system" | "user";
8054
9170
  createdAt: string;
8055
9171
  createdBy: string;
9172
+ createdByRole: string;
8056
9173
  declaration: Record<string, string | number | boolean | {
8057
9174
  type: string;
8058
9175
  filename: string;
@@ -8068,6 +9185,10 @@ export declare const EventDocument: z.ZodObject<{
8068
9185
  residentialArea?: string | null | undefined;
8069
9186
  street?: string | null | undefined;
8070
9187
  zipCode?: string | null | undefined;
9188
+ } | {
9189
+ firstname: string;
9190
+ surname: string;
9191
+ middlename?: string | null | undefined;
8071
9192
  } | {
8072
9193
  country: string;
8073
9194
  district: string;
@@ -8090,8 +9211,9 @@ export declare const EventDocument: z.ZodObject<{
8090
9211
  option: string;
8091
9212
  filename: string;
8092
9213
  originalFilename: string;
8093
- }[] | undefined>;
8094
- createdAtLocation: string;
9214
+ }[] | [string, string] | null | undefined>;
9215
+ createdBySignature?: string | null | undefined;
9216
+ createdAtLocation?: string | null | undefined;
8095
9217
  annotation?: Record<string, string | number | boolean | {
8096
9218
  type: string;
8097
9219
  filename: string;
@@ -8107,6 +9229,10 @@ export declare const EventDocument: z.ZodObject<{
8107
9229
  residentialArea?: string | null | undefined;
8108
9230
  street?: string | null | undefined;
8109
9231
  zipCode?: string | null | undefined;
9232
+ } | {
9233
+ firstname: string;
9234
+ surname: string;
9235
+ middlename?: string | null | undefined;
8110
9236
  } | {
8111
9237
  country: string;
8112
9238
  district: string;
@@ -8129,14 +9255,17 @@ export declare const EventDocument: z.ZodObject<{
8129
9255
  option: string;
8130
9256
  filename: string;
8131
9257
  originalFilename: string;
8132
- }[] | undefined> | undefined;
8133
- originalActionId?: string | undefined;
9258
+ }[] | [string, string] | null | undefined> | null | undefined;
9259
+ originalActionId?: string | null | undefined;
8134
9260
  } | {
8135
9261
  type: "MARKED_AS_DUPLICATE";
8136
9262
  id: string;
8137
9263
  status: "Rejected" | "Requested" | "Accepted";
9264
+ transactionId: string;
9265
+ createdByUserType: "system" | "user";
8138
9266
  createdAt: string;
8139
9267
  createdBy: string;
9268
+ createdByRole: string;
8140
9269
  declaration: Record<string, string | number | boolean | {
8141
9270
  type: string;
8142
9271
  filename: string;
@@ -8152,6 +9281,10 @@ export declare const EventDocument: z.ZodObject<{
8152
9281
  residentialArea?: string | null | undefined;
8153
9282
  street?: string | null | undefined;
8154
9283
  zipCode?: string | null | undefined;
9284
+ } | {
9285
+ firstname: string;
9286
+ surname: string;
9287
+ middlename?: string | null | undefined;
8155
9288
  } | {
8156
9289
  country: string;
8157
9290
  district: string;
@@ -8174,8 +9307,9 @@ export declare const EventDocument: z.ZodObject<{
8174
9307
  option: string;
8175
9308
  filename: string;
8176
9309
  originalFilename: string;
8177
- }[] | undefined>;
8178
- createdAtLocation: string;
9310
+ }[] | [string, string] | null | undefined>;
9311
+ createdBySignature?: string | null | undefined;
9312
+ createdAtLocation?: string | null | undefined;
8179
9313
  annotation?: Record<string, string | number | boolean | {
8180
9314
  type: string;
8181
9315
  filename: string;
@@ -8191,6 +9325,10 @@ export declare const EventDocument: z.ZodObject<{
8191
9325
  residentialArea?: string | null | undefined;
8192
9326
  street?: string | null | undefined;
8193
9327
  zipCode?: string | null | undefined;
9328
+ } | {
9329
+ firstname: string;
9330
+ surname: string;
9331
+ middlename?: string | null | undefined;
8194
9332
  } | {
8195
9333
  country: string;
8196
9334
  district: string;
@@ -8213,14 +9351,21 @@ export declare const EventDocument: z.ZodObject<{
8213
9351
  option: string;
8214
9352
  filename: string;
8215
9353
  originalFilename: string;
8216
- }[] | undefined> | undefined;
8217
- originalActionId?: string | undefined;
9354
+ }[] | [string, string] | null | undefined> | null | undefined;
9355
+ originalActionId?: string | null | undefined;
8218
9356
  } | {
8219
9357
  type: "ARCHIVE";
8220
9358
  id: string;
8221
9359
  status: "Rejected" | "Requested" | "Accepted";
9360
+ reason: {
9361
+ message: string;
9362
+ isDuplicate?: boolean | undefined;
9363
+ };
9364
+ transactionId: string;
9365
+ createdByUserType: "system" | "user";
8222
9366
  createdAt: string;
8223
9367
  createdBy: string;
9368
+ createdByRole: string;
8224
9369
  declaration: Record<string, string | number | boolean | {
8225
9370
  type: string;
8226
9371
  filename: string;
@@ -8236,6 +9381,10 @@ export declare const EventDocument: z.ZodObject<{
8236
9381
  residentialArea?: string | null | undefined;
8237
9382
  street?: string | null | undefined;
8238
9383
  zipCode?: string | null | undefined;
9384
+ } | {
9385
+ firstname: string;
9386
+ surname: string;
9387
+ middlename?: string | null | undefined;
8239
9388
  } | {
8240
9389
  country: string;
8241
9390
  district: string;
@@ -8258,8 +9407,9 @@ export declare const EventDocument: z.ZodObject<{
8258
9407
  option: string;
8259
9408
  filename: string;
8260
9409
  originalFilename: string;
8261
- }[] | undefined>;
8262
- createdAtLocation: string;
9410
+ }[] | [string, string] | null | undefined>;
9411
+ createdBySignature?: string | null | undefined;
9412
+ createdAtLocation?: string | null | undefined;
8263
9413
  annotation?: Record<string, string | number | boolean | {
8264
9414
  type: string;
8265
9415
  filename: string;
@@ -8275,6 +9425,10 @@ export declare const EventDocument: z.ZodObject<{
8275
9425
  residentialArea?: string | null | undefined;
8276
9426
  street?: string | null | undefined;
8277
9427
  zipCode?: string | null | undefined;
9428
+ } | {
9429
+ firstname: string;
9430
+ surname: string;
9431
+ middlename?: string | null | undefined;
8278
9432
  } | {
8279
9433
  country: string;
8280
9434
  district: string;
@@ -8297,14 +9451,17 @@ export declare const EventDocument: z.ZodObject<{
8297
9451
  option: string;
8298
9452
  filename: string;
8299
9453
  originalFilename: string;
8300
- }[] | undefined> | undefined;
8301
- originalActionId?: string | undefined;
9454
+ }[] | [string, string] | null | undefined> | null | undefined;
9455
+ originalActionId?: string | null | undefined;
8302
9456
  } | {
8303
9457
  type: "CREATE";
8304
9458
  id: string;
8305
9459
  status: "Rejected" | "Requested" | "Accepted";
9460
+ transactionId: string;
9461
+ createdByUserType: "system" | "user";
8306
9462
  createdAt: string;
8307
9463
  createdBy: string;
9464
+ createdByRole: string;
8308
9465
  declaration: Record<string, string | number | boolean | {
8309
9466
  type: string;
8310
9467
  filename: string;
@@ -8320,6 +9477,10 @@ export declare const EventDocument: z.ZodObject<{
8320
9477
  residentialArea?: string | null | undefined;
8321
9478
  street?: string | null | undefined;
8322
9479
  zipCode?: string | null | undefined;
9480
+ } | {
9481
+ firstname: string;
9482
+ surname: string;
9483
+ middlename?: string | null | undefined;
8323
9484
  } | {
8324
9485
  country: string;
8325
9486
  district: string;
@@ -8342,8 +9503,9 @@ export declare const EventDocument: z.ZodObject<{
8342
9503
  option: string;
8343
9504
  filename: string;
8344
9505
  originalFilename: string;
8345
- }[] | undefined>;
8346
- createdAtLocation: string;
9506
+ }[] | [string, string] | null | undefined>;
9507
+ createdBySignature?: string | null | undefined;
9508
+ createdAtLocation?: string | null | undefined;
8347
9509
  annotation?: Record<string, string | number | boolean | {
8348
9510
  type: string;
8349
9511
  filename: string;
@@ -8359,6 +9521,10 @@ export declare const EventDocument: z.ZodObject<{
8359
9521
  residentialArea?: string | null | undefined;
8360
9522
  street?: string | null | undefined;
8361
9523
  zipCode?: string | null | undefined;
9524
+ } | {
9525
+ firstname: string;
9526
+ surname: string;
9527
+ middlename?: string | null | undefined;
8362
9528
  } | {
8363
9529
  country: string;
8364
9530
  district: string;
@@ -8381,14 +9547,17 @@ export declare const EventDocument: z.ZodObject<{
8381
9547
  option: string;
8382
9548
  filename: string;
8383
9549
  originalFilename: string;
8384
- }[] | undefined> | undefined;
8385
- originalActionId?: string | undefined;
9550
+ }[] | [string, string] | null | undefined> | null | undefined;
9551
+ originalActionId?: string | null | undefined;
8386
9552
  } | {
8387
9553
  type: "NOTIFY";
8388
9554
  id: string;
8389
9555
  status: "Rejected" | "Requested" | "Accepted";
9556
+ transactionId: string;
9557
+ createdByUserType: "system" | "user";
8390
9558
  createdAt: string;
8391
9559
  createdBy: string;
9560
+ createdByRole: string;
8392
9561
  declaration: Record<string, string | number | boolean | {
8393
9562
  type: string;
8394
9563
  filename: string;
@@ -8404,6 +9573,10 @@ export declare const EventDocument: z.ZodObject<{
8404
9573
  residentialArea?: string | null | undefined;
8405
9574
  street?: string | null | undefined;
8406
9575
  zipCode?: string | null | undefined;
9576
+ } | {
9577
+ firstname: string;
9578
+ surname: string;
9579
+ middlename?: string | null | undefined;
8407
9580
  } | {
8408
9581
  country: string;
8409
9582
  district: string;
@@ -8426,8 +9599,9 @@ export declare const EventDocument: z.ZodObject<{
8426
9599
  option: string;
8427
9600
  filename: string;
8428
9601
  originalFilename: string;
8429
- }[] | undefined>;
8430
- createdAtLocation: string;
9602
+ }[] | [string, string] | null | undefined>;
9603
+ createdBySignature?: string | null | undefined;
9604
+ createdAtLocation?: string | null | undefined;
8431
9605
  annotation?: Record<string, string | number | boolean | {
8432
9606
  type: string;
8433
9607
  filename: string;
@@ -8443,6 +9617,10 @@ export declare const EventDocument: z.ZodObject<{
8443
9617
  residentialArea?: string | null | undefined;
8444
9618
  street?: string | null | undefined;
8445
9619
  zipCode?: string | null | undefined;
9620
+ } | {
9621
+ firstname: string;
9622
+ surname: string;
9623
+ middlename?: string | null | undefined;
8446
9624
  } | {
8447
9625
  country: string;
8448
9626
  district: string;
@@ -8465,14 +9643,17 @@ export declare const EventDocument: z.ZodObject<{
8465
9643
  option: string;
8466
9644
  filename: string;
8467
9645
  originalFilename: string;
8468
- }[] | undefined> | undefined;
8469
- originalActionId?: string | undefined;
9646
+ }[] | [string, string] | null | undefined> | null | undefined;
9647
+ originalActionId?: string | null | undefined;
8470
9648
  } | {
8471
9649
  type: "PRINT_CERTIFICATE";
8472
9650
  id: string;
8473
9651
  status: "Rejected" | "Requested" | "Accepted";
9652
+ transactionId: string;
9653
+ createdByUserType: "system" | "user";
8474
9654
  createdAt: string;
8475
9655
  createdBy: string;
9656
+ createdByRole: string;
8476
9657
  declaration: Record<string, string | number | boolean | {
8477
9658
  type: string;
8478
9659
  filename: string;
@@ -8488,6 +9669,10 @@ export declare const EventDocument: z.ZodObject<{
8488
9669
  residentialArea?: string | null | undefined;
8489
9670
  street?: string | null | undefined;
8490
9671
  zipCode?: string | null | undefined;
9672
+ } | {
9673
+ firstname: string;
9674
+ surname: string;
9675
+ middlename?: string | null | undefined;
8491
9676
  } | {
8492
9677
  country: string;
8493
9678
  district: string;
@@ -8510,8 +9695,9 @@ export declare const EventDocument: z.ZodObject<{
8510
9695
  option: string;
8511
9696
  filename: string;
8512
9697
  originalFilename: string;
8513
- }[] | undefined>;
8514
- createdAtLocation: string;
9698
+ }[] | [string, string] | null | undefined>;
9699
+ createdBySignature?: string | null | undefined;
9700
+ createdAtLocation?: string | null | undefined;
8515
9701
  annotation?: Record<string, string | number | boolean | {
8516
9702
  type: string;
8517
9703
  filename: string;
@@ -8527,6 +9713,10 @@ export declare const EventDocument: z.ZodObject<{
8527
9713
  residentialArea?: string | null | undefined;
8528
9714
  street?: string | null | undefined;
8529
9715
  zipCode?: string | null | undefined;
9716
+ } | {
9717
+ firstname: string;
9718
+ surname: string;
9719
+ middlename?: string | null | undefined;
8530
9720
  } | {
8531
9721
  country: string;
8532
9722
  district: string;
@@ -8549,14 +9739,17 @@ export declare const EventDocument: z.ZodObject<{
8549
9739
  option: string;
8550
9740
  filename: string;
8551
9741
  originalFilename: string;
8552
- }[] | undefined> | undefined;
8553
- originalActionId?: string | undefined;
9742
+ }[] | [string, string] | null | undefined> | null | undefined;
9743
+ originalActionId?: string | null | undefined;
8554
9744
  } | {
8555
9745
  type: "REQUEST_CORRECTION";
8556
9746
  id: string;
8557
9747
  status: "Rejected" | "Requested" | "Accepted";
9748
+ transactionId: string;
9749
+ createdByUserType: "system" | "user";
8558
9750
  createdAt: string;
8559
9751
  createdBy: string;
9752
+ createdByRole: string;
8560
9753
  declaration: Record<string, string | number | boolean | {
8561
9754
  type: string;
8562
9755
  filename: string;
@@ -8572,6 +9765,10 @@ export declare const EventDocument: z.ZodObject<{
8572
9765
  residentialArea?: string | null | undefined;
8573
9766
  street?: string | null | undefined;
8574
9767
  zipCode?: string | null | undefined;
9768
+ } | {
9769
+ firstname: string;
9770
+ surname: string;
9771
+ middlename?: string | null | undefined;
8575
9772
  } | {
8576
9773
  country: string;
8577
9774
  district: string;
@@ -8594,8 +9791,9 @@ export declare const EventDocument: z.ZodObject<{
8594
9791
  option: string;
8595
9792
  filename: string;
8596
9793
  originalFilename: string;
8597
- }[] | undefined>;
8598
- createdAtLocation: string;
9794
+ }[] | [string, string] | null | undefined>;
9795
+ createdBySignature?: string | null | undefined;
9796
+ createdAtLocation?: string | null | undefined;
8599
9797
  annotation?: Record<string, string | number | boolean | {
8600
9798
  type: string;
8601
9799
  filename: string;
@@ -8611,6 +9809,10 @@ export declare const EventDocument: z.ZodObject<{
8611
9809
  residentialArea?: string | null | undefined;
8612
9810
  street?: string | null | undefined;
8613
9811
  zipCode?: string | null | undefined;
9812
+ } | {
9813
+ firstname: string;
9814
+ surname: string;
9815
+ middlename?: string | null | undefined;
8614
9816
  } | {
8615
9817
  country: string;
8616
9818
  district: string;
@@ -8633,14 +9835,17 @@ export declare const EventDocument: z.ZodObject<{
8633
9835
  option: string;
8634
9836
  filename: string;
8635
9837
  originalFilename: string;
8636
- }[] | undefined> | undefined;
8637
- originalActionId?: string | undefined;
9838
+ }[] | [string, string] | null | undefined> | null | undefined;
9839
+ originalActionId?: string | null | undefined;
8638
9840
  } | {
8639
9841
  type: "APPROVE_CORRECTION";
8640
9842
  id: string;
8641
9843
  status: "Rejected" | "Requested" | "Accepted";
9844
+ transactionId: string;
9845
+ createdByUserType: "system" | "user";
8642
9846
  createdAt: string;
8643
9847
  createdBy: string;
9848
+ createdByRole: string;
8644
9849
  declaration: Record<string, string | number | boolean | {
8645
9850
  type: string;
8646
9851
  filename: string;
@@ -8656,6 +9861,10 @@ export declare const EventDocument: z.ZodObject<{
8656
9861
  residentialArea?: string | null | undefined;
8657
9862
  street?: string | null | undefined;
8658
9863
  zipCode?: string | null | undefined;
9864
+ } | {
9865
+ firstname: string;
9866
+ surname: string;
9867
+ middlename?: string | null | undefined;
8659
9868
  } | {
8660
9869
  country: string;
8661
9870
  district: string;
@@ -8678,9 +9887,10 @@ export declare const EventDocument: z.ZodObject<{
8678
9887
  option: string;
8679
9888
  filename: string;
8680
9889
  originalFilename: string;
8681
- }[] | undefined>;
8682
- createdAtLocation: string;
9890
+ }[] | [string, string] | null | undefined>;
8683
9891
  requestId: string;
9892
+ createdBySignature?: string | null | undefined;
9893
+ createdAtLocation?: string | null | undefined;
8684
9894
  annotation?: Record<string, string | number | boolean | {
8685
9895
  type: string;
8686
9896
  filename: string;
@@ -8696,6 +9906,10 @@ export declare const EventDocument: z.ZodObject<{
8696
9906
  residentialArea?: string | null | undefined;
8697
9907
  street?: string | null | undefined;
8698
9908
  zipCode?: string | null | undefined;
9909
+ } | {
9910
+ firstname: string;
9911
+ surname: string;
9912
+ middlename?: string | null | undefined;
8699
9913
  } | {
8700
9914
  country: string;
8701
9915
  district: string;
@@ -8718,14 +9932,17 @@ export declare const EventDocument: z.ZodObject<{
8718
9932
  option: string;
8719
9933
  filename: string;
8720
9934
  originalFilename: string;
8721
- }[] | undefined> | undefined;
8722
- originalActionId?: string | undefined;
9935
+ }[] | [string, string] | null | undefined> | null | undefined;
9936
+ originalActionId?: string | null | undefined;
8723
9937
  } | {
8724
9938
  type: "REJECT_CORRECTION";
8725
9939
  id: string;
8726
9940
  status: "Rejected" | "Requested" | "Accepted";
9941
+ transactionId: string;
9942
+ createdByUserType: "system" | "user";
8727
9943
  createdAt: string;
8728
9944
  createdBy: string;
9945
+ createdByRole: string;
8729
9946
  declaration: Record<string, string | number | boolean | {
8730
9947
  type: string;
8731
9948
  filename: string;
@@ -8741,6 +9958,10 @@ export declare const EventDocument: z.ZodObject<{
8741
9958
  residentialArea?: string | null | undefined;
8742
9959
  street?: string | null | undefined;
8743
9960
  zipCode?: string | null | undefined;
9961
+ } | {
9962
+ firstname: string;
9963
+ surname: string;
9964
+ middlename?: string | null | undefined;
8744
9965
  } | {
8745
9966
  country: string;
8746
9967
  district: string;
@@ -8763,9 +9984,10 @@ export declare const EventDocument: z.ZodObject<{
8763
9984
  option: string;
8764
9985
  filename: string;
8765
9986
  originalFilename: string;
8766
- }[] | undefined>;
8767
- createdAtLocation: string;
9987
+ }[] | [string, string] | null | undefined>;
8768
9988
  requestId: string;
9989
+ createdBySignature?: string | null | undefined;
9990
+ createdAtLocation?: string | null | undefined;
8769
9991
  annotation?: Record<string, string | number | boolean | {
8770
9992
  type: string;
8771
9993
  filename: string;
@@ -8781,6 +10003,10 @@ export declare const EventDocument: z.ZodObject<{
8781
10003
  residentialArea?: string | null | undefined;
8782
10004
  street?: string | null | undefined;
8783
10005
  zipCode?: string | null | undefined;
10006
+ } | {
10007
+ firstname: string;
10008
+ surname: string;
10009
+ middlename?: string | null | undefined;
8784
10010
  } | {
8785
10011
  country: string;
8786
10012
  district: string;
@@ -8803,14 +10029,17 @@ export declare const EventDocument: z.ZodObject<{
8803
10029
  option: string;
8804
10030
  filename: string;
8805
10031
  originalFilename: string;
8806
- }[] | undefined> | undefined;
8807
- originalActionId?: string | undefined;
10032
+ }[] | [string, string] | null | undefined> | null | undefined;
10033
+ originalActionId?: string | null | undefined;
8808
10034
  } | {
8809
10035
  type: "READ";
8810
10036
  id: string;
8811
10037
  status: "Rejected" | "Requested" | "Accepted";
10038
+ transactionId: string;
10039
+ createdByUserType: "system" | "user";
8812
10040
  createdAt: string;
8813
10041
  createdBy: string;
10042
+ createdByRole: string;
8814
10043
  declaration: Record<string, string | number | boolean | {
8815
10044
  type: string;
8816
10045
  filename: string;
@@ -8826,6 +10055,10 @@ export declare const EventDocument: z.ZodObject<{
8826
10055
  residentialArea?: string | null | undefined;
8827
10056
  street?: string | null | undefined;
8828
10057
  zipCode?: string | null | undefined;
10058
+ } | {
10059
+ firstname: string;
10060
+ surname: string;
10061
+ middlename?: string | null | undefined;
8829
10062
  } | {
8830
10063
  country: string;
8831
10064
  district: string;
@@ -8848,8 +10081,9 @@ export declare const EventDocument: z.ZodObject<{
8848
10081
  option: string;
8849
10082
  filename: string;
8850
10083
  originalFilename: string;
8851
- }[] | undefined>;
8852
- createdAtLocation: string;
10084
+ }[] | [string, string] | null | undefined>;
10085
+ createdBySignature?: string | null | undefined;
10086
+ createdAtLocation?: string | null | undefined;
8853
10087
  annotation?: Record<string, string | number | boolean | {
8854
10088
  type: string;
8855
10089
  filename: string;
@@ -8865,6 +10099,10 @@ export declare const EventDocument: z.ZodObject<{
8865
10099
  residentialArea?: string | null | undefined;
8866
10100
  street?: string | null | undefined;
8867
10101
  zipCode?: string | null | undefined;
10102
+ } | {
10103
+ firstname: string;
10104
+ surname: string;
10105
+ middlename?: string | null | undefined;
8868
10106
  } | {
8869
10107
  country: string;
8870
10108
  district: string;
@@ -8887,14 +10125,20 @@ export declare const EventDocument: z.ZodObject<{
8887
10125
  option: string;
8888
10126
  filename: string;
8889
10127
  originalFilename: string;
8890
- }[] | undefined> | undefined;
8891
- originalActionId?: string | undefined;
10128
+ }[] | [string, string] | null | undefined> | null | undefined;
10129
+ originalActionId?: string | null | undefined;
8892
10130
  } | {
8893
10131
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
8894
10132
  id: string;
8895
10133
  status: "Rejected";
10134
+ transactionId: string;
10135
+ createdByUserType: "system" | "user";
8896
10136
  createdAt: string;
8897
- originalActionId?: string | undefined;
10137
+ createdBy: string;
10138
+ createdByRole: string;
10139
+ createdBySignature?: string | null | undefined;
10140
+ createdAtLocation?: string | null | undefined;
10141
+ originalActionId?: string | null | undefined;
8898
10142
  })[];
8899
10143
  trackingId: string;
8900
10144
  }>;