@opencrvs/toolkit 1.8.0-rc.f7910f3 → 1.8.0-rc.f7aaf07
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/README.md +1 -1
- package/dist/commons/api/router.d.ts +20619 -14618
- package/dist/commons/conditionals/conditionals.d.ts +36 -6
- package/dist/commons/conditionals/validate.d.ts +18 -17
- package/dist/commons/events/ActionConfig.d.ts +116370 -6084
- package/dist/commons/events/ActionDocument.d.ts +9528 -401
- package/dist/commons/events/ActionInput.d.ts +3536 -519
- package/dist/commons/events/ActionType.d.ts +32 -16
- package/dist/commons/events/AdvancedSearchConfig.d.ts +1233 -22
- package/dist/commons/events/CompositeFieldValue.d.ts +31 -0
- package/dist/commons/events/Conditional.d.ts +21 -5
- package/dist/commons/events/Constants.d.ts +3 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +3068 -0
- package/dist/commons/events/CreatedAtLocation.d.ts +3 -0
- package/dist/commons/events/Draft.d.ts +193 -59
- package/dist/commons/events/EventConfig.d.ts +55962 -3150
- package/dist/commons/events/EventConfigInput.d.ts +5 -2
- package/dist/commons/events/EventDocument.d.ts +2192 -552
- package/dist/commons/events/EventIndex.d.ts +2026 -22
- package/dist/commons/events/EventMetadata.d.ts +332 -40
- package/dist/commons/events/FieldConfig.d.ts +5678 -1061
- 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 +49225 -346
- package/dist/commons/events/PageConfig.d.ts +12337 -0
- package/dist/commons/events/SummaryConfig.d.ts +93 -42
- package/dist/commons/events/TemplateConfig.d.ts +5 -5
- 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 +6290 -20
- package/dist/commons/events/defineConfig.d.ts +9039 -501
- 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 +10 -1
- 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 +161 -300
- package/dist/commons/events/utils.d.ts +13384 -186
- package/dist/commons/events/utils.test.d.ts +2 -0
- package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
- package/dist/conditionals/index.js +228 -120
- package/dist/events/index.js +5066 -2198
- package/dist/scopes/index.d.ts +161 -1
- package/dist/scopes/index.js +202 -1
- package/package.json +3 -2
@@ -1,5 +1,4 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
-
import { ActionType } from './ActionType';
|
3
2
|
export declare const Draft: z.ZodObject<{
|
4
3
|
id: z.ZodString;
|
5
4
|
eventId: z.ZodString;
|
@@ -7,9 +6,14 @@ export declare const Draft: z.ZodObject<{
|
|
7
6
|
createdAt: z.ZodString;
|
8
7
|
action: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
9
8
|
id: z.ZodString;
|
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;
|
14
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
15
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
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<{
|
13
17
|
filename: z.ZodString;
|
14
18
|
originalFilename: z.ZodString;
|
15
19
|
type: z.ZodString;
|
@@ -122,8 +126,20 @@ export declare const Draft: z.ZodObject<{
|
|
122
126
|
addressLine2?: string | null | undefined;
|
123
127
|
addressLine3?: string | null | undefined;
|
124
128
|
postcodeOrZip?: string | null | undefined;
|
125
|
-
}
|
126
|
-
|
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.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<{
|
127
143
|
filename: z.ZodString;
|
128
144
|
originalFilename: z.ZodString;
|
129
145
|
type: z.ZodString;
|
@@ -236,13 +252,32 @@ export declare const Draft: z.ZodObject<{
|
|
236
252
|
addressLine2?: string | null | undefined;
|
237
253
|
addressLine3?: string | null | undefined;
|
238
254
|
postcodeOrZip?: string | null | undefined;
|
239
|
-
}
|
240
|
-
|
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]>]>>>;
|
268
|
+
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
269
|
+
originalActionId: z.ZodOptional<z.ZodString>;
|
241
270
|
}, {
|
242
|
-
type: z.ZodEnum<[
|
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"]>;
|
243
272
|
}>, "id">, "strip", z.ZodTypeAny, {
|
244
|
-
type:
|
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";
|
274
|
+
status: "Rejected" | "Requested" | "Accepted";
|
275
|
+
transactionId: string;
|
276
|
+
createdByUserType: "system" | "user";
|
277
|
+
createdAt: string;
|
278
|
+
createdBy: string;
|
279
|
+
createdByRole: string;
|
280
|
+
declaration: Record<string, string | number | boolean | {
|
246
281
|
type: string;
|
247
282
|
filename: string;
|
248
283
|
originalFilename: string;
|
@@ -257,6 +292,10 @@ export declare const Draft: z.ZodObject<{
|
|
257
292
|
residentialArea?: string | null | undefined;
|
258
293
|
street?: string | null | undefined;
|
259
294
|
zipCode?: string | null | undefined;
|
295
|
+
} | {
|
296
|
+
firstname: string;
|
297
|
+
surname: string;
|
298
|
+
middlename?: string | null | undefined;
|
260
299
|
} | {
|
261
300
|
country: string;
|
262
301
|
district: string;
|
@@ -279,11 +318,10 @@ export declare const Draft: z.ZodObject<{
|
|
279
318
|
option: string;
|
280
319
|
filename: string;
|
281
320
|
originalFilename: string;
|
282
|
-
}[] | undefined>;
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
metadata?: Record<string, string | number | boolean | {
|
321
|
+
}[] | [string, string] | null | undefined>;
|
322
|
+
createdBySignature?: string | null | undefined;
|
323
|
+
createdAtLocation?: string | null | undefined;
|
324
|
+
annotation?: Record<string, string | number | boolean | {
|
287
325
|
type: string;
|
288
326
|
filename: string;
|
289
327
|
originalFilename: string;
|
@@ -298,6 +336,10 @@ export declare const Draft: z.ZodObject<{
|
|
298
336
|
residentialArea?: string | null | undefined;
|
299
337
|
street?: string | null | undefined;
|
300
338
|
zipCode?: string | null | undefined;
|
339
|
+
} | {
|
340
|
+
firstname: string;
|
341
|
+
surname: string;
|
342
|
+
middlename?: string | null | undefined;
|
301
343
|
} | {
|
302
344
|
country: string;
|
303
345
|
district: string;
|
@@ -320,10 +362,17 @@ export declare const Draft: z.ZodObject<{
|
|
320
362
|
option: string;
|
321
363
|
filename: string;
|
322
364
|
originalFilename: string;
|
323
|
-
}[] | undefined> | undefined;
|
365
|
+
}[] | [string, string] | null | undefined> | undefined;
|
366
|
+
originalActionId?: string | undefined;
|
324
367
|
}, {
|
325
|
-
type:
|
326
|
-
|
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";
|
369
|
+
status: "Rejected" | "Requested" | "Accepted";
|
370
|
+
transactionId: string;
|
371
|
+
createdByUserType: "system" | "user";
|
372
|
+
createdAt: string;
|
373
|
+
createdBy: string;
|
374
|
+
createdByRole: string;
|
375
|
+
declaration: Record<string, string | number | boolean | {
|
327
376
|
type: string;
|
328
377
|
filename: string;
|
329
378
|
originalFilename: string;
|
@@ -338,6 +387,10 @@ export declare const Draft: z.ZodObject<{
|
|
338
387
|
residentialArea?: string | null | undefined;
|
339
388
|
street?: string | null | undefined;
|
340
389
|
zipCode?: string | null | undefined;
|
390
|
+
} | {
|
391
|
+
firstname: string;
|
392
|
+
surname: string;
|
393
|
+
middlename?: string | null | undefined;
|
341
394
|
} | {
|
342
395
|
country: string;
|
343
396
|
district: string;
|
@@ -360,11 +413,10 @@ export declare const Draft: z.ZodObject<{
|
|
360
413
|
option: string;
|
361
414
|
filename: string;
|
362
415
|
originalFilename: string;
|
363
|
-
}[] | undefined>;
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
metadata?: Record<string, string | number | boolean | {
|
416
|
+
}[] | [string, string] | null | undefined>;
|
417
|
+
createdBySignature?: string | null | undefined;
|
418
|
+
createdAtLocation?: string | null | undefined;
|
419
|
+
annotation?: Record<string, string | number | boolean | {
|
368
420
|
type: string;
|
369
421
|
filename: string;
|
370
422
|
originalFilename: string;
|
@@ -379,6 +431,10 @@ export declare const Draft: z.ZodObject<{
|
|
379
431
|
residentialArea?: string | null | undefined;
|
380
432
|
street?: string | null | undefined;
|
381
433
|
zipCode?: string | null | undefined;
|
434
|
+
} | {
|
435
|
+
firstname: string;
|
436
|
+
surname: string;
|
437
|
+
middlename?: string | null | undefined;
|
382
438
|
} | {
|
383
439
|
country: string;
|
384
440
|
district: string;
|
@@ -401,16 +457,23 @@ export declare const Draft: z.ZodObject<{
|
|
401
457
|
option: string;
|
402
458
|
filename: string;
|
403
459
|
originalFilename: string;
|
404
|
-
}[] | undefined> | undefined;
|
460
|
+
}[] | [string, string] | null | undefined> | undefined;
|
461
|
+
originalActionId?: string | undefined;
|
405
462
|
}>;
|
406
463
|
}, "strip", z.ZodTypeAny, {
|
407
464
|
id: string;
|
465
|
+
transactionId: string;
|
408
466
|
createdAt: string;
|
409
467
|
eventId: string;
|
410
|
-
transactionId: string;
|
411
468
|
action: {
|
412
|
-
type:
|
413
|
-
|
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";
|
470
|
+
status: "Rejected" | "Requested" | "Accepted";
|
471
|
+
transactionId: string;
|
472
|
+
createdByUserType: "system" | "user";
|
473
|
+
createdAt: string;
|
474
|
+
createdBy: string;
|
475
|
+
createdByRole: string;
|
476
|
+
declaration: Record<string, string | number | boolean | {
|
414
477
|
type: string;
|
415
478
|
filename: string;
|
416
479
|
originalFilename: string;
|
@@ -425,6 +488,10 @@ export declare const Draft: z.ZodObject<{
|
|
425
488
|
residentialArea?: string | null | undefined;
|
426
489
|
street?: string | null | undefined;
|
427
490
|
zipCode?: string | null | undefined;
|
491
|
+
} | {
|
492
|
+
firstname: string;
|
493
|
+
surname: string;
|
494
|
+
middlename?: string | null | undefined;
|
428
495
|
} | {
|
429
496
|
country: string;
|
430
497
|
district: string;
|
@@ -447,11 +514,10 @@ export declare const Draft: z.ZodObject<{
|
|
447
514
|
option: string;
|
448
515
|
filename: string;
|
449
516
|
originalFilename: string;
|
450
|
-
}[] | undefined>;
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
metadata?: Record<string, string | number | boolean | {
|
517
|
+
}[] | [string, string] | null | undefined>;
|
518
|
+
createdBySignature?: string | null | undefined;
|
519
|
+
createdAtLocation?: string | null | undefined;
|
520
|
+
annotation?: Record<string, string | number | boolean | {
|
455
521
|
type: string;
|
456
522
|
filename: string;
|
457
523
|
originalFilename: string;
|
@@ -466,6 +532,10 @@ export declare const Draft: z.ZodObject<{
|
|
466
532
|
residentialArea?: string | null | undefined;
|
467
533
|
street?: string | null | undefined;
|
468
534
|
zipCode?: string | null | undefined;
|
535
|
+
} | {
|
536
|
+
firstname: string;
|
537
|
+
surname: string;
|
538
|
+
middlename?: string | null | undefined;
|
469
539
|
} | {
|
470
540
|
country: string;
|
471
541
|
district: string;
|
@@ -488,16 +558,23 @@ export declare const Draft: z.ZodObject<{
|
|
488
558
|
option: string;
|
489
559
|
filename: string;
|
490
560
|
originalFilename: string;
|
491
|
-
}[] | undefined> | undefined;
|
561
|
+
}[] | [string, string] | null | undefined> | undefined;
|
562
|
+
originalActionId?: string | undefined;
|
492
563
|
};
|
493
564
|
}, {
|
494
565
|
id: string;
|
566
|
+
transactionId: string;
|
495
567
|
createdAt: string;
|
496
568
|
eventId: string;
|
497
|
-
transactionId: string;
|
498
569
|
action: {
|
499
|
-
type:
|
500
|
-
|
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";
|
571
|
+
status: "Rejected" | "Requested" | "Accepted";
|
572
|
+
transactionId: string;
|
573
|
+
createdByUserType: "system" | "user";
|
574
|
+
createdAt: string;
|
575
|
+
createdBy: string;
|
576
|
+
createdByRole: string;
|
577
|
+
declaration: Record<string, string | number | boolean | {
|
501
578
|
type: string;
|
502
579
|
filename: string;
|
503
580
|
originalFilename: string;
|
@@ -512,6 +589,10 @@ export declare const Draft: z.ZodObject<{
|
|
512
589
|
residentialArea?: string | null | undefined;
|
513
590
|
street?: string | null | undefined;
|
514
591
|
zipCode?: string | null | undefined;
|
592
|
+
} | {
|
593
|
+
firstname: string;
|
594
|
+
surname: string;
|
595
|
+
middlename?: string | null | undefined;
|
515
596
|
} | {
|
516
597
|
country: string;
|
517
598
|
district: string;
|
@@ -534,11 +615,10 @@ export declare const Draft: z.ZodObject<{
|
|
534
615
|
option: string;
|
535
616
|
filename: string;
|
536
617
|
originalFilename: string;
|
537
|
-
}[] | undefined>;
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
metadata?: Record<string, string | number | boolean | {
|
618
|
+
}[] | [string, string] | null | undefined>;
|
619
|
+
createdBySignature?: string | null | undefined;
|
620
|
+
createdAtLocation?: string | null | undefined;
|
621
|
+
annotation?: Record<string, string | number | boolean | {
|
542
622
|
type: string;
|
543
623
|
filename: string;
|
544
624
|
originalFilename: string;
|
@@ -553,6 +633,10 @@ export declare const Draft: z.ZodObject<{
|
|
553
633
|
residentialArea?: string | null | undefined;
|
554
634
|
street?: string | null | undefined;
|
555
635
|
zipCode?: string | null | undefined;
|
636
|
+
} | {
|
637
|
+
firstname: string;
|
638
|
+
surname: string;
|
639
|
+
middlename?: string | null | undefined;
|
556
640
|
} | {
|
557
641
|
country: string;
|
558
642
|
district: string;
|
@@ -575,13 +659,14 @@ export declare const Draft: z.ZodObject<{
|
|
575
659
|
option: string;
|
576
660
|
filename: string;
|
577
661
|
originalFilename: string;
|
578
|
-
}[] | undefined> | undefined;
|
662
|
+
}[] | [string, string] | null | undefined> | undefined;
|
663
|
+
originalActionId?: string | undefined;
|
579
664
|
};
|
580
665
|
}>;
|
581
666
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
582
667
|
eventId: z.ZodString;
|
583
668
|
transactionId: z.ZodString;
|
584
|
-
|
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<{
|
585
670
|
filename: z.ZodString;
|
586
671
|
originalFilename: z.ZodString;
|
587
672
|
type: z.ZodString;
|
@@ -694,8 +779,20 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
694
779
|
addressLine2?: string | null | undefined;
|
695
780
|
addressLine3?: string | null | undefined;
|
696
781
|
postcodeOrZip?: string | null | undefined;
|
697
|
-
}
|
698
|
-
|
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<{
|
699
796
|
filename: z.ZodString;
|
700
797
|
originalFilename: z.ZodString;
|
701
798
|
type: z.ZodString;
|
@@ -808,12 +905,29 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
808
905
|
addressLine2?: string | null | undefined;
|
809
906
|
addressLine3?: string | null | undefined;
|
810
907
|
postcodeOrZip?: string | null | undefined;
|
811
|
-
}
|
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.ZodString>;
|
922
|
+
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
812
923
|
}, {
|
813
|
-
type: z.ZodEnum<[
|
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"]>;
|
814
926
|
}>, "strip", z.ZodTypeAny, {
|
815
|
-
type:
|
816
|
-
|
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;
|
930
|
+
declaration: Record<string, string | number | boolean | {
|
817
931
|
type: string;
|
818
932
|
filename: string;
|
819
933
|
originalFilename: string;
|
@@ -828,6 +942,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
828
942
|
residentialArea?: string | null | undefined;
|
829
943
|
street?: string | null | undefined;
|
830
944
|
zipCode?: string | null | undefined;
|
945
|
+
} | {
|
946
|
+
firstname: string;
|
947
|
+
surname: string;
|
948
|
+
middlename?: string | null | undefined;
|
831
949
|
} | {
|
832
950
|
country: string;
|
833
951
|
district: string;
|
@@ -850,10 +968,9 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
850
968
|
option: string;
|
851
969
|
filename: string;
|
852
970
|
originalFilename: string;
|
853
|
-
}[] | undefined>;
|
971
|
+
}[] | [string, string] | null | undefined>;
|
854
972
|
eventId: string;
|
855
|
-
|
856
|
-
metadata?: Record<string, string | number | boolean | {
|
973
|
+
annotation?: Record<string, string | number | boolean | {
|
857
974
|
type: string;
|
858
975
|
filename: string;
|
859
976
|
originalFilename: string;
|
@@ -868,6 +985,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
868
985
|
residentialArea?: string | null | undefined;
|
869
986
|
street?: string | null | undefined;
|
870
987
|
zipCode?: string | null | undefined;
|
988
|
+
} | {
|
989
|
+
firstname: string;
|
990
|
+
surname: string;
|
991
|
+
middlename?: string | null | undefined;
|
871
992
|
} | {
|
872
993
|
country: string;
|
873
994
|
district: string;
|
@@ -890,10 +1011,15 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
890
1011
|
option: string;
|
891
1012
|
filename: string;
|
892
1013
|
originalFilename: string;
|
893
|
-
}[] | undefined> | undefined;
|
1014
|
+
}[] | [string, string] | null | undefined> | undefined;
|
1015
|
+
originalActionId?: string | undefined;
|
1016
|
+
keepAssignment?: boolean | undefined;
|
894
1017
|
}, {
|
895
|
-
type:
|
896
|
-
|
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";
|
1019
|
+
status: "Rejected" | "Requested" | "Accepted";
|
1020
|
+
transactionId: string;
|
1021
|
+
eventId: string;
|
1022
|
+
declaration?: Record<string, string | number | boolean | {
|
897
1023
|
type: string;
|
898
1024
|
filename: string;
|
899
1025
|
originalFilename: string;
|
@@ -908,6 +1034,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
908
1034
|
residentialArea?: string | null | undefined;
|
909
1035
|
street?: string | null | undefined;
|
910
1036
|
zipCode?: string | null | undefined;
|
1037
|
+
} | {
|
1038
|
+
firstname: string;
|
1039
|
+
surname: string;
|
1040
|
+
middlename?: string | null | undefined;
|
911
1041
|
} | {
|
912
1042
|
country: string;
|
913
1043
|
district: string;
|
@@ -930,10 +1060,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
930
1060
|
option: string;
|
931
1061
|
filename: string;
|
932
1062
|
originalFilename: string;
|
933
|
-
}[] | undefined
|
934
|
-
|
935
|
-
transactionId: string;
|
936
|
-
metadata?: Record<string, string | number | boolean | {
|
1063
|
+
}[] | [string, string] | null | undefined> | undefined;
|
1064
|
+
annotation?: Record<string, string | number | boolean | {
|
937
1065
|
type: string;
|
938
1066
|
filename: string;
|
939
1067
|
originalFilename: string;
|
@@ -948,6 +1076,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
948
1076
|
residentialArea?: string | null | undefined;
|
949
1077
|
street?: string | null | undefined;
|
950
1078
|
zipCode?: string | null | undefined;
|
1079
|
+
} | {
|
1080
|
+
firstname: string;
|
1081
|
+
surname: string;
|
1082
|
+
middlename?: string | null | undefined;
|
951
1083
|
} | {
|
952
1084
|
country: string;
|
953
1085
|
district: string;
|
@@ -970,7 +1102,9 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
970
1102
|
option: string;
|
971
1103
|
filename: string;
|
972
1104
|
originalFilename: string;
|
973
|
-
}[] | undefined> | undefined;
|
1105
|
+
}[] | [string, string] | null | undefined> | undefined;
|
1106
|
+
originalActionId?: string | undefined;
|
1107
|
+
keepAssignment?: boolean | undefined;
|
974
1108
|
}>;
|
975
1109
|
export type Draft = z.infer<typeof Draft>;
|
976
1110
|
export type DraftInput = z.infer<typeof DraftInput>;
|