"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.eventSchema = void 0;
const event_folder_dto_1 = require("../../event-folder/dto/event-folder.dto");
const translate_1 = require("../../i18n/translate");
const tag_dto_1 = require("../../tag/dto/tag.dto");
const zod_1 = require("zod");
exports.eventSchema = zod_1.z.object({
    id: zod_1.z.string().uuid({ message: (0, translate_1.translate)('model.event.id.uuid') }),
    name: zod_1.z.string().min(1, (0, translate_1.translate)('model.event.name.required')),
    date: zod_1.z.date({
        required_error: (0, translate_1.translate)('model.event.date.required'),
        invalid_type_error: (0, translate_1.translate)('model.event.date.invalid'),
    }),
    location: zod_1.z.string().min(1, (0, translate_1.translate)('model.event.location.required')),
    folderId: event_folder_dto_1.eventFolderSchema.shape.id.nullable(),
    tagAssistedId: tag_dto_1.tagSchema.shape.id,
    tagConfirmedId: tag_dto_1.tagSchema.shape.id,
    supraEventId: zod_1.z
        .string()
        .uuid({
        message: (0, translate_1.translate)('model.event.id.uuid'),
    })
        .nullable(),
    created_at: zod_1.z.date(),
    updated_at: zod_1.z.date(),
});
//# sourceMappingURL=event.dto.js.map