@opencrvs/toolkit 1.8.0-rc.fb8e005 → 1.8.0-rc.fbababd

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 (32) hide show
  1. package/dist/commons/api/router.d.ts +8621 -5643
  2. package/dist/commons/events/ActionConfig.d.ts +18584 -33488
  3. package/dist/commons/events/ActionDocument.d.ts +1083 -1182
  4. package/dist/commons/events/ActionInput.d.ts +726 -726
  5. package/dist/commons/events/AdvancedSearchConfig.d.ts +18 -222
  6. package/dist/commons/events/CompositeFieldValue.d.ts +6 -6
  7. package/dist/commons/events/CountryConfigQueryInput.d.ts +412 -1160
  8. package/dist/commons/events/CreatedAtLocation.d.ts +2 -1
  9. package/dist/commons/events/Draft.d.ts +71 -76
  10. package/dist/commons/events/EventConfig.d.ts +17504 -27573
  11. package/dist/commons/events/EventDocument.d.ts +707 -782
  12. package/dist/commons/events/EventIndex.d.ts +224 -639
  13. package/dist/commons/events/EventMetadata.d.ts +31 -73
  14. package/dist/commons/events/FieldConfig.d.ts +37 -198
  15. package/dist/commons/events/FieldTypeMapping.d.ts +16 -16
  16. package/dist/commons/events/FieldValue.d.ts +12 -12
  17. package/dist/commons/events/FormConfig.d.ts +66 -1200
  18. package/dist/commons/events/PageConfig.d.ts +18 -288
  19. package/dist/commons/events/WorkqueueColumnConfig.d.ts +11 -11
  20. package/dist/commons/events/WorkqueueConfig.d.ts +740 -3237
  21. package/dist/commons/events/defineConfig.d.ts +1589 -3532
  22. package/dist/commons/events/field.d.ts +0 -5
  23. package/dist/commons/events/index.d.ts +0 -1
  24. package/dist/commons/events/scopes.d.ts +3 -2
  25. package/dist/commons/events/test.utils.d.ts +17 -40
  26. package/dist/commons/events/transactions.d.ts +1 -1
  27. package/dist/commons/events/utils.d.ts +1604 -3684
  28. package/dist/conditionals/index.js +17 -20
  29. package/dist/events/index.js +1323 -1695
  30. package/dist/scopes/index.d.ts +1 -4
  31. package/dist/scopes/index.js +17 -67
  32. package/package.json +3 -3
@@ -1,2 +1,3 @@
1
- export declare const CreatedAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
1
+ import { z } from 'zod';
2
+ export declare const CreatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2
3
  //# sourceMappingURL=CreatedAtLocation.d.ts.map
@@ -1,18 +1,17 @@
1
1
  import { z } from 'zod';
2
2
  export declare const Draft: z.ZodObject<{
3
- id: z.ZodBranded<z.ZodString, "UUID">;
4
- eventId: z.ZodBranded<z.ZodString, "UUID">;
3
+ id: z.ZodString;
4
+ eventId: z.ZodString;
5
5
  transactionId: z.ZodString;
6
6
  createdAt: z.ZodString;
7
7
  action: z.ZodObject<Omit<z.objectUtil.extendShape<{
8
- id: z.ZodBranded<z.ZodString, "UUID">;
8
+ id: z.ZodString;
9
9
  transactionId: z.ZodString;
10
- createdByUserType: z.ZodEnum<["user", "system"]>;
11
10
  createdAt: z.ZodString;
12
11
  createdBy: z.ZodString;
13
12
  createdByRole: z.ZodString;
14
13
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
14
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
15
  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<{
17
16
  filename: z.ZodString;
18
17
  originalFilename: z.ZodString;
@@ -127,19 +126,19 @@ export declare const Draft: z.ZodObject<{
127
126
  addressLine3?: string | null | undefined;
128
127
  postcodeOrZip?: string | null | undefined;
129
128
  }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
130
- firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
131
- surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
129
+ firstname: z.ZodString;
130
+ surname: z.ZodString;
132
131
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
133
132
  }, "strip", z.ZodTypeAny, {
134
- firstname?: string | null | undefined;
135
- surname?: string | null | undefined;
133
+ firstname: string;
134
+ surname: string;
136
135
  middlename?: string | null | undefined;
137
136
  }, {
138
- firstname?: string | null | undefined;
139
- surname?: string | null | undefined;
137
+ firstname: string;
138
+ surname: string;
140
139
  middlename?: string | null | undefined;
141
140
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
142
- annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
141
+ 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<{
143
142
  filename: z.ZodString;
144
143
  originalFilename: z.ZodString;
145
144
  type: z.ZodString;
@@ -253,27 +252,26 @@ export declare const Draft: z.ZodObject<{
253
252
  addressLine3?: string | null | undefined;
254
253
  postcodeOrZip?: string | null | undefined;
255
254
  }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
256
- firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
257
- surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
255
+ firstname: z.ZodString;
256
+ surname: z.ZodString;
258
257
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
259
258
  }, "strip", z.ZodTypeAny, {
260
- firstname?: string | null | undefined;
261
- surname?: string | null | undefined;
259
+ firstname: string;
260
+ surname: string;
262
261
  middlename?: string | null | undefined;
263
262
  }, {
264
- firstname?: string | null | undefined;
265
- surname?: string | null | undefined;
263
+ firstname: string;
264
+ surname: string;
266
265
  middlename?: string | null | undefined;
267
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
266
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
268
267
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
269
- originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
268
+ originalActionId: z.ZodOptional<z.ZodString>;
270
269
  }, {
271
270
  type: z.ZodEnum<["DELETE", "CREATE", "NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "DETECT_DUPLICATE", "REJECT", "MARKED_AS_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION", "READ", "ASSIGN", "UNASSIGN"]>;
272
271
  }>, "id">, "strip", z.ZodTypeAny, {
273
272
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
274
273
  status: "Rejected" | "Requested" | "Accepted";
275
274
  transactionId: string;
276
- createdByUserType: "system" | "user";
277
275
  createdAt: string;
278
276
  createdBy: string;
279
277
  createdByRole: string;
@@ -293,8 +291,8 @@ export declare const Draft: z.ZodObject<{
293
291
  street?: string | null | undefined;
294
292
  zipCode?: string | null | undefined;
295
293
  } | {
296
- firstname?: string | null | undefined;
297
- surname?: string | null | undefined;
294
+ firstname: string;
295
+ surname: string;
298
296
  middlename?: string | null | undefined;
299
297
  } | {
300
298
  country: string;
@@ -320,7 +318,7 @@ export declare const Draft: z.ZodObject<{
320
318
  originalFilename: string;
321
319
  }[] | [string, string] | null | undefined>;
322
320
  createdBySignature?: string | null | undefined;
323
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
321
+ createdAtLocation?: string | null | undefined;
324
322
  annotation?: Record<string, string | number | boolean | {
325
323
  type: string;
326
324
  filename: string;
@@ -337,8 +335,8 @@ export declare const Draft: z.ZodObject<{
337
335
  street?: string | null | undefined;
338
336
  zipCode?: string | null | undefined;
339
337
  } | {
340
- firstname?: string | null | undefined;
341
- surname?: string | null | undefined;
338
+ firstname: string;
339
+ surname: string;
342
340
  middlename?: string | null | undefined;
343
341
  } | {
344
342
  country: string;
@@ -362,13 +360,12 @@ export declare const Draft: z.ZodObject<{
362
360
  option: string;
363
361
  filename: string;
364
362
  originalFilename: string;
365
- }[] | [string, string] | null | undefined> | null | undefined;
366
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
363
+ }[] | [string, string] | null | undefined> | undefined;
364
+ originalActionId?: string | undefined;
367
365
  }, {
368
366
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
369
367
  status: "Rejected" | "Requested" | "Accepted";
370
368
  transactionId: string;
371
- createdByUserType: "system" | "user";
372
369
  createdAt: string;
373
370
  createdBy: string;
374
371
  createdByRole: string;
@@ -388,8 +385,8 @@ export declare const Draft: z.ZodObject<{
388
385
  street?: string | null | undefined;
389
386
  zipCode?: string | null | undefined;
390
387
  } | {
391
- firstname?: string | null | undefined;
392
- surname?: string | null | undefined;
388
+ firstname: string;
389
+ surname: string;
393
390
  middlename?: string | null | undefined;
394
391
  } | {
395
392
  country: string;
@@ -432,8 +429,8 @@ export declare const Draft: z.ZodObject<{
432
429
  street?: string | null | undefined;
433
430
  zipCode?: string | null | undefined;
434
431
  } | {
435
- firstname?: string | null | undefined;
436
- surname?: string | null | undefined;
432
+ firstname: string;
433
+ surname: string;
437
434
  middlename?: string | null | undefined;
438
435
  } | {
439
436
  country: string;
@@ -457,19 +454,18 @@ export declare const Draft: z.ZodObject<{
457
454
  option: string;
458
455
  filename: string;
459
456
  originalFilename: string;
460
- }[] | [string, string] | null | undefined> | null | undefined;
461
- originalActionId?: string | null | undefined;
457
+ }[] | [string, string] | null | undefined> | undefined;
458
+ originalActionId?: string | undefined;
462
459
  }>;
463
460
  }, "strip", z.ZodTypeAny, {
464
- id: string & z.BRAND<"UUID">;
461
+ id: string;
465
462
  transactionId: string;
466
463
  createdAt: string;
467
- eventId: string & z.BRAND<"UUID">;
464
+ eventId: string;
468
465
  action: {
469
466
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
470
467
  status: "Rejected" | "Requested" | "Accepted";
471
468
  transactionId: string;
472
- createdByUserType: "system" | "user";
473
469
  createdAt: string;
474
470
  createdBy: string;
475
471
  createdByRole: string;
@@ -489,8 +485,8 @@ export declare const Draft: z.ZodObject<{
489
485
  street?: string | null | undefined;
490
486
  zipCode?: string | null | undefined;
491
487
  } | {
492
- firstname?: string | null | undefined;
493
- surname?: string | null | undefined;
488
+ firstname: string;
489
+ surname: string;
494
490
  middlename?: string | null | undefined;
495
491
  } | {
496
492
  country: string;
@@ -516,7 +512,7 @@ export declare const Draft: z.ZodObject<{
516
512
  originalFilename: string;
517
513
  }[] | [string, string] | null | undefined>;
518
514
  createdBySignature?: string | null | undefined;
519
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
515
+ createdAtLocation?: string | null | undefined;
520
516
  annotation?: Record<string, string | number | boolean | {
521
517
  type: string;
522
518
  filename: string;
@@ -533,8 +529,8 @@ export declare const Draft: z.ZodObject<{
533
529
  street?: string | null | undefined;
534
530
  zipCode?: string | null | undefined;
535
531
  } | {
536
- firstname?: string | null | undefined;
537
- surname?: string | null | undefined;
532
+ firstname: string;
533
+ surname: string;
538
534
  middlename?: string | null | undefined;
539
535
  } | {
540
536
  country: string;
@@ -558,8 +554,8 @@ export declare const Draft: z.ZodObject<{
558
554
  option: string;
559
555
  filename: string;
560
556
  originalFilename: string;
561
- }[] | [string, string] | null | undefined> | null | undefined;
562
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
557
+ }[] | [string, string] | null | undefined> | undefined;
558
+ originalActionId?: string | undefined;
563
559
  };
564
560
  }, {
565
561
  id: string;
@@ -570,7 +566,6 @@ export declare const Draft: z.ZodObject<{
570
566
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
571
567
  status: "Rejected" | "Requested" | "Accepted";
572
568
  transactionId: string;
573
- createdByUserType: "system" | "user";
574
569
  createdAt: string;
575
570
  createdBy: string;
576
571
  createdByRole: string;
@@ -590,8 +585,8 @@ export declare const Draft: z.ZodObject<{
590
585
  street?: string | null | undefined;
591
586
  zipCode?: string | null | undefined;
592
587
  } | {
593
- firstname?: string | null | undefined;
594
- surname?: string | null | undefined;
588
+ firstname: string;
589
+ surname: string;
595
590
  middlename?: string | null | undefined;
596
591
  } | {
597
592
  country: string;
@@ -634,8 +629,8 @@ export declare const Draft: z.ZodObject<{
634
629
  street?: string | null | undefined;
635
630
  zipCode?: string | null | undefined;
636
631
  } | {
637
- firstname?: string | null | undefined;
638
- surname?: string | null | undefined;
632
+ firstname: string;
633
+ surname: string;
639
634
  middlename?: string | null | undefined;
640
635
  } | {
641
636
  country: string;
@@ -659,12 +654,12 @@ export declare const Draft: z.ZodObject<{
659
654
  option: string;
660
655
  filename: string;
661
656
  originalFilename: string;
662
- }[] | [string, string] | null | undefined> | null | undefined;
663
- originalActionId?: string | null | undefined;
657
+ }[] | [string, string] | null | undefined> | undefined;
658
+ originalActionId?: string | undefined;
664
659
  };
665
660
  }>;
666
661
  export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
667
- eventId: z.ZodBranded<z.ZodString, "UUID">;
662
+ eventId: z.ZodString;
668
663
  transactionId: z.ZodString;
669
664
  declaration: z.ZodDefault<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<{
670
665
  filename: z.ZodString;
@@ -780,16 +775,16 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
780
775
  addressLine3?: string | null | undefined;
781
776
  postcodeOrZip?: string | null | undefined;
782
777
  }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
783
- firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
784
- surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
778
+ firstname: z.ZodString;
779
+ surname: z.ZodString;
785
780
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
786
781
  }, "strip", z.ZodTypeAny, {
787
- firstname?: string | null | undefined;
788
- surname?: string | null | undefined;
782
+ firstname: string;
783
+ surname: string;
789
784
  middlename?: string | null | undefined;
790
785
  }, {
791
- firstname?: string | null | undefined;
792
- surname?: string | null | undefined;
786
+ firstname: string;
787
+ surname: string;
793
788
  middlename?: string | null | undefined;
794
789
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
795
790
  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<{
@@ -906,19 +901,19 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
906
901
  addressLine3?: string | null | undefined;
907
902
  postcodeOrZip?: string | null | undefined;
908
903
  }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
909
- firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
910
- surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
904
+ firstname: z.ZodString;
905
+ surname: z.ZodString;
911
906
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
912
907
  }, "strip", z.ZodTypeAny, {
913
- firstname?: string | null | undefined;
914
- surname?: string | null | undefined;
908
+ firstname: string;
909
+ surname: string;
915
910
  middlename?: string | null | undefined;
916
911
  }, {
917
- firstname?: string | null | undefined;
918
- surname?: string | null | undefined;
912
+ firstname: string;
913
+ surname: string;
919
914
  middlename?: string | null | undefined;
920
915
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
921
- originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
916
+ originalActionId: z.ZodOptional<z.ZodString>;
922
917
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
923
918
  }, {
924
919
  type: z.ZodEnum<["DELETE", "CREATE", "NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "DETECT_DUPLICATE", "REJECT", "MARKED_AS_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION", "READ", "ASSIGN", "UNASSIGN"]>;
@@ -943,8 +938,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
943
938
  street?: string | null | undefined;
944
939
  zipCode?: string | null | undefined;
945
940
  } | {
946
- firstname?: string | null | undefined;
947
- surname?: string | null | undefined;
941
+ firstname: string;
942
+ surname: string;
948
943
  middlename?: string | null | undefined;
949
944
  } | {
950
945
  country: string;
@@ -969,7 +964,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
969
964
  filename: string;
970
965
  originalFilename: string;
971
966
  }[] | [string, string] | null | undefined>;
972
- eventId: string & z.BRAND<"UUID">;
967
+ eventId: string;
973
968
  annotation?: Record<string, string | number | boolean | {
974
969
  type: string;
975
970
  filename: string;
@@ -986,8 +981,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
986
981
  street?: string | null | undefined;
987
982
  zipCode?: string | null | undefined;
988
983
  } | {
989
- firstname?: string | null | undefined;
990
- surname?: string | null | undefined;
984
+ firstname: string;
985
+ surname: string;
991
986
  middlename?: string | null | undefined;
992
987
  } | {
993
988
  country: string;
@@ -1012,7 +1007,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
1012
1007
  filename: string;
1013
1008
  originalFilename: string;
1014
1009
  }[] | [string, string] | null | undefined> | undefined;
1015
- originalActionId?: (string & z.BRAND<"UUID">) | undefined;
1010
+ originalActionId?: string | undefined;
1016
1011
  keepAssignment?: boolean | undefined;
1017
1012
  }, {
1018
1013
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
@@ -1035,8 +1030,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
1035
1030
  street?: string | null | undefined;
1036
1031
  zipCode?: string | null | undefined;
1037
1032
  } | {
1038
- firstname?: string | null | undefined;
1039
- surname?: string | null | undefined;
1033
+ firstname: string;
1034
+ surname: string;
1040
1035
  middlename?: string | null | undefined;
1041
1036
  } | {
1042
1037
  country: string;
@@ -1077,8 +1072,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
1077
1072
  street?: string | null | undefined;
1078
1073
  zipCode?: string | null | undefined;
1079
1074
  } | {
1080
- firstname?: string | null | undefined;
1081
- surname?: string | null | undefined;
1075
+ firstname: string;
1076
+ surname: string;
1082
1077
  middlename?: string | null | undefined;
1083
1078
  } | {
1084
1079
  country: string;