"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FieldsValidationSchema = exports.fields = void 0;
const extensions_core_1 = require("@awell-health/extensions-core");
const zod_1 = require("zod");
exports.fields = {
    title: {
        id: 'title',
        label: 'Title',
        description: 'Descriptive title that is shown on the page',
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
    message: {
        id: 'message',
        label: 'Message',
        description: 'Inform the patient about the recommendation and decision they have to make',
        type: extensions_core_1.FieldType.HTML,
        required: true,
    },
    acceptRecommendationButtonLabel: {
        id: 'acceptRecommendationButtonLabel',
        label: 'Accept recommendation button label',
        description: 'The label of the buton to accept the recommendation and redirect the patient to a different page with a deep link',
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
    acceptRecommendationDeepLink: {
        id: 'acceptRecommendationDeepLink',
        label: 'Deep link',
        description: 'The deep link the patient is redirected to when accepting the recommendation',
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
    discardRecommendationButtonLabel: {
        id: 'discardRecommendationButtonLabel',
        label: 'Discard recommendation button label',
        description: 'The label of the button allowing patients to continue and discard the recommendation',
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
};
exports.FieldsValidationSchema = zod_1.z.object({
    title: zod_1.z.string().min(1),
    message: zod_1.z.string().min(1),
    acceptRecommendationButtonLabel: zod_1.z.string().min(1),
    acceptRecommendationDeepLink: zod_1.z.string().min(1),
    discardRecommendationButtonLabel: zod_1.z.string().min(1),
});
//# sourceMappingURL=fields.js.map