@opencrvs/toolkit 1.8.0-rc.f8a9481 → 1.8.0-rc.f8aa0c5
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 +9393 -895
- package/dist/commons/conditionals/conditionals.d.ts +14 -6
- package/dist/commons/conditionals/validate.d.ts +6 -0
- package/dist/commons/events/ActionConfig.d.ts +120274 -1729
- package/dist/commons/events/ActionDocument.d.ts +2379 -564
- package/dist/commons/events/ActionInput.d.ts +1639 -367
- package/dist/commons/events/ActionType.d.ts +4 -0
- package/dist/commons/events/AdvancedSearchConfig.d.ts +1233 -22
- package/dist/commons/events/CompositeFieldValue.d.ts +28 -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 +154 -45
- package/dist/commons/events/EventConfig.d.ts +57834 -1340
- package/dist/commons/events/EventDocument.d.ts +1483 -403
- package/dist/commons/events/EventIndex.d.ts +2009 -30
- package/dist/commons/events/EventMetadata.d.ts +340 -48
- package/dist/commons/events/FieldConfig.d.ts +5607 -1052
- 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 +50356 -514
- package/dist/commons/events/PageConfig.d.ts +12494 -204
- package/dist/commons/events/SummaryConfig.d.ts +17 -52
- package/dist/commons/events/User.d.ts +31 -7
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +7272 -16
- package/dist/commons/events/defineConfig.d.ts +9297 -51
- 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 +7 -0
- package/dist/commons/events/scopes.d.ts +22 -3
- 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 +13811 -69
- package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
- package/dist/conditionals/index.js +95 -52
- package/dist/events/index.js +4415 -1885
- package/dist/scopes/index.d.ts +247 -1
- package/dist/scopes/index.js +231 -1
- package/package.json +4 -3
@@ -1,16 +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
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
|
-
|
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<{
|
14
17
|
filename: z.ZodString;
|
15
18
|
originalFilename: z.ZodString;
|
16
19
|
type: z.ZodString;
|
@@ -123,8 +126,20 @@ export declare const Draft: z.ZodObject<{
|
|
123
126
|
addressLine2?: string | null | undefined;
|
124
127
|
addressLine3?: string | null | undefined;
|
125
128
|
postcodeOrZip?: string | null | undefined;
|
126
|
-
}
|
127
|
-
|
129
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
130
|
+
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
131
|
+
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
132
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
133
|
+
}, "strip", z.ZodTypeAny, {
|
134
|
+
firstname?: string | null | undefined;
|
135
|
+
surname?: string | null | undefined;
|
136
|
+
middlename?: string | null | undefined;
|
137
|
+
}, {
|
138
|
+
firstname?: string | null | undefined;
|
139
|
+
surname?: string | null | undefined;
|
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<{
|
128
143
|
filename: z.ZodString;
|
129
144
|
originalFilename: z.ZodString;
|
130
145
|
type: z.ZodString;
|
@@ -237,16 +252,28 @@ export declare const Draft: z.ZodObject<{
|
|
237
252
|
addressLine2?: string | null | undefined;
|
238
253
|
addressLine3?: string | null | undefined;
|
239
254
|
postcodeOrZip?: string | null | undefined;
|
240
|
-
}
|
241
|
-
|
255
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
256
|
+
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
257
|
+
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
258
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
259
|
+
}, "strip", z.ZodTypeAny, {
|
260
|
+
firstname?: string | null | undefined;
|
261
|
+
surname?: string | null | undefined;
|
262
|
+
middlename?: string | null | undefined;
|
263
|
+
}, {
|
264
|
+
firstname?: string | null | undefined;
|
265
|
+
surname?: string | null | undefined;
|
266
|
+
middlename?: string | null | undefined;
|
267
|
+
}>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
|
242
268
|
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
243
|
-
originalActionId: z.ZodOptional<z.ZodString
|
269
|
+
originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
|
244
270
|
}, {
|
245
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"]>;
|
246
272
|
}>, "id">, "strip", z.ZodTypeAny, {
|
247
|
-
type: "
|
273
|
+
type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
248
274
|
status: "Rejected" | "Requested" | "Accepted";
|
249
275
|
transactionId: string;
|
276
|
+
createdByUserType: "system" | "user";
|
250
277
|
createdAt: string;
|
251
278
|
createdBy: string;
|
252
279
|
createdByRole: string;
|
@@ -265,6 +292,10 @@ export declare const Draft: z.ZodObject<{
|
|
265
292
|
residentialArea?: string | null | undefined;
|
266
293
|
street?: string | null | undefined;
|
267
294
|
zipCode?: string | null | undefined;
|
295
|
+
} | {
|
296
|
+
firstname?: string | null | undefined;
|
297
|
+
surname?: string | null | undefined;
|
298
|
+
middlename?: string | null | undefined;
|
268
299
|
} | {
|
269
300
|
country: string;
|
270
301
|
district: string;
|
@@ -287,8 +318,9 @@ export declare const Draft: z.ZodObject<{
|
|
287
318
|
option: string;
|
288
319
|
filename: string;
|
289
320
|
originalFilename: string;
|
290
|
-
}[] | undefined>;
|
291
|
-
|
321
|
+
}[] | [string, string] | null | undefined>;
|
322
|
+
createdBySignature?: string | null | undefined;
|
323
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
292
324
|
annotation?: Record<string, string | number | boolean | {
|
293
325
|
type: string;
|
294
326
|
filename: string;
|
@@ -304,6 +336,10 @@ export declare const Draft: z.ZodObject<{
|
|
304
336
|
residentialArea?: string | null | undefined;
|
305
337
|
street?: string | null | undefined;
|
306
338
|
zipCode?: string | null | undefined;
|
339
|
+
} | {
|
340
|
+
firstname?: string | null | undefined;
|
341
|
+
surname?: string | null | undefined;
|
342
|
+
middlename?: string | null | undefined;
|
307
343
|
} | {
|
308
344
|
country: string;
|
309
345
|
district: string;
|
@@ -326,12 +362,13 @@ export declare const Draft: z.ZodObject<{
|
|
326
362
|
option: string;
|
327
363
|
filename: string;
|
328
364
|
originalFilename: string;
|
329
|
-
}[] | undefined> | undefined;
|
330
|
-
originalActionId?: string | undefined;
|
365
|
+
}[] | [string, string] | null | undefined> | null | undefined;
|
366
|
+
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
331
367
|
}, {
|
332
|
-
type: "
|
368
|
+
type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
333
369
|
status: "Rejected" | "Requested" | "Accepted";
|
334
370
|
transactionId: string;
|
371
|
+
createdByUserType: "system" | "user";
|
335
372
|
createdAt: string;
|
336
373
|
createdBy: string;
|
337
374
|
createdByRole: string;
|
@@ -350,6 +387,10 @@ export declare const Draft: z.ZodObject<{
|
|
350
387
|
residentialArea?: string | null | undefined;
|
351
388
|
street?: string | null | undefined;
|
352
389
|
zipCode?: string | null | undefined;
|
390
|
+
} | {
|
391
|
+
firstname?: string | null | undefined;
|
392
|
+
surname?: string | null | undefined;
|
393
|
+
middlename?: string | null | undefined;
|
353
394
|
} | {
|
354
395
|
country: string;
|
355
396
|
district: string;
|
@@ -372,8 +413,9 @@ export declare const Draft: z.ZodObject<{
|
|
372
413
|
option: string;
|
373
414
|
filename: string;
|
374
415
|
originalFilename: string;
|
375
|
-
}[] | undefined>;
|
376
|
-
|
416
|
+
}[] | [string, string] | null | undefined>;
|
417
|
+
createdBySignature?: string | null | undefined;
|
418
|
+
createdAtLocation?: string | null | undefined;
|
377
419
|
annotation?: Record<string, string | number | boolean | {
|
378
420
|
type: string;
|
379
421
|
filename: string;
|
@@ -389,6 +431,10 @@ export declare const Draft: z.ZodObject<{
|
|
389
431
|
residentialArea?: string | null | undefined;
|
390
432
|
street?: string | null | undefined;
|
391
433
|
zipCode?: string | null | undefined;
|
434
|
+
} | {
|
435
|
+
firstname?: string | null | undefined;
|
436
|
+
surname?: string | null | undefined;
|
437
|
+
middlename?: string | null | undefined;
|
392
438
|
} | {
|
393
439
|
country: string;
|
394
440
|
district: string;
|
@@ -411,18 +457,19 @@ export declare const Draft: z.ZodObject<{
|
|
411
457
|
option: string;
|
412
458
|
filename: string;
|
413
459
|
originalFilename: string;
|
414
|
-
}[] | undefined> | undefined;
|
415
|
-
originalActionId?: string | undefined;
|
460
|
+
}[] | [string, string] | null | undefined> | null | undefined;
|
461
|
+
originalActionId?: string | null | undefined;
|
416
462
|
}>;
|
417
463
|
}, "strip", z.ZodTypeAny, {
|
418
|
-
id: string
|
464
|
+
id: string & z.BRAND<"UUID">;
|
419
465
|
transactionId: string;
|
420
466
|
createdAt: string;
|
421
|
-
eventId: string
|
467
|
+
eventId: string & z.BRAND<"UUID">;
|
422
468
|
action: {
|
423
|
-
type: "
|
469
|
+
type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
424
470
|
status: "Rejected" | "Requested" | "Accepted";
|
425
471
|
transactionId: string;
|
472
|
+
createdByUserType: "system" | "user";
|
426
473
|
createdAt: string;
|
427
474
|
createdBy: string;
|
428
475
|
createdByRole: string;
|
@@ -441,6 +488,10 @@ export declare const Draft: z.ZodObject<{
|
|
441
488
|
residentialArea?: string | null | undefined;
|
442
489
|
street?: string | null | undefined;
|
443
490
|
zipCode?: string | null | undefined;
|
491
|
+
} | {
|
492
|
+
firstname?: string | null | undefined;
|
493
|
+
surname?: string | null | undefined;
|
494
|
+
middlename?: string | null | undefined;
|
444
495
|
} | {
|
445
496
|
country: string;
|
446
497
|
district: string;
|
@@ -463,8 +514,9 @@ export declare const Draft: z.ZodObject<{
|
|
463
514
|
option: string;
|
464
515
|
filename: string;
|
465
516
|
originalFilename: string;
|
466
|
-
}[] | undefined>;
|
467
|
-
|
517
|
+
}[] | [string, string] | null | undefined>;
|
518
|
+
createdBySignature?: string | null | undefined;
|
519
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
468
520
|
annotation?: Record<string, string | number | boolean | {
|
469
521
|
type: string;
|
470
522
|
filename: string;
|
@@ -480,6 +532,10 @@ export declare const Draft: z.ZodObject<{
|
|
480
532
|
residentialArea?: string | null | undefined;
|
481
533
|
street?: string | null | undefined;
|
482
534
|
zipCode?: string | null | undefined;
|
535
|
+
} | {
|
536
|
+
firstname?: string | null | undefined;
|
537
|
+
surname?: string | null | undefined;
|
538
|
+
middlename?: string | null | undefined;
|
483
539
|
} | {
|
484
540
|
country: string;
|
485
541
|
district: string;
|
@@ -502,8 +558,8 @@ export declare const Draft: z.ZodObject<{
|
|
502
558
|
option: string;
|
503
559
|
filename: string;
|
504
560
|
originalFilename: string;
|
505
|
-
}[] | undefined> | undefined;
|
506
|
-
originalActionId?: string | undefined;
|
561
|
+
}[] | [string, string] | null | undefined> | null | undefined;
|
562
|
+
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
507
563
|
};
|
508
564
|
}, {
|
509
565
|
id: string;
|
@@ -511,9 +567,10 @@ export declare const Draft: z.ZodObject<{
|
|
511
567
|
createdAt: string;
|
512
568
|
eventId: string;
|
513
569
|
action: {
|
514
|
-
type: "
|
570
|
+
type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
515
571
|
status: "Rejected" | "Requested" | "Accepted";
|
516
572
|
transactionId: string;
|
573
|
+
createdByUserType: "system" | "user";
|
517
574
|
createdAt: string;
|
518
575
|
createdBy: string;
|
519
576
|
createdByRole: string;
|
@@ -532,6 +589,10 @@ export declare const Draft: z.ZodObject<{
|
|
532
589
|
residentialArea?: string | null | undefined;
|
533
590
|
street?: string | null | undefined;
|
534
591
|
zipCode?: string | null | undefined;
|
592
|
+
} | {
|
593
|
+
firstname?: string | null | undefined;
|
594
|
+
surname?: string | null | undefined;
|
595
|
+
middlename?: string | null | undefined;
|
535
596
|
} | {
|
536
597
|
country: string;
|
537
598
|
district: string;
|
@@ -554,8 +615,9 @@ export declare const Draft: z.ZodObject<{
|
|
554
615
|
option: string;
|
555
616
|
filename: string;
|
556
617
|
originalFilename: string;
|
557
|
-
}[] | undefined>;
|
558
|
-
|
618
|
+
}[] | [string, string] | null | undefined>;
|
619
|
+
createdBySignature?: string | null | undefined;
|
620
|
+
createdAtLocation?: string | null | undefined;
|
559
621
|
annotation?: Record<string, string | number | boolean | {
|
560
622
|
type: string;
|
561
623
|
filename: string;
|
@@ -571,6 +633,10 @@ export declare const Draft: z.ZodObject<{
|
|
571
633
|
residentialArea?: string | null | undefined;
|
572
634
|
street?: string | null | undefined;
|
573
635
|
zipCode?: string | null | undefined;
|
636
|
+
} | {
|
637
|
+
firstname?: string | null | undefined;
|
638
|
+
surname?: string | null | undefined;
|
639
|
+
middlename?: string | null | undefined;
|
574
640
|
} | {
|
575
641
|
country: string;
|
576
642
|
district: string;
|
@@ -593,14 +659,14 @@ export declare const Draft: z.ZodObject<{
|
|
593
659
|
option: string;
|
594
660
|
filename: string;
|
595
661
|
originalFilename: string;
|
596
|
-
}[] | undefined> | undefined;
|
597
|
-
originalActionId?: string | undefined;
|
662
|
+
}[] | [string, string] | null | undefined> | null | undefined;
|
663
|
+
originalActionId?: string | null | undefined;
|
598
664
|
};
|
599
665
|
}>;
|
600
666
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
601
|
-
eventId: z.ZodString
|
667
|
+
eventId: z.ZodBranded<z.ZodString, "UUID">;
|
602
668
|
transactionId: z.ZodString;
|
603
|
-
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<{
|
604
670
|
filename: z.ZodString;
|
605
671
|
originalFilename: z.ZodString;
|
606
672
|
type: z.ZodString;
|
@@ -713,8 +779,20 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
713
779
|
addressLine2?: string | null | undefined;
|
714
780
|
addressLine3?: string | null | undefined;
|
715
781
|
postcodeOrZip?: string | null | undefined;
|
716
|
-
}
|
717
|
-
|
782
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
783
|
+
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
784
|
+
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
785
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
786
|
+
}, "strip", z.ZodTypeAny, {
|
787
|
+
firstname?: string | null | undefined;
|
788
|
+
surname?: string | null | undefined;
|
789
|
+
middlename?: string | null | undefined;
|
790
|
+
}, {
|
791
|
+
firstname?: string | null | undefined;
|
792
|
+
surname?: string | null | undefined;
|
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<{
|
718
796
|
filename: z.ZodString;
|
719
797
|
originalFilename: z.ZodString;
|
720
798
|
type: z.ZodString;
|
@@ -827,13 +905,27 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
827
905
|
addressLine2?: string | null | undefined;
|
828
906
|
addressLine3?: string | null | undefined;
|
829
907
|
postcodeOrZip?: string | null | undefined;
|
830
|
-
}
|
831
|
-
|
908
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
909
|
+
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
910
|
+
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
911
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
912
|
+
}, "strip", z.ZodTypeAny, {
|
913
|
+
firstname?: string | null | undefined;
|
914
|
+
surname?: string | null | undefined;
|
915
|
+
middlename?: string | null | undefined;
|
916
|
+
}, {
|
917
|
+
firstname?: string | null | undefined;
|
918
|
+
surname?: string | null | undefined;
|
919
|
+
middlename?: string | null | undefined;
|
920
|
+
}>, z.ZodNull]>, z.ZodUndefined]>]>>>;
|
921
|
+
originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
|
832
922
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
833
923
|
}, {
|
834
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"]>;
|
835
926
|
}>, "strip", z.ZodTypeAny, {
|
836
|
-
type: "
|
927
|
+
type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
928
|
+
status: "Rejected" | "Requested" | "Accepted";
|
837
929
|
transactionId: string;
|
838
930
|
declaration: Record<string, string | number | boolean | {
|
839
931
|
type: string;
|
@@ -850,6 +942,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
850
942
|
residentialArea?: string | null | undefined;
|
851
943
|
street?: string | null | undefined;
|
852
944
|
zipCode?: string | null | undefined;
|
945
|
+
} | {
|
946
|
+
firstname?: string | null | undefined;
|
947
|
+
surname?: string | null | undefined;
|
948
|
+
middlename?: string | null | undefined;
|
853
949
|
} | {
|
854
950
|
country: string;
|
855
951
|
district: string;
|
@@ -872,8 +968,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
872
968
|
option: string;
|
873
969
|
filename: string;
|
874
970
|
originalFilename: string;
|
875
|
-
}[] | undefined>;
|
876
|
-
eventId: string
|
971
|
+
}[] | [string, string] | null | undefined>;
|
972
|
+
eventId: string & z.BRAND<"UUID">;
|
877
973
|
annotation?: Record<string, string | number | boolean | {
|
878
974
|
type: string;
|
879
975
|
filename: string;
|
@@ -889,6 +985,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
889
985
|
residentialArea?: string | null | undefined;
|
890
986
|
street?: string | null | undefined;
|
891
987
|
zipCode?: string | null | undefined;
|
988
|
+
} | {
|
989
|
+
firstname?: string | null | undefined;
|
990
|
+
surname?: string | null | undefined;
|
991
|
+
middlename?: string | null | undefined;
|
892
992
|
} | {
|
893
993
|
country: string;
|
894
994
|
district: string;
|
@@ -911,11 +1011,12 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
911
1011
|
option: string;
|
912
1012
|
filename: string;
|
913
1013
|
originalFilename: string;
|
914
|
-
}[] | undefined> | undefined;
|
915
|
-
originalActionId?: string | undefined;
|
1014
|
+
}[] | [string, string] | null | undefined> | undefined;
|
1015
|
+
originalActionId?: (string & z.BRAND<"UUID">) | undefined;
|
916
1016
|
keepAssignment?: boolean | undefined;
|
917
1017
|
}, {
|
918
|
-
type: "
|
1018
|
+
type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
1019
|
+
status: "Rejected" | "Requested" | "Accepted";
|
919
1020
|
transactionId: string;
|
920
1021
|
eventId: string;
|
921
1022
|
declaration?: Record<string, string | number | boolean | {
|
@@ -933,6 +1034,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
933
1034
|
residentialArea?: string | null | undefined;
|
934
1035
|
street?: string | null | undefined;
|
935
1036
|
zipCode?: string | null | undefined;
|
1037
|
+
} | {
|
1038
|
+
firstname?: string | null | undefined;
|
1039
|
+
surname?: string | null | undefined;
|
1040
|
+
middlename?: string | null | undefined;
|
936
1041
|
} | {
|
937
1042
|
country: string;
|
938
1043
|
district: string;
|
@@ -955,7 +1060,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
955
1060
|
option: string;
|
956
1061
|
filename: string;
|
957
1062
|
originalFilename: string;
|
958
|
-
}[] | undefined> | undefined;
|
1063
|
+
}[] | [string, string] | null | undefined> | undefined;
|
959
1064
|
annotation?: Record<string, string | number | boolean | {
|
960
1065
|
type: string;
|
961
1066
|
filename: string;
|
@@ -971,6 +1076,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
971
1076
|
residentialArea?: string | null | undefined;
|
972
1077
|
street?: string | null | undefined;
|
973
1078
|
zipCode?: string | null | undefined;
|
1079
|
+
} | {
|
1080
|
+
firstname?: string | null | undefined;
|
1081
|
+
surname?: string | null | undefined;
|
1082
|
+
middlename?: string | null | undefined;
|
974
1083
|
} | {
|
975
1084
|
country: string;
|
976
1085
|
district: string;
|
@@ -993,7 +1102,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
993
1102
|
option: string;
|
994
1103
|
filename: string;
|
995
1104
|
originalFilename: string;
|
996
|
-
}[] | undefined> | undefined;
|
1105
|
+
}[] | [string, string] | null | undefined> | undefined;
|
997
1106
|
originalActionId?: string | undefined;
|
998
1107
|
keepAssignment?: boolean | undefined;
|
999
1108
|
}>;
|