"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FieldsValidationSchema = exports.fields = void 0;
const zod_1 = require("zod");
const extensions_core_1 = require("@awell-health/extensions-core");
const awell_1 = require("../../../../../../src/lib/awell");
exports.fields = {
    fromName: {
        id: 'fromName',
        label: 'From name',
        description: 'The name that will be used for the "From" header. When left blank, the value specified in the extension settings will be used.',
        type: extensions_core_1.FieldType.STRING,
        required: false,
    },
    fromEmail: {
        id: 'fromEmail',
        label: 'From email',
        description: 'The email address that will be used for the "From" header. When left blank, the value specified in the extension settings will be used.',
        type: extensions_core_1.FieldType.STRING,
        required: false,
    },
    to: {
        id: 'to',
        label: 'To',
        description: 'The email address of the recipient.',
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
    subject: {
        id: 'subject',
        label: 'Subject',
        description: 'The subject of your email.',
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
    body: {
        id: 'body',
        label: 'Body',
        description: 'The content of your message.',
        type: extensions_core_1.FieldType.HTML,
        required: true,
    },
};
exports.FieldsValidationSchema = zod_1.z.object({
    to: (0, awell_1.getEmailValidation)(),
    subject: zod_1.z.string(),
    body: zod_1.z.string(),
    fromName: zod_1.z.string().optional(),
    fromEmail: (0, awell_1.getEmailValidation)().optional(),
});
//# sourceMappingURL=fields.js.map