"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.moderateReviewSchema = exports.adminReplySchema = exports.createReviewSchema = void 0;
const zod_1 = require("zod");
exports.createReviewSchema = zod_1.z.object({
    bookId: zod_1.z.string().min(1, 'Book ID is required'),
    rating: zod_1.z.number().int().min(1).max(5, 'Rating must be between 1 and 5'),
    title: zod_1.z.string().optional(),
    comment: zod_1.z.string().min(5, 'Review comment must be at least 5 characters'),
    images: zod_1.z.array(zod_1.z.string()).optional().default([]),
});
exports.adminReplySchema = zod_1.z.object({
    adminReply: zod_1.z.string().min(2, 'Reply content is required'),
});
exports.moderateReviewSchema = zod_1.z.object({
    isApproved: zod_1.z.boolean().optional(),
    isFlagged: zod_1.z.boolean().optional(),
});
//# sourceMappingURL=review.validator.js.map