@opencrvs/toolkit 1.8.0-rc.fb2e700 → 1.8.0-rc.fb5b9fe
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 +12023 -4357
- package/dist/commons/conditionals/conditionals.d.ts +10 -6
- package/dist/commons/conditionals/validate.d.ts +4 -6
- package/dist/commons/events/ActionConfig.d.ts +105057 -1720
- package/dist/commons/events/ActionDocument.d.ts +970 -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 +57 -39
- package/dist/commons/events/EventConfig.d.ts +50483 -1345
- package/dist/commons/events/EventDocument.d.ts +630 -330
- package/dist/commons/events/EventIndex.d.ts +1344 -18
- package/dist/commons/events/EventMetadata.d.ts +302 -16
- package/dist/commons/events/FieldConfig.d.ts +4358 -786
- 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 +43885 -439
- package/dist/commons/events/PageConfig.d.ts +10930 -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 +8017 -28
- 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 +35 -51
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +3706 -71
- package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
- package/dist/conditionals/index.js +58 -35
- package/dist/events/index.js +3152 -1166
- package/dist/scopes/index.d.ts +94 -6
- package/dist/scopes/index.js +42 -21
- package/package.json +3 -2
@@ -1,14 +1,18 @@
|
|
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
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
14
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
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.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
130
|
filename: z.ZodString;
|
127
131
|
originalFilename: z.ZodString;
|
128
132
|
type: z.ZodString;
|
@@ -235,17 +239,18 @@ export declare const Draft: z.ZodObject<{
|
|
235
239
|
addressLine2?: string | null | undefined;
|
236
240
|
addressLine3?: string | null | undefined;
|
237
241
|
postcodeOrZip?: string | null | undefined;
|
238
|
-
}>]
|
239
|
-
createdAtLocation: z.ZodString;
|
242
|
+
}>]>>>>;
|
240
243
|
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
241
|
-
originalActionId: z.ZodOptional<z.ZodString
|
244
|
+
originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
|
242
245
|
}, {
|
243
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"]>;
|
244
247
|
}>, "id">, "strip", z.ZodTypeAny, {
|
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";
|
246
249
|
status: "Rejected" | "Requested" | "Accepted";
|
250
|
+
transactionId: string;
|
247
251
|
createdAt: string;
|
248
252
|
createdBy: string;
|
253
|
+
createdByRole: string;
|
249
254
|
declaration: Record<string, string | number | boolean | {
|
250
255
|
type: string;
|
251
256
|
filename: string;
|
@@ -283,8 +288,9 @@ export declare const Draft: z.ZodObject<{
|
|
283
288
|
option: string;
|
284
289
|
filename: string;
|
285
290
|
originalFilename: string;
|
286
|
-
}[] | undefined>;
|
287
|
-
|
291
|
+
}[] | [string, string] | undefined>;
|
292
|
+
createdBySignature?: string | null | undefined;
|
293
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
288
294
|
annotation?: Record<string, string | number | boolean | {
|
289
295
|
type: string;
|
290
296
|
filename: string;
|
@@ -322,13 +328,15 @@ export declare const Draft: z.ZodObject<{
|
|
322
328
|
option: string;
|
323
329
|
filename: string;
|
324
330
|
originalFilename: string;
|
325
|
-
}[] | undefined> | undefined;
|
326
|
-
originalActionId?: string | undefined;
|
331
|
+
}[] | [string, string] | undefined> | null | undefined;
|
332
|
+
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
327
333
|
}, {
|
328
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";
|
329
335
|
status: "Rejected" | "Requested" | "Accepted";
|
336
|
+
transactionId: string;
|
330
337
|
createdAt: string;
|
331
338
|
createdBy: string;
|
339
|
+
createdByRole: string;
|
332
340
|
declaration: Record<string, string | number | boolean | {
|
333
341
|
type: string;
|
334
342
|
filename: string;
|
@@ -366,8 +374,9 @@ export declare const Draft: z.ZodObject<{
|
|
366
374
|
option: string;
|
367
375
|
filename: string;
|
368
376
|
originalFilename: string;
|
369
|
-
}[] | undefined>;
|
370
|
-
|
377
|
+
}[] | [string, string] | undefined>;
|
378
|
+
createdBySignature?: string | null | undefined;
|
379
|
+
createdAtLocation?: string | null | undefined;
|
371
380
|
annotation?: Record<string, string | number | boolean | {
|
372
381
|
type: string;
|
373
382
|
filename: string;
|
@@ -405,19 +414,21 @@ export declare const Draft: z.ZodObject<{
|
|
405
414
|
option: string;
|
406
415
|
filename: string;
|
407
416
|
originalFilename: string;
|
408
|
-
}[] | undefined> | undefined;
|
409
|
-
originalActionId?: string | undefined;
|
417
|
+
}[] | [string, string] | undefined> | null | undefined;
|
418
|
+
originalActionId?: string | null | undefined;
|
410
419
|
}>;
|
411
420
|
}, "strip", z.ZodTypeAny, {
|
412
|
-
id: string
|
413
|
-
createdAt: string;
|
414
|
-
eventId: string;
|
421
|
+
id: string & z.BRAND<"UUID">;
|
415
422
|
transactionId: string;
|
423
|
+
createdAt: string;
|
424
|
+
eventId: string & z.BRAND<"UUID">;
|
416
425
|
action: {
|
417
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";
|
418
427
|
status: "Rejected" | "Requested" | "Accepted";
|
428
|
+
transactionId: string;
|
419
429
|
createdAt: string;
|
420
430
|
createdBy: string;
|
431
|
+
createdByRole: string;
|
421
432
|
declaration: Record<string, string | number | boolean | {
|
422
433
|
type: string;
|
423
434
|
filename: string;
|
@@ -455,8 +466,9 @@ export declare const Draft: z.ZodObject<{
|
|
455
466
|
option: string;
|
456
467
|
filename: string;
|
457
468
|
originalFilename: string;
|
458
|
-
}[] | undefined>;
|
459
|
-
|
469
|
+
}[] | [string, string] | undefined>;
|
470
|
+
createdBySignature?: string | null | undefined;
|
471
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
460
472
|
annotation?: Record<string, string | number | boolean | {
|
461
473
|
type: string;
|
462
474
|
filename: string;
|
@@ -494,19 +506,21 @@ export declare const Draft: z.ZodObject<{
|
|
494
506
|
option: string;
|
495
507
|
filename: string;
|
496
508
|
originalFilename: string;
|
497
|
-
}[] | undefined> | undefined;
|
498
|
-
originalActionId?: string | undefined;
|
509
|
+
}[] | [string, string] | undefined> | null | undefined;
|
510
|
+
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
499
511
|
};
|
500
512
|
}, {
|
501
513
|
id: string;
|
514
|
+
transactionId: string;
|
502
515
|
createdAt: string;
|
503
516
|
eventId: string;
|
504
|
-
transactionId: string;
|
505
517
|
action: {
|
506
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";
|
507
519
|
status: "Rejected" | "Requested" | "Accepted";
|
520
|
+
transactionId: string;
|
508
521
|
createdAt: string;
|
509
522
|
createdBy: string;
|
523
|
+
createdByRole: string;
|
510
524
|
declaration: Record<string, string | number | boolean | {
|
511
525
|
type: string;
|
512
526
|
filename: string;
|
@@ -544,8 +558,9 @@ export declare const Draft: z.ZodObject<{
|
|
544
558
|
option: string;
|
545
559
|
filename: string;
|
546
560
|
originalFilename: string;
|
547
|
-
}[] | undefined>;
|
548
|
-
|
561
|
+
}[] | [string, string] | undefined>;
|
562
|
+
createdBySignature?: string | null | undefined;
|
563
|
+
createdAtLocation?: string | null | undefined;
|
549
564
|
annotation?: Record<string, string | number | boolean | {
|
550
565
|
type: string;
|
551
566
|
filename: string;
|
@@ -583,14 +598,14 @@ export declare const Draft: z.ZodObject<{
|
|
583
598
|
option: string;
|
584
599
|
filename: string;
|
585
600
|
originalFilename: string;
|
586
|
-
}[] | undefined> | undefined;
|
587
|
-
originalActionId?: string | undefined;
|
601
|
+
}[] | [string, string] | undefined> | null | undefined;
|
602
|
+
originalActionId?: string | null | undefined;
|
588
603
|
};
|
589
604
|
}>;
|
590
605
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
591
|
-
eventId: z.ZodString
|
606
|
+
eventId: z.ZodBranded<z.ZodString, "UUID">;
|
592
607
|
transactionId: z.ZodString;
|
593
|
-
declaration: z.ZodDefault<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<{
|
594
609
|
filename: z.ZodString;
|
595
610
|
originalFilename: z.ZodString;
|
596
611
|
type: z.ZodString;
|
@@ -704,7 +719,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
704
719
|
addressLine3?: string | null | undefined;
|
705
720
|
postcodeOrZip?: string | null | undefined;
|
706
721
|
}>]>>>;
|
707
|
-
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
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<{
|
708
723
|
filename: z.ZodString;
|
709
724
|
originalFilename: z.ZodString;
|
710
725
|
type: z.ZodString;
|
@@ -818,12 +833,15 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
818
833
|
addressLine3?: string | null | undefined;
|
819
834
|
postcodeOrZip?: string | null | undefined;
|
820
835
|
}>]>>>;
|
821
|
-
originalActionId: z.ZodOptional<z.ZodString
|
836
|
+
originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
|
822
837
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
823
838
|
}, {
|
824
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"]>;
|
825
841
|
}>, "strip", z.ZodTypeAny, {
|
826
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;
|
827
845
|
declaration: Record<string, string | number | boolean | {
|
828
846
|
type: string;
|
829
847
|
filename: string;
|
@@ -861,9 +879,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
861
879
|
option: string;
|
862
880
|
filename: string;
|
863
881
|
originalFilename: string;
|
864
|
-
}[] | undefined>;
|
865
|
-
eventId: string
|
866
|
-
transactionId: string;
|
882
|
+
}[] | [string, string] | undefined>;
|
883
|
+
eventId: string & z.BRAND<"UUID">;
|
867
884
|
annotation?: Record<string, string | number | boolean | {
|
868
885
|
type: string;
|
869
886
|
filename: string;
|
@@ -901,13 +918,14 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
901
918
|
option: string;
|
902
919
|
filename: string;
|
903
920
|
originalFilename: string;
|
904
|
-
}[] | undefined> | undefined;
|
905
|
-
originalActionId?: string | undefined;
|
921
|
+
}[] | [string, string] | undefined> | undefined;
|
922
|
+
originalActionId?: (string & z.BRAND<"UUID">) | undefined;
|
906
923
|
keepAssignment?: boolean | undefined;
|
907
924
|
}, {
|
908
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";
|
909
|
-
|
926
|
+
status: "Rejected" | "Requested" | "Accepted";
|
910
927
|
transactionId: string;
|
928
|
+
eventId: string;
|
911
929
|
declaration?: Record<string, string | number | boolean | {
|
912
930
|
type: string;
|
913
931
|
filename: string;
|
@@ -945,7 +963,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
945
963
|
option: string;
|
946
964
|
filename: string;
|
947
965
|
originalFilename: string;
|
948
|
-
}[] | undefined> | undefined;
|
966
|
+
}[] | [string, string] | undefined> | undefined;
|
949
967
|
annotation?: Record<string, string | number | boolean | {
|
950
968
|
type: string;
|
951
969
|
filename: string;
|
@@ -983,7 +1001,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
983
1001
|
option: string;
|
984
1002
|
filename: string;
|
985
1003
|
originalFilename: string;
|
986
|
-
}[] | undefined> | undefined;
|
1004
|
+
}[] | [string, string] | undefined> | undefined;
|
987
1005
|
originalActionId?: string | undefined;
|
988
1006
|
keepAssignment?: boolean | undefined;
|
989
1007
|
}>;
|