"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 = exports.SummaryFormatEnum = void 0;
const extensions_core_1 = require("@awell-health/extensions-core");
const zod_1 = __importDefault(require("zod"));
// Step 1: Define the enum
var SummaryFormatEnum;
(function (SummaryFormatEnum) {
    SummaryFormatEnum["BULLET_POINTS"] = "Bullet-points";
    SummaryFormatEnum["TEXT_PARAGRAPH"] = "Text paragraph";
})(SummaryFormatEnum || (exports.SummaryFormatEnum = SummaryFormatEnum = {}));
// Step 2: Define the fields object
exports.fields = {
    summaryFormat: {
        id: 'summaryFormat',
        label: 'Summary Format',
        description: 'Specify the format of the summary. Acceptable values are "Bullet-points" and "Text paragraph". Defaults to Bullet-points.',
        type: extensions_core_1.FieldType.STRING,
        required: false,
    },
    language: {
        id: 'language',
        label: 'Language',
        description: '[Optional] Indicates the language of the summarization. Defaults to the language of the form.',
        type: extensions_core_1.FieldType.STRING,
        required: false,
    },
};
// Step 3: Define the validation schema using zod
exports.FieldsValidationSchema = zod_1.default.object({
    summaryFormat: zod_1.default.enum([SummaryFormatEnum.BULLET_POINTS, SummaryFormatEnum.TEXT_PARAGRAPH])
        .optional()
        .default(SummaryFormatEnum.BULLET_POINTS)
        .transform((value) => Object.values(SummaryFormatEnum).includes(value)
        ? value
        : SummaryFormatEnum.BULLET_POINTS),
    language: zod_1.default.string().optional().default('Default')
});
//# sourceMappingURL=fields.js.map