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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/commons/api/router.d.ts +14932 -5124
  2. package/dist/commons/conditionals/conditionals.d.ts +6 -2
  3. package/dist/commons/conditionals/validate.d.ts +6 -0
  4. package/dist/commons/events/ActionConfig.d.ts +32976 -12647
  5. package/dist/commons/events/ActionDocument.d.ts +2005 -309
  6. package/dist/commons/events/ActionInput.d.ts +1455 -183
  7. package/dist/commons/events/ActionType.d.ts +6 -0
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +279 -3
  9. package/dist/commons/events/CompositeFieldValue.d.ts +28 -0
  10. package/dist/commons/events/Constants.d.ts +3 -0
  11. package/dist/commons/events/CountryConfigQueryInput.d.ts +314 -254
  12. package/dist/commons/events/CreatedAtLocation.d.ts +3 -0
  13. package/dist/commons/events/Draft.d.ts +127 -21
  14. package/dist/commons/events/EventConfig.d.ts +22415 -12245
  15. package/dist/commons/events/EventDocument.d.ts +1308 -232
  16. package/dist/commons/events/EventIndex.d.ts +616 -423
  17. package/dist/commons/events/EventMetadata.d.ts +104 -81
  18. package/dist/commons/events/FieldConfig.d.ts +2082 -1191
  19. package/dist/commons/events/FieldType.d.ts +4 -1
  20. package/dist/commons/events/FieldTypeMapping.d.ts +94 -52
  21. package/dist/commons/events/FieldValue.d.ts +43 -5
  22. package/dist/commons/events/FormConfig.d.ts +10259 -4769
  23. package/dist/commons/events/PageConfig.d.ts +3480 -2134
  24. package/dist/commons/events/SummaryConfig.d.ts +0 -5
  25. package/dist/commons/events/WorkqueueColumnConfig.d.ts +17 -6
  26. package/dist/commons/events/WorkqueueConfig.d.ts +2589 -1640
  27. package/dist/commons/events/defineConfig.d.ts +2439 -679
  28. package/dist/commons/events/event.d.ts +2 -2
  29. package/dist/commons/events/field.d.ts +10 -10
  30. package/dist/commons/events/index.d.ts +2 -0
  31. package/dist/commons/events/scopes.d.ts +1 -2
  32. package/dist/commons/events/test.utils.d.ts +158 -40
  33. package/dist/commons/events/utils.d.ts +10021 -326
  34. package/dist/conditionals/index.js +26 -6
  35. package/dist/events/index.js +2401 -1217
  36. package/dist/scopes/index.d.ts +6 -2
  37. package/dist/scopes/index.js +70 -17
  38. package/package.json +1 -1
@@ -7,9 +7,12 @@ export declare const EventDocument: z.ZodObject<{
7
7
  actions: z.ZodArray<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
8
8
  id: z.ZodString;
9
9
  transactionId: z.ZodString;
10
+ createdByUserType: z.ZodEnum<["user", "system"]>;
10
11
  createdAt: z.ZodString;
11
12
  createdBy: z.ZodString;
12
13
  createdByRole: z.ZodString;
14
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
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<{
14
17
  filename: z.ZodString;
15
18
  originalFilename: z.ZodString;
@@ -123,7 +126,19 @@ export declare const EventDocument: z.ZodObject<{
123
126
  addressLine2?: string | null | undefined;
124
127
  addressLine3?: string | null | undefined;
125
128
  postcodeOrZip?: string | null | undefined;
126
- }>]>>;
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]>]>>;
127
142
  annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
128
143
  filename: z.ZodString;
129
144
  originalFilename: z.ZodString;
@@ -237,8 +252,19 @@ export declare const EventDocument: z.ZodObject<{
237
252
  addressLine2?: string | null | undefined;
238
253
  addressLine3?: string | null | undefined;
239
254
  postcodeOrZip?: string | null | undefined;
240
- }>]>>>;
241
- 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]>]>>>;
242
268
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
243
269
  originalActionId: z.ZodOptional<z.ZodString>;
244
270
  }, {
@@ -248,6 +274,7 @@ export declare const EventDocument: z.ZodObject<{
248
274
  id: string;
249
275
  status: "Rejected" | "Requested" | "Accepted";
250
276
  transactionId: string;
277
+ createdByUserType: "system" | "user";
251
278
  createdAt: string;
252
279
  createdBy: string;
253
280
  createdByRole: string;
@@ -266,6 +293,10 @@ export declare const EventDocument: z.ZodObject<{
266
293
  residentialArea?: string | null | undefined;
267
294
  street?: string | null | undefined;
268
295
  zipCode?: string | null | undefined;
296
+ } | {
297
+ firstname: string;
298
+ surname: string;
299
+ middlename?: string | null | undefined;
269
300
  } | {
270
301
  country: string;
271
302
  district: string;
@@ -288,8 +319,9 @@ export declare const EventDocument: z.ZodObject<{
288
319
  option: string;
289
320
  filename: string;
290
321
  originalFilename: string;
291
- }[] | [string, string] | undefined>;
292
- createdAtLocation: string;
322
+ }[] | [string, string] | null | undefined>;
323
+ createdBySignature?: string | null | undefined;
324
+ createdAtLocation?: string | null | undefined;
293
325
  annotation?: Record<string, string | number | boolean | {
294
326
  type: string;
295
327
  filename: string;
@@ -305,6 +337,10 @@ export declare const EventDocument: z.ZodObject<{
305
337
  residentialArea?: string | null | undefined;
306
338
  street?: string | null | undefined;
307
339
  zipCode?: string | null | undefined;
340
+ } | {
341
+ firstname: string;
342
+ surname: string;
343
+ middlename?: string | null | undefined;
308
344
  } | {
309
345
  country: string;
310
346
  district: string;
@@ -327,13 +363,14 @@ export declare const EventDocument: z.ZodObject<{
327
363
  option: string;
328
364
  filename: string;
329
365
  originalFilename: string;
330
- }[] | [string, string] | undefined> | undefined;
366
+ }[] | [string, string] | null | undefined> | undefined;
331
367
  originalActionId?: string | undefined;
332
368
  }, {
333
369
  type: "CREATE";
334
370
  id: string;
335
371
  status: "Rejected" | "Requested" | "Accepted";
336
372
  transactionId: string;
373
+ createdByUserType: "system" | "user";
337
374
  createdAt: string;
338
375
  createdBy: string;
339
376
  createdByRole: string;
@@ -352,6 +389,10 @@ export declare const EventDocument: z.ZodObject<{
352
389
  residentialArea?: string | null | undefined;
353
390
  street?: string | null | undefined;
354
391
  zipCode?: string | null | undefined;
392
+ } | {
393
+ firstname: string;
394
+ surname: string;
395
+ middlename?: string | null | undefined;
355
396
  } | {
356
397
  country: string;
357
398
  district: string;
@@ -374,8 +415,9 @@ export declare const EventDocument: z.ZodObject<{
374
415
  option: string;
375
416
  filename: string;
376
417
  originalFilename: string;
377
- }[] | [string, string] | undefined>;
378
- createdAtLocation: string;
418
+ }[] | [string, string] | null | undefined>;
419
+ createdBySignature?: string | null | undefined;
420
+ createdAtLocation?: string | null | undefined;
379
421
  annotation?: Record<string, string | number | boolean | {
380
422
  type: string;
381
423
  filename: string;
@@ -391,6 +433,10 @@ export declare const EventDocument: z.ZodObject<{
391
433
  residentialArea?: string | null | undefined;
392
434
  street?: string | null | undefined;
393
435
  zipCode?: string | null | undefined;
436
+ } | {
437
+ firstname: string;
438
+ surname: string;
439
+ middlename?: string | null | undefined;
394
440
  } | {
395
441
  country: string;
396
442
  district: string;
@@ -413,14 +459,17 @@ export declare const EventDocument: z.ZodObject<{
413
459
  option: string;
414
460
  filename: string;
415
461
  originalFilename: string;
416
- }[] | [string, string] | undefined> | undefined;
462
+ }[] | [string, string] | null | undefined> | undefined;
417
463
  originalActionId?: string | undefined;
418
464
  }>, z.ZodObject<z.objectUtil.extendShape<{
419
465
  id: z.ZodString;
420
466
  transactionId: z.ZodString;
467
+ createdByUserType: z.ZodEnum<["user", "system"]>;
421
468
  createdAt: z.ZodString;
422
469
  createdBy: z.ZodString;
423
470
  createdByRole: z.ZodString;
471
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
472
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
424
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<{
425
474
  filename: z.ZodString;
426
475
  originalFilename: z.ZodString;
@@ -534,7 +583,19 @@ export declare const EventDocument: z.ZodObject<{
534
583
  addressLine2?: string | null | undefined;
535
584
  addressLine3?: string | null | undefined;
536
585
  postcodeOrZip?: string | null | undefined;
537
- }>]>>;
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]>]>>;
538
599
  annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
539
600
  filename: z.ZodString;
540
601
  originalFilename: z.ZodString;
@@ -648,8 +709,19 @@ export declare const EventDocument: z.ZodObject<{
648
709
  addressLine2?: string | null | undefined;
649
710
  addressLine3?: string | null | undefined;
650
711
  postcodeOrZip?: string | null | undefined;
651
- }>]>>>;
652
- 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]>]>>>;
653
725
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
654
726
  originalActionId: z.ZodOptional<z.ZodString>;
655
727
  }, {
@@ -659,6 +731,7 @@ export declare const EventDocument: z.ZodObject<{
659
731
  id: string;
660
732
  status: "Rejected" | "Requested" | "Accepted";
661
733
  transactionId: string;
734
+ createdByUserType: "system" | "user";
662
735
  createdAt: string;
663
736
  createdBy: string;
664
737
  createdByRole: string;
@@ -677,6 +750,10 @@ export declare const EventDocument: z.ZodObject<{
677
750
  residentialArea?: string | null | undefined;
678
751
  street?: string | null | undefined;
679
752
  zipCode?: string | null | undefined;
753
+ } | {
754
+ firstname: string;
755
+ surname: string;
756
+ middlename?: string | null | undefined;
680
757
  } | {
681
758
  country: string;
682
759
  district: string;
@@ -699,8 +776,9 @@ export declare const EventDocument: z.ZodObject<{
699
776
  option: string;
700
777
  filename: string;
701
778
  originalFilename: string;
702
- }[] | [string, string] | undefined>;
703
- createdAtLocation: string;
779
+ }[] | [string, string] | null | undefined>;
780
+ createdBySignature?: string | null | undefined;
781
+ createdAtLocation?: string | null | undefined;
704
782
  annotation?: Record<string, string | number | boolean | {
705
783
  type: string;
706
784
  filename: string;
@@ -716,6 +794,10 @@ export declare const EventDocument: z.ZodObject<{
716
794
  residentialArea?: string | null | undefined;
717
795
  street?: string | null | undefined;
718
796
  zipCode?: string | null | undefined;
797
+ } | {
798
+ firstname: string;
799
+ surname: string;
800
+ middlename?: string | null | undefined;
719
801
  } | {
720
802
  country: string;
721
803
  district: string;
@@ -738,13 +820,14 @@ export declare const EventDocument: z.ZodObject<{
738
820
  option: string;
739
821
  filename: string;
740
822
  originalFilename: string;
741
- }[] | [string, string] | undefined> | undefined;
823
+ }[] | [string, string] | null | undefined> | undefined;
742
824
  originalActionId?: string | undefined;
743
825
  }, {
744
826
  type: "VALIDATE";
745
827
  id: string;
746
828
  status: "Rejected" | "Requested" | "Accepted";
747
829
  transactionId: string;
830
+ createdByUserType: "system" | "user";
748
831
  createdAt: string;
749
832
  createdBy: string;
750
833
  createdByRole: string;
@@ -763,6 +846,10 @@ export declare const EventDocument: z.ZodObject<{
763
846
  residentialArea?: string | null | undefined;
764
847
  street?: string | null | undefined;
765
848
  zipCode?: string | null | undefined;
849
+ } | {
850
+ firstname: string;
851
+ surname: string;
852
+ middlename?: string | null | undefined;
766
853
  } | {
767
854
  country: string;
768
855
  district: string;
@@ -785,8 +872,9 @@ export declare const EventDocument: z.ZodObject<{
785
872
  option: string;
786
873
  filename: string;
787
874
  originalFilename: string;
788
- }[] | [string, string] | undefined>;
789
- createdAtLocation: string;
875
+ }[] | [string, string] | null | undefined>;
876
+ createdBySignature?: string | null | undefined;
877
+ createdAtLocation?: string | null | undefined;
790
878
  annotation?: Record<string, string | number | boolean | {
791
879
  type: string;
792
880
  filename: string;
@@ -802,6 +890,10 @@ export declare const EventDocument: z.ZodObject<{
802
890
  residentialArea?: string | null | undefined;
803
891
  street?: string | null | undefined;
804
892
  zipCode?: string | null | undefined;
893
+ } | {
894
+ firstname: string;
895
+ surname: string;
896
+ middlename?: string | null | undefined;
805
897
  } | {
806
898
  country: string;
807
899
  district: string;
@@ -824,14 +916,17 @@ export declare const EventDocument: z.ZodObject<{
824
916
  option: string;
825
917
  filename: string;
826
918
  originalFilename: string;
827
- }[] | [string, string] | undefined> | undefined;
919
+ }[] | [string, string] | null | undefined> | undefined;
828
920
  originalActionId?: string | undefined;
829
921
  }>, z.ZodObject<z.objectUtil.extendShape<{
830
922
  id: z.ZodString;
831
923
  transactionId: z.ZodString;
924
+ createdByUserType: z.ZodEnum<["user", "system"]>;
832
925
  createdAt: z.ZodString;
833
926
  createdBy: z.ZodString;
834
927
  createdByRole: z.ZodString;
928
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
929
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
835
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<{
836
931
  filename: z.ZodString;
837
932
  originalFilename: z.ZodString;
@@ -945,7 +1040,19 @@ export declare const EventDocument: z.ZodObject<{
945
1040
  addressLine2?: string | null | undefined;
946
1041
  addressLine3?: string | null | undefined;
947
1042
  postcodeOrZip?: string | null | undefined;
948
- }>]>>;
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]>]>>;
949
1056
  annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
950
1057
  filename: z.ZodString;
951
1058
  originalFilename: z.ZodString;
@@ -1059,17 +1166,43 @@ export declare const EventDocument: z.ZodObject<{
1059
1166
  addressLine2?: string | null | undefined;
1060
1167
  addressLine3?: string | null | undefined;
1061
1168
  postcodeOrZip?: string | null | undefined;
1062
- }>]>>>;
1063
- 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]>]>>>;
1064
1182
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1065
1183
  originalActionId: z.ZodOptional<z.ZodString>;
1066
1184
  }, {
1067
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
+ }>;
1068
1196
  }>, "strip", z.ZodTypeAny, {
1069
1197
  type: "REJECT";
1070
1198
  id: string;
1071
1199
  status: "Rejected" | "Requested" | "Accepted";
1200
+ reason: {
1201
+ message: string;
1202
+ isDuplicate?: boolean | undefined;
1203
+ };
1072
1204
  transactionId: string;
1205
+ createdByUserType: "system" | "user";
1073
1206
  createdAt: string;
1074
1207
  createdBy: string;
1075
1208
  createdByRole: string;
@@ -1088,6 +1221,10 @@ export declare const EventDocument: z.ZodObject<{
1088
1221
  residentialArea?: string | null | undefined;
1089
1222
  street?: string | null | undefined;
1090
1223
  zipCode?: string | null | undefined;
1224
+ } | {
1225
+ firstname: string;
1226
+ surname: string;
1227
+ middlename?: string | null | undefined;
1091
1228
  } | {
1092
1229
  country: string;
1093
1230
  district: string;
@@ -1110,8 +1247,9 @@ export declare const EventDocument: z.ZodObject<{
1110
1247
  option: string;
1111
1248
  filename: string;
1112
1249
  originalFilename: string;
1113
- }[] | [string, string] | undefined>;
1114
- createdAtLocation: string;
1250
+ }[] | [string, string] | null | undefined>;
1251
+ createdBySignature?: string | null | undefined;
1252
+ createdAtLocation?: string | null | undefined;
1115
1253
  annotation?: Record<string, string | number | boolean | {
1116
1254
  type: string;
1117
1255
  filename: string;
@@ -1127,6 +1265,10 @@ export declare const EventDocument: z.ZodObject<{
1127
1265
  residentialArea?: string | null | undefined;
1128
1266
  street?: string | null | undefined;
1129
1267
  zipCode?: string | null | undefined;
1268
+ } | {
1269
+ firstname: string;
1270
+ surname: string;
1271
+ middlename?: string | null | undefined;
1130
1272
  } | {
1131
1273
  country: string;
1132
1274
  district: string;
@@ -1149,13 +1291,18 @@ export declare const EventDocument: z.ZodObject<{
1149
1291
  option: string;
1150
1292
  filename: string;
1151
1293
  originalFilename: string;
1152
- }[] | [string, string] | undefined> | undefined;
1294
+ }[] | [string, string] | null | undefined> | undefined;
1153
1295
  originalActionId?: string | undefined;
1154
1296
  }, {
1155
1297
  type: "REJECT";
1156
1298
  id: string;
1157
1299
  status: "Rejected" | "Requested" | "Accepted";
1300
+ reason: {
1301
+ message: string;
1302
+ isDuplicate?: boolean | undefined;
1303
+ };
1158
1304
  transactionId: string;
1305
+ createdByUserType: "system" | "user";
1159
1306
  createdAt: string;
1160
1307
  createdBy: string;
1161
1308
  createdByRole: string;
@@ -1174,6 +1321,10 @@ export declare const EventDocument: z.ZodObject<{
1174
1321
  residentialArea?: string | null | undefined;
1175
1322
  street?: string | null | undefined;
1176
1323
  zipCode?: string | null | undefined;
1324
+ } | {
1325
+ firstname: string;
1326
+ surname: string;
1327
+ middlename?: string | null | undefined;
1177
1328
  } | {
1178
1329
  country: string;
1179
1330
  district: string;
@@ -1196,8 +1347,9 @@ export declare const EventDocument: z.ZodObject<{
1196
1347
  option: string;
1197
1348
  filename: string;
1198
1349
  originalFilename: string;
1199
- }[] | [string, string] | undefined>;
1200
- createdAtLocation: string;
1350
+ }[] | [string, string] | null | undefined>;
1351
+ createdBySignature?: string | null | undefined;
1352
+ createdAtLocation?: string | null | undefined;
1201
1353
  annotation?: Record<string, string | number | boolean | {
1202
1354
  type: string;
1203
1355
  filename: string;
@@ -1213,6 +1365,10 @@ export declare const EventDocument: z.ZodObject<{
1213
1365
  residentialArea?: string | null | undefined;
1214
1366
  street?: string | null | undefined;
1215
1367
  zipCode?: string | null | undefined;
1368
+ } | {
1369
+ firstname: string;
1370
+ surname: string;
1371
+ middlename?: string | null | undefined;
1216
1372
  } | {
1217
1373
  country: string;
1218
1374
  district: string;
@@ -1235,14 +1391,17 @@ export declare const EventDocument: z.ZodObject<{
1235
1391
  option: string;
1236
1392
  filename: string;
1237
1393
  originalFilename: string;
1238
- }[] | [string, string] | undefined> | undefined;
1394
+ }[] | [string, string] | null | undefined> | undefined;
1239
1395
  originalActionId?: string | undefined;
1240
1396
  }>, z.ZodObject<z.objectUtil.extendShape<{
1241
1397
  id: z.ZodString;
1242
1398
  transactionId: z.ZodString;
1399
+ createdByUserType: z.ZodEnum<["user", "system"]>;
1243
1400
  createdAt: z.ZodString;
1244
1401
  createdBy: z.ZodString;
1245
1402
  createdByRole: z.ZodString;
1403
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1404
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1246
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<{
1247
1406
  filename: z.ZodString;
1248
1407
  originalFilename: z.ZodString;
@@ -1356,7 +1515,19 @@ export declare const EventDocument: z.ZodObject<{
1356
1515
  addressLine2?: string | null | undefined;
1357
1516
  addressLine3?: string | null | undefined;
1358
1517
  postcodeOrZip?: string | null | undefined;
1359
- }>]>>;
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]>]>>;
1360
1531
  annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1361
1532
  filename: z.ZodString;
1362
1533
  originalFilename: z.ZodString;
@@ -1470,8 +1641,19 @@ export declare const EventDocument: z.ZodObject<{
1470
1641
  addressLine2?: string | null | undefined;
1471
1642
  addressLine3?: string | null | undefined;
1472
1643
  postcodeOrZip?: string | null | undefined;
1473
- }>]>>>;
1474
- 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]>]>>>;
1475
1657
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1476
1658
  originalActionId: z.ZodOptional<z.ZodString>;
1477
1659
  }, {
@@ -1481,6 +1663,7 @@ export declare const EventDocument: z.ZodObject<{
1481
1663
  id: string;
1482
1664
  status: "Rejected" | "Requested" | "Accepted";
1483
1665
  transactionId: string;
1666
+ createdByUserType: "system" | "user";
1484
1667
  createdAt: string;
1485
1668
  createdBy: string;
1486
1669
  createdByRole: string;
@@ -1499,6 +1682,10 @@ export declare const EventDocument: z.ZodObject<{
1499
1682
  residentialArea?: string | null | undefined;
1500
1683
  street?: string | null | undefined;
1501
1684
  zipCode?: string | null | undefined;
1685
+ } | {
1686
+ firstname: string;
1687
+ surname: string;
1688
+ middlename?: string | null | undefined;
1502
1689
  } | {
1503
1690
  country: string;
1504
1691
  district: string;
@@ -1521,8 +1708,9 @@ export declare const EventDocument: z.ZodObject<{
1521
1708
  option: string;
1522
1709
  filename: string;
1523
1710
  originalFilename: string;
1524
- }[] | [string, string] | undefined>;
1525
- createdAtLocation: string;
1711
+ }[] | [string, string] | null | undefined>;
1712
+ createdBySignature?: string | null | undefined;
1713
+ createdAtLocation?: string | null | undefined;
1526
1714
  annotation?: Record<string, string | number | boolean | {
1527
1715
  type: string;
1528
1716
  filename: string;
@@ -1538,6 +1726,10 @@ export declare const EventDocument: z.ZodObject<{
1538
1726
  residentialArea?: string | null | undefined;
1539
1727
  street?: string | null | undefined;
1540
1728
  zipCode?: string | null | undefined;
1729
+ } | {
1730
+ firstname: string;
1731
+ surname: string;
1732
+ middlename?: string | null | undefined;
1541
1733
  } | {
1542
1734
  country: string;
1543
1735
  district: string;
@@ -1560,13 +1752,14 @@ export declare const EventDocument: z.ZodObject<{
1560
1752
  option: string;
1561
1753
  filename: string;
1562
1754
  originalFilename: string;
1563
- }[] | [string, string] | undefined> | undefined;
1755
+ }[] | [string, string] | null | undefined> | undefined;
1564
1756
  originalActionId?: string | undefined;
1565
1757
  }, {
1566
1758
  type: "MARKED_AS_DUPLICATE";
1567
1759
  id: string;
1568
1760
  status: "Rejected" | "Requested" | "Accepted";
1569
1761
  transactionId: string;
1762
+ createdByUserType: "system" | "user";
1570
1763
  createdAt: string;
1571
1764
  createdBy: string;
1572
1765
  createdByRole: string;
@@ -1585,6 +1778,10 @@ export declare const EventDocument: z.ZodObject<{
1585
1778
  residentialArea?: string | null | undefined;
1586
1779
  street?: string | null | undefined;
1587
1780
  zipCode?: string | null | undefined;
1781
+ } | {
1782
+ firstname: string;
1783
+ surname: string;
1784
+ middlename?: string | null | undefined;
1588
1785
  } | {
1589
1786
  country: string;
1590
1787
  district: string;
@@ -1607,8 +1804,9 @@ export declare const EventDocument: z.ZodObject<{
1607
1804
  option: string;
1608
1805
  filename: string;
1609
1806
  originalFilename: string;
1610
- }[] | [string, string] | undefined>;
1611
- createdAtLocation: string;
1807
+ }[] | [string, string] | null | undefined>;
1808
+ createdBySignature?: string | null | undefined;
1809
+ createdAtLocation?: string | null | undefined;
1612
1810
  annotation?: Record<string, string | number | boolean | {
1613
1811
  type: string;
1614
1812
  filename: string;
@@ -1624,6 +1822,10 @@ export declare const EventDocument: z.ZodObject<{
1624
1822
  residentialArea?: string | null | undefined;
1625
1823
  street?: string | null | undefined;
1626
1824
  zipCode?: string | null | undefined;
1825
+ } | {
1826
+ firstname: string;
1827
+ surname: string;
1828
+ middlename?: string | null | undefined;
1627
1829
  } | {
1628
1830
  country: string;
1629
1831
  district: string;
@@ -1646,14 +1848,17 @@ export declare const EventDocument: z.ZodObject<{
1646
1848
  option: string;
1647
1849
  filename: string;
1648
1850
  originalFilename: string;
1649
- }[] | [string, string] | undefined> | undefined;
1851
+ }[] | [string, string] | null | undefined> | undefined;
1650
1852
  originalActionId?: string | undefined;
1651
1853
  }>, z.ZodObject<z.objectUtil.extendShape<{
1652
1854
  id: z.ZodString;
1653
1855
  transactionId: z.ZodString;
1856
+ createdByUserType: z.ZodEnum<["user", "system"]>;
1654
1857
  createdAt: z.ZodString;
1655
1858
  createdBy: z.ZodString;
1656
1859
  createdByRole: z.ZodString;
1860
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1861
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1657
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<{
1658
1863
  filename: z.ZodString;
1659
1864
  originalFilename: z.ZodString;
@@ -1767,7 +1972,19 @@ export declare const EventDocument: z.ZodObject<{
1767
1972
  addressLine2?: string | null | undefined;
1768
1973
  addressLine3?: string | null | undefined;
1769
1974
  postcodeOrZip?: string | null | undefined;
1770
- }>]>>;
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]>]>>;
1771
1988
  annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1772
1989
  filename: z.ZodString;
1773
1990
  originalFilename: z.ZodString;
@@ -1881,17 +2098,43 @@ export declare const EventDocument: z.ZodObject<{
1881
2098
  addressLine2?: string | null | undefined;
1882
2099
  addressLine3?: string | null | undefined;
1883
2100
  postcodeOrZip?: string | null | undefined;
1884
- }>]>>>;
1885
- 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]>]>>>;
1886
2114
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1887
2115
  originalActionId: z.ZodOptional<z.ZodString>;
1888
2116
  }, {
1889
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
+ }>;
1890
2128
  }>, "strip", z.ZodTypeAny, {
1891
2129
  type: "ARCHIVE";
1892
2130
  id: string;
1893
2131
  status: "Rejected" | "Requested" | "Accepted";
2132
+ reason: {
2133
+ message: string;
2134
+ isDuplicate?: boolean | undefined;
2135
+ };
1894
2136
  transactionId: string;
2137
+ createdByUserType: "system" | "user";
1895
2138
  createdAt: string;
1896
2139
  createdBy: string;
1897
2140
  createdByRole: string;
@@ -1910,6 +2153,10 @@ export declare const EventDocument: z.ZodObject<{
1910
2153
  residentialArea?: string | null | undefined;
1911
2154
  street?: string | null | undefined;
1912
2155
  zipCode?: string | null | undefined;
2156
+ } | {
2157
+ firstname: string;
2158
+ surname: string;
2159
+ middlename?: string | null | undefined;
1913
2160
  } | {
1914
2161
  country: string;
1915
2162
  district: string;
@@ -1932,8 +2179,9 @@ export declare const EventDocument: z.ZodObject<{
1932
2179
  option: string;
1933
2180
  filename: string;
1934
2181
  originalFilename: string;
1935
- }[] | [string, string] | undefined>;
1936
- createdAtLocation: string;
2182
+ }[] | [string, string] | null | undefined>;
2183
+ createdBySignature?: string | null | undefined;
2184
+ createdAtLocation?: string | null | undefined;
1937
2185
  annotation?: Record<string, string | number | boolean | {
1938
2186
  type: string;
1939
2187
  filename: string;
@@ -1949,6 +2197,10 @@ export declare const EventDocument: z.ZodObject<{
1949
2197
  residentialArea?: string | null | undefined;
1950
2198
  street?: string | null | undefined;
1951
2199
  zipCode?: string | null | undefined;
2200
+ } | {
2201
+ firstname: string;
2202
+ surname: string;
2203
+ middlename?: string | null | undefined;
1952
2204
  } | {
1953
2205
  country: string;
1954
2206
  district: string;
@@ -1971,13 +2223,18 @@ export declare const EventDocument: z.ZodObject<{
1971
2223
  option: string;
1972
2224
  filename: string;
1973
2225
  originalFilename: string;
1974
- }[] | [string, string] | undefined> | undefined;
2226
+ }[] | [string, string] | null | undefined> | undefined;
1975
2227
  originalActionId?: string | undefined;
1976
2228
  }, {
1977
2229
  type: "ARCHIVE";
1978
2230
  id: string;
1979
2231
  status: "Rejected" | "Requested" | "Accepted";
2232
+ reason: {
2233
+ message: string;
2234
+ isDuplicate?: boolean | undefined;
2235
+ };
1980
2236
  transactionId: string;
2237
+ createdByUserType: "system" | "user";
1981
2238
  createdAt: string;
1982
2239
  createdBy: string;
1983
2240
  createdByRole: string;
@@ -1996,6 +2253,10 @@ export declare const EventDocument: z.ZodObject<{
1996
2253
  residentialArea?: string | null | undefined;
1997
2254
  street?: string | null | undefined;
1998
2255
  zipCode?: string | null | undefined;
2256
+ } | {
2257
+ firstname: string;
2258
+ surname: string;
2259
+ middlename?: string | null | undefined;
1999
2260
  } | {
2000
2261
  country: string;
2001
2262
  district: string;
@@ -2018,8 +2279,9 @@ export declare const EventDocument: z.ZodObject<{
2018
2279
  option: string;
2019
2280
  filename: string;
2020
2281
  originalFilename: string;
2021
- }[] | [string, string] | undefined>;
2022
- createdAtLocation: string;
2282
+ }[] | [string, string] | null | undefined>;
2283
+ createdBySignature?: string | null | undefined;
2284
+ createdAtLocation?: string | null | undefined;
2023
2285
  annotation?: Record<string, string | number | boolean | {
2024
2286
  type: string;
2025
2287
  filename: string;
@@ -2035,6 +2297,10 @@ export declare const EventDocument: z.ZodObject<{
2035
2297
  residentialArea?: string | null | undefined;
2036
2298
  street?: string | null | undefined;
2037
2299
  zipCode?: string | null | undefined;
2300
+ } | {
2301
+ firstname: string;
2302
+ surname: string;
2303
+ middlename?: string | null | undefined;
2038
2304
  } | {
2039
2305
  country: string;
2040
2306
  district: string;
@@ -2057,14 +2323,17 @@ export declare const EventDocument: z.ZodObject<{
2057
2323
  option: string;
2058
2324
  filename: string;
2059
2325
  originalFilename: string;
2060
- }[] | [string, string] | undefined> | undefined;
2326
+ }[] | [string, string] | null | undefined> | undefined;
2061
2327
  originalActionId?: string | undefined;
2062
2328
  }>, z.ZodObject<z.objectUtil.extendShape<{
2063
2329
  id: z.ZodString;
2064
2330
  transactionId: z.ZodString;
2331
+ createdByUserType: z.ZodEnum<["user", "system"]>;
2065
2332
  createdAt: z.ZodString;
2066
2333
  createdBy: z.ZodString;
2067
2334
  createdByRole: z.ZodString;
2335
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2336
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2068
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<{
2069
2338
  filename: z.ZodString;
2070
2339
  originalFilename: z.ZodString;
@@ -2178,7 +2447,19 @@ export declare const EventDocument: z.ZodObject<{
2178
2447
  addressLine2?: string | null | undefined;
2179
2448
  addressLine3?: string | null | undefined;
2180
2449
  postcodeOrZip?: string | null | undefined;
2181
- }>]>>;
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]>]>>;
2182
2463
  annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2183
2464
  filename: z.ZodString;
2184
2465
  originalFilename: z.ZodString;
@@ -2292,8 +2573,19 @@ export declare const EventDocument: z.ZodObject<{
2292
2573
  addressLine2?: string | null | undefined;
2293
2574
  addressLine3?: string | null | undefined;
2294
2575
  postcodeOrZip?: string | null | undefined;
2295
- }>]>>>;
2296
- 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]>]>>>;
2297
2589
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2298
2590
  originalActionId: z.ZodOptional<z.ZodString>;
2299
2591
  }, {
@@ -2303,6 +2595,7 @@ export declare const EventDocument: z.ZodObject<{
2303
2595
  id: string;
2304
2596
  status: "Rejected" | "Requested" | "Accepted";
2305
2597
  transactionId: string;
2598
+ createdByUserType: "system" | "user";
2306
2599
  createdAt: string;
2307
2600
  createdBy: string;
2308
2601
  createdByRole: string;
@@ -2321,6 +2614,10 @@ export declare const EventDocument: z.ZodObject<{
2321
2614
  residentialArea?: string | null | undefined;
2322
2615
  street?: string | null | undefined;
2323
2616
  zipCode?: string | null | undefined;
2617
+ } | {
2618
+ firstname: string;
2619
+ surname: string;
2620
+ middlename?: string | null | undefined;
2324
2621
  } | {
2325
2622
  country: string;
2326
2623
  district: string;
@@ -2343,8 +2640,9 @@ export declare const EventDocument: z.ZodObject<{
2343
2640
  option: string;
2344
2641
  filename: string;
2345
2642
  originalFilename: string;
2346
- }[] | [string, string] | undefined>;
2347
- createdAtLocation: string;
2643
+ }[] | [string, string] | null | undefined>;
2644
+ createdBySignature?: string | null | undefined;
2645
+ createdAtLocation?: string | null | undefined;
2348
2646
  annotation?: Record<string, string | number | boolean | {
2349
2647
  type: string;
2350
2648
  filename: string;
@@ -2360,6 +2658,10 @@ export declare const EventDocument: z.ZodObject<{
2360
2658
  residentialArea?: string | null | undefined;
2361
2659
  street?: string | null | undefined;
2362
2660
  zipCode?: string | null | undefined;
2661
+ } | {
2662
+ firstname: string;
2663
+ surname: string;
2664
+ middlename?: string | null | undefined;
2363
2665
  } | {
2364
2666
  country: string;
2365
2667
  district: string;
@@ -2382,13 +2684,14 @@ export declare const EventDocument: z.ZodObject<{
2382
2684
  option: string;
2383
2685
  filename: string;
2384
2686
  originalFilename: string;
2385
- }[] | [string, string] | undefined> | undefined;
2687
+ }[] | [string, string] | null | undefined> | undefined;
2386
2688
  originalActionId?: string | undefined;
2387
2689
  }, {
2388
2690
  type: "NOTIFY";
2389
2691
  id: string;
2390
2692
  status: "Rejected" | "Requested" | "Accepted";
2391
2693
  transactionId: string;
2694
+ createdByUserType: "system" | "user";
2392
2695
  createdAt: string;
2393
2696
  createdBy: string;
2394
2697
  createdByRole: string;
@@ -2407,6 +2710,10 @@ export declare const EventDocument: z.ZodObject<{
2407
2710
  residentialArea?: string | null | undefined;
2408
2711
  street?: string | null | undefined;
2409
2712
  zipCode?: string | null | undefined;
2713
+ } | {
2714
+ firstname: string;
2715
+ surname: string;
2716
+ middlename?: string | null | undefined;
2410
2717
  } | {
2411
2718
  country: string;
2412
2719
  district: string;
@@ -2429,8 +2736,9 @@ export declare const EventDocument: z.ZodObject<{
2429
2736
  option: string;
2430
2737
  filename: string;
2431
2738
  originalFilename: string;
2432
- }[] | [string, string] | undefined>;
2433
- createdAtLocation: string;
2739
+ }[] | [string, string] | null | undefined>;
2740
+ createdBySignature?: string | null | undefined;
2741
+ createdAtLocation?: string | null | undefined;
2434
2742
  annotation?: Record<string, string | number | boolean | {
2435
2743
  type: string;
2436
2744
  filename: string;
@@ -2446,6 +2754,10 @@ export declare const EventDocument: z.ZodObject<{
2446
2754
  residentialArea?: string | null | undefined;
2447
2755
  street?: string | null | undefined;
2448
2756
  zipCode?: string | null | undefined;
2757
+ } | {
2758
+ firstname: string;
2759
+ surname: string;
2760
+ middlename?: string | null | undefined;
2449
2761
  } | {
2450
2762
  country: string;
2451
2763
  district: string;
@@ -2468,14 +2780,17 @@ export declare const EventDocument: z.ZodObject<{
2468
2780
  option: string;
2469
2781
  filename: string;
2470
2782
  originalFilename: string;
2471
- }[] | [string, string] | undefined> | undefined;
2783
+ }[] | [string, string] | null | undefined> | undefined;
2472
2784
  originalActionId?: string | undefined;
2473
2785
  }>, z.ZodObject<z.objectUtil.extendShape<{
2474
2786
  id: z.ZodString;
2475
2787
  transactionId: z.ZodString;
2788
+ createdByUserType: z.ZodEnum<["user", "system"]>;
2476
2789
  createdAt: z.ZodString;
2477
2790
  createdBy: z.ZodString;
2478
2791
  createdByRole: z.ZodString;
2792
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2793
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2479
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<{
2480
2795
  filename: z.ZodString;
2481
2796
  originalFilename: z.ZodString;
@@ -2589,7 +2904,19 @@ export declare const EventDocument: z.ZodObject<{
2589
2904
  addressLine2?: string | null | undefined;
2590
2905
  addressLine3?: string | null | undefined;
2591
2906
  postcodeOrZip?: string | null | undefined;
2592
- }>]>>;
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]>]>>;
2593
2920
  annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2594
2921
  filename: z.ZodString;
2595
2922
  originalFilename: z.ZodString;
@@ -2703,8 +3030,19 @@ export declare const EventDocument: z.ZodObject<{
2703
3030
  addressLine2?: string | null | undefined;
2704
3031
  addressLine3?: string | null | undefined;
2705
3032
  postcodeOrZip?: string | null | undefined;
2706
- }>]>>>;
2707
- 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]>]>>>;
2708
3046
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2709
3047
  originalActionId: z.ZodOptional<z.ZodString>;
2710
3048
  }, {
@@ -2715,6 +3053,7 @@ export declare const EventDocument: z.ZodObject<{
2715
3053
  id: string;
2716
3054
  status: "Rejected" | "Requested" | "Accepted";
2717
3055
  transactionId: string;
3056
+ createdByUserType: "system" | "user";
2718
3057
  createdAt: string;
2719
3058
  createdBy: string;
2720
3059
  createdByRole: string;
@@ -2733,6 +3072,10 @@ export declare const EventDocument: z.ZodObject<{
2733
3072
  residentialArea?: string | null | undefined;
2734
3073
  street?: string | null | undefined;
2735
3074
  zipCode?: string | null | undefined;
3075
+ } | {
3076
+ firstname: string;
3077
+ surname: string;
3078
+ middlename?: string | null | undefined;
2736
3079
  } | {
2737
3080
  country: string;
2738
3081
  district: string;
@@ -2755,8 +3098,9 @@ export declare const EventDocument: z.ZodObject<{
2755
3098
  option: string;
2756
3099
  filename: string;
2757
3100
  originalFilename: string;
2758
- }[] | [string, string] | undefined>;
2759
- createdAtLocation: string;
3101
+ }[] | [string, string] | null | undefined>;
3102
+ createdBySignature?: string | null | undefined;
3103
+ createdAtLocation?: string | null | undefined;
2760
3104
  annotation?: Record<string, string | number | boolean | {
2761
3105
  type: string;
2762
3106
  filename: string;
@@ -2772,6 +3116,10 @@ export declare const EventDocument: z.ZodObject<{
2772
3116
  residentialArea?: string | null | undefined;
2773
3117
  street?: string | null | undefined;
2774
3118
  zipCode?: string | null | undefined;
3119
+ } | {
3120
+ firstname: string;
3121
+ surname: string;
3122
+ middlename?: string | null | undefined;
2775
3123
  } | {
2776
3124
  country: string;
2777
3125
  district: string;
@@ -2794,7 +3142,7 @@ export declare const EventDocument: z.ZodObject<{
2794
3142
  option: string;
2795
3143
  filename: string;
2796
3144
  originalFilename: string;
2797
- }[] | [string, string] | undefined> | undefined;
3145
+ }[] | [string, string] | null | undefined> | undefined;
2798
3146
  originalActionId?: string | undefined;
2799
3147
  registrationNumber?: string | undefined;
2800
3148
  }, {
@@ -2802,6 +3150,7 @@ export declare const EventDocument: z.ZodObject<{
2802
3150
  id: string;
2803
3151
  status: "Rejected" | "Requested" | "Accepted";
2804
3152
  transactionId: string;
3153
+ createdByUserType: "system" | "user";
2805
3154
  createdAt: string;
2806
3155
  createdBy: string;
2807
3156
  createdByRole: string;
@@ -2820,6 +3169,10 @@ export declare const EventDocument: z.ZodObject<{
2820
3169
  residentialArea?: string | null | undefined;
2821
3170
  street?: string | null | undefined;
2822
3171
  zipCode?: string | null | undefined;
3172
+ } | {
3173
+ firstname: string;
3174
+ surname: string;
3175
+ middlename?: string | null | undefined;
2823
3176
  } | {
2824
3177
  country: string;
2825
3178
  district: string;
@@ -2842,8 +3195,9 @@ export declare const EventDocument: z.ZodObject<{
2842
3195
  option: string;
2843
3196
  filename: string;
2844
3197
  originalFilename: string;
2845
- }[] | [string, string] | undefined>;
2846
- createdAtLocation: string;
3198
+ }[] | [string, string] | null | undefined>;
3199
+ createdBySignature?: string | null | undefined;
3200
+ createdAtLocation?: string | null | undefined;
2847
3201
  annotation?: Record<string, string | number | boolean | {
2848
3202
  type: string;
2849
3203
  filename: string;
@@ -2859,6 +3213,10 @@ export declare const EventDocument: z.ZodObject<{
2859
3213
  residentialArea?: string | null | undefined;
2860
3214
  street?: string | null | undefined;
2861
3215
  zipCode?: string | null | undefined;
3216
+ } | {
3217
+ firstname: string;
3218
+ surname: string;
3219
+ middlename?: string | null | undefined;
2862
3220
  } | {
2863
3221
  country: string;
2864
3222
  district: string;
@@ -2881,15 +3239,18 @@ export declare const EventDocument: z.ZodObject<{
2881
3239
  option: string;
2882
3240
  filename: string;
2883
3241
  originalFilename: string;
2884
- }[] | [string, string] | undefined> | undefined;
3242
+ }[] | [string, string] | null | undefined> | undefined;
2885
3243
  originalActionId?: string | undefined;
2886
3244
  registrationNumber?: string | undefined;
2887
3245
  }>, z.ZodObject<z.objectUtil.extendShape<{
2888
3246
  id: z.ZodString;
2889
3247
  transactionId: z.ZodString;
3248
+ createdByUserType: z.ZodEnum<["user", "system"]>;
2890
3249
  createdAt: z.ZodString;
2891
3250
  createdBy: z.ZodString;
2892
3251
  createdByRole: z.ZodString;
3252
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3253
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2893
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<{
2894
3255
  filename: z.ZodString;
2895
3256
  originalFilename: z.ZodString;
@@ -3003,7 +3364,19 @@ export declare const EventDocument: z.ZodObject<{
3003
3364
  addressLine2?: string | null | undefined;
3004
3365
  addressLine3?: string | null | undefined;
3005
3366
  postcodeOrZip?: string | null | undefined;
3006
- }>]>>;
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]>]>>;
3007
3380
  annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3008
3381
  filename: z.ZodString;
3009
3382
  originalFilename: z.ZodString;
@@ -3117,8 +3490,19 @@ export declare const EventDocument: z.ZodObject<{
3117
3490
  addressLine2?: string | null | undefined;
3118
3491
  addressLine3?: string | null | undefined;
3119
3492
  postcodeOrZip?: string | null | undefined;
3120
- }>]>>>;
3121
- 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]>]>>>;
3122
3506
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3123
3507
  originalActionId: z.ZodOptional<z.ZodString>;
3124
3508
  }, {
@@ -3128,6 +3512,7 @@ export declare const EventDocument: z.ZodObject<{
3128
3512
  id: string;
3129
3513
  status: "Rejected" | "Requested" | "Accepted";
3130
3514
  transactionId: string;
3515
+ createdByUserType: "system" | "user";
3131
3516
  createdAt: string;
3132
3517
  createdBy: string;
3133
3518
  createdByRole: string;
@@ -3146,6 +3531,10 @@ export declare const EventDocument: z.ZodObject<{
3146
3531
  residentialArea?: string | null | undefined;
3147
3532
  street?: string | null | undefined;
3148
3533
  zipCode?: string | null | undefined;
3534
+ } | {
3535
+ firstname: string;
3536
+ surname: string;
3537
+ middlename?: string | null | undefined;
3149
3538
  } | {
3150
3539
  country: string;
3151
3540
  district: string;
@@ -3168,8 +3557,9 @@ export declare const EventDocument: z.ZodObject<{
3168
3557
  option: string;
3169
3558
  filename: string;
3170
3559
  originalFilename: string;
3171
- }[] | [string, string] | undefined>;
3172
- createdAtLocation: string;
3560
+ }[] | [string, string] | null | undefined>;
3561
+ createdBySignature?: string | null | undefined;
3562
+ createdAtLocation?: string | null | undefined;
3173
3563
  annotation?: Record<string, string | number | boolean | {
3174
3564
  type: string;
3175
3565
  filename: string;
@@ -3185,6 +3575,10 @@ export declare const EventDocument: z.ZodObject<{
3185
3575
  residentialArea?: string | null | undefined;
3186
3576
  street?: string | null | undefined;
3187
3577
  zipCode?: string | null | undefined;
3578
+ } | {
3579
+ firstname: string;
3580
+ surname: string;
3581
+ middlename?: string | null | undefined;
3188
3582
  } | {
3189
3583
  country: string;
3190
3584
  district: string;
@@ -3207,13 +3601,14 @@ export declare const EventDocument: z.ZodObject<{
3207
3601
  option: string;
3208
3602
  filename: string;
3209
3603
  originalFilename: string;
3210
- }[] | [string, string] | undefined> | undefined;
3604
+ }[] | [string, string] | null | undefined> | undefined;
3211
3605
  originalActionId?: string | undefined;
3212
3606
  }, {
3213
3607
  type: "DECLARE";
3214
3608
  id: string;
3215
3609
  status: "Rejected" | "Requested" | "Accepted";
3216
3610
  transactionId: string;
3611
+ createdByUserType: "system" | "user";
3217
3612
  createdAt: string;
3218
3613
  createdBy: string;
3219
3614
  createdByRole: string;
@@ -3232,6 +3627,10 @@ export declare const EventDocument: z.ZodObject<{
3232
3627
  residentialArea?: string | null | undefined;
3233
3628
  street?: string | null | undefined;
3234
3629
  zipCode?: string | null | undefined;
3630
+ } | {
3631
+ firstname: string;
3632
+ surname: string;
3633
+ middlename?: string | null | undefined;
3235
3634
  } | {
3236
3635
  country: string;
3237
3636
  district: string;
@@ -3254,8 +3653,9 @@ export declare const EventDocument: z.ZodObject<{
3254
3653
  option: string;
3255
3654
  filename: string;
3256
3655
  originalFilename: string;
3257
- }[] | [string, string] | undefined>;
3258
- createdAtLocation: string;
3656
+ }[] | [string, string] | null | undefined>;
3657
+ createdBySignature?: string | null | undefined;
3658
+ createdAtLocation?: string | null | undefined;
3259
3659
  annotation?: Record<string, string | number | boolean | {
3260
3660
  type: string;
3261
3661
  filename: string;
@@ -3271,6 +3671,10 @@ export declare const EventDocument: z.ZodObject<{
3271
3671
  residentialArea?: string | null | undefined;
3272
3672
  street?: string | null | undefined;
3273
3673
  zipCode?: string | null | undefined;
3674
+ } | {
3675
+ firstname: string;
3676
+ surname: string;
3677
+ middlename?: string | null | undefined;
3274
3678
  } | {
3275
3679
  country: string;
3276
3680
  district: string;
@@ -3293,14 +3697,17 @@ export declare const EventDocument: z.ZodObject<{
3293
3697
  option: string;
3294
3698
  filename: string;
3295
3699
  originalFilename: string;
3296
- }[] | [string, string] | undefined> | undefined;
3700
+ }[] | [string, string] | null | undefined> | undefined;
3297
3701
  originalActionId?: string | undefined;
3298
3702
  }>, z.ZodObject<z.objectUtil.extendShape<{
3299
3703
  id: z.ZodString;
3300
3704
  transactionId: z.ZodString;
3705
+ createdByUserType: z.ZodEnum<["user", "system"]>;
3301
3706
  createdAt: z.ZodString;
3302
3707
  createdBy: z.ZodString;
3303
3708
  createdByRole: z.ZodString;
3709
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3710
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3304
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<{
3305
3712
  filename: z.ZodString;
3306
3713
  originalFilename: z.ZodString;
@@ -3414,7 +3821,19 @@ export declare const EventDocument: z.ZodObject<{
3414
3821
  addressLine2?: string | null | undefined;
3415
3822
  addressLine3?: string | null | undefined;
3416
3823
  postcodeOrZip?: string | null | undefined;
3417
- }>]>>;
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]>]>>;
3418
3837
  annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3419
3838
  filename: z.ZodString;
3420
3839
  originalFilename: z.ZodString;
@@ -3528,8 +3947,19 @@ export declare const EventDocument: z.ZodObject<{
3528
3947
  addressLine2?: string | null | undefined;
3529
3948
  addressLine3?: string | null | undefined;
3530
3949
  postcodeOrZip?: string | null | undefined;
3531
- }>]>>>;
3532
- 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]>]>>>;
3533
3963
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3534
3964
  originalActionId: z.ZodOptional<z.ZodString>;
3535
3965
  }, {
@@ -3540,6 +3970,7 @@ export declare const EventDocument: z.ZodObject<{
3540
3970
  id: string;
3541
3971
  status: "Rejected" | "Requested" | "Accepted";
3542
3972
  transactionId: string;
3973
+ createdByUserType: "system" | "user";
3543
3974
  createdAt: string;
3544
3975
  createdBy: string;
3545
3976
  createdByRole: string;
@@ -3558,6 +3989,10 @@ export declare const EventDocument: z.ZodObject<{
3558
3989
  residentialArea?: string | null | undefined;
3559
3990
  street?: string | null | undefined;
3560
3991
  zipCode?: string | null | undefined;
3992
+ } | {
3993
+ firstname: string;
3994
+ surname: string;
3995
+ middlename?: string | null | undefined;
3561
3996
  } | {
3562
3997
  country: string;
3563
3998
  district: string;
@@ -3580,9 +4015,10 @@ export declare const EventDocument: z.ZodObject<{
3580
4015
  option: string;
3581
4016
  filename: string;
3582
4017
  originalFilename: string;
3583
- }[] | [string, string] | undefined>;
3584
- createdAtLocation: string;
4018
+ }[] | [string, string] | null | undefined>;
3585
4019
  assignedTo: string;
4020
+ createdBySignature?: string | null | undefined;
4021
+ createdAtLocation?: string | null | undefined;
3586
4022
  annotation?: Record<string, string | number | boolean | {
3587
4023
  type: string;
3588
4024
  filename: string;
@@ -3598,6 +4034,10 @@ export declare const EventDocument: z.ZodObject<{
3598
4034
  residentialArea?: string | null | undefined;
3599
4035
  street?: string | null | undefined;
3600
4036
  zipCode?: string | null | undefined;
4037
+ } | {
4038
+ firstname: string;
4039
+ surname: string;
4040
+ middlename?: string | null | undefined;
3601
4041
  } | {
3602
4042
  country: string;
3603
4043
  district: string;
@@ -3620,13 +4060,14 @@ export declare const EventDocument: z.ZodObject<{
3620
4060
  option: string;
3621
4061
  filename: string;
3622
4062
  originalFilename: string;
3623
- }[] | [string, string] | undefined> | undefined;
4063
+ }[] | [string, string] | null | undefined> | undefined;
3624
4064
  originalActionId?: string | undefined;
3625
4065
  }, {
3626
4066
  type: "ASSIGN";
3627
4067
  id: string;
3628
4068
  status: "Rejected" | "Requested" | "Accepted";
3629
4069
  transactionId: string;
4070
+ createdByUserType: "system" | "user";
3630
4071
  createdAt: string;
3631
4072
  createdBy: string;
3632
4073
  createdByRole: string;
@@ -3645,6 +4086,10 @@ export declare const EventDocument: z.ZodObject<{
3645
4086
  residentialArea?: string | null | undefined;
3646
4087
  street?: string | null | undefined;
3647
4088
  zipCode?: string | null | undefined;
4089
+ } | {
4090
+ firstname: string;
4091
+ surname: string;
4092
+ middlename?: string | null | undefined;
3648
4093
  } | {
3649
4094
  country: string;
3650
4095
  district: string;
@@ -3667,9 +4112,10 @@ export declare const EventDocument: z.ZodObject<{
3667
4112
  option: string;
3668
4113
  filename: string;
3669
4114
  originalFilename: string;
3670
- }[] | [string, string] | undefined>;
3671
- createdAtLocation: string;
4115
+ }[] | [string, string] | null | undefined>;
3672
4116
  assignedTo: string;
4117
+ createdBySignature?: string | null | undefined;
4118
+ createdAtLocation?: string | null | undefined;
3673
4119
  annotation?: Record<string, string | number | boolean | {
3674
4120
  type: string;
3675
4121
  filename: string;
@@ -3685,6 +4131,10 @@ export declare const EventDocument: z.ZodObject<{
3685
4131
  residentialArea?: string | null | undefined;
3686
4132
  street?: string | null | undefined;
3687
4133
  zipCode?: string | null | undefined;
4134
+ } | {
4135
+ firstname: string;
4136
+ surname: string;
4137
+ middlename?: string | null | undefined;
3688
4138
  } | {
3689
4139
  country: string;
3690
4140
  district: string;
@@ -3707,14 +4157,17 @@ export declare const EventDocument: z.ZodObject<{
3707
4157
  option: string;
3708
4158
  filename: string;
3709
4159
  originalFilename: string;
3710
- }[] | [string, string] | undefined> | undefined;
4160
+ }[] | [string, string] | null | undefined> | undefined;
3711
4161
  originalActionId?: string | undefined;
3712
4162
  }>, z.ZodObject<z.objectUtil.extendShape<{
3713
4163
  id: z.ZodString;
3714
4164
  transactionId: z.ZodString;
4165
+ createdByUserType: z.ZodEnum<["user", "system"]>;
3715
4166
  createdAt: z.ZodString;
3716
4167
  createdBy: z.ZodString;
3717
4168
  createdByRole: z.ZodString;
4169
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4170
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3718
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<{
3719
4172
  filename: z.ZodString;
3720
4173
  originalFilename: z.ZodString;
@@ -3828,7 +4281,19 @@ export declare const EventDocument: z.ZodObject<{
3828
4281
  addressLine2?: string | null | undefined;
3829
4282
  addressLine3?: string | null | undefined;
3830
4283
  postcodeOrZip?: string | null | undefined;
3831
- }>]>>;
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]>]>>;
3832
4297
  annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3833
4298
  filename: z.ZodString;
3834
4299
  originalFilename: z.ZodString;
@@ -3942,8 +4407,19 @@ export declare const EventDocument: z.ZodObject<{
3942
4407
  addressLine2?: string | null | undefined;
3943
4408
  addressLine3?: string | null | undefined;
3944
4409
  postcodeOrZip?: string | null | undefined;
3945
- }>]>>>;
3946
- 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]>]>>>;
3947
4423
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3948
4424
  originalActionId: z.ZodOptional<z.ZodString>;
3949
4425
  }, {
@@ -3953,6 +4429,7 @@ export declare const EventDocument: z.ZodObject<{
3953
4429
  id: string;
3954
4430
  status: "Rejected" | "Requested" | "Accepted";
3955
4431
  transactionId: string;
4432
+ createdByUserType: "system" | "user";
3956
4433
  createdAt: string;
3957
4434
  createdBy: string;
3958
4435
  createdByRole: string;
@@ -3971,6 +4448,10 @@ export declare const EventDocument: z.ZodObject<{
3971
4448
  residentialArea?: string | null | undefined;
3972
4449
  street?: string | null | undefined;
3973
4450
  zipCode?: string | null | undefined;
4451
+ } | {
4452
+ firstname: string;
4453
+ surname: string;
4454
+ middlename?: string | null | undefined;
3974
4455
  } | {
3975
4456
  country: string;
3976
4457
  district: string;
@@ -3993,8 +4474,9 @@ export declare const EventDocument: z.ZodObject<{
3993
4474
  option: string;
3994
4475
  filename: string;
3995
4476
  originalFilename: string;
3996
- }[] | [string, string] | undefined>;
3997
- createdAtLocation: string;
4477
+ }[] | [string, string] | null | undefined>;
4478
+ createdBySignature?: string | null | undefined;
4479
+ createdAtLocation?: string | null | undefined;
3998
4480
  annotation?: Record<string, string | number | boolean | {
3999
4481
  type: string;
4000
4482
  filename: string;
@@ -4010,6 +4492,10 @@ export declare const EventDocument: z.ZodObject<{
4010
4492
  residentialArea?: string | null | undefined;
4011
4493
  street?: string | null | undefined;
4012
4494
  zipCode?: string | null | undefined;
4495
+ } | {
4496
+ firstname: string;
4497
+ surname: string;
4498
+ middlename?: string | null | undefined;
4013
4499
  } | {
4014
4500
  country: string;
4015
4501
  district: string;
@@ -4032,13 +4518,14 @@ export declare const EventDocument: z.ZodObject<{
4032
4518
  option: string;
4033
4519
  filename: string;
4034
4520
  originalFilename: string;
4035
- }[] | [string, string] | undefined> | undefined;
4521
+ }[] | [string, string] | null | undefined> | undefined;
4036
4522
  originalActionId?: string | undefined;
4037
4523
  }, {
4038
4524
  type: "REQUEST_CORRECTION";
4039
4525
  id: string;
4040
4526
  status: "Rejected" | "Requested" | "Accepted";
4041
4527
  transactionId: string;
4528
+ createdByUserType: "system" | "user";
4042
4529
  createdAt: string;
4043
4530
  createdBy: string;
4044
4531
  createdByRole: string;
@@ -4057,6 +4544,10 @@ export declare const EventDocument: z.ZodObject<{
4057
4544
  residentialArea?: string | null | undefined;
4058
4545
  street?: string | null | undefined;
4059
4546
  zipCode?: string | null | undefined;
4547
+ } | {
4548
+ firstname: string;
4549
+ surname: string;
4550
+ middlename?: string | null | undefined;
4060
4551
  } | {
4061
4552
  country: string;
4062
4553
  district: string;
@@ -4079,8 +4570,9 @@ export declare const EventDocument: z.ZodObject<{
4079
4570
  option: string;
4080
4571
  filename: string;
4081
4572
  originalFilename: string;
4082
- }[] | [string, string] | undefined>;
4083
- createdAtLocation: string;
4573
+ }[] | [string, string] | null | undefined>;
4574
+ createdBySignature?: string | null | undefined;
4575
+ createdAtLocation?: string | null | undefined;
4084
4576
  annotation?: Record<string, string | number | boolean | {
4085
4577
  type: string;
4086
4578
  filename: string;
@@ -4096,6 +4588,10 @@ export declare const EventDocument: z.ZodObject<{
4096
4588
  residentialArea?: string | null | undefined;
4097
4589
  street?: string | null | undefined;
4098
4590
  zipCode?: string | null | undefined;
4591
+ } | {
4592
+ firstname: string;
4593
+ surname: string;
4594
+ middlename?: string | null | undefined;
4099
4595
  } | {
4100
4596
  country: string;
4101
4597
  district: string;
@@ -4118,14 +4614,17 @@ export declare const EventDocument: z.ZodObject<{
4118
4614
  option: string;
4119
4615
  filename: string;
4120
4616
  originalFilename: string;
4121
- }[] | [string, string] | undefined> | undefined;
4617
+ }[] | [string, string] | null | undefined> | undefined;
4122
4618
  originalActionId?: string | undefined;
4123
4619
  }>, z.ZodObject<z.objectUtil.extendShape<{
4124
4620
  id: z.ZodString;
4125
4621
  transactionId: z.ZodString;
4622
+ createdByUserType: z.ZodEnum<["user", "system"]>;
4126
4623
  createdAt: z.ZodString;
4127
4624
  createdBy: z.ZodString;
4128
4625
  createdByRole: z.ZodString;
4626
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4627
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4129
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<{
4130
4629
  filename: z.ZodString;
4131
4630
  originalFilename: z.ZodString;
@@ -4239,7 +4738,19 @@ export declare const EventDocument: z.ZodObject<{
4239
4738
  addressLine2?: string | null | undefined;
4240
4739
  addressLine3?: string | null | undefined;
4241
4740
  postcodeOrZip?: string | null | undefined;
4242
- }>]>>;
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]>]>>;
4243
4754
  annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4244
4755
  filename: z.ZodString;
4245
4756
  originalFilename: z.ZodString;
@@ -4353,8 +4864,19 @@ export declare const EventDocument: z.ZodObject<{
4353
4864
  addressLine2?: string | null | undefined;
4354
4865
  addressLine3?: string | null | undefined;
4355
4866
  postcodeOrZip?: string | null | undefined;
4356
- }>]>>>;
4357
- 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]>]>>>;
4358
4880
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4359
4881
  originalActionId: z.ZodOptional<z.ZodString>;
4360
4882
  }, {
@@ -4365,6 +4887,7 @@ export declare const EventDocument: z.ZodObject<{
4365
4887
  id: string;
4366
4888
  status: "Rejected" | "Requested" | "Accepted";
4367
4889
  transactionId: string;
4890
+ createdByUserType: "system" | "user";
4368
4891
  createdAt: string;
4369
4892
  createdBy: string;
4370
4893
  createdByRole: string;
@@ -4383,6 +4906,10 @@ export declare const EventDocument: z.ZodObject<{
4383
4906
  residentialArea?: string | null | undefined;
4384
4907
  street?: string | null | undefined;
4385
4908
  zipCode?: string | null | undefined;
4909
+ } | {
4910
+ firstname: string;
4911
+ surname: string;
4912
+ middlename?: string | null | undefined;
4386
4913
  } | {
4387
4914
  country: string;
4388
4915
  district: string;
@@ -4405,9 +4932,10 @@ export declare const EventDocument: z.ZodObject<{
4405
4932
  option: string;
4406
4933
  filename: string;
4407
4934
  originalFilename: string;
4408
- }[] | [string, string] | undefined>;
4409
- createdAtLocation: string;
4935
+ }[] | [string, string] | null | undefined>;
4410
4936
  requestId: string;
4937
+ createdBySignature?: string | null | undefined;
4938
+ createdAtLocation?: string | null | undefined;
4411
4939
  annotation?: Record<string, string | number | boolean | {
4412
4940
  type: string;
4413
4941
  filename: string;
@@ -4423,6 +4951,10 @@ export declare const EventDocument: z.ZodObject<{
4423
4951
  residentialArea?: string | null | undefined;
4424
4952
  street?: string | null | undefined;
4425
4953
  zipCode?: string | null | undefined;
4954
+ } | {
4955
+ firstname: string;
4956
+ surname: string;
4957
+ middlename?: string | null | undefined;
4426
4958
  } | {
4427
4959
  country: string;
4428
4960
  district: string;
@@ -4445,13 +4977,14 @@ export declare const EventDocument: z.ZodObject<{
4445
4977
  option: string;
4446
4978
  filename: string;
4447
4979
  originalFilename: string;
4448
- }[] | [string, string] | undefined> | undefined;
4980
+ }[] | [string, string] | null | undefined> | undefined;
4449
4981
  originalActionId?: string | undefined;
4450
4982
  }, {
4451
4983
  type: "APPROVE_CORRECTION";
4452
4984
  id: string;
4453
4985
  status: "Rejected" | "Requested" | "Accepted";
4454
4986
  transactionId: string;
4987
+ createdByUserType: "system" | "user";
4455
4988
  createdAt: string;
4456
4989
  createdBy: string;
4457
4990
  createdByRole: string;
@@ -4470,6 +5003,10 @@ export declare const EventDocument: z.ZodObject<{
4470
5003
  residentialArea?: string | null | undefined;
4471
5004
  street?: string | null | undefined;
4472
5005
  zipCode?: string | null | undefined;
5006
+ } | {
5007
+ firstname: string;
5008
+ surname: string;
5009
+ middlename?: string | null | undefined;
4473
5010
  } | {
4474
5011
  country: string;
4475
5012
  district: string;
@@ -4492,9 +5029,10 @@ export declare const EventDocument: z.ZodObject<{
4492
5029
  option: string;
4493
5030
  filename: string;
4494
5031
  originalFilename: string;
4495
- }[] | [string, string] | undefined>;
4496
- createdAtLocation: string;
5032
+ }[] | [string, string] | null | undefined>;
4497
5033
  requestId: string;
5034
+ createdBySignature?: string | null | undefined;
5035
+ createdAtLocation?: string | null | undefined;
4498
5036
  annotation?: Record<string, string | number | boolean | {
4499
5037
  type: string;
4500
5038
  filename: string;
@@ -4510,6 +5048,10 @@ export declare const EventDocument: z.ZodObject<{
4510
5048
  residentialArea?: string | null | undefined;
4511
5049
  street?: string | null | undefined;
4512
5050
  zipCode?: string | null | undefined;
5051
+ } | {
5052
+ firstname: string;
5053
+ surname: string;
5054
+ middlename?: string | null | undefined;
4513
5055
  } | {
4514
5056
  country: string;
4515
5057
  district: string;
@@ -4532,14 +5074,17 @@ export declare const EventDocument: z.ZodObject<{
4532
5074
  option: string;
4533
5075
  filename: string;
4534
5076
  originalFilename: string;
4535
- }[] | [string, string] | undefined> | undefined;
5077
+ }[] | [string, string] | null | undefined> | undefined;
4536
5078
  originalActionId?: string | undefined;
4537
5079
  }>, z.ZodObject<z.objectUtil.extendShape<{
4538
5080
  id: z.ZodString;
4539
5081
  transactionId: z.ZodString;
5082
+ createdByUserType: z.ZodEnum<["user", "system"]>;
4540
5083
  createdAt: z.ZodString;
4541
5084
  createdBy: z.ZodString;
4542
5085
  createdByRole: z.ZodString;
5086
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5087
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4543
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<{
4544
5089
  filename: z.ZodString;
4545
5090
  originalFilename: z.ZodString;
@@ -4653,7 +5198,19 @@ export declare const EventDocument: z.ZodObject<{
4653
5198
  addressLine2?: string | null | undefined;
4654
5199
  addressLine3?: string | null | undefined;
4655
5200
  postcodeOrZip?: string | null | undefined;
4656
- }>]>>;
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]>]>>;
4657
5214
  annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4658
5215
  filename: z.ZodString;
4659
5216
  originalFilename: z.ZodString;
@@ -4767,8 +5324,19 @@ export declare const EventDocument: z.ZodObject<{
4767
5324
  addressLine2?: string | null | undefined;
4768
5325
  addressLine3?: string | null | undefined;
4769
5326
  postcodeOrZip?: string | null | undefined;
4770
- }>]>>>;
4771
- 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]>]>>>;
4772
5340
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4773
5341
  originalActionId: z.ZodOptional<z.ZodString>;
4774
5342
  }, {
@@ -4779,6 +5347,7 @@ export declare const EventDocument: z.ZodObject<{
4779
5347
  id: string;
4780
5348
  status: "Rejected" | "Requested" | "Accepted";
4781
5349
  transactionId: string;
5350
+ createdByUserType: "system" | "user";
4782
5351
  createdAt: string;
4783
5352
  createdBy: string;
4784
5353
  createdByRole: string;
@@ -4797,6 +5366,10 @@ export declare const EventDocument: z.ZodObject<{
4797
5366
  residentialArea?: string | null | undefined;
4798
5367
  street?: string | null | undefined;
4799
5368
  zipCode?: string | null | undefined;
5369
+ } | {
5370
+ firstname: string;
5371
+ surname: string;
5372
+ middlename?: string | null | undefined;
4800
5373
  } | {
4801
5374
  country: string;
4802
5375
  district: string;
@@ -4819,9 +5392,10 @@ export declare const EventDocument: z.ZodObject<{
4819
5392
  option: string;
4820
5393
  filename: string;
4821
5394
  originalFilename: string;
4822
- }[] | [string, string] | undefined>;
4823
- createdAtLocation: string;
5395
+ }[] | [string, string] | null | undefined>;
4824
5396
  requestId: string;
5397
+ createdBySignature?: string | null | undefined;
5398
+ createdAtLocation?: string | null | undefined;
4825
5399
  annotation?: Record<string, string | number | boolean | {
4826
5400
  type: string;
4827
5401
  filename: string;
@@ -4837,6 +5411,10 @@ export declare const EventDocument: z.ZodObject<{
4837
5411
  residentialArea?: string | null | undefined;
4838
5412
  street?: string | null | undefined;
4839
5413
  zipCode?: string | null | undefined;
5414
+ } | {
5415
+ firstname: string;
5416
+ surname: string;
5417
+ middlename?: string | null | undefined;
4840
5418
  } | {
4841
5419
  country: string;
4842
5420
  district: string;
@@ -4859,13 +5437,14 @@ export declare const EventDocument: z.ZodObject<{
4859
5437
  option: string;
4860
5438
  filename: string;
4861
5439
  originalFilename: string;
4862
- }[] | [string, string] | undefined> | undefined;
5440
+ }[] | [string, string] | null | undefined> | undefined;
4863
5441
  originalActionId?: string | undefined;
4864
5442
  }, {
4865
5443
  type: "REJECT_CORRECTION";
4866
5444
  id: string;
4867
5445
  status: "Rejected" | "Requested" | "Accepted";
4868
5446
  transactionId: string;
5447
+ createdByUserType: "system" | "user";
4869
5448
  createdAt: string;
4870
5449
  createdBy: string;
4871
5450
  createdByRole: string;
@@ -4884,6 +5463,10 @@ export declare const EventDocument: z.ZodObject<{
4884
5463
  residentialArea?: string | null | undefined;
4885
5464
  street?: string | null | undefined;
4886
5465
  zipCode?: string | null | undefined;
5466
+ } | {
5467
+ firstname: string;
5468
+ surname: string;
5469
+ middlename?: string | null | undefined;
4887
5470
  } | {
4888
5471
  country: string;
4889
5472
  district: string;
@@ -4906,9 +5489,10 @@ export declare const EventDocument: z.ZodObject<{
4906
5489
  option: string;
4907
5490
  filename: string;
4908
5491
  originalFilename: string;
4909
- }[] | [string, string] | undefined>;
4910
- createdAtLocation: string;
5492
+ }[] | [string, string] | null | undefined>;
4911
5493
  requestId: string;
5494
+ createdBySignature?: string | null | undefined;
5495
+ createdAtLocation?: string | null | undefined;
4912
5496
  annotation?: Record<string, string | number | boolean | {
4913
5497
  type: string;
4914
5498
  filename: string;
@@ -4924,6 +5508,10 @@ export declare const EventDocument: z.ZodObject<{
4924
5508
  residentialArea?: string | null | undefined;
4925
5509
  street?: string | null | undefined;
4926
5510
  zipCode?: string | null | undefined;
5511
+ } | {
5512
+ firstname: string;
5513
+ surname: string;
5514
+ middlename?: string | null | undefined;
4927
5515
  } | {
4928
5516
  country: string;
4929
5517
  district: string;
@@ -4946,14 +5534,17 @@ export declare const EventDocument: z.ZodObject<{
4946
5534
  option: string;
4947
5535
  filename: string;
4948
5536
  originalFilename: string;
4949
- }[] | [string, string] | undefined> | undefined;
5537
+ }[] | [string, string] | null | undefined> | undefined;
4950
5538
  originalActionId?: string | undefined;
4951
5539
  }>, z.ZodObject<z.objectUtil.extendShape<{
4952
5540
  id: z.ZodString;
4953
5541
  transactionId: z.ZodString;
5542
+ createdByUserType: z.ZodEnum<["user", "system"]>;
4954
5543
  createdAt: z.ZodString;
4955
5544
  createdBy: z.ZodString;
4956
5545
  createdByRole: z.ZodString;
5546
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5547
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4957
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<{
4958
5549
  filename: z.ZodString;
4959
5550
  originalFilename: z.ZodString;
@@ -5067,7 +5658,19 @@ export declare const EventDocument: z.ZodObject<{
5067
5658
  addressLine2?: string | null | undefined;
5068
5659
  addressLine3?: string | null | undefined;
5069
5660
  postcodeOrZip?: string | null | undefined;
5070
- }>]>>;
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]>]>>;
5071
5674
  annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5072
5675
  filename: z.ZodString;
5073
5676
  originalFilename: z.ZodString;
@@ -5181,8 +5784,19 @@ export declare const EventDocument: z.ZodObject<{
5181
5784
  addressLine2?: string | null | undefined;
5182
5785
  addressLine3?: string | null | undefined;
5183
5786
  postcodeOrZip?: string | null | undefined;
5184
- }>]>>>;
5185
- 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]>]>>>;
5186
5800
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5187
5801
  originalActionId: z.ZodOptional<z.ZodString>;
5188
5802
  }, {
@@ -5193,6 +5807,7 @@ export declare const EventDocument: z.ZodObject<{
5193
5807
  id: string;
5194
5808
  status: "Rejected" | "Requested" | "Accepted";
5195
5809
  transactionId: string;
5810
+ createdByUserType: "system" | "user";
5196
5811
  createdAt: string;
5197
5812
  createdBy: string;
5198
5813
  createdByRole: string;
@@ -5211,6 +5826,10 @@ export declare const EventDocument: z.ZodObject<{
5211
5826
  residentialArea?: string | null | undefined;
5212
5827
  street?: string | null | undefined;
5213
5828
  zipCode?: string | null | undefined;
5829
+ } | {
5830
+ firstname: string;
5831
+ surname: string;
5832
+ middlename?: string | null | undefined;
5214
5833
  } | {
5215
5834
  country: string;
5216
5835
  district: string;
@@ -5233,9 +5852,10 @@ export declare const EventDocument: z.ZodObject<{
5233
5852
  option: string;
5234
5853
  filename: string;
5235
5854
  originalFilename: string;
5236
- }[] | [string, string] | undefined>;
5237
- createdAtLocation: string;
5855
+ }[] | [string, string] | null | undefined>;
5238
5856
  assignedTo: null;
5857
+ createdBySignature?: string | null | undefined;
5858
+ createdAtLocation?: string | null | undefined;
5239
5859
  annotation?: Record<string, string | number | boolean | {
5240
5860
  type: string;
5241
5861
  filename: string;
@@ -5251,6 +5871,10 @@ export declare const EventDocument: z.ZodObject<{
5251
5871
  residentialArea?: string | null | undefined;
5252
5872
  street?: string | null | undefined;
5253
5873
  zipCode?: string | null | undefined;
5874
+ } | {
5875
+ firstname: string;
5876
+ surname: string;
5877
+ middlename?: string | null | undefined;
5254
5878
  } | {
5255
5879
  country: string;
5256
5880
  district: string;
@@ -5273,13 +5897,14 @@ export declare const EventDocument: z.ZodObject<{
5273
5897
  option: string;
5274
5898
  filename: string;
5275
5899
  originalFilename: string;
5276
- }[] | [string, string] | undefined> | undefined;
5900
+ }[] | [string, string] | null | undefined> | undefined;
5277
5901
  originalActionId?: string | undefined;
5278
5902
  }, {
5279
5903
  type: "UNASSIGN";
5280
5904
  id: string;
5281
5905
  status: "Rejected" | "Requested" | "Accepted";
5282
5906
  transactionId: string;
5907
+ createdByUserType: "system" | "user";
5283
5908
  createdAt: string;
5284
5909
  createdBy: string;
5285
5910
  createdByRole: string;
@@ -5298,6 +5923,10 @@ export declare const EventDocument: z.ZodObject<{
5298
5923
  residentialArea?: string | null | undefined;
5299
5924
  street?: string | null | undefined;
5300
5925
  zipCode?: string | null | undefined;
5926
+ } | {
5927
+ firstname: string;
5928
+ surname: string;
5929
+ middlename?: string | null | undefined;
5301
5930
  } | {
5302
5931
  country: string;
5303
5932
  district: string;
@@ -5320,9 +5949,10 @@ export declare const EventDocument: z.ZodObject<{
5320
5949
  option: string;
5321
5950
  filename: string;
5322
5951
  originalFilename: string;
5323
- }[] | [string, string] | undefined>;
5324
- createdAtLocation: string;
5952
+ }[] | [string, string] | null | undefined>;
5325
5953
  assignedTo: null;
5954
+ createdBySignature?: string | null | undefined;
5955
+ createdAtLocation?: string | null | undefined;
5326
5956
  annotation?: Record<string, string | number | boolean | {
5327
5957
  type: string;
5328
5958
  filename: string;
@@ -5338,6 +5968,10 @@ export declare const EventDocument: z.ZodObject<{
5338
5968
  residentialArea?: string | null | undefined;
5339
5969
  street?: string | null | undefined;
5340
5970
  zipCode?: string | null | undefined;
5971
+ } | {
5972
+ firstname: string;
5973
+ surname: string;
5974
+ middlename?: string | null | undefined;
5341
5975
  } | {
5342
5976
  country: string;
5343
5977
  district: string;
@@ -5360,14 +5994,17 @@ export declare const EventDocument: z.ZodObject<{
5360
5994
  option: string;
5361
5995
  filename: string;
5362
5996
  originalFilename: string;
5363
- }[] | [string, string] | undefined> | undefined;
5997
+ }[] | [string, string] | null | undefined> | undefined;
5364
5998
  originalActionId?: string | undefined;
5365
5999
  }>, z.ZodObject<z.objectUtil.extendShape<{
5366
6000
  id: z.ZodString;
5367
6001
  transactionId: z.ZodString;
6002
+ createdByUserType: z.ZodEnum<["user", "system"]>;
5368
6003
  createdAt: z.ZodString;
5369
6004
  createdBy: z.ZodString;
5370
6005
  createdByRole: z.ZodString;
6006
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6007
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5371
6008
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5372
6009
  filename: z.ZodString;
5373
6010
  originalFilename: z.ZodString;
@@ -5481,7 +6118,19 @@ export declare const EventDocument: z.ZodObject<{
5481
6118
  addressLine2?: string | null | undefined;
5482
6119
  addressLine3?: string | null | undefined;
5483
6120
  postcodeOrZip?: string | null | undefined;
5484
- }>]>>;
6121
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
6122
+ firstname: z.ZodString;
6123
+ surname: z.ZodString;
6124
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6125
+ }, "strip", z.ZodTypeAny, {
6126
+ firstname: string;
6127
+ surname: string;
6128
+ middlename?: string | null | undefined;
6129
+ }, {
6130
+ firstname: string;
6131
+ surname: string;
6132
+ middlename?: string | null | undefined;
6133
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
5485
6134
  annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5486
6135
  filename: z.ZodString;
5487
6136
  originalFilename: z.ZodString;
@@ -5595,8 +6244,19 @@ export declare const EventDocument: z.ZodObject<{
5595
6244
  addressLine2?: string | null | undefined;
5596
6245
  addressLine3?: string | null | undefined;
5597
6246
  postcodeOrZip?: string | null | undefined;
5598
- }>]>>>;
5599
- createdAtLocation: z.ZodString;
6247
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
6248
+ firstname: z.ZodString;
6249
+ surname: z.ZodString;
6250
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6251
+ }, "strip", z.ZodTypeAny, {
6252
+ firstname: string;
6253
+ surname: string;
6254
+ middlename?: string | null | undefined;
6255
+ }, {
6256
+ firstname: string;
6257
+ surname: string;
6258
+ middlename?: string | null | undefined;
6259
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
5600
6260
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5601
6261
  originalActionId: z.ZodOptional<z.ZodString>;
5602
6262
  }, {
@@ -5606,6 +6266,7 @@ export declare const EventDocument: z.ZodObject<{
5606
6266
  id: string;
5607
6267
  status: "Rejected" | "Requested" | "Accepted";
5608
6268
  transactionId: string;
6269
+ createdByUserType: "system" | "user";
5609
6270
  createdAt: string;
5610
6271
  createdBy: string;
5611
6272
  createdByRole: string;
@@ -5624,6 +6285,10 @@ export declare const EventDocument: z.ZodObject<{
5624
6285
  residentialArea?: string | null | undefined;
5625
6286
  street?: string | null | undefined;
5626
6287
  zipCode?: string | null | undefined;
6288
+ } | {
6289
+ firstname: string;
6290
+ surname: string;
6291
+ middlename?: string | null | undefined;
5627
6292
  } | {
5628
6293
  country: string;
5629
6294
  district: string;
@@ -5646,8 +6311,9 @@ export declare const EventDocument: z.ZodObject<{
5646
6311
  option: string;
5647
6312
  filename: string;
5648
6313
  originalFilename: string;
5649
- }[] | [string, string] | undefined>;
5650
- createdAtLocation: string;
6314
+ }[] | [string, string] | null | undefined>;
6315
+ createdBySignature?: string | null | undefined;
6316
+ createdAtLocation?: string | null | undefined;
5651
6317
  annotation?: Record<string, string | number | boolean | {
5652
6318
  type: string;
5653
6319
  filename: string;
@@ -5663,6 +6329,10 @@ export declare const EventDocument: z.ZodObject<{
5663
6329
  residentialArea?: string | null | undefined;
5664
6330
  street?: string | null | undefined;
5665
6331
  zipCode?: string | null | undefined;
6332
+ } | {
6333
+ firstname: string;
6334
+ surname: string;
6335
+ middlename?: string | null | undefined;
5666
6336
  } | {
5667
6337
  country: string;
5668
6338
  district: string;
@@ -5685,13 +6355,14 @@ export declare const EventDocument: z.ZodObject<{
5685
6355
  option: string;
5686
6356
  filename: string;
5687
6357
  originalFilename: string;
5688
- }[] | [string, string] | undefined> | undefined;
6358
+ }[] | [string, string] | null | undefined> | undefined;
5689
6359
  originalActionId?: string | undefined;
5690
6360
  }, {
5691
6361
  type: "PRINT_CERTIFICATE";
5692
6362
  id: string;
5693
6363
  status: "Rejected" | "Requested" | "Accepted";
5694
6364
  transactionId: string;
6365
+ createdByUserType: "system" | "user";
5695
6366
  createdAt: string;
5696
6367
  createdBy: string;
5697
6368
  createdByRole: string;
@@ -5710,6 +6381,10 @@ export declare const EventDocument: z.ZodObject<{
5710
6381
  residentialArea?: string | null | undefined;
5711
6382
  street?: string | null | undefined;
5712
6383
  zipCode?: string | null | undefined;
6384
+ } | {
6385
+ firstname: string;
6386
+ surname: string;
6387
+ middlename?: string | null | undefined;
5713
6388
  } | {
5714
6389
  country: string;
5715
6390
  district: string;
@@ -5732,8 +6407,9 @@ export declare const EventDocument: z.ZodObject<{
5732
6407
  option: string;
5733
6408
  filename: string;
5734
6409
  originalFilename: string;
5735
- }[] | [string, string] | undefined>;
5736
- createdAtLocation: string;
6410
+ }[] | [string, string] | null | undefined>;
6411
+ createdBySignature?: string | null | undefined;
6412
+ createdAtLocation?: string | null | undefined;
5737
6413
  annotation?: Record<string, string | number | boolean | {
5738
6414
  type: string;
5739
6415
  filename: string;
@@ -5749,6 +6425,10 @@ export declare const EventDocument: z.ZodObject<{
5749
6425
  residentialArea?: string | null | undefined;
5750
6426
  street?: string | null | undefined;
5751
6427
  zipCode?: string | null | undefined;
6428
+ } | {
6429
+ firstname: string;
6430
+ surname: string;
6431
+ middlename?: string | null | undefined;
5752
6432
  } | {
5753
6433
  country: string;
5754
6434
  district: string;
@@ -5771,14 +6451,17 @@ export declare const EventDocument: z.ZodObject<{
5771
6451
  option: string;
5772
6452
  filename: string;
5773
6453
  originalFilename: string;
5774
- }[] | [string, string] | undefined> | undefined;
6454
+ }[] | [string, string] | null | undefined> | undefined;
5775
6455
  originalActionId?: string | undefined;
5776
6456
  }>, z.ZodObject<z.objectUtil.extendShape<{
5777
6457
  id: z.ZodString;
5778
6458
  transactionId: z.ZodString;
6459
+ createdByUserType: z.ZodEnum<["user", "system"]>;
5779
6460
  createdAt: z.ZodString;
5780
6461
  createdBy: z.ZodString;
5781
6462
  createdByRole: z.ZodString;
6463
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6464
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5782
6465
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5783
6466
  filename: z.ZodString;
5784
6467
  originalFilename: z.ZodString;
@@ -5892,7 +6575,19 @@ export declare const EventDocument: z.ZodObject<{
5892
6575
  addressLine2?: string | null | undefined;
5893
6576
  addressLine3?: string | null | undefined;
5894
6577
  postcodeOrZip?: string | null | undefined;
5895
- }>]>>;
6578
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
6579
+ firstname: z.ZodString;
6580
+ surname: z.ZodString;
6581
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6582
+ }, "strip", z.ZodTypeAny, {
6583
+ firstname: string;
6584
+ surname: string;
6585
+ middlename?: string | null | undefined;
6586
+ }, {
6587
+ firstname: string;
6588
+ surname: string;
6589
+ middlename?: string | null | undefined;
6590
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
5896
6591
  annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5897
6592
  filename: z.ZodString;
5898
6593
  originalFilename: z.ZodString;
@@ -6006,8 +6701,19 @@ export declare const EventDocument: z.ZodObject<{
6006
6701
  addressLine2?: string | null | undefined;
6007
6702
  addressLine3?: string | null | undefined;
6008
6703
  postcodeOrZip?: string | null | undefined;
6009
- }>]>>>;
6010
- createdAtLocation: z.ZodString;
6704
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
6705
+ firstname: z.ZodString;
6706
+ surname: z.ZodString;
6707
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6708
+ }, "strip", z.ZodTypeAny, {
6709
+ firstname: string;
6710
+ surname: string;
6711
+ middlename?: string | null | undefined;
6712
+ }, {
6713
+ firstname: string;
6714
+ surname: string;
6715
+ middlename?: string | null | undefined;
6716
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
6011
6717
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6012
6718
  originalActionId: z.ZodOptional<z.ZodString>;
6013
6719
  }, {
@@ -6017,6 +6723,7 @@ export declare const EventDocument: z.ZodObject<{
6017
6723
  id: string;
6018
6724
  status: "Rejected" | "Requested" | "Accepted";
6019
6725
  transactionId: string;
6726
+ createdByUserType: "system" | "user";
6020
6727
  createdAt: string;
6021
6728
  createdBy: string;
6022
6729
  createdByRole: string;
@@ -6035,6 +6742,10 @@ export declare const EventDocument: z.ZodObject<{
6035
6742
  residentialArea?: string | null | undefined;
6036
6743
  street?: string | null | undefined;
6037
6744
  zipCode?: string | null | undefined;
6745
+ } | {
6746
+ firstname: string;
6747
+ surname: string;
6748
+ middlename?: string | null | undefined;
6038
6749
  } | {
6039
6750
  country: string;
6040
6751
  district: string;
@@ -6057,8 +6768,9 @@ export declare const EventDocument: z.ZodObject<{
6057
6768
  option: string;
6058
6769
  filename: string;
6059
6770
  originalFilename: string;
6060
- }[] | [string, string] | undefined>;
6061
- createdAtLocation: string;
6771
+ }[] | [string, string] | null | undefined>;
6772
+ createdBySignature?: string | null | undefined;
6773
+ createdAtLocation?: string | null | undefined;
6062
6774
  annotation?: Record<string, string | number | boolean | {
6063
6775
  type: string;
6064
6776
  filename: string;
@@ -6074,6 +6786,10 @@ export declare const EventDocument: z.ZodObject<{
6074
6786
  residentialArea?: string | null | undefined;
6075
6787
  street?: string | null | undefined;
6076
6788
  zipCode?: string | null | undefined;
6789
+ } | {
6790
+ firstname: string;
6791
+ surname: string;
6792
+ middlename?: string | null | undefined;
6077
6793
  } | {
6078
6794
  country: string;
6079
6795
  district: string;
@@ -6096,13 +6812,14 @@ export declare const EventDocument: z.ZodObject<{
6096
6812
  option: string;
6097
6813
  filename: string;
6098
6814
  originalFilename: string;
6099
- }[] | [string, string] | undefined> | undefined;
6815
+ }[] | [string, string] | null | undefined> | undefined;
6100
6816
  originalActionId?: string | undefined;
6101
6817
  }, {
6102
6818
  type: "READ";
6103
6819
  id: string;
6104
6820
  status: "Rejected" | "Requested" | "Accepted";
6105
6821
  transactionId: string;
6822
+ createdByUserType: "system" | "user";
6106
6823
  createdAt: string;
6107
6824
  createdBy: string;
6108
6825
  createdByRole: string;
@@ -6121,6 +6838,10 @@ export declare const EventDocument: z.ZodObject<{
6121
6838
  residentialArea?: string | null | undefined;
6122
6839
  street?: string | null | undefined;
6123
6840
  zipCode?: string | null | undefined;
6841
+ } | {
6842
+ firstname: string;
6843
+ surname: string;
6844
+ middlename?: string | null | undefined;
6124
6845
  } | {
6125
6846
  country: string;
6126
6847
  district: string;
@@ -6143,8 +6864,9 @@ export declare const EventDocument: z.ZodObject<{
6143
6864
  option: string;
6144
6865
  filename: string;
6145
6866
  originalFilename: string;
6146
- }[] | [string, string] | undefined>;
6147
- createdAtLocation: string;
6867
+ }[] | [string, string] | null | undefined>;
6868
+ createdBySignature?: string | null | undefined;
6869
+ createdAtLocation?: string | null | undefined;
6148
6870
  annotation?: Record<string, string | number | boolean | {
6149
6871
  type: string;
6150
6872
  filename: string;
@@ -6160,6 +6882,10 @@ export declare const EventDocument: z.ZodObject<{
6160
6882
  residentialArea?: string | null | undefined;
6161
6883
  street?: string | null | undefined;
6162
6884
  zipCode?: string | null | undefined;
6885
+ } | {
6886
+ firstname: string;
6887
+ surname: string;
6888
+ middlename?: string | null | undefined;
6163
6889
  } | {
6164
6890
  country: string;
6165
6891
  district: string;
@@ -6182,14 +6908,17 @@ export declare const EventDocument: z.ZodObject<{
6182
6908
  option: string;
6183
6909
  filename: string;
6184
6910
  originalFilename: string;
6185
- }[] | [string, string] | undefined> | undefined;
6911
+ }[] | [string, string] | null | undefined> | undefined;
6186
6912
  originalActionId?: string | undefined;
6187
6913
  }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
6188
6914
  id: z.ZodString;
6189
6915
  transactionId: z.ZodString;
6916
+ createdByUserType: z.ZodEnum<["user", "system"]>;
6190
6917
  createdAt: z.ZodString;
6191
6918
  createdBy: z.ZodString;
6192
6919
  createdByRole: z.ZodString;
6920
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6921
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6193
6922
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6194
6923
  filename: z.ZodString;
6195
6924
  originalFilename: z.ZodString;
@@ -6303,7 +7032,19 @@ export declare const EventDocument: z.ZodObject<{
6303
7032
  addressLine2?: string | null | undefined;
6304
7033
  addressLine3?: string | null | undefined;
6305
7034
  postcodeOrZip?: string | null | undefined;
6306
- }>]>>;
7035
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
7036
+ firstname: z.ZodString;
7037
+ surname: z.ZodString;
7038
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7039
+ }, "strip", z.ZodTypeAny, {
7040
+ firstname: string;
7041
+ surname: string;
7042
+ middlename?: string | null | undefined;
7043
+ }, {
7044
+ firstname: string;
7045
+ surname: string;
7046
+ middlename?: string | null | undefined;
7047
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
6307
7048
  annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6308
7049
  filename: z.ZodString;
6309
7050
  originalFilename: z.ZodString;
@@ -6417,8 +7158,19 @@ export declare const EventDocument: z.ZodObject<{
6417
7158
  addressLine2?: string | null | undefined;
6418
7159
  addressLine3?: string | null | undefined;
6419
7160
  postcodeOrZip?: string | null | undefined;
6420
- }>]>>>;
6421
- createdAtLocation: z.ZodString;
7161
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
7162
+ firstname: z.ZodString;
7163
+ surname: z.ZodString;
7164
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7165
+ }, "strip", z.ZodTypeAny, {
7166
+ firstname: string;
7167
+ surname: string;
7168
+ middlename?: string | null | undefined;
7169
+ }, {
7170
+ firstname: string;
7171
+ surname: string;
7172
+ middlename?: string | null | undefined;
7173
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
6422
7174
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6423
7175
  originalActionId: z.ZodOptional<z.ZodString>;
6424
7176
  }, "declaration" | "annotation">, {
@@ -6429,20 +7181,24 @@ export declare const EventDocument: z.ZodObject<{
6429
7181
  id: string;
6430
7182
  status: "Rejected";
6431
7183
  transactionId: string;
7184
+ createdByUserType: "system" | "user";
6432
7185
  createdAt: string;
6433
7186
  createdBy: string;
6434
7187
  createdByRole: string;
6435
- createdAtLocation: string;
7188
+ createdBySignature?: string | null | undefined;
7189
+ createdAtLocation?: string | null | undefined;
6436
7190
  originalActionId?: string | undefined;
6437
7191
  }, {
6438
7192
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
6439
7193
  id: string;
6440
7194
  status: "Rejected";
6441
7195
  transactionId: string;
7196
+ createdByUserType: "system" | "user";
6442
7197
  createdAt: string;
6443
7198
  createdBy: string;
6444
7199
  createdByRole: string;
6445
- createdAtLocation: string;
7200
+ createdBySignature?: string | null | undefined;
7201
+ createdAtLocation?: string | null | undefined;
6446
7202
  originalActionId?: string | undefined;
6447
7203
  }>]>, "many">;
6448
7204
  trackingId: z.ZodString;
@@ -6456,6 +7212,7 @@ export declare const EventDocument: z.ZodObject<{
6456
7212
  id: string;
6457
7213
  status: "Rejected" | "Requested" | "Accepted";
6458
7214
  transactionId: string;
7215
+ createdByUserType: "system" | "user";
6459
7216
  createdAt: string;
6460
7217
  createdBy: string;
6461
7218
  createdByRole: string;
@@ -6474,6 +7231,10 @@ export declare const EventDocument: z.ZodObject<{
6474
7231
  residentialArea?: string | null | undefined;
6475
7232
  street?: string | null | undefined;
6476
7233
  zipCode?: string | null | undefined;
7234
+ } | {
7235
+ firstname: string;
7236
+ surname: string;
7237
+ middlename?: string | null | undefined;
6477
7238
  } | {
6478
7239
  country: string;
6479
7240
  district: string;
@@ -6496,9 +7257,10 @@ export declare const EventDocument: z.ZodObject<{
6496
7257
  option: string;
6497
7258
  filename: string;
6498
7259
  originalFilename: string;
6499
- }[] | [string, string] | undefined>;
6500
- createdAtLocation: string;
7260
+ }[] | [string, string] | null | undefined>;
6501
7261
  assignedTo: string;
7262
+ createdBySignature?: string | null | undefined;
7263
+ createdAtLocation?: string | null | undefined;
6502
7264
  annotation?: Record<string, string | number | boolean | {
6503
7265
  type: string;
6504
7266
  filename: string;
@@ -6514,6 +7276,10 @@ export declare const EventDocument: z.ZodObject<{
6514
7276
  residentialArea?: string | null | undefined;
6515
7277
  street?: string | null | undefined;
6516
7278
  zipCode?: string | null | undefined;
7279
+ } | {
7280
+ firstname: string;
7281
+ surname: string;
7282
+ middlename?: string | null | undefined;
6517
7283
  } | {
6518
7284
  country: string;
6519
7285
  district: string;
@@ -6536,13 +7302,14 @@ export declare const EventDocument: z.ZodObject<{
6536
7302
  option: string;
6537
7303
  filename: string;
6538
7304
  originalFilename: string;
6539
- }[] | [string, string] | undefined> | undefined;
7305
+ }[] | [string, string] | null | undefined> | undefined;
6540
7306
  originalActionId?: string | undefined;
6541
7307
  } | {
6542
7308
  type: "UNASSIGN";
6543
7309
  id: string;
6544
7310
  status: "Rejected" | "Requested" | "Accepted";
6545
7311
  transactionId: string;
7312
+ createdByUserType: "system" | "user";
6546
7313
  createdAt: string;
6547
7314
  createdBy: string;
6548
7315
  createdByRole: string;
@@ -6561,6 +7328,10 @@ export declare const EventDocument: z.ZodObject<{
6561
7328
  residentialArea?: string | null | undefined;
6562
7329
  street?: string | null | undefined;
6563
7330
  zipCode?: string | null | undefined;
7331
+ } | {
7332
+ firstname: string;
7333
+ surname: string;
7334
+ middlename?: string | null | undefined;
6564
7335
  } | {
6565
7336
  country: string;
6566
7337
  district: string;
@@ -6583,9 +7354,10 @@ export declare const EventDocument: z.ZodObject<{
6583
7354
  option: string;
6584
7355
  filename: string;
6585
7356
  originalFilename: string;
6586
- }[] | [string, string] | undefined>;
6587
- createdAtLocation: string;
7357
+ }[] | [string, string] | null | undefined>;
6588
7358
  assignedTo: null;
7359
+ createdBySignature?: string | null | undefined;
7360
+ createdAtLocation?: string | null | undefined;
6589
7361
  annotation?: Record<string, string | number | boolean | {
6590
7362
  type: string;
6591
7363
  filename: string;
@@ -6601,6 +7373,10 @@ export declare const EventDocument: z.ZodObject<{
6601
7373
  residentialArea?: string | null | undefined;
6602
7374
  street?: string | null | undefined;
6603
7375
  zipCode?: string | null | undefined;
7376
+ } | {
7377
+ firstname: string;
7378
+ surname: string;
7379
+ middlename?: string | null | undefined;
6604
7380
  } | {
6605
7381
  country: string;
6606
7382
  district: string;
@@ -6623,13 +7399,14 @@ export declare const EventDocument: z.ZodObject<{
6623
7399
  option: string;
6624
7400
  filename: string;
6625
7401
  originalFilename: string;
6626
- }[] | [string, string] | undefined> | undefined;
7402
+ }[] | [string, string] | null | undefined> | undefined;
6627
7403
  originalActionId?: string | undefined;
6628
7404
  } | {
6629
7405
  type: "REGISTER";
6630
7406
  id: string;
6631
7407
  status: "Rejected" | "Requested" | "Accepted";
6632
7408
  transactionId: string;
7409
+ createdByUserType: "system" | "user";
6633
7410
  createdAt: string;
6634
7411
  createdBy: string;
6635
7412
  createdByRole: string;
@@ -6648,6 +7425,10 @@ export declare const EventDocument: z.ZodObject<{
6648
7425
  residentialArea?: string | null | undefined;
6649
7426
  street?: string | null | undefined;
6650
7427
  zipCode?: string | null | undefined;
7428
+ } | {
7429
+ firstname: string;
7430
+ surname: string;
7431
+ middlename?: string | null | undefined;
6651
7432
  } | {
6652
7433
  country: string;
6653
7434
  district: string;
@@ -6670,8 +7451,9 @@ export declare const EventDocument: z.ZodObject<{
6670
7451
  option: string;
6671
7452
  filename: string;
6672
7453
  originalFilename: string;
6673
- }[] | [string, string] | undefined>;
6674
- createdAtLocation: string;
7454
+ }[] | [string, string] | null | undefined>;
7455
+ createdBySignature?: string | null | undefined;
7456
+ createdAtLocation?: string | null | undefined;
6675
7457
  annotation?: Record<string, string | number | boolean | {
6676
7458
  type: string;
6677
7459
  filename: string;
@@ -6687,6 +7469,10 @@ export declare const EventDocument: z.ZodObject<{
6687
7469
  residentialArea?: string | null | undefined;
6688
7470
  street?: string | null | undefined;
6689
7471
  zipCode?: string | null | undefined;
7472
+ } | {
7473
+ firstname: string;
7474
+ surname: string;
7475
+ middlename?: string | null | undefined;
6690
7476
  } | {
6691
7477
  country: string;
6692
7478
  district: string;
@@ -6709,7 +7495,7 @@ export declare const EventDocument: z.ZodObject<{
6709
7495
  option: string;
6710
7496
  filename: string;
6711
7497
  originalFilename: string;
6712
- }[] | [string, string] | undefined> | undefined;
7498
+ }[] | [string, string] | null | undefined> | undefined;
6713
7499
  originalActionId?: string | undefined;
6714
7500
  registrationNumber?: string | undefined;
6715
7501
  } | {
@@ -6717,6 +7503,7 @@ export declare const EventDocument: z.ZodObject<{
6717
7503
  id: string;
6718
7504
  status: "Rejected" | "Requested" | "Accepted";
6719
7505
  transactionId: string;
7506
+ createdByUserType: "system" | "user";
6720
7507
  createdAt: string;
6721
7508
  createdBy: string;
6722
7509
  createdByRole: string;
@@ -6735,6 +7522,10 @@ export declare const EventDocument: z.ZodObject<{
6735
7522
  residentialArea?: string | null | undefined;
6736
7523
  street?: string | null | undefined;
6737
7524
  zipCode?: string | null | undefined;
7525
+ } | {
7526
+ firstname: string;
7527
+ surname: string;
7528
+ middlename?: string | null | undefined;
6738
7529
  } | {
6739
7530
  country: string;
6740
7531
  district: string;
@@ -6757,8 +7548,9 @@ export declare const EventDocument: z.ZodObject<{
6757
7548
  option: string;
6758
7549
  filename: string;
6759
7550
  originalFilename: string;
6760
- }[] | [string, string] | undefined>;
6761
- createdAtLocation: string;
7551
+ }[] | [string, string] | null | undefined>;
7552
+ createdBySignature?: string | null | undefined;
7553
+ createdAtLocation?: string | null | undefined;
6762
7554
  annotation?: Record<string, string | number | boolean | {
6763
7555
  type: string;
6764
7556
  filename: string;
@@ -6774,6 +7566,10 @@ export declare const EventDocument: z.ZodObject<{
6774
7566
  residentialArea?: string | null | undefined;
6775
7567
  street?: string | null | undefined;
6776
7568
  zipCode?: string | null | undefined;
7569
+ } | {
7570
+ firstname: string;
7571
+ surname: string;
7572
+ middlename?: string | null | undefined;
6777
7573
  } | {
6778
7574
  country: string;
6779
7575
  district: string;
@@ -6796,13 +7592,14 @@ export declare const EventDocument: z.ZodObject<{
6796
7592
  option: string;
6797
7593
  filename: string;
6798
7594
  originalFilename: string;
6799
- }[] | [string, string] | undefined> | undefined;
7595
+ }[] | [string, string] | null | undefined> | undefined;
6800
7596
  originalActionId?: string | undefined;
6801
7597
  } | {
6802
7598
  type: "VALIDATE";
6803
7599
  id: string;
6804
7600
  status: "Rejected" | "Requested" | "Accepted";
6805
7601
  transactionId: string;
7602
+ createdByUserType: "system" | "user";
6806
7603
  createdAt: string;
6807
7604
  createdBy: string;
6808
7605
  createdByRole: string;
@@ -6821,6 +7618,10 @@ export declare const EventDocument: z.ZodObject<{
6821
7618
  residentialArea?: string | null | undefined;
6822
7619
  street?: string | null | undefined;
6823
7620
  zipCode?: string | null | undefined;
7621
+ } | {
7622
+ firstname: string;
7623
+ surname: string;
7624
+ middlename?: string | null | undefined;
6824
7625
  } | {
6825
7626
  country: string;
6826
7627
  district: string;
@@ -6843,8 +7644,9 @@ export declare const EventDocument: z.ZodObject<{
6843
7644
  option: string;
6844
7645
  filename: string;
6845
7646
  originalFilename: string;
6846
- }[] | [string, string] | undefined>;
6847
- createdAtLocation: string;
7647
+ }[] | [string, string] | null | undefined>;
7648
+ createdBySignature?: string | null | undefined;
7649
+ createdAtLocation?: string | null | undefined;
6848
7650
  annotation?: Record<string, string | number | boolean | {
6849
7651
  type: string;
6850
7652
  filename: string;
@@ -6860,6 +7662,10 @@ export declare const EventDocument: z.ZodObject<{
6860
7662
  residentialArea?: string | null | undefined;
6861
7663
  street?: string | null | undefined;
6862
7664
  zipCode?: string | null | undefined;
7665
+ } | {
7666
+ firstname: string;
7667
+ surname: string;
7668
+ middlename?: string | null | undefined;
6863
7669
  } | {
6864
7670
  country: string;
6865
7671
  district: string;
@@ -6882,13 +7688,18 @@ export declare const EventDocument: z.ZodObject<{
6882
7688
  option: string;
6883
7689
  filename: string;
6884
7690
  originalFilename: string;
6885
- }[] | [string, string] | undefined> | undefined;
7691
+ }[] | [string, string] | null | undefined> | undefined;
6886
7692
  originalActionId?: string | undefined;
6887
7693
  } | {
6888
7694
  type: "REJECT";
6889
7695
  id: string;
6890
7696
  status: "Rejected" | "Requested" | "Accepted";
7697
+ reason: {
7698
+ message: string;
7699
+ isDuplicate?: boolean | undefined;
7700
+ };
6891
7701
  transactionId: string;
7702
+ createdByUserType: "system" | "user";
6892
7703
  createdAt: string;
6893
7704
  createdBy: string;
6894
7705
  createdByRole: string;
@@ -6907,6 +7718,10 @@ export declare const EventDocument: z.ZodObject<{
6907
7718
  residentialArea?: string | null | undefined;
6908
7719
  street?: string | null | undefined;
6909
7720
  zipCode?: string | null | undefined;
7721
+ } | {
7722
+ firstname: string;
7723
+ surname: string;
7724
+ middlename?: string | null | undefined;
6910
7725
  } | {
6911
7726
  country: string;
6912
7727
  district: string;
@@ -6929,8 +7744,9 @@ export declare const EventDocument: z.ZodObject<{
6929
7744
  option: string;
6930
7745
  filename: string;
6931
7746
  originalFilename: string;
6932
- }[] | [string, string] | undefined>;
6933
- createdAtLocation: string;
7747
+ }[] | [string, string] | null | undefined>;
7748
+ createdBySignature?: string | null | undefined;
7749
+ createdAtLocation?: string | null | undefined;
6934
7750
  annotation?: Record<string, string | number | boolean | {
6935
7751
  type: string;
6936
7752
  filename: string;
@@ -6946,6 +7762,10 @@ export declare const EventDocument: z.ZodObject<{
6946
7762
  residentialArea?: string | null | undefined;
6947
7763
  street?: string | null | undefined;
6948
7764
  zipCode?: string | null | undefined;
7765
+ } | {
7766
+ firstname: string;
7767
+ surname: string;
7768
+ middlename?: string | null | undefined;
6949
7769
  } | {
6950
7770
  country: string;
6951
7771
  district: string;
@@ -6968,13 +7788,14 @@ export declare const EventDocument: z.ZodObject<{
6968
7788
  option: string;
6969
7789
  filename: string;
6970
7790
  originalFilename: string;
6971
- }[] | [string, string] | undefined> | undefined;
7791
+ }[] | [string, string] | null | undefined> | undefined;
6972
7792
  originalActionId?: string | undefined;
6973
7793
  } | {
6974
7794
  type: "MARKED_AS_DUPLICATE";
6975
7795
  id: string;
6976
7796
  status: "Rejected" | "Requested" | "Accepted";
6977
7797
  transactionId: string;
7798
+ createdByUserType: "system" | "user";
6978
7799
  createdAt: string;
6979
7800
  createdBy: string;
6980
7801
  createdByRole: string;
@@ -6993,6 +7814,10 @@ export declare const EventDocument: z.ZodObject<{
6993
7814
  residentialArea?: string | null | undefined;
6994
7815
  street?: string | null | undefined;
6995
7816
  zipCode?: string | null | undefined;
7817
+ } | {
7818
+ firstname: string;
7819
+ surname: string;
7820
+ middlename?: string | null | undefined;
6996
7821
  } | {
6997
7822
  country: string;
6998
7823
  district: string;
@@ -7015,8 +7840,9 @@ export declare const EventDocument: z.ZodObject<{
7015
7840
  option: string;
7016
7841
  filename: string;
7017
7842
  originalFilename: string;
7018
- }[] | [string, string] | undefined>;
7019
- createdAtLocation: string;
7843
+ }[] | [string, string] | null | undefined>;
7844
+ createdBySignature?: string | null | undefined;
7845
+ createdAtLocation?: string | null | undefined;
7020
7846
  annotation?: Record<string, string | number | boolean | {
7021
7847
  type: string;
7022
7848
  filename: string;
@@ -7032,6 +7858,10 @@ export declare const EventDocument: z.ZodObject<{
7032
7858
  residentialArea?: string | null | undefined;
7033
7859
  street?: string | null | undefined;
7034
7860
  zipCode?: string | null | undefined;
7861
+ } | {
7862
+ firstname: string;
7863
+ surname: string;
7864
+ middlename?: string | null | undefined;
7035
7865
  } | {
7036
7866
  country: string;
7037
7867
  district: string;
@@ -7054,13 +7884,18 @@ export declare const EventDocument: z.ZodObject<{
7054
7884
  option: string;
7055
7885
  filename: string;
7056
7886
  originalFilename: string;
7057
- }[] | [string, string] | undefined> | undefined;
7887
+ }[] | [string, string] | null | undefined> | undefined;
7058
7888
  originalActionId?: string | undefined;
7059
7889
  } | {
7060
7890
  type: "ARCHIVE";
7061
7891
  id: string;
7062
7892
  status: "Rejected" | "Requested" | "Accepted";
7893
+ reason: {
7894
+ message: string;
7895
+ isDuplicate?: boolean | undefined;
7896
+ };
7063
7897
  transactionId: string;
7898
+ createdByUserType: "system" | "user";
7064
7899
  createdAt: string;
7065
7900
  createdBy: string;
7066
7901
  createdByRole: string;
@@ -7079,6 +7914,10 @@ export declare const EventDocument: z.ZodObject<{
7079
7914
  residentialArea?: string | null | undefined;
7080
7915
  street?: string | null | undefined;
7081
7916
  zipCode?: string | null | undefined;
7917
+ } | {
7918
+ firstname: string;
7919
+ surname: string;
7920
+ middlename?: string | null | undefined;
7082
7921
  } | {
7083
7922
  country: string;
7084
7923
  district: string;
@@ -7101,8 +7940,9 @@ export declare const EventDocument: z.ZodObject<{
7101
7940
  option: string;
7102
7941
  filename: string;
7103
7942
  originalFilename: string;
7104
- }[] | [string, string] | undefined>;
7105
- createdAtLocation: string;
7943
+ }[] | [string, string] | null | undefined>;
7944
+ createdBySignature?: string | null | undefined;
7945
+ createdAtLocation?: string | null | undefined;
7106
7946
  annotation?: Record<string, string | number | boolean | {
7107
7947
  type: string;
7108
7948
  filename: string;
@@ -7118,6 +7958,10 @@ export declare const EventDocument: z.ZodObject<{
7118
7958
  residentialArea?: string | null | undefined;
7119
7959
  street?: string | null | undefined;
7120
7960
  zipCode?: string | null | undefined;
7961
+ } | {
7962
+ firstname: string;
7963
+ surname: string;
7964
+ middlename?: string | null | undefined;
7121
7965
  } | {
7122
7966
  country: string;
7123
7967
  district: string;
@@ -7140,13 +7984,14 @@ export declare const EventDocument: z.ZodObject<{
7140
7984
  option: string;
7141
7985
  filename: string;
7142
7986
  originalFilename: string;
7143
- }[] | [string, string] | undefined> | undefined;
7987
+ }[] | [string, string] | null | undefined> | undefined;
7144
7988
  originalActionId?: string | undefined;
7145
7989
  } | {
7146
7990
  type: "CREATE";
7147
7991
  id: string;
7148
7992
  status: "Rejected" | "Requested" | "Accepted";
7149
7993
  transactionId: string;
7994
+ createdByUserType: "system" | "user";
7150
7995
  createdAt: string;
7151
7996
  createdBy: string;
7152
7997
  createdByRole: string;
@@ -7165,6 +8010,10 @@ export declare const EventDocument: z.ZodObject<{
7165
8010
  residentialArea?: string | null | undefined;
7166
8011
  street?: string | null | undefined;
7167
8012
  zipCode?: string | null | undefined;
8013
+ } | {
8014
+ firstname: string;
8015
+ surname: string;
8016
+ middlename?: string | null | undefined;
7168
8017
  } | {
7169
8018
  country: string;
7170
8019
  district: string;
@@ -7187,8 +8036,9 @@ export declare const EventDocument: z.ZodObject<{
7187
8036
  option: string;
7188
8037
  filename: string;
7189
8038
  originalFilename: string;
7190
- }[] | [string, string] | undefined>;
7191
- createdAtLocation: string;
8039
+ }[] | [string, string] | null | undefined>;
8040
+ createdBySignature?: string | null | undefined;
8041
+ createdAtLocation?: string | null | undefined;
7192
8042
  annotation?: Record<string, string | number | boolean | {
7193
8043
  type: string;
7194
8044
  filename: string;
@@ -7204,6 +8054,10 @@ export declare const EventDocument: z.ZodObject<{
7204
8054
  residentialArea?: string | null | undefined;
7205
8055
  street?: string | null | undefined;
7206
8056
  zipCode?: string | null | undefined;
8057
+ } | {
8058
+ firstname: string;
8059
+ surname: string;
8060
+ middlename?: string | null | undefined;
7207
8061
  } | {
7208
8062
  country: string;
7209
8063
  district: string;
@@ -7226,13 +8080,14 @@ export declare const EventDocument: z.ZodObject<{
7226
8080
  option: string;
7227
8081
  filename: string;
7228
8082
  originalFilename: string;
7229
- }[] | [string, string] | undefined> | undefined;
8083
+ }[] | [string, string] | null | undefined> | undefined;
7230
8084
  originalActionId?: string | undefined;
7231
8085
  } | {
7232
8086
  type: "NOTIFY";
7233
8087
  id: string;
7234
8088
  status: "Rejected" | "Requested" | "Accepted";
7235
8089
  transactionId: string;
8090
+ createdByUserType: "system" | "user";
7236
8091
  createdAt: string;
7237
8092
  createdBy: string;
7238
8093
  createdByRole: string;
@@ -7251,6 +8106,10 @@ export declare const EventDocument: z.ZodObject<{
7251
8106
  residentialArea?: string | null | undefined;
7252
8107
  street?: string | null | undefined;
7253
8108
  zipCode?: string | null | undefined;
8109
+ } | {
8110
+ firstname: string;
8111
+ surname: string;
8112
+ middlename?: string | null | undefined;
7254
8113
  } | {
7255
8114
  country: string;
7256
8115
  district: string;
@@ -7273,8 +8132,9 @@ export declare const EventDocument: z.ZodObject<{
7273
8132
  option: string;
7274
8133
  filename: string;
7275
8134
  originalFilename: string;
7276
- }[] | [string, string] | undefined>;
7277
- createdAtLocation: string;
8135
+ }[] | [string, string] | null | undefined>;
8136
+ createdBySignature?: string | null | undefined;
8137
+ createdAtLocation?: string | null | undefined;
7278
8138
  annotation?: Record<string, string | number | boolean | {
7279
8139
  type: string;
7280
8140
  filename: string;
@@ -7290,6 +8150,10 @@ export declare const EventDocument: z.ZodObject<{
7290
8150
  residentialArea?: string | null | undefined;
7291
8151
  street?: string | null | undefined;
7292
8152
  zipCode?: string | null | undefined;
8153
+ } | {
8154
+ firstname: string;
8155
+ surname: string;
8156
+ middlename?: string | null | undefined;
7293
8157
  } | {
7294
8158
  country: string;
7295
8159
  district: string;
@@ -7312,13 +8176,14 @@ export declare const EventDocument: z.ZodObject<{
7312
8176
  option: string;
7313
8177
  filename: string;
7314
8178
  originalFilename: string;
7315
- }[] | [string, string] | undefined> | undefined;
8179
+ }[] | [string, string] | null | undefined> | undefined;
7316
8180
  originalActionId?: string | undefined;
7317
8181
  } | {
7318
8182
  type: "PRINT_CERTIFICATE";
7319
8183
  id: string;
7320
8184
  status: "Rejected" | "Requested" | "Accepted";
7321
8185
  transactionId: string;
8186
+ createdByUserType: "system" | "user";
7322
8187
  createdAt: string;
7323
8188
  createdBy: string;
7324
8189
  createdByRole: string;
@@ -7337,6 +8202,10 @@ export declare const EventDocument: z.ZodObject<{
7337
8202
  residentialArea?: string | null | undefined;
7338
8203
  street?: string | null | undefined;
7339
8204
  zipCode?: string | null | undefined;
8205
+ } | {
8206
+ firstname: string;
8207
+ surname: string;
8208
+ middlename?: string | null | undefined;
7340
8209
  } | {
7341
8210
  country: string;
7342
8211
  district: string;
@@ -7359,8 +8228,9 @@ export declare const EventDocument: z.ZodObject<{
7359
8228
  option: string;
7360
8229
  filename: string;
7361
8230
  originalFilename: string;
7362
- }[] | [string, string] | undefined>;
7363
- createdAtLocation: string;
8231
+ }[] | [string, string] | null | undefined>;
8232
+ createdBySignature?: string | null | undefined;
8233
+ createdAtLocation?: string | null | undefined;
7364
8234
  annotation?: Record<string, string | number | boolean | {
7365
8235
  type: string;
7366
8236
  filename: string;
@@ -7376,6 +8246,10 @@ export declare const EventDocument: z.ZodObject<{
7376
8246
  residentialArea?: string | null | undefined;
7377
8247
  street?: string | null | undefined;
7378
8248
  zipCode?: string | null | undefined;
8249
+ } | {
8250
+ firstname: string;
8251
+ surname: string;
8252
+ middlename?: string | null | undefined;
7379
8253
  } | {
7380
8254
  country: string;
7381
8255
  district: string;
@@ -7398,13 +8272,14 @@ export declare const EventDocument: z.ZodObject<{
7398
8272
  option: string;
7399
8273
  filename: string;
7400
8274
  originalFilename: string;
7401
- }[] | [string, string] | undefined> | undefined;
8275
+ }[] | [string, string] | null | undefined> | undefined;
7402
8276
  originalActionId?: string | undefined;
7403
8277
  } | {
7404
8278
  type: "REQUEST_CORRECTION";
7405
8279
  id: string;
7406
8280
  status: "Rejected" | "Requested" | "Accepted";
7407
8281
  transactionId: string;
8282
+ createdByUserType: "system" | "user";
7408
8283
  createdAt: string;
7409
8284
  createdBy: string;
7410
8285
  createdByRole: string;
@@ -7423,6 +8298,10 @@ export declare const EventDocument: z.ZodObject<{
7423
8298
  residentialArea?: string | null | undefined;
7424
8299
  street?: string | null | undefined;
7425
8300
  zipCode?: string | null | undefined;
8301
+ } | {
8302
+ firstname: string;
8303
+ surname: string;
8304
+ middlename?: string | null | undefined;
7426
8305
  } | {
7427
8306
  country: string;
7428
8307
  district: string;
@@ -7445,8 +8324,9 @@ export declare const EventDocument: z.ZodObject<{
7445
8324
  option: string;
7446
8325
  filename: string;
7447
8326
  originalFilename: string;
7448
- }[] | [string, string] | undefined>;
7449
- createdAtLocation: string;
8327
+ }[] | [string, string] | null | undefined>;
8328
+ createdBySignature?: string | null | undefined;
8329
+ createdAtLocation?: string | null | undefined;
7450
8330
  annotation?: Record<string, string | number | boolean | {
7451
8331
  type: string;
7452
8332
  filename: string;
@@ -7462,6 +8342,10 @@ export declare const EventDocument: z.ZodObject<{
7462
8342
  residentialArea?: string | null | undefined;
7463
8343
  street?: string | null | undefined;
7464
8344
  zipCode?: string | null | undefined;
8345
+ } | {
8346
+ firstname: string;
8347
+ surname: string;
8348
+ middlename?: string | null | undefined;
7465
8349
  } | {
7466
8350
  country: string;
7467
8351
  district: string;
@@ -7484,13 +8368,14 @@ export declare const EventDocument: z.ZodObject<{
7484
8368
  option: string;
7485
8369
  filename: string;
7486
8370
  originalFilename: string;
7487
- }[] | [string, string] | undefined> | undefined;
8371
+ }[] | [string, string] | null | undefined> | undefined;
7488
8372
  originalActionId?: string | undefined;
7489
8373
  } | {
7490
8374
  type: "APPROVE_CORRECTION";
7491
8375
  id: string;
7492
8376
  status: "Rejected" | "Requested" | "Accepted";
7493
8377
  transactionId: string;
8378
+ createdByUserType: "system" | "user";
7494
8379
  createdAt: string;
7495
8380
  createdBy: string;
7496
8381
  createdByRole: string;
@@ -7509,6 +8394,10 @@ export declare const EventDocument: z.ZodObject<{
7509
8394
  residentialArea?: string | null | undefined;
7510
8395
  street?: string | null | undefined;
7511
8396
  zipCode?: string | null | undefined;
8397
+ } | {
8398
+ firstname: string;
8399
+ surname: string;
8400
+ middlename?: string | null | undefined;
7512
8401
  } | {
7513
8402
  country: string;
7514
8403
  district: string;
@@ -7531,9 +8420,10 @@ export declare const EventDocument: z.ZodObject<{
7531
8420
  option: string;
7532
8421
  filename: string;
7533
8422
  originalFilename: string;
7534
- }[] | [string, string] | undefined>;
7535
- createdAtLocation: string;
8423
+ }[] | [string, string] | null | undefined>;
7536
8424
  requestId: string;
8425
+ createdBySignature?: string | null | undefined;
8426
+ createdAtLocation?: string | null | undefined;
7537
8427
  annotation?: Record<string, string | number | boolean | {
7538
8428
  type: string;
7539
8429
  filename: string;
@@ -7549,6 +8439,10 @@ export declare const EventDocument: z.ZodObject<{
7549
8439
  residentialArea?: string | null | undefined;
7550
8440
  street?: string | null | undefined;
7551
8441
  zipCode?: string | null | undefined;
8442
+ } | {
8443
+ firstname: string;
8444
+ surname: string;
8445
+ middlename?: string | null | undefined;
7552
8446
  } | {
7553
8447
  country: string;
7554
8448
  district: string;
@@ -7571,13 +8465,14 @@ export declare const EventDocument: z.ZodObject<{
7571
8465
  option: string;
7572
8466
  filename: string;
7573
8467
  originalFilename: string;
7574
- }[] | [string, string] | undefined> | undefined;
8468
+ }[] | [string, string] | null | undefined> | undefined;
7575
8469
  originalActionId?: string | undefined;
7576
8470
  } | {
7577
8471
  type: "REJECT_CORRECTION";
7578
8472
  id: string;
7579
8473
  status: "Rejected" | "Requested" | "Accepted";
7580
8474
  transactionId: string;
8475
+ createdByUserType: "system" | "user";
7581
8476
  createdAt: string;
7582
8477
  createdBy: string;
7583
8478
  createdByRole: string;
@@ -7596,6 +8491,10 @@ export declare const EventDocument: z.ZodObject<{
7596
8491
  residentialArea?: string | null | undefined;
7597
8492
  street?: string | null | undefined;
7598
8493
  zipCode?: string | null | undefined;
8494
+ } | {
8495
+ firstname: string;
8496
+ surname: string;
8497
+ middlename?: string | null | undefined;
7599
8498
  } | {
7600
8499
  country: string;
7601
8500
  district: string;
@@ -7618,9 +8517,10 @@ export declare const EventDocument: z.ZodObject<{
7618
8517
  option: string;
7619
8518
  filename: string;
7620
8519
  originalFilename: string;
7621
- }[] | [string, string] | undefined>;
7622
- createdAtLocation: string;
8520
+ }[] | [string, string] | null | undefined>;
7623
8521
  requestId: string;
8522
+ createdBySignature?: string | null | undefined;
8523
+ createdAtLocation?: string | null | undefined;
7624
8524
  annotation?: Record<string, string | number | boolean | {
7625
8525
  type: string;
7626
8526
  filename: string;
@@ -7636,6 +8536,10 @@ export declare const EventDocument: z.ZodObject<{
7636
8536
  residentialArea?: string | null | undefined;
7637
8537
  street?: string | null | undefined;
7638
8538
  zipCode?: string | null | undefined;
8539
+ } | {
8540
+ firstname: string;
8541
+ surname: string;
8542
+ middlename?: string | null | undefined;
7639
8543
  } | {
7640
8544
  country: string;
7641
8545
  district: string;
@@ -7658,13 +8562,14 @@ export declare const EventDocument: z.ZodObject<{
7658
8562
  option: string;
7659
8563
  filename: string;
7660
8564
  originalFilename: string;
7661
- }[] | [string, string] | undefined> | undefined;
8565
+ }[] | [string, string] | null | undefined> | undefined;
7662
8566
  originalActionId?: string | undefined;
7663
8567
  } | {
7664
8568
  type: "READ";
7665
8569
  id: string;
7666
8570
  status: "Rejected" | "Requested" | "Accepted";
7667
8571
  transactionId: string;
8572
+ createdByUserType: "system" | "user";
7668
8573
  createdAt: string;
7669
8574
  createdBy: string;
7670
8575
  createdByRole: string;
@@ -7683,6 +8588,10 @@ export declare const EventDocument: z.ZodObject<{
7683
8588
  residentialArea?: string | null | undefined;
7684
8589
  street?: string | null | undefined;
7685
8590
  zipCode?: string | null | undefined;
8591
+ } | {
8592
+ firstname: string;
8593
+ surname: string;
8594
+ middlename?: string | null | undefined;
7686
8595
  } | {
7687
8596
  country: string;
7688
8597
  district: string;
@@ -7705,8 +8614,9 @@ export declare const EventDocument: z.ZodObject<{
7705
8614
  option: string;
7706
8615
  filename: string;
7707
8616
  originalFilename: string;
7708
- }[] | [string, string] | undefined>;
7709
- createdAtLocation: string;
8617
+ }[] | [string, string] | null | undefined>;
8618
+ createdBySignature?: string | null | undefined;
8619
+ createdAtLocation?: string | null | undefined;
7710
8620
  annotation?: Record<string, string | number | boolean | {
7711
8621
  type: string;
7712
8622
  filename: string;
@@ -7722,6 +8632,10 @@ export declare const EventDocument: z.ZodObject<{
7722
8632
  residentialArea?: string | null | undefined;
7723
8633
  street?: string | null | undefined;
7724
8634
  zipCode?: string | null | undefined;
8635
+ } | {
8636
+ firstname: string;
8637
+ surname: string;
8638
+ middlename?: string | null | undefined;
7725
8639
  } | {
7726
8640
  country: string;
7727
8641
  district: string;
@@ -7744,17 +8658,19 @@ export declare const EventDocument: z.ZodObject<{
7744
8658
  option: string;
7745
8659
  filename: string;
7746
8660
  originalFilename: string;
7747
- }[] | [string, string] | undefined> | undefined;
8661
+ }[] | [string, string] | null | undefined> | undefined;
7748
8662
  originalActionId?: string | undefined;
7749
8663
  } | {
7750
8664
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7751
8665
  id: string;
7752
8666
  status: "Rejected";
7753
8667
  transactionId: string;
8668
+ createdByUserType: "system" | "user";
7754
8669
  createdAt: string;
7755
8670
  createdBy: string;
7756
8671
  createdByRole: string;
7757
- createdAtLocation: string;
8672
+ createdBySignature?: string | null | undefined;
8673
+ createdAtLocation?: string | null | undefined;
7758
8674
  originalActionId?: string | undefined;
7759
8675
  })[];
7760
8676
  trackingId: string;
@@ -7768,6 +8684,7 @@ export declare const EventDocument: z.ZodObject<{
7768
8684
  id: string;
7769
8685
  status: "Rejected" | "Requested" | "Accepted";
7770
8686
  transactionId: string;
8687
+ createdByUserType: "system" | "user";
7771
8688
  createdAt: string;
7772
8689
  createdBy: string;
7773
8690
  createdByRole: string;
@@ -7786,6 +8703,10 @@ export declare const EventDocument: z.ZodObject<{
7786
8703
  residentialArea?: string | null | undefined;
7787
8704
  street?: string | null | undefined;
7788
8705
  zipCode?: string | null | undefined;
8706
+ } | {
8707
+ firstname: string;
8708
+ surname: string;
8709
+ middlename?: string | null | undefined;
7789
8710
  } | {
7790
8711
  country: string;
7791
8712
  district: string;
@@ -7808,9 +8729,10 @@ export declare const EventDocument: z.ZodObject<{
7808
8729
  option: string;
7809
8730
  filename: string;
7810
8731
  originalFilename: string;
7811
- }[] | [string, string] | undefined>;
7812
- createdAtLocation: string;
8732
+ }[] | [string, string] | null | undefined>;
7813
8733
  assignedTo: string;
8734
+ createdBySignature?: string | null | undefined;
8735
+ createdAtLocation?: string | null | undefined;
7814
8736
  annotation?: Record<string, string | number | boolean | {
7815
8737
  type: string;
7816
8738
  filename: string;
@@ -7826,6 +8748,10 @@ export declare const EventDocument: z.ZodObject<{
7826
8748
  residentialArea?: string | null | undefined;
7827
8749
  street?: string | null | undefined;
7828
8750
  zipCode?: string | null | undefined;
8751
+ } | {
8752
+ firstname: string;
8753
+ surname: string;
8754
+ middlename?: string | null | undefined;
7829
8755
  } | {
7830
8756
  country: string;
7831
8757
  district: string;
@@ -7848,13 +8774,14 @@ export declare const EventDocument: z.ZodObject<{
7848
8774
  option: string;
7849
8775
  filename: string;
7850
8776
  originalFilename: string;
7851
- }[] | [string, string] | undefined> | undefined;
8777
+ }[] | [string, string] | null | undefined> | undefined;
7852
8778
  originalActionId?: string | undefined;
7853
8779
  } | {
7854
8780
  type: "UNASSIGN";
7855
8781
  id: string;
7856
8782
  status: "Rejected" | "Requested" | "Accepted";
7857
8783
  transactionId: string;
8784
+ createdByUserType: "system" | "user";
7858
8785
  createdAt: string;
7859
8786
  createdBy: string;
7860
8787
  createdByRole: string;
@@ -7873,6 +8800,10 @@ export declare const EventDocument: z.ZodObject<{
7873
8800
  residentialArea?: string | null | undefined;
7874
8801
  street?: string | null | undefined;
7875
8802
  zipCode?: string | null | undefined;
8803
+ } | {
8804
+ firstname: string;
8805
+ surname: string;
8806
+ middlename?: string | null | undefined;
7876
8807
  } | {
7877
8808
  country: string;
7878
8809
  district: string;
@@ -7895,9 +8826,10 @@ export declare const EventDocument: z.ZodObject<{
7895
8826
  option: string;
7896
8827
  filename: string;
7897
8828
  originalFilename: string;
7898
- }[] | [string, string] | undefined>;
7899
- createdAtLocation: string;
8829
+ }[] | [string, string] | null | undefined>;
7900
8830
  assignedTo: null;
8831
+ createdBySignature?: string | null | undefined;
8832
+ createdAtLocation?: string | null | undefined;
7901
8833
  annotation?: Record<string, string | number | boolean | {
7902
8834
  type: string;
7903
8835
  filename: string;
@@ -7913,6 +8845,10 @@ export declare const EventDocument: z.ZodObject<{
7913
8845
  residentialArea?: string | null | undefined;
7914
8846
  street?: string | null | undefined;
7915
8847
  zipCode?: string | null | undefined;
8848
+ } | {
8849
+ firstname: string;
8850
+ surname: string;
8851
+ middlename?: string | null | undefined;
7916
8852
  } | {
7917
8853
  country: string;
7918
8854
  district: string;
@@ -7935,13 +8871,14 @@ export declare const EventDocument: z.ZodObject<{
7935
8871
  option: string;
7936
8872
  filename: string;
7937
8873
  originalFilename: string;
7938
- }[] | [string, string] | undefined> | undefined;
8874
+ }[] | [string, string] | null | undefined> | undefined;
7939
8875
  originalActionId?: string | undefined;
7940
8876
  } | {
7941
8877
  type: "REGISTER";
7942
8878
  id: string;
7943
8879
  status: "Rejected" | "Requested" | "Accepted";
7944
8880
  transactionId: string;
8881
+ createdByUserType: "system" | "user";
7945
8882
  createdAt: string;
7946
8883
  createdBy: string;
7947
8884
  createdByRole: string;
@@ -7960,6 +8897,10 @@ export declare const EventDocument: z.ZodObject<{
7960
8897
  residentialArea?: string | null | undefined;
7961
8898
  street?: string | null | undefined;
7962
8899
  zipCode?: string | null | undefined;
8900
+ } | {
8901
+ firstname: string;
8902
+ surname: string;
8903
+ middlename?: string | null | undefined;
7963
8904
  } | {
7964
8905
  country: string;
7965
8906
  district: string;
@@ -7982,8 +8923,9 @@ export declare const EventDocument: z.ZodObject<{
7982
8923
  option: string;
7983
8924
  filename: string;
7984
8925
  originalFilename: string;
7985
- }[] | [string, string] | undefined>;
7986
- createdAtLocation: string;
8926
+ }[] | [string, string] | null | undefined>;
8927
+ createdBySignature?: string | null | undefined;
8928
+ createdAtLocation?: string | null | undefined;
7987
8929
  annotation?: Record<string, string | number | boolean | {
7988
8930
  type: string;
7989
8931
  filename: string;
@@ -7999,6 +8941,10 @@ export declare const EventDocument: z.ZodObject<{
7999
8941
  residentialArea?: string | null | undefined;
8000
8942
  street?: string | null | undefined;
8001
8943
  zipCode?: string | null | undefined;
8944
+ } | {
8945
+ firstname: string;
8946
+ surname: string;
8947
+ middlename?: string | null | undefined;
8002
8948
  } | {
8003
8949
  country: string;
8004
8950
  district: string;
@@ -8021,7 +8967,7 @@ export declare const EventDocument: z.ZodObject<{
8021
8967
  option: string;
8022
8968
  filename: string;
8023
8969
  originalFilename: string;
8024
- }[] | [string, string] | undefined> | undefined;
8970
+ }[] | [string, string] | null | undefined> | undefined;
8025
8971
  originalActionId?: string | undefined;
8026
8972
  registrationNumber?: string | undefined;
8027
8973
  } | {
@@ -8029,6 +8975,7 @@ export declare const EventDocument: z.ZodObject<{
8029
8975
  id: string;
8030
8976
  status: "Rejected" | "Requested" | "Accepted";
8031
8977
  transactionId: string;
8978
+ createdByUserType: "system" | "user";
8032
8979
  createdAt: string;
8033
8980
  createdBy: string;
8034
8981
  createdByRole: string;
@@ -8047,6 +8994,10 @@ export declare const EventDocument: z.ZodObject<{
8047
8994
  residentialArea?: string | null | undefined;
8048
8995
  street?: string | null | undefined;
8049
8996
  zipCode?: string | null | undefined;
8997
+ } | {
8998
+ firstname: string;
8999
+ surname: string;
9000
+ middlename?: string | null | undefined;
8050
9001
  } | {
8051
9002
  country: string;
8052
9003
  district: string;
@@ -8069,8 +9020,9 @@ export declare const EventDocument: z.ZodObject<{
8069
9020
  option: string;
8070
9021
  filename: string;
8071
9022
  originalFilename: string;
8072
- }[] | [string, string] | undefined>;
8073
- createdAtLocation: string;
9023
+ }[] | [string, string] | null | undefined>;
9024
+ createdBySignature?: string | null | undefined;
9025
+ createdAtLocation?: string | null | undefined;
8074
9026
  annotation?: Record<string, string | number | boolean | {
8075
9027
  type: string;
8076
9028
  filename: string;
@@ -8086,6 +9038,10 @@ export declare const EventDocument: z.ZodObject<{
8086
9038
  residentialArea?: string | null | undefined;
8087
9039
  street?: string | null | undefined;
8088
9040
  zipCode?: string | null | undefined;
9041
+ } | {
9042
+ firstname: string;
9043
+ surname: string;
9044
+ middlename?: string | null | undefined;
8089
9045
  } | {
8090
9046
  country: string;
8091
9047
  district: string;
@@ -8108,13 +9064,14 @@ export declare const EventDocument: z.ZodObject<{
8108
9064
  option: string;
8109
9065
  filename: string;
8110
9066
  originalFilename: string;
8111
- }[] | [string, string] | undefined> | undefined;
9067
+ }[] | [string, string] | null | undefined> | undefined;
8112
9068
  originalActionId?: string | undefined;
8113
9069
  } | {
8114
9070
  type: "VALIDATE";
8115
9071
  id: string;
8116
9072
  status: "Rejected" | "Requested" | "Accepted";
8117
9073
  transactionId: string;
9074
+ createdByUserType: "system" | "user";
8118
9075
  createdAt: string;
8119
9076
  createdBy: string;
8120
9077
  createdByRole: string;
@@ -8133,6 +9090,10 @@ export declare const EventDocument: z.ZodObject<{
8133
9090
  residentialArea?: string | null | undefined;
8134
9091
  street?: string | null | undefined;
8135
9092
  zipCode?: string | null | undefined;
9093
+ } | {
9094
+ firstname: string;
9095
+ surname: string;
9096
+ middlename?: string | null | undefined;
8136
9097
  } | {
8137
9098
  country: string;
8138
9099
  district: string;
@@ -8155,8 +9116,9 @@ export declare const EventDocument: z.ZodObject<{
8155
9116
  option: string;
8156
9117
  filename: string;
8157
9118
  originalFilename: string;
8158
- }[] | [string, string] | undefined>;
8159
- createdAtLocation: string;
9119
+ }[] | [string, string] | null | undefined>;
9120
+ createdBySignature?: string | null | undefined;
9121
+ createdAtLocation?: string | null | undefined;
8160
9122
  annotation?: Record<string, string | number | boolean | {
8161
9123
  type: string;
8162
9124
  filename: string;
@@ -8172,6 +9134,10 @@ export declare const EventDocument: z.ZodObject<{
8172
9134
  residentialArea?: string | null | undefined;
8173
9135
  street?: string | null | undefined;
8174
9136
  zipCode?: string | null | undefined;
9137
+ } | {
9138
+ firstname: string;
9139
+ surname: string;
9140
+ middlename?: string | null | undefined;
8175
9141
  } | {
8176
9142
  country: string;
8177
9143
  district: string;
@@ -8194,13 +9160,18 @@ export declare const EventDocument: z.ZodObject<{
8194
9160
  option: string;
8195
9161
  filename: string;
8196
9162
  originalFilename: string;
8197
- }[] | [string, string] | undefined> | undefined;
9163
+ }[] | [string, string] | null | undefined> | undefined;
8198
9164
  originalActionId?: string | undefined;
8199
9165
  } | {
8200
9166
  type: "REJECT";
8201
9167
  id: string;
8202
9168
  status: "Rejected" | "Requested" | "Accepted";
9169
+ reason: {
9170
+ message: string;
9171
+ isDuplicate?: boolean | undefined;
9172
+ };
8203
9173
  transactionId: string;
9174
+ createdByUserType: "system" | "user";
8204
9175
  createdAt: string;
8205
9176
  createdBy: string;
8206
9177
  createdByRole: string;
@@ -8219,6 +9190,10 @@ export declare const EventDocument: z.ZodObject<{
8219
9190
  residentialArea?: string | null | undefined;
8220
9191
  street?: string | null | undefined;
8221
9192
  zipCode?: string | null | undefined;
9193
+ } | {
9194
+ firstname: string;
9195
+ surname: string;
9196
+ middlename?: string | null | undefined;
8222
9197
  } | {
8223
9198
  country: string;
8224
9199
  district: string;
@@ -8241,8 +9216,9 @@ export declare const EventDocument: z.ZodObject<{
8241
9216
  option: string;
8242
9217
  filename: string;
8243
9218
  originalFilename: string;
8244
- }[] | [string, string] | undefined>;
8245
- createdAtLocation: string;
9219
+ }[] | [string, string] | null | undefined>;
9220
+ createdBySignature?: string | null | undefined;
9221
+ createdAtLocation?: string | null | undefined;
8246
9222
  annotation?: Record<string, string | number | boolean | {
8247
9223
  type: string;
8248
9224
  filename: string;
@@ -8258,6 +9234,10 @@ export declare const EventDocument: z.ZodObject<{
8258
9234
  residentialArea?: string | null | undefined;
8259
9235
  street?: string | null | undefined;
8260
9236
  zipCode?: string | null | undefined;
9237
+ } | {
9238
+ firstname: string;
9239
+ surname: string;
9240
+ middlename?: string | null | undefined;
8261
9241
  } | {
8262
9242
  country: string;
8263
9243
  district: string;
@@ -8280,13 +9260,14 @@ export declare const EventDocument: z.ZodObject<{
8280
9260
  option: string;
8281
9261
  filename: string;
8282
9262
  originalFilename: string;
8283
- }[] | [string, string] | undefined> | undefined;
9263
+ }[] | [string, string] | null | undefined> | undefined;
8284
9264
  originalActionId?: string | undefined;
8285
9265
  } | {
8286
9266
  type: "MARKED_AS_DUPLICATE";
8287
9267
  id: string;
8288
9268
  status: "Rejected" | "Requested" | "Accepted";
8289
9269
  transactionId: string;
9270
+ createdByUserType: "system" | "user";
8290
9271
  createdAt: string;
8291
9272
  createdBy: string;
8292
9273
  createdByRole: string;
@@ -8305,6 +9286,10 @@ export declare const EventDocument: z.ZodObject<{
8305
9286
  residentialArea?: string | null | undefined;
8306
9287
  street?: string | null | undefined;
8307
9288
  zipCode?: string | null | undefined;
9289
+ } | {
9290
+ firstname: string;
9291
+ surname: string;
9292
+ middlename?: string | null | undefined;
8308
9293
  } | {
8309
9294
  country: string;
8310
9295
  district: string;
@@ -8327,8 +9312,9 @@ export declare const EventDocument: z.ZodObject<{
8327
9312
  option: string;
8328
9313
  filename: string;
8329
9314
  originalFilename: string;
8330
- }[] | [string, string] | undefined>;
8331
- createdAtLocation: string;
9315
+ }[] | [string, string] | null | undefined>;
9316
+ createdBySignature?: string | null | undefined;
9317
+ createdAtLocation?: string | null | undefined;
8332
9318
  annotation?: Record<string, string | number | boolean | {
8333
9319
  type: string;
8334
9320
  filename: string;
@@ -8344,6 +9330,10 @@ export declare const EventDocument: z.ZodObject<{
8344
9330
  residentialArea?: string | null | undefined;
8345
9331
  street?: string | null | undefined;
8346
9332
  zipCode?: string | null | undefined;
9333
+ } | {
9334
+ firstname: string;
9335
+ surname: string;
9336
+ middlename?: string | null | undefined;
8347
9337
  } | {
8348
9338
  country: string;
8349
9339
  district: string;
@@ -8366,13 +9356,18 @@ export declare const EventDocument: z.ZodObject<{
8366
9356
  option: string;
8367
9357
  filename: string;
8368
9358
  originalFilename: string;
8369
- }[] | [string, string] | undefined> | undefined;
9359
+ }[] | [string, string] | null | undefined> | undefined;
8370
9360
  originalActionId?: string | undefined;
8371
9361
  } | {
8372
9362
  type: "ARCHIVE";
8373
9363
  id: string;
8374
9364
  status: "Rejected" | "Requested" | "Accepted";
9365
+ reason: {
9366
+ message: string;
9367
+ isDuplicate?: boolean | undefined;
9368
+ };
8375
9369
  transactionId: string;
9370
+ createdByUserType: "system" | "user";
8376
9371
  createdAt: string;
8377
9372
  createdBy: string;
8378
9373
  createdByRole: string;
@@ -8391,6 +9386,10 @@ export declare const EventDocument: z.ZodObject<{
8391
9386
  residentialArea?: string | null | undefined;
8392
9387
  street?: string | null | undefined;
8393
9388
  zipCode?: string | null | undefined;
9389
+ } | {
9390
+ firstname: string;
9391
+ surname: string;
9392
+ middlename?: string | null | undefined;
8394
9393
  } | {
8395
9394
  country: string;
8396
9395
  district: string;
@@ -8413,8 +9412,9 @@ export declare const EventDocument: z.ZodObject<{
8413
9412
  option: string;
8414
9413
  filename: string;
8415
9414
  originalFilename: string;
8416
- }[] | [string, string] | undefined>;
8417
- createdAtLocation: string;
9415
+ }[] | [string, string] | null | undefined>;
9416
+ createdBySignature?: string | null | undefined;
9417
+ createdAtLocation?: string | null | undefined;
8418
9418
  annotation?: Record<string, string | number | boolean | {
8419
9419
  type: string;
8420
9420
  filename: string;
@@ -8430,6 +9430,10 @@ export declare const EventDocument: z.ZodObject<{
8430
9430
  residentialArea?: string | null | undefined;
8431
9431
  street?: string | null | undefined;
8432
9432
  zipCode?: string | null | undefined;
9433
+ } | {
9434
+ firstname: string;
9435
+ surname: string;
9436
+ middlename?: string | null | undefined;
8433
9437
  } | {
8434
9438
  country: string;
8435
9439
  district: string;
@@ -8452,13 +9456,14 @@ export declare const EventDocument: z.ZodObject<{
8452
9456
  option: string;
8453
9457
  filename: string;
8454
9458
  originalFilename: string;
8455
- }[] | [string, string] | undefined> | undefined;
9459
+ }[] | [string, string] | null | undefined> | undefined;
8456
9460
  originalActionId?: string | undefined;
8457
9461
  } | {
8458
9462
  type: "CREATE";
8459
9463
  id: string;
8460
9464
  status: "Rejected" | "Requested" | "Accepted";
8461
9465
  transactionId: string;
9466
+ createdByUserType: "system" | "user";
8462
9467
  createdAt: string;
8463
9468
  createdBy: string;
8464
9469
  createdByRole: string;
@@ -8477,6 +9482,10 @@ export declare const EventDocument: z.ZodObject<{
8477
9482
  residentialArea?: string | null | undefined;
8478
9483
  street?: string | null | undefined;
8479
9484
  zipCode?: string | null | undefined;
9485
+ } | {
9486
+ firstname: string;
9487
+ surname: string;
9488
+ middlename?: string | null | undefined;
8480
9489
  } | {
8481
9490
  country: string;
8482
9491
  district: string;
@@ -8499,8 +9508,9 @@ export declare const EventDocument: z.ZodObject<{
8499
9508
  option: string;
8500
9509
  filename: string;
8501
9510
  originalFilename: string;
8502
- }[] | [string, string] | undefined>;
8503
- createdAtLocation: string;
9511
+ }[] | [string, string] | null | undefined>;
9512
+ createdBySignature?: string | null | undefined;
9513
+ createdAtLocation?: string | null | undefined;
8504
9514
  annotation?: Record<string, string | number | boolean | {
8505
9515
  type: string;
8506
9516
  filename: string;
@@ -8516,6 +9526,10 @@ export declare const EventDocument: z.ZodObject<{
8516
9526
  residentialArea?: string | null | undefined;
8517
9527
  street?: string | null | undefined;
8518
9528
  zipCode?: string | null | undefined;
9529
+ } | {
9530
+ firstname: string;
9531
+ surname: string;
9532
+ middlename?: string | null | undefined;
8519
9533
  } | {
8520
9534
  country: string;
8521
9535
  district: string;
@@ -8538,13 +9552,14 @@ export declare const EventDocument: z.ZodObject<{
8538
9552
  option: string;
8539
9553
  filename: string;
8540
9554
  originalFilename: string;
8541
- }[] | [string, string] | undefined> | undefined;
9555
+ }[] | [string, string] | null | undefined> | undefined;
8542
9556
  originalActionId?: string | undefined;
8543
9557
  } | {
8544
9558
  type: "NOTIFY";
8545
9559
  id: string;
8546
9560
  status: "Rejected" | "Requested" | "Accepted";
8547
9561
  transactionId: string;
9562
+ createdByUserType: "system" | "user";
8548
9563
  createdAt: string;
8549
9564
  createdBy: string;
8550
9565
  createdByRole: string;
@@ -8563,6 +9578,10 @@ export declare const EventDocument: z.ZodObject<{
8563
9578
  residentialArea?: string | null | undefined;
8564
9579
  street?: string | null | undefined;
8565
9580
  zipCode?: string | null | undefined;
9581
+ } | {
9582
+ firstname: string;
9583
+ surname: string;
9584
+ middlename?: string | null | undefined;
8566
9585
  } | {
8567
9586
  country: string;
8568
9587
  district: string;
@@ -8585,8 +9604,9 @@ export declare const EventDocument: z.ZodObject<{
8585
9604
  option: string;
8586
9605
  filename: string;
8587
9606
  originalFilename: string;
8588
- }[] | [string, string] | undefined>;
8589
- createdAtLocation: string;
9607
+ }[] | [string, string] | null | undefined>;
9608
+ createdBySignature?: string | null | undefined;
9609
+ createdAtLocation?: string | null | undefined;
8590
9610
  annotation?: Record<string, string | number | boolean | {
8591
9611
  type: string;
8592
9612
  filename: string;
@@ -8602,6 +9622,10 @@ export declare const EventDocument: z.ZodObject<{
8602
9622
  residentialArea?: string | null | undefined;
8603
9623
  street?: string | null | undefined;
8604
9624
  zipCode?: string | null | undefined;
9625
+ } | {
9626
+ firstname: string;
9627
+ surname: string;
9628
+ middlename?: string | null | undefined;
8605
9629
  } | {
8606
9630
  country: string;
8607
9631
  district: string;
@@ -8624,13 +9648,14 @@ export declare const EventDocument: z.ZodObject<{
8624
9648
  option: string;
8625
9649
  filename: string;
8626
9650
  originalFilename: string;
8627
- }[] | [string, string] | undefined> | undefined;
9651
+ }[] | [string, string] | null | undefined> | undefined;
8628
9652
  originalActionId?: string | undefined;
8629
9653
  } | {
8630
9654
  type: "PRINT_CERTIFICATE";
8631
9655
  id: string;
8632
9656
  status: "Rejected" | "Requested" | "Accepted";
8633
9657
  transactionId: string;
9658
+ createdByUserType: "system" | "user";
8634
9659
  createdAt: string;
8635
9660
  createdBy: string;
8636
9661
  createdByRole: string;
@@ -8649,6 +9674,10 @@ export declare const EventDocument: z.ZodObject<{
8649
9674
  residentialArea?: string | null | undefined;
8650
9675
  street?: string | null | undefined;
8651
9676
  zipCode?: string | null | undefined;
9677
+ } | {
9678
+ firstname: string;
9679
+ surname: string;
9680
+ middlename?: string | null | undefined;
8652
9681
  } | {
8653
9682
  country: string;
8654
9683
  district: string;
@@ -8671,8 +9700,9 @@ export declare const EventDocument: z.ZodObject<{
8671
9700
  option: string;
8672
9701
  filename: string;
8673
9702
  originalFilename: string;
8674
- }[] | [string, string] | undefined>;
8675
- createdAtLocation: string;
9703
+ }[] | [string, string] | null | undefined>;
9704
+ createdBySignature?: string | null | undefined;
9705
+ createdAtLocation?: string | null | undefined;
8676
9706
  annotation?: Record<string, string | number | boolean | {
8677
9707
  type: string;
8678
9708
  filename: string;
@@ -8688,6 +9718,10 @@ export declare const EventDocument: z.ZodObject<{
8688
9718
  residentialArea?: string | null | undefined;
8689
9719
  street?: string | null | undefined;
8690
9720
  zipCode?: string | null | undefined;
9721
+ } | {
9722
+ firstname: string;
9723
+ surname: string;
9724
+ middlename?: string | null | undefined;
8691
9725
  } | {
8692
9726
  country: string;
8693
9727
  district: string;
@@ -8710,13 +9744,14 @@ export declare const EventDocument: z.ZodObject<{
8710
9744
  option: string;
8711
9745
  filename: string;
8712
9746
  originalFilename: string;
8713
- }[] | [string, string] | undefined> | undefined;
9747
+ }[] | [string, string] | null | undefined> | undefined;
8714
9748
  originalActionId?: string | undefined;
8715
9749
  } | {
8716
9750
  type: "REQUEST_CORRECTION";
8717
9751
  id: string;
8718
9752
  status: "Rejected" | "Requested" | "Accepted";
8719
9753
  transactionId: string;
9754
+ createdByUserType: "system" | "user";
8720
9755
  createdAt: string;
8721
9756
  createdBy: string;
8722
9757
  createdByRole: string;
@@ -8735,6 +9770,10 @@ export declare const EventDocument: z.ZodObject<{
8735
9770
  residentialArea?: string | null | undefined;
8736
9771
  street?: string | null | undefined;
8737
9772
  zipCode?: string | null | undefined;
9773
+ } | {
9774
+ firstname: string;
9775
+ surname: string;
9776
+ middlename?: string | null | undefined;
8738
9777
  } | {
8739
9778
  country: string;
8740
9779
  district: string;
@@ -8757,8 +9796,9 @@ export declare const EventDocument: z.ZodObject<{
8757
9796
  option: string;
8758
9797
  filename: string;
8759
9798
  originalFilename: string;
8760
- }[] | [string, string] | undefined>;
8761
- createdAtLocation: string;
9799
+ }[] | [string, string] | null | undefined>;
9800
+ createdBySignature?: string | null | undefined;
9801
+ createdAtLocation?: string | null | undefined;
8762
9802
  annotation?: Record<string, string | number | boolean | {
8763
9803
  type: string;
8764
9804
  filename: string;
@@ -8774,6 +9814,10 @@ export declare const EventDocument: z.ZodObject<{
8774
9814
  residentialArea?: string | null | undefined;
8775
9815
  street?: string | null | undefined;
8776
9816
  zipCode?: string | null | undefined;
9817
+ } | {
9818
+ firstname: string;
9819
+ surname: string;
9820
+ middlename?: string | null | undefined;
8777
9821
  } | {
8778
9822
  country: string;
8779
9823
  district: string;
@@ -8796,13 +9840,14 @@ export declare const EventDocument: z.ZodObject<{
8796
9840
  option: string;
8797
9841
  filename: string;
8798
9842
  originalFilename: string;
8799
- }[] | [string, string] | undefined> | undefined;
9843
+ }[] | [string, string] | null | undefined> | undefined;
8800
9844
  originalActionId?: string | undefined;
8801
9845
  } | {
8802
9846
  type: "APPROVE_CORRECTION";
8803
9847
  id: string;
8804
9848
  status: "Rejected" | "Requested" | "Accepted";
8805
9849
  transactionId: string;
9850
+ createdByUserType: "system" | "user";
8806
9851
  createdAt: string;
8807
9852
  createdBy: string;
8808
9853
  createdByRole: string;
@@ -8821,6 +9866,10 @@ export declare const EventDocument: z.ZodObject<{
8821
9866
  residentialArea?: string | null | undefined;
8822
9867
  street?: string | null | undefined;
8823
9868
  zipCode?: string | null | undefined;
9869
+ } | {
9870
+ firstname: string;
9871
+ surname: string;
9872
+ middlename?: string | null | undefined;
8824
9873
  } | {
8825
9874
  country: string;
8826
9875
  district: string;
@@ -8843,9 +9892,10 @@ export declare const EventDocument: z.ZodObject<{
8843
9892
  option: string;
8844
9893
  filename: string;
8845
9894
  originalFilename: string;
8846
- }[] | [string, string] | undefined>;
8847
- createdAtLocation: string;
9895
+ }[] | [string, string] | null | undefined>;
8848
9896
  requestId: string;
9897
+ createdBySignature?: string | null | undefined;
9898
+ createdAtLocation?: string | null | undefined;
8849
9899
  annotation?: Record<string, string | number | boolean | {
8850
9900
  type: string;
8851
9901
  filename: string;
@@ -8861,6 +9911,10 @@ export declare const EventDocument: z.ZodObject<{
8861
9911
  residentialArea?: string | null | undefined;
8862
9912
  street?: string | null | undefined;
8863
9913
  zipCode?: string | null | undefined;
9914
+ } | {
9915
+ firstname: string;
9916
+ surname: string;
9917
+ middlename?: string | null | undefined;
8864
9918
  } | {
8865
9919
  country: string;
8866
9920
  district: string;
@@ -8883,13 +9937,14 @@ export declare const EventDocument: z.ZodObject<{
8883
9937
  option: string;
8884
9938
  filename: string;
8885
9939
  originalFilename: string;
8886
- }[] | [string, string] | undefined> | undefined;
9940
+ }[] | [string, string] | null | undefined> | undefined;
8887
9941
  originalActionId?: string | undefined;
8888
9942
  } | {
8889
9943
  type: "REJECT_CORRECTION";
8890
9944
  id: string;
8891
9945
  status: "Rejected" | "Requested" | "Accepted";
8892
9946
  transactionId: string;
9947
+ createdByUserType: "system" | "user";
8893
9948
  createdAt: string;
8894
9949
  createdBy: string;
8895
9950
  createdByRole: string;
@@ -8908,6 +9963,10 @@ export declare const EventDocument: z.ZodObject<{
8908
9963
  residentialArea?: string | null | undefined;
8909
9964
  street?: string | null | undefined;
8910
9965
  zipCode?: string | null | undefined;
9966
+ } | {
9967
+ firstname: string;
9968
+ surname: string;
9969
+ middlename?: string | null | undefined;
8911
9970
  } | {
8912
9971
  country: string;
8913
9972
  district: string;
@@ -8930,9 +9989,10 @@ export declare const EventDocument: z.ZodObject<{
8930
9989
  option: string;
8931
9990
  filename: string;
8932
9991
  originalFilename: string;
8933
- }[] | [string, string] | undefined>;
8934
- createdAtLocation: string;
9992
+ }[] | [string, string] | null | undefined>;
8935
9993
  requestId: string;
9994
+ createdBySignature?: string | null | undefined;
9995
+ createdAtLocation?: string | null | undefined;
8936
9996
  annotation?: Record<string, string | number | boolean | {
8937
9997
  type: string;
8938
9998
  filename: string;
@@ -8948,6 +10008,10 @@ export declare const EventDocument: z.ZodObject<{
8948
10008
  residentialArea?: string | null | undefined;
8949
10009
  street?: string | null | undefined;
8950
10010
  zipCode?: string | null | undefined;
10011
+ } | {
10012
+ firstname: string;
10013
+ surname: string;
10014
+ middlename?: string | null | undefined;
8951
10015
  } | {
8952
10016
  country: string;
8953
10017
  district: string;
@@ -8970,13 +10034,14 @@ export declare const EventDocument: z.ZodObject<{
8970
10034
  option: string;
8971
10035
  filename: string;
8972
10036
  originalFilename: string;
8973
- }[] | [string, string] | undefined> | undefined;
10037
+ }[] | [string, string] | null | undefined> | undefined;
8974
10038
  originalActionId?: string | undefined;
8975
10039
  } | {
8976
10040
  type: "READ";
8977
10041
  id: string;
8978
10042
  status: "Rejected" | "Requested" | "Accepted";
8979
10043
  transactionId: string;
10044
+ createdByUserType: "system" | "user";
8980
10045
  createdAt: string;
8981
10046
  createdBy: string;
8982
10047
  createdByRole: string;
@@ -8995,6 +10060,10 @@ export declare const EventDocument: z.ZodObject<{
8995
10060
  residentialArea?: string | null | undefined;
8996
10061
  street?: string | null | undefined;
8997
10062
  zipCode?: string | null | undefined;
10063
+ } | {
10064
+ firstname: string;
10065
+ surname: string;
10066
+ middlename?: string | null | undefined;
8998
10067
  } | {
8999
10068
  country: string;
9000
10069
  district: string;
@@ -9017,8 +10086,9 @@ export declare const EventDocument: z.ZodObject<{
9017
10086
  option: string;
9018
10087
  filename: string;
9019
10088
  originalFilename: string;
9020
- }[] | [string, string] | undefined>;
9021
- createdAtLocation: string;
10089
+ }[] | [string, string] | null | undefined>;
10090
+ createdBySignature?: string | null | undefined;
10091
+ createdAtLocation?: string | null | undefined;
9022
10092
  annotation?: Record<string, string | number | boolean | {
9023
10093
  type: string;
9024
10094
  filename: string;
@@ -9034,6 +10104,10 @@ export declare const EventDocument: z.ZodObject<{
9034
10104
  residentialArea?: string | null | undefined;
9035
10105
  street?: string | null | undefined;
9036
10106
  zipCode?: string | null | undefined;
10107
+ } | {
10108
+ firstname: string;
10109
+ surname: string;
10110
+ middlename?: string | null | undefined;
9037
10111
  } | {
9038
10112
  country: string;
9039
10113
  district: string;
@@ -9056,17 +10130,19 @@ export declare const EventDocument: z.ZodObject<{
9056
10130
  option: string;
9057
10131
  filename: string;
9058
10132
  originalFilename: string;
9059
- }[] | [string, string] | undefined> | undefined;
10133
+ }[] | [string, string] | null | undefined> | undefined;
9060
10134
  originalActionId?: string | undefined;
9061
10135
  } | {
9062
10136
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
9063
10137
  id: string;
9064
10138
  status: "Rejected";
9065
10139
  transactionId: string;
10140
+ createdByUserType: "system" | "user";
9066
10141
  createdAt: string;
9067
10142
  createdBy: string;
9068
10143
  createdByRole: string;
9069
- createdAtLocation: string;
10144
+ createdBySignature?: string | null | undefined;
10145
+ createdAtLocation?: string | null | undefined;
9070
10146
  originalActionId?: string | undefined;
9071
10147
  })[];
9072
10148
  trackingId: string;