"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 = {
    list: {
        id: 'list',
        label: 'List',
        description: 'The list you want to transform to a comma separated text.',
        type: extensions_core_1.FieldType.STRING_ARRAY,
        required: true,
    },
};
exports.FieldsValidationSchema = zod_1.z.object({
    // the string array is received as a string in the extension server, so we need to parse it to an array
    list: zod_1.z.string().transform((str) => str.split(',').map((s) => s.trim())),
});
//# sourceMappingURL=fields.js.map