@opencrvs/toolkit 1.8.0-rc.ffe24c3 → 1.8.1-rc.38945e7

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 (35) hide show
  1. package/dist/commons/api/router.d.ts +1742 -14918
  2. package/dist/commons/conditionals/conditionals.d.ts +0 -12
  3. package/dist/commons/conditionals/validate.d.ts +5 -0
  4. package/dist/commons/events/ActionConfig.d.ts +37041 -35133
  5. package/dist/commons/events/ActionDocument.d.ts +3159 -1626
  6. package/dist/commons/events/ActionInput.d.ts +2280 -1380
  7. package/dist/commons/events/ActionType.d.ts +7 -4
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +100 -51
  9. package/dist/commons/events/CompositeFieldValue.d.ts +15 -15
  10. package/dist/commons/events/CountryConfigQueryInput.d.ts +1162 -760
  11. package/dist/commons/events/Draft.d.ts +190 -118
  12. package/dist/commons/events/EventConfig.d.ts +20824 -22965
  13. package/dist/commons/events/EventDocument.d.ts +1669 -1021
  14. package/dist/commons/events/EventIndex.d.ts +394 -175
  15. package/dist/commons/events/EventMetadata.d.ts +6 -4
  16. package/dist/commons/events/FieldConfig.d.ts +1528 -449
  17. package/dist/commons/events/FieldType.d.ts +3 -1
  18. package/dist/commons/events/FieldTypeMapping.d.ts +80 -41
  19. package/dist/commons/events/FieldValue.d.ts +58 -28
  20. package/dist/commons/events/FormConfig.d.ts +9263 -2657
  21. package/dist/commons/events/PageConfig.d.ts +3642 -2028
  22. package/dist/commons/events/SummaryConfig.d.ts +10 -10
  23. package/dist/commons/events/User.d.ts +6 -3
  24. package/dist/commons/events/WorkqueueConfig.d.ts +2153 -1337
  25. package/dist/commons/events/defineConfig.d.ts +2759 -3250
  26. package/dist/commons/events/event.d.ts +10 -18
  27. package/dist/commons/events/field.d.ts +13 -1
  28. package/dist/commons/events/scopes.d.ts +2 -1
  29. package/dist/commons/events/test.utils.d.ts +58 -34
  30. package/dist/commons/events/utils.d.ts +8848 -6794
  31. package/dist/conditionals/index.js +23 -53
  32. package/dist/events/index.js +1594 -1341
  33. package/dist/scopes/index.d.ts +92 -6
  34. package/dist/scopes/index.js +38 -9
  35. package/package.json +3 -3
@@ -13,32 +13,41 @@ export declare const Draft: z.ZodObject<{
13
13
  createdByRole: z.ZodString;
14
14
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
15
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
16
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
17
- filename: z.ZodString;
16
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
17
+ start: z.ZodString;
18
+ end: z.ZodString;
19
+ }, "strip", z.ZodTypeAny, {
20
+ start: string;
21
+ end: string;
22
+ }, {
23
+ start: string;
24
+ end: string;
25
+ }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
26
+ path: z.ZodEffects<z.ZodString, string, string>;
18
27
  originalFilename: z.ZodString;
19
28
  type: z.ZodString;
20
29
  }, "strip", z.ZodTypeAny, {
21
30
  type: string;
22
- filename: string;
31
+ path: string;
23
32
  originalFilename: string;
24
33
  }, {
25
34
  type: string;
26
- filename: string;
35
+ path: string;
27
36
  originalFilename: string;
28
37
  }>, z.ZodArray<z.ZodObject<{
29
- filename: z.ZodString;
38
+ path: z.ZodEffects<z.ZodString, string, string>;
30
39
  originalFilename: z.ZodString;
31
40
  type: z.ZodString;
32
41
  option: z.ZodString;
33
42
  }, "strip", z.ZodTypeAny, {
34
43
  type: string;
35
44
  option: string;
36
- filename: string;
45
+ path: string;
37
46
  originalFilename: string;
38
47
  }, {
39
48
  type: string;
40
49
  option: string;
41
- filename: string;
50
+ path: string;
42
51
  originalFilename: string;
43
52
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
44
53
  country: z.ZodString;
@@ -127,44 +136,53 @@ export declare const Draft: z.ZodObject<{
127
136
  addressLine3?: string | null | undefined;
128
137
  postcodeOrZip?: string | null | undefined;
129
138
  }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
130
- firstname: z.ZodString;
131
- surname: z.ZodString;
139
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
140
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
132
141
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
133
142
  }, "strip", z.ZodTypeAny, {
134
- firstname: string;
135
- surname: string;
143
+ firstname?: string | null | undefined;
144
+ surname?: string | null | undefined;
136
145
  middlename?: string | null | undefined;
137
146
  }, {
138
- firstname: string;
139
- surname: string;
147
+ firstname?: string | null | undefined;
148
+ surname?: string | null | undefined;
140
149
  middlename?: string | null | undefined;
141
150
  }>, 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<{
143
- filename: z.ZodString;
151
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
152
+ start: z.ZodString;
153
+ end: z.ZodString;
154
+ }, "strip", z.ZodTypeAny, {
155
+ start: string;
156
+ end: string;
157
+ }, {
158
+ start: string;
159
+ end: string;
160
+ }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
161
+ path: z.ZodEffects<z.ZodString, string, string>;
144
162
  originalFilename: z.ZodString;
145
163
  type: z.ZodString;
146
164
  }, "strip", z.ZodTypeAny, {
147
165
  type: string;
148
- filename: string;
166
+ path: string;
149
167
  originalFilename: string;
150
168
  }, {
151
169
  type: string;
152
- filename: string;
170
+ path: string;
153
171
  originalFilename: string;
154
172
  }>, z.ZodArray<z.ZodObject<{
155
- filename: z.ZodString;
173
+ path: z.ZodEffects<z.ZodString, string, string>;
156
174
  originalFilename: z.ZodString;
157
175
  type: z.ZodString;
158
176
  option: z.ZodString;
159
177
  }, "strip", z.ZodTypeAny, {
160
178
  type: string;
161
179
  option: string;
162
- filename: string;
180
+ path: string;
163
181
  originalFilename: string;
164
182
  }, {
165
183
  type: string;
166
184
  option: string;
167
- filename: string;
185
+ path: string;
168
186
  originalFilename: string;
169
187
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
170
188
  country: z.ZodString;
@@ -253,16 +271,16 @@ export declare const Draft: z.ZodObject<{
253
271
  addressLine3?: string | null | undefined;
254
272
  postcodeOrZip?: string | null | undefined;
255
273
  }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
256
- firstname: z.ZodString;
257
- surname: z.ZodString;
274
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
275
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
258
276
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
259
277
  }, "strip", z.ZodTypeAny, {
260
- firstname: string;
261
- surname: string;
278
+ firstname?: string | null | undefined;
279
+ surname?: string | null | undefined;
262
280
  middlename?: string | null | undefined;
263
281
  }, {
264
- firstname: string;
265
- surname: string;
282
+ firstname?: string | null | undefined;
283
+ surname?: string | null | undefined;
266
284
  middlename?: string | null | undefined;
267
285
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
268
286
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
@@ -270,7 +288,7 @@ export declare const Draft: z.ZodObject<{
270
288
  }, {
271
289
  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
290
  }>, "id">, "strip", z.ZodTypeAny, {
273
- 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";
291
+ type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
274
292
  status: "Rejected" | "Requested" | "Accepted";
275
293
  transactionId: string;
276
294
  createdByUserType: "system" | "user";
@@ -279,7 +297,7 @@ export declare const Draft: z.ZodObject<{
279
297
  createdByRole: string;
280
298
  declaration: Record<string, string | number | boolean | {
281
299
  type: string;
282
- filename: string;
300
+ path: string;
283
301
  originalFilename: string;
284
302
  } | {
285
303
  country: string;
@@ -293,8 +311,8 @@ export declare const Draft: z.ZodObject<{
293
311
  street?: string | null | undefined;
294
312
  zipCode?: string | null | undefined;
295
313
  } | {
296
- firstname: string;
297
- surname: string;
314
+ firstname?: string | null | undefined;
315
+ surname?: string | null | undefined;
298
316
  middlename?: string | null | undefined;
299
317
  } | {
300
318
  country: string;
@@ -316,14 +334,17 @@ export declare const Draft: z.ZodObject<{
316
334
  } | {
317
335
  type: string;
318
336
  option: string;
319
- filename: string;
337
+ path: string;
320
338
  originalFilename: string;
321
- }[] | [string, string] | null | undefined>;
339
+ }[] | {
340
+ start: string;
341
+ end: string;
342
+ } | null | undefined>;
322
343
  createdBySignature?: string | null | undefined;
323
344
  createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
324
345
  annotation?: Record<string, string | number | boolean | {
325
346
  type: string;
326
- filename: string;
347
+ path: string;
327
348
  originalFilename: string;
328
349
  } | {
329
350
  country: string;
@@ -337,8 +358,8 @@ export declare const Draft: z.ZodObject<{
337
358
  street?: string | null | undefined;
338
359
  zipCode?: string | null | undefined;
339
360
  } | {
340
- firstname: string;
341
- surname: string;
361
+ firstname?: string | null | undefined;
362
+ surname?: string | null | undefined;
342
363
  middlename?: string | null | undefined;
343
364
  } | {
344
365
  country: string;
@@ -360,12 +381,15 @@ export declare const Draft: z.ZodObject<{
360
381
  } | {
361
382
  type: string;
362
383
  option: string;
363
- filename: string;
384
+ path: string;
364
385
  originalFilename: string;
365
- }[] | [string, string] | null | undefined> | null | undefined;
386
+ }[] | {
387
+ start: string;
388
+ end: string;
389
+ } | null | undefined> | null | undefined;
366
390
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
367
391
  }, {
368
- 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";
392
+ type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
369
393
  status: "Rejected" | "Requested" | "Accepted";
370
394
  transactionId: string;
371
395
  createdByUserType: "system" | "user";
@@ -374,7 +398,7 @@ export declare const Draft: z.ZodObject<{
374
398
  createdByRole: string;
375
399
  declaration: Record<string, string | number | boolean | {
376
400
  type: string;
377
- filename: string;
401
+ path: string;
378
402
  originalFilename: string;
379
403
  } | {
380
404
  country: string;
@@ -388,8 +412,8 @@ export declare const Draft: z.ZodObject<{
388
412
  street?: string | null | undefined;
389
413
  zipCode?: string | null | undefined;
390
414
  } | {
391
- firstname: string;
392
- surname: string;
415
+ firstname?: string | null | undefined;
416
+ surname?: string | null | undefined;
393
417
  middlename?: string | null | undefined;
394
418
  } | {
395
419
  country: string;
@@ -411,14 +435,17 @@ export declare const Draft: z.ZodObject<{
411
435
  } | {
412
436
  type: string;
413
437
  option: string;
414
- filename: string;
438
+ path: string;
415
439
  originalFilename: string;
416
- }[] | [string, string] | null | undefined>;
440
+ }[] | {
441
+ start: string;
442
+ end: string;
443
+ } | null | undefined>;
417
444
  createdBySignature?: string | null | undefined;
418
445
  createdAtLocation?: string | null | undefined;
419
446
  annotation?: Record<string, string | number | boolean | {
420
447
  type: string;
421
- filename: string;
448
+ path: string;
422
449
  originalFilename: string;
423
450
  } | {
424
451
  country: string;
@@ -432,8 +459,8 @@ export declare const Draft: z.ZodObject<{
432
459
  street?: string | null | undefined;
433
460
  zipCode?: string | null | undefined;
434
461
  } | {
435
- firstname: string;
436
- surname: string;
462
+ firstname?: string | null | undefined;
463
+ surname?: string | null | undefined;
437
464
  middlename?: string | null | undefined;
438
465
  } | {
439
466
  country: string;
@@ -455,9 +482,12 @@ export declare const Draft: z.ZodObject<{
455
482
  } | {
456
483
  type: string;
457
484
  option: string;
458
- filename: string;
485
+ path: string;
459
486
  originalFilename: string;
460
- }[] | [string, string] | null | undefined> | null | undefined;
487
+ }[] | {
488
+ start: string;
489
+ end: string;
490
+ } | null | undefined> | null | undefined;
461
491
  originalActionId?: string | null | undefined;
462
492
  }>;
463
493
  }, "strip", z.ZodTypeAny, {
@@ -466,7 +496,7 @@ export declare const Draft: z.ZodObject<{
466
496
  createdAt: string;
467
497
  eventId: string & z.BRAND<"UUID">;
468
498
  action: {
469
- 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";
499
+ type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
470
500
  status: "Rejected" | "Requested" | "Accepted";
471
501
  transactionId: string;
472
502
  createdByUserType: "system" | "user";
@@ -475,7 +505,7 @@ export declare const Draft: z.ZodObject<{
475
505
  createdByRole: string;
476
506
  declaration: Record<string, string | number | boolean | {
477
507
  type: string;
478
- filename: string;
508
+ path: string;
479
509
  originalFilename: string;
480
510
  } | {
481
511
  country: string;
@@ -489,8 +519,8 @@ export declare const Draft: z.ZodObject<{
489
519
  street?: string | null | undefined;
490
520
  zipCode?: string | null | undefined;
491
521
  } | {
492
- firstname: string;
493
- surname: string;
522
+ firstname?: string | null | undefined;
523
+ surname?: string | null | undefined;
494
524
  middlename?: string | null | undefined;
495
525
  } | {
496
526
  country: string;
@@ -512,14 +542,17 @@ export declare const Draft: z.ZodObject<{
512
542
  } | {
513
543
  type: string;
514
544
  option: string;
515
- filename: string;
545
+ path: string;
516
546
  originalFilename: string;
517
- }[] | [string, string] | null | undefined>;
547
+ }[] | {
548
+ start: string;
549
+ end: string;
550
+ } | null | undefined>;
518
551
  createdBySignature?: string | null | undefined;
519
552
  createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
520
553
  annotation?: Record<string, string | number | boolean | {
521
554
  type: string;
522
- filename: string;
555
+ path: string;
523
556
  originalFilename: string;
524
557
  } | {
525
558
  country: string;
@@ -533,8 +566,8 @@ export declare const Draft: z.ZodObject<{
533
566
  street?: string | null | undefined;
534
567
  zipCode?: string | null | undefined;
535
568
  } | {
536
- firstname: string;
537
- surname: string;
569
+ firstname?: string | null | undefined;
570
+ surname?: string | null | undefined;
538
571
  middlename?: string | null | undefined;
539
572
  } | {
540
573
  country: string;
@@ -556,9 +589,12 @@ export declare const Draft: z.ZodObject<{
556
589
  } | {
557
590
  type: string;
558
591
  option: string;
559
- filename: string;
592
+ path: string;
560
593
  originalFilename: string;
561
- }[] | [string, string] | null | undefined> | null | undefined;
594
+ }[] | {
595
+ start: string;
596
+ end: string;
597
+ } | null | undefined> | null | undefined;
562
598
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
563
599
  };
564
600
  }, {
@@ -567,7 +603,7 @@ export declare const Draft: z.ZodObject<{
567
603
  createdAt: string;
568
604
  eventId: string;
569
605
  action: {
570
- 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";
606
+ type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
571
607
  status: "Rejected" | "Requested" | "Accepted";
572
608
  transactionId: string;
573
609
  createdByUserType: "system" | "user";
@@ -576,7 +612,7 @@ export declare const Draft: z.ZodObject<{
576
612
  createdByRole: string;
577
613
  declaration: Record<string, string | number | boolean | {
578
614
  type: string;
579
- filename: string;
615
+ path: string;
580
616
  originalFilename: string;
581
617
  } | {
582
618
  country: string;
@@ -590,8 +626,8 @@ export declare const Draft: z.ZodObject<{
590
626
  street?: string | null | undefined;
591
627
  zipCode?: string | null | undefined;
592
628
  } | {
593
- firstname: string;
594
- surname: string;
629
+ firstname?: string | null | undefined;
630
+ surname?: string | null | undefined;
595
631
  middlename?: string | null | undefined;
596
632
  } | {
597
633
  country: string;
@@ -613,14 +649,17 @@ export declare const Draft: z.ZodObject<{
613
649
  } | {
614
650
  type: string;
615
651
  option: string;
616
- filename: string;
652
+ path: string;
617
653
  originalFilename: string;
618
- }[] | [string, string] | null | undefined>;
654
+ }[] | {
655
+ start: string;
656
+ end: string;
657
+ } | null | undefined>;
619
658
  createdBySignature?: string | null | undefined;
620
659
  createdAtLocation?: string | null | undefined;
621
660
  annotation?: Record<string, string | number | boolean | {
622
661
  type: string;
623
- filename: string;
662
+ path: string;
624
663
  originalFilename: string;
625
664
  } | {
626
665
  country: string;
@@ -634,8 +673,8 @@ export declare const Draft: z.ZodObject<{
634
673
  street?: string | null | undefined;
635
674
  zipCode?: string | null | undefined;
636
675
  } | {
637
- firstname: string;
638
- surname: string;
676
+ firstname?: string | null | undefined;
677
+ surname?: string | null | undefined;
639
678
  middlename?: string | null | undefined;
640
679
  } | {
641
680
  country: string;
@@ -657,41 +696,53 @@ export declare const Draft: z.ZodObject<{
657
696
  } | {
658
697
  type: string;
659
698
  option: string;
660
- filename: string;
699
+ path: string;
661
700
  originalFilename: string;
662
- }[] | [string, string] | null | undefined> | null | undefined;
701
+ }[] | {
702
+ start: string;
703
+ end: string;
704
+ } | null | undefined> | null | undefined;
663
705
  originalActionId?: string | null | undefined;
664
706
  };
665
707
  }>;
666
708
  export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
667
709
  eventId: z.ZodBranded<z.ZodString, "UUID">;
668
710
  transactionId: z.ZodString;
669
- 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
- filename: z.ZodString;
711
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
712
+ start: z.ZodString;
713
+ end: z.ZodString;
714
+ }, "strip", z.ZodTypeAny, {
715
+ start: string;
716
+ end: string;
717
+ }, {
718
+ start: string;
719
+ end: string;
720
+ }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
721
+ path: z.ZodEffects<z.ZodString, string, string>;
671
722
  originalFilename: z.ZodString;
672
723
  type: z.ZodString;
673
724
  }, "strip", z.ZodTypeAny, {
674
725
  type: string;
675
- filename: string;
726
+ path: string;
676
727
  originalFilename: string;
677
728
  }, {
678
729
  type: string;
679
- filename: string;
730
+ path: string;
680
731
  originalFilename: string;
681
732
  }>, z.ZodArray<z.ZodObject<{
682
- filename: z.ZodString;
733
+ path: z.ZodEffects<z.ZodString, string, string>;
683
734
  originalFilename: z.ZodString;
684
735
  type: z.ZodString;
685
736
  option: z.ZodString;
686
737
  }, "strip", z.ZodTypeAny, {
687
738
  type: string;
688
739
  option: string;
689
- filename: string;
740
+ path: string;
690
741
  originalFilename: string;
691
742
  }, {
692
743
  type: string;
693
744
  option: string;
694
- filename: string;
745
+ path: string;
695
746
  originalFilename: string;
696
747
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
697
748
  country: z.ZodString;
@@ -780,44 +831,53 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
780
831
  addressLine3?: string | null | undefined;
781
832
  postcodeOrZip?: string | null | undefined;
782
833
  }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
783
- firstname: z.ZodString;
784
- surname: z.ZodString;
834
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
835
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
785
836
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
786
837
  }, "strip", z.ZodTypeAny, {
787
- firstname: string;
788
- surname: string;
838
+ firstname?: string | null | undefined;
839
+ surname?: string | null | undefined;
789
840
  middlename?: string | null | undefined;
790
841
  }, {
791
- firstname: string;
792
- surname: string;
842
+ firstname?: string | null | undefined;
843
+ surname?: string | null | undefined;
793
844
  middlename?: string | null | undefined;
794
845
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
795
- 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<{
796
- filename: z.ZodString;
846
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
847
+ start: z.ZodString;
848
+ end: z.ZodString;
849
+ }, "strip", z.ZodTypeAny, {
850
+ start: string;
851
+ end: string;
852
+ }, {
853
+ start: string;
854
+ end: string;
855
+ }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
856
+ path: z.ZodEffects<z.ZodString, string, string>;
797
857
  originalFilename: z.ZodString;
798
858
  type: z.ZodString;
799
859
  }, "strip", z.ZodTypeAny, {
800
860
  type: string;
801
- filename: string;
861
+ path: string;
802
862
  originalFilename: string;
803
863
  }, {
804
864
  type: string;
805
- filename: string;
865
+ path: string;
806
866
  originalFilename: string;
807
867
  }>, z.ZodArray<z.ZodObject<{
808
- filename: z.ZodString;
868
+ path: z.ZodEffects<z.ZodString, string, string>;
809
869
  originalFilename: z.ZodString;
810
870
  type: z.ZodString;
811
871
  option: z.ZodString;
812
872
  }, "strip", z.ZodTypeAny, {
813
873
  type: string;
814
874
  option: string;
815
- filename: string;
875
+ path: string;
816
876
  originalFilename: string;
817
877
  }, {
818
878
  type: string;
819
879
  option: string;
820
- filename: string;
880
+ path: string;
821
881
  originalFilename: string;
822
882
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
823
883
  country: z.ZodString;
@@ -906,16 +966,16 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
906
966
  addressLine3?: string | null | undefined;
907
967
  postcodeOrZip?: string | null | undefined;
908
968
  }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
909
- firstname: z.ZodString;
910
- surname: z.ZodString;
969
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
970
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
911
971
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
912
972
  }, "strip", z.ZodTypeAny, {
913
- firstname: string;
914
- surname: string;
973
+ firstname?: string | null | undefined;
974
+ surname?: string | null | undefined;
915
975
  middlename?: string | null | undefined;
916
976
  }, {
917
- firstname: string;
918
- surname: string;
977
+ firstname?: string | null | undefined;
978
+ surname?: string | null | undefined;
919
979
  middlename?: string | null | undefined;
920
980
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
921
981
  originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
@@ -924,12 +984,12 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
924
984
  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"]>;
925
985
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
926
986
  }>, "strip", z.ZodTypeAny, {
927
- 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";
987
+ type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
928
988
  status: "Rejected" | "Requested" | "Accepted";
929
989
  transactionId: string;
930
990
  declaration: Record<string, string | number | boolean | {
931
991
  type: string;
932
- filename: string;
992
+ path: string;
933
993
  originalFilename: string;
934
994
  } | {
935
995
  country: string;
@@ -943,8 +1003,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
943
1003
  street?: string | null | undefined;
944
1004
  zipCode?: string | null | undefined;
945
1005
  } | {
946
- firstname: string;
947
- surname: string;
1006
+ firstname?: string | null | undefined;
1007
+ surname?: string | null | undefined;
948
1008
  middlename?: string | null | undefined;
949
1009
  } | {
950
1010
  country: string;
@@ -966,13 +1026,16 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
966
1026
  } | {
967
1027
  type: string;
968
1028
  option: string;
969
- filename: string;
1029
+ path: string;
970
1030
  originalFilename: string;
971
- }[] | [string, string] | null | undefined>;
1031
+ }[] | {
1032
+ start: string;
1033
+ end: string;
1034
+ } | null | undefined>;
972
1035
  eventId: string & z.BRAND<"UUID">;
973
1036
  annotation?: Record<string, string | number | boolean | {
974
1037
  type: string;
975
- filename: string;
1038
+ path: string;
976
1039
  originalFilename: string;
977
1040
  } | {
978
1041
  country: string;
@@ -986,8 +1049,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
986
1049
  street?: string | null | undefined;
987
1050
  zipCode?: string | null | undefined;
988
1051
  } | {
989
- firstname: string;
990
- surname: string;
1052
+ firstname?: string | null | undefined;
1053
+ surname?: string | null | undefined;
991
1054
  middlename?: string | null | undefined;
992
1055
  } | {
993
1056
  country: string;
@@ -1009,19 +1072,22 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
1009
1072
  } | {
1010
1073
  type: string;
1011
1074
  option: string;
1012
- filename: string;
1075
+ path: string;
1013
1076
  originalFilename: string;
1014
- }[] | [string, string] | null | undefined> | undefined;
1077
+ }[] | {
1078
+ start: string;
1079
+ end: string;
1080
+ } | null | undefined> | undefined;
1015
1081
  originalActionId?: (string & z.BRAND<"UUID">) | undefined;
1016
1082
  keepAssignment?: boolean | undefined;
1017
1083
  }, {
1018
- 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";
1084
+ type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
1019
1085
  status: "Rejected" | "Requested" | "Accepted";
1020
1086
  transactionId: string;
1021
1087
  eventId: string;
1022
1088
  declaration?: Record<string, string | number | boolean | {
1023
1089
  type: string;
1024
- filename: string;
1090
+ path: string;
1025
1091
  originalFilename: string;
1026
1092
  } | {
1027
1093
  country: string;
@@ -1035,8 +1101,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
1035
1101
  street?: string | null | undefined;
1036
1102
  zipCode?: string | null | undefined;
1037
1103
  } | {
1038
- firstname: string;
1039
- surname: string;
1104
+ firstname?: string | null | undefined;
1105
+ surname?: string | null | undefined;
1040
1106
  middlename?: string | null | undefined;
1041
1107
  } | {
1042
1108
  country: string;
@@ -1058,12 +1124,15 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
1058
1124
  } | {
1059
1125
  type: string;
1060
1126
  option: string;
1061
- filename: string;
1127
+ path: string;
1062
1128
  originalFilename: string;
1063
- }[] | [string, string] | null | undefined> | undefined;
1129
+ }[] | {
1130
+ start: string;
1131
+ end: string;
1132
+ } | null | undefined> | undefined;
1064
1133
  annotation?: Record<string, string | number | boolean | {
1065
1134
  type: string;
1066
- filename: string;
1135
+ path: string;
1067
1136
  originalFilename: string;
1068
1137
  } | {
1069
1138
  country: string;
@@ -1077,8 +1146,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
1077
1146
  street?: string | null | undefined;
1078
1147
  zipCode?: string | null | undefined;
1079
1148
  } | {
1080
- firstname: string;
1081
- surname: string;
1149
+ firstname?: string | null | undefined;
1150
+ surname?: string | null | undefined;
1082
1151
  middlename?: string | null | undefined;
1083
1152
  } | {
1084
1153
  country: string;
@@ -1100,9 +1169,12 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
1100
1169
  } | {
1101
1170
  type: string;
1102
1171
  option: string;
1103
- filename: string;
1172
+ path: string;
1104
1173
  originalFilename: string;
1105
- }[] | [string, string] | null | undefined> | undefined;
1174
+ }[] | {
1175
+ start: string;
1176
+ end: string;
1177
+ } | null | undefined> | undefined;
1106
1178
  originalActionId?: string | undefined;
1107
1179
  keepAssignment?: boolean | undefined;
1108
1180
  }>;