@opencrvs/toolkit 1.9.13-rc.c089a0b → 1.9.13-rc.c3dbdf8
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.
|
@@ -88,6 +88,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
88
88
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>;
|
|
89
89
|
originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
|
|
90
90
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
91
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
92
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
91
93
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
|
92
94
|
}, {
|
|
93
95
|
type: z.ZodEnum<["CREATE", "NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "DUPLICATE_DETECTED", "REJECT", "MARK_AS_DUPLICATE", "MARK_AS_NOT_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION", "READ", "ASSIGN", "UNASSIGN"]>;
|
|
@@ -102,6 +104,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
102
104
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | undefined;
|
|
103
105
|
originalActionId?: (string & z.BRAND<"UUID">) | undefined;
|
|
104
106
|
keepAssignment?: boolean | undefined;
|
|
107
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
108
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
105
109
|
}, {
|
|
106
110
|
type: "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
|
107
111
|
status: "Rejected" | "Requested" | "Accepted";
|
|
@@ -112,6 +116,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
112
116
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | undefined;
|
|
113
117
|
originalActionId?: string | undefined;
|
|
114
118
|
keepAssignment?: boolean | undefined;
|
|
119
|
+
keepAssignmentIfAccepted?: boolean | undefined;
|
|
120
|
+
keepAssignmentIfRejected?: boolean | undefined;
|
|
115
121
|
}>;
|
|
116
122
|
export type Draft = z.infer<typeof Draft>;
|
|
117
123
|
export type DraftInput = z.infer<typeof DraftInput>;
|
package/dist/events/index.js
CHANGED
|
@@ -5307,6 +5307,8 @@ var BaseActionInput = import_zod34.z.object({
|
|
|
5307
5307
|
originalActionId: UUID.optional(),
|
|
5308
5308
|
// should not be part of base action.
|
|
5309
5309
|
keepAssignment: import_zod34.z.boolean().optional(),
|
|
5310
|
+
keepAssignmentIfAccepted: import_zod34.z.boolean().optional(),
|
|
5311
|
+
keepAssignmentIfRejected: import_zod34.z.boolean().optional(),
|
|
5310
5312
|
// For normal users, the createdAtLocation is resolved on the backend from the user's primaryOfficeId.
|
|
5311
5313
|
createdAtLocation: CreatedAtLocation.describe(
|
|
5312
5314
|
"A valid office location ID. This is required for system users performing actions. The provided location must be a leaf-location, i.e. it must not have any children locations."
|
|
@@ -3804,6 +3804,8 @@ var BaseActionInput = import_zod34.z.object({
|
|
|
3804
3804
|
originalActionId: UUID.optional(),
|
|
3805
3805
|
// should not be part of base action.
|
|
3806
3806
|
keepAssignment: import_zod34.z.boolean().optional(),
|
|
3807
|
+
keepAssignmentIfAccepted: import_zod34.z.boolean().optional(),
|
|
3808
|
+
keepAssignmentIfRejected: import_zod34.z.boolean().optional(),
|
|
3807
3809
|
// For normal users, the createdAtLocation is resolved on the backend from the user's primaryOfficeId.
|
|
3808
3810
|
createdAtLocation: CreatedAtLocation.describe(
|
|
3809
3811
|
"A valid office location ID. This is required for system users performing actions. The provided location must be a leaf-location, i.e. it must not have any children locations."
|