"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.galeriaDeleteSchema = exports.extendGaleriaChangeImageSchema = exports.galeriaChangeImageSchema = exports.galeriaChangeStatusSchema = exports.galeriaEditSchema = exports.extendGaleriaCreateSchema = exports.galeriaCreateSchema = void 0;
const zod_1 = require("zod");
const zod_to_openapi_1 = require("@asteasolutions/zod-to-openapi");
const validation_1 = require("../../util/validation");
(0, zod_to_openapi_1.extendZodWithOpenApi)(zod_1.z);
exports.galeriaCreateSchema = zod_1.z.object({
    title: (0, validation_1.requiredString)('title'),
    subtitle: zod_1.z.string().optional(),
    descricao: zod_1.z.string().optional(),
    userId: (0, validation_1.requiredString)('userId'),
});
exports.extendGaleriaCreateSchema = exports.galeriaCreateSchema.extend({
    imagem: (0, validation_1.fileSchema)('imagem'),
});
exports.galeriaEditSchema = zod_1.z.object({
    galeriaId: (0, validation_1.requiredNumber)('galeriaId'),
    descricao: zod_1.z.string().optional(),
    title: zod_1.z.string().optional(),
    subtitle: zod_1.z.string().optional(),
    userId: (0, validation_1.requiredNumber)('userId'),
});
exports.galeriaChangeStatusSchema = zod_1.z.object({
    galeriaId: (0, validation_1.requiredNumber)('galeriaId'),
    userId: (0, validation_1.requiredNumber)('userId'),
});
exports.galeriaChangeImageSchema = zod_1.z.object({
    galeriaId: (0, validation_1.requiredNumber)('galeriaId'),
    userId: (0, validation_1.requiredString)('userId'),
});
exports.extendGaleriaChangeImageSchema = exports.galeriaChangeImageSchema.extend({
    imagem: (0, validation_1.fileSchema)('imagem'),
});
exports.galeriaDeleteSchema = zod_1.z.object({
    id: (0, validation_1.requiredNumber)('id'),
    observacao: zod_1.z.string().optional(),
    userId: (0, validation_1.requiredNumber)('userId'),
});
