@opencrvs/toolkit 1.8.0-rc.ff0b26c → 1.8.0-rc.ff1f8e0
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 +2356 -1097
- package/dist/commons/conditionals/conditionals.d.ts +7 -6
- package/dist/commons/events/ActionConfig.d.ts +15774 -7797
- package/dist/commons/events/ActionDocument.d.ts +533 -346
- package/dist/commons/events/ActionInput.d.ts +197 -125
- 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 +29 -24
- package/dist/commons/events/EventConfig.d.ts +13649 -9488
- package/dist/commons/events/EventDocument.d.ts +386 -267
- package/dist/commons/events/EventIndex.d.ts +209 -605
- package/dist/commons/events/EventInput.d.ts +0 -13
- package/dist/commons/events/EventMetadata.d.ts +71 -48
- package/dist/commons/events/FieldConfig.d.ts +486 -440
- package/dist/commons/events/FieldTypeMapping.d.ts +5 -2
- package/dist/commons/events/FieldValue.d.ts +2 -0
- package/dist/commons/events/FormConfig.d.ts +3346 -3052
- package/dist/commons/events/PageConfig.d.ts +750 -680
- package/dist/commons/events/User.d.ts +31 -7
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +3460 -485
- package/dist/commons/events/defineConfig.d.ts +1381 -575
- package/dist/commons/events/event.d.ts +2 -2
- package/dist/commons/events/field.d.ts +4 -13
- package/dist/commons/events/index.d.ts +4 -0
- package/dist/commons/events/serializer.d.ts +2 -0
- package/dist/commons/events/test.utils.d.ts +26 -5
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +333 -296
- package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
- package/dist/conditionals/index.js +28 -8
- package/dist/events/index.js +1564 -584
- package/package.json +1 -1
@@ -1,7 +1,7 @@
|
|
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<{
|
@@ -10,6 +10,8 @@ export declare const Draft: z.ZodObject<{
|
|
10
10
|
createdAt: z.ZodString;
|
11
11
|
createdBy: z.ZodString;
|
12
12
|
createdByRole: z.ZodString;
|
13
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
14
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
13
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<{
|
14
16
|
filename: z.ZodString;
|
15
17
|
originalFilename: z.ZodString;
|
@@ -124,7 +126,7 @@ export declare const Draft: z.ZodObject<{
|
|
124
126
|
addressLine3?: string | null | undefined;
|
125
127
|
postcodeOrZip?: string | null | undefined;
|
126
128
|
}>]>>;
|
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<{
|
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<{
|
128
130
|
filename: z.ZodString;
|
129
131
|
originalFilename: z.ZodString;
|
130
132
|
type: z.ZodString;
|
@@ -237,10 +239,9 @@ export declare const Draft: z.ZodObject<{
|
|
237
239
|
addressLine2?: string | null | undefined;
|
238
240
|
addressLine3?: string | null | undefined;
|
239
241
|
postcodeOrZip?: string | null | undefined;
|
240
|
-
}>]
|
241
|
-
createdAtLocation: z.ZodString;
|
242
|
+
}>]>>>>;
|
242
243
|
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
243
|
-
originalActionId: z.ZodOptional<z.ZodString
|
244
|
+
originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
|
244
245
|
}, {
|
245
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"]>;
|
246
247
|
}>, "id">, "strip", z.ZodTypeAny, {
|
@@ -288,7 +289,8 @@ export declare const Draft: z.ZodObject<{
|
|
288
289
|
filename: string;
|
289
290
|
originalFilename: string;
|
290
291
|
}[] | [string, string] | undefined>;
|
291
|
-
|
292
|
+
createdBySignature?: string | null | undefined;
|
293
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
292
294
|
annotation?: Record<string, string | number | boolean | {
|
293
295
|
type: string;
|
294
296
|
filename: string;
|
@@ -326,8 +328,8 @@ export declare const Draft: z.ZodObject<{
|
|
326
328
|
option: string;
|
327
329
|
filename: string;
|
328
330
|
originalFilename: string;
|
329
|
-
}[] | [string, string] | undefined> | undefined;
|
330
|
-
originalActionId?: string | undefined;
|
331
|
+
}[] | [string, string] | undefined> | null | undefined;
|
332
|
+
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
331
333
|
}, {
|
332
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";
|
333
335
|
status: "Rejected" | "Requested" | "Accepted";
|
@@ -373,7 +375,8 @@ export declare const Draft: z.ZodObject<{
|
|
373
375
|
filename: string;
|
374
376
|
originalFilename: string;
|
375
377
|
}[] | [string, string] | undefined>;
|
376
|
-
|
378
|
+
createdBySignature?: string | null | undefined;
|
379
|
+
createdAtLocation?: string | null | undefined;
|
377
380
|
annotation?: Record<string, string | number | boolean | {
|
378
381
|
type: string;
|
379
382
|
filename: string;
|
@@ -411,14 +414,14 @@ export declare const Draft: z.ZodObject<{
|
|
411
414
|
option: string;
|
412
415
|
filename: string;
|
413
416
|
originalFilename: string;
|
414
|
-
}[] | [string, string] | undefined> | undefined;
|
415
|
-
originalActionId?: string | undefined;
|
417
|
+
}[] | [string, string] | undefined> | null | undefined;
|
418
|
+
originalActionId?: string | null | undefined;
|
416
419
|
}>;
|
417
420
|
}, "strip", z.ZodTypeAny, {
|
418
|
-
id: string
|
421
|
+
id: string & z.BRAND<"UUID">;
|
419
422
|
transactionId: string;
|
420
423
|
createdAt: string;
|
421
|
-
eventId: string
|
424
|
+
eventId: string & z.BRAND<"UUID">;
|
422
425
|
action: {
|
423
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";
|
424
427
|
status: "Rejected" | "Requested" | "Accepted";
|
@@ -464,7 +467,8 @@ export declare const Draft: z.ZodObject<{
|
|
464
467
|
filename: string;
|
465
468
|
originalFilename: string;
|
466
469
|
}[] | [string, string] | undefined>;
|
467
|
-
|
470
|
+
createdBySignature?: string | null | undefined;
|
471
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
468
472
|
annotation?: Record<string, string | number | boolean | {
|
469
473
|
type: string;
|
470
474
|
filename: string;
|
@@ -502,8 +506,8 @@ export declare const Draft: z.ZodObject<{
|
|
502
506
|
option: string;
|
503
507
|
filename: string;
|
504
508
|
originalFilename: string;
|
505
|
-
}[] | [string, string] | undefined> | undefined;
|
506
|
-
originalActionId?: string | undefined;
|
509
|
+
}[] | [string, string] | undefined> | null | undefined;
|
510
|
+
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
507
511
|
};
|
508
512
|
}, {
|
509
513
|
id: string;
|
@@ -555,7 +559,8 @@ export declare const Draft: z.ZodObject<{
|
|
555
559
|
filename: string;
|
556
560
|
originalFilename: string;
|
557
561
|
}[] | [string, string] | undefined>;
|
558
|
-
|
562
|
+
createdBySignature?: string | null | undefined;
|
563
|
+
createdAtLocation?: string | null | undefined;
|
559
564
|
annotation?: Record<string, string | number | boolean | {
|
560
565
|
type: string;
|
561
566
|
filename: string;
|
@@ -593,12 +598,12 @@ export declare const Draft: z.ZodObject<{
|
|
593
598
|
option: string;
|
594
599
|
filename: string;
|
595
600
|
originalFilename: string;
|
596
|
-
}[] | [string, string] | undefined> | undefined;
|
597
|
-
originalActionId?: string | undefined;
|
601
|
+
}[] | [string, string] | undefined> | null | undefined;
|
602
|
+
originalActionId?: string | null | undefined;
|
598
603
|
};
|
599
604
|
}>;
|
600
605
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
601
|
-
eventId: z.ZodString
|
606
|
+
eventId: z.ZodBranded<z.ZodString, "UUID">;
|
602
607
|
transactionId: z.ZodString;
|
603
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<{
|
604
609
|
filename: z.ZodString;
|
@@ -828,7 +833,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
828
833
|
addressLine3?: string | null | undefined;
|
829
834
|
postcodeOrZip?: string | null | undefined;
|
830
835
|
}>]>>>;
|
831
|
-
originalActionId: z.ZodOptional<z.ZodString
|
836
|
+
originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
|
832
837
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
833
838
|
}, {
|
834
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"]>;
|
@@ -875,7 +880,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
875
880
|
filename: string;
|
876
881
|
originalFilename: string;
|
877
882
|
}[] | [string, string] | undefined>;
|
878
|
-
eventId: string
|
883
|
+
eventId: string & z.BRAND<"UUID">;
|
879
884
|
annotation?: Record<string, string | number | boolean | {
|
880
885
|
type: string;
|
881
886
|
filename: string;
|
@@ -914,7 +919,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
914
919
|
filename: string;
|
915
920
|
originalFilename: string;
|
916
921
|
}[] | [string, string] | undefined> | undefined;
|
917
|
-
originalActionId?: string | undefined;
|
922
|
+
originalActionId?: (string & z.BRAND<"UUID">) | undefined;
|
918
923
|
keepAssignment?: boolean | undefined;
|
919
924
|
}, {
|
920
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";
|