"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.remoteSingleSelect = void 0;
const config_1 = require("./config");
const extensions_core_1 = require("@awell-health/extensions-core");
const fields_1 = require("./config/fields");
exports.remoteSingleSelect = {
    key: 'remoteSingleSelect',
    title: 'Dynamic choice selector',
    description: 'The dynamic choice selector allow you to set up a select question where the available choices are dynamically populated through an API lookup',
    category: extensions_core_1.Category.FORMS,
    fields: config_1.fields,
    dataPoints: config_1.dataPoints,
    options: {
        stakeholders: {
            label: 'Stakeholder',
            mode: 'single',
        },
    },
    previewable: false, // We don't have Awell Hosted Pages in Preview so cannot be previewed.
    onActivityCreated: async (payload, onComplete, onError) => {
        (0, fields_1.validateActionFields)(payload.fields);
        /**
         * Completion happens in Awell Hosted Pages
         */
    },
};
//# sourceMappingURL=remoteSingleSelect.js.map