"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.redirect = void 0;
const extensions_core_1 = require("@awell-health/extensions-core");
const extensions_core_2 = require("@awell-health/extensions-core");
const config_1 = require("./config");
const zod_1 = require("zod");
exports.redirect = {
    key: 'redirect',
    category: extensions_core_2.Category.WORKFLOW,
    title: 'Redirect',
    description: 'Redirect the user to a website or a location within your app',
    fields: config_1.fields,
    dataPoints: config_1.dataPoints,
    options: {
        stakeholders: {
            label: 'Stakeholder',
            mode: 'single',
        },
    },
    previewable: false,
    onActivityCreated: async (payload, onComplete, onError) => {
        (0, extensions_core_1.validate)({
            schema: zod_1.z.object({
                fields: config_1.FieldsValidationSchema,
            }),
            payload,
        });
        // Completion happens in Hosted Pages
    },
};
//# sourceMappingURL=redirect.js.map