Files
DentalManagementMHAprilgg/packages/db/shared/schemas/variants/input/ServiceLine.input.ts
2026-04-04 22:13:55 -04:00

25 lines
942 B
TypeScript

import * as z from 'zod';
import { ServiceLineStatusSchema } from '../../enums/ServiceLineStatus.schema';
// prettier-ignore
export const ServiceLineInputSchema = z.object({
id: z.number().int(),
claimId: z.number().int().optional().nullable(),
paymentId: z.number().int().optional().nullable(),
procedureCode: z.string(),
procedureDate: z.date(),
quad: z.string().optional().nullable(),
arch: z.string().optional().nullable(),
toothNumber: z.string().optional().nullable(),
toothSurface: z.string().optional().nullable(),
totalBilled: z.number(),
totalPaid: z.number(),
totalAdjusted: z.number(),
totalDue: z.number(),
status: ServiceLineStatusSchema,
claim: z.unknown().optional().nullable(),
payment: z.unknown().optional().nullable(),
serviceLineTransactions: z.array(z.unknown())
}).strict();
export type ServiceLineInputType = z.infer<typeof ServiceLineInputSchema>;