@opencrvs/toolkit 1.8.0-rc.f9911ed → 1.8.0-rc.f9d33b7
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/README.md +1 -1
- package/dist/commons/api/router.d.ts +10101 -14872
- package/dist/commons/conditionals/conditionals.d.ts +30 -5
- package/dist/commons/conditionals/validate.d.ts +12 -17
- package/dist/commons/events/ActionConfig.d.ts +85214 -5717
- package/dist/commons/events/ActionDocument.d.ts +7706 -295
- package/dist/commons/events/ActionInput.d.ts +2164 -419
- package/dist/commons/events/ActionType.d.ts +26 -16
- package/dist/commons/events/AdvancedSearchConfig.d.ts +371 -25
- package/dist/commons/events/CompositeFieldValue.d.ts +3 -0
- package/dist/commons/events/Conditional.d.ts +21 -5
- package/dist/commons/events/Draft.d.ts +75 -45
- package/dist/commons/events/EventConfig.d.ts +40486 -2985
- package/dist/commons/events/EventConfigInput.d.ts +5 -2
- package/dist/commons/events/EventDocument.d.ts +1027 -379
- package/dist/commons/events/EventIndex.d.ts +921 -7
- package/dist/commons/events/EventInput.d.ts +13 -0
- package/dist/commons/events/EventMetadata.d.ts +16 -3
- package/dist/commons/events/FieldConfig.d.ts +3702 -757
- package/dist/commons/events/FieldType.d.ts +1 -2
- package/dist/commons/events/FieldValue.d.ts +1 -1
- package/dist/commons/events/FormConfig.d.ts +38914 -339
- package/dist/commons/events/PageConfig.d.ts +9803 -0
- package/dist/commons/events/SummaryConfig.d.ts +81 -42
- package/dist/commons/events/TemplateConfig.d.ts +5 -5
- package/dist/commons/events/User.d.ts +5 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +44 -20
- package/dist/commons/events/defineConfig.d.ts +6758 -485
- package/dist/commons/events/event.d.ts +25 -0
- package/dist/commons/events/field.d.ts +68 -0
- package/dist/commons/events/index.d.ts +5 -1
- package/dist/commons/events/scopes.d.ts +26 -0
- package/dist/commons/events/test.utils.d.ts +63 -321
- package/dist/commons/events/utils.d.ts +3423 -179
- package/dist/commons/events/utils.test.d.ts +2 -0
- package/dist/conditionals/index.js +191 -120
- package/dist/events/index.js +1855 -1187
- package/package.json +3 -2
@@ -1,5 +1,4 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
-
import { ActionType } from './ActionType';
|
3
2
|
export declare const Draft: z.ZodObject<{
|
4
3
|
id: z.ZodString;
|
5
4
|
eventId: z.ZodString;
|
@@ -7,9 +6,11 @@ export declare const Draft: z.ZodObject<{
|
|
7
6
|
createdAt: z.ZodString;
|
8
7
|
action: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
9
8
|
id: z.ZodString;
|
9
|
+
transactionId: z.ZodString;
|
10
10
|
createdAt: z.ZodString;
|
11
11
|
createdBy: z.ZodString;
|
12
|
-
|
12
|
+
createdByRole: z.ZodString;
|
13
|
+
declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
13
14
|
filename: z.ZodString;
|
14
15
|
originalFilename: z.ZodString;
|
15
16
|
type: z.ZodString;
|
@@ -123,7 +124,7 @@ export declare const Draft: z.ZodObject<{
|
|
123
124
|
addressLine3?: string | null | undefined;
|
124
125
|
postcodeOrZip?: string | null | undefined;
|
125
126
|
}>]>>;
|
126
|
-
|
127
|
+
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
127
128
|
filename: z.ZodString;
|
128
129
|
originalFilename: z.ZodString;
|
129
130
|
type: z.ZodString;
|
@@ -237,12 +238,20 @@ export declare const Draft: z.ZodObject<{
|
|
237
238
|
addressLine3?: string | null | undefined;
|
238
239
|
postcodeOrZip?: string | null | undefined;
|
239
240
|
}>]>>>;
|
240
|
-
createdAtLocation: z.ZodString
|
241
|
+
createdAtLocation: z.ZodOptional<z.ZodString>;
|
242
|
+
updatedAtLocation: z.ZodOptional<z.ZodString>;
|
243
|
+
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
244
|
+
originalActionId: z.ZodOptional<z.ZodString>;
|
241
245
|
}, {
|
242
|
-
type: z.ZodEnum<[
|
246
|
+
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"]>;
|
243
247
|
}>, "id">, "strip", z.ZodTypeAny, {
|
244
|
-
type:
|
245
|
-
|
248
|
+
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";
|
249
|
+
status: "Rejected" | "Requested" | "Accepted";
|
250
|
+
transactionId: string;
|
251
|
+
createdAt: string;
|
252
|
+
createdBy: string;
|
253
|
+
createdByRole: string;
|
254
|
+
declaration: Record<string, string | number | boolean | {
|
246
255
|
type: string;
|
247
256
|
filename: string;
|
248
257
|
originalFilename: string;
|
@@ -280,10 +289,7 @@ export declare const Draft: z.ZodObject<{
|
|
280
289
|
filename: string;
|
281
290
|
originalFilename: string;
|
282
291
|
}[] | undefined>;
|
283
|
-
|
284
|
-
createdBy: string;
|
285
|
-
createdAtLocation: string;
|
286
|
-
metadata?: Record<string, string | number | boolean | {
|
292
|
+
annotation?: Record<string, string | number | boolean | {
|
287
293
|
type: string;
|
288
294
|
filename: string;
|
289
295
|
originalFilename: string;
|
@@ -321,9 +327,17 @@ export declare const Draft: z.ZodObject<{
|
|
321
327
|
filename: string;
|
322
328
|
originalFilename: string;
|
323
329
|
}[] | undefined> | undefined;
|
330
|
+
createdAtLocation?: string | undefined;
|
331
|
+
updatedAtLocation?: string | undefined;
|
332
|
+
originalActionId?: string | undefined;
|
324
333
|
}, {
|
325
|
-
type:
|
326
|
-
|
334
|
+
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";
|
335
|
+
status: "Rejected" | "Requested" | "Accepted";
|
336
|
+
transactionId: string;
|
337
|
+
createdAt: string;
|
338
|
+
createdBy: string;
|
339
|
+
createdByRole: string;
|
340
|
+
declaration: Record<string, string | number | boolean | {
|
327
341
|
type: string;
|
328
342
|
filename: string;
|
329
343
|
originalFilename: string;
|
@@ -361,10 +375,7 @@ export declare const Draft: z.ZodObject<{
|
|
361
375
|
filename: string;
|
362
376
|
originalFilename: string;
|
363
377
|
}[] | undefined>;
|
364
|
-
|
365
|
-
createdBy: string;
|
366
|
-
createdAtLocation: string;
|
367
|
-
metadata?: Record<string, string | number | boolean | {
|
378
|
+
annotation?: Record<string, string | number | boolean | {
|
368
379
|
type: string;
|
369
380
|
filename: string;
|
370
381
|
originalFilename: string;
|
@@ -402,15 +413,23 @@ export declare const Draft: z.ZodObject<{
|
|
402
413
|
filename: string;
|
403
414
|
originalFilename: string;
|
404
415
|
}[] | undefined> | undefined;
|
416
|
+
createdAtLocation?: string | undefined;
|
417
|
+
updatedAtLocation?: string | undefined;
|
418
|
+
originalActionId?: string | undefined;
|
405
419
|
}>;
|
406
420
|
}, "strip", z.ZodTypeAny, {
|
407
421
|
id: string;
|
422
|
+
transactionId: string;
|
408
423
|
createdAt: string;
|
409
424
|
eventId: string;
|
410
|
-
transactionId: string;
|
411
425
|
action: {
|
412
|
-
type:
|
413
|
-
|
426
|
+
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";
|
427
|
+
status: "Rejected" | "Requested" | "Accepted";
|
428
|
+
transactionId: string;
|
429
|
+
createdAt: string;
|
430
|
+
createdBy: string;
|
431
|
+
createdByRole: string;
|
432
|
+
declaration: Record<string, string | number | boolean | {
|
414
433
|
type: string;
|
415
434
|
filename: string;
|
416
435
|
originalFilename: string;
|
@@ -448,10 +467,7 @@ export declare const Draft: z.ZodObject<{
|
|
448
467
|
filename: string;
|
449
468
|
originalFilename: string;
|
450
469
|
}[] | undefined>;
|
451
|
-
|
452
|
-
createdBy: string;
|
453
|
-
createdAtLocation: string;
|
454
|
-
metadata?: Record<string, string | number | boolean | {
|
470
|
+
annotation?: Record<string, string | number | boolean | {
|
455
471
|
type: string;
|
456
472
|
filename: string;
|
457
473
|
originalFilename: string;
|
@@ -489,15 +505,23 @@ export declare const Draft: z.ZodObject<{
|
|
489
505
|
filename: string;
|
490
506
|
originalFilename: string;
|
491
507
|
}[] | undefined> | undefined;
|
508
|
+
createdAtLocation?: string | undefined;
|
509
|
+
updatedAtLocation?: string | undefined;
|
510
|
+
originalActionId?: string | undefined;
|
492
511
|
};
|
493
512
|
}, {
|
494
513
|
id: string;
|
514
|
+
transactionId: string;
|
495
515
|
createdAt: string;
|
496
516
|
eventId: string;
|
497
|
-
transactionId: string;
|
498
517
|
action: {
|
499
|
-
type:
|
500
|
-
|
518
|
+
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";
|
519
|
+
status: "Rejected" | "Requested" | "Accepted";
|
520
|
+
transactionId: string;
|
521
|
+
createdAt: string;
|
522
|
+
createdBy: string;
|
523
|
+
createdByRole: string;
|
524
|
+
declaration: Record<string, string | number | boolean | {
|
501
525
|
type: string;
|
502
526
|
filename: string;
|
503
527
|
originalFilename: string;
|
@@ -535,10 +559,7 @@ export declare const Draft: z.ZodObject<{
|
|
535
559
|
filename: string;
|
536
560
|
originalFilename: string;
|
537
561
|
}[] | undefined>;
|
538
|
-
|
539
|
-
createdBy: string;
|
540
|
-
createdAtLocation: string;
|
541
|
-
metadata?: Record<string, string | number | boolean | {
|
562
|
+
annotation?: Record<string, string | number | boolean | {
|
542
563
|
type: string;
|
543
564
|
filename: string;
|
544
565
|
originalFilename: string;
|
@@ -576,12 +597,15 @@ export declare const Draft: z.ZodObject<{
|
|
576
597
|
filename: string;
|
577
598
|
originalFilename: string;
|
578
599
|
}[] | undefined> | undefined;
|
600
|
+
createdAtLocation?: string | undefined;
|
601
|
+
updatedAtLocation?: string | undefined;
|
602
|
+
originalActionId?: string | undefined;
|
579
603
|
};
|
580
604
|
}>;
|
581
605
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
582
606
|
eventId: z.ZodString;
|
583
607
|
transactionId: z.ZodString;
|
584
|
-
|
608
|
+
declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
585
609
|
filename: z.ZodString;
|
586
610
|
originalFilename: z.ZodString;
|
587
611
|
type: z.ZodString;
|
@@ -694,8 +718,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
694
718
|
addressLine2?: string | null | undefined;
|
695
719
|
addressLine3?: string | null | undefined;
|
696
720
|
postcodeOrZip?: string | null | undefined;
|
697
|
-
}>]
|
698
|
-
|
721
|
+
}>]>>>;
|
722
|
+
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
699
723
|
filename: z.ZodString;
|
700
724
|
originalFilename: z.ZodString;
|
701
725
|
type: z.ZodString;
|
@@ -809,11 +833,14 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
809
833
|
addressLine3?: string | null | undefined;
|
810
834
|
postcodeOrZip?: string | null | undefined;
|
811
835
|
}>]>>>;
|
836
|
+
originalActionId: z.ZodOptional<z.ZodString>;
|
837
|
+
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
812
838
|
}, {
|
813
|
-
type: z.ZodEnum<[
|
839
|
+
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"]>;
|
814
840
|
}>, "strip", z.ZodTypeAny, {
|
815
|
-
type:
|
816
|
-
|
841
|
+
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";
|
842
|
+
transactionId: string;
|
843
|
+
declaration: Record<string, string | number | boolean | {
|
817
844
|
type: string;
|
818
845
|
filename: string;
|
819
846
|
originalFilename: string;
|
@@ -852,8 +879,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
852
879
|
originalFilename: string;
|
853
880
|
}[] | undefined>;
|
854
881
|
eventId: string;
|
855
|
-
|
856
|
-
metadata?: Record<string, string | number | boolean | {
|
882
|
+
annotation?: Record<string, string | number | boolean | {
|
857
883
|
type: string;
|
858
884
|
filename: string;
|
859
885
|
originalFilename: string;
|
@@ -891,9 +917,13 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
891
917
|
filename: string;
|
892
918
|
originalFilename: string;
|
893
919
|
}[] | undefined> | undefined;
|
920
|
+
originalActionId?: string | undefined;
|
921
|
+
keepAssignment?: boolean | undefined;
|
894
922
|
}, {
|
895
|
-
type:
|
896
|
-
|
923
|
+
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";
|
924
|
+
transactionId: string;
|
925
|
+
eventId: string;
|
926
|
+
declaration?: Record<string, string | number | boolean | {
|
897
927
|
type: string;
|
898
928
|
filename: string;
|
899
929
|
originalFilename: string;
|
@@ -930,10 +960,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
930
960
|
option: string;
|
931
961
|
filename: string;
|
932
962
|
originalFilename: string;
|
933
|
-
}[] | undefined
|
934
|
-
|
935
|
-
transactionId: string;
|
936
|
-
metadata?: Record<string, string | number | boolean | {
|
963
|
+
}[] | undefined> | undefined;
|
964
|
+
annotation?: Record<string, string | number | boolean | {
|
937
965
|
type: string;
|
938
966
|
filename: string;
|
939
967
|
originalFilename: string;
|
@@ -971,6 +999,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
971
999
|
filename: string;
|
972
1000
|
originalFilename: string;
|
973
1001
|
}[] | undefined> | undefined;
|
1002
|
+
originalActionId?: string | undefined;
|
1003
|
+
keepAssignment?: boolean | undefined;
|
974
1004
|
}>;
|
975
1005
|
export type Draft = z.infer<typeof Draft>;
|
976
1006
|
export type DraftInput = z.infer<typeof DraftInput>;
|