@opencrvs/toolkit 1.8.1-rc.e32d7b8 → 1.8.1-rc.e59d03c
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 +433 -796
- package/dist/commons/conditionals/validate.d.ts +11 -2
- package/dist/commons/events/ActionConfig.d.ts +2004 -366
- package/dist/commons/events/ActionDocument.d.ts +1302 -1389
- package/dist/commons/events/ActionInput.d.ts +658 -1136
- package/dist/commons/events/AdvancedSearchConfig.d.ts +83 -65
- package/dist/commons/events/CompositeFieldValue.d.ts +6 -6
- package/dist/commons/events/CountryConfigQueryInput.d.ts +88 -88
- package/dist/commons/events/Draft.d.ts +48 -92
- package/dist/commons/events/EventConfig.d.ts +695 -168
- package/dist/commons/events/EventDocument.d.ts +475 -846
- package/dist/commons/events/EventIndex.d.ts +184 -62
- package/dist/commons/events/EventMetadata.d.ts +9 -9
- package/dist/commons/events/FieldConfig.d.ts +254 -43
- package/dist/commons/events/FieldTypeMapping.d.ts +16 -16
- package/dist/commons/events/FieldValue.d.ts +12 -12
- package/dist/commons/events/FormConfig.d.ts +1032 -246
- package/dist/commons/events/PageConfig.d.ts +264 -46
- package/dist/commons/events/WorkqueueConfig.d.ts +288 -164
- package/dist/commons/events/defineConfig.d.ts +129 -30
- package/dist/commons/events/event.d.ts +68 -6
- package/dist/commons/events/field.d.ts +14 -0
- package/dist/commons/events/test.utils.d.ts +17 -13
- package/dist/commons/events/utils.d.ts +236 -64
- package/dist/conditionals/index.js +3 -2
- package/dist/events/index.js +265 -102
- package/package.json +1 -1
- package/tsconfig.json +1 -1
- package/dist/commons/conditionals/conditionals.test.d.ts +0 -2
- package/dist/commons/conditionals/validate-address.test.d.ts +0 -2
- package/dist/commons/conditionals/validate.test.d.ts +0 -2
- package/dist/commons/events/utils.test.d.ts +0 -2
@@ -136,16 +136,16 @@ export declare const Draft: z.ZodObject<{
|
|
136
136
|
addressLine3?: string | null | undefined;
|
137
137
|
postcodeOrZip?: string | null | undefined;
|
138
138
|
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
139
|
-
firstname: z.
|
140
|
-
surname: z.
|
139
|
+
firstname: z.ZodString;
|
140
|
+
surname: z.ZodString;
|
141
141
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
142
142
|
}, "strip", z.ZodTypeAny, {
|
143
|
-
firstname
|
144
|
-
surname
|
143
|
+
firstname: string;
|
144
|
+
surname: string;
|
145
145
|
middlename?: string | null | undefined;
|
146
146
|
}, {
|
147
|
-
firstname
|
148
|
-
surname
|
147
|
+
firstname: string;
|
148
|
+
surname: string;
|
149
149
|
middlename?: string | null | undefined;
|
150
150
|
}>, z.ZodNull]>, z.ZodUndefined]>]>>;
|
151
151
|
annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
|
@@ -271,28 +271,18 @@ export declare const Draft: z.ZodObject<{
|
|
271
271
|
addressLine3?: string | null | undefined;
|
272
272
|
postcodeOrZip?: string | null | undefined;
|
273
273
|
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
274
|
-
firstname: z.
|
275
|
-
surname: z.
|
274
|
+
firstname: z.ZodString;
|
275
|
+
surname: z.ZodString;
|
276
276
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
277
277
|
}, "strip", z.ZodTypeAny, {
|
278
|
-
firstname
|
279
|
-
surname
|
278
|
+
firstname: string;
|
279
|
+
surname: string;
|
280
280
|
middlename?: string | null | undefined;
|
281
281
|
}, {
|
282
|
-
firstname
|
283
|
-
surname
|
282
|
+
firstname: string;
|
283
|
+
surname: string;
|
284
284
|
middlename?: string | null | undefined;
|
285
285
|
}>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
|
286
|
-
actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
287
|
-
templateId: z.ZodOptional<z.ZodString>;
|
288
|
-
isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
|
289
|
-
}, "strip", z.ZodTypeAny, {
|
290
|
-
templateId?: string | undefined;
|
291
|
-
isImmediateCorrection?: boolean | undefined;
|
292
|
-
}, {
|
293
|
-
templateId?: string | undefined;
|
294
|
-
isImmediateCorrection?: boolean | undefined;
|
295
|
-
}>>>;
|
296
286
|
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
297
287
|
originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
|
298
288
|
}, {
|
@@ -321,8 +311,8 @@ export declare const Draft: z.ZodObject<{
|
|
321
311
|
street?: string | null | undefined;
|
322
312
|
zipCode?: string | null | undefined;
|
323
313
|
} | {
|
324
|
-
firstname
|
325
|
-
surname
|
314
|
+
firstname: string;
|
315
|
+
surname: string;
|
326
316
|
middlename?: string | null | undefined;
|
327
317
|
} | {
|
328
318
|
country: string;
|
@@ -368,8 +358,8 @@ export declare const Draft: z.ZodObject<{
|
|
368
358
|
street?: string | null | undefined;
|
369
359
|
zipCode?: string | null | undefined;
|
370
360
|
} | {
|
371
|
-
firstname
|
372
|
-
surname
|
361
|
+
firstname: string;
|
362
|
+
surname: string;
|
373
363
|
middlename?: string | null | undefined;
|
374
364
|
} | {
|
375
365
|
country: string;
|
@@ -397,10 +387,6 @@ export declare const Draft: z.ZodObject<{
|
|
397
387
|
start: string;
|
398
388
|
end: string;
|
399
389
|
} | null | undefined> | null | undefined;
|
400
|
-
actionDetails?: {
|
401
|
-
templateId?: string | undefined;
|
402
|
-
isImmediateCorrection?: boolean | undefined;
|
403
|
-
} | null | undefined;
|
404
390
|
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
405
391
|
}, {
|
406
392
|
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";
|
@@ -426,8 +412,8 @@ export declare const Draft: z.ZodObject<{
|
|
426
412
|
street?: string | null | undefined;
|
427
413
|
zipCode?: string | null | undefined;
|
428
414
|
} | {
|
429
|
-
firstname
|
430
|
-
surname
|
415
|
+
firstname: string;
|
416
|
+
surname: string;
|
431
417
|
middlename?: string | null | undefined;
|
432
418
|
} | {
|
433
419
|
country: string;
|
@@ -473,8 +459,8 @@ export declare const Draft: z.ZodObject<{
|
|
473
459
|
street?: string | null | undefined;
|
474
460
|
zipCode?: string | null | undefined;
|
475
461
|
} | {
|
476
|
-
firstname
|
477
|
-
surname
|
462
|
+
firstname: string;
|
463
|
+
surname: string;
|
478
464
|
middlename?: string | null | undefined;
|
479
465
|
} | {
|
480
466
|
country: string;
|
@@ -502,10 +488,6 @@ export declare const Draft: z.ZodObject<{
|
|
502
488
|
start: string;
|
503
489
|
end: string;
|
504
490
|
} | null | undefined> | null | undefined;
|
505
|
-
actionDetails?: {
|
506
|
-
templateId?: string | undefined;
|
507
|
-
isImmediateCorrection?: boolean | undefined;
|
508
|
-
} | null | undefined;
|
509
491
|
originalActionId?: string | null | undefined;
|
510
492
|
}>;
|
511
493
|
}, "strip", z.ZodTypeAny, {
|
@@ -537,8 +519,8 @@ export declare const Draft: z.ZodObject<{
|
|
537
519
|
street?: string | null | undefined;
|
538
520
|
zipCode?: string | null | undefined;
|
539
521
|
} | {
|
540
|
-
firstname
|
541
|
-
surname
|
522
|
+
firstname: string;
|
523
|
+
surname: string;
|
542
524
|
middlename?: string | null | undefined;
|
543
525
|
} | {
|
544
526
|
country: string;
|
@@ -584,8 +566,8 @@ export declare const Draft: z.ZodObject<{
|
|
584
566
|
street?: string | null | undefined;
|
585
567
|
zipCode?: string | null | undefined;
|
586
568
|
} | {
|
587
|
-
firstname
|
588
|
-
surname
|
569
|
+
firstname: string;
|
570
|
+
surname: string;
|
589
571
|
middlename?: string | null | undefined;
|
590
572
|
} | {
|
591
573
|
country: string;
|
@@ -613,10 +595,6 @@ export declare const Draft: z.ZodObject<{
|
|
613
595
|
start: string;
|
614
596
|
end: string;
|
615
597
|
} | null | undefined> | null | undefined;
|
616
|
-
actionDetails?: {
|
617
|
-
templateId?: string | undefined;
|
618
|
-
isImmediateCorrection?: boolean | undefined;
|
619
|
-
} | null | undefined;
|
620
598
|
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
621
599
|
};
|
622
600
|
}, {
|
@@ -648,8 +626,8 @@ export declare const Draft: z.ZodObject<{
|
|
648
626
|
street?: string | null | undefined;
|
649
627
|
zipCode?: string | null | undefined;
|
650
628
|
} | {
|
651
|
-
firstname
|
652
|
-
surname
|
629
|
+
firstname: string;
|
630
|
+
surname: string;
|
653
631
|
middlename?: string | null | undefined;
|
654
632
|
} | {
|
655
633
|
country: string;
|
@@ -695,8 +673,8 @@ export declare const Draft: z.ZodObject<{
|
|
695
673
|
street?: string | null | undefined;
|
696
674
|
zipCode?: string | null | undefined;
|
697
675
|
} | {
|
698
|
-
firstname
|
699
|
-
surname
|
676
|
+
firstname: string;
|
677
|
+
surname: string;
|
700
678
|
middlename?: string | null | undefined;
|
701
679
|
} | {
|
702
680
|
country: string;
|
@@ -724,10 +702,6 @@ export declare const Draft: z.ZodObject<{
|
|
724
702
|
start: string;
|
725
703
|
end: string;
|
726
704
|
} | null | undefined> | null | undefined;
|
727
|
-
actionDetails?: {
|
728
|
-
templateId?: string | undefined;
|
729
|
-
isImmediateCorrection?: boolean | undefined;
|
730
|
-
} | null | undefined;
|
731
705
|
originalActionId?: string | null | undefined;
|
732
706
|
};
|
733
707
|
}>;
|
@@ -857,16 +831,16 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
857
831
|
addressLine3?: string | null | undefined;
|
858
832
|
postcodeOrZip?: string | null | undefined;
|
859
833
|
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
860
|
-
firstname: z.
|
861
|
-
surname: z.
|
834
|
+
firstname: z.ZodString;
|
835
|
+
surname: z.ZodString;
|
862
836
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
863
837
|
}, "strip", z.ZodTypeAny, {
|
864
|
-
firstname
|
865
|
-
surname
|
838
|
+
firstname: string;
|
839
|
+
surname: string;
|
866
840
|
middlename?: string | null | undefined;
|
867
841
|
}, {
|
868
|
-
firstname
|
869
|
-
surname
|
842
|
+
firstname: string;
|
843
|
+
surname: string;
|
870
844
|
middlename?: string | null | undefined;
|
871
845
|
}>, z.ZodNull]>, z.ZodUndefined]>]>>>;
|
872
846
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
|
@@ -992,28 +966,18 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
992
966
|
addressLine3?: string | null | undefined;
|
993
967
|
postcodeOrZip?: string | null | undefined;
|
994
968
|
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
995
|
-
firstname: z.
|
996
|
-
surname: z.
|
969
|
+
firstname: z.ZodString;
|
970
|
+
surname: z.ZodString;
|
997
971
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
998
972
|
}, "strip", z.ZodTypeAny, {
|
999
|
-
firstname
|
1000
|
-
surname
|
973
|
+
firstname: string;
|
974
|
+
surname: string;
|
1001
975
|
middlename?: string | null | undefined;
|
1002
976
|
}, {
|
1003
|
-
firstname
|
1004
|
-
surname
|
977
|
+
firstname: string;
|
978
|
+
surname: string;
|
1005
979
|
middlename?: string | null | undefined;
|
1006
980
|
}>, z.ZodNull]>, z.ZodUndefined]>]>>>;
|
1007
|
-
actionDetails: z.ZodOptional<z.ZodObject<{
|
1008
|
-
templateId: z.ZodOptional<z.ZodString>;
|
1009
|
-
isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
|
1010
|
-
}, "strip", z.ZodTypeAny, {
|
1011
|
-
templateId?: string | undefined;
|
1012
|
-
isImmediateCorrection?: boolean | undefined;
|
1013
|
-
}, {
|
1014
|
-
templateId?: string | undefined;
|
1015
|
-
isImmediateCorrection?: boolean | undefined;
|
1016
|
-
}>>;
|
1017
981
|
originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
|
1018
982
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
1019
983
|
}, {
|
@@ -1039,8 +1003,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
1039
1003
|
street?: string | null | undefined;
|
1040
1004
|
zipCode?: string | null | undefined;
|
1041
1005
|
} | {
|
1042
|
-
firstname
|
1043
|
-
surname
|
1006
|
+
firstname: string;
|
1007
|
+
surname: string;
|
1044
1008
|
middlename?: string | null | undefined;
|
1045
1009
|
} | {
|
1046
1010
|
country: string;
|
@@ -1085,8 +1049,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
1085
1049
|
street?: string | null | undefined;
|
1086
1050
|
zipCode?: string | null | undefined;
|
1087
1051
|
} | {
|
1088
|
-
firstname
|
1089
|
-
surname
|
1052
|
+
firstname: string;
|
1053
|
+
surname: string;
|
1090
1054
|
middlename?: string | null | undefined;
|
1091
1055
|
} | {
|
1092
1056
|
country: string;
|
@@ -1114,10 +1078,6 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
1114
1078
|
start: string;
|
1115
1079
|
end: string;
|
1116
1080
|
} | null | undefined> | undefined;
|
1117
|
-
actionDetails?: {
|
1118
|
-
templateId?: string | undefined;
|
1119
|
-
isImmediateCorrection?: boolean | undefined;
|
1120
|
-
} | undefined;
|
1121
1081
|
originalActionId?: (string & z.BRAND<"UUID">) | undefined;
|
1122
1082
|
keepAssignment?: boolean | undefined;
|
1123
1083
|
}, {
|
@@ -1141,8 +1101,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
1141
1101
|
street?: string | null | undefined;
|
1142
1102
|
zipCode?: string | null | undefined;
|
1143
1103
|
} | {
|
1144
|
-
firstname
|
1145
|
-
surname
|
1104
|
+
firstname: string;
|
1105
|
+
surname: string;
|
1146
1106
|
middlename?: string | null | undefined;
|
1147
1107
|
} | {
|
1148
1108
|
country: string;
|
@@ -1186,8 +1146,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
1186
1146
|
street?: string | null | undefined;
|
1187
1147
|
zipCode?: string | null | undefined;
|
1188
1148
|
} | {
|
1189
|
-
firstname
|
1190
|
-
surname
|
1149
|
+
firstname: string;
|
1150
|
+
surname: string;
|
1191
1151
|
middlename?: string | null | undefined;
|
1192
1152
|
} | {
|
1193
1153
|
country: string;
|
@@ -1215,10 +1175,6 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
1215
1175
|
start: string;
|
1216
1176
|
end: string;
|
1217
1177
|
} | null | undefined> | undefined;
|
1218
|
-
actionDetails?: {
|
1219
|
-
templateId?: string | undefined;
|
1220
|
-
isImmediateCorrection?: boolean | undefined;
|
1221
|
-
} | undefined;
|
1222
1178
|
originalActionId?: string | undefined;
|
1223
1179
|
keepAssignment?: boolean | undefined;
|
1224
1180
|
}>;
|