"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");
exports.fields = {
    input: {
        id: 'input',
        label: 'Input value',
        description: 'Any string value used to determine the cohort assignment (e.g. patient ID, hash, email). The same input will always produce the same cohort.',
        required: true,
        type: extensions_core_1.FieldType.STRING,
    },
    numberOfCohorts: {
        id: 'numberOfCohorts',
        label: 'Number of cohorts',
        description: 'The total number of cohorts to distribute inputs across. Must be an integer greater than or equal to 1.',
        required: true,
        type: extensions_core_1.FieldType.NUMERIC,
    },
};
exports.FieldsValidationSchema = zod_1.z.object({
    input: zod_1.z.string().min(1),
    numberOfCohorts: zod_1.z.coerce.number().int().min(1),
});
//# sourceMappingURL=fields.js.map