@opencrvs/toolkit 1.8.0-rc.fb2e700 → 1.8.0-rc.fbb40d1
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 +11542 -4327
- package/dist/commons/conditionals/conditionals.d.ts +11 -7
- package/dist/commons/conditionals/validate.d.ts +4 -6
- package/dist/commons/events/ActionConfig.d.ts +104357 -1720
- package/dist/commons/events/ActionDocument.d.ts +865 -452
- package/dist/commons/events/ActionInput.d.ts +443 -363
- package/dist/commons/events/AdvancedSearchConfig.d.ts +957 -22
- package/dist/commons/events/CompositeFieldValue.d.ts +3 -0
- package/dist/commons/events/Constants.d.ts +2 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +2982 -0
- package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
- package/dist/commons/events/Draft.d.ts +52 -39
- package/dist/commons/events/EventConfig.d.ts +50126 -1345
- package/dist/commons/events/EventDocument.d.ts +550 -330
- package/dist/commons/events/EventIndex.d.ts +1327 -18
- package/dist/commons/events/EventMetadata.d.ts +269 -16
- 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 +95 -39
- package/dist/commons/events/User.d.ts +31 -2
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +4525 -20
- package/dist/commons/events/defineConfig.d.ts +7940 -28
- 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 +7 -0
- package/dist/commons/events/scopes.d.ts +45 -0
- package/dist/commons/events/serializer.d.ts +2 -0
- package/dist/commons/events/test.utils.d.ts +22 -51
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +3670 -71
- package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
- package/dist/conditionals/index.js +55 -35
- package/dist/events/index.js +3662 -1691
- package/dist/scopes/index.d.ts +94 -6
- package/dist/scopes/index.js +42 -21
- package/package.json +3 -2
@@ -1,14 +1,17 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
export declare const Draft: z.ZodObject<{
|
3
|
-
id: z.ZodString
|
4
|
-
eventId: z.ZodString
|
3
|
+
id: z.ZodBranded<z.ZodString, "UUID">;
|
4
|
+
eventId: z.ZodBranded<z.ZodString, "UUID">;
|
5
5
|
transactionId: z.ZodString;
|
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
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
14
|
+
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
15
|
filename: z.ZodString;
|
13
16
|
originalFilename: z.ZodString;
|
14
17
|
type: z.ZodString;
|
@@ -122,7 +125,7 @@ export declare const Draft: z.ZodObject<{
|
|
122
125
|
addressLine3?: string | null | undefined;
|
123
126
|
postcodeOrZip?: string | null | undefined;
|
124
127
|
}>]>>;
|
125
|
-
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
128
|
+
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<{
|
126
129
|
filename: z.ZodString;
|
127
130
|
originalFilename: z.ZodString;
|
128
131
|
type: z.ZodString;
|
@@ -235,17 +238,18 @@ export declare const Draft: z.ZodObject<{
|
|
235
238
|
addressLine2?: string | null | undefined;
|
236
239
|
addressLine3?: string | null | undefined;
|
237
240
|
postcodeOrZip?: string | null | undefined;
|
238
|
-
}>]
|
239
|
-
createdAtLocation: z.ZodString;
|
241
|
+
}>]>>>>;
|
240
242
|
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
241
|
-
originalActionId: z.ZodOptional<z.ZodString
|
243
|
+
originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
|
242
244
|
}, {
|
243
245
|
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"]>;
|
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,8 +287,8 @@ export declare const Draft: z.ZodObject<{
|
|
283
287
|
option: string;
|
284
288
|
filename: string;
|
285
289
|
originalFilename: string;
|
286
|
-
}[] | undefined>;
|
287
|
-
createdAtLocation
|
290
|
+
}[] | [string, string] | undefined>;
|
291
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
288
292
|
annotation?: Record<string, string | number | boolean | {
|
289
293
|
type: string;
|
290
294
|
filename: 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;
|
326
|
-
originalActionId?: string | undefined;
|
329
|
+
}[] | [string, string] | undefined> | null | undefined;
|
330
|
+
originalActionId?: (string & z.BRAND<"UUID">) | null | 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,8 +372,8 @@ export declare const Draft: z.ZodObject<{
|
|
366
372
|
option: string;
|
367
373
|
filename: string;
|
368
374
|
originalFilename: string;
|
369
|
-
}[] | undefined>;
|
370
|
-
createdAtLocation
|
375
|
+
}[] | [string, string] | undefined>;
|
376
|
+
createdAtLocation?: string | null | undefined;
|
371
377
|
annotation?: Record<string, string | number | boolean | {
|
372
378
|
type: string;
|
373
379
|
filename: 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;
|
409
|
-
originalActionId?: string | undefined;
|
414
|
+
}[] | [string, string] | undefined> | null | undefined;
|
415
|
+
originalActionId?: string | null | undefined;
|
410
416
|
}>;
|
411
417
|
}, "strip", z.ZodTypeAny, {
|
412
|
-
id: string
|
413
|
-
createdAt: string;
|
414
|
-
eventId: string;
|
418
|
+
id: string & z.BRAND<"UUID">;
|
415
419
|
transactionId: string;
|
420
|
+
createdAt: string;
|
421
|
+
eventId: string & z.BRAND<"UUID">;
|
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,8 +463,8 @@ export declare const Draft: z.ZodObject<{
|
|
455
463
|
option: string;
|
456
464
|
filename: string;
|
457
465
|
originalFilename: string;
|
458
|
-
}[] | undefined>;
|
459
|
-
createdAtLocation
|
466
|
+
}[] | [string, string] | undefined>;
|
467
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
460
468
|
annotation?: Record<string, string | number | boolean | {
|
461
469
|
type: string;
|
462
470
|
filename: 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;
|
498
|
-
originalActionId?: string | undefined;
|
505
|
+
}[] | [string, string] | undefined> | null | undefined;
|
506
|
+
originalActionId?: (string & z.BRAND<"UUID">) | null | 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,8 +554,8 @@ export declare const Draft: z.ZodObject<{
|
|
544
554
|
option: string;
|
545
555
|
filename: string;
|
546
556
|
originalFilename: string;
|
547
|
-
}[] | undefined>;
|
548
|
-
createdAtLocation
|
557
|
+
}[] | [string, string] | undefined>;
|
558
|
+
createdAtLocation?: string | null | undefined;
|
549
559
|
annotation?: Record<string, string | number | boolean | {
|
550
560
|
type: string;
|
551
561
|
filename: 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;
|
587
|
-
originalActionId?: string | undefined;
|
596
|
+
}[] | [string, string] | undefined> | null | undefined;
|
597
|
+
originalActionId?: string | null | undefined;
|
588
598
|
};
|
589
599
|
}>;
|
590
600
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
591
|
-
eventId: z.ZodString
|
601
|
+
eventId: z.ZodBranded<z.ZodString, "UUID">;
|
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;
|
@@ -818,12 +828,15 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
818
828
|
addressLine3?: string | null | undefined;
|
819
829
|
postcodeOrZip?: string | null | undefined;
|
820
830
|
}>]>>>;
|
821
|
-
originalActionId: z.ZodOptional<z.ZodString
|
831
|
+
originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
|
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>;
|
865
|
-
eventId: string
|
866
|
-
transactionId: string;
|
877
|
+
}[] | [string, string] | undefined>;
|
878
|
+
eventId: string & z.BRAND<"UUID">;
|
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;
|
905
|
-
originalActionId?: string | undefined;
|
916
|
+
}[] | [string, string] | undefined> | undefined;
|
917
|
+
originalActionId?: (string & z.BRAND<"UUID">) | 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
|
}>;
|