@opencrvs/toolkit 1.8.0-rc.f8aa0c5 → 1.8.0-rc.f8be155
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 +9861 -5350
- package/dist/commons/events/ActionConfig.d.ts +0 -2856
- package/dist/commons/events/ActionDocument.d.ts +706 -805
- package/dist/commons/events/ActionInput.d.ts +602 -602
- package/dist/commons/events/AdvancedSearchConfig.d.ts +18 -222
- package/dist/commons/events/CompositeFieldValue.d.ts +6 -6
- package/dist/commons/events/CountryConfigQueryInput.d.ts +412 -1160
- package/dist/commons/events/Draft.d.ts +54 -59
- package/dist/commons/events/EventConfig.d.ts +0 -1564
- package/dist/commons/events/EventDocument.d.ts +441 -516
- package/dist/commons/events/EventIndex.d.ts +210 -630
- package/dist/commons/events/EventMetadata.d.ts +7 -49
- package/dist/commons/events/FieldConfig.d.ts +0 -198
- 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 +0 -1200
- package/dist/commons/events/PageConfig.d.ts +0 -288
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +11 -11
- package/dist/commons/events/WorkqueueConfig.d.ts +750 -3247
- package/dist/commons/events/defineConfig.d.ts +0 -316
- package/dist/commons/events/field.d.ts +0 -5
- package/dist/commons/events/index.d.ts +0 -1
- package/dist/commons/events/scopes.d.ts +2 -1
- package/dist/commons/events/test.utils.d.ts +15 -37
- package/dist/commons/events/utils.d.ts +9 -466
- package/dist/conditionals/index.js +17 -20
- package/dist/events/index.js +654 -1053
- package/dist/scopes/index.d.ts +7 -96
- package/dist/scopes/index.js +26 -105
- package/package.json +3 -3
@@ -7,7 +7,6 @@ export declare const Draft: z.ZodObject<{
|
|
7
7
|
action: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
8
8
|
id: z.ZodBranded<z.ZodString, "UUID">;
|
9
9
|
transactionId: z.ZodString;
|
10
|
-
createdByUserType: z.ZodEnum<["user", "system"]>;
|
11
10
|
createdAt: z.ZodString;
|
12
11
|
createdBy: z.ZodString;
|
13
12
|
createdByRole: z.ZodString;
|
@@ -127,16 +126,16 @@ export declare const Draft: z.ZodObject<{
|
|
127
126
|
addressLine3?: string | null | undefined;
|
128
127
|
postcodeOrZip?: string | null | undefined;
|
129
128
|
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
130
|
-
firstname: z.
|
131
|
-
surname: z.
|
129
|
+
firstname: z.ZodString;
|
130
|
+
surname: z.ZodString;
|
132
131
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
133
132
|
}, "strip", z.ZodTypeAny, {
|
134
|
-
firstname
|
135
|
-
surname
|
133
|
+
firstname: string;
|
134
|
+
surname: string;
|
136
135
|
middlename?: string | null | undefined;
|
137
136
|
}, {
|
138
|
-
firstname
|
139
|
-
surname
|
137
|
+
firstname: string;
|
138
|
+
surname: string;
|
140
139
|
middlename?: string | null | undefined;
|
141
140
|
}>, z.ZodNull]>, z.ZodUndefined]>]>>;
|
142
141
|
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<{
|
@@ -253,16 +252,16 @@ export declare const Draft: z.ZodObject<{
|
|
253
252
|
addressLine3?: string | null | undefined;
|
254
253
|
postcodeOrZip?: string | null | undefined;
|
255
254
|
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
256
|
-
firstname: z.
|
257
|
-
surname: z.
|
255
|
+
firstname: z.ZodString;
|
256
|
+
surname: z.ZodString;
|
258
257
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
259
258
|
}, "strip", z.ZodTypeAny, {
|
260
|
-
firstname
|
261
|
-
surname
|
259
|
+
firstname: string;
|
260
|
+
surname: string;
|
262
261
|
middlename?: string | null | undefined;
|
263
262
|
}, {
|
264
|
-
firstname
|
265
|
-
surname
|
263
|
+
firstname: string;
|
264
|
+
surname: string;
|
266
265
|
middlename?: string | null | undefined;
|
267
266
|
}>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
|
268
267
|
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
@@ -270,10 +269,9 @@ export declare const Draft: z.ZodObject<{
|
|
270
269
|
}, {
|
271
270
|
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"]>;
|
272
271
|
}>, "id">, "strip", z.ZodTypeAny, {
|
273
|
-
type: "
|
272
|
+
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
273
|
status: "Rejected" | "Requested" | "Accepted";
|
275
274
|
transactionId: string;
|
276
|
-
createdByUserType: "system" | "user";
|
277
275
|
createdAt: string;
|
278
276
|
createdBy: string;
|
279
277
|
createdByRole: string;
|
@@ -293,8 +291,8 @@ export declare const Draft: z.ZodObject<{
|
|
293
291
|
street?: string | null | undefined;
|
294
292
|
zipCode?: string | null | undefined;
|
295
293
|
} | {
|
296
|
-
firstname
|
297
|
-
surname
|
294
|
+
firstname: string;
|
295
|
+
surname: string;
|
298
296
|
middlename?: string | null | undefined;
|
299
297
|
} | {
|
300
298
|
country: string;
|
@@ -337,8 +335,8 @@ export declare const Draft: z.ZodObject<{
|
|
337
335
|
street?: string | null | undefined;
|
338
336
|
zipCode?: string | null | undefined;
|
339
337
|
} | {
|
340
|
-
firstname
|
341
|
-
surname
|
338
|
+
firstname: string;
|
339
|
+
surname: string;
|
342
340
|
middlename?: string | null | undefined;
|
343
341
|
} | {
|
344
342
|
country: string;
|
@@ -365,10 +363,9 @@ export declare const Draft: z.ZodObject<{
|
|
365
363
|
}[] | [string, string] | null | undefined> | null | undefined;
|
366
364
|
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
367
365
|
}, {
|
368
|
-
type: "
|
366
|
+
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
367
|
status: "Rejected" | "Requested" | "Accepted";
|
370
368
|
transactionId: string;
|
371
|
-
createdByUserType: "system" | "user";
|
372
369
|
createdAt: string;
|
373
370
|
createdBy: string;
|
374
371
|
createdByRole: string;
|
@@ -388,8 +385,8 @@ export declare const Draft: z.ZodObject<{
|
|
388
385
|
street?: string | null | undefined;
|
389
386
|
zipCode?: string | null | undefined;
|
390
387
|
} | {
|
391
|
-
firstname
|
392
|
-
surname
|
388
|
+
firstname: string;
|
389
|
+
surname: string;
|
393
390
|
middlename?: string | null | undefined;
|
394
391
|
} | {
|
395
392
|
country: string;
|
@@ -432,8 +429,8 @@ export declare const Draft: z.ZodObject<{
|
|
432
429
|
street?: string | null | undefined;
|
433
430
|
zipCode?: string | null | undefined;
|
434
431
|
} | {
|
435
|
-
firstname
|
436
|
-
surname
|
432
|
+
firstname: string;
|
433
|
+
surname: string;
|
437
434
|
middlename?: string | null | undefined;
|
438
435
|
} | {
|
439
436
|
country: string;
|
@@ -466,10 +463,9 @@ export declare const Draft: z.ZodObject<{
|
|
466
463
|
createdAt: string;
|
467
464
|
eventId: string & z.BRAND<"UUID">;
|
468
465
|
action: {
|
469
|
-
type: "
|
466
|
+
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
467
|
status: "Rejected" | "Requested" | "Accepted";
|
471
468
|
transactionId: string;
|
472
|
-
createdByUserType: "system" | "user";
|
473
469
|
createdAt: string;
|
474
470
|
createdBy: string;
|
475
471
|
createdByRole: string;
|
@@ -489,8 +485,8 @@ export declare const Draft: z.ZodObject<{
|
|
489
485
|
street?: string | null | undefined;
|
490
486
|
zipCode?: string | null | undefined;
|
491
487
|
} | {
|
492
|
-
firstname
|
493
|
-
surname
|
488
|
+
firstname: string;
|
489
|
+
surname: string;
|
494
490
|
middlename?: string | null | undefined;
|
495
491
|
} | {
|
496
492
|
country: string;
|
@@ -533,8 +529,8 @@ export declare const Draft: z.ZodObject<{
|
|
533
529
|
street?: string | null | undefined;
|
534
530
|
zipCode?: string | null | undefined;
|
535
531
|
} | {
|
536
|
-
firstname
|
537
|
-
surname
|
532
|
+
firstname: string;
|
533
|
+
surname: string;
|
538
534
|
middlename?: string | null | undefined;
|
539
535
|
} | {
|
540
536
|
country: string;
|
@@ -567,10 +563,9 @@ export declare const Draft: z.ZodObject<{
|
|
567
563
|
createdAt: string;
|
568
564
|
eventId: string;
|
569
565
|
action: {
|
570
|
-
type: "
|
566
|
+
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
567
|
status: "Rejected" | "Requested" | "Accepted";
|
572
568
|
transactionId: string;
|
573
|
-
createdByUserType: "system" | "user";
|
574
569
|
createdAt: string;
|
575
570
|
createdBy: string;
|
576
571
|
createdByRole: string;
|
@@ -590,8 +585,8 @@ export declare const Draft: z.ZodObject<{
|
|
590
585
|
street?: string | null | undefined;
|
591
586
|
zipCode?: string | null | undefined;
|
592
587
|
} | {
|
593
|
-
firstname
|
594
|
-
surname
|
588
|
+
firstname: string;
|
589
|
+
surname: string;
|
595
590
|
middlename?: string | null | undefined;
|
596
591
|
} | {
|
597
592
|
country: string;
|
@@ -634,8 +629,8 @@ export declare const Draft: z.ZodObject<{
|
|
634
629
|
street?: string | null | undefined;
|
635
630
|
zipCode?: string | null | undefined;
|
636
631
|
} | {
|
637
|
-
firstname
|
638
|
-
surname
|
632
|
+
firstname: string;
|
633
|
+
surname: string;
|
639
634
|
middlename?: string | null | undefined;
|
640
635
|
} | {
|
641
636
|
country: string;
|
@@ -780,16 +775,16 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
780
775
|
addressLine3?: string | null | undefined;
|
781
776
|
postcodeOrZip?: string | null | undefined;
|
782
777
|
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
783
|
-
firstname: z.
|
784
|
-
surname: z.
|
778
|
+
firstname: z.ZodString;
|
779
|
+
surname: z.ZodString;
|
785
780
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
786
781
|
}, "strip", z.ZodTypeAny, {
|
787
|
-
firstname
|
788
|
-
surname
|
782
|
+
firstname: string;
|
783
|
+
surname: string;
|
789
784
|
middlename?: string | null | undefined;
|
790
785
|
}, {
|
791
|
-
firstname
|
792
|
-
surname
|
786
|
+
firstname: string;
|
787
|
+
surname: string;
|
793
788
|
middlename?: string | null | undefined;
|
794
789
|
}>, z.ZodNull]>, z.ZodUndefined]>]>>>;
|
795
790
|
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<{
|
@@ -906,16 +901,16 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
906
901
|
addressLine3?: string | null | undefined;
|
907
902
|
postcodeOrZip?: string | null | undefined;
|
908
903
|
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
909
|
-
firstname: z.
|
910
|
-
surname: z.
|
904
|
+
firstname: z.ZodString;
|
905
|
+
surname: z.ZodString;
|
911
906
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
912
907
|
}, "strip", z.ZodTypeAny, {
|
913
|
-
firstname
|
914
|
-
surname
|
908
|
+
firstname: string;
|
909
|
+
surname: string;
|
915
910
|
middlename?: string | null | undefined;
|
916
911
|
}, {
|
917
|
-
firstname
|
918
|
-
surname
|
912
|
+
firstname: string;
|
913
|
+
surname: string;
|
919
914
|
middlename?: string | null | undefined;
|
920
915
|
}>, z.ZodNull]>, z.ZodUndefined]>]>>>;
|
921
916
|
originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
|
@@ -924,7 +919,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
924
919
|
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
920
|
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
926
921
|
}>, "strip", z.ZodTypeAny, {
|
927
|
-
type: "
|
922
|
+
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
923
|
status: "Rejected" | "Requested" | "Accepted";
|
929
924
|
transactionId: string;
|
930
925
|
declaration: Record<string, string | number | boolean | {
|
@@ -943,8 +938,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
943
938
|
street?: string | null | undefined;
|
944
939
|
zipCode?: string | null | undefined;
|
945
940
|
} | {
|
946
|
-
firstname
|
947
|
-
surname
|
941
|
+
firstname: string;
|
942
|
+
surname: string;
|
948
943
|
middlename?: string | null | undefined;
|
949
944
|
} | {
|
950
945
|
country: string;
|
@@ -986,8 +981,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
986
981
|
street?: string | null | undefined;
|
987
982
|
zipCode?: string | null | undefined;
|
988
983
|
} | {
|
989
|
-
firstname
|
990
|
-
surname
|
984
|
+
firstname: string;
|
985
|
+
surname: string;
|
991
986
|
middlename?: string | null | undefined;
|
992
987
|
} | {
|
993
988
|
country: string;
|
@@ -1015,7 +1010,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
1015
1010
|
originalActionId?: (string & z.BRAND<"UUID">) | undefined;
|
1016
1011
|
keepAssignment?: boolean | undefined;
|
1017
1012
|
}, {
|
1018
|
-
type: "
|
1013
|
+
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
1014
|
status: "Rejected" | "Requested" | "Accepted";
|
1020
1015
|
transactionId: string;
|
1021
1016
|
eventId: string;
|
@@ -1035,8 +1030,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
1035
1030
|
street?: string | null | undefined;
|
1036
1031
|
zipCode?: string | null | undefined;
|
1037
1032
|
} | {
|
1038
|
-
firstname
|
1039
|
-
surname
|
1033
|
+
firstname: string;
|
1034
|
+
surname: string;
|
1040
1035
|
middlename?: string | null | undefined;
|
1041
1036
|
} | {
|
1042
1037
|
country: string;
|
@@ -1077,8 +1072,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
1077
1072
|
street?: string | null | undefined;
|
1078
1073
|
zipCode?: string | null | undefined;
|
1079
1074
|
} | {
|
1080
|
-
firstname
|
1081
|
-
surname
|
1075
|
+
firstname: string;
|
1076
|
+
surname: string;
|
1082
1077
|
middlename?: string | null | undefined;
|
1083
1078
|
} | {
|
1084
1079
|
country: string;
|