"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"));
exports.fields = {
    additionalInstructions: {
        id: 'additionalInstructions',
        label: 'Additional instructions',
        description: 'Specify additional instructions for summarization, for example format, length, what to focus on etc. If not specified, default instructions will be used.',
        type: extensions_core_1.FieldType.STRING,
        required: false,
    },
    stakeholder: {
        id: 'stakeholder',
        label: 'Stakeholder',
        description: 'Indicates who the summarization is intended for. Defaults to "Clinician"',
        type: extensions_core_1.FieldType.STRING,
        required: false,
    },
};
exports.FieldsValidationSchema = zod_1.default.object({
    additionalInstructions: zod_1.default.string().optional().default(''),
    stakeholder: zod_1.default
        .string()
        .optional()
        .transform((val) => {
        if (val === undefined || val === '')
            return 'Clinician';
        return val;
    }),
});
//# sourceMappingURL=fields.js.map