"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 = {
    productId: {
        id: 'productId',
        label: 'Product Id',
        description: 'E.g. 12345678-1234-1234-1234-123456789abc',
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
    feedbackEmail: {
        id: 'feedbackEmail',
        label: 'Feedback Email',
        description: 'Send a report to this address when the fax is sent',
        type: extensions_core_1.FieldType.STRING,
        required: false,
    },
    number: {
        id: 'number',
        label: 'Number',
        description: 'Destination fax number',
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
    addFaceSheet: {
        id: 'addFaceSheet',
        label: 'Add face sheet',
        description: 'Add cover sheet that precedes the actual message or document',
        type: extensions_core_1.FieldType.BOOLEAN,
        required: false,
    },
    content: {
        id: 'content',
        label: 'Fax content',
        description: 'Content of the fax',
        type: extensions_core_1.FieldType.HTML,
        required: false,
    },
};
exports.FieldsValidationSchema = zod_1.z.object({
    productId: zod_1.z.string().min(1),
    feedbackEmail: (0, extensions_core_1.makeStringOptional)(zod_1.z.string()),
    number: zod_1.z.string().min(1),
    content: zod_1.z.string().min(1),
    addFaceSheet: zod_1.z.boolean().optional(),
});
//# sourceMappingURL=fields.js.map