"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FieldsValidationSchema = exports.fields = void 0;
const zod_1 = require("zod");
const extensions_core_1 = require("@awell-health/extensions-core");
const awell_1 = require("../../../../../../src/lib/awell");
exports.fields = {
    email: {
        id: 'email',
        label: 'Email',
        description: 'The email address you would like to suppress',
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
    groups: {
        id: 'groups',
        label: 'Groups',
        description: 'A comma-separated list of group IDs (e.g. `12345, 12346`)',
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
};
exports.FieldsValidationSchema = zod_1.z.object({
    email: (0, awell_1.getEmailValidation)(),
    groups: (0, extensions_core_1.validateCommaSeparatedList)((value) => extensions_core_1.NumericIdSchema.safeParse(value).success, true).optional(),
});
//# sourceMappingURL=fields.js.map