"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");
exports.fields = {
    from: {
        label: 'From',
        id: 'from',
        type: extensions_core_1.FieldType.STRING,
        required: false,
        description: 'The email address you wish to use for sending emails. Defaults to value provided in settings.',
    },
    to: {
        label: 'To',
        id: 'to',
        type: extensions_core_1.FieldType.STRING,
        required: true,
        description: 'The email address to which you intend to send the email',
    },
    subject: {
        label: 'Subject',
        id: 'subject',
        type: extensions_core_1.FieldType.STRING,
        required: true,
        description: '',
    },
    content: {
        label: 'Content',
        id: 'content',
        type: extensions_core_1.FieldType.HTML,
        required: true,
        description: '',
    },
};
exports.FieldsValidationSchema = zod_1.z.object({
    from: (0, extensions_core_1.makeStringOptional)(zod_1.z.string()),
    to: zod_1.z.string().email(),
    subject: zod_1.z.string(),
    content: zod_1.z.string(),
});
//# sourceMappingURL=fields.js.map