fix: create audit log router

This commit is contained in:
Ephraim Atta-Duncan
2025-01-20 03:42:52 +00:00
parent cc3995ce74
commit de31769415
2 changed files with 31 additions and 18 deletions

View File

@ -326,6 +326,18 @@ export const ZDownloadCertificateMutationSchema = z.object({
documentId: z.number(),
});
export const ZCreateAuditLogMutationSchema = z.object({
documentId: z.number(),
type: z.literal('DOCUMENT_SIGNING_LINK_COPIED'),
data: z.object({
recipientEmail: z.string(),
recipientName: z.string(),
recipientId: z.number(),
recipientRole: z.string(),
isBulkCopy: z.boolean(),
}),
});
export const ZMoveDocumentToTeamSchema = z.object({
documentId: z.number().describe('The ID of the document to move to a team.'),
teamId: z.number().describe('The ID of the team to move the document to.'),