@opencrvs/toolkit 1.8.1-rc.a372970 → 1.8.1-rc.a9d9f0d

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 (47) hide show
  1. package/dist/commons/api/router.d.ts +5951 -5078
  2. package/dist/commons/conditionals/conditionals.d.ts +9 -13
  3. package/dist/commons/conditionals/validate.d.ts +25 -7
  4. package/dist/commons/events/ActionConfig.d.ts +120964 -1729
  5. package/dist/commons/events/ActionDocument.d.ts +5425 -1299
  6. package/dist/commons/events/ActionInput.d.ts +3267 -1025
  7. package/dist/commons/events/ActionType.d.ts +10 -1
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +1300 -22
  9. package/dist/commons/events/CompositeFieldValue.d.ts +40 -9
  10. package/dist/commons/events/Constants.d.ts +3 -0
  11. package/dist/commons/events/CountryConfigQueryInput.d.ts +4132 -0
  12. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  13. package/dist/commons/events/Draft.d.ts +288 -97
  14. package/dist/commons/events/EventConfig.d.ts +54890 -1357
  15. package/dist/commons/events/EventDocument.d.ts +2765 -833
  16. package/dist/commons/events/EventIndex.d.ts +2350 -29
  17. package/dist/commons/events/EventMetadata.d.ts +347 -47
  18. package/dist/commons/events/FieldConfig.d.ts +6985 -1278
  19. package/dist/commons/events/FieldType.d.ts +8 -3
  20. package/dist/commons/events/FieldTypeMapping.d.ts +161 -73
  21. package/dist/commons/events/FieldValue.d.ts +91 -20
  22. package/dist/commons/events/FormConfig.d.ts +56556 -522
  23. package/dist/commons/events/PageConfig.d.ts +14043 -209
  24. package/dist/commons/events/SummaryConfig.d.ts +93 -42
  25. package/dist/commons/events/User.d.ts +34 -2
  26. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  27. package/dist/commons/events/WorkqueueConfig.d.ts +8240 -20
  28. package/dist/commons/events/defineConfig.d.ts +8628 -77
  29. package/dist/commons/events/event.d.ts +108 -0
  30. package/dist/commons/events/field.d.ts +108 -0
  31. package/dist/commons/events/index.d.ts +8 -0
  32. package/dist/commons/events/scopes.d.ts +45 -0
  33. package/dist/commons/events/serializer.d.ts +2 -0
  34. package/dist/commons/events/test.utils.d.ts +210 -90
  35. package/dist/commons/events/transactions.d.ts +1 -1
  36. package/dist/commons/events/utils.d.ts +15612 -88
  37. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  38. package/dist/conditionals/index.js +69 -58
  39. package/dist/events/index.js +4840 -1798
  40. package/dist/scopes/index.d.ts +184 -7
  41. package/dist/scopes/index.js +140 -40
  42. package/package.json +4 -3
  43. package/tsconfig.json +1 -1
  44. package/dist/commons/conditionals/conditionals.test.d.ts +0 -2
  45. package/dist/commons/conditionals/validate-address.test.d.ts +0 -2
  46. package/dist/commons/conditionals/validate.test.d.ts +0 -2
  47. package/dist/commons/events/utils.test.d.ts +0 -2
@@ -1,39 +1,53 @@
1
1
  import { z } from 'zod';
2
2
  export declare const Draft: z.ZodObject<{
3
- id: z.ZodString;
4
- eventId: z.ZodString;
3
+ id: z.ZodBranded<z.ZodString, "UUID">;
4
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
5
5
  transactionId: z.ZodString;
6
6
  createdAt: z.ZodString;
7
7
  action: z.ZodObject<Omit<z.objectUtil.extendShape<{
8
- id: z.ZodString;
8
+ id: z.ZodBranded<z.ZodString, "UUID">;
9
+ transactionId: z.ZodString;
10
+ createdByUserType: z.ZodEnum<["user", "system"]>;
9
11
  createdAt: z.ZodString;
10
12
  createdBy: z.ZodString;
11
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12
- filename: z.ZodString;
13
+ createdByRole: z.ZodString;
14
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
16
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.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>;
13
27
  originalFilename: z.ZodString;
14
28
  type: z.ZodString;
15
29
  }, "strip", z.ZodTypeAny, {
16
30
  type: string;
17
- filename: string;
31
+ path: string;
18
32
  originalFilename: string;
19
33
  }, {
20
34
  type: string;
21
- filename: string;
35
+ path: string;
22
36
  originalFilename: string;
23
37
  }>, z.ZodArray<z.ZodObject<{
24
- filename: z.ZodString;
38
+ path: z.ZodEffects<z.ZodString, string, string>;
25
39
  originalFilename: z.ZodString;
26
40
  type: z.ZodString;
27
41
  option: z.ZodString;
28
42
  }, "strip", z.ZodTypeAny, {
29
43
  type: string;
30
44
  option: string;
31
- filename: string;
45
+ path: string;
32
46
  originalFilename: string;
33
47
  }, {
34
48
  type: string;
35
49
  option: string;
36
- filename: string;
50
+ path: string;
37
51
  originalFilename: string;
38
52
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
39
53
  country: z.ZodString;
@@ -121,33 +135,54 @@ export declare const Draft: z.ZodObject<{
121
135
  addressLine2?: string | null | undefined;
122
136
  addressLine3?: string | null | undefined;
123
137
  postcodeOrZip?: string | null | undefined;
124
- }>]>>;
125
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
126
- filename: z.ZodString;
138
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
139
+ firstname: z.ZodString;
140
+ surname: z.ZodString;
141
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
142
+ }, "strip", z.ZodTypeAny, {
143
+ firstname: string;
144
+ surname: string;
145
+ middlename?: string | null | undefined;
146
+ }, {
147
+ firstname: string;
148
+ surname: string;
149
+ middlename?: string | null | undefined;
150
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
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>;
127
162
  originalFilename: z.ZodString;
128
163
  type: z.ZodString;
129
164
  }, "strip", z.ZodTypeAny, {
130
165
  type: string;
131
- filename: string;
166
+ path: string;
132
167
  originalFilename: string;
133
168
  }, {
134
169
  type: string;
135
- filename: string;
170
+ path: string;
136
171
  originalFilename: string;
137
172
  }>, z.ZodArray<z.ZodObject<{
138
- filename: z.ZodString;
173
+ path: z.ZodEffects<z.ZodString, string, string>;
139
174
  originalFilename: z.ZodString;
140
175
  type: z.ZodString;
141
176
  option: z.ZodString;
142
177
  }, "strip", z.ZodTypeAny, {
143
178
  type: string;
144
179
  option: string;
145
- filename: string;
180
+ path: string;
146
181
  originalFilename: string;
147
182
  }, {
148
183
  type: string;
149
184
  option: string;
150
- filename: string;
185
+ path: string;
151
186
  originalFilename: string;
152
187
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
153
188
  country: z.ZodString;
@@ -235,20 +270,34 @@ export declare const Draft: z.ZodObject<{
235
270
  addressLine2?: string | null | undefined;
236
271
  addressLine3?: string | null | undefined;
237
272
  postcodeOrZip?: string | null | undefined;
238
- }>]>>>;
239
- createdAtLocation: z.ZodString;
273
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
274
+ firstname: z.ZodString;
275
+ surname: z.ZodString;
276
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
277
+ }, "strip", z.ZodTypeAny, {
278
+ firstname: string;
279
+ surname: string;
280
+ middlename?: string | null | undefined;
281
+ }, {
282
+ firstname: string;
283
+ surname: string;
284
+ middlename?: string | null | undefined;
285
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
240
286
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
241
- originalActionId: z.ZodOptional<z.ZodString>;
287
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
242
288
  }, {
243
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"]>;
244
290
  }>, "id">, "strip", z.ZodTypeAny, {
245
- 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";
246
292
  status: "Rejected" | "Requested" | "Accepted";
293
+ transactionId: string;
294
+ createdByUserType: "system" | "user";
247
295
  createdAt: string;
248
296
  createdBy: string;
297
+ createdByRole: string;
249
298
  declaration: Record<string, string | number | boolean | {
250
299
  type: string;
251
- filename: string;
300
+ path: string;
252
301
  originalFilename: string;
253
302
  } | {
254
303
  country: string;
@@ -261,6 +310,10 @@ export declare const Draft: z.ZodObject<{
261
310
  residentialArea?: string | null | undefined;
262
311
  street?: string | null | undefined;
263
312
  zipCode?: string | null | undefined;
313
+ } | {
314
+ firstname: string;
315
+ surname: string;
316
+ middlename?: string | null | undefined;
264
317
  } | {
265
318
  country: string;
266
319
  district: string;
@@ -281,13 +334,17 @@ export declare const Draft: z.ZodObject<{
281
334
  } | {
282
335
  type: string;
283
336
  option: string;
284
- filename: string;
337
+ path: string;
285
338
  originalFilename: string;
286
- }[] | undefined>;
287
- createdAtLocation: string;
339
+ }[] | {
340
+ start: string;
341
+ end: string;
342
+ } | null | undefined>;
343
+ createdBySignature?: string | null | undefined;
344
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
288
345
  annotation?: Record<string, string | number | boolean | {
289
346
  type: string;
290
- filename: string;
347
+ path: string;
291
348
  originalFilename: string;
292
349
  } | {
293
350
  country: string;
@@ -300,6 +357,10 @@ export declare const Draft: z.ZodObject<{
300
357
  residentialArea?: string | null | undefined;
301
358
  street?: string | null | undefined;
302
359
  zipCode?: string | null | undefined;
360
+ } | {
361
+ firstname: string;
362
+ surname: string;
363
+ middlename?: string | null | undefined;
303
364
  } | {
304
365
  country: string;
305
366
  district: string;
@@ -320,18 +381,24 @@ export declare const Draft: z.ZodObject<{
320
381
  } | {
321
382
  type: string;
322
383
  option: string;
323
- filename: string;
384
+ path: string;
324
385
  originalFilename: string;
325
- }[] | undefined> | undefined;
326
- originalActionId?: string | undefined;
386
+ }[] | {
387
+ start: string;
388
+ end: string;
389
+ } | null | undefined> | null | undefined;
390
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
327
391
  }, {
328
- 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";
329
393
  status: "Rejected" | "Requested" | "Accepted";
394
+ transactionId: string;
395
+ createdByUserType: "system" | "user";
330
396
  createdAt: string;
331
397
  createdBy: string;
398
+ createdByRole: string;
332
399
  declaration: Record<string, string | number | boolean | {
333
400
  type: string;
334
- filename: string;
401
+ path: string;
335
402
  originalFilename: string;
336
403
  } | {
337
404
  country: string;
@@ -344,6 +411,10 @@ export declare const Draft: z.ZodObject<{
344
411
  residentialArea?: string | null | undefined;
345
412
  street?: string | null | undefined;
346
413
  zipCode?: string | null | undefined;
414
+ } | {
415
+ firstname: string;
416
+ surname: string;
417
+ middlename?: string | null | undefined;
347
418
  } | {
348
419
  country: string;
349
420
  district: string;
@@ -364,13 +435,17 @@ export declare const Draft: z.ZodObject<{
364
435
  } | {
365
436
  type: string;
366
437
  option: string;
367
- filename: string;
438
+ path: string;
368
439
  originalFilename: string;
369
- }[] | undefined>;
370
- createdAtLocation: string;
440
+ }[] | {
441
+ start: string;
442
+ end: string;
443
+ } | null | undefined>;
444
+ createdBySignature?: string | null | undefined;
445
+ createdAtLocation?: string | null | undefined;
371
446
  annotation?: Record<string, string | number | boolean | {
372
447
  type: string;
373
- filename: string;
448
+ path: string;
374
449
  originalFilename: string;
375
450
  } | {
376
451
  country: string;
@@ -383,6 +458,10 @@ export declare const Draft: z.ZodObject<{
383
458
  residentialArea?: string | null | undefined;
384
459
  street?: string | null | undefined;
385
460
  zipCode?: string | null | undefined;
461
+ } | {
462
+ firstname: string;
463
+ surname: string;
464
+ middlename?: string | null | undefined;
386
465
  } | {
387
466
  country: string;
388
467
  district: string;
@@ -403,24 +482,30 @@ export declare const Draft: z.ZodObject<{
403
482
  } | {
404
483
  type: string;
405
484
  option: string;
406
- filename: string;
485
+ path: string;
407
486
  originalFilename: string;
408
- }[] | undefined> | undefined;
409
- originalActionId?: string | undefined;
487
+ }[] | {
488
+ start: string;
489
+ end: string;
490
+ } | null | undefined> | null | undefined;
491
+ originalActionId?: string | null | undefined;
410
492
  }>;
411
493
  }, "strip", z.ZodTypeAny, {
412
- id: string;
413
- createdAt: string;
414
- eventId: string;
494
+ id: string & z.BRAND<"UUID">;
415
495
  transactionId: string;
496
+ createdAt: string;
497
+ eventId: string & z.BRAND<"UUID">;
416
498
  action: {
417
- 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";
418
500
  status: "Rejected" | "Requested" | "Accepted";
501
+ transactionId: string;
502
+ createdByUserType: "system" | "user";
419
503
  createdAt: string;
420
504
  createdBy: string;
505
+ createdByRole: string;
421
506
  declaration: Record<string, string | number | boolean | {
422
507
  type: string;
423
- filename: string;
508
+ path: string;
424
509
  originalFilename: string;
425
510
  } | {
426
511
  country: string;
@@ -433,6 +518,10 @@ export declare const Draft: z.ZodObject<{
433
518
  residentialArea?: string | null | undefined;
434
519
  street?: string | null | undefined;
435
520
  zipCode?: string | null | undefined;
521
+ } | {
522
+ firstname: string;
523
+ surname: string;
524
+ middlename?: string | null | undefined;
436
525
  } | {
437
526
  country: string;
438
527
  district: string;
@@ -453,13 +542,17 @@ export declare const Draft: z.ZodObject<{
453
542
  } | {
454
543
  type: string;
455
544
  option: string;
456
- filename: string;
545
+ path: string;
457
546
  originalFilename: string;
458
- }[] | undefined>;
459
- createdAtLocation: string;
547
+ }[] | {
548
+ start: string;
549
+ end: string;
550
+ } | null | undefined>;
551
+ createdBySignature?: string | null | undefined;
552
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
460
553
  annotation?: Record<string, string | number | boolean | {
461
554
  type: string;
462
- filename: string;
555
+ path: string;
463
556
  originalFilename: string;
464
557
  } | {
465
558
  country: string;
@@ -472,6 +565,10 @@ export declare const Draft: z.ZodObject<{
472
565
  residentialArea?: string | null | undefined;
473
566
  street?: string | null | undefined;
474
567
  zipCode?: string | null | undefined;
568
+ } | {
569
+ firstname: string;
570
+ surname: string;
571
+ middlename?: string | null | undefined;
475
572
  } | {
476
573
  country: string;
477
574
  district: string;
@@ -492,24 +589,30 @@ export declare const Draft: z.ZodObject<{
492
589
  } | {
493
590
  type: string;
494
591
  option: string;
495
- filename: string;
592
+ path: string;
496
593
  originalFilename: string;
497
- }[] | undefined> | undefined;
498
- originalActionId?: string | undefined;
594
+ }[] | {
595
+ start: string;
596
+ end: string;
597
+ } | null | undefined> | null | undefined;
598
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
499
599
  };
500
600
  }, {
501
601
  id: string;
602
+ transactionId: string;
502
603
  createdAt: string;
503
604
  eventId: string;
504
- transactionId: string;
505
605
  action: {
506
- 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";
507
607
  status: "Rejected" | "Requested" | "Accepted";
608
+ transactionId: string;
609
+ createdByUserType: "system" | "user";
508
610
  createdAt: string;
509
611
  createdBy: string;
612
+ createdByRole: string;
510
613
  declaration: Record<string, string | number | boolean | {
511
614
  type: string;
512
- filename: string;
615
+ path: string;
513
616
  originalFilename: string;
514
617
  } | {
515
618
  country: string;
@@ -522,6 +625,10 @@ export declare const Draft: z.ZodObject<{
522
625
  residentialArea?: string | null | undefined;
523
626
  street?: string | null | undefined;
524
627
  zipCode?: string | null | undefined;
628
+ } | {
629
+ firstname: string;
630
+ surname: string;
631
+ middlename?: string | null | undefined;
525
632
  } | {
526
633
  country: string;
527
634
  district: string;
@@ -542,13 +649,17 @@ export declare const Draft: z.ZodObject<{
542
649
  } | {
543
650
  type: string;
544
651
  option: string;
545
- filename: string;
652
+ path: string;
546
653
  originalFilename: string;
547
- }[] | undefined>;
548
- createdAtLocation: string;
654
+ }[] | {
655
+ start: string;
656
+ end: string;
657
+ } | null | undefined>;
658
+ createdBySignature?: string | null | undefined;
659
+ createdAtLocation?: string | null | undefined;
549
660
  annotation?: Record<string, string | number | boolean | {
550
661
  type: string;
551
- filename: string;
662
+ path: string;
552
663
  originalFilename: string;
553
664
  } | {
554
665
  country: string;
@@ -561,6 +672,10 @@ export declare const Draft: z.ZodObject<{
561
672
  residentialArea?: string | null | undefined;
562
673
  street?: string | null | undefined;
563
674
  zipCode?: string | null | undefined;
675
+ } | {
676
+ firstname: string;
677
+ surname: string;
678
+ middlename?: string | null | undefined;
564
679
  } | {
565
680
  country: string;
566
681
  district: string;
@@ -581,41 +696,53 @@ export declare const Draft: z.ZodObject<{
581
696
  } | {
582
697
  type: string;
583
698
  option: string;
584
- filename: string;
699
+ path: string;
585
700
  originalFilename: string;
586
- }[] | undefined> | undefined;
587
- originalActionId?: string | undefined;
701
+ }[] | {
702
+ start: string;
703
+ end: string;
704
+ } | null | undefined> | null | undefined;
705
+ originalActionId?: string | null | undefined;
588
706
  };
589
707
  }>;
590
708
  export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
591
- eventId: z.ZodString;
709
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
592
710
  transactionId: z.ZodString;
593
- declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
594
- 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>;
595
722
  originalFilename: z.ZodString;
596
723
  type: z.ZodString;
597
724
  }, "strip", z.ZodTypeAny, {
598
725
  type: string;
599
- filename: string;
726
+ path: string;
600
727
  originalFilename: string;
601
728
  }, {
602
729
  type: string;
603
- filename: string;
730
+ path: string;
604
731
  originalFilename: string;
605
732
  }>, z.ZodArray<z.ZodObject<{
606
- filename: z.ZodString;
733
+ path: z.ZodEffects<z.ZodString, string, string>;
607
734
  originalFilename: z.ZodString;
608
735
  type: z.ZodString;
609
736
  option: z.ZodString;
610
737
  }, "strip", z.ZodTypeAny, {
611
738
  type: string;
612
739
  option: string;
613
- filename: string;
740
+ path: string;
614
741
  originalFilename: string;
615
742
  }, {
616
743
  type: string;
617
744
  option: string;
618
- filename: string;
745
+ path: string;
619
746
  originalFilename: string;
620
747
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
621
748
  country: z.ZodString;
@@ -703,33 +830,54 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
703
830
  addressLine2?: string | null | undefined;
704
831
  addressLine3?: string | null | undefined;
705
832
  postcodeOrZip?: string | null | undefined;
706
- }>]>>>;
707
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
708
- filename: z.ZodString;
833
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
834
+ firstname: z.ZodString;
835
+ surname: z.ZodString;
836
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
837
+ }, "strip", z.ZodTypeAny, {
838
+ firstname: string;
839
+ surname: string;
840
+ middlename?: string | null | undefined;
841
+ }, {
842
+ firstname: string;
843
+ surname: string;
844
+ middlename?: string | null | undefined;
845
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
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>;
709
857
  originalFilename: z.ZodString;
710
858
  type: z.ZodString;
711
859
  }, "strip", z.ZodTypeAny, {
712
860
  type: string;
713
- filename: string;
861
+ path: string;
714
862
  originalFilename: string;
715
863
  }, {
716
864
  type: string;
717
- filename: string;
865
+ path: string;
718
866
  originalFilename: string;
719
867
  }>, z.ZodArray<z.ZodObject<{
720
- filename: z.ZodString;
868
+ path: z.ZodEffects<z.ZodString, string, string>;
721
869
  originalFilename: z.ZodString;
722
870
  type: z.ZodString;
723
871
  option: z.ZodString;
724
872
  }, "strip", z.ZodTypeAny, {
725
873
  type: string;
726
874
  option: string;
727
- filename: string;
875
+ path: string;
728
876
  originalFilename: string;
729
877
  }, {
730
878
  type: string;
731
879
  option: string;
732
- filename: string;
880
+ path: string;
733
881
  originalFilename: string;
734
882
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
735
883
  country: z.ZodString;
@@ -817,16 +965,31 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
817
965
  addressLine2?: string | null | undefined;
818
966
  addressLine3?: string | null | undefined;
819
967
  postcodeOrZip?: string | null | undefined;
820
- }>]>>>;
821
- originalActionId: z.ZodOptional<z.ZodString>;
968
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
969
+ firstname: z.ZodString;
970
+ surname: z.ZodString;
971
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
972
+ }, "strip", z.ZodTypeAny, {
973
+ firstname: string;
974
+ surname: string;
975
+ middlename?: string | null | undefined;
976
+ }, {
977
+ firstname: string;
978
+ surname: string;
979
+ middlename?: string | null | undefined;
980
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
981
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
822
982
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
823
983
  }, {
824
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"]>;
985
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
825
986
  }>, "strip", z.ZodTypeAny, {
826
- 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";
988
+ status: "Rejected" | "Requested" | "Accepted";
989
+ transactionId: string;
827
990
  declaration: Record<string, string | number | boolean | {
828
991
  type: string;
829
- filename: string;
992
+ path: string;
830
993
  originalFilename: string;
831
994
  } | {
832
995
  country: string;
@@ -839,6 +1002,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
839
1002
  residentialArea?: string | null | undefined;
840
1003
  street?: string | null | undefined;
841
1004
  zipCode?: string | null | undefined;
1005
+ } | {
1006
+ firstname: string;
1007
+ surname: string;
1008
+ middlename?: string | null | undefined;
842
1009
  } | {
843
1010
  country: string;
844
1011
  district: string;
@@ -859,14 +1026,16 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
859
1026
  } | {
860
1027
  type: string;
861
1028
  option: string;
862
- filename: string;
1029
+ path: string;
863
1030
  originalFilename: string;
864
- }[] | undefined>;
865
- eventId: string;
866
- transactionId: string;
1031
+ }[] | {
1032
+ start: string;
1033
+ end: string;
1034
+ } | null | undefined>;
1035
+ eventId: string & z.BRAND<"UUID">;
867
1036
  annotation?: Record<string, string | number | boolean | {
868
1037
  type: string;
869
- filename: string;
1038
+ path: string;
870
1039
  originalFilename: string;
871
1040
  } | {
872
1041
  country: string;
@@ -879,6 +1048,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
879
1048
  residentialArea?: string | null | undefined;
880
1049
  street?: string | null | undefined;
881
1050
  zipCode?: string | null | undefined;
1051
+ } | {
1052
+ firstname: string;
1053
+ surname: string;
1054
+ middlename?: string | null | undefined;
882
1055
  } | {
883
1056
  country: string;
884
1057
  district: string;
@@ -899,18 +1072,22 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
899
1072
  } | {
900
1073
  type: string;
901
1074
  option: string;
902
- filename: string;
1075
+ path: string;
903
1076
  originalFilename: string;
904
- }[] | undefined> | undefined;
905
- originalActionId?: string | undefined;
1077
+ }[] | {
1078
+ start: string;
1079
+ end: string;
1080
+ } | null | undefined> | undefined;
1081
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
906
1082
  keepAssignment?: boolean | undefined;
907
1083
  }, {
908
- 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";
909
- eventId: string;
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";
1085
+ status: "Rejected" | "Requested" | "Accepted";
910
1086
  transactionId: string;
1087
+ eventId: string;
911
1088
  declaration?: Record<string, string | number | boolean | {
912
1089
  type: string;
913
- filename: string;
1090
+ path: string;
914
1091
  originalFilename: string;
915
1092
  } | {
916
1093
  country: string;
@@ -923,6 +1100,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
923
1100
  residentialArea?: string | null | undefined;
924
1101
  street?: string | null | undefined;
925
1102
  zipCode?: string | null | undefined;
1103
+ } | {
1104
+ firstname: string;
1105
+ surname: string;
1106
+ middlename?: string | null | undefined;
926
1107
  } | {
927
1108
  country: string;
928
1109
  district: string;
@@ -943,12 +1124,15 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
943
1124
  } | {
944
1125
  type: string;
945
1126
  option: string;
946
- filename: string;
1127
+ path: string;
947
1128
  originalFilename: string;
948
- }[] | undefined> | undefined;
1129
+ }[] | {
1130
+ start: string;
1131
+ end: string;
1132
+ } | null | undefined> | undefined;
949
1133
  annotation?: Record<string, string | number | boolean | {
950
1134
  type: string;
951
- filename: string;
1135
+ path: string;
952
1136
  originalFilename: string;
953
1137
  } | {
954
1138
  country: string;
@@ -961,6 +1145,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
961
1145
  residentialArea?: string | null | undefined;
962
1146
  street?: string | null | undefined;
963
1147
  zipCode?: string | null | undefined;
1148
+ } | {
1149
+ firstname: string;
1150
+ surname: string;
1151
+ middlename?: string | null | undefined;
964
1152
  } | {
965
1153
  country: string;
966
1154
  district: string;
@@ -981,9 +1169,12 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
981
1169
  } | {
982
1170
  type: string;
983
1171
  option: string;
984
- filename: string;
1172
+ path: string;
985
1173
  originalFilename: string;
986
- }[] | undefined> | undefined;
1174
+ }[] | {
1175
+ start: string;
1176
+ end: string;
1177
+ } | null | undefined> | undefined;
987
1178
  originalActionId?: string | undefined;
988
1179
  keepAssignment?: boolean | undefined;
989
1180
  }>;