@opencrvs/toolkit 1.8.0-rc.f8e4107 → 1.8.0-rc.f97f8f2
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 +8418 -4827
- package/dist/commons/conditionals/conditionals.d.ts +9 -70
- package/dist/commons/conditionals/validate.d.ts +4 -6
- package/dist/commons/events/ActionConfig.d.ts +90025 -1680
- package/dist/commons/events/ActionDocument.d.ts +643 -417
- package/dist/commons/events/ActionInput.d.ts +248 -240
- package/dist/commons/events/AdvancedSearchConfig.d.ts +274 -23
- package/dist/commons/events/CompositeFieldValue.d.ts +3 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +1506 -0
- package/dist/commons/events/Draft.d.ts +38 -30
- package/dist/commons/events/EventConfig.d.ts +42787 -1385
- package/dist/commons/events/EventDocument.d.ts +413 -312
- package/dist/commons/events/EventIndex.d.ts +948 -155
- package/dist/commons/events/EventInput.d.ts +13 -0
- package/dist/commons/events/EventMetadata.d.ts +274 -11
- package/dist/commons/events/FieldConfig.d.ts +3778 -769
- 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 +40417 -439
- package/dist/commons/events/PageConfig.d.ts +10077 -203
- package/dist/commons/events/SummaryConfig.d.ts +95 -39
- package/dist/commons/events/User.d.ts +31 -2
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +42 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +2834 -19
- package/dist/commons/events/defineConfig.d.ts +7008 -81
- package/dist/commons/events/event.d.ts +27 -0
- package/dist/commons/events/field.d.ts +68 -0
- package/dist/commons/events/index.d.ts +6 -0
- package/dist/commons/events/scopes.d.ts +26 -0
- package/dist/commons/events/serializer.d.ts +2 -0
- package/dist/commons/events/test.utils.d.ts +7 -44
- package/dist/commons/events/utils.d.ts +3551 -65
- package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
- package/dist/conditionals/index.js +54 -83
- package/dist/events/index.js +2044 -1072
- package/dist/scopes/index.d.ts +105 -1
- package/dist/scopes/index.js +140 -0
- 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;
|
@@ -236,8 +238,7 @@ export declare const Draft: z.ZodObject<{
|
|
236
238
|
addressLine3?: string | null | undefined;
|
237
239
|
postcodeOrZip?: string | null | undefined;
|
238
240
|
}>]>>>;
|
239
|
-
createdAtLocation: z.
|
240
|
-
updatedAtLocation: z.ZodOptional<z.ZodString>;
|
241
|
+
createdAtLocation: z.ZodString;
|
241
242
|
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
242
243
|
originalActionId: z.ZodOptional<z.ZodString>;
|
243
244
|
}, {
|
@@ -245,8 +246,10 @@ export declare const Draft: z.ZodObject<{
|
|
245
246
|
}>, "id">, "strip", z.ZodTypeAny, {
|
246
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";
|
247
248
|
status: "Rejected" | "Requested" | "Accepted";
|
249
|
+
transactionId: string;
|
248
250
|
createdAt: string;
|
249
251
|
createdBy: string;
|
252
|
+
createdByRole: string;
|
250
253
|
declaration: Record<string, string | number | boolean | {
|
251
254
|
type: string;
|
252
255
|
filename: string;
|
@@ -284,7 +287,8 @@ export declare const Draft: z.ZodObject<{
|
|
284
287
|
option: string;
|
285
288
|
filename: string;
|
286
289
|
originalFilename: string;
|
287
|
-
}[] | undefined>;
|
290
|
+
}[] | [string, string] | undefined>;
|
291
|
+
createdAtLocation: string;
|
288
292
|
annotation?: Record<string, string | number | boolean | {
|
289
293
|
type: string;
|
290
294
|
filename: string;
|
@@ -322,15 +326,15 @@ export declare const Draft: z.ZodObject<{
|
|
322
326
|
option: string;
|
323
327
|
filename: string;
|
324
328
|
originalFilename: string;
|
325
|
-
}[] | undefined> | undefined;
|
326
|
-
createdAtLocation?: string | undefined;
|
327
|
-
updatedAtLocation?: string | undefined;
|
329
|
+
}[] | [string, string] | undefined> | undefined;
|
328
330
|
originalActionId?: string | undefined;
|
329
331
|
}, {
|
330
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";
|
331
333
|
status: "Rejected" | "Requested" | "Accepted";
|
334
|
+
transactionId: string;
|
332
335
|
createdAt: string;
|
333
336
|
createdBy: string;
|
337
|
+
createdByRole: string;
|
334
338
|
declaration: Record<string, string | number | boolean | {
|
335
339
|
type: string;
|
336
340
|
filename: string;
|
@@ -368,7 +372,8 @@ export declare const Draft: z.ZodObject<{
|
|
368
372
|
option: string;
|
369
373
|
filename: string;
|
370
374
|
originalFilename: string;
|
371
|
-
}[] | undefined>;
|
375
|
+
}[] | [string, string] | undefined>;
|
376
|
+
createdAtLocation: string;
|
372
377
|
annotation?: Record<string, string | number | boolean | {
|
373
378
|
type: string;
|
374
379
|
filename: string;
|
@@ -406,21 +411,21 @@ export declare const Draft: z.ZodObject<{
|
|
406
411
|
option: string;
|
407
412
|
filename: string;
|
408
413
|
originalFilename: string;
|
409
|
-
}[] | undefined> | undefined;
|
410
|
-
createdAtLocation?: string | undefined;
|
411
|
-
updatedAtLocation?: string | undefined;
|
414
|
+
}[] | [string, string] | undefined> | undefined;
|
412
415
|
originalActionId?: string | undefined;
|
413
416
|
}>;
|
414
417
|
}, "strip", z.ZodTypeAny, {
|
415
418
|
id: string;
|
419
|
+
transactionId: string;
|
416
420
|
createdAt: string;
|
417
421
|
eventId: string;
|
418
|
-
transactionId: string;
|
419
422
|
action: {
|
420
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";
|
421
424
|
status: "Rejected" | "Requested" | "Accepted";
|
425
|
+
transactionId: string;
|
422
426
|
createdAt: string;
|
423
427
|
createdBy: string;
|
428
|
+
createdByRole: string;
|
424
429
|
declaration: Record<string, string | number | boolean | {
|
425
430
|
type: string;
|
426
431
|
filename: string;
|
@@ -458,7 +463,8 @@ export declare const Draft: z.ZodObject<{
|
|
458
463
|
option: string;
|
459
464
|
filename: string;
|
460
465
|
originalFilename: string;
|
461
|
-
}[] | undefined>;
|
466
|
+
}[] | [string, string] | undefined>;
|
467
|
+
createdAtLocation: string;
|
462
468
|
annotation?: Record<string, string | number | boolean | {
|
463
469
|
type: string;
|
464
470
|
filename: string;
|
@@ -496,21 +502,21 @@ export declare const Draft: z.ZodObject<{
|
|
496
502
|
option: string;
|
497
503
|
filename: string;
|
498
504
|
originalFilename: string;
|
499
|
-
}[] | undefined> | undefined;
|
500
|
-
createdAtLocation?: string | undefined;
|
501
|
-
updatedAtLocation?: string | undefined;
|
505
|
+
}[] | [string, string] | undefined> | undefined;
|
502
506
|
originalActionId?: string | undefined;
|
503
507
|
};
|
504
508
|
}, {
|
505
509
|
id: string;
|
510
|
+
transactionId: string;
|
506
511
|
createdAt: string;
|
507
512
|
eventId: string;
|
508
|
-
transactionId: string;
|
509
513
|
action: {
|
510
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";
|
511
515
|
status: "Rejected" | "Requested" | "Accepted";
|
516
|
+
transactionId: string;
|
512
517
|
createdAt: string;
|
513
518
|
createdBy: string;
|
519
|
+
createdByRole: string;
|
514
520
|
declaration: Record<string, string | number | boolean | {
|
515
521
|
type: string;
|
516
522
|
filename: string;
|
@@ -548,7 +554,8 @@ export declare const Draft: z.ZodObject<{
|
|
548
554
|
option: string;
|
549
555
|
filename: string;
|
550
556
|
originalFilename: string;
|
551
|
-
}[] | undefined>;
|
557
|
+
}[] | [string, string] | undefined>;
|
558
|
+
createdAtLocation: string;
|
552
559
|
annotation?: Record<string, string | number | boolean | {
|
553
560
|
type: string;
|
554
561
|
filename: string;
|
@@ -586,16 +593,14 @@ export declare const Draft: z.ZodObject<{
|
|
586
593
|
option: string;
|
587
594
|
filename: string;
|
588
595
|
originalFilename: string;
|
589
|
-
}[] | undefined> | undefined;
|
590
|
-
createdAtLocation?: string | undefined;
|
591
|
-
updatedAtLocation?: string | undefined;
|
596
|
+
}[] | [string, string] | undefined> | undefined;
|
592
597
|
originalActionId?: string | undefined;
|
593
598
|
};
|
594
599
|
}>;
|
595
600
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
596
601
|
eventId: z.ZodString;
|
597
602
|
transactionId: z.ZodString;
|
598
|
-
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<{
|
599
604
|
filename: z.ZodString;
|
600
605
|
originalFilename: z.ZodString;
|
601
606
|
type: z.ZodString;
|
@@ -709,7 +714,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
709
714
|
addressLine3?: string | null | undefined;
|
710
715
|
postcodeOrZip?: string | null | undefined;
|
711
716
|
}>]>>>;
|
712
|
-
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<{
|
713
718
|
filename: z.ZodString;
|
714
719
|
originalFilename: z.ZodString;
|
715
720
|
type: z.ZodString;
|
@@ -827,8 +832,11 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
827
832
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
828
833
|
}, {
|
829
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"]>;
|
830
836
|
}>, "strip", z.ZodTypeAny, {
|
831
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;
|
832
840
|
declaration: Record<string, string | number | boolean | {
|
833
841
|
type: string;
|
834
842
|
filename: string;
|
@@ -866,9 +874,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
866
874
|
option: string;
|
867
875
|
filename: string;
|
868
876
|
originalFilename: string;
|
869
|
-
}[] | undefined>;
|
877
|
+
}[] | [string, string] | undefined>;
|
870
878
|
eventId: string;
|
871
|
-
transactionId: string;
|
872
879
|
annotation?: Record<string, string | number | boolean | {
|
873
880
|
type: string;
|
874
881
|
filename: string;
|
@@ -906,13 +913,14 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
906
913
|
option: string;
|
907
914
|
filename: string;
|
908
915
|
originalFilename: string;
|
909
|
-
}[] | undefined> | undefined;
|
916
|
+
}[] | [string, string] | undefined> | undefined;
|
910
917
|
originalActionId?: string | undefined;
|
911
918
|
keepAssignment?: boolean | undefined;
|
912
919
|
}, {
|
913
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";
|
914
|
-
|
921
|
+
status: "Rejected" | "Requested" | "Accepted";
|
915
922
|
transactionId: string;
|
923
|
+
eventId: string;
|
916
924
|
declaration?: Record<string, string | number | boolean | {
|
917
925
|
type: string;
|
918
926
|
filename: string;
|
@@ -950,7 +958,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
950
958
|
option: string;
|
951
959
|
filename: string;
|
952
960
|
originalFilename: string;
|
953
|
-
}[] | undefined> | undefined;
|
961
|
+
}[] | [string, string] | undefined> | undefined;
|
954
962
|
annotation?: Record<string, string | number | boolean | {
|
955
963
|
type: string;
|
956
964
|
filename: string;
|
@@ -988,7 +996,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
988
996
|
option: string;
|
989
997
|
filename: string;
|
990
998
|
originalFilename: string;
|
991
|
-
}[] | undefined> | undefined;
|
999
|
+
}[] | [string, string] | undefined> | undefined;
|
992
1000
|
originalActionId?: string | undefined;
|
993
1001
|
keepAssignment?: boolean | undefined;
|
994
1002
|
}>;
|