@opencrvs/toolkit 1.8.0-rc.fef85f2 → 1.8.0-rc.ff0b26c
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 +10585 -4200
- package/dist/commons/conditionals/conditionals.d.ts +9 -6
- package/dist/commons/events/ActionConfig.d.ts +97080 -1720
- package/dist/commons/events/ActionDocument.d.ts +542 -211
- package/dist/commons/events/ActionInput.d.ts +248 -240
- package/dist/commons/events/AdvancedSearchConfig.d.ts +957 -22
- package/dist/commons/events/Draft.d.ts +33 -20
- package/dist/commons/events/EventConfig.d.ts +46237 -1398
- package/dist/commons/events/EventDocument.d.ts +337 -159
- package/dist/commons/events/EventIndex.d.ts +1735 -16
- package/dist/commons/events/EventInput.d.ts +13 -0
- package/dist/commons/events/EventMetadata.d.ts +274 -14
- package/dist/commons/events/FieldConfig.d.ts +4229 -744
- package/dist/commons/events/FieldType.d.ts +3 -3
- package/dist/commons/events/FieldTypeMapping.d.ts +11 -4
- package/dist/commons/events/FieldValue.d.ts +7 -4
- package/dist/commons/events/FormConfig.d.ts +43591 -439
- package/dist/commons/events/PageConfig.d.ts +10860 -204
- package/dist/commons/events/SummaryConfig.d.ts +17 -47
- package/dist/commons/events/WorkqueueConfig.d.ts +1549 -19
- package/dist/commons/events/defineConfig.d.ts +7199 -27
- 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 +2 -0
- package/dist/commons/events/scopes.d.ts +21 -1
- package/dist/commons/events/test.utils.d.ts +10 -47
- package/dist/commons/events/utils.d.ts +3665 -67
- package/dist/conditionals/index.js +36 -33
- package/dist/events/index.js +1771 -966
- package/dist/scopes/index.d.ts +158 -1
- package/dist/scopes/index.js +152 -1
- package/package.json +3 -2
@@ -6,9 +6,11 @@ export declare const Draft: z.ZodObject<{
|
|
6
6
|
createdAt: z.ZodString;
|
7
7
|
action: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
8
8
|
id: z.ZodString;
|
9
|
+
transactionId: z.ZodString;
|
9
10
|
createdAt: z.ZodString;
|
10
11
|
createdBy: z.ZodString;
|
11
|
-
|
12
|
+
createdByRole: z.ZodString;
|
13
|
+
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
14
|
filename: z.ZodString;
|
13
15
|
originalFilename: z.ZodString;
|
14
16
|
type: z.ZodString;
|
@@ -122,7 +124,7 @@ export declare const Draft: z.ZodObject<{
|
|
122
124
|
addressLine3?: string | null | undefined;
|
123
125
|
postcodeOrZip?: string | null | undefined;
|
124
126
|
}>]>>;
|
125
|
-
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
127
|
+
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<{
|
126
128
|
filename: z.ZodString;
|
127
129
|
originalFilename: z.ZodString;
|
128
130
|
type: z.ZodString;
|
@@ -244,8 +246,10 @@ export declare const Draft: z.ZodObject<{
|
|
244
246
|
}>, "id">, "strip", z.ZodTypeAny, {
|
245
247
|
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";
|
246
248
|
status: "Rejected" | "Requested" | "Accepted";
|
249
|
+
transactionId: string;
|
247
250
|
createdAt: string;
|
248
251
|
createdBy: string;
|
252
|
+
createdByRole: string;
|
249
253
|
declaration: Record<string, string | number | boolean | {
|
250
254
|
type: string;
|
251
255
|
filename: string;
|
@@ -283,7 +287,7 @@ export declare const Draft: z.ZodObject<{
|
|
283
287
|
option: string;
|
284
288
|
filename: string;
|
285
289
|
originalFilename: string;
|
286
|
-
}[] | undefined>;
|
290
|
+
}[] | [string, string] | undefined>;
|
287
291
|
createdAtLocation: string;
|
288
292
|
annotation?: Record<string, string | number | boolean | {
|
289
293
|
type: string;
|
@@ -322,13 +326,15 @@ export declare const Draft: z.ZodObject<{
|
|
322
326
|
option: string;
|
323
327
|
filename: string;
|
324
328
|
originalFilename: string;
|
325
|
-
}[] | undefined> | undefined;
|
329
|
+
}[] | [string, string] | undefined> | undefined;
|
326
330
|
originalActionId?: string | undefined;
|
327
331
|
}, {
|
328
332
|
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";
|
329
333
|
status: "Rejected" | "Requested" | "Accepted";
|
334
|
+
transactionId: string;
|
330
335
|
createdAt: string;
|
331
336
|
createdBy: string;
|
337
|
+
createdByRole: string;
|
332
338
|
declaration: Record<string, string | number | boolean | {
|
333
339
|
type: string;
|
334
340
|
filename: string;
|
@@ -366,7 +372,7 @@ export declare const Draft: z.ZodObject<{
|
|
366
372
|
option: string;
|
367
373
|
filename: string;
|
368
374
|
originalFilename: string;
|
369
|
-
}[] | undefined>;
|
375
|
+
}[] | [string, string] | undefined>;
|
370
376
|
createdAtLocation: string;
|
371
377
|
annotation?: Record<string, string | number | boolean | {
|
372
378
|
type: string;
|
@@ -405,19 +411,21 @@ export declare const Draft: z.ZodObject<{
|
|
405
411
|
option: string;
|
406
412
|
filename: string;
|
407
413
|
originalFilename: string;
|
408
|
-
}[] | undefined> | undefined;
|
414
|
+
}[] | [string, string] | undefined> | undefined;
|
409
415
|
originalActionId?: string | undefined;
|
410
416
|
}>;
|
411
417
|
}, "strip", z.ZodTypeAny, {
|
412
418
|
id: string;
|
419
|
+
transactionId: string;
|
413
420
|
createdAt: string;
|
414
421
|
eventId: string;
|
415
|
-
transactionId: string;
|
416
422
|
action: {
|
417
423
|
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";
|
418
424
|
status: "Rejected" | "Requested" | "Accepted";
|
425
|
+
transactionId: string;
|
419
426
|
createdAt: string;
|
420
427
|
createdBy: string;
|
428
|
+
createdByRole: string;
|
421
429
|
declaration: Record<string, string | number | boolean | {
|
422
430
|
type: string;
|
423
431
|
filename: string;
|
@@ -455,7 +463,7 @@ export declare const Draft: z.ZodObject<{
|
|
455
463
|
option: string;
|
456
464
|
filename: string;
|
457
465
|
originalFilename: string;
|
458
|
-
}[] | undefined>;
|
466
|
+
}[] | [string, string] | undefined>;
|
459
467
|
createdAtLocation: string;
|
460
468
|
annotation?: Record<string, string | number | boolean | {
|
461
469
|
type: string;
|
@@ -494,19 +502,21 @@ export declare const Draft: z.ZodObject<{
|
|
494
502
|
option: string;
|
495
503
|
filename: string;
|
496
504
|
originalFilename: string;
|
497
|
-
}[] | undefined> | undefined;
|
505
|
+
}[] | [string, string] | undefined> | undefined;
|
498
506
|
originalActionId?: string | undefined;
|
499
507
|
};
|
500
508
|
}, {
|
501
509
|
id: string;
|
510
|
+
transactionId: string;
|
502
511
|
createdAt: string;
|
503
512
|
eventId: string;
|
504
|
-
transactionId: string;
|
505
513
|
action: {
|
506
514
|
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";
|
507
515
|
status: "Rejected" | "Requested" | "Accepted";
|
516
|
+
transactionId: string;
|
508
517
|
createdAt: string;
|
509
518
|
createdBy: string;
|
519
|
+
createdByRole: string;
|
510
520
|
declaration: Record<string, string | number | boolean | {
|
511
521
|
type: string;
|
512
522
|
filename: string;
|
@@ -544,7 +554,7 @@ export declare const Draft: z.ZodObject<{
|
|
544
554
|
option: string;
|
545
555
|
filename: string;
|
546
556
|
originalFilename: string;
|
547
|
-
}[] | undefined>;
|
557
|
+
}[] | [string, string] | undefined>;
|
548
558
|
createdAtLocation: string;
|
549
559
|
annotation?: Record<string, string | number | boolean | {
|
550
560
|
type: string;
|
@@ -583,14 +593,14 @@ export declare const Draft: z.ZodObject<{
|
|
583
593
|
option: string;
|
584
594
|
filename: string;
|
585
595
|
originalFilename: string;
|
586
|
-
}[] | undefined> | undefined;
|
596
|
+
}[] | [string, string] | undefined> | undefined;
|
587
597
|
originalActionId?: string | undefined;
|
588
598
|
};
|
589
599
|
}>;
|
590
600
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
591
601
|
eventId: z.ZodString;
|
592
602
|
transactionId: z.ZodString;
|
593
|
-
declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
603
|
+
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<{
|
594
604
|
filename: z.ZodString;
|
595
605
|
originalFilename: z.ZodString;
|
596
606
|
type: z.ZodString;
|
@@ -704,7 +714,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
704
714
|
addressLine3?: string | null | undefined;
|
705
715
|
postcodeOrZip?: string | null | undefined;
|
706
716
|
}>]>>>;
|
707
|
-
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
717
|
+
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<{
|
708
718
|
filename: z.ZodString;
|
709
719
|
originalFilename: z.ZodString;
|
710
720
|
type: z.ZodString;
|
@@ -822,8 +832,11 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
822
832
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
823
833
|
}, {
|
824
834
|
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"]>;
|
835
|
+
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
825
836
|
}>, "strip", z.ZodTypeAny, {
|
826
837
|
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";
|
838
|
+
status: "Rejected" | "Requested" | "Accepted";
|
839
|
+
transactionId: string;
|
827
840
|
declaration: Record<string, string | number | boolean | {
|
828
841
|
type: string;
|
829
842
|
filename: string;
|
@@ -861,9 +874,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
861
874
|
option: string;
|
862
875
|
filename: string;
|
863
876
|
originalFilename: string;
|
864
|
-
}[] | undefined>;
|
877
|
+
}[] | [string, string] | undefined>;
|
865
878
|
eventId: string;
|
866
|
-
transactionId: string;
|
867
879
|
annotation?: Record<string, string | number | boolean | {
|
868
880
|
type: string;
|
869
881
|
filename: string;
|
@@ -901,13 +913,14 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
901
913
|
option: string;
|
902
914
|
filename: string;
|
903
915
|
originalFilename: string;
|
904
|
-
}[] | undefined> | undefined;
|
916
|
+
}[] | [string, string] | undefined> | undefined;
|
905
917
|
originalActionId?: string | undefined;
|
906
918
|
keepAssignment?: boolean | undefined;
|
907
919
|
}, {
|
908
920
|
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";
|
909
|
-
|
921
|
+
status: "Rejected" | "Requested" | "Accepted";
|
910
922
|
transactionId: string;
|
923
|
+
eventId: string;
|
911
924
|
declaration?: Record<string, string | number | boolean | {
|
912
925
|
type: string;
|
913
926
|
filename: string;
|
@@ -945,7 +958,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
945
958
|
option: string;
|
946
959
|
filename: string;
|
947
960
|
originalFilename: string;
|
948
|
-
}[] | undefined> | undefined;
|
961
|
+
}[] | [string, string] | undefined> | undefined;
|
949
962
|
annotation?: Record<string, string | number | boolean | {
|
950
963
|
type: string;
|
951
964
|
filename: string;
|
@@ -983,7 +996,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
983
996
|
option: string;
|
984
997
|
filename: string;
|
985
998
|
originalFilename: string;
|
986
|
-
}[] | undefined> | undefined;
|
999
|
+
}[] | [string, string] | undefined> | undefined;
|
987
1000
|
originalActionId?: string | undefined;
|
988
1001
|
keepAssignment?: boolean | undefined;
|
989
1002
|
}>;
|