@opencrvs/toolkit 1.8.0-rc.faacbde → 1.8.0-rc.facf9d6
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 +12657 -13930
- package/dist/commons/conditionals/conditionals.d.ts +25 -6
- package/dist/commons/conditionals/validate.d.ts +12 -17
- package/dist/commons/events/ActionConfig.d.ts +94298 -1733
- package/dist/commons/events/ActionDocument.d.ts +7848 -230
- package/dist/commons/events/ActionInput.d.ts +1417 -388
- package/dist/commons/events/ActionType.d.ts +6 -3
- package/dist/commons/events/AdvancedSearchConfig.d.ts +957 -22
- package/dist/commons/events/CompositeFieldValue.d.ts +3 -0
- package/dist/commons/events/Conditional.d.ts +21 -5
- 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 +3 -0
- package/dist/commons/events/Draft.d.ts +62 -28
- package/dist/commons/events/EventConfig.d.ts +42895 -1350
- package/dist/commons/events/EventDocument.d.ts +950 -254
- package/dist/commons/events/EventIndex.d.ts +1342 -13
- package/dist/commons/events/EventMetadata.d.ts +300 -11
- package/dist/commons/events/FieldConfig.d.ts +4549 -802
- package/dist/commons/events/FieldType.d.ts +3 -3
- package/dist/commons/events/FieldTypeMapping.d.ts +16 -6
- package/dist/commons/events/FieldValue.d.ts +9 -4
- package/dist/commons/events/FormConfig.d.ts +43951 -439
- package/dist/commons/events/PageConfig.d.ts +10954 -234
- package/dist/commons/events/SummaryConfig.d.ts +95 -39
- package/dist/commons/events/TemplateConfig.d.ts +5 -5
- 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 +6600 -66
- package/dist/commons/events/event.d.ts +54 -0
- package/dist/commons/events/field.d.ts +73 -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 +52 -160
- package/dist/commons/events/utils.d.ts +3726 -39
- package/dist/commons/events/utils.test.d.ts +2 -0
- package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
- package/dist/conditionals/index.js +197 -144
- package/dist/events/index.js +4233 -2017
- package/dist/scopes/index.d.ts +158 -1
- package/dist/scopes/index.js +152 -1
- package/package.json +3 -2
@@ -6,9 +6,13 @@ 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
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
14
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
15
|
+
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
16
|
filename: z.ZodString;
|
13
17
|
originalFilename: z.ZodString;
|
14
18
|
type: z.ZodString;
|
@@ -122,7 +126,7 @@ export declare const Draft: z.ZodObject<{
|
|
122
126
|
addressLine3?: string | null | undefined;
|
123
127
|
postcodeOrZip?: string | null | undefined;
|
124
128
|
}>]>>;
|
125
|
-
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
129
|
+
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
130
|
filename: z.ZodString;
|
127
131
|
originalFilename: z.ZodString;
|
128
132
|
type: z.ZodString;
|
@@ -236,13 +240,17 @@ export declare const Draft: z.ZodObject<{
|
|
236
240
|
addressLine3?: string | null | undefined;
|
237
241
|
postcodeOrZip?: string | null | undefined;
|
238
242
|
}>]>>>;
|
239
|
-
|
243
|
+
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
244
|
+
originalActionId: z.ZodOptional<z.ZodString>;
|
240
245
|
}, {
|
241
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"]>;
|
242
247
|
}>, "id">, "strip", z.ZodTypeAny, {
|
243
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;
|
244
251
|
createdAt: string;
|
245
252
|
createdBy: string;
|
253
|
+
createdByRole: string;
|
246
254
|
declaration: Record<string, string | number | boolean | {
|
247
255
|
type: string;
|
248
256
|
filename: string;
|
@@ -280,8 +288,9 @@ export declare const Draft: z.ZodObject<{
|
|
280
288
|
option: string;
|
281
289
|
filename: string;
|
282
290
|
originalFilename: string;
|
283
|
-
}[] | undefined>;
|
284
|
-
|
291
|
+
}[] | [string, string] | undefined>;
|
292
|
+
createdBySignature?: string | null | undefined;
|
293
|
+
createdAtLocation?: string | null | undefined;
|
285
294
|
annotation?: Record<string, string | number | boolean | {
|
286
295
|
type: string;
|
287
296
|
filename: string;
|
@@ -319,11 +328,15 @@ export declare const Draft: z.ZodObject<{
|
|
319
328
|
option: string;
|
320
329
|
filename: string;
|
321
330
|
originalFilename: string;
|
322
|
-
}[] | undefined> | undefined;
|
331
|
+
}[] | [string, string] | undefined> | undefined;
|
332
|
+
originalActionId?: string | undefined;
|
323
333
|
}, {
|
324
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;
|
325
337
|
createdAt: string;
|
326
338
|
createdBy: string;
|
339
|
+
createdByRole: string;
|
327
340
|
declaration: Record<string, string | number | boolean | {
|
328
341
|
type: string;
|
329
342
|
filename: string;
|
@@ -361,8 +374,9 @@ export declare const Draft: z.ZodObject<{
|
|
361
374
|
option: string;
|
362
375
|
filename: string;
|
363
376
|
originalFilename: string;
|
364
|
-
}[] | undefined>;
|
365
|
-
|
377
|
+
}[] | [string, string] | undefined>;
|
378
|
+
createdBySignature?: string | null | undefined;
|
379
|
+
createdAtLocation?: string | null | undefined;
|
366
380
|
annotation?: Record<string, string | number | boolean | {
|
367
381
|
type: string;
|
368
382
|
filename: string;
|
@@ -400,17 +414,21 @@ export declare const Draft: z.ZodObject<{
|
|
400
414
|
option: string;
|
401
415
|
filename: string;
|
402
416
|
originalFilename: string;
|
403
|
-
}[] | undefined> | undefined;
|
417
|
+
}[] | [string, string] | undefined> | undefined;
|
418
|
+
originalActionId?: string | undefined;
|
404
419
|
}>;
|
405
420
|
}, "strip", z.ZodTypeAny, {
|
406
421
|
id: string;
|
422
|
+
transactionId: string;
|
407
423
|
createdAt: string;
|
408
424
|
eventId: string;
|
409
|
-
transactionId: string;
|
410
425
|
action: {
|
411
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;
|
412
429
|
createdAt: string;
|
413
430
|
createdBy: string;
|
431
|
+
createdByRole: string;
|
414
432
|
declaration: Record<string, string | number | boolean | {
|
415
433
|
type: string;
|
416
434
|
filename: string;
|
@@ -448,8 +466,9 @@ export declare const Draft: z.ZodObject<{
|
|
448
466
|
option: string;
|
449
467
|
filename: string;
|
450
468
|
originalFilename: string;
|
451
|
-
}[] | undefined>;
|
452
|
-
|
469
|
+
}[] | [string, string] | undefined>;
|
470
|
+
createdBySignature?: string | null | undefined;
|
471
|
+
createdAtLocation?: string | null | undefined;
|
453
472
|
annotation?: Record<string, string | number | boolean | {
|
454
473
|
type: string;
|
455
474
|
filename: string;
|
@@ -487,17 +506,21 @@ export declare const Draft: z.ZodObject<{
|
|
487
506
|
option: string;
|
488
507
|
filename: string;
|
489
508
|
originalFilename: string;
|
490
|
-
}[] | undefined> | undefined;
|
509
|
+
}[] | [string, string] | undefined> | undefined;
|
510
|
+
originalActionId?: string | undefined;
|
491
511
|
};
|
492
512
|
}, {
|
493
513
|
id: string;
|
514
|
+
transactionId: string;
|
494
515
|
createdAt: string;
|
495
516
|
eventId: string;
|
496
|
-
transactionId: string;
|
497
517
|
action: {
|
498
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;
|
499
521
|
createdAt: string;
|
500
522
|
createdBy: string;
|
523
|
+
createdByRole: string;
|
501
524
|
declaration: Record<string, string | number | boolean | {
|
502
525
|
type: string;
|
503
526
|
filename: string;
|
@@ -535,8 +558,9 @@ export declare const Draft: z.ZodObject<{
|
|
535
558
|
option: string;
|
536
559
|
filename: string;
|
537
560
|
originalFilename: string;
|
538
|
-
}[] | undefined>;
|
539
|
-
|
561
|
+
}[] | [string, string] | undefined>;
|
562
|
+
createdBySignature?: string | null | undefined;
|
563
|
+
createdAtLocation?: string | null | undefined;
|
540
564
|
annotation?: Record<string, string | number | boolean | {
|
541
565
|
type: string;
|
542
566
|
filename: string;
|
@@ -574,13 +598,14 @@ export declare const Draft: z.ZodObject<{
|
|
574
598
|
option: string;
|
575
599
|
filename: string;
|
576
600
|
originalFilename: string;
|
577
|
-
}[] | undefined> | undefined;
|
601
|
+
}[] | [string, string] | undefined> | undefined;
|
602
|
+
originalActionId?: string | undefined;
|
578
603
|
};
|
579
604
|
}>;
|
580
605
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
581
606
|
eventId: z.ZodString;
|
582
607
|
transactionId: z.ZodString;
|
583
|
-
declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
608
|
+
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<{
|
584
609
|
filename: z.ZodString;
|
585
610
|
originalFilename: z.ZodString;
|
586
611
|
type: z.ZodString;
|
@@ -693,8 +718,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
693
718
|
addressLine2?: string | null | undefined;
|
694
719
|
addressLine3?: string | null | undefined;
|
695
720
|
postcodeOrZip?: string | null | undefined;
|
696
|
-
}>]
|
697
|
-
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
721
|
+
}>]>>>;
|
722
|
+
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<{
|
698
723
|
filename: z.ZodString;
|
699
724
|
originalFilename: z.ZodString;
|
700
725
|
type: z.ZodString;
|
@@ -808,10 +833,15 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
808
833
|
addressLine3?: string | null | undefined;
|
809
834
|
postcodeOrZip?: string | null | undefined;
|
810
835
|
}>]>>>;
|
836
|
+
originalActionId: z.ZodOptional<z.ZodString>;
|
837
|
+
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
811
838
|
}, {
|
812
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"]>;
|
840
|
+
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
813
841
|
}>, "strip", z.ZodTypeAny, {
|
814
842
|
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";
|
843
|
+
status: "Rejected" | "Requested" | "Accepted";
|
844
|
+
transactionId: string;
|
815
845
|
declaration: Record<string, string | number | boolean | {
|
816
846
|
type: string;
|
817
847
|
filename: string;
|
@@ -849,9 +879,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
849
879
|
option: string;
|
850
880
|
filename: string;
|
851
881
|
originalFilename: string;
|
852
|
-
}[] | undefined>;
|
882
|
+
}[] | [string, string] | undefined>;
|
853
883
|
eventId: string;
|
854
|
-
transactionId: string;
|
855
884
|
annotation?: Record<string, string | number | boolean | {
|
856
885
|
type: string;
|
857
886
|
filename: string;
|
@@ -889,10 +918,15 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
889
918
|
option: string;
|
890
919
|
filename: string;
|
891
920
|
originalFilename: string;
|
892
|
-
}[] | undefined> | undefined;
|
921
|
+
}[] | [string, string] | undefined> | undefined;
|
922
|
+
originalActionId?: string | undefined;
|
923
|
+
keepAssignment?: boolean | undefined;
|
893
924
|
}, {
|
894
925
|
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";
|
895
|
-
|
926
|
+
status: "Rejected" | "Requested" | "Accepted";
|
927
|
+
transactionId: string;
|
928
|
+
eventId: string;
|
929
|
+
declaration?: Record<string, string | number | boolean | {
|
896
930
|
type: string;
|
897
931
|
filename: string;
|
898
932
|
originalFilename: string;
|
@@ -929,9 +963,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
929
963
|
option: string;
|
930
964
|
filename: string;
|
931
965
|
originalFilename: string;
|
932
|
-
}[] | undefined
|
933
|
-
eventId: string;
|
934
|
-
transactionId: string;
|
966
|
+
}[] | [string, string] | undefined> | undefined;
|
935
967
|
annotation?: Record<string, string | number | boolean | {
|
936
968
|
type: string;
|
937
969
|
filename: string;
|
@@ -969,7 +1001,9 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
969
1001
|
option: string;
|
970
1002
|
filename: string;
|
971
1003
|
originalFilename: string;
|
972
|
-
}[] | undefined> | undefined;
|
1004
|
+
}[] | [string, string] | undefined> | undefined;
|
1005
|
+
originalActionId?: string | undefined;
|
1006
|
+
keepAssignment?: boolean | undefined;
|
973
1007
|
}>;
|
974
1008
|
export type Draft = z.infer<typeof Draft>;
|
975
1009
|
export type DraftInput = z.infer<typeof DraftInput>;
|