"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.webhookPayloadSchema = exports.mapHealthieGenderToIsoSex = void 0;
const zod_1 = require("zod");
const mapHealthieGenderToIsoSex = (healthieGender) => {
    const lowercaseGender = healthieGender === null || healthieGender === void 0 ? void 0 : healthieGender.toLowerCase();
    switch (lowercaseGender) {
        case 'f':
        case 'female':
            return 2;
        case 'm':
        case 'male':
            return 1;
        default:
            return 0;
    }
};
exports.mapHealthieGenderToIsoSex = mapHealthieGenderToIsoSex;
exports.webhookPayloadSchema = zod_1.z
    .object({
    resource_id: zod_1.z.number(),
});
//# sourceMappingURL=helpers.js.map