"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getInsuranceVerificationDemo = void 0;
const extensions_core_1 = require("@awell-health/extensions-core");
const config_1 = require("./config");
const lodash_1 = require("lodash");
exports.getInsuranceVerificationDemo = {
    key: 'getInsuranceVerificationDemo',
    category: extensions_core_1.Category.BILLING,
    title: 'Get insurance verification (demo)',
    description: 'This is a dummy action that either returns a verified or unverified status.',
    fields: config_1.fields,
    previewable: true,
    dataPoints: config_1.dataPoints,
    onEvent: async ({ payload, onComplete }) => {
        const options = [true, false];
        const random = (0, lodash_1.sample)(options);
        await onComplete({
            data_points: {
                verified: !(0, lodash_1.isNil)(random) ? JSON.stringify(random) : undefined,
            },
        });
    },
};
//# sourceMappingURL=getInsuranceVerificationDemo.js.map