"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.dobCheck = void 0;
const extensions_core_1 = require("@awell-health/extensions-core");
const zod_1 = require("zod");
const settings_1 = require("../../settings");
const config_1 = require("./config");
exports.dobCheck = {
    key: 'dobCheck',
    category: extensions_core_1.Category.WORKFLOW,
    title: 'DOB verification',
    description: 'The user will be prompted to enter a dob which will be checked against the dob stored in the patient profile',
    fields: config_1.fields,
    previewable: false, // We don't have Awell Hosted Pages in Preview so cannot be previewed.
    dataPoints: // We don't have Awell Hosted Pages in Preview so cannot be previewed.
    config_1.dataPoints,
    options: {
        stakeholders: {
            label: 'Stakeholder',
            mode: 'single',
        },
    },
    onActivityCreated: async (payload, onComplete, onError) => {
        (0, extensions_core_1.validate)({
            schema: zod_1.z.object({
                settings: settings_1.SettingsValidationSchema,
                fields: config_1.FieldsValidationSchema,
            }),
            payload,
        });
        /**
         * Completion happens in Awell Hosted Pages
         */
    },
};
//# sourceMappingURL=dobCheck.js.map