@opencrvs/toolkit 1.8.0-rc.f8296f8 → 1.8.0-rc.f84146e

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 +2944 -1117
  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 +24179 -11127
  5. package/dist/commons/events/ActionDocument.d.ts +1818 -414
  6. package/dist/commons/events/ActionInput.d.ts +1504 -304
  7. package/dist/commons/events/ActionType.d.ts +4 -0
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +75 -3
  9. package/dist/commons/events/CompositeFieldValue.d.ts +28 -0
  10. package/dist/commons/events/Constants.d.ts +1 -0
  11. package/dist/commons/events/CreatedAtLocation.d.ts +2 -1
  12. package/dist/commons/events/Draft.d.ts +129 -33
  13. package/dist/commons/events/EventConfig.d.ts +12161 -5927
  14. package/dist/commons/events/EventDocument.d.ts +1162 -298
  15. package/dist/commons/events/EventIndex.d.ts +284 -31
  16. package/dist/commons/events/EventMetadata.d.ts +57 -57
  17. package/dist/commons/events/FieldConfig.d.ts +2074 -1202
  18. package/dist/commons/events/FieldType.d.ts +4 -1
  19. package/dist/commons/events/FieldTypeMapping.d.ts +94 -52
  20. package/dist/commons/events/FieldValue.d.ts +43 -5
  21. package/dist/commons/events/FormConfig.d.ts +10259 -4769
  22. package/dist/commons/events/PageConfig.d.ts +3480 -2134
  23. package/dist/commons/events/SummaryConfig.d.ts +0 -5
  24. package/dist/commons/events/WorkqueueConfig.d.ts +297 -19
  25. package/dist/commons/events/defineConfig.d.ts +1724 -701
  26. package/dist/commons/events/field.d.ts +5 -10
  27. package/dist/commons/events/test.utils.d.ts +125 -40
  28. package/dist/commons/events/transactions.d.ts +1 -1
  29. package/dist/commons/events/utils.d.ts +10015 -331
  30. package/dist/conditionals/index.js +26 -6
  31. package/dist/events/index.js +760 -491
  32. package/package.json +1 -1
@@ -36,4 +36,8 @@ export declare const annotationActions: z.ZodEnum<["DELETE", "CREATE", "NOTIFY",
36
36
  export type AnnotationActionType = z.infer<typeof annotationActions>;
37
37
  /** Actions which requires the user to be assigned */
38
38
  export declare const writeActions: z.ZodEnum<["DELETE", "NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "DETECT_DUPLICATE", "REJECT", "MARKED_AS_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION"]>;
39
+ /** Actions which are visible in action menu and workqueue */
40
+ export declare const workqueueActions: z.ZodEnum<["DELETE", "DECLARE", "VALIDATE", "REGISTER", "PRINT_CERTIFICATE", "READ", "ASSIGN", "UNASSIGN"]>;
41
+ export type WorkqueueActionType = z.infer<typeof workqueueActions>;
42
+ export declare function isMetaAction(actionType: ActionType): boolean;
39
43
  //# sourceMappingURL=ActionType.d.ts.map
@@ -115,7 +115,31 @@ export declare const SearchQueryParams: z.ZodObject<{
115
115
  addressLine2?: string | undefined;
116
116
  addressLine3?: string | undefined;
117
117
  postcodeOrZip?: string | undefined;
118
- }>]>, z.objectOutputType<{
118
+ }>, z.ZodObject<{
119
+ firstname: z.ZodString;
120
+ surname: z.ZodString;
121
+ middlename: z.ZodOptional<z.ZodString>;
122
+ }, "strip", z.ZodTypeAny, {
123
+ firstname: string;
124
+ surname: string;
125
+ middlename?: string | undefined;
126
+ }, {
127
+ firstname: string;
128
+ surname: string;
129
+ middlename?: string | undefined;
130
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
131
+ firstname: z.ZodString;
132
+ surname: z.ZodString;
133
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
134
+ }, "strip", z.ZodTypeAny, {
135
+ firstname: string;
136
+ surname: string;
137
+ middlename?: string | null | undefined;
138
+ }, {
139
+ firstname: string;
140
+ surname: string;
141
+ middlename?: string | null | undefined;
142
+ }>, z.ZodNull]>, z.ZodUndefined]>]>, z.objectOutputType<{
119
143
  eventType: z.ZodOptional<z.ZodString>;
120
144
  }, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
121
145
  filename: z.ZodString;
@@ -230,7 +254,31 @@ export declare const SearchQueryParams: z.ZodObject<{
230
254
  addressLine2?: string | undefined;
231
255
  addressLine3?: string | undefined;
232
256
  postcodeOrZip?: string | undefined;
233
- }>]>, "strip">, z.objectInputType<{
257
+ }>, z.ZodObject<{
258
+ firstname: z.ZodString;
259
+ surname: z.ZodString;
260
+ middlename: z.ZodOptional<z.ZodString>;
261
+ }, "strip", z.ZodTypeAny, {
262
+ firstname: string;
263
+ surname: string;
264
+ middlename?: string | undefined;
265
+ }, {
266
+ firstname: string;
267
+ surname: string;
268
+ middlename?: string | undefined;
269
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
270
+ firstname: z.ZodString;
271
+ surname: z.ZodString;
272
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
273
+ }, "strip", z.ZodTypeAny, {
274
+ firstname: string;
275
+ surname: string;
276
+ middlename?: string | null | undefined;
277
+ }, {
278
+ firstname: string;
279
+ surname: string;
280
+ middlename?: string | null | undefined;
281
+ }>, z.ZodNull]>, z.ZodUndefined]>]>, "strip">, z.objectInputType<{
234
282
  eventType: z.ZodOptional<z.ZodString>;
235
283
  }, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
236
284
  filename: z.ZodString;
@@ -345,7 +393,31 @@ export declare const SearchQueryParams: z.ZodObject<{
345
393
  addressLine2?: string | undefined;
346
394
  addressLine3?: string | undefined;
347
395
  postcodeOrZip?: string | undefined;
348
- }>]>, "strip">>;
396
+ }>, z.ZodObject<{
397
+ firstname: z.ZodString;
398
+ surname: z.ZodString;
399
+ middlename: z.ZodOptional<z.ZodString>;
400
+ }, "strip", z.ZodTypeAny, {
401
+ firstname: string;
402
+ surname: string;
403
+ middlename?: string | undefined;
404
+ }, {
405
+ firstname: string;
406
+ surname: string;
407
+ middlename?: string | undefined;
408
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
409
+ firstname: z.ZodString;
410
+ surname: z.ZodString;
411
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
412
+ }, "strip", z.ZodTypeAny, {
413
+ firstname: string;
414
+ surname: string;
415
+ middlename?: string | null | undefined;
416
+ }, {
417
+ firstname: string;
418
+ surname: string;
419
+ middlename?: string | null | undefined;
420
+ }>, z.ZodNull]>, z.ZodUndefined]>]>, "strip">>;
349
421
  export type SearchQueryParams = z.infer<typeof SearchQueryParams>;
350
422
  export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
351
423
  config: z.ZodObject<{
@@ -117,6 +117,34 @@ export declare const UrbanAddressUpdateValue: z.ZodObject<z.objectUtil.extendSha
117
117
  street?: string | null | undefined;
118
118
  zipCode?: string | null | undefined;
119
119
  }>;
120
+ export declare const NameFieldValue: z.ZodObject<{
121
+ firstname: z.ZodString;
122
+ surname: z.ZodString;
123
+ middlename: z.ZodOptional<z.ZodString>;
124
+ }, "strip", z.ZodTypeAny, {
125
+ firstname: string;
126
+ surname: string;
127
+ middlename?: string | undefined;
128
+ }, {
129
+ firstname: string;
130
+ surname: string;
131
+ middlename?: string | undefined;
132
+ }>;
133
+ export declare const NameFieldUpdateValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
134
+ firstname: z.ZodString;
135
+ surname: z.ZodString;
136
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
137
+ }, "strip", z.ZodTypeAny, {
138
+ firstname: string;
139
+ surname: string;
140
+ middlename?: string | null | undefined;
141
+ }, {
142
+ firstname: string;
143
+ surname: string;
144
+ middlename?: string | null | undefined;
145
+ }>, z.ZodNull]>, z.ZodUndefined]>;
146
+ export type NameFieldValue = z.infer<typeof NameFieldValue>;
147
+ export type NameFieldUpdateValue = z.infer<typeof NameFieldUpdateValue>;
120
148
  export type UrbanAddressUpdateValue = z.infer<typeof UrbanAddressUpdateValue>;
121
149
  export declare const RuralAddressUpdateValue: z.ZodObject<z.objectUtil.extendShape<{
122
150
  country: z.ZodString;
@@ -1,2 +1,3 @@
1
1
  export declare const TENNIS_CLUB_MEMBERSHIP = "tennis-club-membership";
2
+ export declare const BIRTH_EVENT = "v2-birth";
2
3
  //# sourceMappingURL=Constants.d.ts.map
@@ -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,7 +1,7 @@
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<{
@@ -11,7 +11,7 @@ export declare const Draft: z.ZodObject<{
11
11
  createdBy: z.ZodString;
12
12
  createdByRole: z.ZodString;
13
13
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
14
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
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<{
16
16
  filename: z.ZodString;
17
17
  originalFilename: z.ZodString;
@@ -125,8 +125,20 @@ export declare const Draft: z.ZodObject<{
125
125
  addressLine2?: string | null | undefined;
126
126
  addressLine3?: string | null | undefined;
127
127
  postcodeOrZip?: string | null | undefined;
128
- }>]>>;
129
- 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<{
128
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
129
+ firstname: z.ZodString;
130
+ surname: z.ZodString;
131
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
132
+ }, "strip", z.ZodTypeAny, {
133
+ firstname: string;
134
+ surname: string;
135
+ middlename?: string | null | undefined;
136
+ }, {
137
+ firstname: string;
138
+ surname: string;
139
+ middlename?: string | null | undefined;
140
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
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<{
130
142
  filename: z.ZodString;
131
143
  originalFilename: z.ZodString;
132
144
  type: z.ZodString;
@@ -239,9 +251,21 @@ export declare const Draft: z.ZodObject<{
239
251
  addressLine2?: string | null | undefined;
240
252
  addressLine3?: string | null | undefined;
241
253
  postcodeOrZip?: string | null | undefined;
242
- }>]>>>>;
254
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
255
+ firstname: z.ZodString;
256
+ surname: z.ZodString;
257
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
258
+ }, "strip", z.ZodTypeAny, {
259
+ firstname: string;
260
+ surname: string;
261
+ middlename?: string | null | undefined;
262
+ }, {
263
+ firstname: string;
264
+ surname: string;
265
+ middlename?: string | null | undefined;
266
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
243
267
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
244
- originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
268
+ originalActionId: z.ZodOptional<z.ZodString>;
245
269
  }, {
246
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"]>;
247
271
  }>, "id">, "strip", z.ZodTypeAny, {
@@ -266,6 +290,10 @@ export declare const Draft: z.ZodObject<{
266
290
  residentialArea?: string | null | undefined;
267
291
  street?: string | null | undefined;
268
292
  zipCode?: string | null | undefined;
293
+ } | {
294
+ firstname: string;
295
+ surname: string;
296
+ middlename?: string | null | undefined;
269
297
  } | {
270
298
  country: string;
271
299
  district: string;
@@ -288,9 +316,9 @@ export declare const Draft: z.ZodObject<{
288
316
  option: string;
289
317
  filename: string;
290
318
  originalFilename: string;
291
- }[] | [string, string] | undefined>;
319
+ }[] | [string, string] | null | undefined>;
292
320
  createdBySignature?: string | null | undefined;
293
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
321
+ createdAtLocation?: string | null | undefined;
294
322
  annotation?: Record<string, string | number | boolean | {
295
323
  type: string;
296
324
  filename: string;
@@ -306,6 +334,10 @@ export declare const Draft: z.ZodObject<{
306
334
  residentialArea?: string | null | undefined;
307
335
  street?: string | null | undefined;
308
336
  zipCode?: string | null | undefined;
337
+ } | {
338
+ firstname: string;
339
+ surname: string;
340
+ middlename?: string | null | undefined;
309
341
  } | {
310
342
  country: string;
311
343
  district: string;
@@ -328,8 +360,8 @@ export declare const Draft: z.ZodObject<{
328
360
  option: string;
329
361
  filename: string;
330
362
  originalFilename: string;
331
- }[] | [string, string] | undefined> | null | undefined;
332
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
363
+ }[] | [string, string] | null | undefined> | undefined;
364
+ originalActionId?: string | undefined;
333
365
  }, {
334
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";
335
367
  status: "Rejected" | "Requested" | "Accepted";
@@ -352,6 +384,10 @@ export declare const Draft: z.ZodObject<{
352
384
  residentialArea?: string | null | undefined;
353
385
  street?: string | null | undefined;
354
386
  zipCode?: string | null | undefined;
387
+ } | {
388
+ firstname: string;
389
+ surname: string;
390
+ middlename?: string | null | undefined;
355
391
  } | {
356
392
  country: string;
357
393
  district: string;
@@ -374,7 +410,7 @@ export declare const Draft: z.ZodObject<{
374
410
  option: string;
375
411
  filename: string;
376
412
  originalFilename: string;
377
- }[] | [string, string] | undefined>;
413
+ }[] | [string, string] | null | undefined>;
378
414
  createdBySignature?: string | null | undefined;
379
415
  createdAtLocation?: string | null | undefined;
380
416
  annotation?: Record<string, string | number | boolean | {
@@ -392,6 +428,10 @@ export declare const Draft: z.ZodObject<{
392
428
  residentialArea?: string | null | undefined;
393
429
  street?: string | null | undefined;
394
430
  zipCode?: string | null | undefined;
431
+ } | {
432
+ firstname: string;
433
+ surname: string;
434
+ middlename?: string | null | undefined;
395
435
  } | {
396
436
  country: string;
397
437
  district: string;
@@ -414,14 +454,14 @@ export declare const Draft: z.ZodObject<{
414
454
  option: string;
415
455
  filename: string;
416
456
  originalFilename: string;
417
- }[] | [string, string] | undefined> | null | undefined;
418
- originalActionId?: string | null | undefined;
457
+ }[] | [string, string] | null | undefined> | undefined;
458
+ originalActionId?: string | undefined;
419
459
  }>;
420
460
  }, "strip", z.ZodTypeAny, {
421
- id: string & z.BRAND<"UUID">;
461
+ id: string;
422
462
  transactionId: string;
423
463
  createdAt: string;
424
- eventId: string & z.BRAND<"UUID">;
464
+ eventId: string;
425
465
  action: {
426
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";
427
467
  status: "Rejected" | "Requested" | "Accepted";
@@ -444,6 +484,10 @@ export declare const Draft: z.ZodObject<{
444
484
  residentialArea?: string | null | undefined;
445
485
  street?: string | null | undefined;
446
486
  zipCode?: string | null | undefined;
487
+ } | {
488
+ firstname: string;
489
+ surname: string;
490
+ middlename?: string | null | undefined;
447
491
  } | {
448
492
  country: string;
449
493
  district: string;
@@ -466,9 +510,9 @@ export declare const Draft: z.ZodObject<{
466
510
  option: string;
467
511
  filename: string;
468
512
  originalFilename: string;
469
- }[] | [string, string] | undefined>;
513
+ }[] | [string, string] | null | undefined>;
470
514
  createdBySignature?: string | null | undefined;
471
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
515
+ createdAtLocation?: string | null | undefined;
472
516
  annotation?: Record<string, string | number | boolean | {
473
517
  type: string;
474
518
  filename: string;
@@ -484,6 +528,10 @@ export declare const Draft: z.ZodObject<{
484
528
  residentialArea?: string | null | undefined;
485
529
  street?: string | null | undefined;
486
530
  zipCode?: string | null | undefined;
531
+ } | {
532
+ firstname: string;
533
+ surname: string;
534
+ middlename?: string | null | undefined;
487
535
  } | {
488
536
  country: string;
489
537
  district: string;
@@ -506,8 +554,8 @@ export declare const Draft: z.ZodObject<{
506
554
  option: string;
507
555
  filename: string;
508
556
  originalFilename: string;
509
- }[] | [string, string] | undefined> | null | undefined;
510
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
557
+ }[] | [string, string] | null | undefined> | undefined;
558
+ originalActionId?: string | undefined;
511
559
  };
512
560
  }, {
513
561
  id: string;
@@ -536,6 +584,10 @@ export declare const Draft: z.ZodObject<{
536
584
  residentialArea?: string | null | undefined;
537
585
  street?: string | null | undefined;
538
586
  zipCode?: string | null | undefined;
587
+ } | {
588
+ firstname: string;
589
+ surname: string;
590
+ middlename?: string | null | undefined;
539
591
  } | {
540
592
  country: string;
541
593
  district: string;
@@ -558,7 +610,7 @@ export declare const Draft: z.ZodObject<{
558
610
  option: string;
559
611
  filename: string;
560
612
  originalFilename: string;
561
- }[] | [string, string] | undefined>;
613
+ }[] | [string, string] | null | undefined>;
562
614
  createdBySignature?: string | null | undefined;
563
615
  createdAtLocation?: string | null | undefined;
564
616
  annotation?: Record<string, string | number | boolean | {
@@ -576,6 +628,10 @@ export declare const Draft: z.ZodObject<{
576
628
  residentialArea?: string | null | undefined;
577
629
  street?: string | null | undefined;
578
630
  zipCode?: string | null | undefined;
631
+ } | {
632
+ firstname: string;
633
+ surname: string;
634
+ middlename?: string | null | undefined;
579
635
  } | {
580
636
  country: string;
581
637
  district: string;
@@ -598,12 +654,12 @@ export declare const Draft: z.ZodObject<{
598
654
  option: string;
599
655
  filename: string;
600
656
  originalFilename: string;
601
- }[] | [string, string] | undefined> | null | undefined;
602
- originalActionId?: string | null | undefined;
657
+ }[] | [string, string] | null | undefined> | undefined;
658
+ originalActionId?: string | undefined;
603
659
  };
604
660
  }>;
605
661
  export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
606
- eventId: z.ZodBranded<z.ZodString, "UUID">;
662
+ eventId: z.ZodString;
607
663
  transactionId: z.ZodString;
608
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<{
609
665
  filename: z.ZodString;
@@ -718,7 +774,19 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
718
774
  addressLine2?: string | null | undefined;
719
775
  addressLine3?: string | null | undefined;
720
776
  postcodeOrZip?: string | null | undefined;
721
- }>]>>>;
777
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
778
+ firstname: z.ZodString;
779
+ surname: z.ZodString;
780
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
781
+ }, "strip", z.ZodTypeAny, {
782
+ firstname: string;
783
+ surname: string;
784
+ middlename?: string | null | undefined;
785
+ }, {
786
+ firstname: string;
787
+ surname: string;
788
+ middlename?: string | null | undefined;
789
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
722
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<{
723
791
  filename: z.ZodString;
724
792
  originalFilename: z.ZodString;
@@ -832,8 +900,20 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
832
900
  addressLine2?: string | null | undefined;
833
901
  addressLine3?: string | null | undefined;
834
902
  postcodeOrZip?: string | null | undefined;
835
- }>]>>>;
836
- originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
903
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
904
+ firstname: z.ZodString;
905
+ surname: z.ZodString;
906
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
907
+ }, "strip", z.ZodTypeAny, {
908
+ firstname: string;
909
+ surname: string;
910
+ middlename?: string | null | undefined;
911
+ }, {
912
+ firstname: string;
913
+ surname: string;
914
+ middlename?: string | null | undefined;
915
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
916
+ originalActionId: z.ZodOptional<z.ZodString>;
837
917
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
838
918
  }, {
839
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"]>;
@@ -857,6 +937,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
857
937
  residentialArea?: string | null | undefined;
858
938
  street?: string | null | undefined;
859
939
  zipCode?: string | null | undefined;
940
+ } | {
941
+ firstname: string;
942
+ surname: string;
943
+ middlename?: string | null | undefined;
860
944
  } | {
861
945
  country: string;
862
946
  district: string;
@@ -879,8 +963,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
879
963
  option: string;
880
964
  filename: string;
881
965
  originalFilename: string;
882
- }[] | [string, string] | undefined>;
883
- eventId: string & z.BRAND<"UUID">;
966
+ }[] | [string, string] | null | undefined>;
967
+ eventId: string;
884
968
  annotation?: Record<string, string | number | boolean | {
885
969
  type: string;
886
970
  filename: string;
@@ -896,6 +980,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
896
980
  residentialArea?: string | null | undefined;
897
981
  street?: string | null | undefined;
898
982
  zipCode?: string | null | undefined;
983
+ } | {
984
+ firstname: string;
985
+ surname: string;
986
+ middlename?: string | null | undefined;
899
987
  } | {
900
988
  country: string;
901
989
  district: string;
@@ -918,8 +1006,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
918
1006
  option: string;
919
1007
  filename: string;
920
1008
  originalFilename: string;
921
- }[] | [string, string] | undefined> | undefined;
922
- originalActionId?: (string & z.BRAND<"UUID">) | undefined;
1009
+ }[] | [string, string] | null | undefined> | undefined;
1010
+ originalActionId?: string | undefined;
923
1011
  keepAssignment?: boolean | undefined;
924
1012
  }, {
925
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";
@@ -941,6 +1029,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
941
1029
  residentialArea?: string | null | undefined;
942
1030
  street?: string | null | undefined;
943
1031
  zipCode?: string | null | undefined;
1032
+ } | {
1033
+ firstname: string;
1034
+ surname: string;
1035
+ middlename?: string | null | undefined;
944
1036
  } | {
945
1037
  country: string;
946
1038
  district: string;
@@ -963,7 +1055,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
963
1055
  option: string;
964
1056
  filename: string;
965
1057
  originalFilename: string;
966
- }[] | [string, string] | undefined> | undefined;
1058
+ }[] | [string, string] | null | undefined> | undefined;
967
1059
  annotation?: Record<string, string | number | boolean | {
968
1060
  type: string;
969
1061
  filename: string;
@@ -979,6 +1071,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
979
1071
  residentialArea?: string | null | undefined;
980
1072
  street?: string | null | undefined;
981
1073
  zipCode?: string | null | undefined;
1074
+ } | {
1075
+ firstname: string;
1076
+ surname: string;
1077
+ middlename?: string | null | undefined;
982
1078
  } | {
983
1079
  country: string;
984
1080
  district: string;
@@ -1001,7 +1097,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
1001
1097
  option: string;
1002
1098
  filename: string;
1003
1099
  originalFilename: string;
1004
- }[] | [string, string] | undefined> | undefined;
1100
+ }[] | [string, string] | null | undefined> | undefined;
1005
1101
  originalActionId?: string | undefined;
1006
1102
  keepAssignment?: boolean | undefined;
1007
1103
  }>;