import { z } from 'zod';

export const documentParamsSchema = z.object({
  id: z.string().uuid('Invalid workflow ID'),
  documentId: z.string().uuid('Invalid document ID'),
});

export const updateDocumentSchema = z.object({
  originalFileName: z.string().min(1).optional(),
  category: z.enum(['SUPPORTING', 'APPROVAL', 'REFERENCE', 'FINAL', 'OTHER'] as const).optional(),
  isDeleted: z.boolean().optional(),
});

export const validateUpdateDocument = (data: any) => {
  return updateDocumentSchema.parse(data);
};
