@opencrvs/toolkit 1.8.0-rc.f9fb039 → 1.8.0-rc.fa49ae3
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 +15058 -4901
- package/dist/commons/conditionals/conditionals.d.ts +8 -3
- package/dist/commons/conditionals/validate.d.ts +6 -0
- package/dist/commons/events/ActionConfig.d.ts +32976 -12647
- package/dist/commons/events/ActionDocument.d.ts +2005 -309
- package/dist/commons/events/ActionInput.d.ts +1455 -183
- package/dist/commons/events/ActionType.d.ts +4 -0
- package/dist/commons/events/AdvancedSearchConfig.d.ts +509 -12
- 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 +3008 -0
- package/dist/commons/events/CreatedAtLocation.d.ts +3 -0
- package/dist/commons/events/Draft.d.ts +127 -21
- package/dist/commons/events/EventConfig.d.ts +27068 -16943
- package/dist/commons/events/EventDocument.d.ts +1308 -251
- package/dist/commons/events/EventIndex.d.ts +502 -486
- package/dist/commons/events/EventInput.d.ts +0 -13
- package/dist/commons/events/EventMetadata.d.ts +104 -77
- package/dist/commons/events/FieldConfig.d.ts +2074 -1202
- package/dist/commons/events/FieldType.d.ts +4 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +94 -52
- package/dist/commons/events/FieldValue.d.ts +43 -5
- package/dist/commons/events/FormConfig.d.ts +10259 -4769
- package/dist/commons/events/PageConfig.d.ts +3480 -2134
- package/dist/commons/events/SummaryConfig.d.ts +17 -5
- 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 +4110 -659
- package/dist/commons/events/defineConfig.d.ts +2435 -680
- package/dist/commons/events/event.d.ts +5 -5
- package/dist/commons/events/field.d.ts +10 -10
- package/dist/commons/events/index.d.ts +4 -0
- package/dist/commons/events/scopes.d.ts +20 -1
- package/dist/commons/events/serializer.d.ts +2 -0
- package/dist/commons/events/test.utils.d.ts +147 -41
- package/dist/commons/events/utils.d.ts +10013 -326
- package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
- package/dist/conditionals/index.js +45 -8
- package/dist/events/index.js +2836 -1172
- package/dist/scopes/index.d.ts +158 -1
- package/dist/scopes/index.js +152 -1
- package/package.json +1 -1
@@ -7,9 +7,12 @@ export declare const Draft: z.ZodObject<{
|
|
7
7
|
action: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
8
8
|
id: z.ZodString;
|
9
9
|
transactionId: z.ZodString;
|
10
|
+
creator: z.ZodOptional<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>>;
|
13
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;
|
@@ -123,7 +126,19 @@ 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
|
-
}
|
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]>]>>;
|
127
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<{
|
128
143
|
filename: z.ZodString;
|
129
144
|
originalFilename: z.ZodString;
|
@@ -237,8 +252,19 @@ 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.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]>]>>>;
|
242
268
|
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
243
269
|
originalActionId: z.ZodOptional<z.ZodString>;
|
244
270
|
}, {
|
@@ -265,6 +291,10 @@ export declare const Draft: z.ZodObject<{
|
|
265
291
|
residentialArea?: string | null | undefined;
|
266
292
|
street?: string | null | undefined;
|
267
293
|
zipCode?: string | null | undefined;
|
294
|
+
} | {
|
295
|
+
firstname: string;
|
296
|
+
surname: string;
|
297
|
+
middlename?: string | null | undefined;
|
268
298
|
} | {
|
269
299
|
country: string;
|
270
300
|
district: string;
|
@@ -287,8 +317,10 @@ export declare const Draft: z.ZodObject<{
|
|
287
317
|
option: string;
|
288
318
|
filename: string;
|
289
319
|
originalFilename: string;
|
290
|
-
}[] | [string, string] | undefined>;
|
291
|
-
|
320
|
+
}[] | [string, string] | null | undefined>;
|
321
|
+
creator?: "system" | "user" | undefined;
|
322
|
+
createdBySignature?: string | null | undefined;
|
323
|
+
createdAtLocation?: string | 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;
|
341
|
+
surname: string;
|
342
|
+
middlename?: string | null | undefined;
|
307
343
|
} | {
|
308
344
|
country: string;
|
309
345
|
district: string;
|
@@ -326,7 +362,7 @@ export declare const Draft: z.ZodObject<{
|
|
326
362
|
option: string;
|
327
363
|
filename: string;
|
328
364
|
originalFilename: string;
|
329
|
-
}[] | [string, string] | undefined> | undefined;
|
365
|
+
}[] | [string, string] | null | undefined> | undefined;
|
330
366
|
originalActionId?: string | undefined;
|
331
367
|
}, {
|
332
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";
|
@@ -350,6 +386,10 @@ export declare const Draft: z.ZodObject<{
|
|
350
386
|
residentialArea?: string | null | undefined;
|
351
387
|
street?: string | null | undefined;
|
352
388
|
zipCode?: string | null | undefined;
|
389
|
+
} | {
|
390
|
+
firstname: string;
|
391
|
+
surname: string;
|
392
|
+
middlename?: string | null | undefined;
|
353
393
|
} | {
|
354
394
|
country: string;
|
355
395
|
district: string;
|
@@ -372,8 +412,10 @@ export declare const Draft: z.ZodObject<{
|
|
372
412
|
option: string;
|
373
413
|
filename: string;
|
374
414
|
originalFilename: string;
|
375
|
-
}[] | [string, string] | undefined>;
|
376
|
-
|
415
|
+
}[] | [string, string] | null | undefined>;
|
416
|
+
creator?: "system" | "user" | 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;
|
436
|
+
surname: string;
|
437
|
+
middlename?: string | null | undefined;
|
392
438
|
} | {
|
393
439
|
country: string;
|
394
440
|
district: string;
|
@@ -411,7 +457,7 @@ export declare const Draft: z.ZodObject<{
|
|
411
457
|
option: string;
|
412
458
|
filename: string;
|
413
459
|
originalFilename: string;
|
414
|
-
}[] | [string, string] | undefined> | undefined;
|
460
|
+
}[] | [string, string] | null | undefined> | undefined;
|
415
461
|
originalActionId?: string | undefined;
|
416
462
|
}>;
|
417
463
|
}, "strip", z.ZodTypeAny, {
|
@@ -441,6 +487,10 @@ export declare const Draft: z.ZodObject<{
|
|
441
487
|
residentialArea?: string | null | undefined;
|
442
488
|
street?: string | null | undefined;
|
443
489
|
zipCode?: string | null | undefined;
|
490
|
+
} | {
|
491
|
+
firstname: string;
|
492
|
+
surname: string;
|
493
|
+
middlename?: string | null | undefined;
|
444
494
|
} | {
|
445
495
|
country: string;
|
446
496
|
district: string;
|
@@ -463,8 +513,10 @@ export declare const Draft: z.ZodObject<{
|
|
463
513
|
option: string;
|
464
514
|
filename: string;
|
465
515
|
originalFilename: string;
|
466
|
-
}[] | [string, string] | undefined>;
|
467
|
-
|
516
|
+
}[] | [string, string] | null | undefined>;
|
517
|
+
creator?: "system" | "user" | undefined;
|
518
|
+
createdBySignature?: string | null | undefined;
|
519
|
+
createdAtLocation?: string | 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;
|
537
|
+
surname: string;
|
538
|
+
middlename?: string | null | undefined;
|
483
539
|
} | {
|
484
540
|
country: string;
|
485
541
|
district: string;
|
@@ -502,7 +558,7 @@ export declare const Draft: z.ZodObject<{
|
|
502
558
|
option: string;
|
503
559
|
filename: string;
|
504
560
|
originalFilename: string;
|
505
|
-
}[] | [string, string] | undefined> | undefined;
|
561
|
+
}[] | [string, string] | null | undefined> | undefined;
|
506
562
|
originalActionId?: string | undefined;
|
507
563
|
};
|
508
564
|
}, {
|
@@ -532,6 +588,10 @@ export declare const Draft: z.ZodObject<{
|
|
532
588
|
residentialArea?: string | null | undefined;
|
533
589
|
street?: string | null | undefined;
|
534
590
|
zipCode?: string | null | undefined;
|
591
|
+
} | {
|
592
|
+
firstname: string;
|
593
|
+
surname: string;
|
594
|
+
middlename?: string | null | undefined;
|
535
595
|
} | {
|
536
596
|
country: string;
|
537
597
|
district: string;
|
@@ -554,8 +614,10 @@ export declare const Draft: z.ZodObject<{
|
|
554
614
|
option: string;
|
555
615
|
filename: string;
|
556
616
|
originalFilename: string;
|
557
|
-
}[] | [string, string] | undefined>;
|
558
|
-
|
617
|
+
}[] | [string, string] | null | undefined>;
|
618
|
+
creator?: "system" | "user" | 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;
|
638
|
+
surname: string;
|
639
|
+
middlename?: string | null | undefined;
|
574
640
|
} | {
|
575
641
|
country: string;
|
576
642
|
district: string;
|
@@ -593,7 +659,7 @@ export declare const Draft: z.ZodObject<{
|
|
593
659
|
option: string;
|
594
660
|
filename: string;
|
595
661
|
originalFilename: string;
|
596
|
-
}[] | [string, string] | undefined> | undefined;
|
662
|
+
}[] | [string, string] | null | undefined> | undefined;
|
597
663
|
originalActionId?: string | undefined;
|
598
664
|
};
|
599
665
|
}>;
|
@@ -713,7 +779,19 @@ 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
|
-
}
|
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]>]>>>;
|
717
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;
|
@@ -827,7 +905,19 @@ 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
|
-
}
|
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]>]>>>;
|
831
921
|
originalActionId: z.ZodOptional<z.ZodString>;
|
832
922
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
833
923
|
}, {
|
@@ -852,6 +942,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
852
942
|
residentialArea?: string | null | undefined;
|
853
943
|
street?: string | null | undefined;
|
854
944
|
zipCode?: string | null | undefined;
|
945
|
+
} | {
|
946
|
+
firstname: string;
|
947
|
+
surname: string;
|
948
|
+
middlename?: string | null | undefined;
|
855
949
|
} | {
|
856
950
|
country: string;
|
857
951
|
district: string;
|
@@ -874,7 +968,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
874
968
|
option: string;
|
875
969
|
filename: string;
|
876
970
|
originalFilename: string;
|
877
|
-
}[] | [string, string] | undefined>;
|
971
|
+
}[] | [string, string] | null | undefined>;
|
878
972
|
eventId: string;
|
879
973
|
annotation?: Record<string, string | number | boolean | {
|
880
974
|
type: string;
|
@@ -891,6 +985,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
891
985
|
residentialArea?: string | null | undefined;
|
892
986
|
street?: string | null | undefined;
|
893
987
|
zipCode?: string | null | undefined;
|
988
|
+
} | {
|
989
|
+
firstname: string;
|
990
|
+
surname: string;
|
991
|
+
middlename?: string | null | undefined;
|
894
992
|
} | {
|
895
993
|
country: string;
|
896
994
|
district: string;
|
@@ -913,7 +1011,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
913
1011
|
option: string;
|
914
1012
|
filename: string;
|
915
1013
|
originalFilename: string;
|
916
|
-
}[] | [string, string] | undefined> | undefined;
|
1014
|
+
}[] | [string, string] | null | undefined> | undefined;
|
917
1015
|
originalActionId?: string | undefined;
|
918
1016
|
keepAssignment?: boolean | undefined;
|
919
1017
|
}, {
|
@@ -936,6 +1034,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
936
1034
|
residentialArea?: string | null | undefined;
|
937
1035
|
street?: string | null | undefined;
|
938
1036
|
zipCode?: string | null | undefined;
|
1037
|
+
} | {
|
1038
|
+
firstname: string;
|
1039
|
+
surname: string;
|
1040
|
+
middlename?: string | null | undefined;
|
939
1041
|
} | {
|
940
1042
|
country: string;
|
941
1043
|
district: string;
|
@@ -958,7 +1060,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
958
1060
|
option: string;
|
959
1061
|
filename: string;
|
960
1062
|
originalFilename: string;
|
961
|
-
}[] | [string, string] | undefined> | undefined;
|
1063
|
+
}[] | [string, string] | null | undefined> | undefined;
|
962
1064
|
annotation?: Record<string, string | number | boolean | {
|
963
1065
|
type: string;
|
964
1066
|
filename: string;
|
@@ -974,6 +1076,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
974
1076
|
residentialArea?: string | null | undefined;
|
975
1077
|
street?: string | null | undefined;
|
976
1078
|
zipCode?: string | null | undefined;
|
1079
|
+
} | {
|
1080
|
+
firstname: string;
|
1081
|
+
surname: string;
|
1082
|
+
middlename?: string | null | undefined;
|
977
1083
|
} | {
|
978
1084
|
country: string;
|
979
1085
|
district: string;
|
@@ -996,7 +1102,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
996
1102
|
option: string;
|
997
1103
|
filename: string;
|
998
1104
|
originalFilename: string;
|
999
|
-
}[] | [string, string] | undefined> | undefined;
|
1105
|
+
}[] | [string, string] | null | undefined> | undefined;
|
1000
1106
|
originalActionId?: string | undefined;
|
1001
1107
|
keepAssignment?: boolean | undefined;
|
1002
1108
|
}>;
|