"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.showQRCode = void 0;
const extensions_core_1 = require("@awell-health/extensions-core");
const config_1 = require("./config");
const zod_1 = require("zod");
exports.showQRCode = {
    key: 'showQRCode',
    category: extensions_core_1.Category.WORKFLOW,
    title: 'Show QR Code',
    description: 'Display a QR code in Hosted Pages. The patient can show the code to another person (e.g. a home nurse) to give them access to their own Hosted Pages session.',
    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 when the patient clicks Done
    },
};
//# sourceMappingURL=showQRCode.js.map