"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 = {
    userId: {
        id: 'userId',
        label: 'User ID',
        description: 'The ID of the patient that this entry should be attached to',
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
    category: {
        id: 'category',
        label: 'Category',
        description: 'Specifies what kind of metric we are storing',
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
    metricStat: {
        id: 'metricStat',
        label: 'Metric stat',
        description: 'The actual data value for the metric',
        type: extensions_core_1.FieldType.NUMERIC,
        required: true,
    },
};
exports.FieldsValidationSchema = zod_1.z.object({
    userId: zod_1.z.string().nonempty(),
    category: zod_1.z.string().nonempty(),
    metricStat: zod_1.z.number(),
});
//# sourceMappingURL=fields.js.map