@opencrvs/toolkit 1.8.0-rc.fcd89ec → 1.8.0-rc.fcf7cb3

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 (48) hide show
  1. package/dist/commons/api/router.d.ts +8046 -8610
  2. package/dist/commons/conditionals/conditionals.d.ts +8 -15
  3. package/dist/commons/conditionals/validate.d.ts +14 -0
  4. package/dist/commons/events/ActionConfig.d.ts +68541 -36072
  5. package/dist/commons/events/ActionDocument.d.ts +3961 -1227
  6. package/dist/commons/events/ActionInput.d.ts +3138 -966
  7. package/dist/commons/events/ActionType.d.ts +4 -0
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +414 -71
  9. package/dist/commons/events/CompositeFieldValue.d.ts +37 -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 +1 -2
  13. package/dist/commons/events/Draft.d.ts +271 -93
  14. package/dist/commons/events/EventConfig.d.ts +33783 -18386
  15. package/dist/commons/events/EventDocument.d.ts +2522 -816
  16. package/dist/commons/events/EventIndex.d.ts +1411 -313
  17. package/dist/commons/events/EventInput.d.ts +0 -13
  18. package/dist/commons/events/EventMetadata.d.ts +113 -76
  19. package/dist/commons/events/FieldConfig.d.ts +4017 -1558
  20. package/dist/commons/events/FieldType.d.ts +10 -1
  21. package/dist/commons/events/FieldTypeMapping.d.ts +149 -75
  22. package/dist/commons/events/FieldValue.d.ts +87 -20
  23. package/dist/commons/events/FormConfig.d.ts +18663 -8055
  24. package/dist/commons/events/PageConfig.d.ts +4601 -1945
  25. package/dist/commons/events/SummaryConfig.d.ts +0 -5
  26. package/dist/commons/events/User.d.ts +34 -7
  27. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  28. package/dist/commons/events/WorkqueueConfig.d.ts +7802 -308
  29. package/dist/commons/events/defineConfig.d.ts +3535 -860
  30. package/dist/commons/events/event.d.ts +21 -21
  31. package/dist/commons/events/field.d.ts +36 -10
  32. package/dist/commons/events/index.d.ts +5 -0
  33. package/dist/commons/events/scopes.d.ts +1 -2
  34. package/dist/commons/events/serializer.d.ts +2 -0
  35. package/dist/commons/events/test.utils.d.ts +206 -52
  36. package/dist/commons/events/transactions.d.ts +1 -1
  37. package/dist/commons/events/utils.d.ts +14324 -1570
  38. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  39. package/dist/conditionals/index.js +70 -62
  40. package/dist/events/index.js +3527 -1656
  41. package/dist/scopes/index.d.ts +96 -7
  42. package/dist/scopes/index.js +105 -26
  43. package/package.json +3 -3
  44. package/tsconfig.json +1 -1
  45. package/dist/commons/conditionals/conditionals.test.d.ts +0 -2
  46. package/dist/commons/conditionals/validate-address.test.d.ts +0 -2
  47. package/dist/commons/conditionals/validate.test.d.ts +0 -2
  48. package/dist/commons/events/utils.test.d.ts +0 -2
@@ -1,42 +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
9
  transactionId: z.ZodString;
10
+ createdByUserType: z.ZodEnum<["user", "system"]>;
10
11
  createdAt: z.ZodString;
11
12
  createdBy: z.ZodString;
12
13
  createdByRole: z.ZodString;
13
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
- 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<{
15
- filename: 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.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>;
16
27
  originalFilename: z.ZodString;
17
28
  type: z.ZodString;
18
29
  }, "strip", z.ZodTypeAny, {
19
30
  type: string;
20
- filename: string;
31
+ path: string;
21
32
  originalFilename: string;
22
33
  }, {
23
34
  type: string;
24
- filename: string;
35
+ path: string;
25
36
  originalFilename: string;
26
37
  }>, z.ZodArray<z.ZodObject<{
27
- filename: z.ZodString;
38
+ path: z.ZodEffects<z.ZodString, string, string>;
28
39
  originalFilename: z.ZodString;
29
40
  type: z.ZodString;
30
41
  option: z.ZodString;
31
42
  }, "strip", z.ZodTypeAny, {
32
43
  type: string;
33
44
  option: string;
34
- filename: string;
45
+ path: string;
35
46
  originalFilename: string;
36
47
  }, {
37
48
  type: string;
38
49
  option: string;
39
- filename: string;
50
+ path: string;
40
51
  originalFilename: string;
41
52
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
42
53
  country: z.ZodString;
@@ -124,33 +135,54 @@ export declare const Draft: z.ZodObject<{
124
135
  addressLine2?: string | null | undefined;
125
136
  addressLine3?: string | null | undefined;
126
137
  postcodeOrZip?: string | null | undefined;
127
- }>]>>;
128
- 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<{
129
- 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.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>;
130
162
  originalFilename: z.ZodString;
131
163
  type: z.ZodString;
132
164
  }, "strip", z.ZodTypeAny, {
133
165
  type: string;
134
- filename: string;
166
+ path: string;
135
167
  originalFilename: string;
136
168
  }, {
137
169
  type: string;
138
- filename: string;
170
+ path: string;
139
171
  originalFilename: string;
140
172
  }>, z.ZodArray<z.ZodObject<{
141
- filename: z.ZodString;
173
+ path: z.ZodEffects<z.ZodString, string, string>;
142
174
  originalFilename: z.ZodString;
143
175
  type: z.ZodString;
144
176
  option: z.ZodString;
145
177
  }, "strip", z.ZodTypeAny, {
146
178
  type: string;
147
179
  option: string;
148
- filename: string;
180
+ path: string;
149
181
  originalFilename: string;
150
182
  }, {
151
183
  type: string;
152
184
  option: string;
153
- filename: string;
185
+ path: string;
154
186
  originalFilename: string;
155
187
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
156
188
  country: z.ZodString;
@@ -238,21 +270,34 @@ export declare const Draft: z.ZodObject<{
238
270
  addressLine2?: string | null | undefined;
239
271
  addressLine3?: string | null | undefined;
240
272
  postcodeOrZip?: string | null | undefined;
241
- }>]>>>;
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]>]>>>>;
242
286
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
243
- originalActionId: z.ZodOptional<z.ZodString>;
287
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
244
288
  }, {
245
- 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"]>;
289
+ type: z.ZodEnum<["CREATE", "NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "DETECT_DUPLICATE", "REJECT", "MARKED_AS_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION", "READ", "ASSIGN", "UNASSIGN"]>;
246
290
  }>, "id">, "strip", z.ZodTypeAny, {
247
- 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: "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
248
292
  status: "Rejected" | "Requested" | "Accepted";
249
293
  transactionId: string;
294
+ createdByUserType: "system" | "user";
250
295
  createdAt: string;
251
296
  createdBy: string;
252
297
  createdByRole: string;
253
298
  declaration: Record<string, string | number | boolean | {
254
299
  type: string;
255
- filename: string;
300
+ path: string;
256
301
  originalFilename: string;
257
302
  } | {
258
303
  country: string;
@@ -265,6 +310,10 @@ export declare const Draft: z.ZodObject<{
265
310
  residentialArea?: string | null | undefined;
266
311
  street?: string | null | undefined;
267
312
  zipCode?: string | null | undefined;
313
+ } | {
314
+ firstname: string;
315
+ surname: string;
316
+ middlename?: string | null | undefined;
268
317
  } | {
269
318
  country: string;
270
319
  district: string;
@@ -285,13 +334,17 @@ export declare const Draft: z.ZodObject<{
285
334
  } | {
286
335
  type: string;
287
336
  option: string;
288
- filename: string;
337
+ path: string;
289
338
  originalFilename: string;
290
- }[] | [string, string] | undefined>;
291
- createdAtLocation?: string | null | undefined;
339
+ }[] | {
340
+ start: string;
341
+ end: string;
342
+ } | null | undefined>;
343
+ createdBySignature?: string | null | undefined;
344
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
292
345
  annotation?: Record<string, string | number | boolean | {
293
346
  type: string;
294
- filename: string;
347
+ path: string;
295
348
  originalFilename: string;
296
349
  } | {
297
350
  country: string;
@@ -304,6 +357,10 @@ export declare const Draft: z.ZodObject<{
304
357
  residentialArea?: string | null | undefined;
305
358
  street?: string | null | undefined;
306
359
  zipCode?: string | null | undefined;
360
+ } | {
361
+ firstname: string;
362
+ surname: string;
363
+ middlename?: string | null | undefined;
307
364
  } | {
308
365
  country: string;
309
366
  district: string;
@@ -324,20 +381,24 @@ export declare const Draft: z.ZodObject<{
324
381
  } | {
325
382
  type: string;
326
383
  option: string;
327
- filename: string;
384
+ path: string;
328
385
  originalFilename: string;
329
- }[] | [string, string] | undefined> | undefined;
330
- originalActionId?: string | undefined;
386
+ }[] | {
387
+ start: string;
388
+ end: string;
389
+ } | null | undefined> | null | undefined;
390
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
331
391
  }, {
332
- 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: "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
333
393
  status: "Rejected" | "Requested" | "Accepted";
334
394
  transactionId: string;
395
+ createdByUserType: "system" | "user";
335
396
  createdAt: string;
336
397
  createdBy: string;
337
398
  createdByRole: string;
338
399
  declaration: Record<string, string | number | boolean | {
339
400
  type: string;
340
- filename: string;
401
+ path: string;
341
402
  originalFilename: string;
342
403
  } | {
343
404
  country: string;
@@ -350,6 +411,10 @@ export declare const Draft: z.ZodObject<{
350
411
  residentialArea?: string | null | undefined;
351
412
  street?: string | null | undefined;
352
413
  zipCode?: string | null | undefined;
414
+ } | {
415
+ firstname: string;
416
+ surname: string;
417
+ middlename?: string | null | undefined;
353
418
  } | {
354
419
  country: string;
355
420
  district: string;
@@ -370,13 +435,17 @@ export declare const Draft: z.ZodObject<{
370
435
  } | {
371
436
  type: string;
372
437
  option: string;
373
- filename: string;
438
+ path: string;
374
439
  originalFilename: string;
375
- }[] | [string, string] | undefined>;
440
+ }[] | {
441
+ start: string;
442
+ end: string;
443
+ } | null | undefined>;
444
+ createdBySignature?: string | null | undefined;
376
445
  createdAtLocation?: string | null | undefined;
377
446
  annotation?: Record<string, string | number | boolean | {
378
447
  type: string;
379
- filename: string;
448
+ path: string;
380
449
  originalFilename: string;
381
450
  } | {
382
451
  country: string;
@@ -389,6 +458,10 @@ export declare const Draft: z.ZodObject<{
389
458
  residentialArea?: string | null | undefined;
390
459
  street?: string | null | undefined;
391
460
  zipCode?: string | null | undefined;
461
+ } | {
462
+ firstname: string;
463
+ surname: string;
464
+ middlename?: string | null | undefined;
392
465
  } | {
393
466
  country: string;
394
467
  district: string;
@@ -409,26 +482,30 @@ export declare const Draft: z.ZodObject<{
409
482
  } | {
410
483
  type: string;
411
484
  option: string;
412
- filename: string;
485
+ path: string;
413
486
  originalFilename: string;
414
- }[] | [string, string] | undefined> | undefined;
415
- originalActionId?: string | undefined;
487
+ }[] | {
488
+ start: string;
489
+ end: string;
490
+ } | null | undefined> | null | undefined;
491
+ originalActionId?: string | null | undefined;
416
492
  }>;
417
493
  }, "strip", z.ZodTypeAny, {
418
- id: string;
494
+ id: string & z.BRAND<"UUID">;
419
495
  transactionId: string;
420
496
  createdAt: string;
421
- eventId: string;
497
+ eventId: string & z.BRAND<"UUID">;
422
498
  action: {
423
- 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: "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
424
500
  status: "Rejected" | "Requested" | "Accepted";
425
501
  transactionId: string;
502
+ createdByUserType: "system" | "user";
426
503
  createdAt: string;
427
504
  createdBy: string;
428
505
  createdByRole: string;
429
506
  declaration: Record<string, string | number | boolean | {
430
507
  type: string;
431
- filename: string;
508
+ path: string;
432
509
  originalFilename: string;
433
510
  } | {
434
511
  country: string;
@@ -441,6 +518,10 @@ export declare const Draft: z.ZodObject<{
441
518
  residentialArea?: string | null | undefined;
442
519
  street?: string | null | undefined;
443
520
  zipCode?: string | null | undefined;
521
+ } | {
522
+ firstname: string;
523
+ surname: string;
524
+ middlename?: string | null | undefined;
444
525
  } | {
445
526
  country: string;
446
527
  district: string;
@@ -461,13 +542,17 @@ export declare const Draft: z.ZodObject<{
461
542
  } | {
462
543
  type: string;
463
544
  option: string;
464
- filename: string;
545
+ path: string;
465
546
  originalFilename: string;
466
- }[] | [string, string] | undefined>;
467
- createdAtLocation?: string | null | undefined;
547
+ }[] | {
548
+ start: string;
549
+ end: string;
550
+ } | null | undefined>;
551
+ createdBySignature?: string | null | undefined;
552
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
468
553
  annotation?: Record<string, string | number | boolean | {
469
554
  type: string;
470
- filename: string;
555
+ path: string;
471
556
  originalFilename: string;
472
557
  } | {
473
558
  country: string;
@@ -480,6 +565,10 @@ export declare const Draft: z.ZodObject<{
480
565
  residentialArea?: string | null | undefined;
481
566
  street?: string | null | undefined;
482
567
  zipCode?: string | null | undefined;
568
+ } | {
569
+ firstname: string;
570
+ surname: string;
571
+ middlename?: string | null | undefined;
483
572
  } | {
484
573
  country: string;
485
574
  district: string;
@@ -500,10 +589,13 @@ export declare const Draft: z.ZodObject<{
500
589
  } | {
501
590
  type: string;
502
591
  option: string;
503
- filename: string;
592
+ path: string;
504
593
  originalFilename: string;
505
- }[] | [string, string] | undefined> | undefined;
506
- originalActionId?: string | undefined;
594
+ }[] | {
595
+ start: string;
596
+ end: string;
597
+ } | null | undefined> | null | undefined;
598
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
507
599
  };
508
600
  }, {
509
601
  id: string;
@@ -511,15 +603,16 @@ export declare const Draft: z.ZodObject<{
511
603
  createdAt: string;
512
604
  eventId: string;
513
605
  action: {
514
- 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: "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
515
607
  status: "Rejected" | "Requested" | "Accepted";
516
608
  transactionId: string;
609
+ createdByUserType: "system" | "user";
517
610
  createdAt: string;
518
611
  createdBy: string;
519
612
  createdByRole: string;
520
613
  declaration: Record<string, string | number | boolean | {
521
614
  type: string;
522
- filename: string;
615
+ path: string;
523
616
  originalFilename: string;
524
617
  } | {
525
618
  country: string;
@@ -532,6 +625,10 @@ export declare const Draft: z.ZodObject<{
532
625
  residentialArea?: string | null | undefined;
533
626
  street?: string | null | undefined;
534
627
  zipCode?: string | null | undefined;
628
+ } | {
629
+ firstname: string;
630
+ surname: string;
631
+ middlename?: string | null | undefined;
535
632
  } | {
536
633
  country: string;
537
634
  district: string;
@@ -552,13 +649,17 @@ export declare const Draft: z.ZodObject<{
552
649
  } | {
553
650
  type: string;
554
651
  option: string;
555
- filename: string;
652
+ path: string;
556
653
  originalFilename: string;
557
- }[] | [string, string] | undefined>;
654
+ }[] | {
655
+ start: string;
656
+ end: string;
657
+ } | null | undefined>;
658
+ createdBySignature?: string | null | undefined;
558
659
  createdAtLocation?: string | null | undefined;
559
660
  annotation?: Record<string, string | number | boolean | {
560
661
  type: string;
561
- filename: string;
662
+ path: string;
562
663
  originalFilename: string;
563
664
  } | {
564
665
  country: string;
@@ -571,6 +672,10 @@ export declare const Draft: z.ZodObject<{
571
672
  residentialArea?: string | null | undefined;
572
673
  street?: string | null | undefined;
573
674
  zipCode?: string | null | undefined;
675
+ } | {
676
+ firstname: string;
677
+ surname: string;
678
+ middlename?: string | null | undefined;
574
679
  } | {
575
680
  country: string;
576
681
  district: string;
@@ -591,41 +696,53 @@ export declare const Draft: z.ZodObject<{
591
696
  } | {
592
697
  type: string;
593
698
  option: string;
594
- filename: string;
699
+ path: string;
595
700
  originalFilename: string;
596
- }[] | [string, string] | undefined> | undefined;
597
- originalActionId?: string | undefined;
701
+ }[] | {
702
+ start: string;
703
+ end: string;
704
+ } | null | undefined> | null | undefined;
705
+ originalActionId?: string | null | undefined;
598
706
  };
599
707
  }>;
600
708
  export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
601
- eventId: z.ZodString;
709
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
602
710
  transactionId: z.ZodString;
603
- 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<{
604
- filename: z.ZodString;
711
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[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>;
605
722
  originalFilename: z.ZodString;
606
723
  type: z.ZodString;
607
724
  }, "strip", z.ZodTypeAny, {
608
725
  type: string;
609
- filename: string;
726
+ path: string;
610
727
  originalFilename: string;
611
728
  }, {
612
729
  type: string;
613
- filename: string;
730
+ path: string;
614
731
  originalFilename: string;
615
732
  }>, z.ZodArray<z.ZodObject<{
616
- filename: z.ZodString;
733
+ path: z.ZodEffects<z.ZodString, string, string>;
617
734
  originalFilename: z.ZodString;
618
735
  type: z.ZodString;
619
736
  option: z.ZodString;
620
737
  }, "strip", z.ZodTypeAny, {
621
738
  type: string;
622
739
  option: string;
623
- filename: string;
740
+ path: string;
624
741
  originalFilename: string;
625
742
  }, {
626
743
  type: string;
627
744
  option: string;
628
- filename: string;
745
+ path: string;
629
746
  originalFilename: string;
630
747
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
631
748
  country: z.ZodString;
@@ -713,33 +830,54 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
713
830
  addressLine2?: string | null | undefined;
714
831
  addressLine3?: string | null | undefined;
715
832
  postcodeOrZip?: string | null | undefined;
716
- }>]>>>;
717
- 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<{
718
- 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.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>;
719
857
  originalFilename: z.ZodString;
720
858
  type: z.ZodString;
721
859
  }, "strip", z.ZodTypeAny, {
722
860
  type: string;
723
- filename: string;
861
+ path: string;
724
862
  originalFilename: string;
725
863
  }, {
726
864
  type: string;
727
- filename: string;
865
+ path: string;
728
866
  originalFilename: string;
729
867
  }>, z.ZodArray<z.ZodObject<{
730
- filename: z.ZodString;
868
+ path: z.ZodEffects<z.ZodString, string, string>;
731
869
  originalFilename: z.ZodString;
732
870
  type: z.ZodString;
733
871
  option: z.ZodString;
734
872
  }, "strip", z.ZodTypeAny, {
735
873
  type: string;
736
874
  option: string;
737
- filename: string;
875
+ path: string;
738
876
  originalFilename: string;
739
877
  }, {
740
878
  type: string;
741
879
  option: string;
742
- filename: string;
880
+ path: string;
743
881
  originalFilename: string;
744
882
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
745
883
  country: z.ZodString;
@@ -827,19 +965,31 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
827
965
  addressLine2?: string | null | undefined;
828
966
  addressLine3?: string | null | undefined;
829
967
  postcodeOrZip?: string | null | undefined;
830
- }>]>>>;
831
- 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">>;
832
982
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
833
983
  }, {
834
- 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"]>;
984
+ type: z.ZodEnum<["CREATE", "NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "DETECT_DUPLICATE", "REJECT", "MARKED_AS_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION", "READ", "ASSIGN", "UNASSIGN"]>;
835
985
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
836
986
  }>, "strip", z.ZodTypeAny, {
837
- 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: "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
838
988
  status: "Rejected" | "Requested" | "Accepted";
839
989
  transactionId: string;
840
990
  declaration: Record<string, string | number | boolean | {
841
991
  type: string;
842
- filename: string;
992
+ path: string;
843
993
  originalFilename: string;
844
994
  } | {
845
995
  country: string;
@@ -852,6 +1002,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
852
1002
  residentialArea?: string | null | undefined;
853
1003
  street?: string | null | undefined;
854
1004
  zipCode?: string | null | undefined;
1005
+ } | {
1006
+ firstname: string;
1007
+ surname: string;
1008
+ middlename?: string | null | undefined;
855
1009
  } | {
856
1010
  country: string;
857
1011
  district: string;
@@ -872,13 +1026,16 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
872
1026
  } | {
873
1027
  type: string;
874
1028
  option: string;
875
- filename: string;
1029
+ path: string;
876
1030
  originalFilename: string;
877
- }[] | [string, string] | undefined>;
878
- eventId: string;
1031
+ }[] | {
1032
+ start: string;
1033
+ end: string;
1034
+ } | null | undefined>;
1035
+ eventId: string & z.BRAND<"UUID">;
879
1036
  annotation?: Record<string, string | number | boolean | {
880
1037
  type: string;
881
- filename: string;
1038
+ path: string;
882
1039
  originalFilename: string;
883
1040
  } | {
884
1041
  country: string;
@@ -891,6 +1048,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
891
1048
  residentialArea?: string | null | undefined;
892
1049
  street?: string | null | undefined;
893
1050
  zipCode?: string | null | undefined;
1051
+ } | {
1052
+ firstname: string;
1053
+ surname: string;
1054
+ middlename?: string | null | undefined;
894
1055
  } | {
895
1056
  country: string;
896
1057
  district: string;
@@ -911,19 +1072,22 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
911
1072
  } | {
912
1073
  type: string;
913
1074
  option: string;
914
- filename: string;
1075
+ path: string;
915
1076
  originalFilename: string;
916
- }[] | [string, string] | undefined> | undefined;
917
- originalActionId?: string | undefined;
1077
+ }[] | {
1078
+ start: string;
1079
+ end: string;
1080
+ } | null | undefined> | undefined;
1081
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
918
1082
  keepAssignment?: boolean | undefined;
919
1083
  }, {
920
- 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: "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
921
1085
  status: "Rejected" | "Requested" | "Accepted";
922
1086
  transactionId: string;
923
1087
  eventId: string;
924
1088
  declaration?: Record<string, string | number | boolean | {
925
1089
  type: string;
926
- filename: string;
1090
+ path: string;
927
1091
  originalFilename: string;
928
1092
  } | {
929
1093
  country: string;
@@ -936,6 +1100,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
936
1100
  residentialArea?: string | null | undefined;
937
1101
  street?: string | null | undefined;
938
1102
  zipCode?: string | null | undefined;
1103
+ } | {
1104
+ firstname: string;
1105
+ surname: string;
1106
+ middlename?: string | null | undefined;
939
1107
  } | {
940
1108
  country: string;
941
1109
  district: string;
@@ -956,12 +1124,15 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
956
1124
  } | {
957
1125
  type: string;
958
1126
  option: string;
959
- filename: string;
1127
+ path: string;
960
1128
  originalFilename: string;
961
- }[] | [string, string] | undefined> | undefined;
1129
+ }[] | {
1130
+ start: string;
1131
+ end: string;
1132
+ } | null | undefined> | undefined;
962
1133
  annotation?: Record<string, string | number | boolean | {
963
1134
  type: string;
964
- filename: string;
1135
+ path: string;
965
1136
  originalFilename: string;
966
1137
  } | {
967
1138
  country: string;
@@ -974,6 +1145,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
974
1145
  residentialArea?: string | null | undefined;
975
1146
  street?: string | null | undefined;
976
1147
  zipCode?: string | null | undefined;
1148
+ } | {
1149
+ firstname: string;
1150
+ surname: string;
1151
+ middlename?: string | null | undefined;
977
1152
  } | {
978
1153
  country: string;
979
1154
  district: string;
@@ -994,9 +1169,12 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
994
1169
  } | {
995
1170
  type: string;
996
1171
  option: string;
997
- filename: string;
1172
+ path: string;
998
1173
  originalFilename: string;
999
- }[] | [string, string] | undefined> | undefined;
1174
+ }[] | {
1175
+ start: string;
1176
+ end: string;
1177
+ } | null | undefined> | undefined;
1000
1178
  originalActionId?: string | undefined;
1001
1179
  keepAssignment?: boolean | undefined;
1002
1180
  }>;