"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.FieldsValidationSchema = exports.fields = void 0;
const extensions_core_1 = require("@awell-health/extensions-core");
const zod_1 = __importDefault(require("zod"));
exports.fields = {
    description: {
        id: 'description',
        label: 'Description',
        description: 'Description of the task',
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
    taskListId: {
        id: 'taskListId',
        label: 'Task list ID',
        description: 'The task list identifier.',
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
    patientId: {
        id: 'patientId',
        label: 'Patient ID',
        description: 'The patient the task is associated with',
        type: extensions_core_1.FieldType.STRING,
        required: false,
    },
    taskGroupId: {
        id: 'taskGroupId',
        label: 'Task group ID',
        description: 'The group to assign the task to',
        type: extensions_core_1.FieldType.STRING,
        required: false,
    },
};
exports.FieldsValidationSchema = zod_1.default.object({
    description: zod_1.default.string().min(1),
    taskListId: zod_1.default.string().min(1),
    patientId: zod_1.default.string().optional(),
    taskGroupId: zod_1.default.string().optional(),
});
//# sourceMappingURL=fields.js.map