"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.listToCommaSeparatedText = void 0;
const extensions_core_1 = require("@awell-health/extensions-core");
const config_1 = require("./config");
const awell_1 = require("../../../../../src/lib/awell");
// import { z } from 'zod'
exports.listToCommaSeparatedText = {
    key: 'listToCommaSeparatedText',
    title: 'List to comma separated text',
    description: 'Transform or parse list (string array) to a comma separated text.',
    category: extensions_core_1.Category.DATA,
    fields: config_1.fields,
    dataPoints: config_1.dataPoints,
    previewable: true,
    onActivityCreated: async (payload, onComplete) => {
        await onComplete({
            events: [
                (0, awell_1.addActivityEventLog)({
                    message: JSON.stringify(payload, null, 2),
                }),
            ],
            data_points: {
                listText: 'todo',
            },
        });
        // const {
        //   fields: { list },
        // } = validate({
        //   schema: z.object({
        //     fields: FieldsValidationSchema,
        //   }),
        //   payload,
        // })
        // const output = list.join(',')
        // await onComplete({
        //   data_points: {
        //     listText: output,
        //   },
        // })
    },
};
//# sourceMappingURL=listToCommaSeparatedText.js.map