@opencrvs/toolkit 1.8.0-rc.f876361 → 1.8.0-rc.f89fbcb
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 +8398 -831
- package/dist/commons/conditionals/conditionals.d.ts +26 -11
- package/dist/commons/conditionals/validate.d.ts +18 -17
- package/dist/commons/events/ActionConfig.d.ts +120018 -1729
- package/dist/commons/events/ActionDocument.d.ts +2581 -554
- package/dist/commons/events/ActionInput.d.ts +2674 -499
- package/dist/commons/events/ActionType.d.ts +9 -3
- package/dist/commons/events/AdvancedSearchConfig.d.ts +1255 -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 +3730 -0
- package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
- package/dist/commons/events/Draft.d.ts +172 -46
- package/dist/commons/events/EventConfig.d.ts +57845 -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 +5780 -1066
- 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 +50248 -514
- package/dist/commons/events/PageConfig.d.ts +12472 -234
- 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 +7300 -20
- package/dist/commons/events/defineConfig.d.ts +9289 -58
- package/dist/commons/events/event.d.ts +54 -0
- package/dist/commons/events/field.d.ts +94 -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 +157 -157
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +13799 -78
- package/dist/commons/events/utils.test.d.ts +2 -0
- package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
- package/dist/conditionals/index.js +208 -185
- package/dist/events/index.js +4843 -2050
- 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,16 +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
|
-
}>, "id"
|
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";
|
274
|
+
status: "Rejected" | "Requested" | "Accepted";
|
275
|
+
transactionId: string;
|
276
|
+
createdByUserType: "system" | "user";
|
246
277
|
createdAt: string;
|
247
278
|
createdBy: string;
|
279
|
+
createdByRole: string;
|
248
280
|
declaration: Record<string, string | number | boolean | {
|
249
281
|
type: string;
|
250
282
|
filename: string;
|
@@ -260,6 +292,10 @@ export declare const Draft: z.ZodObject<{
|
|
260
292
|
residentialArea?: string | null | undefined;
|
261
293
|
street?: string | null | undefined;
|
262
294
|
zipCode?: string | null | undefined;
|
295
|
+
} | {
|
296
|
+
firstname: string;
|
297
|
+
surname: string;
|
298
|
+
middlename?: string | null | undefined;
|
263
299
|
} | {
|
264
300
|
country: string;
|
265
301
|
district: string;
|
@@ -282,8 +318,9 @@ export declare const Draft: z.ZodObject<{
|
|
282
318
|
option: string;
|
283
319
|
filename: string;
|
284
320
|
originalFilename: string;
|
285
|
-
}[] | undefined>;
|
286
|
-
|
321
|
+
}[] | [string, string] | null | undefined>;
|
322
|
+
createdBySignature?: string | null | undefined;
|
323
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
287
324
|
annotation?: Record<string, string | number | boolean | {
|
288
325
|
type: string;
|
289
326
|
filename: string;
|
@@ -299,6 +336,10 @@ export declare const Draft: z.ZodObject<{
|
|
299
336
|
residentialArea?: string | null | undefined;
|
300
337
|
street?: string | null | undefined;
|
301
338
|
zipCode?: string | null | undefined;
|
339
|
+
} | {
|
340
|
+
firstname: string;
|
341
|
+
surname: string;
|
342
|
+
middlename?: string | null | undefined;
|
302
343
|
} | {
|
303
344
|
country: string;
|
304
345
|
district: string;
|
@@ -321,12 +362,16 @@ export declare const Draft: z.ZodObject<{
|
|
321
362
|
option: string;
|
322
363
|
filename: string;
|
323
364
|
originalFilename: string;
|
324
|
-
}[] | undefined> | undefined;
|
325
|
-
originalActionId?: string | undefined;
|
365
|
+
}[] | [string, string] | null | undefined> | null | undefined;
|
366
|
+
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
326
367
|
}, {
|
327
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";
|
328
372
|
createdAt: string;
|
329
373
|
createdBy: string;
|
374
|
+
createdByRole: string;
|
330
375
|
declaration: Record<string, string | number | boolean | {
|
331
376
|
type: string;
|
332
377
|
filename: string;
|
@@ -342,6 +387,10 @@ export declare const Draft: z.ZodObject<{
|
|
342
387
|
residentialArea?: string | null | undefined;
|
343
388
|
street?: string | null | undefined;
|
344
389
|
zipCode?: string | null | undefined;
|
390
|
+
} | {
|
391
|
+
firstname: string;
|
392
|
+
surname: string;
|
393
|
+
middlename?: string | null | undefined;
|
345
394
|
} | {
|
346
395
|
country: string;
|
347
396
|
district: string;
|
@@ -364,8 +413,9 @@ export declare const Draft: z.ZodObject<{
|
|
364
413
|
option: string;
|
365
414
|
filename: string;
|
366
415
|
originalFilename: string;
|
367
|
-
}[] | undefined>;
|
368
|
-
|
416
|
+
}[] | [string, string] | null | undefined>;
|
417
|
+
createdBySignature?: string | null | undefined;
|
418
|
+
createdAtLocation?: string | null | undefined;
|
369
419
|
annotation?: Record<string, string | number | boolean | {
|
370
420
|
type: string;
|
371
421
|
filename: string;
|
@@ -381,6 +431,10 @@ export declare const Draft: z.ZodObject<{
|
|
381
431
|
residentialArea?: string | null | undefined;
|
382
432
|
street?: string | null | undefined;
|
383
433
|
zipCode?: string | null | undefined;
|
434
|
+
} | {
|
435
|
+
firstname: string;
|
436
|
+
surname: string;
|
437
|
+
middlename?: string | null | undefined;
|
384
438
|
} | {
|
385
439
|
country: string;
|
386
440
|
district: string;
|
@@ -403,18 +457,22 @@ export declare const Draft: z.ZodObject<{
|
|
403
457
|
option: string;
|
404
458
|
filename: string;
|
405
459
|
originalFilename: string;
|
406
|
-
}[] | undefined> | undefined;
|
407
|
-
originalActionId?: string | undefined;
|
460
|
+
}[] | [string, string] | null | undefined> | null | undefined;
|
461
|
+
originalActionId?: string | null | undefined;
|
408
462
|
}>;
|
409
463
|
}, "strip", z.ZodTypeAny, {
|
410
|
-
id: string
|
411
|
-
createdAt: string;
|
412
|
-
eventId: string;
|
464
|
+
id: string & z.BRAND<"UUID">;
|
413
465
|
transactionId: string;
|
466
|
+
createdAt: string;
|
467
|
+
eventId: string & z.BRAND<"UUID">;
|
414
468
|
action: {
|
415
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";
|
416
473
|
createdAt: string;
|
417
474
|
createdBy: string;
|
475
|
+
createdByRole: string;
|
418
476
|
declaration: Record<string, string | number | boolean | {
|
419
477
|
type: string;
|
420
478
|
filename: string;
|
@@ -430,6 +488,10 @@ export declare const Draft: z.ZodObject<{
|
|
430
488
|
residentialArea?: string | null | undefined;
|
431
489
|
street?: string | null | undefined;
|
432
490
|
zipCode?: string | null | undefined;
|
491
|
+
} | {
|
492
|
+
firstname: string;
|
493
|
+
surname: string;
|
494
|
+
middlename?: string | null | undefined;
|
433
495
|
} | {
|
434
496
|
country: string;
|
435
497
|
district: string;
|
@@ -452,8 +514,9 @@ export declare const Draft: z.ZodObject<{
|
|
452
514
|
option: string;
|
453
515
|
filename: string;
|
454
516
|
originalFilename: string;
|
455
|
-
}[] | undefined>;
|
456
|
-
|
517
|
+
}[] | [string, string] | null | undefined>;
|
518
|
+
createdBySignature?: string | null | undefined;
|
519
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
457
520
|
annotation?: Record<string, string | number | boolean | {
|
458
521
|
type: string;
|
459
522
|
filename: string;
|
@@ -469,6 +532,10 @@ export declare const Draft: z.ZodObject<{
|
|
469
532
|
residentialArea?: string | null | undefined;
|
470
533
|
street?: string | null | undefined;
|
471
534
|
zipCode?: string | null | undefined;
|
535
|
+
} | {
|
536
|
+
firstname: string;
|
537
|
+
surname: string;
|
538
|
+
middlename?: string | null | undefined;
|
472
539
|
} | {
|
473
540
|
country: string;
|
474
541
|
district: string;
|
@@ -491,18 +558,22 @@ export declare const Draft: z.ZodObject<{
|
|
491
558
|
option: string;
|
492
559
|
filename: string;
|
493
560
|
originalFilename: string;
|
494
|
-
}[] | undefined> | undefined;
|
495
|
-
originalActionId?: string | undefined;
|
561
|
+
}[] | [string, string] | null | undefined> | null | undefined;
|
562
|
+
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
496
563
|
};
|
497
564
|
}, {
|
498
565
|
id: string;
|
566
|
+
transactionId: string;
|
499
567
|
createdAt: string;
|
500
568
|
eventId: string;
|
501
|
-
transactionId: string;
|
502
569
|
action: {
|
503
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";
|
504
574
|
createdAt: string;
|
505
575
|
createdBy: string;
|
576
|
+
createdByRole: string;
|
506
577
|
declaration: Record<string, string | number | boolean | {
|
507
578
|
type: string;
|
508
579
|
filename: string;
|
@@ -518,6 +589,10 @@ export declare const Draft: z.ZodObject<{
|
|
518
589
|
residentialArea?: string | null | undefined;
|
519
590
|
street?: string | null | undefined;
|
520
591
|
zipCode?: string | null | undefined;
|
592
|
+
} | {
|
593
|
+
firstname: string;
|
594
|
+
surname: string;
|
595
|
+
middlename?: string | null | undefined;
|
521
596
|
} | {
|
522
597
|
country: string;
|
523
598
|
district: string;
|
@@ -540,8 +615,9 @@ export declare const Draft: z.ZodObject<{
|
|
540
615
|
option: string;
|
541
616
|
filename: string;
|
542
617
|
originalFilename: string;
|
543
|
-
}[] | undefined>;
|
544
|
-
|
618
|
+
}[] | [string, string] | null | undefined>;
|
619
|
+
createdBySignature?: string | null | undefined;
|
620
|
+
createdAtLocation?: string | null | undefined;
|
545
621
|
annotation?: Record<string, string | number | boolean | {
|
546
622
|
type: string;
|
547
623
|
filename: string;
|
@@ -557,6 +633,10 @@ export declare const Draft: z.ZodObject<{
|
|
557
633
|
residentialArea?: string | null | undefined;
|
558
634
|
street?: string | null | undefined;
|
559
635
|
zipCode?: string | null | undefined;
|
636
|
+
} | {
|
637
|
+
firstname: string;
|
638
|
+
surname: string;
|
639
|
+
middlename?: string | null | undefined;
|
560
640
|
} | {
|
561
641
|
country: string;
|
562
642
|
district: string;
|
@@ -579,14 +659,14 @@ export declare const Draft: z.ZodObject<{
|
|
579
659
|
option: string;
|
580
660
|
filename: string;
|
581
661
|
originalFilename: string;
|
582
|
-
}[] | undefined> | undefined;
|
583
|
-
originalActionId?: string | undefined;
|
662
|
+
}[] | [string, string] | null | undefined> | null | undefined;
|
663
|
+
originalActionId?: string | null | undefined;
|
584
664
|
};
|
585
665
|
}>;
|
586
666
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
587
|
-
eventId: z.ZodString
|
667
|
+
eventId: z.ZodBranded<z.ZodString, "UUID">;
|
588
668
|
transactionId: z.ZodString;
|
589
|
-
declaration: 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<{
|
590
670
|
filename: z.ZodString;
|
591
671
|
originalFilename: z.ZodString;
|
592
672
|
type: z.ZodString;
|
@@ -699,8 +779,20 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
699
779
|
addressLine2?: string | null | undefined;
|
700
780
|
addressLine3?: string | null | undefined;
|
701
781
|
postcodeOrZip?: string | null | undefined;
|
702
|
-
}
|
703
|
-
|
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<{
|
704
796
|
filename: z.ZodString;
|
705
797
|
originalFilename: z.ZodString;
|
706
798
|
type: z.ZodString;
|
@@ -813,12 +905,28 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
813
905
|
addressLine2?: string | null | undefined;
|
814
906
|
addressLine3?: string | null | undefined;
|
815
907
|
postcodeOrZip?: string | null | undefined;
|
816
|
-
}
|
817
|
-
|
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>;
|
818
923
|
}, {
|
819
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"]>;
|
820
926
|
}>, "strip", z.ZodTypeAny, {
|
821
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;
|
822
930
|
declaration: Record<string, string | number | boolean | {
|
823
931
|
type: string;
|
824
932
|
filename: string;
|
@@ -834,6 +942,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
834
942
|
residentialArea?: string | null | undefined;
|
835
943
|
street?: string | null | undefined;
|
836
944
|
zipCode?: string | null | undefined;
|
945
|
+
} | {
|
946
|
+
firstname: string;
|
947
|
+
surname: string;
|
948
|
+
middlename?: string | null | undefined;
|
837
949
|
} | {
|
838
950
|
country: string;
|
839
951
|
district: string;
|
@@ -856,9 +968,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
856
968
|
option: string;
|
857
969
|
filename: string;
|
858
970
|
originalFilename: string;
|
859
|
-
}[] | undefined>;
|
860
|
-
eventId: string
|
861
|
-
transactionId: string;
|
971
|
+
}[] | [string, string] | null | undefined>;
|
972
|
+
eventId: string & z.BRAND<"UUID">;
|
862
973
|
annotation?: Record<string, string | number | boolean | {
|
863
974
|
type: string;
|
864
975
|
filename: string;
|
@@ -874,6 +985,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
874
985
|
residentialArea?: string | null | undefined;
|
875
986
|
street?: string | null | undefined;
|
876
987
|
zipCode?: string | null | undefined;
|
988
|
+
} | {
|
989
|
+
firstname: string;
|
990
|
+
surname: string;
|
991
|
+
middlename?: string | null | undefined;
|
877
992
|
} | {
|
878
993
|
country: string;
|
879
994
|
district: string;
|
@@ -896,11 +1011,15 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
896
1011
|
option: string;
|
897
1012
|
filename: string;
|
898
1013
|
originalFilename: string;
|
899
|
-
}[] | undefined> | undefined;
|
900
|
-
originalActionId?: string | undefined;
|
1014
|
+
}[] | [string, string] | null | undefined> | undefined;
|
1015
|
+
originalActionId?: (string & z.BRAND<"UUID">) | undefined;
|
1016
|
+
keepAssignment?: boolean | undefined;
|
901
1017
|
}, {
|
902
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";
|
903
|
-
|
1019
|
+
status: "Rejected" | "Requested" | "Accepted";
|
1020
|
+
transactionId: string;
|
1021
|
+
eventId: string;
|
1022
|
+
declaration?: Record<string, string | number | boolean | {
|
904
1023
|
type: string;
|
905
1024
|
filename: string;
|
906
1025
|
originalFilename: string;
|
@@ -915,6 +1034,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
915
1034
|
residentialArea?: string | null | undefined;
|
916
1035
|
street?: string | null | undefined;
|
917
1036
|
zipCode?: string | null | undefined;
|
1037
|
+
} | {
|
1038
|
+
firstname: string;
|
1039
|
+
surname: string;
|
1040
|
+
middlename?: string | null | undefined;
|
918
1041
|
} | {
|
919
1042
|
country: string;
|
920
1043
|
district: string;
|
@@ -937,9 +1060,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
937
1060
|
option: string;
|
938
1061
|
filename: string;
|
939
1062
|
originalFilename: string;
|
940
|
-
}[] | undefined
|
941
|
-
eventId: string;
|
942
|
-
transactionId: string;
|
1063
|
+
}[] | [string, string] | null | undefined> | undefined;
|
943
1064
|
annotation?: Record<string, string | number | boolean | {
|
944
1065
|
type: string;
|
945
1066
|
filename: string;
|
@@ -955,6 +1076,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
955
1076
|
residentialArea?: string | null | undefined;
|
956
1077
|
street?: string | null | undefined;
|
957
1078
|
zipCode?: string | null | undefined;
|
1079
|
+
} | {
|
1080
|
+
firstname: string;
|
1081
|
+
surname: string;
|
1082
|
+
middlename?: string | null | undefined;
|
958
1083
|
} | {
|
959
1084
|
country: string;
|
960
1085
|
district: string;
|
@@ -977,8 +1102,9 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
977
1102
|
option: string;
|
978
1103
|
filename: string;
|
979
1104
|
originalFilename: string;
|
980
|
-
}[] | undefined> | undefined;
|
1105
|
+
}[] | [string, string] | null | undefined> | undefined;
|
981
1106
|
originalActionId?: string | undefined;
|
1107
|
+
keepAssignment?: boolean | undefined;
|
982
1108
|
}>;
|
983
1109
|
export type Draft = z.infer<typeof Draft>;
|
984
1110
|
export type DraftInput = z.infer<typeof DraftInput>;
|