"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createCommentSchema = exports.updateBlogSchema = exports.createBlogSchema = void 0;
const zod_1 = require("zod");
exports.createBlogSchema = zod_1.z.object({
    title: zod_1.z.string().min(3, 'Title must be at least 3 characters'),
    slug: zod_1.z.string().optional(),
    content: zod_1.z.string().min(20, 'Blog content must be at least 20 characters'),
    excerpt: zod_1.z.string().optional(),
    coverImage: zod_1.z.string().optional(),
    authorName: zod_1.z.string().default('IBW Editorial'),
    authorAvatar: zod_1.z.string().optional(),
    category: zod_1.z.string().default('Literary News'),
    tags: zod_1.z.array(zod_1.z.string()).optional().default([]),
    status: zod_1.z.enum(['DRAFT', 'PUBLISHED', 'SCHEDULED']).default('PUBLISHED'),
    metaTitle: zod_1.z.string().optional(),
    metaDescription: zod_1.z.string().optional(),
    publishedAt: zod_1.z.string().optional(),
});
exports.updateBlogSchema = exports.createBlogSchema.partial();
exports.createCommentSchema = zod_1.z.object({
    blogId: zod_1.z.string().min(1, 'Blog ID is required'),
    authorName: zod_1.z.string().min(2, 'Name is required'),
    content: zod_1.z.string().min(3, 'Comment cannot be empty'),
});
//# sourceMappingURL=blog.validator.js.map