Files
DentalManagement09/packages/db/shared/schemas/findFirstOrThrowPatientServiceHistory.schema.ts
T

38 lines
3.5 KiB
TypeScript

import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { PatientServiceHistoryIncludeObjectSchema as PatientServiceHistoryIncludeObjectSchema } from './objects/PatientServiceHistoryInclude.schema';
import { PatientServiceHistoryOrderByWithRelationInputObjectSchema as PatientServiceHistoryOrderByWithRelationInputObjectSchema } from './objects/PatientServiceHistoryOrderByWithRelationInput.schema';
import { PatientServiceHistoryWhereInputObjectSchema as PatientServiceHistoryWhereInputObjectSchema } from './objects/PatientServiceHistoryWhereInput.schema';
import { PatientServiceHistoryWhereUniqueInputObjectSchema as PatientServiceHistoryWhereUniqueInputObjectSchema } from './objects/PatientServiceHistoryWhereUniqueInput.schema';
import { PatientServiceHistoryScalarFieldEnumSchema } from './enums/PatientServiceHistoryScalarFieldEnum.schema';
// Select schema needs to be in file to prevent circular imports
//------------------------------------------------------
export const PatientServiceHistoryFindFirstOrThrowSelectSchema: z.ZodType<Prisma.PatientServiceHistorySelect> = z.object({
id: z.boolean().optional(),
patientId: z.boolean().optional(),
procedureCode: z.boolean().optional(),
description: z.boolean().optional(),
toothQuadArchSurface: z.boolean().optional(),
placeOfService: z.boolean().optional(),
serviceDate: z.boolean().optional(),
createdAt: z.boolean().optional(),
patient: z.boolean().optional()
}).strict() as unknown as z.ZodType<Prisma.PatientServiceHistorySelect>;
export const PatientServiceHistoryFindFirstOrThrowSelectZodSchema = z.object({
id: z.boolean().optional(),
patientId: z.boolean().optional(),
procedureCode: z.boolean().optional(),
description: z.boolean().optional(),
toothQuadArchSurface: z.boolean().optional(),
placeOfService: z.boolean().optional(),
serviceDate: z.boolean().optional(),
createdAt: z.boolean().optional(),
patient: z.boolean().optional()
}).strict();
export const PatientServiceHistoryFindFirstOrThrowSchema: z.ZodType<Prisma.PatientServiceHistoryFindFirstOrThrowArgs> = z.object({ select: PatientServiceHistoryFindFirstOrThrowSelectSchema.optional(), include: z.lazy(() => PatientServiceHistoryIncludeObjectSchema.optional()), orderBy: z.union([PatientServiceHistoryOrderByWithRelationInputObjectSchema, PatientServiceHistoryOrderByWithRelationInputObjectSchema.array()]).optional(), where: PatientServiceHistoryWhereInputObjectSchema.optional(), cursor: PatientServiceHistoryWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([PatientServiceHistoryScalarFieldEnumSchema, PatientServiceHistoryScalarFieldEnumSchema.array()]).optional() }).strict() as unknown as z.ZodType<Prisma.PatientServiceHistoryFindFirstOrThrowArgs>;
export const PatientServiceHistoryFindFirstOrThrowZodSchema = z.object({ select: PatientServiceHistoryFindFirstOrThrowSelectSchema.optional(), include: z.lazy(() => PatientServiceHistoryIncludeObjectSchema.optional()), orderBy: z.union([PatientServiceHistoryOrderByWithRelationInputObjectSchema, PatientServiceHistoryOrderByWithRelationInputObjectSchema.array()]).optional(), where: PatientServiceHistoryWhereInputObjectSchema.optional(), cursor: PatientServiceHistoryWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([PatientServiceHistoryScalarFieldEnumSchema, PatientServiceHistoryScalarFieldEnumSchema.array()]).optional() }).strict();