"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.ClaimWhereInputObjectZodSchema = exports.ClaimWhereInputObjectSchema = void 0;
const z = __importStar(require("zod"));
const IntFilter_schema_1 = require("./IntFilter.schema");
const IntNullableFilter_schema_1 = require("./IntNullableFilter.schema");
const StringFilter_schema_1 = require("./StringFilter.schema");
const DateTimeFilter_schema_1 = require("./DateTimeFilter.schema");
const EnumMissingTeethStatusFilter_schema_1 = require("./EnumMissingTeethStatusFilter.schema");
const MissingTeethStatus_schema_1 = require("../enums/MissingTeethStatus.schema");
const JsonNullableFilter_schema_1 = require("./JsonNullableFilter.schema");
const EnumClaimStatusFilter_schema_1 = require("./EnumClaimStatusFilter.schema");
const ClaimStatus_schema_1 = require("../enums/ClaimStatus.schema");
const StringNullableFilter_schema_1 = require("./StringNullableFilter.schema");
const PatientScalarRelationFilter_schema_1 = require("./PatientScalarRelationFilter.schema");
const PatientWhereInput_schema_1 = require("./PatientWhereInput.schema");
const AppointmentNullableScalarRelationFilter_schema_1 = require("./AppointmentNullableScalarRelationFilter.schema");
const AppointmentWhereInput_schema_1 = require("./AppointmentWhereInput.schema");
const UserNullableScalarRelationFilter_schema_1 = require("./UserNullableScalarRelationFilter.schema");
const UserWhereInput_schema_1 = require("./UserWhereInput.schema");
const StaffNullableScalarRelationFilter_schema_1 = require("./StaffNullableScalarRelationFilter.schema");
const StaffWhereInput_schema_1 = require("./StaffWhereInput.schema");
const NpiProviderNullableScalarRelationFilter_schema_1 = require("./NpiProviderNullableScalarRelationFilter.schema");
const NpiProviderWhereInput_schema_1 = require("./NpiProviderWhereInput.schema");
const ServiceLineListRelationFilter_schema_1 = require("./ServiceLineListRelationFilter.schema");
const ClaimFileListRelationFilter_schema_1 = require("./ClaimFileListRelationFilter.schema");
const PaymentNullableScalarRelationFilter_schema_1 = require("./PaymentNullableScalarRelationFilter.schema");
const PaymentWhereInput_schema_1 = require("./PaymentWhereInput.schema");
const claimwhereinputSchema = z.object({
    AND: z.union([z.lazy(() => exports.ClaimWhereInputObjectSchema), z.lazy(() => exports.ClaimWhereInputObjectSchema).array()]).optional(),
    OR: z.lazy(() => exports.ClaimWhereInputObjectSchema).array().optional(),
    NOT: z.union([z.lazy(() => exports.ClaimWhereInputObjectSchema), z.lazy(() => exports.ClaimWhereInputObjectSchema).array()]).optional(),
    id: z.union([z.lazy(() => IntFilter_schema_1.IntFilterObjectSchema), z.number().int()]).optional(),
    patientId: z.union([z.lazy(() => IntFilter_schema_1.IntFilterObjectSchema), z.number().int()]).optional(),
    appointmentId: z.union([z.lazy(() => IntNullableFilter_schema_1.IntNullableFilterObjectSchema), z.number().int().int()]).optional().nullable(),
    userId: z.union([z.lazy(() => IntFilter_schema_1.IntFilterObjectSchema), z.number().int()]).optional(),
    staffId: z.union([z.lazy(() => IntFilter_schema_1.IntFilterObjectSchema), z.number().int()]).optional(),
    patientName: z.union([z.lazy(() => StringFilter_schema_1.StringFilterObjectSchema), z.string()]).optional(),
    memberId: z.union([z.lazy(() => StringFilter_schema_1.StringFilterObjectSchema), z.string()]).optional(),
    dateOfBirth: z.union([z.lazy(() => DateTimeFilter_schema_1.DateTimeFilterObjectSchema), z.coerce.date()]).optional(),
    remarks: z.union([z.lazy(() => StringFilter_schema_1.StringFilterObjectSchema), z.string()]).optional(),
    missingTeethStatus: z.union([z.lazy(() => EnumMissingTeethStatusFilter_schema_1.EnumMissingTeethStatusFilterObjectSchema), MissingTeethStatus_schema_1.MissingTeethStatusSchema]).optional(),
    missingTeeth: z.lazy(() => JsonNullableFilter_schema_1.JsonNullableFilterObjectSchema).optional(),
    serviceDate: z.union([z.lazy(() => DateTimeFilter_schema_1.DateTimeFilterObjectSchema), z.coerce.date()]).optional(),
    insuranceProvider: z.union([z.lazy(() => StringFilter_schema_1.StringFilterObjectSchema), z.string()]).optional(),
    createdAt: z.union([z.lazy(() => DateTimeFilter_schema_1.DateTimeFilterObjectSchema), z.coerce.date()]).optional(),
    updatedAt: z.union([z.lazy(() => DateTimeFilter_schema_1.DateTimeFilterObjectSchema), z.coerce.date()]).optional(),
    status: z.union([z.lazy(() => EnumClaimStatusFilter_schema_1.EnumClaimStatusFilterObjectSchema), ClaimStatus_schema_1.ClaimStatusSchema]).optional(),
    claimNumber: z.union([z.lazy(() => StringNullableFilter_schema_1.StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
    preAuthNumber: z.union([z.lazy(() => StringNullableFilter_schema_1.StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
    npiProviderId: z.union([z.lazy(() => IntNullableFilter_schema_1.IntNullableFilterObjectSchema), z.number().int()]).optional().nullable(),
    patient: z.union([z.lazy(() => PatientScalarRelationFilter_schema_1.PatientScalarRelationFilterObjectSchema), z.lazy(() => PatientWhereInput_schema_1.PatientWhereInputObjectSchema)]).optional(),
    appointment: z.union([z.lazy(() => AppointmentNullableScalarRelationFilter_schema_1.AppointmentNullableScalarRelationFilterObjectSchema), z.lazy(() => AppointmentWhereInput_schema_1.AppointmentWhereInputObjectSchema)]).optional(),
    user: z.union([z.lazy(() => UserNullableScalarRelationFilter_schema_1.UserNullableScalarRelationFilterObjectSchema), z.lazy(() => UserWhereInput_schema_1.UserWhereInputObjectSchema)]).optional(),
    staff: z.union([z.lazy(() => StaffNullableScalarRelationFilter_schema_1.StaffNullableScalarRelationFilterObjectSchema), z.lazy(() => StaffWhereInput_schema_1.StaffWhereInputObjectSchema)]).optional(),
    npiProvider: z.union([z.lazy(() => NpiProviderNullableScalarRelationFilter_schema_1.NpiProviderNullableScalarRelationFilterObjectSchema), z.lazy(() => NpiProviderWhereInput_schema_1.NpiProviderWhereInputObjectSchema)]).optional(),
    serviceLines: z.lazy(() => ServiceLineListRelationFilter_schema_1.ServiceLineListRelationFilterObjectSchema).optional(),
    claimFiles: z.lazy(() => ClaimFileListRelationFilter_schema_1.ClaimFileListRelationFilterObjectSchema).optional(),
    payment: z.union([z.lazy(() => PaymentNullableScalarRelationFilter_schema_1.PaymentNullableScalarRelationFilterObjectSchema), z.lazy(() => PaymentWhereInput_schema_1.PaymentWhereInputObjectSchema)]).optional()
}).strict();
exports.ClaimWhereInputObjectSchema = claimwhereinputSchema;
exports.ClaimWhereInputObjectZodSchema = claimwhereinputSchema;
