"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.FieldsValidationSchema = exports.fields = void 0;
const extensions_core_1 = require("@awell-health/extensions-core");
const zod_1 = __importDefault(require("zod"));
const date_1 = require("../../../validation/date");
const emailValidation_1 = require("../../../../../src/utils/emailValidation");
exports.fields = {
    departmentid: {
        id: 'departmentid',
        label: 'Department ID',
        description: '',
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
    firstname: {
        id: 'firstname',
        label: 'First name',
        description: '',
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
    lastname: {
        id: 'lastname',
        label: 'Last name',
        description: '',
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
    dob: {
        id: 'dob',
        label: 'Date of birth',
        description: '',
        type: extensions_core_1.FieldType.DATE,
        required: true,
    },
    email: {
        id: 'email',
        label: 'Email',
        description: '',
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
};
exports.FieldsValidationSchema = zod_1.default.object({
    departmentid: zod_1.default.string().min(1),
    firstname: zod_1.default.string().min(1),
    lastname: zod_1.default.string().min(1),
    dob: date_1.AwellToAthenaDateOnlySchema,
    email: emailValidation_1.emailSchema,
});
//# sourceMappingURL=fields.js.map