@opencrvs/toolkit 1.8.1-rc.be16155 → 1.8.1-rc.e32d7b8
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 +404 -24
- package/dist/commons/events/ActionDocument.d.ts +659 -36
- package/dist/commons/events/ActionInput.d.ts +540 -36
- package/dist/commons/events/Draft.d.ts +44 -0
- package/dist/commons/events/EventDocument.d.ts +416 -26
- package/dist/commons/events/test.utils.d.ts +1 -5
- package/dist/commons/events/utils.d.ts +4 -0
- package/dist/events/index.js +12 -9
- package/package.json +1 -1
@@ -283,6 +283,16 @@ export declare const Draft: z.ZodObject<{
|
|
283
283
|
surname?: string | null | undefined;
|
284
284
|
middlename?: string | null | undefined;
|
285
285
|
}>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
|
286
|
+
actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
287
|
+
templateId: z.ZodOptional<z.ZodString>;
|
288
|
+
isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
|
289
|
+
}, "strip", z.ZodTypeAny, {
|
290
|
+
templateId?: string | undefined;
|
291
|
+
isImmediateCorrection?: boolean | undefined;
|
292
|
+
}, {
|
293
|
+
templateId?: string | undefined;
|
294
|
+
isImmediateCorrection?: boolean | undefined;
|
295
|
+
}>>>;
|
286
296
|
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
287
297
|
originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
|
288
298
|
}, {
|
@@ -387,6 +397,10 @@ export declare const Draft: z.ZodObject<{
|
|
387
397
|
start: string;
|
388
398
|
end: string;
|
389
399
|
} | null | undefined> | null | undefined;
|
400
|
+
actionDetails?: {
|
401
|
+
templateId?: string | undefined;
|
402
|
+
isImmediateCorrection?: boolean | undefined;
|
403
|
+
} | null | undefined;
|
390
404
|
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
391
405
|
}, {
|
392
406
|
type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
@@ -488,6 +502,10 @@ export declare const Draft: z.ZodObject<{
|
|
488
502
|
start: string;
|
489
503
|
end: string;
|
490
504
|
} | null | undefined> | null | undefined;
|
505
|
+
actionDetails?: {
|
506
|
+
templateId?: string | undefined;
|
507
|
+
isImmediateCorrection?: boolean | undefined;
|
508
|
+
} | null | undefined;
|
491
509
|
originalActionId?: string | null | undefined;
|
492
510
|
}>;
|
493
511
|
}, "strip", z.ZodTypeAny, {
|
@@ -595,6 +613,10 @@ export declare const Draft: z.ZodObject<{
|
|
595
613
|
start: string;
|
596
614
|
end: string;
|
597
615
|
} | null | undefined> | null | undefined;
|
616
|
+
actionDetails?: {
|
617
|
+
templateId?: string | undefined;
|
618
|
+
isImmediateCorrection?: boolean | undefined;
|
619
|
+
} | null | undefined;
|
598
620
|
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
599
621
|
};
|
600
622
|
}, {
|
@@ -702,6 +724,10 @@ export declare const Draft: z.ZodObject<{
|
|
702
724
|
start: string;
|
703
725
|
end: string;
|
704
726
|
} | null | undefined> | null | undefined;
|
727
|
+
actionDetails?: {
|
728
|
+
templateId?: string | undefined;
|
729
|
+
isImmediateCorrection?: boolean | undefined;
|
730
|
+
} | null | undefined;
|
705
731
|
originalActionId?: string | null | undefined;
|
706
732
|
};
|
707
733
|
}>;
|
@@ -978,6 +1004,16 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
978
1004
|
surname?: string | null | undefined;
|
979
1005
|
middlename?: string | null | undefined;
|
980
1006
|
}>, z.ZodNull]>, z.ZodUndefined]>]>>>;
|
1007
|
+
actionDetails: z.ZodOptional<z.ZodObject<{
|
1008
|
+
templateId: z.ZodOptional<z.ZodString>;
|
1009
|
+
isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
|
1010
|
+
}, "strip", z.ZodTypeAny, {
|
1011
|
+
templateId?: string | undefined;
|
1012
|
+
isImmediateCorrection?: boolean | undefined;
|
1013
|
+
}, {
|
1014
|
+
templateId?: string | undefined;
|
1015
|
+
isImmediateCorrection?: boolean | undefined;
|
1016
|
+
}>>;
|
981
1017
|
originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
|
982
1018
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
983
1019
|
}, {
|
@@ -1078,6 +1114,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
1078
1114
|
start: string;
|
1079
1115
|
end: string;
|
1080
1116
|
} | null | undefined> | undefined;
|
1117
|
+
actionDetails?: {
|
1118
|
+
templateId?: string | undefined;
|
1119
|
+
isImmediateCorrection?: boolean | undefined;
|
1120
|
+
} | undefined;
|
1081
1121
|
originalActionId?: (string & z.BRAND<"UUID">) | undefined;
|
1082
1122
|
keepAssignment?: boolean | undefined;
|
1083
1123
|
}, {
|
@@ -1175,6 +1215,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
1175
1215
|
start: string;
|
1176
1216
|
end: string;
|
1177
1217
|
} | null | undefined> | undefined;
|
1218
|
+
actionDetails?: {
|
1219
|
+
templateId?: string | undefined;
|
1220
|
+
isImmediateCorrection?: boolean | undefined;
|
1221
|
+
} | undefined;
|
1178
1222
|
originalActionId?: string | undefined;
|
1179
1223
|
keepAssignment?: boolean | undefined;
|
1180
1224
|
}>;
|