var __rest = (this && this.__rest) || function (s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
};
import { z } from 'zod';
export const ZDataCaptureItemMethodsFields = z
    .object({
    id: z.string().uuid().optional(),
    isRequired: z.boolean(),
    isVisible: z.boolean(),
    label: z.string(),
    location_level: z.string().optional(),
    locationLevel: z.string().optional(),
    methodId: z.string().optional().nullable(),
    moduleId: z.string().optional().nullable(),
    name: z.string(),
    orderIndex: z.number().optional(),
    placeholder: z.string(),
    type: z.string(),
    versionId: z.string().optional().nullable()
})
    .transform((_a) => {
    var { location_level, locationLevel } = _a, rest = __rest(_a, ["location_level", "locationLevel"]);
    return (Object.assign(Object.assign({}, ((location_level || locationLevel) && {
        locationLevel: location_level || locationLevel
    })), rest));
});
