"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.log = void 0;
const extensions_core_1 = require("@awell-health/extensions-core");
const extensions_core_2 = require("@awell-health/extensions-core");
const fields = {
    hello: {
        id: 'hello',
        label: 'Hello',
        description: 'A string field configured at design time',
        type: extensions_core_1.FieldType.STRING,
    },
    secondField: {
        id: 'secondField',
        label: 'Second Field',
        description: 'A second field',
        required: false,
        type: extensions_core_1.FieldType.STRING,
    },
    thirdField: {
        id: 'thirdField',
        label: 'Third Field',
        description: 'A third field',
        required: false,
        type: extensions_core_1.FieldType.NUMERIC,
    },
};
const dataPoints = {
    world: {
        key: 'world',
        valueType: 'string',
    },
    clear: {
        key: 'clear',
        valueType: 'string',
    },
    secret: {
        key: 'secret',
        valueType: 'string',
    },
};
exports.log = {
    key: 'log',
    category: extensions_core_2.Category.DEMO,
    title: 'Log hello world',
    description: 'This is a dummy Custom Action for extension developers.',
    fields,
    previewable: true,
    dataPoints,
    onActivityCreated: async (payload, onComplete) => {
        const { fields, settings } = payload;
        await onComplete({
            data_points: {
                world: fields.hello,
                clear: settings.clear,
                secret: settings.secret,
            },
        });
    },
};
//# sourceMappingURL=log.js.map