@opencrvs/toolkit 1.8.0-rc.f9c5526 → 1.8.0-rc.f9fb039
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 +7990 -4200
- package/dist/commons/conditionals/conditionals.d.ts +9 -6
- package/dist/commons/conditionals/validate.d.ts +4 -6
- package/dist/commons/events/ActionConfig.d.ts +97080 -1720
- package/dist/commons/events/ActionDocument.d.ts +544 -207
- package/dist/commons/events/ActionInput.d.ts +338 -240
- package/dist/commons/events/ActionType.d.ts +2 -0
- package/dist/commons/events/AdvancedSearchConfig.d.ts +535 -25
- package/dist/commons/events/CompositeFieldValue.d.ts +3 -0
- package/dist/commons/events/Draft.d.ts +36 -20
- package/dist/commons/events/EventConfig.d.ts +46232 -1342
- package/dist/commons/events/EventDocument.d.ts +345 -153
- package/dist/commons/events/EventIndex.d.ts +1589 -13
- package/dist/commons/events/EventInput.d.ts +13 -0
- package/dist/commons/events/EventMetadata.d.ts +273 -11
- package/dist/commons/events/FieldConfig.d.ts +4280 -754
- 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 +81 -42
- package/dist/commons/events/User.d.ts +5 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +1397 -19
- package/dist/commons/events/defineConfig.d.ts +7220 -40
- package/dist/commons/events/event.d.ts +54 -0
- package/dist/commons/events/field.d.ts +77 -0
- package/dist/commons/events/index.d.ts +3 -0
- package/dist/commons/events/scopes.d.ts +26 -0
- package/dist/commons/events/test.utils.d.ts +7 -44
- package/dist/commons/events/utils.d.ts +3668 -68
- package/dist/commons/events/utils.test.d.ts +2 -0
- package/dist/conditionals/index.js +36 -33
- package/dist/events/index.js +1617 -975
- 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;
|
@@ -819,10 +829,14 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
819
829
|
postcodeOrZip?: string | null | undefined;
|
820
830
|
}>]>>>;
|
821
831
|
originalActionId: z.ZodOptional<z.ZodString>;
|
832
|
+
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
822
833
|
}, {
|
823
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"]>;
|
824
836
|
}>, "strip", z.ZodTypeAny, {
|
825
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;
|
826
840
|
declaration: Record<string, string | number | boolean | {
|
827
841
|
type: string;
|
828
842
|
filename: string;
|
@@ -860,9 +874,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
860
874
|
option: string;
|
861
875
|
filename: string;
|
862
876
|
originalFilename: string;
|
863
|
-
}[] | undefined>;
|
877
|
+
}[] | [string, string] | undefined>;
|
864
878
|
eventId: string;
|
865
|
-
transactionId: string;
|
866
879
|
annotation?: Record<string, string | number | boolean | {
|
867
880
|
type: string;
|
868
881
|
filename: string;
|
@@ -900,12 +913,14 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
900
913
|
option: string;
|
901
914
|
filename: string;
|
902
915
|
originalFilename: string;
|
903
|
-
}[] | undefined> | undefined;
|
916
|
+
}[] | [string, string] | undefined> | undefined;
|
904
917
|
originalActionId?: string | undefined;
|
918
|
+
keepAssignment?: boolean | undefined;
|
905
919
|
}, {
|
906
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";
|
907
|
-
|
921
|
+
status: "Rejected" | "Requested" | "Accepted";
|
908
922
|
transactionId: string;
|
923
|
+
eventId: string;
|
909
924
|
declaration?: Record<string, string | number | boolean | {
|
910
925
|
type: string;
|
911
926
|
filename: string;
|
@@ -943,7 +958,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
943
958
|
option: string;
|
944
959
|
filename: string;
|
945
960
|
originalFilename: string;
|
946
|
-
}[] | undefined> | undefined;
|
961
|
+
}[] | [string, string] | undefined> | undefined;
|
947
962
|
annotation?: Record<string, string | number | boolean | {
|
948
963
|
type: string;
|
949
964
|
filename: string;
|
@@ -981,8 +996,9 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
981
996
|
option: string;
|
982
997
|
filename: string;
|
983
998
|
originalFilename: string;
|
984
|
-
}[] | undefined> | undefined;
|
999
|
+
}[] | [string, string] | undefined> | undefined;
|
985
1000
|
originalActionId?: string | undefined;
|
1001
|
+
keepAssignment?: boolean | undefined;
|
986
1002
|
}>;
|
987
1003
|
export type Draft = z.infer<typeof Draft>;
|
988
1004
|
export type DraftInput = z.infer<typeof DraftInput>;
|