import { z } from "zod";

export const approvePropertySchema = z.object({
  propertyId: z.string().uuid("Invalid property ID"),
  notes: z.string().max(500).optional().nullable(),
});

export const rejectPropertySchema = z.object({
  propertyId: z.string().uuid("Invalid property ID"),
  rejectionReason: z
    .string()
    .min(5, "Rejection reason must be at least 5 characters")
    .max(500, "Rejection reason cannot exceed 500 characters"),
});

export const verifyAgencySchema = z.object({
  agencyId: z.string().uuid("Invalid agency ID"),
  notes: z.string().max(500).optional().nullable(),
});

export type ApprovePropertyInput = z.infer<typeof approvePropertySchema>;
export type RejectPropertyInput = z.infer<typeof rejectPropertySchema>;
export type VerifyAgencyInput = z.infer<typeof verifyAgencySchema>;
