@opencrvs/toolkit 1.8.0-rc.ffbb9d7 → 1.8.0-rc.ffe24c3
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.
- package/dist/commons/api/router.d.ts +14748 -727
- package/dist/commons/conditionals/conditionals.d.ts +14 -6
- package/dist/commons/conditionals/validate.d.ts +11 -11
- package/dist/commons/events/ActionConfig.d.ts +117418 -1729
- package/dist/commons/events/ActionDocument.d.ts +2581 -554
- package/dist/commons/events/ActionInput.d.ts +1795 -425
- package/dist/commons/events/ActionType.d.ts +8 -0
- package/dist/commons/events/AdvancedSearchConfig.d.ts +1233 -22
- package/dist/commons/events/CompositeFieldValue.d.ts +31 -0
- package/dist/commons/events/Constants.d.ts +3 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +3730 -0
- package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
- package/dist/commons/events/Draft.d.ts +165 -43
- package/dist/commons/events/EventConfig.d.ts +56501 -1354
- package/dist/commons/events/EventDocument.d.ts +1635 -391
- package/dist/commons/events/EventIndex.d.ts +2007 -27
- package/dist/commons/events/EventMetadata.d.ts +343 -45
- package/dist/commons/events/FieldConfig.d.ts +5450 -1033
- package/dist/commons/events/FieldType.d.ts +6 -3
- package/dist/commons/events/FieldTypeMapping.d.ts +103 -54
- package/dist/commons/events/FieldValue.d.ts +49 -8
- package/dist/commons/events/FormConfig.d.ts +49156 -514
- package/dist/commons/events/PageConfig.d.ts +12206 -204
- package/dist/commons/events/SummaryConfig.d.ts +93 -42
- package/dist/commons/events/TemplateConfig.d.ts +4 -4
- package/dist/commons/events/User.d.ts +31 -2
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +7300 -20
- package/dist/commons/events/defineConfig.d.ts +9001 -58
- package/dist/commons/events/event.d.ts +54 -0
- package/dist/commons/events/field.d.ts +82 -0
- package/dist/commons/events/index.d.ts +8 -0
- package/dist/commons/events/scopes.d.ts +44 -0
- package/dist/commons/events/serializer.d.ts +2 -0
- package/dist/commons/events/test.utils.d.ts +171 -79
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +13375 -73
- package/dist/commons/events/utils.test.d.ts +2 -0
- package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
- package/dist/conditionals/index.js +76 -36
- package/dist/events/index.js +4630 -1941
- package/dist/scopes/index.d.ts +161 -1
- package/dist/scopes/index.js +202 -1
- package/package.json +4 -3
@@ -1,14 +1,19 @@
|
|
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
|
-
|
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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
12
17
|
filename: z.ZodString;
|
13
18
|
originalFilename: z.ZodString;
|
14
19
|
type: z.ZodString;
|
@@ -121,8 +126,20 @@ export declare const Draft: z.ZodObject<{
|
|
121
126
|
addressLine2?: string | null | undefined;
|
122
127
|
addressLine3?: string | null | undefined;
|
123
128
|
postcodeOrZip?: string | null | undefined;
|
124
|
-
}
|
125
|
-
|
129
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
130
|
+
firstname: z.ZodString;
|
131
|
+
surname: z.ZodString;
|
132
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
133
|
+
}, "strip", z.ZodTypeAny, {
|
134
|
+
firstname: string;
|
135
|
+
surname: string;
|
136
|
+
middlename?: string | null | undefined;
|
137
|
+
}, {
|
138
|
+
firstname: string;
|
139
|
+
surname: string;
|
140
|
+
middlename?: string | null | undefined;
|
141
|
+
}>, 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<{
|
126
143
|
filename: z.ZodString;
|
127
144
|
originalFilename: z.ZodString;
|
128
145
|
type: z.ZodString;
|
@@ -235,17 +252,31 @@ export declare const Draft: z.ZodObject<{
|
|
235
252
|
addressLine2?: string | null | undefined;
|
236
253
|
addressLine3?: string | null | undefined;
|
237
254
|
postcodeOrZip?: string | null | undefined;
|
238
|
-
}
|
239
|
-
|
255
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
256
|
+
firstname: z.ZodString;
|
257
|
+
surname: z.ZodString;
|
258
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
259
|
+
}, "strip", z.ZodTypeAny, {
|
260
|
+
firstname: string;
|
261
|
+
surname: string;
|
262
|
+
middlename?: string | null | undefined;
|
263
|
+
}, {
|
264
|
+
firstname: string;
|
265
|
+
surname: string;
|
266
|
+
middlename?: string | null | undefined;
|
267
|
+
}>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
|
240
268
|
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
241
|
-
originalActionId: z.ZodOptional<z.ZodString
|
269
|
+
originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
|
242
270
|
}, {
|
243
271
|
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
272
|
}>, "id">, "strip", z.ZodTypeAny, {
|
245
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";
|
246
274
|
status: "Rejected" | "Requested" | "Accepted";
|
275
|
+
transactionId: string;
|
276
|
+
createdByUserType: "system" | "user";
|
247
277
|
createdAt: string;
|
248
278
|
createdBy: string;
|
279
|
+
createdByRole: string;
|
249
280
|
declaration: Record<string, string | number | boolean | {
|
250
281
|
type: string;
|
251
282
|
filename: string;
|
@@ -261,6 +292,10 @@ export declare const Draft: z.ZodObject<{
|
|
261
292
|
residentialArea?: string | null | undefined;
|
262
293
|
street?: string | null | undefined;
|
263
294
|
zipCode?: string | null | undefined;
|
295
|
+
} | {
|
296
|
+
firstname: string;
|
297
|
+
surname: string;
|
298
|
+
middlename?: string | null | undefined;
|
264
299
|
} | {
|
265
300
|
country: string;
|
266
301
|
district: string;
|
@@ -283,8 +318,9 @@ export declare const Draft: z.ZodObject<{
|
|
283
318
|
option: string;
|
284
319
|
filename: string;
|
285
320
|
originalFilename: string;
|
286
|
-
}[] | undefined>;
|
287
|
-
|
321
|
+
}[] | [string, string] | null | undefined>;
|
322
|
+
createdBySignature?: string | null | undefined;
|
323
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
288
324
|
annotation?: Record<string, string | number | boolean | {
|
289
325
|
type: string;
|
290
326
|
filename: string;
|
@@ -300,6 +336,10 @@ export declare const Draft: z.ZodObject<{
|
|
300
336
|
residentialArea?: string | null | undefined;
|
301
337
|
street?: string | null | undefined;
|
302
338
|
zipCode?: string | null | undefined;
|
339
|
+
} | {
|
340
|
+
firstname: string;
|
341
|
+
surname: string;
|
342
|
+
middlename?: string | null | undefined;
|
303
343
|
} | {
|
304
344
|
country: string;
|
305
345
|
district: string;
|
@@ -322,13 +362,16 @@ export declare const Draft: z.ZodObject<{
|
|
322
362
|
option: string;
|
323
363
|
filename: string;
|
324
364
|
originalFilename: string;
|
325
|
-
}[] | undefined> | undefined;
|
326
|
-
originalActionId?: string | undefined;
|
365
|
+
}[] | [string, string] | null | undefined> | null | undefined;
|
366
|
+
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
327
367
|
}, {
|
328
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";
|
329
369
|
status: "Rejected" | "Requested" | "Accepted";
|
370
|
+
transactionId: string;
|
371
|
+
createdByUserType: "system" | "user";
|
330
372
|
createdAt: string;
|
331
373
|
createdBy: string;
|
374
|
+
createdByRole: string;
|
332
375
|
declaration: Record<string, string | number | boolean | {
|
333
376
|
type: string;
|
334
377
|
filename: string;
|
@@ -344,6 +387,10 @@ export declare const Draft: z.ZodObject<{
|
|
344
387
|
residentialArea?: string | null | undefined;
|
345
388
|
street?: string | null | undefined;
|
346
389
|
zipCode?: string | null | undefined;
|
390
|
+
} | {
|
391
|
+
firstname: string;
|
392
|
+
surname: string;
|
393
|
+
middlename?: string | null | undefined;
|
347
394
|
} | {
|
348
395
|
country: string;
|
349
396
|
district: string;
|
@@ -366,8 +413,9 @@ export declare const Draft: z.ZodObject<{
|
|
366
413
|
option: string;
|
367
414
|
filename: string;
|
368
415
|
originalFilename: string;
|
369
|
-
}[] | undefined>;
|
370
|
-
|
416
|
+
}[] | [string, string] | null | undefined>;
|
417
|
+
createdBySignature?: string | null | undefined;
|
418
|
+
createdAtLocation?: string | null | undefined;
|
371
419
|
annotation?: Record<string, string | number | boolean | {
|
372
420
|
type: string;
|
373
421
|
filename: string;
|
@@ -383,6 +431,10 @@ export declare const Draft: z.ZodObject<{
|
|
383
431
|
residentialArea?: string | null | undefined;
|
384
432
|
street?: string | null | undefined;
|
385
433
|
zipCode?: string | null | undefined;
|
434
|
+
} | {
|
435
|
+
firstname: string;
|
436
|
+
surname: string;
|
437
|
+
middlename?: string | null | undefined;
|
386
438
|
} | {
|
387
439
|
country: string;
|
388
440
|
district: string;
|
@@ -405,19 +457,22 @@ export declare const Draft: z.ZodObject<{
|
|
405
457
|
option: string;
|
406
458
|
filename: string;
|
407
459
|
originalFilename: string;
|
408
|
-
}[] | undefined> | undefined;
|
409
|
-
originalActionId?: string | undefined;
|
460
|
+
}[] | [string, string] | null | undefined> | null | undefined;
|
461
|
+
originalActionId?: string | null | undefined;
|
410
462
|
}>;
|
411
463
|
}, "strip", z.ZodTypeAny, {
|
412
|
-
id: string
|
413
|
-
createdAt: string;
|
414
|
-
eventId: string;
|
464
|
+
id: string & z.BRAND<"UUID">;
|
415
465
|
transactionId: string;
|
466
|
+
createdAt: string;
|
467
|
+
eventId: string & z.BRAND<"UUID">;
|
416
468
|
action: {
|
417
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";
|
418
470
|
status: "Rejected" | "Requested" | "Accepted";
|
471
|
+
transactionId: string;
|
472
|
+
createdByUserType: "system" | "user";
|
419
473
|
createdAt: string;
|
420
474
|
createdBy: string;
|
475
|
+
createdByRole: string;
|
421
476
|
declaration: Record<string, string | number | boolean | {
|
422
477
|
type: string;
|
423
478
|
filename: string;
|
@@ -433,6 +488,10 @@ export declare const Draft: z.ZodObject<{
|
|
433
488
|
residentialArea?: string | null | undefined;
|
434
489
|
street?: string | null | undefined;
|
435
490
|
zipCode?: string | null | undefined;
|
491
|
+
} | {
|
492
|
+
firstname: string;
|
493
|
+
surname: string;
|
494
|
+
middlename?: string | null | undefined;
|
436
495
|
} | {
|
437
496
|
country: string;
|
438
497
|
district: string;
|
@@ -455,8 +514,9 @@ export declare const Draft: z.ZodObject<{
|
|
455
514
|
option: string;
|
456
515
|
filename: string;
|
457
516
|
originalFilename: string;
|
458
|
-
}[] | undefined>;
|
459
|
-
|
517
|
+
}[] | [string, string] | null | undefined>;
|
518
|
+
createdBySignature?: string | null | undefined;
|
519
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
460
520
|
annotation?: Record<string, string | number | boolean | {
|
461
521
|
type: string;
|
462
522
|
filename: string;
|
@@ -472,6 +532,10 @@ export declare const Draft: z.ZodObject<{
|
|
472
532
|
residentialArea?: string | null | undefined;
|
473
533
|
street?: string | null | undefined;
|
474
534
|
zipCode?: string | null | undefined;
|
535
|
+
} | {
|
536
|
+
firstname: string;
|
537
|
+
surname: string;
|
538
|
+
middlename?: string | null | undefined;
|
475
539
|
} | {
|
476
540
|
country: string;
|
477
541
|
district: string;
|
@@ -494,19 +558,22 @@ export declare const Draft: z.ZodObject<{
|
|
494
558
|
option: string;
|
495
559
|
filename: string;
|
496
560
|
originalFilename: string;
|
497
|
-
}[] | undefined> | undefined;
|
498
|
-
originalActionId?: string | undefined;
|
561
|
+
}[] | [string, string] | null | undefined> | null | undefined;
|
562
|
+
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
499
563
|
};
|
500
564
|
}, {
|
501
565
|
id: string;
|
566
|
+
transactionId: string;
|
502
567
|
createdAt: string;
|
503
568
|
eventId: string;
|
504
|
-
transactionId: string;
|
505
569
|
action: {
|
506
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";
|
507
571
|
status: "Rejected" | "Requested" | "Accepted";
|
572
|
+
transactionId: string;
|
573
|
+
createdByUserType: "system" | "user";
|
508
574
|
createdAt: string;
|
509
575
|
createdBy: string;
|
576
|
+
createdByRole: string;
|
510
577
|
declaration: Record<string, string | number | boolean | {
|
511
578
|
type: string;
|
512
579
|
filename: string;
|
@@ -522,6 +589,10 @@ export declare const Draft: z.ZodObject<{
|
|
522
589
|
residentialArea?: string | null | undefined;
|
523
590
|
street?: string | null | undefined;
|
524
591
|
zipCode?: string | null | undefined;
|
592
|
+
} | {
|
593
|
+
firstname: string;
|
594
|
+
surname: string;
|
595
|
+
middlename?: string | null | undefined;
|
525
596
|
} | {
|
526
597
|
country: string;
|
527
598
|
district: string;
|
@@ -544,8 +615,9 @@ export declare const Draft: z.ZodObject<{
|
|
544
615
|
option: string;
|
545
616
|
filename: string;
|
546
617
|
originalFilename: string;
|
547
|
-
}[] | undefined>;
|
548
|
-
|
618
|
+
}[] | [string, string] | null | undefined>;
|
619
|
+
createdBySignature?: string | null | undefined;
|
620
|
+
createdAtLocation?: string | null | undefined;
|
549
621
|
annotation?: Record<string, string | number | boolean | {
|
550
622
|
type: string;
|
551
623
|
filename: string;
|
@@ -561,6 +633,10 @@ export declare const Draft: z.ZodObject<{
|
|
561
633
|
residentialArea?: string | null | undefined;
|
562
634
|
street?: string | null | undefined;
|
563
635
|
zipCode?: string | null | undefined;
|
636
|
+
} | {
|
637
|
+
firstname: string;
|
638
|
+
surname: string;
|
639
|
+
middlename?: string | null | undefined;
|
564
640
|
} | {
|
565
641
|
country: string;
|
566
642
|
district: string;
|
@@ -583,14 +659,14 @@ export declare const Draft: z.ZodObject<{
|
|
583
659
|
option: string;
|
584
660
|
filename: string;
|
585
661
|
originalFilename: string;
|
586
|
-
}[] | undefined> | undefined;
|
587
|
-
originalActionId?: string | undefined;
|
662
|
+
}[] | [string, string] | null | undefined> | null | undefined;
|
663
|
+
originalActionId?: string | null | undefined;
|
588
664
|
};
|
589
665
|
}>;
|
590
666
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
591
|
-
eventId: z.ZodString
|
667
|
+
eventId: z.ZodBranded<z.ZodString, "UUID">;
|
592
668
|
transactionId: z.ZodString;
|
593
|
-
declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
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<{
|
594
670
|
filename: z.ZodString;
|
595
671
|
originalFilename: z.ZodString;
|
596
672
|
type: z.ZodString;
|
@@ -703,8 +779,20 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
703
779
|
addressLine2?: string | null | undefined;
|
704
780
|
addressLine3?: string | null | undefined;
|
705
781
|
postcodeOrZip?: string | null | undefined;
|
706
|
-
}
|
707
|
-
|
782
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
783
|
+
firstname: z.ZodString;
|
784
|
+
surname: z.ZodString;
|
785
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
786
|
+
}, "strip", z.ZodTypeAny, {
|
787
|
+
firstname: string;
|
788
|
+
surname: string;
|
789
|
+
middlename?: string | null | undefined;
|
790
|
+
}, {
|
791
|
+
firstname: string;
|
792
|
+
surname: string;
|
793
|
+
middlename?: string | null | undefined;
|
794
|
+
}>, 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<{
|
708
796
|
filename: z.ZodString;
|
709
797
|
originalFilename: z.ZodString;
|
710
798
|
type: z.ZodString;
|
@@ -817,12 +905,28 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
817
905
|
addressLine2?: string | null | undefined;
|
818
906
|
addressLine3?: string | null | undefined;
|
819
907
|
postcodeOrZip?: string | null | undefined;
|
820
|
-
}
|
821
|
-
|
908
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
909
|
+
firstname: z.ZodString;
|
910
|
+
surname: z.ZodString;
|
911
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
912
|
+
}, "strip", z.ZodTypeAny, {
|
913
|
+
firstname: string;
|
914
|
+
surname: string;
|
915
|
+
middlename?: string | null | undefined;
|
916
|
+
}, {
|
917
|
+
firstname: string;
|
918
|
+
surname: string;
|
919
|
+
middlename?: string | null | undefined;
|
920
|
+
}>, z.ZodNull]>, z.ZodUndefined]>]>>>;
|
921
|
+
originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
|
922
|
+
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
822
923
|
}, {
|
823
924
|
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
|
+
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
824
926
|
}>, "strip", z.ZodTypeAny, {
|
825
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";
|
928
|
+
status: "Rejected" | "Requested" | "Accepted";
|
929
|
+
transactionId: string;
|
826
930
|
declaration: Record<string, string | number | boolean | {
|
827
931
|
type: string;
|
828
932
|
filename: string;
|
@@ -838,6 +942,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
838
942
|
residentialArea?: string | null | undefined;
|
839
943
|
street?: string | null | undefined;
|
840
944
|
zipCode?: string | null | undefined;
|
945
|
+
} | {
|
946
|
+
firstname: string;
|
947
|
+
surname: string;
|
948
|
+
middlename?: string | null | undefined;
|
841
949
|
} | {
|
842
950
|
country: string;
|
843
951
|
district: string;
|
@@ -860,9 +968,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
860
968
|
option: string;
|
861
969
|
filename: string;
|
862
970
|
originalFilename: string;
|
863
|
-
}[] | undefined>;
|
864
|
-
eventId: string
|
865
|
-
transactionId: string;
|
971
|
+
}[] | [string, string] | null | undefined>;
|
972
|
+
eventId: string & z.BRAND<"UUID">;
|
866
973
|
annotation?: Record<string, string | number | boolean | {
|
867
974
|
type: string;
|
868
975
|
filename: string;
|
@@ -878,6 +985,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
878
985
|
residentialArea?: string | null | undefined;
|
879
986
|
street?: string | null | undefined;
|
880
987
|
zipCode?: string | null | undefined;
|
988
|
+
} | {
|
989
|
+
firstname: string;
|
990
|
+
surname: string;
|
991
|
+
middlename?: string | null | undefined;
|
881
992
|
} | {
|
882
993
|
country: string;
|
883
994
|
district: string;
|
@@ -900,12 +1011,14 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
900
1011
|
option: string;
|
901
1012
|
filename: string;
|
902
1013
|
originalFilename: string;
|
903
|
-
}[] | undefined> | undefined;
|
904
|
-
originalActionId?: string | undefined;
|
1014
|
+
}[] | [string, string] | null | undefined> | undefined;
|
1015
|
+
originalActionId?: (string & z.BRAND<"UUID">) | undefined;
|
1016
|
+
keepAssignment?: boolean | undefined;
|
905
1017
|
}, {
|
906
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";
|
907
|
-
|
1019
|
+
status: "Rejected" | "Requested" | "Accepted";
|
908
1020
|
transactionId: string;
|
1021
|
+
eventId: string;
|
909
1022
|
declaration?: Record<string, string | number | boolean | {
|
910
1023
|
type: string;
|
911
1024
|
filename: string;
|
@@ -921,6 +1034,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
921
1034
|
residentialArea?: string | null | undefined;
|
922
1035
|
street?: string | null | undefined;
|
923
1036
|
zipCode?: string | null | undefined;
|
1037
|
+
} | {
|
1038
|
+
firstname: string;
|
1039
|
+
surname: string;
|
1040
|
+
middlename?: string | null | undefined;
|
924
1041
|
} | {
|
925
1042
|
country: string;
|
926
1043
|
district: string;
|
@@ -943,7 +1060,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
943
1060
|
option: string;
|
944
1061
|
filename: string;
|
945
1062
|
originalFilename: string;
|
946
|
-
}[] | undefined> | undefined;
|
1063
|
+
}[] | [string, string] | null | undefined> | undefined;
|
947
1064
|
annotation?: Record<string, string | number | boolean | {
|
948
1065
|
type: string;
|
949
1066
|
filename: string;
|
@@ -959,6 +1076,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
959
1076
|
residentialArea?: string | null | undefined;
|
960
1077
|
street?: string | null | undefined;
|
961
1078
|
zipCode?: string | null | undefined;
|
1079
|
+
} | {
|
1080
|
+
firstname: string;
|
1081
|
+
surname: string;
|
1082
|
+
middlename?: string | null | undefined;
|
962
1083
|
} | {
|
963
1084
|
country: string;
|
964
1085
|
district: string;
|
@@ -981,8 +1102,9 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
981
1102
|
option: string;
|
982
1103
|
filename: string;
|
983
1104
|
originalFilename: string;
|
984
|
-
}[] | undefined> | undefined;
|
1105
|
+
}[] | [string, string] | null | undefined> | undefined;
|
985
1106
|
originalActionId?: string | undefined;
|
1107
|
+
keepAssignment?: boolean | undefined;
|
986
1108
|
}>;
|
987
1109
|
export type Draft = z.infer<typeof Draft>;
|
988
1110
|
export type DraftInput = z.infer<typeof DraftInput>;
|