"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.simulacaoChangeStatusSchema = exports.simulacaoRegisterSchema = void 0;
const validation_1 = require("../../util/validation");
const zod_1 = require("zod");
const zod_to_openapi_1 = require("@asteasolutions/zod-to-openapi");
const validation_2 = require("../../util/validation");
(0, zod_to_openapi_1.extendZodWithOpenApi)(zod_1.z);
exports.simulacaoRegisterSchema = zod_1.z.object({
    nomeSolicitante: (0, validation_2.requiredString)('nomeSolicitante').openapi({ example: 'Pedro Augusto' }),
    nomeEmpresa: (0, validation_2.requiredString)('nomeEmpresa').openapi({ example: 'PA Ltd.' }),
    email: (0, validation_2.requiredString)('email').openapi({ example: 'pedro@email.domain' }),
    tel: (0, validation_2.requiredString)('tel').openapi({ example: '939404039' }),
    nif: zod_1.z.string().trim().optional().openapi({ example: '009889383LA034' }),
    descricao: zod_1.z.string().trim().optional(),
    perfil: zod_1.z.string().optional().openapi({ example: 'Empresa' }),
    emolumentoId: (0, validation_1.requiredNumber)('emolumentoId').openapi({ example: '1' }),
    montante: (0, validation_1.requiredNumber)('montante').openapi({ example: 300000 }),
    meses: (0, validation_1.requiredNumber)('meses').openapi({ example: 3 }),
    provincia: zod_1.z.string().optional().openapi({ example: 'Luanda' }),
    userId: zod_1.z.string().optional(),
});
exports.simulacaoChangeStatusSchema = zod_1.z.object({
    status: (0, validation_2.requiredString)('status'),
    simulacaoId: (0, validation_1.requiredNumber)('simulacaoId'),
    userId: (0, validation_1.requiredNumber)('userId'),
});
